/* ============================================================
   Story Directors Studio — Warm Editorial Studio landing page
   Palette:
     bg         #F7F0E4  warm vanilla / cream
     card       #FFF9EE  soft paper cream
     ink        #162233  deep navy text
     plum       #6D4C7D  accents, headings, icons
     coral      #C75A3A  CTA buttons ONLY
     gold       #D9B56E  soft highlights
     line       #E4D8C8  pale warm borders
   Type: Fraunces (headings) / Inter (body)
   ============================================================ */

:root {
  --bg: #F7F0E4;
  --card: #FFF9EE;
  --ink: #162233;
  --plum: #6D4C7D;
  --plum-soft: #7E5A90;
  --coral: #C75A3A;
  --coral-deep: #A8482C;
  --gold: #D9B56E;
  --gold-soft: #F0E3CD;
  --line: #E4D8C8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(22, 34, 51, 0.06);
  --shadow-lg: 0 12px 32px rgba(22, 34, 51, 0.10);
  --font-head: 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.container.narrow { max-width: 860px; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.hero h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(min(38px, var(--hero-title-size, 52px)), 3.8vw, var(--hero-title-size, 52px));
  line-height: 1.08;
  font-weight: 700;
}

.hero-rotating-word {
  display: inline;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-rotating-word,
.hero-typing-cursor {
  color: var(--coral);
}

.hero-typing-cursor {
  display: inline-block;
  height: 0.88em;
  margin-left: 0.05em;
  border-right: 0.09em solid currentColor;
  vertical-align: -0.08em;
  animation: hero-cursor-blink 0.8s steps(1, end) infinite;
}

@keyframes hero-cursor-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typing-cursor {
    animation: none;
  }
}
h2 { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.15; font-weight: 600; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--plum); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

/* Coral reserved strictly for CTAs */
.btn-cta {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 14px rgba(199, 90, 58, 0.35);
}
.btn-cta:hover { background: var(--coral-deep); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.btn-ghost:hover { background: rgba(109, 76, 125, 0.08); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #E4D8C8;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  min-height: 72px;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: end;
}

@media (max-width: 1023px) {
  .header-actions {
    gap: 8px;
  }
  .header-actions .nav-cta {
    display: none;
  }
  .nav-toggle {
    margin-left: 8px;
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Strict three-zone grid on desktop */
@media (min-width: 1024px) {
  .header-inner {
    grid-template-columns: 320px 1fr 340px;
    padding-left: 32px;
    padding-right: 32px;
    height: 76px;
  }
}


/* Zone 1: logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #162233;
  justify-self: start;
  min-width: 0;
}

.brand-img {
  max-height: 44px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--plum);
  color: #fff;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .brand-img {
    max-height: 52px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Zone 2: nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 34px;
}

@media (min-width: 1024px) {
  .site-nav {
    justify-self: center;
  }
}

.site-nav a {
  text-decoration: none;
  color: #162233;
  font-size: 15.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #6D4C7D;
  text-decoration: underline;
}

/* Zone 3: lang switch + CTA */


.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #E4D8C8;
  border-radius: 999px;
  padding: 3px;
  background: var(--card);
  height: 34px;
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #162233;
  padding: 0 11px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  height: 26px;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn.active {
  background: #6D4C7D;
  color: #FFF9EE;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C75A3A;
  color: #FFF9EE !important;
  font-weight: 700;
  font-size: 15px;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(199, 90, 58, 0.18);
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--coral-deep);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #E4D8C8;
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #162233;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 18px;
  border-top: 1px solid #E4D8C8;
  background: #FFF9EE;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 8px;
  color: #162233;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.mobile-nav a:hover { color: #6D4C7D; background: #F7F0E4; }

/* Desktop: show all three zones */
@media (min-width: 1024px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Mobile: hide nav links + CTA (CTA lives in the menu), keep logo + toggle */
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .nav-cta { display: none; }
  .brand-text {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
  .header-actions { gap: 8px; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100svh - 61px);
  padding: 48px 0 64px;
  display: flex;
  align-items: center;
  background: #FFF9EE;
}

.hero-grid {
  display: grid;
  gap: 36px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 18px;
  color: #3d4658;
  max-width: 56ch;
}

.fact-pills {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fact-pills li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--plum);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Mobile only: hide the secondary hero link and stretch the CTA */
@media (max-width: 767px) {
  .hero-ghost {
    display: none;
  }

  .hero-actions .btn-cta {
    width: 100%;
    text-align: center;
  }
}

.hero-visual img {
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(22, 34, 51, 0.08);
  border: none;
  display: block;
}

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid {
    max-width: 1320px;
    grid-template-columns: 38% 56%;
    align-items: center;
    gap: 6%;
  }
  .hero-visual {
    margin-top: 0;
    display: block;
    /* Expand the image beyond the right container padding into half the free
       viewport margin: noticeably larger than the text column, with a clear
       gap remaining on the right edge. */
    margin-right: calc(-1 * (32px + max(0px, (100vw - 1320px) / 4)));
  }
  .hero-visual img {
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    width: 100%;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head { margin-bottom: 32px; }

.section-head h2 { color: var(--plum); }

.section-intro,
.lead {
  font-size: 18px;
  color: #3d4658;
  max-width: 68ch;
}

.key-line {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 20px;
  color: var(--plum);
  margin: 8px 0 0;
}

/* ---------- Process steps ---------- */

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.process-steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 4px;
  position: relative;
  box-shadow: var(--shadow);
}

.step-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}

.process-steps h3 { margin-bottom: 4px; }

.process-steps p {
  margin: 0;
  font-size: 15.5px;
  color: #3d4658;
}

@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
  .process-steps li { padding: 20px 16px; }
  .process-steps li:nth-child(even) { transform: translateY(18px); }
}

/* ---------- Project cards ---------- */

/* ---------- Project cards (Gallery Style) ---------- */
.project-carousel {
  position: relative;
}

.project-carousel-viewport {
  overflow: hidden;
  padding: 4px;
  margin: -4px;
  cursor: grab;
  touch-action: pan-y;
}

.project-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  grid-template-columns: none;
  transition: transform 0.35s ease;
}

.project-carousel-track.is-dragging {
  transition: none;
  cursor: grabbing;
  user-select: none;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(22, 34, 51, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(22, 34, 51, 0.08);
}

.project-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #F0E3CD;
  cursor: pointer;
}

.project-card-image:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: -3px;
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-preview-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.project-card-preview-stage img {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  transition: transform 750ms cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.project-card-preview-incoming {
  transform: translateX(100%);
}

.project-card-preview-stage.is-sliding .project-card-preview-current {
  transform: translateX(-100%);
}

.project-card-preview-stage.is-sliding .project-card-preview-incoming {
  transform: translateX(0);
}

.project-card-preview-stage.is-initial-slide:not(.is-sliding) img {
  transition: none;
}

.project-card-preview-stage.is-initial-slide .project-card-preview-current {
  transform: rotateY(0deg);
}

.project-card-preview-stage.is-initial-slide .project-card-preview-incoming {
  transform: rotateY(-180deg);
}

.project-card-preview-stage.is-initial-slide.is-sliding .project-card-preview-current {
  transform: rotateY(180deg);
}

.project-card-preview-stage.is-initial-slide.is-sliding .project-card-preview-incoming {
  transform: rotateY(0deg);
}

.project-card-preview-stage.is-initial-slide img {
  transition-duration: 800ms;
}

.project-card-preview-stage.is-resetting img {
  transition: none;
}

.project-card-body {
  padding: 16px 18px 18px;
}

.project-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.2;
}

.btn-preview-story {
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid var(--plum);
  border-radius: 12px;
  background: transparent;
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-preview-story:hover,
.btn-preview-story:focus-visible {
  background: var(--plum);
  color: #FFFFFF;
}

@media (max-width: 1023px) {
  .btn-preview-story {
    display: none;
  }
}

.project-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.project-carousel-button {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--plum);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--plum);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.project-carousel-button:hover,
.project-carousel-button:focus-visible {
  background: var(--plum);
  color: #FFFFFF;
}

.project-carousel-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.project-carousel-count {
  min-width: 64px;
  margin: 0;
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.project-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.project-carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}

.project-carousel-dot.active {
  background: var(--plum);
  transform: scale(1.2);
}

@media (min-width: 1024px) {
  .project-carousel-track {
    grid-auto-columns: calc((100% - 56px) / 3);
    gap: 28px;
  }

  .project-card-body {
    padding: 18px 20px 20px;
  }

  .project-carousel-count {
    display: none;
  }
}

/* ---------- AI responsibility ---------- */

/* Deep-plum section (AI / process) — per spec */
.section-ai { background: #60476B; }

/* section-head's own 32px bottom margin would stack on the intro's 50px;
   the intro margin is the gap per spec, so neutralize the wrapper margin. */
.section-ai .section-head { margin-bottom: 0; }

.section-ai .section-head h2 {
  color: #FFF9EE;
  font-size: clamp(38px, 3.2vw, 42px);
  margin-bottom: 22px;
}

.section-ai .section-head .section-intro {
  color: #F7F0E4;
  font-size: clamp(20px, 1.7vw, 22px);
  line-height: 1.55;
  max-width: 1000px;
  margin-bottom: 50px;
}

.ai-cards {
  display: grid;
  gap: 18px;
  margin-bottom: 48px;
}

.ai-card {
  background: #FFF9EE;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.ai-card h3 { color: #6D4C7D; }

.ai-card p { margin: 0; font-size: 15.5px; color: #162233; }

.ai-supporting {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 23px);
  color: #FFF9EE;
  opacity: 0.94;
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

/* Safety note — muted card per spec */
.ai-safety {
  background: #F7F0E4;
  color: #162233;
  border-left: 4px solid #D9B56E;
  border-radius: 15px;
  padding: 22px;
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
  box-shadow: none;
}

@media (min-width: 860px) {
  .ai-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Instructor ---------- */

.section-instructor { background: #FFF9EE; }

.instructor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.instructor-visual img {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid #E4D8C8;
  box-shadow: 0 18px 40px rgba(22, 34, 51, 0.12);
}

.instructor-copy {
  max-width: 640px;
}

.instructor-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
}

.instructor-role {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: #5A6472;
}

.instructor-bio {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: #3d4658;
}

.instructor-optional {
  margin: 0;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.6;
  color: #5A6472;
}

@media (min-width: 760px) {
  .instructor-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }
}

.section-logistics { background: #EFE3CF; }

/* ---------- Logistics ---------- */

.logistics-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.logistics-list > div {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.logistics-list dt {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
}

.logistics-list dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.logistics-final {
  margin-top: 22px;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 15px;
  color: #3d4658;
}

@media (min-width: 720px) {
  .logistics-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FAQ ---------- */
.section-faq { background: #FFF9EE; }


.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--coral);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  margin: 0;
  font-size: 15.5px;
  color: #3d4658;
}

.faq-item.open .faq-a { display: block; }

/* ---------- Registration form ---------- */

.section-register {
  background:
    radial-gradient(70% 100% at 10% 100%, rgba(109, 76, 125, 0.10), transparent 60%),
    var(--bg);
}

.section-register h2 { color: var(--plum); }

.register-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field { display: grid; gap: 6px; }

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--plum);
}

.form-field input.invalid {
  border-color: var(--coral);
  background: #FDF1EC;
}

.form-field-checkbox {
  display: block;
}

.form-field-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-field-checkbox input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--plum);
}

.form-field-checkbox input:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}

.form-note {
  font-size: 13.5px;
  color: #5a6472;
  margin: 0;
}

.form-status {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.error { color: var(--coral); }
.form-status.success { color: var(--plum); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-tagline {
  margin: 0;
  font-size: 14.5px;
  color: #5a6472;
  max-width: 60ch;
}

.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: #8a90a0;
}

@media (min-width: 860px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.section-method {
  background: #F3ECF6;
}


.method-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.method-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 12px;
}

.method-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.15;
  margin: 0 0 20px;
}

.method-intro {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.6;
  color: #374151;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Method stations: cream cards on a soft lilac wash */
.method-station {
  background: #FFF9EE;
  border: 1px solid #E4D8C8;
  border-radius: 24px;
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Vignette: large visual occupying the upper part of the column */
.method-vignette {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 22px;
}

.method-vignette svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .method-vignette {
    max-width: 200px;
  }
}

.method-station-body {
  position: relative;
  padding: 0 8px;
}

.method-step {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6D4C7D;
  margin: 0 0 6px;
}

.method-station-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 30px;
  color: var(--ink);
  margin: 0 0 2px;
}

.method-station-sub {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 18px;
  color: var(--plum);
  margin: 0 0 14px;
}

.method-station-text {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
  max-width: 34ch;
}

/* Thin gold underline that draws in on scroll */
.method-underline {
  display: block;
  width: 64px;
  height: 2px;
  margin: 20px auto 0;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
}

.method-station.in-view .method-underline {
  animation: underline-draw 1.1s ease 0.6s forwards;
}

@keyframes underline-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.method-closing {
  text-align: center;
  margin-top: 44px;
  padding: 0 16px;
}

.method-closing p {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  color: var(--plum);
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.method-closing p::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  right: 30%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .method-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
}

@media (min-width: 900px) {
  .method-station {
    padding: 32px 24px 36px;
  }
}

/* ---------- Story Preview Reader ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: stretch;
  justify-content: stretch;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #162233;
}

.modal-content {
  position: relative;
  z-index: 1001;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #162233;
}

.modal-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 1002;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 34, 51, 0.72);
  color: #FFFFFF;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--plum);
}

.modal-body,
.carousel {
  height: 100%;
}

.modal-body {
  padding: 0;
}

.modal-eyebrow,
.modal-notice {
  display: none;
}

.carousel-track-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #162233;
}

.carousel-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.4s ease;
}

.carousel-slide {
  display: flex;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-slide-final {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  text-align: center;
}

.carousel-slide .reader-final-background {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  max-width: none;
  filter: blur(14px) brightness(0.45);
  object-fit: cover;
  transform: scale(1.04);
}

.reader-final-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 32px;
}

.reader-final-content h3 {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
}

.reader-final-cta {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--coral);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.reader-final-cta:hover,
.reader-final-cta:focus-visible {
  background: var(--coral-deep);
  color: #FFFFFF;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(22, 34, 51, 0.72);
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--plum);
}

.carousel-btn.btn-prev { left: max(12px, env(safe-area-inset-left)); }
.carousel-btn.btn-next { right: max(12px, env(safe-area-inset-right)); }

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-footer {
  position: absolute;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.carousel-label {
  display: none;
}

.carousel-nav {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(22, 34, 51, 0.72);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.carousel-dot.active {
  background: #FFFFFF;
  transform: scale(1.2);
}

.reader-rotate-hint {
  display: none;
  position: absolute;
  right: 24px;
  bottom: 58px;
  left: 24px;
  z-index: 10;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(22, 34, 51, 0.82);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 767px) and (orientation: portrait) {
  .modal.active .reader-rotate-hint {
    display: block;
  }
}

/* ---------- Method Station Vignette Animations ----------
   Play once on scroll into view (via .in-view), then loop slowly
   with a long pause. Reduced-motion users get static visuals.
   Timing model: cycle = active + pause; elements animate at
   staggered offsets within one cycle. */

/* Story: pencil writes 2-3 lines, spark appears */
.story-line {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
}
.method-station.in-view .line-1 {
  animation: line-write 1.4s ease-out 0.2s forwards;
}
.method-station.in-view .line-2 {
  animation: line-write 1.4s ease-out 1.7s forwards;
}
.method-station.in-view .line-3 {
  animation: line-write 1.4s ease-out 3.2s forwards;
}
@keyframes line-write {
  to { stroke-dashoffset: 0; }
}

.method-station.in-view .story-pencil {
  animation: pencil-draw 4.8s ease-in-out 0.2s infinite;
}
@keyframes pencil-draw {
  0%, 6%   { transform: translate(0, 0); opacity: 0; }
  8%       { opacity: 1; }
  30%      { transform: translate(44px, 18px); }
  42%      { transform: translate(44px, 18px); }
  58%      { transform: translate(78px, 36px); }
  70%      { transform: translate(78px, 36px); }
  82%      { transform: translate(102px, 54px); }
  92%, 100% { transform: translate(102px, 54px); opacity: 0; }
}

.story-character {
  opacity: 0;
}
.method-station.in-view .story-character {
  animation: appear-soft 1s ease 4.7s forwards;
}
@keyframes appear-soft {
  to { opacity: 1; }
}

.story-spark {
  opacity: 0;
  transform-origin: 172px 59px;
}
.method-station.in-view .story-spark {
  animation: spark-pop 2.6s ease 4.4s infinite;
}
@keyframes spark-pop {
  0%, 20%  { transform: scale(0); opacity: 0; }
  26%      { transform: scale(1.25); opacity: 1; }
  32%      { transform: scale(1); opacity: 1; }
  48%, 100% { transform: scale(0); opacity: 0; }
}

/* Directors: scene shifts grey -> warm as sliders move */
.director-warm {
  opacity: 0;
}
.method-station.in-view .director-warm {
  animation: warm-up 5.2s ease-in-out 0.2s infinite;
}
@keyframes warm-up {
  0%, 30%  { opacity: 0; }
  46%      { opacity: 0.25; }
  62%      { opacity: 0.55; }
  78%, 100% { opacity: 1; }
}

.slider-knob {
  transform-box: fill-box;
}
.method-station.in-view .knob-1 {
  animation: slider-move-1 5.2s ease-in-out 0.2s infinite;
}
.method-station.in-view .knob-2 {
  animation: slider-move-2 5.2s ease-in-out 0.2s infinite;
}
.method-station.in-view .knob-3 {
  animation: slider-move-3 5.2s ease-in-out 0.2s infinite;
}
@keyframes slider-move-1 {
  0%, 12% { transform: translateX(0); }
  26%     { transform: translateX(18px); }
  40%     { transform: translateX(14px); }
  52%, 100% { transform: translateX(18px); }
}
@keyframes slider-move-2 {
  0%, 24% { transform: translateX(0); }
  40%     { transform: translateX(-24px); }
  54%     { transform: translateX(-20px); }
  66%, 100% { transform: translateX(-24px); }
}
@keyframes slider-move-3 {
  0%, 38% { transform: translateX(0); }
  56%     { transform: translateX(-34px); }
  70%     { transform: translateX(-30px); }
  82%, 100% { transform: translateX(-34px); }
}

/* Studio: pieces slide into the comic page, page becomes a booklet */
.comic-pieces {
  opacity: 0;
}
.method-station.in-view .comic-pieces {
  animation: appear-soft 0.4s ease 0.3s forwards;
}

.method-station.in-view .piece-image {
  animation: slide-piece 5s ease 0.4s infinite;
}
.method-station.in-view .piece-bubble {
  animation: slide-piece 5s ease 1.6s infinite;
}
.method-station.in-view .piece-caption {
  animation: slide-piece 5s ease 2.8s infinite;
}
@keyframes slide-piece {
  0%, 8%   { transform: translateY(-14px); opacity: 0; }
  18%      { transform: translateY(0); opacity: 1; }
  88%, 100% { transform: translateY(0); opacity: 1; }
}

.comic-book {
  opacity: 0;
  transform: translateY(6px);
}
.method-station.in-view .comic-book {
  animation: book-in 5s ease 3.4s infinite;
}
@keyframes book-in {
  0%, 40%  { opacity: 0; transform: translateY(8px); }
  52%      { opacity: 1; transform: translateY(0); }
  88%, 100% { opacity: 1; transform: translateY(0); }
}

.studio-spark {
  opacity: 0;
  transform-origin: 120px 117px;
}
.method-station.in-view .studio-spark {
  animation: spark-pop 2.6s ease 4.6s infinite;
}

/* Accessibility: respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .method-station .story-line,
  .method-station .story-pencil,
  .method-station .story-character,
  .method-station .story-spark,
  .method-station .director-warm,
  .method-station .slider-knob,
  .method-station .comic-pieces,
  .method-station .piece-image,
  .method-station .piece-bubble,
  .method-station .piece-caption,
  .method-station .comic-book,
  .method-station .studio-spark,
  .method-station .method-underline {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .method-station .story-line {
    stroke-dashoffset: 0;
  }
  .method-station .director-warm {
    opacity: 1;
  }
}

