/* ===============================================================
   Two Kitchens — AxiaOrigin × ValuesMove
   Scrollytelling build. Vanilla CSS, no build step.
   Design tokens inherited from the house style (../../CLAUDE.md).
   =============================================================== */

:root {
  --aubergine: #2A2140;   /* shared anchor + dark stat bands + closing canvas */
  --crimson:   #FC2454;   /* accent + key figure */
  --purple:    #90489C;   /* ValuesMove accent */
  --sky:       #00B4E4;   /* focus rings */
  --paper:     #F7F3EE;   /* soft warm tint */
  --page:      #EEEAE3;   /* page canvas */
  --surface:   #FFFFFF;   /* elevated surfaces */
  --ink:       #241F2B;   /* body text */
  --ink-soft:  #5C5666;   /* secondary text */
  --hairline:  color-mix(in srgb, var(--ink) 14%, transparent);

  /* dark-canvas type tints — all palette-derived (house rule §3) */
  --on-dark-body:  color-mix(in srgb, var(--paper) 82%, var(--aubergine));
  --on-dark-quiet: color-mix(in srgb, var(--paper) 58%, var(--aubergine));

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1280px;

  --reveal-shift: 18px;   /* scroll-reveal travel */
  --scene-zoom: 1.18;     /* in-frame image zoom — enlarges content + crops the bottom-right watermark */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-optical-sizing: auto; margin: 0; line-height: 1.1; }
cite { font-style: normal; }

/* visually hidden but available to assistive tech */
.u-vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--aubergine); color: var(--surface);
  padding: 0.6rem 1rem; border-radius: 0 0 6px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible, input:focus-visible, button:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px;
}

/* ===== Banner ===== */
.banner { position: relative; z-index: 50; background: var(--surface);
  box-shadow: 0 8px 24px -10px rgba(36,31,43,.20), 0 2px 6px -3px rgba(36,31,43,.10); }
.banner__spine { height: 4px; background: var(--aubergine); }
.banner__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: center;
}
.banner__home {
  position: absolute; left: clamp(1rem, 3vw, 2rem); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.85rem; border: 1px solid var(--hairline); border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  font-size: 0.85rem; text-decoration: none; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.banner__home:hover { color: var(--crimson);
  border-color: color-mix(in srgb, var(--crimson) 45%, var(--hairline)); }
.banner__home-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.banner__lockup { display: flex; align-items: center; gap: clamp(1.1rem, 4vw, 2.6rem); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; transition: opacity .15s ease; }
.brand:hover img { opacity: .78; }
.brand--axia img { height: 28px; }
.brand--values img { height: 36px; }
.brand-divider { width: 1px; height: 34px; background: var(--hairline); }

/* ===== "Why are we doing this?" disclosure — an invitation; mirrors the home pill's position ===== */
.banner__why {
  position: absolute; right: clamp(1rem, 3vw, 2rem); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1rem; border: 0; border-radius: 999px;
  --why-shadow: 0 6px 18px -6px color-mix(in srgb, var(--crimson) 55%, transparent);
  background: linear-gradient(135deg, var(--crimson), var(--purple));
  color: #fff; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  line-height: 1; white-space: nowrap; cursor: pointer; box-shadow: var(--why-shadow);
  transition: box-shadow .15s ease, filter .15s ease;
}
.banner__why:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--crimson) 62%, transparent);
}
.banner__why-chevron { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .3s ease; }
.banner__why[aria-expanded="true"] .banner__why-chevron { transform: rotate(180deg); }

/* one-time attention cue (JS adds .is-hint a few seconds after load; never opens it) — an expanding crimson ring */
@keyframes whyPulse {
  0%   { box-shadow: var(--why-shadow), 0 0 0 0 color-mix(in srgb, var(--crimson) 50%, transparent); }
  70%  { box-shadow: var(--why-shadow), 0 0 0 13px color-mix(in srgb, var(--crimson) 0%, transparent); }
  100% { box-shadow: var(--why-shadow), 0 0 0 0 color-mix(in srgb, var(--crimson) 0%, transparent); }
}
.banner__why.is-hint { animation: whyPulse 1.5s ease-out 0s 3; }

/* the drawer: a dark immersive panel that slides down (grid-template-rows reveal) */
.why-drawer {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--aubergine);
  box-shadow: 0 24px 40px -18px rgba(36, 31, 43, .55);
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease;
}
.banner.is-why-open .why-drawer { grid-template-rows: 1fr; }
.why-drawer__clip { overflow: hidden; }
.why-drawer__content {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.9rem, 5vw, 2.9rem) clamp(1.5rem, 4vw, 2.6rem);
}
.why-drawer__content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2rem); font-weight: 600; color: var(--surface);
}
.why-drawer__content p {
  margin: 0 0 0.9rem; max-width: 66ch; line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem); color: var(--on-dark-body);
}
.why-drawer__content p:last-child { margin-bottom: 0; }
.why-drawer__close {
  position: absolute; top: clamp(1rem, 2.5vw, 1.5rem); right: clamp(1rem, 3vw, 1.8rem);
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border: 1px solid color-mix(in srgb, var(--paper) 32%, transparent); border-radius: 50%;
  background: transparent; color: color-mix(in srgb, var(--paper) 75%, var(--aubergine));
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.why-drawer__close:hover {
  color: #fff; border-color: var(--crimson);
  background: color-mix(in srgb, var(--crimson) 24%, transparent);
}
.why-drawer__close svg { width: 16px; height: 16px; }

/* ===== Hero ===== */
.hero {
  max-width: 62ch; margin: 0 auto; text-align: center; position: relative;
  min-height: calc(100vh - var(--banner-h, 4.75rem));
  min-height: calc(100svh - var(--banner-h, 4.75rem));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem clamp(4.5rem, 11vh, 6.5rem);
}
.hero__title { font-weight: 600; font-size: clamp(3.2rem, 2rem + 6.5vw, 6rem); letter-spacing: -0.02em; line-height: 1.02; }
.hero__tagline {
  margin: 0.85rem 0 0; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.6rem, 1.1rem + 2.3vw, 2.9rem); line-height: 1.2; color: var(--ink);
}
.hero__tagline span { display: block; white-space: nowrap; }
.hero__lede {
  margin: 1.5rem auto 0; max-width: 40ch; color: var(--ink);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.55;
}
.hero__hint {
  position: absolute; left: 50%; bottom: clamp(1.4rem, 4vh, 2.4rem); transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 0;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__hint svg { width: 20px; height: 20px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ===== Scene — two kitchens side by side ===== */
.scene {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 7vw, 4.5rem);
}
.scene__time {
  width: max-content; max-width: 100%;
  margin: 0 auto clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600; font-size: clamp(1.3rem, 0.95rem + 1.4vw, 2rem);
  letter-spacing: 0.005em; color: var(--ink); text-align: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px; padding: 0.5rem 1.5rem;
  box-shadow: 0 14px 30px -16px rgba(36,31,43,.5), 0 2px 6px -3px rgba(36,31,43,.10);
}
.scene__pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.kitchen__label {
  font-family: var(--font-body); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.9rem;
}

/* Identical frame both sides — only circumstance differs.
   The image is zoomed from its top-left corner inside an overflow-clipped frame, so
   it reads a touch larger and the source watermark in the bottom-right is cropped away. */
.frame { margin: 0; }
.frame__media {
  position: relative; overflow: hidden;
  aspect-ratio: 1200 / 655; border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 6%, var(--surface));
  box-shadow: 0 16px 40px -22px rgba(36,31,43,.5);
}
.frame__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: left top;
  transform: scale(var(--scene-zoom, 1.18)); transform-origin: left top;
}

/* Narration — the primary voice: prominent and legible, weighted between label and headline */
.narr {
  margin: 1.2rem 0 0;
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem); line-height: 1.45;
  color: var(--ink); font-weight: 500;
}
.kitchen--one .narr,
.kitchen--two .narr { font-weight: 600; }   /* both bold — narration is the primary voice */

/* ===== Stat strip — full-width dark band; text sits RIGHT (Kitchen Two's side) ===== */
.statband { background: var(--aubergine); color: var(--surface); }
.statband__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 10vw, 7rem) clamp(1rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem);
}
.statband__stat {
  grid-column: 2;                 /* right half; left stays quiet (empty) */
  margin: 0;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.05rem); line-height: 1.32;
  color: var(--surface);
  border-left: 3px solid var(--crimson);   /* crimson = the data highlight (house style) */
  padding-left: clamp(1rem, 2vw, 1.6rem);
}
.statband__stat cite {
  display: block; margin-top: 1rem;
  font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; line-height: 1.5;
  color: var(--on-dark-quiet);
}

/* ===== End state — dark canvas, no illustrations ===== */
.endstate { background: var(--aubergine); color: var(--surface); }
.endstate__inner {
  max-width: 720px; margin: 0 auto; padding: clamp(4.5rem, 14vw, 9rem) 1.5rem; text-align: center;
}
.endstate__stat { margin: 0; }
.endstate__figure {
  display: block; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  color: var(--crimson); font-size: clamp(3rem, 1.5rem + 7vw, 6rem); line-height: 1.02; letter-spacing: -0.02em;
}
.endstate__figure--sm { display: inline; font-size: 1em; }
.endstate__line {
  display: block; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(1.3rem, 0.95rem + 1.6vw, 2.1rem); line-height: 1.3; margin-top: 0.4rem;
  color: var(--surface);
}
.endstate__line:first-of-type { margin-top: 0.6rem; }
.endstate__cite {
  display: block; margin-top: 1.1rem; font-family: var(--font-body); font-size: 0.85rem;
  color: var(--on-dark-quiet);
}
.endstate__closing { margin: clamp(2.5rem, 7vw, 4rem) auto 0; max-width: 62ch; }
.endstate__closing p {
  margin: 0 0 1.2rem; line-height: 1.6;
  font-size: clamp(1.18rem, 1.02rem + 0.7vw, 1.5rem);
  color: color-mix(in srgb, var(--paper) 90%, var(--aubergine));
}
/* final line is the question that leads into the CTA — set it as a Fraunces lead-in
   (still clearly secondary to the crimson headline figure above) */
.endstate__closing p:last-child {
  margin: clamp(1.4rem, 4vw, 2rem) 0 0;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); line-height: 1.35; color: var(--surface);
}

.cta-linkedin {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: clamp(2rem, 5vw, 2.75rem);
  padding: 0.85rem 1.6rem; background: var(--crimson); color: #fff;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1;
  text-decoration: none; border-radius: 999px; transition: background .15s ease;
}
.cta-linkedin:hover { background: color-mix(in srgb, var(--crimson) 85%, #000); }
.cta-linkedin:focus-visible { outline-color: var(--sky); }
.cta-linkedin__icon { width: 20px; height: 20px; flex: 0 0 auto; }

/* ===== Footer — co-branded; deep near-black, distinct from the aubergine closing (house style §5/§9) ===== */
.footer {
  background: color-mix(in srgb, var(--ink) 82%, #000);
  color: var(--surface);
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: clamp(1.6rem, 5vw, 3rem) clamp(2rem, 6vw, 4rem);
}
.footer__message { flex: 1 1 420px; max-width: 640px; }
.footer__contact { flex: 0 0 auto; }
.footer__contact-title {
  margin: 0 0 0.75rem; font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 56%, var(--aubergine));
}
.footer__contact-list { list-style: none; margin: 0; padding: 0; }
.footer__contact-list li { margin: 0 0 0.5rem; }
.footer__contact-list li:last-child { margin-bottom: 0; }
.footer__contact-list a {
  color: var(--surface); font-size: 1rem; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 26%, transparent);
  transition: color .15s ease, border-color .15s ease;
}
.footer__contact-list a:hover { color: var(--crimson); border-color: var(--crimson); }
.footer__lead {
  margin: 0; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.2rem, 1.02rem + 0.8vw, 1.6rem); line-height: 1.35; color: var(--surface);
}
.footer__body {
  margin: clamp(0.9rem, 2vw, 1.15rem) 0 0; max-width: 60ch;
  font-size: 1rem; line-height: 1.7; color: color-mix(in srgb, var(--paper) 74%, var(--aubergine));
}
.footer__body strong { color: var(--surface); font-weight: 600; }
.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 1.75rem; margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
}
.footer__lockup { display: inline-flex; align-items: center; gap: clamp(0.9rem, 3vw, 1.5rem); }
.footer__lockup .brand--axia img { height: 58px; }     /* reversed stacked mark — taller to balance */
.footer__lockup .brand--values img { height: 38px; }
.footer__lockup .brand-divider { height: 44px; background: color-mix(in srgb, var(--paper) 22%, transparent); }
.footer__meta { margin: 0; font-size: 0.82rem; letter-spacing: 0.02em; color: color-mix(in srgb, var(--paper) 56%, var(--aubergine)); }

/* ===== Scroll-reveal states (JS adds .is-in) ===== */
[data-reveal], [data-reveal-after] {
  opacity: 0; transform: translateY(var(--reveal-shift));
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
[data-reveal-after] { transition-delay: .2s; }   /* narration follows the image */
.is-in[data-reveal], .is-in [data-reveal-after],
.is-in[data-reveal-after] { opacity: 1; transform: none; }

/* End-state stagger — each element lands before the next */
.endstate .endstate__stat[data-reveal]    { transition-duration: .8s; }
.endstate .endstate__closing[data-reveal] { transition-delay: .45s; }
.endstate .cta-linkedin[data-reveal]       { transition-delay: .9s; }

/* ===== Mobile — stack kitchens (One above Two) ===== */
@media (max-width: 767px) {
  .scene__pair { grid-template-columns: 1fr; gap: 2.25rem; }
  .statband__inner { grid-template-columns: 1fr; }
  .statband__stat { grid-column: 1; }   /* full width on mobile */

  .banner__inner { flex-direction: column; gap: 0.8rem; }
  .banner__home, .banner__why { position: static; transform: none; }
}
@media (max-width: 600px) {
  .brand--axia img { height: 22px; }
  .brand--values img { height: 28px; }
}

/* ===== Reduced motion — show everything immediately, no transforms ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0 !important;
  }
  [data-reveal], [data-reveal-after] { opacity: 1 !important; transform: none !important; }
  .hero__hint svg { animation: none; }
}
