/* ============================================
   ENYA SOLA — Faceless Creator AI
   Editorial, academic, minimal
   ============================================ */

:root {
  --brand-dark: #243C30;
  --brand-accent: #2E4A3C;
  --bg: #F7F6F3;
  --neutral: #EAEAE7;
  --text: #1C1C1A;
  --muted: #6B6B66;
  --line: #D9D9D3;

  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 2px;
}

[data-theme="dark"] {
  --bg: #141614;
  --neutral: #1E201E;
  --text: #EDEDE8;
  --muted: #9A9A92;
  --line: #2A2C29;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* -------- Layout -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(72px, 12vw, 140px) 0;
  border-bottom: 1px solid var(--line);
}
.section--dark {
  background: var(--brand-dark);
  color: #F7F6F3;
  border-color: transparent;
}
.section--dark .eyebrow,
.section--dark .muted { color: rgba(247, 246, 243, 0.7); }
.section--dark .rule { background: rgba(247, 246, 243, 0.2); }

/* -------- Type -------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-wrap: balance;
}

.display {
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h1 { font-size: clamp(36px, 5.5vw, 68px); }
.h2 { font-size: clamp(28px, 3.4vw, 44px); }
.h3 { font-size: clamp(20px, 2vw, 26px); }

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}
.section--dark .lede { color: rgba(247, 246, 243, 0.78); }

.body {
  font-size: 17px;
  line-height: 1.65;
  max-width: 62ch;
  color: var(--text);
  text-wrap: pretty;
}
.section--dark .body { color: rgba(247, 246, 243, 0.86); }

.muted { color: var(--muted); font-size: 14px; }

.rule {
  width: 48px; height: 1px;
  background: var(--line);
  margin-bottom: 28px;
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.22s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--bg);
  color: var(--brand-dark);
}
.btn--primary:hover { background: #fff; transform: translateY(-1px); }

.btn--primary-dark {
  background: var(--brand-dark);
  color: #F7F6F3;
}
.btn--primary-dark:hover { background: var(--brand-accent); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  opacity: 0.9;
}
.btn--ghost:hover { opacity: 1; background: rgba(255,255,255,0.06); }

.btn--ghost-dark {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost-dark:hover { border-color: var(--brand-dark); }

.btn .arrow { transition: transform 0.22s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* -------- Nav -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__brand-main {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.nav__brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
}
.nav__links a {
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__utility {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switch {
  display: flex;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.lang-switch button {
  padding: 6px 10px;
  color: var(--muted);
  transition: all 0.2s;
}
.lang-switch button.active {
  background: var(--text);
  color: var(--bg);
}
.theme-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { padding: 14px var(--gutter); }
}

/* -------- Hero -------- */
.hero {
  min-height: 100vh;
  background: var(--brand-dark);
  color: #F7F6F3;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 var(--gutter);
}
.hero__top {
  padding: 32px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.6);
}
.hero__mark {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #F7F6F3;
  text-transform: none;
  font-weight: 500;
}
.hero__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 80px 0;
  gap: 56px;
}
.hero__headline {
  max-width: 14ch;
  color: #F7F6F3;
}
.hero__headline em {
  font-style: italic;
  font-weight: 300;
  color: rgba(247, 246, 243, 0.7);
}
.hero__sub {
  max-width: 52ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(247, 246, 243, 0.75);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 24px 0 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.5);
  border-top: 1px solid rgba(247, 246, 243, 0.14);
}
.hero__meta-col { display: flex; flex-direction: column; gap: 4px; max-width: 28ch; }
.hero__meta-col strong {
  color: rgba(247, 246, 243, 0.85);
  font-weight: 400;
  letter-spacing: 0.14em;
}
@media (max-width: 720px) {
  .hero__meta { flex-direction: column; gap: 20px; align-items: flex-start; }
  .hero__body { padding: 48px 0; gap: 36px; }
}

/* -------- Section intro blocks -------- */
.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  margin-bottom: clamp(48px, 6vw, 80px);
  align-items: start;
}
.section-intro__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.section-intro__label span {
  display: block;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-top: 4px;
}
.section--dark .section-intro__label span { color: #F7F6F3; }
.section--dark .section-intro__label { border-color: rgba(247, 246, 243, 0.18); }
.section-intro__main h2 { margin-bottom: 24px; }

@media (max-width: 720px) {
  .section-intro { grid-template-columns: 1fr; gap: 20px; }
}

/* -------- Service cards -------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.service {
  padding: 40px 40px 44px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  background: var(--bg);
  transition: background 0.25s;
}
.service:nth-child(2n) { border-right: none; }
.service:hover { background: color-mix(in oklab, var(--neutral) 60%, var(--bg)); }

.service__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.service__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 4px;
}
.service__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
}
.service__foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.service__foot .arrow-link {
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
[data-theme="dark"] .service__foot .arrow-link { color: var(--bg); }
.service__foot .arrow-link:hover { gap: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  background: transparent;
}
.badge--live {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
  background: color-mix(in oklab, var(--brand-dark) 8%, transparent);
}
[data-theme="dark"] .badge--live {
  color: #C8D6CC;
  border-color: #C8D6CC;
}
.badge--soon { color: var(--muted); }
.badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.service.soon .service__title,
.service.soon .service__desc { opacity: 0.75; }

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: none !important; padding: 32px 24px; }
}

/* -------- How it works -------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  padding: 48px 32px 56px;
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.step:last-child { border-right: none; }
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 44px;
}
.step__title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.step__desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 28ch;
  line-height: 1.55;
}
.step__arrow {
  position: absolute;
  right: -1px; top: 50%;
  transform: translate(50%, -50%);
  width: 32px; height: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  z-index: 2;
}
.step:last-child .step__arrow { display: none; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); min-height: 0; padding: 36px 24px; }
  .step:last-child { border-bottom: none; }
  .step__arrow { display: none; }
}

/* -------- Portrait block (Who is Enya) -------- */
.portrait-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-top: 48px;
}
.portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--neutral);
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.portrait__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  background: color-mix(in oklab, var(--brand-dark) 92%, transparent);
  color: rgba(247, 246, 243, 0.9);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}
.portrait__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.portrait__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--text);
  padding: 24px 0 24px 24px;
  border-left: 1px solid var(--brand-dark);
  text-wrap: pretty;
}
.portrait__meta-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.portrait__meta-row:last-child { border-bottom: 1px solid var(--line); }
.portrait__meta-row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.portrait__meta-row dd { color: var(--text); font-size: 15px; line-height: 1.5; }
@media (max-width: 720px) {
  .portrait-block { grid-template-columns: 1fr; }
}

/* -------- CV Flow (Chapter IV) -------- */
.cv-flow {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.cv-flow__row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: clamp(20px, 3vw, 48px);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cv-flow__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 4px;
}
.cv-flow__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cv-flow__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}
.cv-flow__desc strong {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-serif);
  font-style: italic;
}
@media (max-width: 720px) {
  .cv-flow__row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
}

/* -------- Final CTA -------- */
.final-cta {
  text-align: left;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
}
.final-cta__headline {
  color: #F7F6F3;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.final-cta__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.final-cta__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.5);
  max-width: 32ch;
}
@media (max-width: 720px) {
  .final-cta { grid-template-columns: 1fr; gap: 32px; }
}

/* -------- Footer -------- */
.footer {
  background: var(--bg);
  padding: 72px var(--gutter) 32px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.footer__tag {
  color: var(--muted);
  font-size: 14px;
  max-width: 36ch;
  line-height: 1.55;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__email {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}
.footer__bottom {
  max-width: var(--container);
  margin: 72px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}

/* -------- Reveal on scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* -------- CV Agent page -------- */
.cv-hero {
  padding: clamp(72px, 10vw, 120px) var(--gutter) clamp(48px, 6vw, 80px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.cv-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end;
}
.cv-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.cv-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.5vw, 88px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 28px;
  text-wrap: balance;
}
.cv-hero__title em { font-style: italic; color: var(--muted); font-weight: 300; }
.cv-hero__lede { max-width: 54ch; }
.cv-hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__value {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .cv-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .cv-hero__stats { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
}

/* Explanation / what it does */
.cv-explain {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.cv-explain__inner { max-width: var(--container); margin: 0 auto; }
.cv-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.cv-feat {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cv-feat:last-child { border-right: none; }
.cv-feat__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 16px;
}
.cv-feat__title {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cv-feat__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
@media (max-width: 720px) {
  .cv-features { grid-template-columns: 1fr; }
  .cv-feat { border-right: none; }
}

/* -------- Form -------- */
.form-section {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  background: var(--neutral);
}
[data-theme="dark"] .form-section { background: color-mix(in oklab, var(--neutral) 70%, var(--bg)); }
.form-panel {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg);
  border-top: 3px solid var(--brand-dark);
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  box-shadow: 0 1px 0 var(--line), 0 24px 64px -32px rgba(36, 60, 48, 0.2);
}
.form-panel__header { margin-bottom: 40px; }
.form-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-panel__eyebrow::before {
  content: "";
  width: 24px; height: 1px; background: var(--brand-dark);
}
.form-panel__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.form-panel__sub {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  max-width: 54ch;
}

.form-begin { margin-top: 32px; }

.field {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.55s ease, max-height 0.55s ease;
}
.field.revealed {
  opacity: 1;
  max-height: 400px;
}
.field:first-of-type { border-top: none; padding-top: 24px; }
.field__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 16px;
}
.field__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.field__req {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__req.optional { color: var(--muted); opacity: 0.7; }

.field__label {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.field__helper {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.field input[type="text"]:focus,
.field textarea:focus { border-bottom-color: var(--brand-dark); }
.field input[type="text"]::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.55; font-style: italic; }

.upload-zone {
  border: 1px dashed var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.upload-zone:hover { border-color: var(--brand-dark); background: color-mix(in oklab, var(--brand-dark) 3%, transparent); }
.upload-zone.has-file { border-style: solid; border-color: var(--brand-dark); background: color-mix(in oklab, var(--brand-dark) 5%, transparent); }
.upload-zone__icon {
  color: var(--muted);
  width: 28px; height: 28px;
}
.upload-zone__text {
  font-family: var(--font-serif);
  font-size: 17px;
}
.upload-zone__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.upload-zone input[type="file"] { display: none; }

.form-submit {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: none;
}
.form-submit.revealed { display: block; }

/* Per-field actions: Back / Next inside each step */
.field__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.field__actions > span[style] { /* spacer */
  flex: 1;
}
.btn-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  background: transparent;
  color: var(--text);
}
.btn-step--primary {
  background: var(--brand-dark);
  color: #F7F6F3;
  margin-left: auto;
}
.btn-step--primary:hover {
  background: var(--brand-accent);
  transform: translateY(-1px);
}
.btn-step--ghost {
  border-color: var(--line);
  color: var(--muted);
}
.btn-step--ghost:hover {
  border-color: var(--text);
  color: var(--text);
}
.btn-step .arrow,
.btn-step .arrow-back { transition: transform 0.2s ease; }
.btn-step--primary:hover .arrow { transform: translateX(3px); }
.btn-step--ghost:hover .arrow-back { transform: translateX(-3px); }

/* Invalid state shake */
.field input.invalid,
.field textarea.invalid {
  border-bottom-color: #C44A3F !important;
  animation: field-shake 0.35s ease;
}
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.form-submit__note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.form-submit__note p + p { margin-top: 6px; }

/* -------- Confirmation screen -------- */
.confirmation {
  min-height: 90vh;
  background: var(--brand-dark);
  color: #F7F6F3;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  display: none;
}
.confirmation.show { display: block; }
.confirmation__inner { max-width: 780px; margin: 0 auto; }
.confirmation__mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.6);
  margin-bottom: 40px;
  display: flex; align-items: center; gap: 12px;
}
.confirmation__mark::before { content: ""; width: 32px; height: 1px; background: rgba(247, 246, 243, 0.4); }
.confirmation__title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 9vw, 120px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 40px;
}
.confirmation__body p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(247, 246, 243, 0.85);
  max-width: 58ch;
  margin-bottom: 20px;
}
.confirmation__body p.small {
  font-size: 14px;
  color: rgba(247, 246, 243, 0.6);
  margin-top: 40px;
  font-style: italic;
}

/* -------- Tweaks panel -------- */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  z-index: 100;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.25);
  display: none;
  font-family: var(--font-sans);
}
.tweaks-panel.show { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.tweaks-panel__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tweaks-panel__row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.tweaks-panel__label {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tweaks-panel__options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.tweaks-panel__opt {
  padding: 8px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
}
.tweaks-panel__opt.active {
  background: var(--brand-dark);
  color: var(--bg);
  border-color: var(--brand-dark);
}

/* Variant: editorial (default) is what's already styled above */

/* Variant: Minimal — tighter, more whitespace, no card borders */
body[data-variant="minimal"] .services,
body[data-variant="minimal"] .service { border: none; }
body[data-variant="minimal"] .services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
}
body[data-variant="minimal"] .service { padding: 0; }
body[data-variant="minimal"] .service:hover { background: transparent; }
body[data-variant="minimal"] .steps {
  border: none;
  gap: 48px;
}
body[data-variant="minimal"] .step {
  border: none;
  padding: 0;
  min-height: 0;
}

/* Variant: Journal — heavier serif, numbered sections like a journal */
body[data-variant="journal"] {
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
}
body[data-variant="journal"] .display,
body[data-variant="journal"] .h1,
body[data-variant="journal"] .h2 {
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
}
body[data-variant="journal"] .section-intro__label::before {
  content: "§ ";
  font-family: var(--font-serif);
  color: var(--text);
  font-size: 18px;
  vertical-align: middle;
}
body[data-variant="journal"] .service__title,
body[data-variant="journal"] .cv-feat__title {
  font-style: italic;
  font-weight: 300;
}
