/* =========================================================================
   AD&B Studio — landing page
   Mobile-first. No framework. One variable font. No inline styles (CSP-safe).
   Sections:
     1. Fonts & tokens      6. Practice
     2. Reset & base        7. Work
     3. Layout helpers      8. Contact & footer
     4. Header & buttons    9. (removed)
     5. Hero & blueprint   10. Motion (reveals, reduced motion)
   ========================================================================= */

/* 1. FONTS & TOKENS ------------------------------------------------------ */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallback: Arial resized to Jakarta's proportions so the
   swap from fallback to web font doesn't shift the layout (CLS). */
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 103.4%;
  ascent-override: 100.4%;
  descent-override: 21.5%;
  line-gap-override: 0%;
}

:root {
  /* Brand (sampled from the supplied logo files) */
  --orange: #E88B24;          /* graphics + accents on dark only (2.3:1 on paper) */
  --orange-ink: #9A520A;      /* orange for small text on paper (5.2:1)          */
  --ink: #1E1916;
  --paper: #F4F2EE;
  --paper-2: #EAE6DF;

  /* Text */
  --text: var(--ink);
  --text-2: #4A433D;          /* 8.7:1 on paper */
  --muted: #6B635B;           /* 5.3:1 on paper */
  --on-dark: #F4F2EE;
  --on-dark-muted: #B4ABA1;   /* 7.7:1 on ink   */

  /* Lines */
  --line: rgba(30, 25, 22, 0.14);
  --line-strong: rgba(30, 25, 22, 0.32);
  --line-dark: rgba(244, 242, 238, 0.16);

  /* Type */
  --font: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Space & shape */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --radius: 14px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. RESET & BASE --------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: normal; }
strong { font-weight: 650; }

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

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* SVG sprite: kept in the DOM (not display:none) so <use> always resolves */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Used by the header's IntersectionObserver to detect "scrolled" */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

/* 3. LAYOUT HELPERS ------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-top: 0; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-head--split { flex-wrap: wrap; row-gap: 0.75rem; }
.section-head--split::after { display: none; }

.section-title {
  flex-basis: 100%;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.statement {
  font-size: clamp(1.875rem, 1.25rem + 2.8vw, 3.5rem);
  font-weight: 620;
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* 4. HEADER & BUTTONS ----------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header.is-scrolled {
  background-color: rgba(244, 242, 238, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; color: var(--ink); border-radius: 6px; }
.brand__logo { width: auto; height: 35px; aspect-ratio: 439 / 133; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-size: 0.9375rem;
  font-weight: 560;
}
.site-nav a { text-decoration: none; }
.site-nav > a:not(.site-nav__cta) {
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.site-nav > a:not(.site-nav__cta):hover { background-size: 100% 1.5px; }

.site-nav__cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.site-nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

@media (min-width: 720px) {
  .brand__logo { height: 44px; }   /* +10% */
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;               /* comfortable touch target */
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: #000; }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(30, 25, 22, 0.04); }
.btn--sm { min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.875rem; }

.btn__icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }

.linklike {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* 5. HERO & BLUEPRINT ----------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* Drafting grid: 24px minor / 120px major, faded out with a mask */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(30, 25, 22, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 25, 22, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(30, 25, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 25, 22, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 20%, transparent 78%);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3rem);
  align-items: center;
}

/* Keyword line lives inside the <h1> (SEO) but is styled as a small label */
.hero__eyebrow {
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

.hero__title {
  font-size: clamp(2.75rem, 0.6rem + 10vw, 5.5rem);
  font-weight: 720;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; }
/* Jakarta's full stop sits a little far from the "t" at display sizes */
.pd { margin-left: -0.05em; }

/* Orange "highlighter" stroke under "build it." */
.hl { position: relative; display: inline-block; z-index: 0; }
.hl::after {
  content: "";
  position: absolute;
  left: -0.04em; right: -0.06em;
  bottom: 0.06em;
  height: 0.2em;
  z-index: -1;
  background: var(--orange);
  transform-origin: left center;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__art {
  width: min(100%, 520px);
  justify-self: center;
  perspective: 1200px;
}

.bp {
  width: 100%;
  height: auto;
  overflow: visible;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.bp-guides line,
.bp-guides circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.75;
  stroke-opacity: 0.22;
  vector-effect: non-scaling-stroke;
}
.bp-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.bp-fill--o { fill: var(--orange); }
.bp-fill--k { fill: var(--ink); }

.bp-nodes circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}

.bp-dim path {
  fill: none;
  stroke: var(--orange-ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.bp text {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  fill: var(--orange-ink);
  font-variant-numeric: tabular-nums;
}
.bp-title rect, .bp-title path {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.45;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.bp-title text { font-size: 10.5px; fill: var(--muted); letter-spacing: 0.12em; }

/* Crosshair cursor readout (enabled by JS on mouse devices only) */
.hero.has-xhair { cursor: crosshair; }
.hero.has-xhair a, .hero.has-xhair button { cursor: pointer; }

.xhair {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.xhair.is-active { opacity: 1; }
.xhair__h, .xhair__v { position: absolute; background: rgba(154, 82, 10, 0.35); }
.xhair__h { left: 0; right: 0; top: 0; height: 1px; }
.xhair__v { top: 0; bottom: 0; left: 0; width: 1px; }
.xhair__label {
  position: absolute;
  top: 0; left: 0;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: pre;
  font-variant-numeric: tabular-nums;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-50%);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.hero__scroll-line {
  position: relative;
  width: 1px; height: 40px;
  overflow: hidden;
  background: var(--line);
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
}

@media (min-width: 960px) {
  .hero {
    min-height: min(100svh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; }
  .hero__title { font-size: clamp(4rem, 0.9rem + 5.2vw, 5.75rem); }
  .hero__art { justify-self: end; }
  .hero__scroll { display: flex; }
}

/* 6. PRACTICE ------------------------------------------------------------- */

.practice {
  display: grid;
  gap: 2rem;
}
.practice__body { display: grid; gap: 1.1rem; color: var(--text-2); max-width: 36rem; }
.practice__body em { font-style: italic; }

.services {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.svc { position: relative; padding-top: 1.5rem; }
.svc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
}
.svc__num {
  display: block;
  margin-bottom: 1.75rem;
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--orange-ink);
  font-variant-numeric: tabular-nums;
}
.svc__title {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.svc p { color: var(--text-2); max-width: 26rem; }

.team-line {
  max-width: 48rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-left: 1.25rem;
  border-left: 3px solid var(--orange);
  color: var(--text-2);
}
.team-line strong { color: var(--text); font-weight: 650; }

@media (min-width: 860px) {
  .practice { grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: end; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* 7. WORK ----------------------------------------------------------------- */

.work {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body { padding-top: 1.1rem; }
.card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.card__title {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.card__meta { margin-top: 0.3rem; font-size: var(--fs-small); color: var(--muted); }

.chip {
  flex-shrink: 0;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
}
.chip--done { border-color: var(--ink); background: var(--ink); color: var(--paper); }

@media (min-width: 760px) {
  .work { grid-template-columns: repeat(2, 1fr); }
  /* Offset the right column for a less "templated" rhythm */
  .work__item:nth-child(even) { margin-top: clamp(3rem, 8vw, 7rem); }
}

/* 8. CONTACT & FOOTER ----------------------------------------------------- */

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
  padding-bottom: 0;
}
.section--dark .eyebrow { color: var(--on-dark-muted); }
.section--dark .section-head::after { background: var(--line-dark); }

.statement--contact { max-width: 18ch; }

.email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.email__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  color: var(--orange);
  text-decoration: none;
  font-size: clamp(1.125rem, 0.2rem + 4vw, 3.25rem);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.email__text {
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 0.08em;
  transition: background-size 0.5s var(--ease);
}
.email__link:hover .email__text,
.email__link:focus-visible .email__text { background-size: 100% 2px; }
.email__icon {
  flex-shrink: 0;
  width: 0.9em; height: 0.9em;
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease);
}
.email__link:hover .email__icon { transform: rotate(0deg); }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-muted);
  font-size: var(--fs-small);
  font-weight: 560;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.copy[hidden] { display: none; }
.copy:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.copy.is-copied { color: var(--orange); border-color: var(--orange); }
.copy__icon { width: 16px; height: 16px; }

.people {
  display: grid;
  gap: 0;
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line-dark);
}
.person {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}
.person__name { font-size: 1.125rem; font-weight: 650; }
.person__role { color: var(--on-dark-muted); font-size: var(--fs-small); }
.person__text { margin-top: 0.85rem; min-height: 40px; display: flex; align-items: center; font-size: 0.9375rem; }
.person__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.85rem;
}
.person__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  font-size: 0.9375rem;
  font-weight: 520;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: color 0.2s;
}
.person__links a:hover { color: var(--orange); }
.person__links svg { width: 17px; height: 17px; color: var(--orange); }

.studio-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 3rem;
  margin-top: 2.5rem;
}
.studio-info a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.studio-info a:hover { color: var(--orange); }
.studio-info__k {
  display: block;
  margin-bottom: 0.15rem;
  font-size: var(--fs-label);
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

@media (min-width: 860px) {
  .people { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .person {
    padding: 1.75rem 1.5rem 1.75rem 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-dark);
  }
}

.site-footer {
  margin-top: var(--section-y);
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.site-footer__inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.site-footer__logo { width: auto; height: 30px; aspect-ratio: 439 / 133; color: var(--on-dark); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__links a, .site-footer__links .linklike {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.site-footer__links a:hover, .site-footer__links .linklike:hover { color: var(--on-dark); }

@media (min-width: 960px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; gap: 2.5rem; }
}

/* 10. MOTION -------------------------------------------------------------- */

/* --- Hero entrance (pure CSS, runs on load) --- */
@keyframes rise   { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up{ from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes fade   { to { opacity: 1; } }
@keyframes pop    { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sweep  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scroll-cue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: rise 1s var(--ease) both; }
  .hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
  .hl::after { animation: sweep 0.9s 0.85s var(--ease-in-out) both; }
  .hero__eyebrow, .hero__lead, .hero__actions { animation: fade-up 0.9s var(--ease) both; }
  .hero__eyebrow { animation-delay: 0.05s; }
  .hero__lead    { animation-delay: 0.35s; }
  .hero__actions { animation-delay: 0.5s; }

  /* Blueprint: guides → outline → nodes → fill → dimensions → title block */
  .bp-guides > *, .bp-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .bp-guides > * { animation: draw 1.6s var(--ease-in-out) forwards; }
  .bp-guides > :nth-child(2) { animation-delay: 0.1s; }
  .bp-guides > :nth-child(3) { animation-delay: 0.2s; }
  .bp-guides > :nth-child(4) { animation-delay: 0.3s; }
  .bp-guides > :nth-child(5) { animation-delay: 0.4s; }
  .bp-guides > :nth-child(6) { animation-duration: 2.4s; animation-delay: 0.2s; }

  .bp-line { animation: draw 1.6s 0.5s var(--ease-in-out) forwards; }
  .bp-line + .bp-line { animation-delay: 0.7s; }

  .bp-nodes circle { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-delay: 1.3s; }
  .bp-nodes circle:nth-child(2) { animation-delay: 1.36s; }
  .bp-nodes circle:nth-child(3) { animation-delay: 1.42s; }
  .bp-nodes circle:nth-child(4) { animation-delay: 1.48s; }
  .bp-nodes circle:nth-child(5) { animation-delay: 1.54s; }
  .bp-nodes circle:nth-child(6) { animation-delay: 1.60s; }
  .bp-nodes circle:nth-child(7) { animation-delay: 1.66s; }
  .bp-nodes circle:nth-child(8) { animation-delay: 1.72s; }
  .bp-nodes circle:nth-child(9) { animation-delay: 1.78s; }

  .bp-fill { opacity: 0; animation: fade 1s 1.9s var(--ease) forwards; }
  .bp-fill--k { animation-delay: 2.1s; }

  .bp-dim, .bp-title { opacity: 0; animation: fade 0.7s var(--ease) forwards; }
  .bp-dim:nth-child(1) { animation-delay: 2.3s; }
  .bp-dim:nth-child(2) { animation-delay: 2.45s; }
  .bp-dim:nth-child(3) { animation-delay: 2.6s; }
  .bp-dim:nth-child(4) { animation-delay: 2.75s; }
  .bp-title { animation-delay: 2.9s; }

  .hero__scroll-line::after { animation: scroll-cue 2.2s 3s var(--ease-in-out) infinite; }
}

/* --- Scroll reveals (only when JS is running and motion is allowed) --- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  }
  .js [data-reveal][data-reveal-delay="1"] { transition-delay: 0.12s; }
  .js [data-reveal][data-reveal-delay="2"] { transition-delay: 0.24s; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Service rules draw across as they appear */
  .js .svc::before { transform: scaleX(0); transition: transform 1.2s 0.15s var(--ease-in-out); }
  .js .svc.is-in::before { transform: scaleX(1); }

  /* Project images: wipe up like a sheet being uncovered */
  .js .card .card__media {
    clip-path: inset(100% 0 0 0 round var(--radius));
    transition: clip-path 1.2s var(--ease-in-out);
  }
  .js .card.is-in .card__media { clip-path: inset(0 0 0 0 round var(--radius)); }
  .js .card .card__media img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
  .js .card.is-in .card__media img { transform: scale(1); }

  @media (hover: hover) {
    .js .card.is-in:hover .card__media img { transform: scale(1.035); transition-duration: 0.8s; }
  }
}

/* --- Scroll-driven extras (progressive enhancement, no JS) ---
   Browsers that support animation-timeline get a gentle parallax on the
   hero drawing; others simply don't, with no fallback needed. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__art {
      animation: art-drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes art-drift {
      to { transform: translateY(-14%) rotate(-3deg); opacity: 0.25; }
    }
  }
}
