@charset "utf-8";

/* ============================================================================
   Vincent J. Deleo Professional Corporation
   Order: fonts -> tokens -> reset -> base -> layout -> components -> motion
   See DESIGN.md for the reasoning behind the palette and motion decisions.
   ========================================================================== */

/* --- Fonts -------------------------------------------------------------- */
/* Latin-subset variable files, self-hosted. No CDN call: faster, and no
   visitor IPs handed to a third party. */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-var-latin.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-var-latin.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Colour. Sourced from the client's logo lockup; see DESIGN.md for why the
     brand charcoal does not carry body text. Contrast against --ink-deep:
     cream 8.51:1 (AAA) - cream-lift 9.71:1 (AAA) - cream-mute 5.92:1 (AA).
     Against --ink: cream 5.66:1 (AA) - cream-lift 6.46:1 (AA).
     --cream-mute on --ink is 3.94:1, so it is LARGE TEXT ONLY there.
     --ink-soft is never text. */
  --ink-deep:   oklch(35.2% 0.0037 264.5);   /* #3A3B3D  page background */
  --ink:        oklch(44.9% 0.0035 264.5);   /* #545557  brand charcoal, surfaces */
  --ink-soft:   oklch(53.1% 0.0033 264.5);   /* #6B6C6E  borders only */
  --cream:      oklch(90.7% 0.0413 85.3);    /* #EDDFC2  brand cream, body text */
  --cream-lift: oklch(95.1% 0.0213 85.9);    /* #F5EEDF  headlines, hover */
  --cream-mute: oklch(79.6% 0.0425 85.3);    /* #C9BB9E  secondary text */

  --hairline: color-mix(in oklab, var(--cream) 22%, transparent);
  --hairline-strong: color-mix(in oklab, var(--cream) 40%, transparent);
  --surface: color-mix(in oklab, var(--ink) 55%, var(--ink-deep));
  --surface-lift: var(--ink);

  /* Type */
  --font-display: 'Jost', 'Futura', 'Century Gothic', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Source Serif 4', ui-serif, Georgia, 'Times New Roman', serif;

  /* 1.25 modular scale, fluid between 380px and 1400px viewports */
  --t--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --t-0:  clamp(1.02rem, 0.99rem + 0.14vw, 1.12rem);
  --t-1:  clamp(1.19rem, 1.13rem + 0.28vw, 1.40rem);
  --t-2:  clamp(1.42rem, 1.31rem + 0.50vw, 1.75rem);
  --t-3:  clamp(1.69rem, 1.49rem + 0.86vw, 2.19rem);
  --t-4:  clamp(2.00rem, 1.68rem + 1.38vw, 2.74rem);
  --t-5:  clamp(2.38rem, 1.86rem + 2.20vw, 3.42rem);
  --t-6:  clamp(2.80rem, 1.98rem + 3.45vw, 4.28rem);
  /* Display ceiling is 6rem; going louder is shouting, not designing. */
  --t-display: clamp(3.10rem, 1.90rem + 5.05vw, 5.35rem);

  /* Spacing, 4px base */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;    --s-11: 12rem;

  /* Section rhythm varies deliberately; these are the two defaults. */
  --section-y: clamp(4.5rem, 3rem + 6.5vw, 8.5rem);
  --section-y-tight: clamp(3rem, 2rem + 4.5vw, 5.5rem);

  --measure: 68ch;
  --container: 76rem;
  --container-narrow: 54rem;
  --gutter: clamp(1.25rem, 0.6rem + 2.8vw, 3rem);

  --radius-sm: 2px;
  --radius: 3px;

  /* Motion. Ease-out only; bounce and elastic read as dated. */
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast: 140ms;
  --d-mid: 260ms;
  --d-slow: 420ms;
  --d-enter: 700ms;

  /* Semantic z-index. Never arbitrary values. */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 200;
  --z-overlay: 300;
  --z-toast: 400;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--ink-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--t-0);
  /* Light type on dark reads lighter than it is; give it room. */
  line-height: 1.68;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cream-lift);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Base typography ---------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;   /* floor is -0.04em; never tighter */
  color: var(--cream-lift);
  text-wrap: balance;
}
h1 { font-size: var(--t-6); }
h2 { font-size: var(--t-5); }
h3 { font-size: var(--t-3); letter-spacing: -0.018em; }
h4 { font-size: var(--t-1); letter-spacing: -0.01em; font-weight: 600; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

strong, b { font-weight: 600; color: var(--cream-lift); }

.lede {
  font-size: var(--t-1);
  line-height: 1.58;
  color: var(--cream);
}

.muted { color: var(--cream-mute); }

/* The one place small caps labels are used is inside data rows, never as a
   section eyebrow. Repeating a tracked kicker above every heading is the tell. */
.label {
  font-family: var(--font-display);
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-mute);
  line-height: 1.3;
}

/* A column heading, not a section heading — keeps h2 semantics without h2 scale. */
.h-sm { font-size: var(--t-2); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose h3 { margin-top: 1.8em; }

/* --- Layout ------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--surface { background: var(--surface); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: var(--z-toast);
  padding: var(--s-3) var(--s-5);
  background: var(--cream);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--d-mid) var(--ease-quart);
}
.skip-link:focus-visible { transform: translateY(0); }

/* Section heads: a rule and a heading, not a tracked eyebrow. */
.section-head { margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.section-head__rule {
  width: 100%;
  height: 1px;
  background: var(--hairline);
  margin-bottom: var(--s-5);
}
.section-head p { max-width: var(--measure); margin-top: var(--s-4); color: var(--cream-mute); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.85em 1.6em;
  font-family: var(--font-display);
  font-size: var(--t-0);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  transition:
    background var(--d-fast) var(--ease-quart),
    border-color var(--d-fast) var(--ease-quart),
    color var(--d-fast) var(--ease-quart),
    transform var(--d-fast) var(--ease-quart);
}
.btn:hover { --btn-bg: var(--cream-lift); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover {
  --btn-bg: color-mix(in oklab, var(--cream) 10%, transparent);
  --btn-fg: var(--cream-lift);
  border-color: var(--cream);
}

.btn__arrow { transition: transform var(--d-mid) var(--ease-quart); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Inline text link with a rule that grows on hover */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  color: var(--cream-lift);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--cream-lift), var(--cream-lift));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--d-mid) var(--ease-quart);
}
.link:hover { background-size: 100% 1px; }

/* --- Navigation --------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in oklab, var(--ink-deep) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition:
    background var(--d-mid) var(--ease-quart),
    border-color var(--d-mid) var(--ease-quart),
    backdrop-filter var(--d-mid) var(--ease-quart);
}
/* Bounded, purposeful blur — the only place any blur is used. */
@supports (backdrop-filter: blur(1px)) {
  .nav { backdrop-filter: blur(10px) saturate(1.1); }
}
.nav[data-scrolled='true'] {
  background: color-mix(in oklab, var(--ink-deep) 94%, transparent);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4.5rem;
  transition: min-height var(--d-mid) var(--ease-quart);
}
.nav[data-scrolled='true'] .nav__inner { min-height: 3.9rem; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--cream);
}
.nav__brand :is(svg, img) { width: auto; height: 1.5rem; }
.nav__brand-text {
  font-family: var(--font-display);
  font-size: var(--t--1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-mute);
  transition: color var(--d-fast) var(--ease-quart);
}
.nav__brand:hover .nav__brand-text { color: var(--cream); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.4rem + 1.7vw, 2.1rem);
  list-style: none;
  padding: 0;
}
.nav__link {
  font-family: var(--font-display);
  font-size: var(--t-0);
  font-weight: 400;
  text-decoration: none;
  color: var(--cream);
  padding-block: var(--s-2);
  position: relative;
  transition: color var(--d-fast) var(--ease-quart);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--cream-lift);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-mid) var(--ease-quart);
}
.nav__link:hover { color: var(--cream-lift); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--cream-lift); }

.nav__cta { padding: 0.6em 1.2em; font-size: var(--t--1); }

.nav__toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  align-items: center;
  justify-content: center;
}
.nav__toggle-bars { display: block; width: 22px; height: 12px; position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--cream);
  transition: transform var(--d-mid) var(--ease-quart), top var(--d-mid) var(--ease-quart);
}
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars::after { top: 10px; }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--hairline);
    padding: var(--s-4) var(--gutter) var(--s-7);
    display: grid;
    gap: var(--s-2);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--d-mid) var(--ease-quart),
      transform var(--d-mid) var(--ease-quart),
      visibility 0s linear var(--d-mid);
  }
  .nav__menu[data-open='true'] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: var(--s-4) 0;
    font-size: var(--t-2);
    border-bottom: 1px solid var(--hairline);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: var(--s-5); justify-content: center; font-size: var(--t-0); }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  /* Kept deliberately short: the primary CTA must clear the fold on a 900px
     laptop, which a taller hero does not. */
  padding-block: clamp(2.25rem, 1.5rem + 3.2vw, 4rem) clamp(3rem, 2rem + 5vw, 5.5rem);
  overflow: hidden;
}
/* A single wide radial lift so the drench has depth without a gradient look. */
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background: radial-gradient(60% 55% at 22% 18%,
    color-mix(in oklab, var(--cream) 7%, transparent), transparent 70%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__monogram {
  width: clamp(8.5rem, 6rem + 11vw, 13.5rem);
  color: var(--cream);
}
.hero__monogram svg { width: 100%; height: auto; overflow: visible; }

/* Sits outside the monogram's clamped box so it never wraps against it. */
.hero__wordmark {
  margin-top: var(--s-4);
  margin-bottom: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
}

.hero__title {
  font-size: var(--t-display);
  max-width: 17ch;
}
.hero__title em {
  font-style: normal;
  color: var(--cream-mute);
}
.hero__lede {
  margin-top: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  max-width: 56ch;
  font-size: var(--t-1);
  line-height: 1.55;
  color: var(--cream);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* --- Page head (inner pages; the animated hero is homepage-only) --------- */
.page-head {
  position: relative;
  padding-block: clamp(2.75rem, 2rem + 3.5vw, 5rem) clamp(2.5rem, 1.8rem + 3vw, 4rem);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: -60% -10% auto -10%;
  height: 180%;
  background: radial-gradient(55% 60% at 18% 10%,
    color-mix(in oklab, var(--cream) 6%, transparent), transparent 70%);
  pointer-events: none;
}
.page-head > * { position: relative; }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: var(--s-5); max-width: 58ch; }

/* --- Credentials band --------------------------------------------------- */
.creds {
  border-block: 1px solid var(--hairline);
  padding-block: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
}
.creds__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-5) 0;
  list-style: none;
  padding: 0;
}
.creds__item {
  padding-inline: clamp(0.8rem, 2vw, 2rem);
  position: relative;
}
.creds__item:first-child { padding-left: 0; }
/* Hairlines between, drawn on reveal. Not a border-left accent stripe. */
.creds__item + .creds__item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 1px;
  height: 0;
  background: var(--hairline-strong);
  transform: translateY(-50%);
  height: 72%;
  transition: height var(--d-slow) var(--ease-quart) calc(var(--i, 0) * 70ms);
}
/* Drawn state is the default; only a JS-enabled page collapses it to animate. */
[data-js='on'] .creds__item + .creds__item::before { height: 0; }
[data-js='on'] .creds.is-visible .creds__item + .creds__item::before { height: 72%; }
.creds__abbr {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-3);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream-lift);
}
.creds__body {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t--1);
  line-height: 1.45;
  color: var(--cream-mute);
}
@media (max-width: 640px) {
  .creds__item { padding-inline: 0; }
  .creds__item + .creds__item::before { display: none; }
  .creds__list { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-5); }
}

/* --- Split (text + image) ----------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--reverse > :first-child { order: 2; }
}

.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Photography is duotoned toward the palette so image and brand read as one
     system rather than stock dropped into a dark page. */
  filter: grayscale(1) contrast(1.06) brightness(0.78) sepia(0.32) saturate(1.35);
}
.figure--portrait img { aspect-ratio: 1 / 1; }
/* The placeholder headshot is a 278px crop from a screenshot. Capping the
   rendered width keeps it near 1:1 instead of upscaling to a soft 500px+.
   RAISE OR REMOVE this cap once the original high-resolution file is supplied. */
.figure--portrait { max-width: 300px; align-self: start; }
.figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    color-mix(in oklab, var(--ink-deep) 55%, transparent), transparent 55%);
  pointer-events: none;
}
.figure__caption {
  margin-top: var(--s-3);
  font-size: var(--t--1);
  color: var(--cream-mute);
}

/* --- Metrics (before -> after, not stat tiles) -------------------------- */
.metrics { display: grid; gap: var(--s-6); }
.metric {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  padding-block: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  border-top: 1px solid var(--hairline);
}
.metric:last-child { border-bottom: 1px solid var(--hairline); }
.metric__from,
.metric__to {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric__from { font-size: var(--t-2); color: var(--cream-mute); }
.metric__to { font-size: var(--t-5); color: var(--cream-lift); }
.metric__track { position: relative; height: 1px; background: var(--hairline); }
.metric__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--cream);
  transition: width 900ms var(--ease-expo);
}
[data-js='on'] .metric__fill { width: 0; }
[data-js='on'] .metric.is-visible .metric__fill { width: 100%; }
.metric__label {
  grid-column: 1 / -1;
  font-size: var(--t--1);
  color: var(--cream-mute);
}

/* Single-stat variant: one animated figure, no from/to pair or track bar —
   for a metric expressed as growth rather than a before/after comparison. */
.metric--single { grid-template-columns: auto; justify-items: start; gap: var(--s-2); }
.metric--single .metric__to--lg { font-size: var(--t-6); }
@media (max-width: 620px) {
  .metric { grid-template-columns: auto 1fr auto; gap: var(--s-4); }
  .metric__to { font-size: var(--t-4); }
}

/* --- Service blocks (deliberately unequal) ------------------------------ */
.services { display: grid; gap: var(--s-5); }
@media (min-width: 900px) {
  .services { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--d-mid) var(--ease-quart);
}
/* Wipe, not a fade. Sits behind content via z-index, no layout properties animated. */
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--surface-lift);
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--d-slow) var(--ease-quart);
}
.service:hover { border-color: var(--hairline-strong); }
.service:hover::before,
.service:focus-visible::before { clip-path: inset(0 0 0 0); }

.service__title { font-size: var(--t-3); }
.service--lead .service__title { font-size: var(--t-4); }
.service__body { margin-top: var(--s-4); color: var(--cream); max-width: 46ch; }
.service__list {
  margin-top: var(--s-5);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-2);
}
.service__list li {
  position: relative;
  padding-left: 1.4em;
  font-size: var(--t-0);
  color: var(--cream);
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6em;
  height: 1px;
  background: var(--cream-mute);
}
.service__cta { margin-top: auto; padding-top: var(--s-6); }

/* --- Steps (a real sequence, so numbers are earned) --------------------- */
.steps {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step { counter-increment: step; }
.step__n {
  font-family: var(--font-display);
  font-size: var(--t-1);
  font-weight: 500;
  color: var(--cream-mute);
  font-variant-numeric: tabular-nums;
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step__rule { height: 1px; background: var(--hairline); margin: var(--s-4) 0 var(--s-4); }
.step h3 { font-size: var(--t-1); }
.step p { margin-top: var(--s-3); color: var(--cream-mute); font-size: var(--t-0); }

/* --- Industries --------------------------------------------------------- */
.industries {
  display: grid;
  /* Explicit column counts, not auto-fit: the tile grid is separated by its own
     background showing through 1px gaps, so a ragged final row leaves a visible
     hole. Fixed counts keep every row complete for a six-item list. */
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  padding: 0;
}
.industry {
  background: var(--ink-deep);
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  transition: background var(--d-mid) var(--ease-quart);
}
.industry:hover { background: var(--surface); }
.industry h3 { font-size: var(--t-1); }
.industry p { margin-top: var(--s-2); font-size: var(--t--1); color: var(--cream-mute); }
.industry--lead { background: var(--surface); }
.industry--lead:hover { background: var(--surface-lift); }
@media (min-width: 860px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .industries { grid-template-columns: 1fr; } }

/* An odd-numbered list in the two-column band leaves its last cell empty, and
   because the grid's own background is what draws the 1px gaps, that empty cell
   reads as a lighter rectangle rather than as nothing. Stretching the orphan
   across both columns closes it. Even-numbered lists are unaffected, so the
   six-item grids and the four-item variant below both ignore this. */
@media (min-width: 521px) and (max-width: 859px) {
  .industries > .industry:nth-child(odd):last-child { grid-column: 1 / -1; }
}

/* Same problem, three-column band: a list whose count isn't a multiple of 3
   leaves a gap in the final row. n%3==1 → one orphan, spans the full row.
   n%3==2 → two items share the last row with one empty cell, so the second
   one spans the remaining two columns. Scoped away from .industries--pair,
   which is already a fixed two-column grid and never has this problem. */
@media (min-width: 860px) {
  .industries:not(.industries--pair) > .industry:nth-child(3n+1):last-child { grid-column: 1 / -1; }
  .industries:not(.industries--pair) > .industry:nth-child(3n+2):last-child { grid-column: span 2; }
}

/* Four-tile variant (404 wayfinding). Pinned to two columns at every width:
   the three-column rule above assumes a six-item list, and four items in three
   columns leaves two empty cells. */
.industries--pair { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .industries--pair { grid-template-columns: repeat(2, 1fr); } }

/* Navigable tiles: the whole tile is the click target, not just the heading
   text. `.industry` is otherwise informational, so this stays a modifier. */
.industry--nav { position: relative; }
.industry--nav h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.industry--nav:focus-within { background: var(--surface-lift); }

/* --- Timeline ----------------------------------------------------------- */
.timeline { position: relative; list-style: none; padding: 0 0 0 var(--s-7); }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.34rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--hairline-strong);
  transform-origin: top;
  transition: transform 1100ms var(--ease-quart);
}
[data-js='on'] .timeline::before { transform: scaleY(0); }
[data-js='on'] .timeline.is-visible::before { transform: scaleY(1); }

.tl-item { position: relative; padding-bottom: var(--s-7); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s-7));
  top: 0.55rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--ink-deep);
  border: 1px solid var(--cream-mute);
  transition: transform var(--d-slow) var(--ease-quart) calc(320ms + var(--i, 0) * 130ms);
}
[data-js='on'] .tl-item::before { transform: scale(0); }
[data-js='on'] .timeline.is-visible .tl-item::before { transform: scale(1); }
.tl-item--current::before { background: var(--cream); border-color: var(--cream); }
.tl-item__period {
  font-family: var(--font-display);
  font-size: var(--t--1);
  letter-spacing: 0.08em;
  color: var(--cream-mute);
  font-variant-numeric: tabular-nums;
}
.tl-item__role { margin-top: var(--s-2); font-size: var(--t-2); }
.tl-item__org { font-family: var(--font-display); font-size: var(--t-1); color: var(--cream); margin-top: var(--s-1); }
.tl-item p { margin-top: var(--s-3); color: var(--cream-mute); max-width: var(--measure); }

/* --- Quotes ------------------------------------------------------------- */
.quotes { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.quote {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.quote blockquote { font-size: var(--t-1); line-height: 1.55; color: var(--cream-lift); }
.quote figcaption { margin-top: auto; padding-top: var(--s-5); font-size: var(--t--1); color: var(--cream-mute); }

/* --- Contact / form ----------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.detail-list { list-style: none; padding: 0; display: grid; gap: var(--s-5); }
.detail-list dt, .detail__k {
  font-family: var(--font-display);
  font-size: var(--t--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.detail__v { margin-top: var(--s-2); font-size: var(--t-1); }
.detail__v a { text-decoration-color: var(--hairline-strong); }
.detail__v a:hover { text-decoration-color: currentColor; }

.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-family: var(--font-display); font-size: var(--t--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-mute); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85em 1em;
  background: var(--surface);
  color: var(--cream-lift);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--t-0);
  transition: border-color var(--d-fast) var(--ease-quart), box-shadow var(--d-fast) var(--ease-quart), background var(--d-fast) var(--ease-quart);
}
.field textarea { min-height: 9rem; resize: vertical; }
/* Placeholder must clear 4.5:1 too — the muted-grey default is the usual failure. */
.field ::placeholder { color: var(--cream-mute); opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cream);
  background: var(--surface-lift);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--cream) 18%, transparent);
}
.field[data-invalid='true'] input,
.field[data-invalid='true'] textarea { border-color: var(--cream-lift); }
.field__error {
  font-family: var(--font-display);
  font-size: var(--t--1);
  color: var(--cream-lift);
  min-height: 0;
  opacity: 0;
  transition: opacity var(--d-fast) var(--ease-quart);
}
.field[data-invalid='true'] .field__error { opacity: 1; }
.field--row { display: grid; gap: var(--s-5); }
@media (min-width: 620px) { .field--row { grid-template-columns: 1fr 1fr; } }

/* Honeypot: off-screen, not display:none, so bots still fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  font-family: var(--font-display);
  font-size: var(--t-0);
  padding: var(--s-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
}
.form__status[hidden] { display: none; }

.spinner {
  width: 1em; height: 1em;
  border: 1.5px solid color-mix(in oklab, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 620ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Footer ------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--s-8) var(--s-6);
}
.footer__top {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
}
@media (min-width: 780px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand :is(svg, img) { width: 7.5rem; height: auto; color: var(--cream); }
.footer__tag { margin-top: var(--s-4); color: var(--cream-mute); font-size: var(--t-0); max-width: 34ch; }
.footer__col h2 { font-family: var(--font-display); font-size: var(--t--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-mute); font-weight: 500; }
.footer__col ul { list-style: none; padding: 0; margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.footer__col a { text-decoration: none; color: var(--cream); transition: color var(--d-fast) var(--ease-quart); }
.footer__col a:hover { color: var(--cream-lift); text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  justify-content: space-between;
  font-size: var(--t--1);
  color: var(--cream-mute);
}

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
  padding-block: clamp(3rem, 2rem + 4.5vw, 5.5rem);
}
.cta-band h2 { font-size: var(--t-5); max-width: 20ch; }
.cta-band p { margin-top: var(--s-4); color: var(--cream); max-width: 52ch; font-size: var(--t-1); }
.cta-band .hero__actions { margin-top: var(--s-6); }

/* ============================================================================
   Motion
   Everything below enhances content that is already visible. Nothing is gated
   behind a transition, so a page still renders fully if JS never runs.
   ========================================================================== */

/* Monogram construction. Each of the five geometric parts wipes in
   top-to-bottom, staggered left to right. `fill-box` makes the percentage
   resolve against each path's own bounding box. */
.monogram__part { clip-path: inset(0 0 0 0); }
[data-animate-monogram='pending'] .monogram__part { clip-path: inset(0 0 100% 0); }
[data-animate-monogram='run'] .monogram__part {
  clip-path: inset(0 0 0 0);
  transition: clip-path var(--d-enter) var(--ease-expo) calc(var(--i, 0) * 95ms);
}

/* Wordmark settles from wide tracking, echoing the logo's letterspaced DELEO */
.wordmark {
  font-family: var(--font-display);
  font-size: var(--t--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--cream-mute);
}
[data-animate-monogram='pending'] .wordmark { letter-spacing: 0.9em; opacity: 0; }
[data-animate-monogram='run'] .wordmark {
  letter-spacing: 0.34em;
  opacity: 1;
  transition: letter-spacing 950ms var(--ease-expo) 380ms, opacity 620ms var(--ease-quart) 380ms;
}

/* Generic reveal, used sparingly — never applied to every section. */
.reveal { opacity: 1; transform: none; }
[data-js='on'] .reveal { opacity: 0; transform: translateY(14px); }
[data-js='on'] .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--d-slow) var(--ease-quart) calc(var(--i, 0) * 70ms),
    transform var(--d-slow) var(--ease-quart) calc(var(--i, 0) * 70ms);
}

/* Cross-document crossfade. Progressive enhancement; ignored where unsupported. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 260ms; }

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  /* Show the end state outright rather than transitioning to it. */
  [data-animate-monogram] .monogram__part { clip-path: inset(0 0 0 0) !important; }
  [data-animate-monogram] .wordmark { letter-spacing: 0.34em !important; opacity: 1 !important; }
  [data-js='on'] .reveal { opacity: 1 !important; transform: none !important; }
  .creds .creds__item + .creds__item::before { height: 72%; }
  .timeline::before { transform: scaleY(1); }
  .timeline .tl-item::before { transform: scale(1); }
  .metric__fill { width: 100%; }
  @view-transition { navigation: none; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .nav, .cta-band, .skip-link, .form { display: none; }
  body { background: #fff; color: #111; }
  h1, h2, h3, h4 { color: #000; }
}
