/* =========================================================
   Mark Andreas — Concept E: In Motion
   Metaphors of Movement as the kinetic hero.
   ========================================================= */

:root {
  --bg:        #f5f1e8;   /* warm off-white */
  --bg-2:      #efe9da;   /* slightly deeper panel */
  --ink:       #16171a;   /* deep ink */
  --ink-2:     #3a3b40;
  --muted:     #6b6c72;
  --teal:      #127a63;   /* vivid energetic accent */
  --teal-dk:   #0d5e4c;
  --teal-tint: #e2efe9;
  --amber:     #d8a24a;   /* warm highlight */
  --amber-dk:  #b9852f;
  --line:      #ddd5c4;
  --line-dk:   #c9bfa8;
  --white:     #fffdf8;

  --display: "Space Grotesk", system-ui, sans-serif;
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --ui:      "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --r: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-dk); text-decoration: none; }
a:hover { color: var(--teal); }
h1, h2, h3 { overflow-wrap: anywhere; }
p { overflow-wrap: anywhere; }

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

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem;
  background: var(--ink); color: var(--white);
  padding: .65rem 1rem; border-radius: 8px; z-index: 200;
  transition: top .18s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

.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;
}

/* ---------- shared layout primitives ---------- */
section { padding: clamp(3.5rem, 8vw, 7rem) var(--pad); }
.section-head {
  display: flex; align-items: baseline; gap: 1.1rem;
  max-width: var(--maxw); margin: 0 auto 1.4rem;
}
.sec-num {
  font-family: var(--display); font-weight: 600;
  font-size: .9rem; letter-spacing: .08em;
  color: var(--teal); padding-top: .35rem;
  border-top: 2px solid var(--amber); display: inline-block;
}
.section-head--invert .sec-num { color: var(--amber); border-color: var(--amber); }

.eyebrow {
  font-family: var(--ui); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; color: var(--teal-dk); margin: 0 0 .5rem;
}
.eyebrow--light { color: var(--amber); }
.eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.08; letter-spacing: -.02em; margin: 0;
}
.section-title--center { text-align: center; max-width: 22ch; margin-inline: auto; }

.section-intro {
  max-width: 60ch; margin: 0 auto 2.6rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-2);
}
.section-head + .section-intro { margin-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--ui); font-weight: 600;
  font-size: .97rem; padding: .85rem 1.4rem; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  text-align: center; line-height: 1.2;
}
.btn--accent { background: var(--teal); color: var(--white); }
.btn--accent:hover { background: var(--teal-dk); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18,122,99,.28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-dk); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); transform: translateY(-2px); }
.btn--full { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.link-arrow, .work-item__link {
  font-family: var(--ui); font-weight: 600; font-size: .95rem;
  color: var(--teal-dk); display: inline-block;
}
.work-item__link:hover { color: var(--teal); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,241,232,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); border-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem var(--pad);
}
.wordmark { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark__name {
  font-family: var(--display); font-weight: 600;
  font-size: 1.18rem; letter-spacing: -.01em;
}
.wordmark__role {
  font-family: var(--ui); font-size: .66rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: .28rem;
}
.nav__links { display: flex; gap: 1.35rem; margin-left: auto; }
.nav__links a {
  font-family: var(--ui); font-weight: 500; font-size: .92rem;
  color: var(--ink-2); position: relative; padding: .2rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--amber); transition: width .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: .4rem; padding: .6rem 1.1rem; }

.nav__toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--line-dk); border-radius: 10px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .75rem var(--pad) 1.25rem; border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  font-family: var(--ui); font-weight: 500; color: var(--ink-2);
  padding: .65rem .25rem; border-bottom: 1px solid var(--line);
}
.nav__mobile a.btn { border: 1.5px solid transparent; color: var(--white); margin-top: .6rem; }

@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; padding: 0;
  min-height: clamp(560px, 88vh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,16,18,.30) 0%, rgba(15,16,18,.05) 32%, rgba(15,16,18,.55) 78%, rgba(15,16,18,.86) 100%),
    linear-gradient(95deg, rgba(13,94,76,.45) 0%, rgba(15,16,18,.10) 55%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--pad) 1.5rem;
}
.hero__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.025em;
  margin: .4rem 0 1.1rem; max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero__title em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--amber);
}
.hero__title .kinetic {
  position: relative; color: var(--white); white-space: nowrap;
}
.hero__title .kinetic::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em;
  height: .5em; z-index: -1; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-dk) 100%);
  transform-origin: left center;
  animation: sweep 1.1s var(--ease) both .35s;
}
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__lede {
  max-width: 56ch; font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  line-height: 1.55; color: rgba(255,253,248,.94);
  text-shadow: 0 1px 12px rgba(0,0,0,.4); margin: 0 0 1.7rem;
}
.hero__lede strong { color: var(--amber); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* moving ticker of metaphor phrases */
.hero__ticker {
  position: relative; z-index: 1;
  list-style: none; margin: 0; padding: .85rem 0;
  display: flex; gap: 0; white-space: nowrap; overflow: hidden;
  background: rgba(13,16,18,.55); border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
  font-family: var(--ui); font-size: .82rem; letter-spacing: .04em;
  color: rgba(255,253,248,.8);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.hero__ticker li {
  padding: 0 1.6rem; position: relative;
  animation: marquee 34s linear infinite;
}
.hero__ticker li::before {
  content: "“"; color: var(--amber); margin-right: .15rem;
}
.hero__ticker li::after {
  content: "”·"; color: var(--amber); margin-left: .1rem;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-1000%); } }
@media (prefers-reduced-motion: reduce) {
  .hero__ticker { flex-wrap: wrap; white-space: normal; gap: .3rem .2rem; padding: .85rem var(--pad); }
  .hero__ticker li { animation: none; padding: .15rem .8rem; }
  .hero__title .kinetic::after { animation: none; transform: scaleX(1); }
}

/* =========================================================
   SIGNATURE — HOW IT WORKS
   ========================================================= */
.how { background: var(--bg); }

.seq {
  list-style: none; margin: 0 auto 3rem; padding: 0;
  max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); overflow: hidden;
}
.seq__step {
  position: relative; padding: 1.6rem 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
}
.seq__step:last-child { border-right: 0; }
/* connecting motion arrow between steps */
.seq__step:not(:last-child)::after {
  content: "→"; position: absolute; right: -.62rem; top: 1.55rem;
  z-index: 3; font-size: 1.05rem; color: var(--teal);
  background: var(--white); width: 1.25rem; text-align: center;
}
.seq__index {
  font-family: var(--display); font-weight: 600; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber-dk);
}
.seq__label {
  font-family: var(--display); font-weight: 600; font-size: 1.22rem;
  letter-spacing: -.01em; margin: .25rem 0 .45rem;
}
.seq__desc { font-size: .92rem; color: var(--ink-2); margin: 0 0 1.1rem; line-height: 1.5; }
.seq__viz {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.seq__viz svg { width: 100%; height: 100%; }
.seq__viz--phrase { background: var(--ink); }
.seq__phrase {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--amber); text-align: center; padding: .5rem;
}

/* SVG motion primitives */
.ml { fill: none; stroke: var(--line-dk); stroke-width: 2; }
.ml--ground { stroke: var(--line-dk); stroke-dasharray: 2 5; stroke-linecap: round; }
.ml--path { stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 4 5; }
.marker { fill: var(--teal); }
.marker--stuck { fill: var(--muted); }
.marker--stuck .tether { stroke: var(--ink-2); stroke-width: 2; }
.marker--moving { fill: var(--teal); }
.marker--free { fill: var(--amber); stroke: var(--amber-dk); stroke-width: 1.5; }
.arrowhead { fill: var(--teal); }
.rays line { stroke: var(--amber-dk); stroke-width: 2; stroke-linecap: round; }
.seq__cap {
  font-family: var(--ui); font-size: 9px; fill: var(--muted);
  text-anchor: middle; letter-spacing: .08em; text-transform: uppercase;
}

/* animate the vizzes when their step reveals */
.seq__step.is-in .ml--path { animation: draw 1.3s var(--ease) both; }
.seq__step.is-in .marker--moving { animation: travel 1.6s var(--ease) both .2s; }
.seq__step.is-in .marker--free { animation: pop .5s var(--ease) both .25s; }
.seq__step.is-in .rays line { animation: flare .5s var(--ease) both .55s; }
.seq__step.is-in .marker--stuck .tether { animation: tug 1.4s ease-in-out infinite .3s; }

@keyframes draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
@keyframes travel {
  0%   { transform: translate(0,0); }
  100% { transform: translate(80px, -6px); }
}
@keyframes pop { 0% { transform: scale(.2); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes flare { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes tug { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-2px); } }
.marker--moving, .rays { transform-box: fill-box; transform-origin: center; }
.rays { transform-box: view-box; transform-origin: 110px 46px; }

@media (prefers-reduced-motion: reduce) {
  .seq__step .ml--path { stroke-dashoffset: 0; }
  .seq__step .marker--moving { transform: translate(80px, -6px); }
  .seq__step .marker--free { transform: none; opacity: 1; }
  .seq__step .rays line { opacity: 1; }
  .seq__step .marker--stuck .tether { animation: none; }
}

/* example phrase chips */
.examples { max-width: var(--maxw); margin: 0 auto; }
.examples__lead { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 1.1rem; }
.examples__grid {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
}
.ex {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 100px; padding: .55rem 1rem; font-size: .92rem;
}
.ex__phrase { font-family: var(--serif); font-style: italic; color: var(--ink); font-weight: 500; }
.ex__arrow { color: var(--teal); font-weight: 700; }
.ex__move { color: var(--ink-2); }
.examples__note { font-size: .85rem; color: var(--muted); max-width: 62ch; margin: .4rem 0 0; }

.credit {
  max-width: var(--maxw); margin: 2.4rem auto 0;
  padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-2);
}
.credit strong { color: var(--ink); }

/* =========================================================
   WHY IT'S DIFFERENT  (dark band)
   ========================================================= */
.different { background: var(--ink); color: var(--white); }
.different__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.different .section-title { color: var(--white); }
.different__lede {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.4; color: rgba(255,253,248,.92); margin: 1rem 0 2rem;
}
.different__lede em { color: var(--amber); font-style: italic; }
.different__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.different__points li { display: flex; gap: .9rem; color: rgba(255,253,248,.85); font-size: 1rem; }
.different__points strong { color: var(--white); }
.dot {
  flex: none; width: 12px; height: 12px; margin-top: .42rem;
  border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(216,162,74,.18);
}
.different__figure { margin: 0; position: relative; }
.different__figure img { border-radius: var(--r); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.different__figure figcaption {
  font-family: var(--ui); font-size: .82rem; color: rgba(255,253,248,.65);
  margin-top: .7rem; font-style: italic;
}

/* =========================================================
   MARK & MoM (lineage)
   ========================================================= */
.lineage { background: var(--bg); }
.lineage__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.lineage__story p { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 1.1rem; }
.lineage__story strong { color: var(--ink); }
.lineage__cta { margin-top: 1.5rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line-dk);
}
.timeline__item { position: relative; padding: 0 0 1.6rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -1.6rem; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--bg);
}
.timeline__item:last-child::before { background: var(--amber); }
.timeline__year {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  color: var(--teal-dk); display: block; letter-spacing: -.01em;
}
.timeline__txt { font-size: .95rem; color: var(--ink-2); margin: .25rem 0 0; }

/* =========================================================
   WIDER PRACTICE
   ========================================================= */
.practice { background: var(--bg-2); }
.practice__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem;
}
.pcard {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.8rem;
  border-top: 4px solid var(--teal);
}
.pcard__title { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin: 0 0 .2rem; letter-spacing: -.01em; }
.pcard__dev { font-family: var(--ui); font-size: .82rem; color: var(--muted); margin: 0 0 .9rem; }
.pcard__desc { font-size: 1rem; color: var(--ink-2); margin: 0; }

/* =========================================================
   WORK WITH MARK
   ========================================================= */
.work { background: var(--bg); }
.work-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem;
}
.work-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.7rem;
  display: flex; flex-direction: column;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.work-item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22,23,26,.09); border-color: var(--line-dk); }
.work-item--feature {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, var(--teal-tint), var(--white));
  border-color: var(--teal); border-left: 5px solid var(--teal);
}
.work-item__num {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  color: var(--amber-dk); letter-spacing: .1em;
}
.work-item__title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: .35rem 0 .5rem; letter-spacing: -.01em; }
.work-item__lead { font-size: 1.05rem; color: var(--ink); margin: 0 0 .55rem; }
.work-item__lead strong { color: var(--teal-dk); }
.work-item__desc { font-size: .96rem; color: var(--ink-2); margin: 0 0 1rem; flex: 1; }
@media (prefers-reduced-motion: reduce) { .work-item:hover { transform: none; } }

/* =========================================================
   RESEARCH BAND (dark teal)
   ========================================================= */
.research { background: var(--teal-dk); color: var(--white); }
.research .section-title { color: var(--white); }
.research__stats {
  max-width: var(--maxw); margin: 1.4rem auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
}
.stat { border-top: 2px solid rgba(255,255,255,.3); padding-top: 1.1rem; }
.stat__num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1;
  color: var(--amber); display: block; letter-spacing: -.02em;
}
.stat__lbl { margin: .7rem 0 0; color: rgba(255,253,248,.9); font-size: .98rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--bg); }
.about__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about__figure { margin: 0; }
.about__figure img { border-radius: var(--r); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.about__text p { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 1.05rem; }
.about__text strong { color: var(--ink); }

/* =========================================================
   BOOKS
   ========================================================= */
.books { background: var(--bg-2); }
.book-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem;
}
.book-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
}
.book-card__cover {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.4rem 1.2rem; color: var(--white); min-height: 240px;
  position: relative;
}
.book-card__cover--a { background: linear-gradient(160deg, var(--teal) 0%, var(--ink) 110%); }
.book-card__cover--b { background: linear-gradient(160deg, var(--amber-dk) 0%, var(--ink) 115%); }
.book-card__cover::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 6px;
  background: rgba(0,0,0,.18);
}
.book-card__by { font-family: var(--ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.book-card__name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; line-height: 1.15; }
.book-card__body { padding: 1.5rem 1.5rem; }
.book-card__title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; margin: 0 0 .55rem; letter-spacing: -.01em; }
.book-card__desc { font-size: .96rem; color: var(--ink-2); margin: 0 0 .85rem; }
.book-card__endorse { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--teal-dk); margin: 0; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { background: var(--bg); text-align: center; }
.quote-row {
  max-width: var(--maxw); margin: 2.2rem auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem;
  text-align: left;
}
.quote {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.6rem; margin: 0;
  border-top: 4px solid var(--amber);
}
.quote p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; color: var(--ink); margin: 0 0 1rem; }
.quote cite { font-family: var(--ui); font-style: normal; font-size: .85rem; color: var(--muted); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ink); color: var(--white); }
.contact__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.contact .section-title { color: var(--white); }
.contact__lede { font-size: 1.08rem; color: rgba(255,253,248,.9); max-width: 42ch; }
.contact__details { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.contact__details li { font-size: 1rem; color: rgba(255,253,248,.92); }
.contact__details .lbl {
  display: inline-block; min-width: 5.5rem;
  font-family: var(--ui); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber);
}
.contact__details a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }
.contact__details a:hover { text-decoration-color: var(--amber); }

.contact__form {
  background: var(--white); color: var(--ink);
  border-radius: var(--r); padding: 1.8rem; display: grid; gap: 1rem;
}
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--ui); font-weight: 600; font-size: .85rem; }
.field input, .field select, .field textarea {
  font-family: var(--ui); font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem; border: 1.5px solid var(--line-dk);
  border-radius: 9px; background: var(--bg); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
  box-shadow: 0 0 0 3px rgba(18,122,99,.16);
}
.field textarea { resize: vertical; }
.contact__note { font-size: .82rem; color: var(--muted); margin: -.2rem 0 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #0f1012; color: rgba(255,253,248,.7); padding: 3rem var(--pad) 2rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start;
}
.footer__brand .wordmark__name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--white); }
.footer__brand p { max-width: 42ch; font-size: .92rem; margin: .5rem 0 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; }
.footer__nav a { color: rgba(255,253,248,.72); font-size: .9rem; }
.footer__nav a:hover { color: var(--amber); }
.footer__legal {
  max-width: var(--maxw); margin: 2rem auto 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: rgba(255,253,248,.5);
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seq__step:nth-child(2)::after { display: none; }
  .seq__step:nth-child(odd) { border-right: 1px solid var(--line); }
  .seq__step:nth-child(1), .seq__step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .different__grid, .lineage__grid, .about__grid, .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .different__figure { order: -1; }
  .about__figure { order: -1; }
  .examples__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research__stats { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .book-card { grid-template-columns: minmax(0, 1fr); }
  .book-card__cover { min-height: 150px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .seq { grid-template-columns: minmax(0, 1fr); }
  .seq__step { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .seq__step:last-child { border-bottom: 0; }
  .seq__step::after { display: none !important; }
  .practice__grid, .work-grid, .book-grid, .quote-row, .examples__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head { flex-direction: column; gap: .6rem; }
  .hero__cta .btn { flex: 1 1 100%; }
}
