/* Lintel, site.css: the tokens on :root, every rule below uses them.
   A warm off white canvas, generous white space, a refined sans with a light serif for the
   large headings, a mono for the small metadata, a soft neutral palette, gallery like
   photography in rounded frames, thin borders, one yellow accent kept for the primary action. */

:root {
  --color-canvas: #fbfaf7;
  --color-panel: #ffffff;
  --color-ink: #1a1a1a;
  --color-ink-muted: #6b6965;
  --color-ash: #a3a3a3;
  --color-hairline: #e8e5df;
  --color-hairline-strong: #cfcbc3;
  --color-accent: #fbff2b;
  --color-accent-deep: #eef21a;
  --color-field: rgba(26, 26, 26, 0.05);
  --color-scrim: rgba(26, 26, 26, 0.5);

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-display: clamp(40px, 6vw, 88px);
  --t-h2: clamp(32px, 4vw, 56px);
  --t-h3: clamp(22px, 2vw, 28px);
  --t-lede: clamp(17px, 1.4vw, 20px);
  --t-body: 16px;
  --t-small: 14px;
  --t-mono: 12px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --section: clamp(80px, 9vw, 128px);

  --radius-card: 16px;
  --radius: 10px;
  --radius-pic: 12px;
  --max-width: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p a:not(.button),
.footer a:not(.button) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-hairline-strong);
  transition: text-decoration-color 0.2s ease;
}

p a:not(.button):hover,
.footer a:not(.button):hover {
  text-decoration-color: var(--color-ink);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  color: var(--color-panel);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--t-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--color-ink-muted);
  max-width: 56ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius);
  background: var(--color-panel);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius);
  background: var(--color-panel);
  color: var(--color-ink);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.button:hover {
  border-color: var(--color-ink);
}

.button:active {
  transform: translateY(1px);
}

.button-dark {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-panel);
}

.button-dark:hover {
  background: #000;
}

.button-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

.button-accent:hover {
  background: var(--color-accent-deep);
  border-color: var(--color-ink);
}

.button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- The header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.header.is-solid {
  border-bottom-color: var(--color-hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand svg {
  width: 24px;
  height: 24px;
}

.nav {
  display: none;
  margin-left: auto;
  gap: var(--space-6);
}

.nav a {
  padding: var(--space-2) 0;
  font-size: 15px;
  color: var(--color-ink-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
}

.header-ask {
  margin-left: auto;
  min-height: 38px;
  padding: 0 var(--space-4);
  font-size: 14px;
}

.menu-button {
  min-height: 38px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius);
  background: var(--color-panel);
  font-weight: 500;
  font-size: 14px;
}

.menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-8) var(--gutter);
  background: var(--color-canvas);
  border-top: 1px solid var(--color-hairline);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.menu-links {
  display: flex;
  flex-direction: column;
}

.menu-links a {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-hairline);
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 300;
}

.menu-links a[aria-current] {
  color: var(--color-ink-muted);
}

.menu .button {
  align-self: flex-start;
}

.menu-foot {
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--t-small);
}

.menu-foot a {
  color: var(--color-ink);
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

.section-head {
  max-width: 64ch;
  margin-bottom: var(--space-10);
}

.section-sub {
  margin-top: var(--space-4);
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--color-ink-muted);
}

/* ---------- The hero: the one thing, the word that turns, the wide picture ---------- */

.hero {
  padding: var(--space-16) 0 var(--section);
  text-align: center;
}

.hero .tag {
  margin-bottom: var(--space-6);
}

.hero .display {
  max-width: 18ch;
  margin: 0 auto;
}

.hero .lede {
  margin: var(--space-6) auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.rotor {
  display: inline-block;
  position: relative;
  min-width: 2.2ch;
  text-align: left;
  font-style: italic;
  color: var(--color-ink);
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
}

.rotor.is-out {
  opacity: 0;
  transform: translateY(0.35em);
}

.rotor::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.08em;
  background: var(--color-accent);
  z-index: -1;
}

.hero-pic {
  position: relative;
  margin-top: var(--space-12);
  border-radius: var(--radius-pic);
  overflow: hidden;
  background: var(--color-hairline);
}

.hero-pic img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.hero-pic figcaption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  padding: 6px 10px;
  background: rgba(251, 250, 247, 0.92);
  border-radius: 6px;
  color: var(--color-ink);
  text-align: left;
}

/* ---------- The practice areas: a quiet list ---------- */

.areas {
  padding-bottom: var(--section);
}

.list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-hairline);
}

.list li:last-child {
  border-bottom: 1px solid var(--color-hairline);
}

.list .mono {
  padding-top: 6px;
}

.list p {
  grid-column: 2;
  max-width: 60ch;
  color: var(--color-ink-muted);
}

/* ---------- The stories as scenes ---------- */

.stories {
  padding-bottom: var(--section);
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}

.stage {
  display: none;
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.story {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.story-pic {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-pic);
  margin-bottom: var(--space-3);
}

.story p:not(.mono):not(.result) {
  color: var(--color-ink-muted);
}

.result {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.result-figure {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-line {
  font-size: var(--t-small);
  color: var(--color-ink-muted);
}

/* ---------- The way: the steps ---------- */

.way {
  padding-bottom: var(--section);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.step-no {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: var(--color-ash);
}

.step p {
  color: var(--color-ink-muted);
}

/* ---------- The people ---------- */

.people {
  padding-bottom: var(--section);
}

.persons {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.person {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-pic);
  margin-bottom: var(--space-3);
}

.person p:not(.mono) {
  color: var(--color-ink-muted);
}

/* ---------- The inquiry: the form ---------- */

.ask {
  padding-bottom: var(--section);
}

.ask-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.ask-text .tag {
  margin-bottom: var(--space-5);
}

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: var(--t-small);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--color-field);
  color: var(--color-ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--space-10);
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--color-ash);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-ink);
  background: var(--color-panel);
}

.field [aria-invalid="true"] {
  border-color: #b3261e;
}

.error {
  min-height: 1.2em;
  font-size: var(--t-mono);
  color: #b3261e;
}

.error:empty {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.hint {
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- The footer ---------- */

.footer {
  padding: var(--space-12) 0 var(--space-6);
  border-top: 1px solid var(--color-hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  user-select: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.footer-col p {
  margin-top: var(--space-2);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.footer-col a {
  color: var(--color-ink);
}

.footer-note {
  margin-top: var(--space-10);
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-ash);
}

/* ---------- The sticky bar (phones), the consent bar ---------- */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(251, 250, 247, 0.94);
  border-top: 1px solid var(--color-hairline);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}

.bar.is-on {
  transform: none;
}

.bar .button {
  flex: 1;
}

.consent {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-panel);
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius-card);
}

.consent[hidden] {
  display: none;
}

.consent-actions {
  display: flex;
  gap: var(--space-2);
}

/* ---------- The small pages ---------- */

.page {
  padding: var(--space-12) 0 var(--space-20);
  min-height: 60vh;
}

.page-text {
  max-width: 64ch;
}

.page-text .display {
  font-size: clamp(36px, 4.6vw, 64px);
  margin: var(--space-3) 0 var(--space-6);
}

.page-text h2 {
  margin: var(--space-10) 0 var(--space-3);
}

.page-text p,
.page-text li {
  color: var(--color-ink-muted);
}

.page-text p + p {
  margin-top: var(--space-4);
}

.page-text ul {
  list-style: disc;
  padding-left: var(--space-5);
}

.page-text li + li {
  margin-top: var(--space-2);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.lost {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.lost-pic {
  border-radius: var(--radius-pic);
  overflow: hidden;
}

.lost-pic img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .persons {
    grid-template-columns: repeat(3, 1fr);
  }

  .form {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-8);
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .lost {
    grid-template-columns: 1fr 1fr;
  }

  .list li {
    grid-template-columns: 64px 1fr;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .header-ask {
    margin-left: 0;
    min-height: 40px;
    padding: 0 var(--space-5);
    font-size: 15px;
  }

  .menu-button,
  .menu,
  .bar {
    display: none;
  }

  .hero {
    padding-top: var(--space-20);
  }

  .stories-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .stage {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-pic);
    overflow: hidden;
    background: var(--color-hairline);
  }

  .stage-pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.9s ease;
  }

  .stage-pic.is-on {
    opacity: 1;
  }

  .story-pic {
    display: none;
  }

  .story {
    min-height: 60vh;
    justify-content: center;
  }

  .ask-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-16);
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1.4fr;
    align-items: end;
  }
}

@media (max-width: 420px) {
  .hero-pic img {
    aspect-ratio: 4 / 3;
  }

  .hero-actions .button {
    width: 100%;
  }

  .header {
    gap: var(--space-3);
  }

  .header-ask {
    padding: 0 var(--space-3);
    font-size: 13px;
  }
}

/* Keep the logo and menu in view on small phones. The same contact action
   stays in the menu and in the page, without squeezing either control. */
@media (max-width: 360px) {
  .header-ask {
    display: none;
  }

  .menu-button {
    margin-left: auto;
  }
}

/* ---------- The pages beyond the home: what we fix, the stories, a story, how it works, people, contact ---------- */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 24px;
  font-weight: 500;
  border-bottom: 1px solid var(--color-hairline-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-bottom-color: var(--color-ink);
}

.section-more {
  margin-top: var(--space-5);
}

.page-head {
  max-width: 68ch;
  margin-bottom: var(--space-10);
}

.page-head .tag {
  margin-bottom: var(--space-5);
}

.page-head .section-sub a {
  color: var(--color-ink);
}

.page-back {
  margin-top: var(--space-4);
  text-transform: none;
  letter-spacing: 0;
}

.page-back a {
  color: var(--color-ink);
}

.wide-pic {
  margin-bottom: var(--space-12);
  border-radius: var(--radius-pic);
  overflow: hidden;
}

.wide-pic img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.plain-list li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--color-ink-muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  outline: 1px solid var(--color-ink);
}

.services {
  display: flex;
  flex-direction: column;
}

.service {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-hairline);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.service:last-child {
  border-bottom: 1px solid var(--color-hairline);
}

.service > .mono {
  padding-top: 6px;
}

.service-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 64ch;
}

.service-text .mono {
  margin-top: var(--space-3);
}

.service-line {
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--color-ink-muted);
}

.service-number {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--color-accent);
  background: var(--color-panel);
  color: var(--color-ink-muted);
}

.service-text .text-link {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.work-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.work-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
  color: inherit;
}

.work-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-pic);
  transition: transform 0.6s var(--ease);
}

.work-link:hover img {
  transform: scale(1.015);
}

.work-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.work-text > p:not(.mono):not(.result) {
  color: var(--color-ink-muted);
}

.result-inline {
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: 0;
}

.result-inline .result-figure {
  font-size: clamp(24px, 2.4vw, 32px);
}

.work-text .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.left-behind,
.not,
.how-we {
  margin-top: var(--space-16);
  max-width: 64ch;
}

.left-behind .h3,
.not .h3,
.how-we .h3 {
  margin-bottom: var(--space-5);
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-12);
}

.case-pic {
  border-radius: var(--radius-pic);
  overflow: hidden;
  background: var(--color-hairline);
}

.case-pic img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.result-big {
  margin-top: 0;
}

.result-big .result-figure {
  font-size: clamp(40px, 5vw, 72px);
}

.case-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.case-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 64ch;
}

.case-text .h3 {
  margin-top: var(--space-4);
}

.case-text p {
  color: var(--color-ink-muted);
}

.case-text div {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.case-aside {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.facts {
  display: flex;
  flex-direction: column;
}

.facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-hairline);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  padding-top: 3px;
}

.facts dd {
  font-size: 15px;
  line-height: 1.45;
}

.case-aside .button {
  align-self: flex-start;
}

.others-head {
  margin: var(--space-16) 0 var(--space-8);
}

.timeline {
  display: flex;
  flex-direction: column;
}

.phase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-hairline);
}

.phase:last-child {
  border-bottom: 1px solid var(--color-hairline);
}

.phase-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}

.phase-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 64ch;
}

.phase-text p {
  color: var(--color-ink-muted);
}

.fee {
  margin-top: var(--space-16);
}

.fee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.fee-text .tag {
  margin-bottom: var(--space-5);
}

.fee-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.fee-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.fee-card p:not(.mono):not(.fee-figure) {
  color: var(--color-ink-muted);
}

.fee-card-dark {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-panel);
}

.fee-card-dark .mono {
  color: var(--color-accent);
}

.fee-card-dark p:not(.mono):not(.fee-figure) {
  color: rgba(251, 250, 247, 0.78);
}

.fee-figure {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.profiles {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

.profile-pic {
  border-radius: var(--radius-pic);
  overflow: hidden;
  max-width: 420px;
}

.profile-pic img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 60ch;
}

.profile-text > p:not(.mono) {
  color: var(--color-ink-muted);
}

.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.facts-row li {
  padding: 4px 10px;
  border: 1px solid var(--color-hairline-strong);
  border-radius: var(--radius);
  font-size: var(--t-small);
  font-weight: 500;
  background: var(--color-panel);
}

.profile-reach {
  margin-top: var(--space-2);
  text-transform: none;
  letter-spacing: 0;
}

.profile-reach a {
  color: var(--color-ink);
}

.reach {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.reach-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-card);
  background: var(--color-panel);
}

.reach-big {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.reach-big a {
  text-decoration: none;
}

.reach-small {
  font-size: var(--t-small);
  color: var(--color-ink-muted);
}

.ask-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.after {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  counter-reset: after;
}

.after li {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  padding-left: var(--space-8);
  position: relative;
}

.after li::before {
  counter-increment: after;
  content: counter(after);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: var(--color-ash);
}

.after p {
  color: var(--color-ink-muted);
}

@media (min-width: 768px) {
  .service {
    grid-template-columns: 64px 1fr;
  }

  .work-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-8);
  }

  .phase {
    grid-template-columns: 180px 1fr;
    gap: var(--space-8);
  }

  .phase-head {
    flex-direction: column;
    gap: var(--space-2);
  }

  .fee-cards {
    grid-template-columns: 1fr 1fr;
  }

  .profile {
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
  }

  .reach {
    grid-template-columns: 1fr 1fr;
  }

  .after li {
    grid-template-columns: 160px 1fr;
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .work-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-body {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-16);
  }

  .case-aside {
    order: 0;
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
  }

  .fee-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-16);
  }

  .profile {
    grid-template-columns: 320px 1fr;
  }
}

/* ---------- Without JavaScript: the bar stays away ---------- */

html:not(.js) .bar {
  display: none;
}

/* ---------- Motion: the reveals, the split words, the stages, reduced motion ---------- */

[data-reveal],
[data-split] .w {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 60ms);
}

[data-reveal].is-in,
[data-split] .w.is-in {
  opacity: 1;
  transform: none;
}

[data-split] .w {
  display: inline-block;
  white-space: pre;
}

[data-stage] {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  [data-split] .w {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-scene] {
    height: auto !important;
  }

  [data-stage] {
    position: static;
    height: auto;
  }

  .rotor.is-out {
    opacity: 1;
    transform: none;
  }
}
