/* Qualified Intros — quiet institutional, light-first.
   Layout: wide left-aligned typographic column, hairline rules, one bronze accent (the introduction). */
:root {
  --paper: #F6F6F4;
  --tint: #EEEEEB;
  --ink: #111417;
  --muted: #5B6168;
  --rule: #D9DAD6;
  --accent: #8C6A3F;
  --on-ink: #F6F6F4;

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(72px, 11vw, 140px);
}
/* Dark: follows the device unless the visitor picks a theme with the toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1012;
    --tint: #15181B;
    --ink: #ECEBE7;
    --muted: #9BA1A7;
    --rule: #2A2E33;
    --accent: #C9A46E;
    --on-ink: #0E1012;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1012;
  --tint: #15181B;
  --ink: #ECEBE7;
  --muted: #9BA1A7;
  --rule: #2A2E33;
  --accent: #C9A46E;
  --on-ink: #0E1012;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 12px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.muted { color: var(--muted); font-size: 15px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; color: var(--ink); }
.brand__dot { fill: var(--accent); }
.brand__word { font-weight: 500; font-size: 16px; letter-spacing: 0.01em; }
.brand__word span { font-weight: 300; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.theme { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -12px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.theme:hover { color: var(--ink); border-color: var(--rule); }
.theme svg { width: 18px; height: 18px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
}
.nav__links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.textlink { font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .2s; }
.textlink:hover { border-color: var(--accent); }

/* Hero */
.hero { padding-block: clamp(72px, 12vw, 150px) clamp(64px, 9vw, 110px); }
.hero__title {
  margin-top: 28px;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hero__title em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* The signature move: two parties joined by a drawn line */
.link {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 720px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.link__node { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.link__node::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink); }
.link__node:last-child { flex-direction: row-reverse; }
.link__node:last-child::before { background: var(--accent); border-color: var(--accent); }
.link__line { flex: 1; height: 1px; background: var(--rule); position: relative; overflow: hidden; min-width: 40px; }
.link__line span {
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: draw 1.6s cubic-bezier(.65,0,.35,1) .5s both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: flex-end; }

/* Sections */
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.section--tint { background: var(--tint); }
.section h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 300; margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); }
.section__head { min-width: 0; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section__head--row h2 { max-width: 20ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-block: 28px; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 0; padding-top: 6px; }
.steps__n { font-size: 13px; color: var(--accent); letter-spacing: 0.08em; padding-top: 5px; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.steps p { margin-top: 8px; color: var(--muted); max-width: 48ch; }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.side { padding: 36px 40px 8px 0; min-width: 0; }
.side + .side { padding-left: 40px; border-left: 1px solid var(--rule); }
.side h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; margin-top: 18px; }
.side p:last-child { margin-top: 14px; color: var(--muted); max-width: 46ch; }

.focus { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px 48px; align-items: baseline; }
.focus__label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.focus__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 300; letter-spacing: -0.02em; }
.focus__note { grid-column: 2; color: var(--muted); font-size: 15px; }

/* Featured case */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px clamp(40px, 7vw, 110px); padding-block: 40px 48px; margin-bottom: 56px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.feature .eyebrow { grid-column: 1 / -1; }
.feature__title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 300; line-height: 1.18; letter-spacing: -0.02em; }
.feature__body { display: grid; gap: 14px; color: var(--muted); max-width: 56ch; }

/* Ledger */
.ledger { border-top: 1px solid var(--ink); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: baseline;
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
  transition: background-color .25s ease, padding .25s ease;
}
.ledger__row:not(.ledger__row--head):hover { background: var(--tint); padding-inline: 16px; }
.ledger__row--head { padding-block: 14px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ledger__row--head span:last-child { text-align: right; }
.ledger__ind { font-size: 14px; color: var(--muted); }
.ledger__fig { text-align: right; font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ledger__fig small { display: block; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); margin-top: 4px; }

/* About */
.prose { display: grid; gap: 18px; max-width: 56ch; font-size: 18px; }
.prose p:not(.sig) { color: var(--muted); }
.prose p:first-child { color: var(--ink); }
.sig { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--serif); font-style: italic; font-size: 26px; }
.sig span { display: block; font-family: var(--body); font-style: normal; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Contact */
.contact { padding-block: var(--section); border-top: 1px solid var(--rule); }
.contact__title { margin-top: 24px; font-size: clamp(34px, 5.4vw, 72px); line-height: 1.04; font-weight: 300; letter-spacing: -0.035em; max-width: 18ch; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 48px 0 20px; padding-block: 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.contact__addr { font-size: clamp(18px, 2.8vw, 34px); font-weight: 300; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; min-width: 0; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .4s ease; }
.contact__addr:hover { background-size: 100% 1px; }
.copy { margin-left: auto; font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 999px; min-height: 40px; padding: 0 18px; cursor: pointer; transition: border-color .2s; }
.copy:hover { border-color: var(--ink); }

/* Footer */
.footer { border-top: 1px solid var(--rule); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Entrance: content is visible at rest; this only adds a soft lift on load */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero__title, .link, .hero__foot { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__title { animation-delay: .08s; }
  .link { animation-delay: .2s; }
  .hero__foot { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .theme { margin-left: auto; margin-right: -16px; }
  .hero__foot, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { justify-content: flex-start; }
  .focus { grid-template-columns: minmax(0, 1fr); }
  .focus__note { grid-column: 1; }
  .feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .brand__word { font-size: 15px; }
  .link { font-size: 11px; gap: 10px; }
  .sides { grid-template-columns: minmax(0, 1fr); }
  .side { padding: 28px 0 28px; }
  .side + .side { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .ledger__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .ledger__row--head { display: none; }
  .ledger__ind { grid-column: 1 / -1; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
  .ledger__row:not(.ledger__row--head):hover { padding-inline: 0; background: transparent; }
  .copy { margin-left: 0; }
}

/* Case studies page */
.hero--page { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.page__title { margin-top: 28px; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; font-weight: 300; letter-spacing: -0.035em; max-width: 16ch; }
.jump { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.jump a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; font-size: 15px; transition: border-color .2s; }
.jump a:hover { border-color: var(--ink); }
.jump span { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.nav__links a[aria-current="page"] { color: var(--ink); }

.cases { border-top: 1px solid var(--ink); }
.case { border-bottom: 1px solid var(--rule); }
.case__sum {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr) minmax(0, 0.9fr) 28px;
  gap: 24px; align-items: baseline; padding-block: 26px;
}
.case__sum::-webkit-details-marker { display: none; }
.case__ind { font-size: 14px; color: var(--muted); }
.case__title { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.35; transition: color .2s; }
.case__fig { text-align: right; font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.case__fig small { display: block; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); margin-top: 4px; }
.case__chev { align-self: center; justify-self: end; width: 12px; height: 12px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s ease, border-color .2s; }
.case[open] .case__chev { transform: rotate(-135deg); border-color: var(--accent); }
.case__sum:hover .case__title { color: var(--accent); }
.case__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 4px 0 36px; }
.case__body h3 { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.case__body p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.case__body div:last-child p { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .case[open] .case__body { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
}
@media (max-width: 900px) {
  .nav__links { display: flex; margin-left: auto; }
  .nav__links .nav__opt { display: none; }
  .theme { margin-left: 0; }
  .jump { justify-content: flex-start; }
  .case__body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 680px) {
  .nav__inner { gap: 14px; }
  .brand__word { display: none; }
  .case__sum { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 8px 14px; }
  .case__ind { grid-column: 1 / -1; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
  .case__title { grid-column: 1; grid-row: 2; }
  .case__fig { grid-column: 2; grid-row: 2; font-size: 20px; }
  .case__chev { grid-column: 3; grid-row: 2; }
}

.footer__legal { flex-basis: 100%; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12px; letter-spacing: 0.02em; }

/* Founder portrait */
.portrait { display: flex; align-items: center; gap: 20px; margin: 40px 0 0; }
.portrait img { width: clamp(132px, 14vw, 184px); height: auto; aspect-ratio: 1; max-width: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--rule), 0 0 0 7px var(--tint), 0 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent); }
.portrait figcaption { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.2; }
.portrait figcaption span { display: block; margin-top: 4px; font-family: var(--body); font-style: normal; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
