/* =========================================================
   TANUM CREATIONS - main.css
   Clarity before visibility.

   TYPE RULE (deliberate, applied consistently):
   Bricolage Grotesque .. the brand's voice.
                          Headlines, statements, client names, quotes,
                          article titles.
   EB Garamond .......... the system's voice.
                          Navigation, body copy, labels, process,
                          descriptions, interface.
   If it is something Tanum says, it is Bricolage.
   If it is something the site does, it is Garamond.
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --purple:        #800080;
  --purple-deep:   #4E1B91;
  --lavender:      #EFE6FF;
  --lavender-deep: #D9C6F5;

  --paper:         #FCFBFA;
  --paper-warm:    #F5F1EE;
  --ink:           #17131A;
  --ink-soft:      #4A4350;
  --ink-faint:     #6E6676;
  --rule:          rgba(23, 19, 26, 0.13);
  --rule-strong:   rgba(23, 19, 26, 0.28);
  --rule-light:    rgba(255, 255, 255, 0.22);

  --voice:  "Garet", "Helvetica Neue", Arial, sans-serif;
  --system: "Noto Serif", Georgia, serif;

  --t-hero:  clamp(2rem, 0.9rem + 4.4vw, 4.2rem);
  --t-xxl:   clamp(1.6rem, 1.05rem + 2.6vw, 2.9rem);
  --t-xl:    clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
  --t-lg:    clamp(1.15rem, 0.98rem + 0.8vw, 1.45rem);
  --t-md:    clamp(1.1rem, 1.02rem + 0.45vw, 1.35rem);
  --t-body:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-sm:    1rem;
  --t-ui:    1.0625rem; /* buttons, nav and links keep their original size */
  --t-xs:    0.9375rem;

  /* 7px is the system radius. Sharp editorial structure, subtly softened. */
  --radius:     7px;
  --radius-lg:  7px;

  /* Surfaces for the section rhythm */
  --lavender-soft: #F6F1FF;
  --plum-deep:     #3A1470;
  --ink-warm:      #120E16;

  /* Motion */
  --ease: cubic-bezier(.22,.68,.32,1);

  --gutter:     clamp(1.25rem, 4vw, 3.5rem);
  --band:       clamp(4rem, 8.5vw, 9rem);
  --band-tight: clamp(3rem, 5.5vw, 5.5rem);
  --max:        1380px;
  --measure:    70ch;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--system);
  font-size: var(--t-body);
  line-height: 1.7;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 2px; }
.band--ink :focus-visible, .band--plum :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.9rem 1.4rem; font-size: var(--t-ui);
}
.skip:focus { left: 0; }

/* ---------- 3. LAYOUT ---------- */
.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--tight { padding-block: var(--band-tight); }
.band--lavender { background: var(--lavender); }
.band--warm { background: var(--paper-warm); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--plum { background: var(--purple-deep); color: #fff; }

/* Section head: a magazine department marker that carries information */
.head {
  display: grid;
  gap: clamp(1.25rem, 3vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .head { grid-template-columns: minmax(180px, 1fr) minmax(0, 3.2fr); }
}
.head__marker { padding-top: 0.5em; }
.head__label {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--purple);
}
.head__note {
  display: none;
  font-size: var(--t-xs); line-height: 1.55; color: var(--ink-faint);
  margin-top: 0.6rem; max-width: 24ch;
}
@media (min-width: 940px) { .head__note { display: block; } }
.band--ink .head__label, .band--plum .head__label { color: var(--lavender-deep); }
.band--ink .head__note,  .band--plum .head__note  { color: rgba(255,255,255,0.5); }

.measure { max-width: var(--measure); }

/* ---------- 4. TYPE ROLES ---------- */
.display {
  font-family: var(--voice);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1.display { font-size: var(--t-hero); }
h2.display { font-size: var(--t-xxl); line-height: 1.04; }
h3.display { font-size: var(--t-xl); line-height: 1.1; }

.lede {
  font-size: var(--t-md); line-height: 1.55; color: var(--ink-soft);
  max-width: 46ch; margin-top: 1.4rem;
}
.prose { color: var(--ink-soft); max-width: var(--measure); }
.prose p + p { margin-top: 1.05em; }
.band--ink .lede, .band--plum .lede { color: rgba(255,255,255,0.76); }
.band--ink .prose, .band--plum .prose { color: rgba(255,255,255,0.74); }

/* Emphasis uses the serif's own italic - no font swap mid-sentence */
.prose em, .lede em { font-style: italic; }
/* When a phrase needs the brand's voice inside body copy */
.prose .said, .lede .said { font-family: var(--voice); font-weight: 550; font-style: normal; letter-spacing: -0.015em; }

/* ---------- 5. BUTTONS & LINKS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  min-height: 48px;
  font-family: var(--system); font-size: var(--t-ui); font-weight: 600;
  letter-spacing: 0.01em; padding: 0.85rem 1.9rem; text-decoration: none;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--purple); }
.btn--line { border: 1px solid var(--rule-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--purple); color: var(--purple); }
.band--ink .btn--line, .band--plum .btn--line { border-color: var(--rule-light); color: #fff; }
.band--ink .btn--line:hover, .band--plum .btn--line:hover { border-color: #fff; background: #fff; color: var(--ink); }
.band--plum .btn--solid { background: #fff; color: var(--purple-deep); }
.band--plum .btn--solid:hover { background: var(--lavender); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

.textlink {
  display: inline-block; min-height: 44px; line-height: 44px;
  font-family: var(--system); font-size: var(--t-ui); font-weight: 600;
  text-decoration: none; color: var(--purple);
  box-shadow: inset 0 -1px 0 rgba(128,0,128,0.3);
  transition: box-shadow .2s ease;
}
.textlink:hover { box-shadow: inset 0 -1px 0 var(--purple); }
.band--ink .textlink, .band--plum .textlink {
  color: #fff; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.4);
}
.band--ink .textlink:hover, .band--plum .textlink:hover { box-shadow: inset 0 -1px 0 #fff; }

/* ---------- 6. HEADER ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.masthead.is-scrolled { border-bottom-color: var(--rule); }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 72px;
}
@media (min-width: 1024px) { .masthead__inner { min-height: 84px; } }

.wordmark {
  font-family: var(--voice); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; line-height: 1; display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px;
}
.wordmark span { color: var(--purple); }
/* Header logo image */
.wordmark--logo img { display: block; height: 44px; width: auto; }
@media (min-width: 1024px) { .wordmark--logo img { height: 52px; } }
.footer .wordmark--logo img { height: 48px; }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 2rem); }
.nav__link {
  font-size: var(--t-ui); font-weight: 500; letter-spacing: 0.01em; text-decoration: none;
  padding: 0.45rem 0; display: inline-block;
  box-shadow: inset 0 -1px 0 transparent; transition: box-shadow .2s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--purple); }
.nav__cta {
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  padding: 0.72rem 1.35rem; font-size: var(--t-ui); font-weight: 600;
  text-decoration: none; transition: background-color .22s ease;
}
.nav__cta:hover { background: var(--purple); }

.has-menu { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--t-ui); font-weight: 500; padding: 0.45rem 0;
  box-shadow: inset 0 -1px 0 transparent; transition: box-shadow .2s ease;
}
.nav__toggle:hover, .nav__toggle[aria-expanded="true"] { box-shadow: inset 0 -1px 0 var(--purple); }
.nav__toggle svg { transition: transform .2s ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  border-radius: var(--radius);
  position: absolute; top: calc(100% + 16px); left: -1.25rem;
  min-width: 320px; background: var(--paper);
  border: 1px solid var(--rule); padding: 0.5rem;
  box-shadow: 0 18px 44px -22px rgba(23,19,26,0.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block; padding: 0.75rem 0.9rem; font-size: var(--t-ui); text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.submenu a:hover { background: var(--lavender); color: var(--purple-deep); }

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  min-width: 44px; min-height: 44px; padding: 0.75rem; margin-right: -0.75rem; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer { display: none; border-top: 1px solid var(--rule); background: var(--paper); padding-block: 0.5rem 2.5rem; }
.drawer.is-open { display: block; }
@media (min-width: 1024px) { .drawer, .drawer.is-open { display: none; } }
.drawer a {
  display: flex; align-items: center; min-height: 52px;
  font-size: 1.1rem; text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.drawer .sub { padding-left: 1rem; }
.drawer .sub a { font-size: var(--t-ui); color: var(--ink-soft); min-height: 46px; }
.drawer .btn { margin-top: 1.5rem; width: 100%; border-bottom: 0; }

/* ---------- 7. HERO ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5.5rem); }
.hero__grid { display: grid; gap: clamp(2.25rem, 4.5vw, 4rem); align-items: start; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

.hero__eyebrow {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.hero__title { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.hero__support { margin-top: 0; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); max-width: 48ch; }

.hero__figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__caption {
  font-size: var(--t-xs); line-height: 1.5; color: var(--ink-faint);
  margin-top: 0.85rem; padding-left: 0.85rem; border-left: 1.5px solid var(--purple);
}
.hero__caption strong { color: var(--ink); font-weight: 600; display: block; }

/* Positioning strip - part of the hero, not a new section */
.hero__facts {
  display: grid; gap: 0.85rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 720px) { .hero__facts { grid-template-columns: repeat(3, 1fr); } }
.hero__fact { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.5; }
.hero__fact b { display: block; font-weight: 600; color: var(--ink); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.3rem; }

/* Placeholder-safe image wells */
.well { background: var(--lavender); position: relative; overflow: hidden; border-radius: var(--radius); }
.band--ink .well, .band--plum .well { background: rgba(255,255,255,0.07); }
.band--lavender .well { background: #E3D5F7; }

/* ---------- 8. PROBLEM ---------- */
.tangle { display: grid; gap: 0.2rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.tangle li {
  font-family: var(--voice);
  font-size: clamp(1.05rem, 0.756rem + 1.26vw, 1.722rem);
  line-height: 1.32; letter-spacing: -0.025em; color: var(--ink-faint);
  transition: color .3s ease;
}
.tangle li:hover { color: var(--ink); }
/* Flush left, fading down the list - every line stays above 4.5:1 */
.tangle li:nth-child(1) { color: #3B3542; }
.tangle li:nth-child(2) { color: #4A4350; }
.tangle li:nth-child(3) { color: #59525F; }
.tangle li:nth-child(4) { color: #6A6371; }
.tangle li:nth-child(5) { color: #6E6676; }

/* ---------- 9. PHILOSOPHY ---------- */
.philosophy { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 940px) { .philosophy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.philosophy h2 { font-size: clamp(1.764rem, 0.966rem + 3.444vw, 3.57rem); }
.philosophy h2 .before { display: block; color: var(--lavender-deep); }
.philosophy__aside { padding-top: clamp(0.5rem, 2vw, 1.5rem); }

/* ---------- 10. SERVICES ---------- */
.services { margin-top: clamp(2.5rem, 5vw, 4rem); }
.service {
  display: grid;
  gap: 0.4rem clamp(1.5rem, 3.5vw, 3.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-top: 1px solid var(--rule);
  text-decoration: none;
  transition: background-color .25s ease, padding-inline .25s ease;
}
.service:last-of-type { border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) {
  .service { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.5fr) 4.5rem; align-items: start; }
  .service:hover { background: var(--lavender); padding-inline: 1.5rem; }
}
.service__num {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.13em;
  color: var(--ink-faint); padding-top: 0.65em;
}
.service__name {
  font-family: var(--voice);
  font-size: clamp(1.134rem, 0.84rem + 1.092vw, 1.638rem);
  font-weight: 550; line-height: 1.08; letter-spacing: -0.03em;
}
.service:hover .service__name { color: var(--purple-deep); }
.service__desc { font-size: 1rem; color: var(--ink-soft); line-height: 1.5; }
@media (min-width: 900px) { .service__desc { font-size: var(--t-sm); line-height: 1.6; } }
.service__caps {
  display: block; margin-top: 0.7rem;
  font-size: 0.875rem; line-height: 1.5; color: var(--ink-faint);
}
@media (min-width: 900px) { .service__caps { font-size: var(--t-xs); line-height: 1.6; } }
.service__go {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--purple);
  padding-top: 0.5em; opacity: 0; transition: opacity .25s ease;
}
@media (max-width: 899px) {
  .service__go { opacity: 1; margin-top: 0.9rem; font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--ink-faint); }
}
.service:hover .service__go, .service:focus-visible .service__go { opacity: 1; }

/* ---------- 11. PROCESS (Bricolage - mechanics, not statements) ---------- */
.steps { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-top: 1.1rem; border-top: 2px solid var(--lavender-deep); }
.step__num { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.17em; color: var(--lavender-deep); display: block; margin-bottom: 0.8rem; }
.step__name {
  font-family: var(--system);
  font-size: 1.305rem; font-weight: 600; letter-spacing: 0;
  line-height: 1.2; margin-bottom: 0.5rem;
}
.step__body { font-size: var(--t-sm); color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ---------- 12. SELECTED WORK ---------- */
.work-grid { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .work-grid > .work:nth-child(even) { margin-top: clamp(2rem, 5vw, 5rem); } }
.work { text-decoration: none; display: block; }
.work__figure { margin-bottom: 1.1rem; }
.work__figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: opacity .3s ease; }
.work:hover .work__figure img { opacity: 0.86; }
.work__name { font-family: var(--voice); font-size: var(--t-lg); font-weight: 550; line-height: 1.12; letter-spacing: -0.03em; }
.work:hover .work__name { color: var(--purple-deep); }
.work__note { font-size: var(--t-sm); color: var(--ink-soft); margin-top: 0.35rem; }
.work__applied {
  display: inline-block; margin-top: 0.9rem;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--purple);
}
.work__applied span { color: var(--ink-faint); font-weight: 500; }

/* ---------- 13. ABOUT ---------- */
.about-grid { display: grid; gap: clamp(2.25rem, 4.5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.about-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.facts { margin-top: 2rem; display: grid; gap: 0.8rem; }
.facts li { font-size: var(--t-sm); color: var(--ink-soft); padding-left: 1.5rem; position: relative; line-height: 1.5; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 9px; height: 1.5px; background: var(--purple); }
.facts li em { font-style: italic; }

/* ---------- 14. PROOF ---------- */
.quotes { display: grid; gap: clamp(2.25rem, 4vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote blockquote {
  font-family: var(--voice);
  font-size: clamp(1.08rem, 0.855rem + 0.9vw, 1.44rem);
  line-height: 1.3; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 1.15rem;
}
.quote figcaption { font-size: var(--t-sm); color: var(--ink-faint); line-height: 1.5; }
.quote figcaption strong { color: var(--ink); font-weight: 600; display: block; }

.awaiting {
  border-radius: var(--radius);
  border: 1px dashed rgba(128,0,128,0.35);
  background: rgba(239,230,255,0.45);
  padding: 1.1rem 1.3rem; font-size: var(--t-sm); line-height: 1.55;
  color: var(--purple-deep); max-width: 72ch;
}
.awaiting strong { font-weight: 600; }

/* ---------- 15. WORKSHOP ---------- */
.strip { display: grid; gap: clamp(0.9rem, 1.8vw, 1.25rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
/* Portrait-orientation source in a landscape slot: bias the crop upward. */
.strip img.is-portrait { object-position: center 30%; }
@media (min-width: 760px) { .strip > *:nth-child(2) { transform: translateY(clamp(1rem, 3vw, 2.5rem)); } }
.strip figcaption { font-size: var(--t-xs); color: var(--ink-faint); margin-top: 0.7rem; }

/* ---------- 16. INSIGHTS ---------- */
.posts { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.post {
  display: grid; gap: 0.3rem clamp(1.5rem, 3.5vw, 3.5rem);
  padding-block: clamp(1.3rem, 2.4vw, 2rem);
  border-top: 1px solid var(--rule); text-decoration: none;
}
.post:last-of-type { border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) { .post { grid-template-columns: 11rem minmax(0, 1fr) 8rem; align-items: baseline; } }
.post__cat { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--purple); }
.post__title { font-family: var(--voice); font-size: var(--t-lg); font-weight: 550; line-height: 1.15; letter-spacing: -0.03em; display: block; }
.post:hover .post__title { color: var(--purple-deep); }
.post__excerpt { font-size: var(--t-sm); color: var(--ink-soft); margin-top: 0.35rem; display: block; line-height: 1.55; }
.post__date { font-size: var(--t-xs); color: var(--ink-faint); }

/* ---------- 17. RELATED PROPERTY ---------- */
.aside-note { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
@media (min-width: 860px) { .aside-note { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.aside-note h2 { font-size: var(--t-xl); }
.aside-note .prose { margin-top: 1rem; max-width: 52ch; }

/* ---------- 18. CLOSER ---------- */
.closer h2 { max-width: 15ch; }
.closer .btn-row { margin-top: clamp(1.75rem, 3vw, 2.25rem); }

/* ---------- 19. FOOTER ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer a { text-decoration: none; }
.footer__top { display: grid; gap: clamp(2.25rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
@media (min-width: 860px) { .footer__top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.footer .wordmark { color: var(--paper); }
.footer__blurb { color: rgba(255,255,255,0.6); font-size: var(--t-sm); margin-top: 1rem; max-width: 34ch; line-height: 1.6; }
.footer h4 { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 1.1rem; }
.footer li a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--t-ui); color: rgba(255,255,255,0.82); }
.footer li a:hover { color: #fff; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: var(--t-xs); color: rgba(255,255,255,0.45);
}

/* ---------- 20. 404 ---------- */
.notfound { display: grid; place-items: start; padding-block: clamp(5rem, 14vw, 12rem); }

/* ---------- 21. ONE ORCHESTRATED PAGE-LOAD REVEAL ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .8s cubic-bezier(.22,.68,.36,1) both; }
.reveal:nth-child(1) { animation-delay: .04s; }
.reveal:nth-child(2) { animation-delay: .14s; }
.reveal:nth-child(3) { animation-delay: .24s; }
.hero__figure.reveal { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- 22. UTILITIES ---------- */
.stack-sm > * + * { margin-top: 1rem; }
.stack-md > * + * { margin-top: 1.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =========================================================
   23. INNER PAGES - additive only.
   No homepage class is modified below this line.
   ========================================================= */

.crumbs { font-size: var(--t-xs); color: var(--ink-faint); margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.crumbs a { text-decoration: none; box-shadow: inset 0 -1px 0 rgba(23,19,26,0.18); }
.crumbs a:hover { box-shadow: inset 0 -1px 0 var(--purple); color: var(--purple); }
.crumbs i { font-style: normal; margin-inline: 0.5rem; opacity: 0.5; }

.pagehead { padding-block: clamp(2.25rem, 4.5vw, 4rem) clamp(2.75rem, 5.5vw, 5rem); }
.pagehead__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 1000px) { .pagehead__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: end; } }
.pagehead__aside { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }
.pagehead__aside b { display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.5rem; }
.pagehead__aside + .pagehead__aside { margin-top: 1.5rem; }

/* "If this sounds like you" decision rows */
.decide { margin-top: clamp(2rem, 4vw, 3rem); }
.decide__row {
  display: grid; gap: 0.6rem clamp(1.5rem, 3.5vw, 3.5rem);
  padding-block: clamp(1.4rem, 2.6vw, 2.2rem);
  border-top: 1px solid var(--rule); text-decoration: none;
  transition: background-color .25s ease, padding-inline .25s ease;
}
.decide__row:last-of-type { border-bottom: 1px solid var(--rule); }
@media (min-width: 880px) {
  .decide__row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: baseline; }
  .decide__row:hover { background: var(--lavender); padding-inline: 1.5rem; }
}
.decide__said { font-family: var(--voice); font-size: clamp(1.02rem, 0.798rem + 0.756vw, 1.302rem); font-weight: 550; letter-spacing: -0.03em; line-height: 1.25; }
.decide__go { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.5; }
.decide__go b { display: block; color: var(--purple); font-weight: 600; }

/* Layer explainer */
.layers { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .layers { grid-template-columns: repeat(2, 1fr); } }
.layer { border-top: 2px solid var(--purple); padding-top: 1.1rem; }
.layer h3 { font-family: var(--voice); font-size: 1.125rem; font-weight: 550; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 0.5rem; }
.layer p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }
.band--lavender .layer { border-top-color: var(--purple-deep); }

/* Numbered editorial list */
.numlist { counter-reset: n; margin-top: clamp(2rem, 4vw, 3rem); }
.numlist li {
  counter-increment: n; display: grid; gap: 0.4rem clamp(1.5rem, 3.5vw, 3.5rem);
  padding-block: clamp(1.3rem, 2.4vw, 2rem); border-top: 1px solid var(--rule);
}
.numlist li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 880px) { .numlist li { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.45fr); align-items: start; } }
.numlist li::before {
  content: counter(n, decimal-leading-zero);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.13em;
  color: var(--ink-faint); padding-top: 0.55em;
}
.numlist h3 { font-family: var(--voice); font-size: clamp(1.05rem, 0.84rem + 0.588vw, 1.302rem); font-weight: 550; letter-spacing: -0.03em; line-height: 1.15; }
.numlist p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }

/* Two-column prose */
.split { display: grid; gap: clamp(1.75rem, 3.5vw, 3.5rem); }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, 1fr); } }
.split .prose { max-width: 46ch; }

/* Distinction blocks - "X is not Y" */
.versus { display: grid; gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 860px) { .versus { grid-template-columns: repeat(2, 1fr); } }
.versus > div { padding-top: 1.25rem; border-top: 2px solid var(--rule-strong); }
.versus > div:first-child { border-top-color: var(--purple); }
.versus h3 { font-family: var(--voice); font-size: clamp(1.05rem, 0.84rem + 0.672vw, 1.344rem); font-weight: 550; letter-spacing: -0.03em; line-height: 1.18; margin-bottom: 0.7rem; }
.versus p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }

/* Related pages */
.related { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: block; text-decoration: none; border-top: 2px solid var(--lavender-deep); padding-top: 1rem; transition: border-color .25s ease; }
.related a:hover { border-top-color: var(--purple); }
.related b { display: block; font-family: var(--voice); font-size: 1.035rem; font-weight: 550; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 0.4rem; }
.related a:hover b { color: var(--purple-deep); }
.related span { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.55; }

/* Inline links inside body copy must not inflate the line box.
   Scoped to inner-page prose contexts only - standalone .textlink
   on the homepage keeps its 44px target. */
.prose .textlink,
.layer p .textlink,
.numlist p .textlink,
.versus p .textlink,
.decide .textlink { min-height: 0; line-height: inherit; }

/* =========================================================
   24. CASE STUDIES - additive
   ========================================================= */
.case { display: grid; gap: clamp(1.75rem, 3.5vw, 3.5rem); padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.case:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
@media (min-width: 900px) { .case--flip .case__figure { order: 2; } }
.case__figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.case__applied { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.9rem; }
.case__name { font-family: var(--voice); font-size: clamp(1.428rem, 1.008rem + 1.512vw, 2.1rem); font-weight: 550; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 0.75rem; }
.case__line { font-size: var(--t-md); color: var(--ink-soft); line-height: 1.5; margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.case__fields div { display: grid; gap: 0.2rem 0.5rem; padding-block: 0.75rem; border-top: 1px solid var(--rule); }
@media (min-width: 620px) { .case__fields div { grid-template-columns: 9.5rem minmax(0, 1fr); } }
.case__fields div:last-child { border-bottom: 1px solid var(--rule); }
.case__fields dt { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); padding-top: 0.2em; }
.case__fields dd { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.55; }
.case__fields dd.todo { color: var(--purple-deep); }
.case__fields dd.todo::before { content: "To supply: "; font-weight: 600; }

/* =========================================================
   25. INSIGHTS - additive
   ========================================================= */
.feature { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 820px) { .feature { grid-template-columns: repeat(3, 1fr); } }
.feature article { border-top: 2px solid var(--purple); padding-top: 1.1rem; }
.feature .cat { display: block; font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.7rem; }
.feature h3 { font-family: var(--voice); font-size: clamp(1.05rem, 0.882rem + 0.588vw, 1.302rem); font-weight: 550; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.6rem; }
.feature p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.55; }
.feature .status { display: block; margin-top: 1rem; font-size: var(--t-xs); color: var(--ink-faint); }

.cluster { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.cluster:first-of-type { border-top: 0; padding-top: 0; }
.cluster__head { display: grid; gap: 1rem clamp(1.5rem, 4vw, 4rem); }
@media (min-width: 940px) { .cluster__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: start; } }
.cluster__head h3 { font-family: var(--voice); font-size: clamp(1.218rem, 0.966rem + 1.008vw, 1.764rem); font-weight: 550; letter-spacing: -0.03em; line-height: 1.1; }
.cluster__head p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }
.topics { margin-top: clamp(1.5rem, 3vw, 2rem); }
.topics li { display: grid; gap: 0.15rem 1.5rem; padding-block: 0.9rem; border-top: 1px solid var(--rule); }
@media (min-width: 820px) { .topics li { grid-template-columns: minmax(0, 1fr) 9rem; align-items: baseline; } }
.topics li:last-child { border-bottom: 1px solid var(--rule); }
.topics b { font-family: var(--voice); font-size: 1rem; font-weight: 550; letter-spacing: -0.02em; line-height: 1.3; }
.topics span { font-size: var(--t-xs); color: var(--ink-faint); }

/* =========================================================
   26. CONTACT - additive
   ========================================================= */
.contact { display: grid; gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 860px) { .contact { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.contact__mail {
  font-family: var(--voice); font-size: clamp(1.05rem, 0.798rem + 1.092vw, 1.68rem);
  font-weight: 550; letter-spacing: -0.03em; line-height: 1.15;
  text-decoration: none; display: inline-block; word-break: break-word;
  box-shadow: inset 0 -2px 0 rgba(128,0,128,0.3); transition: box-shadow .2s ease;
}
.contact__mail:hover { box-shadow: inset 0 -2px 0 var(--purple); }
.checklist li { font-size: var(--t-sm); color: var(--ink-soft); padding-left: 1.5rem; position: relative; line-height: 1.55; }
.checklist li + li { margin-top: 0.75rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 9px; height: 1.5px; background: var(--purple); }

/* The "not a fit" column shouldn't wear the same accent marker as the "fit" column. */
.versus > div:not(:first-child) .checklist li::before { background: var(--ink-faint); }

/* =========================================================
   27. SELECTED WORK WITHOUT IMAGERY - additive
   No client photography exists, so the work is carried by
   typography and hierarchy rather than a thumbnail.
   ========================================================= */
.projects { display: grid; gap: 0; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 780px) { .projects { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 4vw, 4rem); } }
.projects a {
  display: block; text-decoration: none;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--rule);
  transition: padding-inline .25s ease, background-color .25s ease;
}
@media (min-width: 780px) { .projects a:hover { background: var(--lavender); padding-inline: 1.25rem; } }
.projects__applied {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 0.8rem;
}
.projects__name {
  font-family: var(--voice); font-size: clamp(1.344rem, 1.008rem + 1.26vw, 1.932rem);
  font-weight: 550; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 0.6rem;
}
.projects a:hover .projects__name { color: var(--purple-deep); }
.projects__note { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.55; }
.band--lavender .projects a { border-top-color: rgba(78,27,145,0.2); }
.band--lavender .projects a:hover { background: rgba(255,255,255,0.45); }

/* Contact portrait keeps its native 4:5 rather than cropping to a letterbox. */
.contact__portrait img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Signature purple on charcoal measures 1.95:1 - below any readable threshold.
   The footer wordmark uses the lavender accent already established for dark bands. */
.footer .wordmark span { color: var(--lavender-deep); }

/* Breadcrumb links were 16px tall; padding lifts them past the 24px minimum. */
.crumbs a { display: inline-block; padding-block: 0.25rem; }

/* =========================================================
   28. ARTICLE TEMPLATE - additive
   Reading column, body rhythm, byline, author, service CTA.
   No existing component is modified.
   ========================================================= */
.article { max-width: 42rem; margin-inline: auto; }
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.25rem; border-top: 1px solid var(--rule);
  font-size: var(--t-xs); color: var(--ink-faint);
}
.article__meta a { color: var(--ink); font-weight: 600; text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(23,19,26,0.2); }
.article__meta a:hover { box-shadow: inset 0 -1px 0 var(--purple); color: var(--purple); }
.article__meta i { font-style: normal; opacity: 0.45; }

.article__hero { margin-block: clamp(2.5rem, 5vw, 3.5rem); }
.article__hero img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article__hero figcaption { font-size: var(--t-xs); color: var(--ink-faint); margin-top: 0.7rem; }

/* Body rhythm - Garamond prose, Bricolage subheads */
.article__body { margin-top: clamp(2.25rem, 4vw, 3rem); font-size: 1.069rem; line-height: 1.72; color: var(--ink); }
.article__body > * + * { margin-top: 1.3em; }
.article__body h2 {
  font-family: var(--voice); font-size: clamp(1.26rem, 0.966rem + 1.092vw, 1.764rem);
  font-weight: 550; letter-spacing: -0.03em; line-height: 1.12;
  margin-top: 2.4em; margin-bottom: 0;
}
.article__body h2 + * { margin-top: 0.9em; }
.article__body h3 {
  font-family: var(--voice); font-size: clamp(1.05rem, 0.882rem + 0.42vw, 1.176rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
  margin-top: 1.9em; margin-bottom: 0;
}
.article__body h3 + * { margin-top: 0.7em; }
.article__body a { color: var(--purple); box-shadow: inset 0 -1px 0 rgba(128,0,128,0.3); text-decoration: none; }
.article__body a:hover { box-shadow: inset 0 -1px 0 var(--purple); }
.article__body ul, .article__body ol { padding-left: 0; }
.article__body li { position: relative; padding-left: 1.6rem; }
.article__body li + li { margin-top: 0.6em; }
.article__body ul > li::before {
  content: ""; position: absolute; left: 0; top: 0.75em;
  width: 9px; height: 1.5px; background: var(--purple);
}
.article__body ol { counter-reset: an; }
.article__body ol > li { counter-increment: an; }
.article__body ol > li::before {
  content: counter(an, decimal-leading-zero);
  position: absolute; left: 0; top: 0.15em;
  font-family: var(--voice); font-size: 0.7em; font-weight: 600;
  letter-spacing: 0.1em; color: var(--purple);
}
.article__body blockquote {
  font-family: var(--voice); font-size: clamp(1.05rem, 0.882rem + 0.756vw, 1.344rem);
  font-weight: 550; letter-spacing: -0.025em; line-height: 1.3;
  padding-left: 1.5rem; border-left: 2px solid var(--purple);
  margin-block: 1.8em;
}
.article__body hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.4em; }

/* In-article service CTA - matched to the topic, not a generic pitch */
.cta-service {
  border-radius: var(--radius);
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--lavender);
}
.cta-service p:first-child {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--purple-deep); margin-bottom: 0.9rem;
}
.cta-service h2 {
  font-family: var(--voice); font-size: clamp(1.05rem, 0.882rem + 0.756vw, 1.344rem);
  font-weight: 550; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 0.7rem;
}
.cta-service p { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }
.cta-service .btn { margin-top: 1.4rem; }

/* Author block */
.author {
  display: grid; gap: 1.25rem clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem); border-top: 1px solid var(--rule);
}
@media (min-width: 560px) { .author { grid-template-columns: 96px minmax(0, 1fr); align-items: start; } }
.author__portrait img { border-radius: var(--radius); width: 96px; height: 96px; object-fit: cover; }
.author__label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.6rem; }
.author__name { font-family: var(--voice); font-size: 1.08rem; font-weight: 550; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.author__bio { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }

.backlink { margin-top: clamp(2.5rem, 4vw, 3rem); }

/* Featured rail adapts to 2 or 3 items so the hub can stay uncrowded */
@media (min-width: 820px) {
  .feature { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Square author thumbnail from a 4:5 portrait - bias the crop to the face. */
.author__portrait img { object-position: center 18%; }

/* Hub topic anchors and featured titles were under the 24px target minimum. */
.pagehead__aside a { display: inline-block; padding-block: 0.3rem; }
.feature h3 a { display: inline-block; padding-block: 0.15rem; }

/* A lone featured article shouldn't stretch the full grid width. */
.feature article:only-child { max-width: 34rem; }

/* =========================================================
   29. SCROLL REVEAL SYSTEM
   One system, applied site-wide by selector so no page markup
   changes are needed. Content is hidden ONLY when .has-js is
   present, so with JavaScript disabled everything renders
   normally and immediately.
   ========================================================= */

.has-js :is(
  .hero__eyebrow, .hero__title, .hero__support, .hero .btn-row,
  .hero__figure, .hero__fact,
  .head__marker, .head > div, .pagehead__grid > div, .pagehead__aside,
  .tangle li, .prose, .facts,
  .service, .step, .work, .projects > a, .post, .strip figure, .quote,
  .layer, .numlist li, .decide__row, .related a, .feature article,
  .versus > div, .case, .topics li, .cta-service, .author,
  .closer > *, .aside-note > div, .awaiting, .article__body > *
) {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

html.has-js .is-in.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .72s var(--ease), transform .72s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: auto;
}

/* Body copy inside an article reveals faster - reading must never wait. */
html.has-js .article__body > .is-in.is-in {
  transition-duration: .45s;
}

/* Hero runs on page load rather than on scroll. */
.has-js .hero__title { transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  .has-js :is(
    .hero__eyebrow, .hero__title, .hero__support, .hero .btn-row,
    .hero__figure, .hero__fact,
    .head__marker, .head > div, .pagehead__grid > div, .pagehead__aside,
    .tangle li, .prose, .facts,
    .service, .step, .work, .projects > a, .post, .strip figure, .quote,
    .layer, .numlist li, .decide__row, .related a, .feature article,
    .versus > div, .case, .topics li, .cta-service, .author,
    .closer > *, .aside-note > div, .awaiting, .article__body > *
  ) { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   30. SECTION RHYTHM - chapter surfaces
   ========================================================= */
.band--soft { background: var(--lavender-soft); }
.band--deep { background: var(--plum-deep); color: #fff; }
.band--deep .head__label, .band--deep .kicker { color: var(--lavender-deep); }
.band--deep .head__note { color: rgba(255,255,255,0.5); }
.band--deep .lede, .band--deep .prose { color: rgba(255,255,255,0.78); }
.band--deep .btn--line { border-color: var(--rule-light); color: #fff; }
.band--deep .btn--line:hover { background: #fff; color: var(--plum-deep); border-color: #fff; }
.band--deep .btn--solid { background: #fff; color: var(--plum-deep); }
.band--deep .btn--solid:hover { background: var(--lavender); }
.band--deep .well { background: rgba(255,255,255,0.07); }
.band--deep .textlink { color: #fff; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.45); }

/* A hairline of brand colour where two chapters meet */
.band--edge { border-top: 3px solid var(--purple); }

/* =========================================================
   31. MICRO-INTERACTIONS
   ========================================================= */
.btn { transition: background-color .22s var(--ease), color .22s var(--ease),
                   border-color .22s var(--ease), transform .22s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Service rows: accent bar grows, title shifts, arrow travels */
.service { position: relative; border-radius: var(--radius); }
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0;
  background: var(--purple); transition: width .45s var(--ease);
}
.service:hover::before, .service:focus-visible::before { width: 100%; }
.service__name { transition: transform .3s var(--ease), color .25s var(--ease); }
@media (min-width: 900px) { .service:hover .service__name { transform: translateX(6px); } }
.service__go::after { content: " \2192"; display: inline-block; transition: transform .3s var(--ease); }
.service:hover .service__go::after { transform: translateX(5px); }
.service__desc { transition: color .25s var(--ease); }
.service:hover .service__desc { color: var(--ink); }

/* Editorial rows share the arrow language */
.post { position: relative; border-radius: var(--radius); transition: background-color .3s var(--ease), padding-inline .3s var(--ease); }
@media (min-width: 820px) { .post:hover { background: var(--lavender-soft); padding-inline: 1.25rem; } }
.post__title { transition: color .25s var(--ease), transform .3s var(--ease); }
@media (min-width: 820px) { .post:hover .post__title { transform: translateX(4px); } }

.projects a { position: relative; border-radius: var(--radius); }
.projects__name { transition: transform .3s var(--ease), color .25s var(--ease); }
@media (min-width: 780px) { .projects a:hover .projects__name { transform: translateX(6px); } }
.projects__applied::after { content: " \2192"; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); display: inline-block; }
.projects a:hover .projects__applied::after { opacity: 1; transform: translateX(4px); }

.decide__row { border-radius: var(--radius); }
.decide__said { transition: transform .3s var(--ease); }
@media (min-width: 880px) { .decide__row:hover .decide__said { transform: translateX(6px); } }

.related a b { transition: transform .3s var(--ease), color .25s var(--ease); display: block; }
.related a:hover b { transform: translateX(4px); }

/* Photography: restrained scale inside a fixed frame */
.strip figure .well, .work__figure, .about-grid figure, .hero__figure .well { overflow: hidden; border-radius: var(--radius); }
.strip img, .work__figure img, .about-grid img, .hero__figure img, .case__figure img {
  transition: transform .8s var(--ease);
}
.strip figure:hover img, .work:hover .work__figure img { transform: scale(1.03); }

/* Navigation polish */
.masthead { transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }
.masthead.is-scrolled { box-shadow: 0 1px 24px -18px rgba(23,19,26,0.5); }
.nav__link, .nav__toggle { position: relative; }
.nav__link::after, .nav__toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--purple); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__toggle:hover::after,
.nav__link[aria-current="page"]::after, .nav__toggle[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__link, .nav__toggle { box-shadow: none !important; }

.submenu a { border-radius: calc(var(--radius) - 2px); }
.drawer.is-open a { animation: rise .45s var(--ease) both; }
.drawer.is-open a:nth-child(n+2) { animation-delay: .04s; }

/* Focus stays obvious on every surface */
:focus-visible { outline-offset: 3px; border-radius: var(--radius); }

/* Muted text on the dark chapters. --ink-soft on deep purple measured 1.46:1. */
.band--deep :is(.versus, .layer, .numlist, .step, .decide__go, .quote) :is(p, span),
.band--plum :is(.versus, .layer, .numlist, .decide__go) :is(p, span),
.band--ink  :is(.versus, .layer, .numlist, .decide__go) :is(p, span) {
  color: rgba(255,255,255,0.76);
}
.band--deep :is(.versus, .layer) h3,
.band--plum :is(.versus, .layer) h3,
.band--ink  :is(.versus, .layer) h3 { color: #fff; }
.band--deep :is(.versus, .numlist) > * { border-top-color: rgba(255,255,255,0.28); }
.band--deep .versus > div:first-child { border-top-color: var(--lavender-deep); }
.band--deep .layer { border-top-color: var(--lavender-deep); }
.band--deep .awaiting {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: #fff;
}
.band--deep .topics li, .band--deep .cluster { border-top-color: rgba(255,255,255,0.2); }

/* =========================================================
   32. HERO ROTATING WORD
   Scoped to the homepage hero. Nothing else is affected.
   ========================================================= */

/* Hero heading only. Other page H1s keep --t-hero unchanged.
   Needs to outrank h1.display, which sets the shared hero scale. */
h1.display.hero__title { font-size: clamp(1.68rem, 0.798rem + 3.528vw, 3.444rem); }

/* The changing word sits on its own line, so the static text
   above it can never shift horizontally or vertically. */
.hero__rotate {
  display: block;
  position: relative;
  color: #800080;
}

/* An invisible copy of the longest word reserves the line box,
   which keeps the hero height fixed as the word changes. */
.hero__rotate-sizer {
  visibility: hidden;
  display: block;
}

.hero__word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.22em);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hero__word.is-active {
  opacity: 1;
  transform: translateY(0);
}
/* Outgoing word lifts slightly as it fades. */
.hero__word.is-leaving {
  opacity: 0;
  transform: translateY(-0.22em);
}

/* Reduced motion: no rotation at all, full phrase shown statically. */
.hero__rotate.is-static .hero__rotate-sizer { display: none; }
.hero__rotate.is-static .hero__word {
  position: static;
  opacity: 1;
  transform: none;
  transition: none;
  white-space: normal;
  display: inline;
}
.hero__rotate.is-static .hero__word + .hero__word::before { content: " "; }

@media (prefers-reduced-motion: reduce) {
  .hero__word { transition: none; }
}

/* Anchor targets clear the sticky header instead of hiding beneath it. */
:target,
[id]:not(body):not(html) { scroll-margin-top: calc(72px + 1.5rem); }
@media (min-width: 1024px) { [id]:not(body):not(html) { scroll-margin-top: calc(84px + 1.5rem); } }

/* The drawer scrolls independently if the menu is taller than the screen. */
.drawer { max-height: calc(100vh - 72px); overflow-y: auto; }
