/* =================================================================
   Amaya Patterson — UX Research Portfolio
   Palette, type, layout, annotation system, motion.
   ================================================================= */

:root {
  /* ---- Palette (Sage system) ---- */
  --bg:        #F7F5EE;   /* Floral White — primary background */
  --ink:       #000000;   /* Black — body text */
  --ink-soft:  #4A4A42;   /* secondary text, AA on Floral White */
  --sage:      #666D57;   /* Sage — signature accent (AA 4.57:1 on bg) */
  --sage-deep: #4D5341;   /* darker Sage for hover/active */
  --sand:      #BBB5A7;   /* Sand — muted, cards, dividers */
  --cloud:     #D0D0CE;   /* Cloud — soft sections, voice annotations */

  /* ---- Aliases (keep existing rule names working, remapped to new palette) ---- */
  --lychee:       var(--bg);
  --veranda-blue: var(--sage);    /* primary accent + methodology notes */
  --blue-deep:    var(--sage);    /* accent text/links */
  --cupid-pink:   var(--sage);    /* CTAs/accents (single-accent system) */
  --pink-deep:    var(--sage-deep);
  --sky-cloud:    var(--cloud);
  --melon:        var(--sand);

  --paper:  #FBFAF4;   /* lifted card surface (faint warm) */
  --line:   var(--sand);

  --maxw: 1100px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* Modern bold sans for both headlines and body (leahkim.design register) */
  --font-serif: "General Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:  "General Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lychee);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink-deep); }

p { margin: 0 0 1.1em; }

::selection { background: var(--melon); color: var(--ink); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--lychee);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); position: relative; }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0 0 1.2rem;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--lychee) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__name {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 500;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  margin-right: auto;
}
.nav__name:hover { color: var(--ink); }
.nav__links { display: flex; gap: 1.4rem; align-items: center; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-size: 0.92rem;
  font-weight: 500; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--cupid-pink); transition: width 0.3s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { width: 100%; }

.nav__resume {
  padding: 0.45rem 0.95rem; border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 600;
}
.nav__resume::after { display: none; }
.nav__resume:hover { background: var(--ink); color: var(--lychee) !important; }

/* Depth toggle */
.toggle {
  display: inline-flex; align-items: center; gap: 0; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 3px;
}
.toggle__btn {
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.35rem 0.75rem; border-radius: 999px; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.toggle__btn[aria-pressed="true"] { background: var(--ink); color: var(--lychee); }

.nav__menu-btn { display: none; }

@media (max-width: 860px) {
  .nav__inner { flex-wrap: wrap; gap: 0.75rem 1rem; }
  .nav__links { order: 3; width: 100%; flex-wrap: wrap; gap: 0.9rem 1.2rem; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__menu-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: transparent; border: 1.5px solid var(--line);
    border-radius: 8px; padding: 0.4rem 0.7rem; font-weight: 600;
    font-family: var(--font-sans); color: var(--ink); cursor: pointer;
  }
  .toggle__btn { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
}

/* =================================================================
   ANNOTATIONS (margin notes)
   ================================================================= */
/* A row with content + a right-hand margin note on desktop */
.annotated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 24vw, 320px);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.annotated__body { min-width: 0; }

.note {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.55;
  background: var(--paper);
  border-left: 3px solid var(--veranda-blue);
  padding: 0.95rem 1.1rem;
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  position: sticky; top: 5.5rem;
}
.note--voice { border-left-color: var(--cloud); border-left-width: 4px; }
.note__tag {
  display: inline-block; font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--sage); margin-bottom: 0.5rem;
}
.note--voice .note__tag { color: var(--ink-soft); }
.note p { margin: 0 0 0.5em; }
.note p:last-child { margin-bottom: 0; }
.note b, .note strong { font-weight: 700; }
.note__line { display: block; }

/* Mobile: tap-to-expand */
.note__toggle { display: none; }

@media (max-width: 900px) {
  .annotated { display: block; }
  .note {
    position: static; margin-top: 1rem; border-radius: 10px;
    border-left-width: 3px;
  }
  .note__inner { display: none; }
  .note.is-open .note__inner { display: block; }
  .note__toggle {
    display: flex; width: 100%; align-items: center; gap: 0.5rem;
    background: transparent; border: 0; cursor: pointer;
    font-family: var(--font-sans); font-weight: 700; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue-deep);
    padding: 0;
  }
  .note--voice .note__toggle { color: var(--pink-deep); }
  .note__chevron { margin-left: auto; transition: transform 0.25s var(--ease); }
  .note.is-open .note__chevron { transform: rotate(180deg); }
}

/* Quick-scan mode hides annotations entirely */
body[data-mode="quick"] .note { display: none; }
body[data-mode="quick"] .annotated {
  grid-template-columns: 1fr;
}
body[data-mode="quick"] .quick-hide { display: none !important; }

/* =================================================================
   HERO
   ================================================================= */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 4vw, 3.5rem); }
.hero__title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 16ch;
}
.hero__title em { font-style: normal; color: var(--sage); }
.hero__tag {
  font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink-soft);
  margin-top: 1.4rem; max-width: 32ch; font-weight: 500;
}

/* Quiet "Currently:" status line with a Sage dot */
.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.6rem; font-size: 0.92rem; color: var(--ink-soft); font-weight: 500;
}
.status__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--sage);
  flex: 0 0 auto;
}
.scrollcue {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 2.6rem; font-weight: 600; text-decoration: none; color: var(--ink);
  font-size: 0.95rem;
}
.scrollcue__arrow { animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(5px);} }
@media (prefers-reduced-motion: reduce) { .scrollcue__arrow { animation: none; } }

/* =================================================================
   PHILOSOPHY (oversized feature)
   ================================================================= */
.philosophy {
  background: var(--veranda-blue);
  color: var(--ink);
}
.philosophy__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  font-weight: 420; line-height: 1.18; letter-spacing: -0.02em;
  max-width: 22ch; margin: 0;
}
.philosophy__quote em { font-style: italic; }
.philosophy__attr { margin-top: 1.6rem; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; }

/* =================================================================
   LIFE AS DATA
   ================================================================= */
.intro-lead {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.35; font-weight: 500;
  letter-spacing: -0.015em;
  max-width: 40ch; color: var(--ink); margin: 1.2rem 0 0;
}
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; margin-top: 2.5rem;
}
.stat { background: var(--lychee); padding: 1.8rem 1.6rem; }
.stat__num {
  font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 460; line-height: 1; color: var(--pink-deep); letter-spacing: -0.02em;
}
.stat__label { font-weight: 700; margin: 0.6rem 0 0.4rem; font-size: 0.98rem; }
.stat__body { font-size: 0.92rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* Origin story */
.origin { border-left: 3px solid var(--cupid-pink); padding-left: clamp(1.2rem, 3vw, 2rem); }
.origin p { font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 62ch; }
.origin p.origin__brush {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink); line-height: 1.45;
}

/* =================================================================
   WORK GRID
   ================================================================= */
.work-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
.work-grid > .card:first-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: clamp(1.6rem, 3vw, 2.4rem);
  text-decoration: none; color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -22px rgba(43,38,36,0.45);
  border-color: var(--veranda-blue); color: var(--ink);
}
.card__num {
  font-family: var(--font-serif); font-size: 0.95rem; color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.card__title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0.5rem 0 0.7rem;
}
.card:first-child .card__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.card__desc { font-size: 0.98rem; color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 60ch; }
.card__tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blue-deep);
}
.card__outcome {
  margin-top: auto; padding-top: 1.2rem; display: flex; align-items: baseline; gap: 0.6rem;
  border-top: 1px solid var(--line);
}
.card__outcome b {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--pink-deep);
  font-weight: 800; white-space: nowrap;
}
.card__outcome span { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; }
.card__cta {
  margin-top: 1.1rem; font-weight: 700; font-size: 0.9rem; color: var(--pink-deep);
  display: inline-flex; gap: 0.4rem;
}
.card:hover .card__cta { gap: 0.7rem; }

/* =================================================================
   PROCESS
   ================================================================= */
.process-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; }
@media (max-width: 800px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .process-grid { grid-template-columns: 1fr; } }
.pstep {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; background: var(--lychee);
  position: relative;
}
.pstep__k {
  font-family: var(--font-serif); font-size: 2.4rem; color: var(--sky-cloud); line-height: 1;
}
.pstep__h { font-family: var(--font-serif); font-size: 1.3rem; margin: 0.6rem 0 0.5rem; }
.pstep__p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.pstep:nth-child(1) .pstep__k { color: var(--veranda-blue); }
.pstep:nth-child(2) .pstep__k { color: var(--cupid-pink); }
.pstep:nth-child(3) .pstep__k { color: var(--melon); }
.pstep:nth-child(4) .pstep__k { color: var(--sky-cloud); }

/* =================================================================
   CONTACT
   ================================================================= */
.contact { background: var(--ink); color: var(--bg); }
.contact a { color: var(--cloud); }
.contact a:hover { color: var(--bg); }
.contact h2 { color: var(--lychee); }
.contact__lead { font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.8rem); max-width: 20ch; }
.contact__row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2rem; align-items: center; }
.contact__link { font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--sage); color: var(--bg); border: 0; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  padding: 0.7rem 1.2rem; border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-copy:hover { background: var(--sage-deep); transform: translateY(-2px); }
.contact__share-note { font-size: 0.92rem; color: var(--sky-cloud); margin-top: 0.8rem; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--lychee); border-top: 1px solid var(--line); }
.footer__meta {
  background: var(--paper); border: 1px dashed var(--cupid-pink); border-radius: 14px;
  padding: 1.6rem 1.8rem; max-width: 60ch; font-size: 0.95rem;
}
.footer__meta .note__tag { color: var(--pink-deep); display: block; margin-bottom: 0.5rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between;
  margin-top: 2.5rem; font-size: 0.86rem; color: var(--ink-soft);
}

/* =================================================================
   CUSTOM CURSOR (desktop, pointer-fine only)
   ================================================================= */
/* Sage circle that trails the real cursor. The native pointer stays visible;
   this is an accent that grows + fills + shows a micro-label over interactives. */
.cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    border-radius: 50%; transform: translate(-50%, -50%);
    width: 26px; height: 26px; border: 1.6px solid var(--sage);
    display: grid; place-items: center;
    transition: width 0.22s var(--ease), height 0.22s var(--ease),
                background 0.22s var(--ease);
  }
  .cursor-ring__label {
    font-family: var(--font-sans); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.04em; color: var(--bg); text-transform: lowercase;
    opacity: 0; transition: opacity 0.18s var(--ease); white-space: nowrap;
  }
  .cursor-ring.is-hot {
    width: 60px; height: 60px; background: var(--sage); border-color: var(--sage);
  }
  .cursor-ring.is-hot .cursor-ring__label { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-ring { display: none !important; }
}

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--sage); z-index: 150; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .progress { transition: none; } }

/* ---------- "press D" hint near the toggle ---------- */
.kbd-hint {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.7rem; color: var(--ink-soft); font-weight: 500; user-select: none;
}
.kbd-hint kbd {
  font-family: var(--font-sans); font-size: 0.66rem; font-weight: 700;
  background: var(--cloud); color: var(--ink);
  border-radius: 5px; padding: 0.1rem 0.4rem; border: 1px solid var(--sand);
  line-height: 1.4;
}
@media (max-width: 860px) { .kbd-hint { display: none; } }

/* ---------- Featured pull-quote (Alaska adaptability moment) ---------- */
.feature-quote {
  margin: 2.5rem 0 0; padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--cloud); border-radius: 18px;
}
.feature-quote p {
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.28; font-weight: 600;
  letter-spacing: -0.02em; max-width: 28ch; margin: 0; color: var(--ink);
}
.feature-quote .feature-quote__lead { color: var(--sage); }

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* =================================================================
   CASE STUDY PAGES
   ================================================================= */
.cs-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.cs-back { font-weight: 600; font-size: 0.9rem; text-decoration: none; display: inline-flex; gap: 0.4rem; }
.cs-hero__kicker { font-family: var(--font-serif); font-style: italic; color: var(--ink-soft); font-size: 1.2rem; margin-top: 1.6rem; }
.cs-hero__title { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0.6rem 0 0; letter-spacing: -0.03em; }
.cs-hero__tag { margin-top: 1.2rem; }

.summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin: 2rem 0;
}
.summary__cell { background: var(--paper); padding: 1.3rem 1.4rem; }
.summary__k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; color: var(--blue-deep); margin-bottom: 0.4rem; }
.summary__v { font-size: 0.96rem; margin: 0; }

/* O→H→D→N blocks */
.ohdn { margin-top: 1rem; }
.ohdn__step { padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.ohdn__label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 1rem;
}
.ohdn__label .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--veranda-blue); }
.ohdn__step:nth-of-type(2) .dot { background: var(--cupid-pink); }
.ohdn__step:nth-of-type(3) .dot { background: var(--melon); }
.ohdn__step:nth-of-type(4) .dot { background: var(--sky-cloud); }
.ohdn__step:nth-of-type(5) .dot { background: var(--blue-deep); }
.ohdn p { max-width: 64ch; }
.ohdn ul { max-width: 64ch; padding-left: 1.2rem; }
.ohdn li { margin-bottom: 0.6rem; }
.ohdn blockquote {
  margin: 1.2rem 0; padding: 0.4rem 0 0.4rem 1.4rem; border-left: 3px solid var(--cupid-pink);
  font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--ink);
}

/* Outcome highlight line */
.outcome-line {
  background: var(--sage); color: var(--bg); border-radius: 14px; padding: 1.4rem 1.6rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500;
  margin: 1.5rem 0;
}
.outcome-line b { font-style: normal; font-family: var(--font-sans); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.14em; display: block; margin-bottom: 0.5rem; }

/* "What this proves" */
.proves { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.6rem, 3vw, 2.4rem); margin-top: 1rem; }
.proves h3 { font-size: 1.6rem; }
.proves ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.8rem; }
.proves li { padding-left: 1.6rem; position: relative; }
.proves li::before { content: "→"; position: absolute; left: 0; color: var(--pink-deep); font-weight: 700; }
.proves li b { font-weight: 700; }

/* =================================================================
   RECREATED ARTIFACTS (palette-styled web sections)
   ================================================================= */
.artifact { margin: 1.5rem 0; }
.artifact__frame {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper);
}
.artifact__cap { font-size: 0.84rem; color: var(--ink-soft); margin-top: 0.7rem; font-style: italic; }

/* Brand architecture diagram (Favour Pieri) */
.arch { padding: clamp(1.8rem, 4vw, 3rem); background: #16130F; color: #F3F1EC; text-align: center; }
.arch__parent {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: 0.04em;
  border: 1px solid #C9B79A; display: inline-block; padding: 0.7rem 1.6rem; border-radius: 4px;
}
.arch__stem { width: 1px; height: 34px; background: #6f6557; margin: 0 auto; }
.arch__children { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 0.4rem; }
@media (max-width: 620px) { .arch__children { grid-template-columns: 1fr; } }
.arch__child { border: 1px solid #4a4338; border-radius: 6px; padding: 1.2rem; }
.arch__child h4 { font-family: var(--font-serif); font-size: 1.15rem; color: #F3F1EC; margin: 0 0 0.4rem; letter-spacing: 0.06em; }
.arch__child p { font-size: 0.82rem; color: #B7AE9F; margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { background: var(--paper); padding: 1.4rem; }
.pillar h4 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.pillar p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

/* She is / She is not */
.voice-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
@media (max-width: 560px) { .voice-cols { grid-template-columns: 1fr; } }
.voice-col { background: var(--paper); padding: 1.6rem; }
.voice-col h4 { font-size: 1.1rem; }
.voice-col ul { list-style: none; padding: 0; margin: 0; }
.voice-col li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.voice-col--is h4 { color: var(--blue-deep); }
.voice-col--isnot h4 { color: var(--pink-deep); }

/* Before/after frame */
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
@media (max-width: 560px) { .beforeafter { grid-template-columns: 1fr; } }
.ba { padding: 1.6rem; }
.ba--before { background: #E7E3D6; }
.ba--after { background: var(--paper); border-left: 3px solid var(--veranda-blue); }
.ba__k { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; margin-bottom: 0.6rem; }
.ba--before .ba__k { color: var(--ink-soft); }
.ba--after .ba__k { color: var(--blue-deep); }
.ba p { margin: 0; font-size: 0.95rem; }

/* Swatch row */
.swatches { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 1.6rem; }
.swatch { display: flex; flex-direction: column; gap: 0.4rem; align-items: center; font-size: 0.72rem; }
.swatch__chip { width: 60px; height: 60px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.08); }

/* Agathe drop-off flow (centerpiece) */
.flow { padding: clamp(1.6rem, 4vw, 2.6rem); }
.flow__rail { display: grid; gap: 0; }
.flowstep { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; position: relative; padding-bottom: 1.6rem; }
.flowstep:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--sky-cloud);
}
.flowstep__num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--veranda-blue); color: var(--ink);
  display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
}
.flowstep__b h4 { margin: 0.4rem 0 0.3rem; font-size: 1.15rem; }
.flowstep__b p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.flow__branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.6rem; }
@media (max-width: 600px) { .flow__branches { grid-template-columns: 1fr; } }
.branch { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem; background: var(--lychee); }
.branch__r { font-weight: 700; font-size: 0.9rem; }
.branch__arrow { color: var(--pink-deep); font-weight: 700; }
.branch__o { font-size: 0.86rem; color: var(--ink-soft); }

/* Cohesion board (Tahjeira) */
.cohesion { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 640px) { .cohesion { grid-template-columns: 1fr 1fr; } }
.touch { background: #1a1718; color: #F4E9EC; aspect-ratio: 3/4; display: grid; place-items: center; text-align: center; padding: 1rem; }
.touch span { font-family: var(--font-serif); font-size: 0.78rem; letter-spacing: 0.1em; opacity: 0.85; }
.touch__init { font-family: var(--font-serif); font-size: 2rem; color: #E8B9C3; }

/* Journey map (Revamped) */
.journey { padding: clamp(1.6rem,4vw,2.4rem); overflow-x: auto; }
.journey__row { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.jcell { background: var(--paper); padding: 1rem; }
.jcell--head { background: var(--ink); color: var(--lychee); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.jcell--label { background: var(--sky-cloud); font-weight: 700; font-size: 0.82rem; }
.jcell p { margin: 0; font-size: 0.84rem; }
.jcell--pain { color: var(--pink-deep); }
.jcell--fix { color: var(--blue-deep); }

/* Next-case nav at bottom of case study */
.nextcase {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.nextcase a { text-decoration: none; font-weight: 600; }
.nextcase__r { text-align: right; }

/* =================================================================
   404
   ================================================================= */
.fourohfour { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.fourohfour__big { font-family: var(--font-serif); font-size: clamp(4rem, 18vw, 11rem); line-height: 0.9; color: var(--pink-deep); }

/* =================================================================
   SCRIPTURE BANNER (slim, dismissible, rotating)
   ================================================================= */
.verse {
  background: color-mix(in srgb, var(--cloud) 45%, var(--bg));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.45s var(--ease);
  max-height: 160px; opacity: 1;
}
.verse[hidden] { display: none; }
.verse.is-closing { max-height: 0; opacity: 0; border-bottom-color: transparent; }
.verse__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.5rem clamp(1.25rem, 5vw, 4rem);
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  position: relative;
}
.verse__text {
  margin: 0; text-align: center; font-style: italic;
  font-size: 0.85rem; line-height: 1.4; color: var(--sage);
  font-weight: 500; opacity: 0; transition: opacity 0.6s var(--ease);
}
.verse__text.is-in { opacity: 1; }
.verse__text cite { font-style: normal; color: var(--ink-soft); font-weight: 600; }
.verse__close {
  position: absolute; right: clamp(1.25rem, 5vw, 4rem); top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer; color: var(--ink-soft);
  font-size: 1.1rem; line-height: 1; padding: 0.2rem 0.35rem; border-radius: 6px;
}
.verse__close:hover { color: var(--sage); background: color-mix(in srgb, var(--cloud) 60%, transparent); }
/* Restore button lives in nav; hidden until banner dismissed */
.verse-restore {
  display: none; background: transparent; border: 0; cursor: pointer;
  color: var(--ink-soft); padding: 0.3rem; border-radius: 6px; line-height: 0;
}
.verse-restore.is-visible { display: inline-flex; }
.verse-restore:hover { color: var(--sage); }
@media (prefers-reduced-motion: reduce) {
  .verse { transition: none; }
  .verse__text { transition: none; opacity: 1; }
  .verse.is-closing { display: none; }
}
@media (max-width: 600px) { .verse__text { font-size: 0.78rem; padding-right: 1.5rem; } }

/* =================================================================
   OFF THE CLOCK
   ================================================================= */
.offclock__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0; max-width: 60ch; }
.offclock__item {
  display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 0.5rem 1.4rem;
  padding: 0.9rem 0; border-top: 1px solid var(--line); align-items: baseline;
}
.offclock__item:last-child { border-bottom: 1px solid var(--line); }
.offclock__k {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 700; color: var(--sage);
}
.offclock__v { margin: 0; font-size: 1.02rem; }
.offclock__v a { color: var(--sage); font-weight: 600; text-decoration-thickness: 1px; }
@media (max-width: 540px) { .offclock__item { grid-template-columns: 1fr; gap: 0.15rem; } }

/* =================================================================
   METHOD + TYPE LABEL (case study top)
   ================================================================= */
.method-label {
  display: inline-flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  margin-top: 1rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
}
.method-label__tag {
  background: var(--sage); color: var(--bg); border-radius: 999px;
  padding: 0.2rem 0.7rem; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
}

/* =================================================================
   REFLECTION BLOCK (case study end)
   ================================================================= */
.reflection {
  background: color-mix(in srgb, var(--cloud) 50%, var(--bg));
  border-left: 4px solid var(--sage); border-radius: 0 16px 16px 0;
  padding: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1rem;
}
.reflection h3 { font-size: 1.4rem; margin: 0 0 0.4rem; }
.reflection__eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700; color: var(--sage); margin: 0 0 0.6rem;
}
.reflection p { margin: 0.6rem 0 0; max-width: 64ch; }
.reflection p b { font-weight: 700; }

/* =================================================================
   ARTIFACT: 2x2 POSITIONING MATRIX (Favour Pieri)
   ================================================================= */
.matrix { padding: clamp(1.4rem, 4vw, 2.4rem); }
.matrix__plot {
  position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin: 1.5rem auto 0;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.matrix__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 50% / 100% 50%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 50% 0 / 50% 100%;
}
.matrix__quad-tr { position: absolute; right: 0; top: 0; width: 50%; height: 50%;
  background: color-mix(in srgb, var(--sage) 12%, transparent); }
.matrix__axis { position: absolute; font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); }
.matrix__axis--x-l { left: 0; bottom: -1.5rem; }
.matrix__axis--x-r { right: 0; bottom: -1.5rem; }
.matrix__axis--y-b { left: -1.15rem; bottom: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.matrix__axis--y-t { left: -1.15rem; top: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.matrix__point {
  position: absolute; transform: translate(-50%, 50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; width: max-content; max-width: 130px;
}
.matrix__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sand); border: 2px solid var(--ink); }
.matrix__point span { font-size: 0.72rem; text-align: center; color: var(--ink-soft); line-height: 1.2; }
.matrix__point--hero .matrix__dot { width: 22px; height: 22px; background: var(--sage); border-color: var(--sage); box-shadow: 0 0 0 6px color-mix(in srgb, var(--sage) 22%, transparent); }
.matrix__point--hero span { color: var(--sage); font-weight: 700; font-size: 0.82rem; }
.matrix__axislabel { text-align: center; font-size: 0.78rem; color: var(--ink-soft); margin-top: 2.2rem; font-weight: 600; }

/* =================================================================
   ARTIFACT: SERVICE BLUEPRINT (Revamped)
   ================================================================= */
.blueprint { padding: clamp(1.4rem, 4vw, 2.4rem); overflow-x: auto; }
.blueprint__grid { display: grid; grid-template-columns: 150px repeat(3, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 620px; }
.bp { background: var(--bg); padding: 0.9rem 1rem; font-size: 0.85rem; }
.bp--rowlabel { background: var(--cloud); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); display: flex; align-items: center; }
.bp--phase { background: var(--sage); color: var(--bg); font-weight: 700; position: relative; }
.bp--phase .bp__step { font-size: 0.7rem; opacity: 0.85; display: block; }
.bp p { margin: 0; }
.bp__feel { display: inline-block; background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage); font-weight: 700; border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.78rem; }
.blueprint__line { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem; color: var(--sage); font-size: 0.78rem; font-weight: 600; }
.blueprint__line::before, .blueprint__line::after { content: ""; height: 2px; background: var(--sage); flex: 1; }

/* =================================================================
   ARTIFACT: PERCEPTION GAP (Beauty Mark RX)
   ================================================================= */
.gap { padding: clamp(1.6rem, 4vw, 2.6rem); }
.gap__scale { position: relative; margin-top: 1.5rem; }
.gap__row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; margin-bottom: 1.1rem; }
.gap__label { font-size: 0.82rem; font-weight: 700; }
.gap__track { height: 30px; background: var(--cloud); border-radius: 999px; position: relative; overflow: hidden; }
.gap__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.7rem; font-size: 0.72rem; font-weight: 700; color: var(--bg); }
.gap__fill--real { width: 92%; background: var(--sage); }
.gap__fill--perceived { width: 34%; background: var(--sand); color: var(--ink); }
.gap__band {
  margin-top: 0.4rem; margin-left: 166px; position: relative;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--sage) 18%, transparent) 0 8px, transparent 8px 16px);
  border: 1px dashed var(--sage); border-radius: 8px; padding: 0.5rem 0.8rem;
  font-size: 0.78rem; font-weight: 700; color: var(--sage); text-align: center;
}
@media (max-width: 540px) { .gap__row { grid-template-columns: 1fr; gap: 0.3rem; } .gap__band { margin-left: 0; } }

/* =================================================================
   ARTIFACT: CLOSED-LOOP (Agathe) — loop-back styling
   ================================================================= */
.loopback {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  margin-top: 0.4rem; padding: 0.9rem; background: color-mix(in srgb, var(--sage) 12%, transparent);
  border: 1px dashed var(--sage); border-radius: 10px; color: var(--sage); font-weight: 700; font-size: 0.88rem;
}

/* =================================================================
   DEVICE FRAMES (CSS-only, wraps untouched screenshots)
   ================================================================= */
.device { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.device:hover { transform: translateY(-4px); box-shadow: 0 20px 45px -20px color-mix(in srgb, var(--sage) 55%, transparent); }

.browser {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--sand);
  background: var(--bg); box-shadow: 0 14px 36px -22px rgba(0,0,0,0.45);
}
.browser__bar {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem;
  background: var(--cloud); border-bottom: 1px solid var(--sand);
}
.browser__dots { display: flex; gap: 0.35rem; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sand); display: block; }
.browser__url {
  flex: 1; background: var(--bg); border-radius: 999px; padding: 0.25rem 0.8rem;
  font-size: 0.72rem; color: var(--ink-soft); border: 1px solid var(--sand);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__screen { display: block; width: 100%; height: auto; }

.phone {
  max-width: 280px; margin-inline: auto; border-radius: 30px; padding: 10px;
  background: var(--cloud); border: 1px solid var(--sand);
  box-shadow: 0 14px 36px -22px rgba(0,0,0,0.45);
}
.phone__screen { border-radius: 22px; overflow: hidden; background: var(--bg); }
.phone__screen img { display: block; width: 100%; height: auto; }
.phone__notch { width: 42%; height: 6px; background: var(--sand); border-radius: 999px; margin: 0 auto 8px; }
@media (prefers-reduced-motion: reduce) { .device, .device:hover { transition: none; transform: none; } }

/* =================================================================
   STATS GRID FIX (5 even cards, no orphan grey block)
   ================================================================= */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem; background: none; border: 0; border-radius: 0; overflow: visible;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column;
}

/* =================================================================
   PHOTOS (real imagery in palette-consistent frames)
   ================================================================= */
.photo {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--sand);
  background: var(--paper); box-shadow: 0 14px 36px -22px rgba(0,0,0,0.4);
  margin: 0;
}
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { padding: 0.7rem 0.9rem; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.photo-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .photo-grid, .photo-grid--3 { grid-template-columns: 1fr; } }

/* About headshot — floats beside the intro on desktop */
.about-photo {
  float: right; width: clamp(180px, 30%, 280px); margin: 0 0 1rem 1.6rem;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--sand);
  box-shadow: 0 16px 40px -22px rgba(0,0,0,0.45);
}
.about-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .about-photo { float: none; width: 100%; margin: 1.2rem 0 0; } }

/* Alaska feature-quote with photo */
.feature-quote--img { display: grid; grid-template-columns: minmax(0,260px) 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center; }
.feature-quote__photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--sand); box-shadow: 0 14px 36px -22px rgba(0,0,0,0.4); }
.feature-quote__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .feature-quote--img { grid-template-columns: 1fr; } }

/* Lifestyle strip in Off the Clock — uniform tiles, no gaps */
.offclock__photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.6rem; max-width: 60ch; }
.offclock__photos .photo { height: 100%; }
.offclock__photos .photo img { aspect-ratio: 4 / 5; object-fit: cover; height: 100%; }
@media (max-width: 560px) { .offclock__photos { grid-template-columns: 1fr 1fr; } }

/* Card leads with outcome (lead-with-impact) */
.card__impact {
  margin: 0.6rem 0 0.9rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.card__impact b {
  display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--sage); font-weight: 800; margin-bottom: 0.35rem;
}
.card__impact span { font-size: 1.12rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

/* Utility */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.measure { max-width: 64ch; }
