@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/newsreader-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

:root {
  --green: #1b5e3b;
  --green-ink: #0f3d26;
  --leaf: #2e8b57;
  --steel: #2c3338;
  --slate: #5a6570;
  --mist: #e8ecf0;
  --paper: #f7f8fa;
  --ink: #1a1d21;
  --board: #efece6;
  --rule: color-mix(in srgb, var(--steel) 14%, transparent);
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
}

html[data-world="athens"] {
  --w-bg: #140e0a;
  --w-fg: #f3e6d4;
  --w-muted: #c9b8a4;
  --w-accent: #c45c26;
  --w-gold: #c4a15a;
  --w-display: "Cormorant Garamond", "Palatino Linotype", var(--display);
}
html[data-world="valley"] {
  --w-bg: #0c100e;
  --w-fg: #e8e0d4;
  --w-muted: #b8aea0;
  --w-accent: #e08a3c;
  --w-gold: #2d6b4f;
  --w-display: var(--display);
}
html[data-world="burs"] {
  --w-bg: #1a1410;
  --w-fg: #f7efe4;
  --w-muted: #c9b8a4;
  --w-accent: #c43c2c;
  --w-gold: #d4a04a;
  --w-display: var(--display);
}
html[data-world="after-hours"] {
  --w-bg: #16110c;
  --w-fg: #f0e6d4;
  --w-muted: #b9a894;
  --w-accent: #c4a15a;
  --w-gold: #d4b56a;
  --w-display: var(--display);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 40;
  background: var(--paper);
  padding: 0.45rem 0.7rem;
}

.wrap { width: min(1120px, calc(100% - 2.4rem)); margin-inline: auto; }
.wrap-wide { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.12;
  color: var(--ink);
}
.lede { font-size: 1.06rem; color: var(--steel); max-width: 40rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--mist));
  background: var(--paper);
  color: var(--green-ink);
  padding: 0.72rem 1.1rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { border-color: var(--green); background: #fff; }
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #f4faf6;
}
.btn-primary:hover { background: var(--green-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}
.logo img { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
}
.logo-sub { font-size: 0.7rem; color: var(--slate); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--steel);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green-ink); font-weight: 600; }
.nav-cta {
  background: var(--green) !important;
  color: #f4faf6 !important;
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--green-ink) !important; }

.header-start { display: none; }
.nav-toggle {
  display: none;
  margin-left: 0.35rem;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  margin: 6px 10px;
  background: var(--ink);
}

@media (max-width: 820px) {
  .header-start { display: inline-flex; margin-left: auto; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; }
  .nav-cta { text-align: center; }
}

/* Footer always studio */
.site-footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding: 4.5rem 0 2.2rem;
}
.footer-head {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 500;
  max-width: 16ch;
  margin: 0 0 1.4rem;
}
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--steel); font-size: 0.92rem; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--green-ink); }
.footer-doctrine { margin: 1.4rem 0 0; color: var(--slate); font-size: 0.92rem; }
.footer-legal { margin: 0.35rem 0 0; color: var(--slate); font-size: 0.78rem; }

/* Worlds */
html[data-world]:not([data-world="studio"]) body {
  background: var(--w-bg);
  color: var(--w-fg);
}
html[data-world]:not([data-world="studio"]) .site-header {
  background: color-mix(in srgb, var(--w-bg) 94%, black);
  border-color: color-mix(in srgb, var(--w-accent) 28%, transparent);
}
html[data-world]:not([data-world="studio"]) .logo-name { color: var(--w-gold); }
html[data-world]:not([data-world="studio"]) .logo-sub,
html[data-world]:not([data-world="studio"]) .nav a { color: var(--w-muted); }
html[data-world]:not([data-world="studio"]) .nav a[aria-current="page"] { color: var(--w-fg); }
html[data-world]:not([data-world="studio"]) .nav-cta {
  background: var(--w-accent) !important;
  color: #fff8f2 !important;
}
html[data-world]:not([data-world="studio"]) .eyebrow { color: var(--w-accent); }
html[data-world]:not([data-world="studio"]) h1,
html[data-world]:not([data-world="studio"]) h2,
html[data-world]:not([data-world="studio"]) .display { color: var(--w-fg); font-family: var(--w-display); }
html[data-world]:not([data-world="studio"]) .lede { color: var(--w-muted); }
html[data-world]:not([data-world="studio"]) .nav-toggle span { background: var(--w-fg); }
html[data-world]:not([data-world="studio"]) .status,
html[data-world]:not([data-world="studio"]) .wipe-labels,
html[data-world]:not([data-world="studio"]) .facts {
  color: var(--w-muted);
}
html[data-world]:not([data-world="studio"]) .btn {
  color: var(--w-fg);
  border-color: color-mix(in srgb, var(--w-fg) 28%, transparent);
  background: transparent;
}
html[data-world]:not([data-world="studio"]) .btn-primary {
  background: var(--w-accent);
  border-color: var(--w-accent);
  color: #fff8f2;
}
html[data-world]:not([data-world="studio"]) .btn-primary:hover {
  background: color-mix(in srgb, var(--w-accent) 80%, black);
  border-color: color-mix(in srgb, var(--w-accent) 80%, black);
}

.veil {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  z-index: 30;
}
html.is-crossing .veil { animation: cross 680ms var(--ease); }
@keyframes cross {
  0% { opacity: 0; }
  38% { opacity: 1; }
  100% { opacity: 0; }
}

/* Arrival */
.arrival {
  padding: 14vh 0 12vh;
  position: relative;
}
.arrival h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.1rem);
  max-width: 14ch;
  margin: 0 0 1.1rem;
}
.arrival .seal {
  position: absolute;
  right: 4%;
  top: 18%;
  width: min(132px, 26vw);
  filter: drop-shadow(0 12px 28px color-mix(in srgb, var(--green-ink) 16%, transparent));
}
.arrival .actions { margin-top: 1.6rem; }

/* Wipe */
.athens-peak { padding: 2rem 0 5rem; }
.athens-peak h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 0.6rem; max-width: 14ch; }
.status {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1rem;
}
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(70vh, 680px);
  background: var(--board);
  border: 1px solid var(--rule);
  overflow: hidden;
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
  margin-top: 1.4rem;
}
.layer { position: absolute; inset: 0; background-size: cover; background-position: top center; background-repeat: no-repeat; }
.layer-after {
  background-image: url("/images/athens-after.jpg");
}
.layer-before {
  background-image: url("/images/athens-before.jpg");
  width: var(--pos, 50%);
}
.handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  transform: translateX(-50%);
  z-index: 2;
  width: 0;
}
.handle::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 2px;
  background: var(--paper);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green-ink) 30%, transparent);
  transform: translateX(-50%);
}
.grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--green);
  display: grid;
  place-items: center;
  color: var(--green-ink);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 16%, transparent);
}
.wipe-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.cue i {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--green);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleX(0.4); opacity: 0.35; }
  50% { transform: scaleX(1); opacity: 1; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wipe-fallback { display: none; gap: 0.5rem; margin-top: 0.8rem; }

@media (max-width: 700px) {
  .layer-after { background-image: url("/images/athens-after-mobile.jpg"); }
  .layer-before { background-image: url("/images/athens-before-mobile.jpg"); }
  .compare { aspect-ratio: 9 / 14; max-height: 70vh; }
}

.facts {
  margin: 0.65rem auto 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.world-hero img {
  width: 100%;
  height: 34vh;
  object-fit: cover;
  object-position: center 40%;
}

/* Diagnosis */
.diagnosis { padding: 5rem 0 4rem; }
.diagnosis h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 18ch; margin: 0 0 0.7rem; }
.gaps { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.gaps li {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 500;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

/* Doors */
.selected { padding: 3rem 0 5rem; }
.selected h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 16ch; margin: 0 0 0.8rem; }
.door-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.door {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  height: 260px;
  text-decoration: none;
  background: var(--board);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
}
.door::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--door-accent, var(--green));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 400ms var(--ease);
}
.door:hover::before, .door:focus-visible::before { transform: scaleY(1); }
.door-copy { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.door-copy strong { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; }
.door-copy p { margin: 0.45rem 0 0; color: var(--steel); max-width: 32ch; }
.door-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.door img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 35%;
}
.door[data-world="athens"] { --door-accent: #c45c26; }
.door[data-world="valley"] { --door-accent: #e08a3c; }
.door[data-world="burs"] { --door-accent: #c43c2c; }

/* Philosophy / method / capabilities */
.philosophy, .capabilities, .method { padding: 4rem 0; }
.philosophy h2, .method h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 16ch; margin: 0 0 1rem; }
.principles { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.principles li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.principles strong { color: var(--green-ink); font-weight: 600; }

.included { padding: 3rem 0; }
.included h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 0.6rem; }

.steps { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.steps li { padding: 0.85rem 0; border-top: 1px solid var(--rule); }
.steps span { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.steps strong { font-family: var(--display); font-size: 1.35rem; font-weight: 500; }

.human { padding: 7vh 0; }
.human h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 0.4rem; }
.case-open { padding: 1rem 0 2.2rem; }
.case-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w-muted, var(--slate));
  margin: 0 0 0.55rem;
}
.case-title {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  max-width: 22ch;
  margin: 0 auto 1.1rem;
  text-align: center;
}
.case-open .compare,
.case-open .wipe-labels { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; }

.commission { padding: 14vh 0 12vh; border-top: 1px solid var(--rule); }
.commission h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 16ch; margin: 0 0 1.2rem; }

/* Inner pages */
.page-hero { padding: 8vh 0 3rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16ch; margin: 0 0 0.8rem; }
.prose { max-width: 40rem; }
.prose p { color: var(--steel); }
.outcomes { display: grid; gap: 0.8rem; margin: 1.6rem 0; }
.outcome { padding: 1.2rem 1.1rem; border: 1px solid var(--rule); background: var(--board); }
.outcome h2 { margin: 0 0 0.3rem; font-size: 1.6rem; }

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
  margin-top: 1.6rem;
}
.form label { display: grid; gap: 0.3rem; font-size: 0.86rem; font-weight: 500; }
.form input, .form select, .form textarea {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 0.7rem 0.75rem;
  border-radius: 2px;
  color: var(--ink);
}
.form textarea { min-height: 8rem; resize: vertical; }
.confirm {
  display: none;
  max-width: 34rem;
  padding: 1.6rem 0;
}
.confirm.is-on { display: block; }
.confirm h2 { font-size: 2rem; }

.case-block { padding: 2.2rem 0; }
.case-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.7rem; }
.stills { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1rem; }
.stills img { width: 100%; height: 220px; object-fit: cover; border: 1px solid var(--rule); }

html[data-world="athens"] .site-footer { /* stays paper by spec */ }

@media (max-width: 800px) {
  .door { grid-template-columns: 1fr; height: auto; }
  .door img { height: 180px; }
  .principles li { grid-template-columns: 1fr; gap: 0.2rem; }
  .stills { grid-template-columns: 1fr; }
  .arrival .seal { width: 72px; top: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.is-crossing .veil { animation: none; }
  .cue i { animation: none; }
  .wipe-fallback { display: flex; }
}
