/* ============================================================
   Celveza - celveza.com
   Editorial / Swiss. Paper, ink, one red.
   ============================================================ */

:root {
  --paper:      #F4F2ED;
  --paper-2:    #EBE8E1;
  --ink:        #14120F;
  --ink-2:      #4A4640;
  --ink-3:      #86807A;
  --rule:       #CFCAC1;
  --rule-2:     #DFDBD3;
  --red:        #D6301F;

  --gut:        clamp(1.15rem, 4.2vw, 3.25rem);
  --max:        1440px;

  --sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --snap: cubic-bezier(.16,.84,.28,1);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,h2,h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

::selection { background: var(--red); color: var(--paper); }

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

.skip-link {
  position: absolute; top: -80px; left: 1rem; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.1rem; font-size: .85rem; font-weight: 500;
  transition: top .18s var(--snap);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   Line-reveal primitive  (mask wipe - no fade, snaps up)
   ============================================================ */
[data-line] { display: block; overflow: hidden; }
[data-line] > i {
  display: block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform .62s var(--snap) var(--d, 0s);
  will-change: transform;
}
[data-line].in > i { transform: translateY(0); }

.dl { display: block; overflow: hidden; }
.dl > i {
  display: block; font-style: normal;
  transform: translateY(102%);
  transition: transform .74s var(--snap) var(--d, 0s);
  will-change: transform;
}
.dl.in > i { transform: translateY(0); }

[data-grow] { transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--snap) .1s; }
[data-grow].in { transform: scaleX(1); }

[data-row] { opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--snap) var(--d,0s), transform .5s var(--snap) var(--d,0s); }
[data-row].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-line] > i, .dl > i { transform: none !important; transition: none !important; }
  [data-grow] { transform: scaleX(1) !important; transition: none !important; }
  [data-row] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  transition: transform .4s var(--snap);
}
.masthead.hide { transform: translateY(-101%); }

.masthead-in {
  max-width: var(--max); margin-inline: auto;
  padding: 0 var(--gut);
  height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  line-height: 1;
  text-decoration: none;
}
.wm-icon {
  display: block;
  height: 52px;
  width: auto;
  flex: none;
  /* the source png carries a little transparent padding, and the swirl
     sits low in its own box - nudge it up so it centres on the cap height */
  margin-top: -2px;
  transform-origin: 50% 55%;
  transition: transform .4s var(--snap);
}
.wordmark:hover .wm-icon { transform: rotate(-12deg) scale(1.05); }
.wm-text {
  font-family: var(--sans);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: -.042em;
  color: var(--ink);
  /* optical centring: cap height sits above the em box middle */
  margin-top: .06em;
}

.nav { display: flex; justify-content: center; gap: 2.4rem; }
.nav a {
  font-family: var(--sans);
  font-size: .92rem; font-weight: 600; letter-spacing: -.018em;
  display: inline-flex; align-items: baseline; gap: .42rem;
  position: relative; padding-bottom: 2px;
  color: var(--ink);
  transition: color .22s var(--snap);
}
.nav a:hover { color: var(--red); }
.nav a .idx {
  font-family: var(--mono);
  color: var(--red); font-size: .64rem; letter-spacing: .04em;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--snap);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.masthead-mail {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .02em;
  padding-bottom: 2px; border-bottom: 1px solid var(--rule);
  transition: border-color .25s var(--snap), color .25s var(--snap);
}
.masthead-mail:hover { color: var(--red); border-bottom-color: var(--red); }

.burger {
  display: none; width: 44px; height: 44px; margin-right: -8px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform .28s var(--snap), opacity .28s var(--snap);
}
.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 {
  position: fixed; top: 62px; left: 0; right: 0; z-index: 199;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: .5rem var(--gut) 1.6rem;
  display: flex; flex-direction: column;
}
.drawer[hidden] { display: none; }
.drawer a {
  padding: 1.15rem 0; min-height: 44px; border-bottom: 1px solid var(--rule-2);
  font-family: var(--sans); font-size: 1.05rem; font-weight: 600;
  letter-spacing: -.022em;
  display: flex; align-items: baseline; gap: .6rem;
}
.drawer a .idx { font-family: var(--mono); color: var(--red); font-size: .68rem; letter-spacing: .04em; }
.drawer-mail { text-transform: none !important; border-bottom: 0 !important; color: var(--red); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: 62px;
  border-bottom: 1px solid var(--ink);
}

.hero-grid {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(3.5rem, 9vw, 8rem) var(--gut) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.display {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.6vw, 6.6rem);
  line-height: 1.06;
  letter-spacing: -.042em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.display em { font-style: normal; color: var(--red); }

.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-heavy { height: 3px; background: var(--ink); }

.hero-right { padding-bottom: .4rem; }

.meta-tag {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: .9rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  font-size: clamp(1rem, 1.15vw, 1.09rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38ch;
  margin-bottom: 2.1rem;
}

.link-arrow {
  display: inline-block;
  font-family: var(--mono); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: .35rem;
  border-bottom: 1.5px solid var(--ink);
  position: relative;
  transition: color .25s var(--snap), border-color .25s var(--snap);
}
.link-arrow::after {
  content: "→"; display: inline-block; margin-left: .55rem;
  transition: transform .3s var(--snap);
}
.link-arrow:hover { color: var(--red); border-bottom-color: var(--red); }
.link-arrow:hover::after { transform: translateX(5px); }


/* ============================================================
   Bands
   ============================================================ */
.band {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(4rem, 8vw, 7.5rem) var(--gut);
}
.band-alt { background: transparent; }

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--ink);
}

.sec-label {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--red);
  padding-top: .55rem;
}

.sec-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.7vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -.042em;
}

/* ---- Ledger rows ---- */
.ledger { border-top: 1px solid var(--rule-2); }

.row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.5rem, 2.6vw, 2.2rem) 0;
  border-bottom: 1px solid var(--rule-2);
  position: relative;
  transition: padding-left .38s var(--snap);
}
.row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--red);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .38s var(--snap);
}
.row:hover { padding-left: 1.4rem; }
.row:hover::before { transform: scaleY(1); transform-origin: top; }

.row-idx {
  font-family: var(--mono); font-size: .74rem;
  color: var(--ink-3); letter-spacing: .06em;
}
.row-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 1.72rem);
  line-height: 1.24; letter-spacing: -.032em;
}
.row-desc {
  font-size: .93rem; line-height: 1.62; color: var(--ink-2);
  max-width: 46ch;
}
.row-stack {
  display: none;
  font-family: var(--mono); font-size: .7rem;
  color: var(--ink-3); letter-spacing: .04em;
}
.row-mark {
  font-size: 1.05rem; color: var(--rule);
  transition: transform .35s var(--snap), color .35s var(--snap);
}
.row:hover .row-mark { color: var(--red); transform: translateX(6px); }

/* ---- Statement ---- */
.statement {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
  overflow: hidden;
}
.statement-in {
  max-width: var(--max); margin-inline: auto;
  padding: clamp(3.5rem, 7.5vw, 6.5rem) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* ---- pull quote ---- */
.pull { margin: 0; }
.q-mark {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: .7;
  color: var(--red);
  margin-bottom: .12em;
  opacity: 0; transform: translateY(.22em);
  transition: opacity .7s var(--snap), transform .7s var(--snap);
  pointer-events: none;
}
.statement.lit .q-mark { opacity: .9; transform: none; }

.pull-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.28rem, 2.7vw, 2.15rem);
  line-height: 1.32; letter-spacing: -.032em;
  max-width: 26ch;
}
.pull-text .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.5em);
  transition: opacity .5s var(--snap) var(--wd, 0s),
              transform .5s var(--snap) var(--wd, 0s);
}
.statement.lit .pull-text .w { opacity: 1; transform: none; }

/* ---- side panel ---- */
.statement-side { display: grid; gap: 1.8rem; }

.counter { display: flex; align-items: baseline; gap: .7rem; }
.count-n {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 1; letter-spacing: -.042em;
  font-variant-numeric: tabular-nums;
}
.count-k {
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}

.tally { display: grid; }
.tally-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .78rem 0;
  border-bottom: 1px solid var(--rule);
}
.tally-row:first-child { border-top: 1px solid var(--ink); }
.tally-k {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .06em; color: var(--ink-2); line-height: 1.45;
}
.tally-v {
  font-family: var(--sans); font-weight: 700; font-size: 1.32rem;
  line-height: 1; letter-spacing: -.032em; font-variant-numeric: tabular-nums;
}
.tally-v.zero { color: var(--red); }

@media (max-width: 900px) {
  .statement-in { grid-template-columns: 1fr; gap: 2.6rem; }
  .pull-text { max-width: 30ch; }
}
@media (prefers-reduced-motion: reduce) {
  .q-mark { opacity: .9 !important; transform: none !important; }
  .pull-text .w { opacity: 1 !important; transform: none !important; }
}

/* ---- Steps ---- */
.steps { border-top: 1px solid var(--rule-2); }
.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 2.8vw, 2.4rem) 0;
  border-bottom: 1px solid var(--rule-2);
}
.step-n {
  font-family: var(--mono); font-size: .74rem;
  color: var(--red); letter-spacing: .06em;
}
.step h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.32; letter-spacing: -.032em;
  margin-bottom: .55rem;
}
.step p {
  font-size: .93rem; line-height: 1.65; color: var(--ink-2);
  max-width: 58ch;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.about-prose > i { display: block; font-style: normal; }
.about-prose p {
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.62; color: var(--ink-2); max-width: 52ch;
}
.about-prose p + p { margin-top: 1.2rem; }

.facts > i { display: block; font-style: normal; }
.facts div {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--rule-2);
}
.facts div:first-child { border-top: 1px solid var(--rule-2); }
.facts dt {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.facts dd { margin: 0; font-size: .9rem; color: var(--ink); }

/* ============================================================
   Contact - inverted
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 8vw, 7.5rem) var(--gut) clamp(3rem, 6vw, 5rem);
}
.contact > * { max-width: var(--max); margin-inline: auto; }

.sec-label.invert { color: var(--red); padding-top: 0; margin-bottom: 1.5rem; }

.contact-display {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(2.1rem, 5.6vw, 4.7rem);
  line-height: 1.06; letter-spacing: -.042em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.contact-display em { font-style: normal; color: var(--red); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid #33302B;
}
.cbox {
  display: grid; gap: .5rem;
  padding: 1.6rem 1.5rem 1.6rem 0;
  border-bottom: 1px solid #33302B;
  position: relative;
  transition: padding-left .35s var(--snap);
}
.cbox:not(.static)::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--red); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s var(--snap);
}
.cbox:not(.static):hover { padding-left: 1.2rem; }
.cbox:not(.static):hover::before { transform: scaleY(1); transform-origin: top; }

.cbox-k {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase; color: #8A847C;
}
.cbox-v {
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  letter-spacing: -.015em;
}
.cbox-m {
  position: absolute; right: 1.2rem; top: 1.7rem;
  color: #5A554E; transition: transform .35s var(--snap), color .35s var(--snap);
}
.cbox:hover .cbox-m { color: var(--red); transform: translateX(5px); }

/* ============================================================
   Footer
   ============================================================ */
.foot { background: var(--ink); color: #8A847C; padding: 0 var(--gut) 2.2rem; }
.foot-in {
  max-width: var(--max); margin-inline: auto;
  padding-top: 2rem; border-top: 1px solid #33302B;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 1rem;
}
.foot-word { display: inline-flex; align-items: center; gap: .58rem; line-height: 1; }
.foot-word img { display: block; height: 46px; width: auto; flex: none; margin-top: -2px; }
.fw-text { font-family: var(--sans); font-size: 1.46rem; font-weight: 700; letter-spacing: -.042em; color: var(--paper); margin-top: .06em; }
.foot-note, .foot-copy { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .row { grid-template-columns: 3.5rem minmax(0,1fr) minmax(0,1.25fr) auto; }
}

@media (max-width: 900px) {
  .nav, .masthead-mail { display: none; }
  .burger { display: flex; }
  .masthead-in { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-right { padding-bottom: 0; }
  .band-head { grid-template-columns: 1fr; gap: 1.2rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .row {
    grid-template-columns: 2.6rem minmax(0,1fr);
    row-gap: .55rem;
  }
  .row-desc { grid-column: 2; }
  .row-stack { display: block; grid-column: 2; margin-top: .2rem; }
  .row-mark { display: none; }
  .row:hover { padding-left: .8rem; }
  .step { grid-template-columns: 2.6rem minmax(0,1fr); }
  .facts div { grid-template-columns: 1fr; gap: .25rem; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .cbox { padding-right: 1rem; }
}

@media (max-width: 420px) {
  .display { font-size: 3.1rem; }
  .contact-display { font-size: 2.4rem; }
}


/* ============================================================
   Hero strip - credential bar under the hero
   ============================================================ */
.hero-strip {
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  max-width: none;
}
.strip-item {
  padding: 1.15rem var(--gut);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: .3rem;
}
.strip-item:last-child { border-right: 0; }
.strip-k {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.strip-v { font-size: .88rem; color: var(--ink); letter-spacing: -.01em; }

/* ============================================================
   Capability intro
   ============================================================ */
.cap-intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 62ch;
}
.cap-intro > i {
  display: block; font-style: normal;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6; color: var(--ink-2);
}

/* ============================================================
   Case studies
   ============================================================ */
.work-note {
  max-width: 58ch;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}
.work-note > i {
  display: block; font-style: normal;
  font-family: var(--mono); font-size: .78rem;
  line-height: 1.7; letter-spacing: .01em; color: var(--ink-3);
}

.cases { border-top: 1px solid var(--ink); }

.case {
  padding: clamp(1.8rem, 3.4vw, 2.8rem) 0;
  border-bottom: 1px solid var(--rule-2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.case-head {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  gap: .9rem;
  align-items: baseline;
}
.case-n {
  font-family: var(--mono); font-size: .74rem;
  color: var(--red); letter-spacing: .06em;
}
.case-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.26; letter-spacing: -.032em;
  margin-bottom: .5rem;
}
.case-client {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .04em; color: var(--ink-3); line-height: 1.5;
}
.case-yr {
  font-family: var(--mono); font-size: .68rem;
  color: var(--ink-3); letter-spacing: .06em; white-space: nowrap;
}

.case-body p {
  font-size: .945rem; line-height: 1.68; color: var(--ink-2);
  max-width: 54ch;
}
.case-body p + p { margin-top: .85rem; }

.case-stack {
  grid-column: 2;
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-top: 1.1rem;
}
.case-stack li {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .04em; color: var(--ink-3);
  padding: .26rem .55rem;
  border: 1px solid var(--rule);
}

/* ---- Also delivered ---- */
.also { padding-top: clamp(2.2rem, 4vw, 3.2rem); }
.also-label {
  font-family: var(--mono); font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  padding-bottom: .9rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--ink);
}
.also-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}
.also-list li {
  padding: .85rem 1.2rem .85rem 0;
  border-bottom: 1px solid var(--rule-2);
  display: flex; flex-direction: column; gap: .22rem;
}
.also-list strong {
  font-weight: 500; font-size: .95rem; letter-spacing: -.012em;
}
.also-list span {
  font-family: var(--mono); font-size: .7rem;
  color: var(--ink-3); letter-spacing: .02em; line-height: 1.5;
}

/* ============================================================
   Principal
   ============================================================ */
.band-tint { background: var(--paper-2); max-width: none; }
.band-tint > * { max-width: var(--max); margin-inline: auto; }

.principal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.principal-main > i { display: block; font-style: normal; }
.principal-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.24; letter-spacing: -.042em;
  margin-bottom: .35rem;
}
.principal-role {
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red);
  padding-bottom: 1.3rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.principal-bio {
  font-size: clamp(.98rem, 1.25vw, 1.08rem);
  line-height: 1.66; color: var(--ink-2); max-width: 54ch;
}
.principal-bio + .principal-bio { margin-top: 1rem; }

.creds { margin-bottom: 1.8rem; }
.creds div {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .8rem 0; border-bottom: 1px solid var(--rule);
}
.creds div:first-child { border-top: 1px solid var(--ink); }
.creds dt {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.creds dd { margin: 0; font-size: .92rem; letter-spacing: -.01em; }

.team-note {
  font-size: .89rem; line-height: 1.62; color: var(--ink-2);
  padding-left: 1rem; border-left: 2px solid var(--red);
}

/* ============================================================
   Responsive additions
   ============================================================ */
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 1.2rem; }
  .case-stack { grid-column: 1; margin-top: .4rem; }
  .principal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero-strip { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid var(--rule); padding-block: .95rem; }
  .strip-item:last-child { border-bottom: 0; }
  .case-head { grid-template-columns: 2rem 1fr; row-gap: .4rem; }
  .case-yr { grid-column: 2; }
}

/* ============================================================
   Availability marker
   ============================================================ */
.avail {
  margin-top: 1.4rem;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #1E8E4A; flex: none;
  box-shadow: 0 0 0 3px rgba(30,142,74,.16);
}
@media (prefers-reduced-motion: no-preference) {
  .avail-dot { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(30,142,74,.16); }
    50%     { box-shadow: 0 0 0 6px rgba(30,142,74,.05); }
  }
}

/* client credit now runs two lines */
.case-client { line-height: 1.6; }
.case-client br { content: ""; display: block; margin-top: .12rem; }

/* also-list entries carry an employer line */
.also-list span { line-height: 1.55; }



/* ============================================================
   Descender guard
   Reveal masks use overflow:hidden, which shears g y p j q.
   Give each mask room below the baseline. Headings keep the room
   (their margins already control the gap); the hero CTA pulls it
   back so the underline stays tight to the text.
   ============================================================ */
[data-line], .dl { padding-bottom: .26em; }

.display .dl,
.contact-display .dl { padding-bottom: .18em; }

.hero-cta .dl { padding-bottom: .45rem; margin-bottom: -.45rem; }
.meta-tag[data-line] { padding-bottom: .9rem; }

/* the mask padding adds to existing margins - trim the doubled gap */
.sec-label[data-line] { margin-bottom: .9rem; }
.cap-intro[data-line] { margin-bottom: clamp(1.7rem, 3.4vw, 2.6rem); }
.work-note[data-line] { margin-bottom: clamp(1.9rem, 3.6vw, 2.8rem); }
.hero-copy[data-line] { margin-bottom: 1.85rem; }

/* ============================================================
   Alignment: numerals to first text line, not to baseline
   ============================================================ */
.row, .step { align-items: start; }
.row-idx  { padding-top: .5em; }
.step-n   { padding-top: .45em; }
.case-n   { padding-top: .35em; }
.row-desc { padding-top: .15em; }


/* ============================================================
   Plus Jakarta Sans adjustments
   Geometric sans with open counters. Needs slightly tighter
   tracking at display sizes and a touch more mask room.
   ============================================================ */
[data-line], .dl { padding-bottom: .28em; }
.display .dl, .contact-display .dl { padding-bottom: .2em; }

/* body copy reads better very slightly looser in this face */
.hero-copy, .row-desc, .case-body p, .principal-bio,
.step p, .cap-intro > i, .team-note, .who-note {
  letter-spacing: -.003em;
}

/* mono labels keep their spacing, but Jakarta pairs a bit tighter */
.sec-label, .meta-tag, .strip-k, .cl-label, .case-client { letter-spacing: .1em; }

/* ============================================================
   Logo
   ============================================================ */
/* masthead grows to fit the mark */
.masthead-in { height: 94px; }
.hero { padding-top: 94px; }
.drawer { top: 94px; }

/* the footer sits on ink, so the dark half of the mark needs lifting */





/* ============================================================
   MOBILE
   One consolidated pass. Appended last so it wins the cascade.
   ============================================================ */

/* ---------- tablet / small laptop ---------- */
@media (max-width: 900px) {
  .wm-icon { height: 44px; }
  .wm-text { font-size: 1.46rem; }
  .masthead-in { height: 80px; }
  .hero { padding-top: 80px; }
  .drawer { top: 80px; }

  .statement-in { grid-template-columns: 1fr; gap: 2.2rem; }
  .who-grid, .principal-grid { grid-template-columns: 1fr; }
}

/* ---------- phones ---------- */
@media (max-width: 680px) {
  /* --- header --- */
  .wm-icon { height: 38px; margin-top: -1px; }
  .wm-text { font-size: 1.28rem; }
  .masthead-in { height: 68px; gap: 1rem; }
  .hero { padding-top: 68px; }
  .drawer { top: 68px; padding-bottom: 1.2rem; }

  /* --- hero --- */
  .hero-grid {
    padding-top: 2.6rem;
    padding-bottom: 2.2rem;
    gap: 1.9rem;
  }
  .display { font-size: clamp(2.3rem, 11vw, 3.3rem); line-height: 1.08; }
  .hero-copy { font-size: 1rem; max-width: none; margin-bottom: 1.7rem; }
  .meta-tag { margin-bottom: 1.1rem; }

  /* strip: 3 stacked rows read better than a cramped grid */
  .hero-strip { grid-template-columns: 1fr; }
  .strip-item {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-block: .85rem;
    flex-direction: row; align-items: baseline;
    gap: .7rem;
  }
  .strip-item:last-child { border-bottom: 0; }
  .strip-k { flex: 0 0 5.6rem; }
  .strip-v { font-size: .84rem; }

  /* --- sections --- */
  .band { padding-block: 3.2rem; }
  .band-head { padding-bottom: 1.5rem; margin-bottom: 1.7rem; }
  .sec-title { font-size: clamp(1.55rem, 7vw, 2rem); line-height: 1.2; }
  .sec-title br { display: none; }
  .lede, .cap-intro > i { font-size: .98rem; }

  /* --- ledger rows --- */
  .row {
    grid-template-columns: 1.9rem minmax(0,1fr);
    row-gap: .45rem;
    padding-block: 1.4rem;
  }
  .row-idx { padding-top: .3em; font-size: .68rem; }
  .row-title { font-size: 1.12rem; }
  .row-desc { grid-column: 2; font-size: .9rem; }
  .row-stack { display: block; grid-column: 2; margin-top: .35rem; font-size: .66rem; }
  .row-mark { display: none; }
  .row:hover { padding-left: .6rem; }

  /* --- statement --- */
  .statement-in { padding-block: 2.8rem; gap: 1.9rem; }
  .q-mark { font-size: 2.4rem; }
  .pull-text { font-size: 1.24rem; line-height: 1.36; max-width: none; }
  .count-n { font-size: 2.9rem; }
  .tally-row { padding-block: .68rem; }
  .tally-k { font-size: .72rem; }

  /* --- cases --- */
  .case { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.7rem; }
  .case-head { grid-template-columns: 1.9rem 1fr; row-gap: .3rem; }
  .case-n { padding-top: .25em; font-size: .68rem; }
  .case-title { font-size: 1.1rem; }
  .case-yr { grid-column: 2; }
  .case-client { font-size: .66rem; }
  .case-body p { font-size: .9rem; }
  .case-stack { grid-column: 1; margin-top: .5rem; }

  /* --- also / more list --- */
  .also-list, .more-l { grid-template-columns: 1fr; }

  /* --- principal --- */
  .principal-name { font-size: 1.4rem; }
  .principal-bio { font-size: .96rem; }
  .facts div, .creds div { grid-template-columns: 1fr; gap: .25rem; }

  /* --- steps --- */
  .step { grid-template-columns: 1.9rem minmax(0,1fr); gap: .9rem; padding-block: 1.4rem; }
  .step-n { padding-top: .3em; font-size: .68rem; }
  .step h3 { font-size: 1.02rem; }
  .step p { font-size: .89rem; }

  /* --- contact --- */
  .contact { padding-block: 3.2rem 2.4rem; }
  .contact-display { font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.1; }
  .contact-card { padding: 1.6rem 1.3rem; }
  .cbox, .line {
    grid-template-columns: 1fr;
    row-gap: .2rem;
    padding: 1rem 1rem 1rem 0;
    min-height: 44px;
  }
  .cbox-m, .line-a { display: none; }
  .cbox-v, .line-v { font-size: 1.02rem; }

  /* --- footer --- */
  .foot-in { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .foot-word img { height: 32px; }
  .fw-text { font-size: 1.12rem; }
}

/* ---------- small phones ---------- */
@media (max-width: 400px) {
  .display { font-size: 2.1rem; }
  .sec-title { font-size: 1.45rem; }
  .contact-display { font-size: 1.8rem; }
  .pull-text { font-size: 1.14rem; }
  .wm-text { font-size: 1.16rem; }
  .wm-icon { height: 34px; }
  .masthead-in { height: 62px; }
  .hero { padding-top: 62px; }
  .drawer { top: 62px; }
  .strip-k { flex: 0 0 5rem; }
}

/* ============================================================
   Touch devices: hover states never resolve, so make the
   resting state carry the information instead.
   ============================================================ */
@media (hover: none) {
  .row:hover, .job:hover, .cbox:hover, .line:hover { padding-left: 0; }
  .row::before, .job::before, .cbox::before, .line::before { display: none; }
  .row-mark, .cbox-m, .line-a { display: none; }
  .nav a::after { display: none; }
  .wordmark:hover .wm-icon { transform: none; }
  .link-arrow:hover { color: inherit; border-bottom-color: var(--ink); }
}

/* ============================================================
   Overflow guards
   ============================================================ */
html, body { max-width: 100%; }

/* long tokens (emails, stack lists, urls) must never push the page wide */
.cbox-v, .line-v, .row-stack, .case-client, .strip-v,
.facts dd, .creds dd, .more-l span, .also-list span {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* the mono chip rows wrap rather than scroll */
.tags, .chips, .case-stack { max-width: 100%; }

/* images never exceed their container - but the logo keeps its set height */
img { max-width: 100%; height: auto; }
/* logo heights are set in the base + responsive rules above; restore them */
.wm-icon { height: 52px; }
.foot-word img { height: 46px; }
@media (max-width: 900px) { .wm-icon { height: 44px; } }
@media (max-width: 680px) {
  .wm-icon { height: 38px; }
  .foot-word img { height: 32px; }
}
@media (max-width: 400px) { .wm-icon { height: 34px; } }
