/* ============================================================
   Baxter William - Venture Studio
   Built to Design Directives v2. Near-monochrome, type-driven.
   Type: Angie Sans (from the reference), Helvetica Neue for the
   logo lockup only.
   ============================================================ */

/* ---- Fonts ------------------------------------------------ */
@font-face {
  font-family: "Angie Sans";
  src: url("fonts/angie-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Angie Sans";
  src: url("fonts/angie-sans-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---- Tokens ----------------------------------------------- */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #737373;
  --rule: #e5e5e5;

  --font: "Angie Sans", Georgia, serif;

  --maxw: 1440px;
  --gutter: 24px;      /* mobile */
  --pad-y: 96px;       /* mobile section padding */
}

@media (min-width: 900px) {
  :root {
    --gutter: 64px;    /* desktop */
    --pad-y: 160px;    /* desktop section padding */
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;   /* clear the sticky nav on anchor jumps */
  overscroll-behavior: none;  /* hard stop at top/bottom, no rubber-band */
}

body { overscroll-behavior: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }

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

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

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

/* ---- Layout ----------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--pad-y);
  border-top: 1px solid var(--rule);
}

/* Main content scrolls over the footer, which is pinned to the bottom and
   revealed as you reach the end of the page. */
main {
  position: relative;
  z-index: 1;
  background: var(--bg);
  /* a clean edge on the scrolling content so the footer reads as sliding
     underneath it, not as content being cut off at the bottom */
  border-bottom: 1px solid var(--ink);
}

/* 12 column grid used by items and pricing */
.item,
.start__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ---- Type styles ------------------------------------------ */
.eyebrow {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
}

.section-head {
  font-size: clamp(2rem, 4vw, 3.5rem);   /* 32 -> 56 */
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
}

/* section title for the Clients / Assets scrolls */
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-bottom: 48px;
}

.body {
  font-size: 17px;
  line-height: 1.5;
  max-width: 62ch;
}

/* ---- 01  Nav ---------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.nav__wordmark {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 15px;
}

.nav__links a { position: relative; }

.nav__links a:not(.nav__cta):not(.nav__login)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}
.nav__links a:not(.nav__cta):not(.nav__login):hover::after { transform: scaleX(1); }

.nav__cta {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* Login, set apart by a hairline. On hover it fades to Client / Investor. */
.nav__login-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding-left: 28px;
  margin-left: 4px;
  border-left: 1px solid var(--rule);
}
.nav__login {
  color: var(--muted);
  font-size: 14px;
  transition: opacity 240ms ease;
}
.nav__login-opts {
  position: absolute;
  left: 28px;
  top: 0;
  display: inline-flex;
  gap: 16px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.nav__login-opts a { color: var(--muted); font-size: 14px; }
.nav__login-opts a:hover { color: var(--ink); }
/* desktop only: hover fades Login into Client / Investor */
@media (min-width: 701px) {
  .nav__login-wrap:hover .nav__login,
  .nav__login-wrap:focus-within .nav__login { opacity: 0; }
  .nav__login-wrap:hover .nav__login-opts,
  .nav__login-wrap:focus-within .nav__login-opts { opacity: 1; pointer-events: auto; }
}

/* Mobile hamburger: an animated 0/1 ASCII icon that draws its own square and
   cycles menu -> diamond -> light bulb. No border; sized to the wordmark. */
.burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  align-self: center;
}
.burger__ascii {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 4px;          /* JS overrides to match the wordmark height */
  line-height: 1;
  white-space: pre;
  margin: 0;
  color: var(--ink);
}

@media (max-width: 700px) {
  .burger { display: inline-block; }
  /* keep the brand and the button above the overlay so it can be closed */
  .nav__brand { position: relative; z-index: 50; }
  .burger { position: relative; z-index: 50; }

  /* nav links become a full-screen overlay menu */
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 96px var(--gutter) 48px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 320ms ease, transform 320ms ease;
    z-index: 40;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1.75rem; }
  .nav__cta { border-bottom: 0; padding-bottom: 0; }
  /* login stays put; tapping it pops Client / Investor out underneath,
     absolutely positioned so nothing else in the menu moves */
  .nav__login-wrap {
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }
  .nav__login {
    color: var(--ink);
    font-size: 1.75rem;
    opacity: 1;
  }
  .nav__login-opts {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
  }
  .nav__login-wrap.is-open .nav__login-opts {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__login-opts a { font-size: 1.25rem; }
  .nav__links a:not(.nav__cta):not(.nav__login)::after { display: none; }

  /* on open, a line sweeps left-to-right under each link then hides, staggered */
  .nav.is-open .nav__links a { position: relative; }
  .nav.is-open .nav__links a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left center;
    animation: navsweep 1s ease-in-out both;
  }
  .nav.is-open .nav__links a:nth-child(1)::after { animation-delay: 0.22s; }
  .nav.is-open .nav__links a:nth-child(2)::after { animation-delay: 0.34s; }
  .nav.is-open .nav__links a:nth-child(3)::after { animation-delay: 0.46s; }
  .nav.is-open .nav__links a:nth-child(4)::after { animation-delay: 0.58s; }
  .nav.is-open .nav__links a:nth-child(5)::after { animation-delay: 0.70s; }
  .nav.is-open .nav__links a:nth-child(6)::after { animation-delay: 0.82s; }
  .nav.is-open .nav__links a:nth-child(7)::after { animation-delay: 0.94s; }
  .nav.is-open .nav__links a:nth-child(8)::after { animation-delay: 1.06s; }
  /* the Login label is a span, so give it the same sweep as the links */
  .nav.is-open .nav__login-wrap .nav__login { position: relative; }
  .nav.is-open .nav__login-wrap .nav__login::after {
    content: "";
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left center;
    animation: navsweep 1s ease-in-out 0.94s both;
  }
}

@keyframes navsweep {
  0%   { transform: scaleX(0); transform-origin: left center; }
  42%  { transform: scaleX(1); transform-origin: left center; }
  58%  { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}

/* ---- 02  Hero: a looping 0/1 sequence with the intro line under it ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px var(--gutter) clamp(40px, 6vh, 72px);
  overflow: hidden;
  text-align: center;
}
.hero + .section { border-top: 0; }
/* cap the art height so the intro line always stays in view on landing */
.hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(340px, 58vh, 620px);
  overflow: hidden;
}
.ascii-scene {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre;
  line-height: 1.0;
  letter-spacing: 0;
  font-size: clamp(4.5px, 1.55vw, 15.5px);
  color: var(--ink);
  margin: 0;
  user-select: none;
}
.hero__line {
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 30ch;
  margin: clamp(20px, 4.5vh, 52px) auto 0;
  text-align: center;
  color: var(--ink);
}
/* the intro line fades in on load, regardless of scroll position */
.js-anim .hero__line { opacity: 0; animation: heroLineIn 900ms cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s both; }
@keyframes heroLineIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  /* fill the screen: the ascii is the largest thing, the line rests at the bottom */
  .hero {
    min-height: calc(100svh - 58px);
    justify-content: flex-start;
    padding: 18px var(--gutter) 30px;
  }
  .hero__art { flex: 1 1 auto; width: 100%; height: auto; }
  .ascii-scene { font-size: 2.5vw; }   /* fill the width; empty grid margins crop */
  /* ascii stays large up top; the line sits up off the bottom, closer to it */
  .hero__line { font-size: clamp(1.375rem, 6vw, 1.875rem); max-width: 22ch; margin-top: 16px; margin-bottom: clamp(48px, 15vh, 150px); }
}

/* ---- Items (Client + Assets, identical treatment) -------- */
.items > .item + .item {
  position: relative;
  margin-top: 72px;
  padding-top: 72px;
}
/* divider between items: a full-width line that wipes in left-to-right under
   motion, and is simply present (static) with no JS / reduced motion */
.items > .item + .item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
}
.js-anim .items > .item + .item::before {
  transform: scaleX(0);
  transition: transform 1000ms cubic-bezier(0.33, 0, 0.15, 1);
}
.js-anim .items > .item + .item.is-rev::before { transform: scaleX(1); }

.item__meta { grid-column: 1 / span 3; }
.item__body { grid-column: 5 / span 8; }

.meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding-block: 8px;
}
.meta-row + .meta-row { border-top: 1px solid var(--rule); }

.meta-row dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.meta-row dd { font-size: 13px; }
.meta-row dd a {
  border-bottom: 1px solid var(--rule);
  transition: border-color 240ms ease;
}
.meta-row dd a:hover { border-color: var(--ink); }

.item__name {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.item__note {
  margin-top: 12px;
  max-width: 48ch;
  color: var(--ink);
}

/* Media: one per item, radius 0, hover scale 1.02 (the only hover
   effect on the site). Placeholder tone uses the hairline grey. */
.media {
  display: block;
  margin-top: 32px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--rule);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease-out;
}
.media:hover img { transform: scale(1.02); }

.media--placeholder {
  position: relative;
  display: grid;
  place-items: center;
  transition: transform 400ms ease-out;
}
.media--placeholder:hover { transform: scale(1.02); }
/* the media fades up as it enters, after the divider and the text above it,
   and re-runs on re-entry. Static with no JS / reduced motion. */
.js-anim .media {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: 140ms;
}
.js-anim .media.is-rev { opacity: 1; transform: none; }
.media__label {
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

/* ---- 04  Start / pricing ---------------------------------- */
.start__lead { grid-column: 1 / span 5; }
.start .quote { grid-column: 7 / span 6; }

.start__lead .section-head { margin-bottom: 20px; }

.quote { display: block; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 0;
  outline: none;
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }

.btn {
  display: inline-block;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 14px 26px;
  text-decoration: none;
  transition: background 240ms ease, color 240ms ease;
}
.btn:hover { background: var(--bg); color: var(--ink); }

/* ghost variant: outline until hovered */
.btn--ghost { background: var(--bg); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.start__lead .btn { margin-top: 36px; }

/* pricing CTA on the home page: centred, no rules above or below */
.pricecta { border-top: 0; }
.pricecta + .section { border-top: 0; }

/* ---- Closing statement, centred ---------------------------- */
.closing__inner {
  max-width: 40ch;
  margin-inline: auto;
  text-align: center;
}
.closing__copy {
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.quote__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  min-height: 1em;
}

/* ---- 05  Assets: house mark slot -------------------------- */
.assets .wrap { position: relative; }
.housemark {
  /* Reserved slot for the single drawn ornamental mark. Empty until
     the real mark is drawn. Height keeps the rhythm without showing a
     placeholder ornament. */
  height: 0;
  margin-bottom: 0;
}
.housemark:not(:empty) {
  height: auto;
  margin-bottom: 72px;
  display: flex;
  justify-content: center;
}
.housemark :is(svg, img) {
  width: 96px;
  height: auto;
  color: var(--ink);
}

/* ---- 06  Point of view ------------------------------------ */
.longform { max-width: 62ch; }
.longform + .longform {
  position: relative;
  margin-top: 80px;
  padding-top: 80px;
}
.longform + .longform::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
}
.js-anim .longform + .longform::before {
  transform: scaleX(0);
  transition: transform 1000ms cubic-bezier(0.33, 0, 0.15, 1);
}
.js-anim .longform + .longform.is-rev::before { transform: scaleX(1); }
.longform .section-head { margin-bottom: 28px; }
.longform__body p + p { margin-top: 20px; }
.inline-link { border-bottom: 1px solid var(--rule); transition: border-color 240ms ease; }
.inline-link:hover { border-color: var(--ink); }

/* ---- 07  Footer ------------------------------------------- */
.footer {
  padding-block: var(--pad-y);
  /* the boundary line comes from main's border-bottom sliding over the top */
  position: sticky;
  bottom: 0;
  z-index: 0;
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  /* single full-width line comes from .footer border-top; no inner rule here */
  gap: 56px;
  align-items: start;
  padding-top: 32px;
}
.footer__line {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer__col a { font-size: 15px; color: var(--ink); }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) { .footer__top { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .footer__nav { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
.footer__meta {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__email {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rule);
  transition: border-color 240ms ease;
}
.footer__email:hover { border-color: var(--ink); }
.footer__loc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
}

/* ---- Responsive: collapse the 12-col grid ---------------- */
@media (max-width: 899px) {
  /* stack: title + subheading + image first, then the details below */
  .item { display: flex; flex-direction: column; }
  .item__body { order: 1; margin-top: 0; }
  .item__meta { order: 2; margin-top: 28px; }

  .start__grid { display: block; }
  .start .quote { margin-top: 48px; }
  .footer__loc { text-align: left; }
}

/* ---- Motion --------------------------------------------- */

/* Every line reveals with a soft left-to-right wipe and fade, once. */
.line {
  display: block;
  opacity: 0;
  /* negative top/bottom insets give ascenders and descenders room, so the
     wipe only ever clips left-to-right, never the g/y/p tails */
  clip-path: inset(-0.2em 100% -0.35em 0);
  will-change: clip-path, opacity;
}
.line.is-in {
  opacity: 1;
  clip-path: inset(-0.2em 0 -0.35em 0);
  transition: clip-path 1200ms cubic-bezier(0.33, 0, 0.15, 1),
              opacity 1000ms cubic-bezier(0.33, 0, 0.15, 1);
}

/* Anti-flash: hide the elements we are about to split into lines until the
   script marks each ready. Gated on .js-anim, which a head script sets only
   when JS is on and reduced-motion is off, so no-JS / reduced-motion visitors
   always see the text. */
.js-anim :is(
  .hero__display, .hero__sub, .section-head,
  .item__name, .item__note, .start__lead .body,
  .longform__body p, .footer__line, .footer__email
):not(.lr-ready) { opacity: 0; }

/* ---- Project pages: hero with progressive blur ----------- */
.phero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.phero__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.02);
}
/* Progressive gaussian blur: two stacked layers, each masked by a gradient so
   the blur deepens toward the text and fades to clear above it. */
.phero__blur {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  pointer-events: none;
}
.phero__blur--a {
  height: 62%;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 100%);
}
.phero__blur--b {
  height: 42%;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 20%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 20%, transparent 100%);
}
/* Tonal scrim so light type holds contrast over any image. */
.phero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(17,17,17,0.72) 0%, rgba(17,17,17,0.18) 42%, rgba(17,17,17,0) 70%);
}
.phero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
  padding-bottom: 8vh;
}
.phero__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.phero__name {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 16ch;
}
.phero__note {
  margin-top: 24px;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  max-width: 46ch;
  color: rgba(255,255,255,0.88);
}
.phero__hint {
  margin-top: 40px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
}

/* Project meta strip */
.pmeta { position: relative; }
.pmeta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left;
}
.js-anim .pmeta::before {
  transform: scaleX(0);
  transition: transform 1000ms cubic-bezier(0.33, 0, 0.15, 1);
}
.js-anim .pmeta.is-rev::before { transform: scaleX(1); }
.pmeta .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-block: 72px;
}
.pmeta dl { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.pback { grid-column: 11 / span 2; font-size: 13px; text-align: right; }
.pback a { border-bottom: 1px solid var(--rule); }
.pback a:hover { border-color: var(--ink); }

/* ---- Zoom parallax (scroll push) -------------------------- */
.zoom { position: relative; height: 300vh; }
.zoom__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
.zoom__el {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  will-change: transform;
}
/* dissolves the gallery into the page background at the end of the scroll */
.zoom__fade {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

/* Project intro: the heading the zoom fades into */
.pintro .eyebrow { margin-bottom: 20px; }
.pintro .section-head {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.pintro__note { margin-top: 28px; }
.zoom__frame {
  position: relative;
  height: 25vh;
  width: 25vw;
  overflow: hidden;
}
.zoom__frame > div {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  display: grid;
  place-items: center;
}
.zoom__label {
  font-style: italic;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  mix-blend-mode: difference;
}
/* per-item placement (mirrors the reference layout) */
.zoom__el:nth-child(2) .zoom__frame { top: -30vh; left: 5vw;    height: 30vh; width: 35vw; }
.zoom__el:nth-child(3) .zoom__frame { top: -10vh; left: -25vw;  height: 45vh; width: 20vw; }
.zoom__el:nth-child(4) .zoom__frame { left: 27.5vw;             height: 25vh; width: 25vw; }
.zoom__el:nth-child(5) .zoom__frame { top: 27.5vh; left: 5vw;   height: 25vh; width: 20vw; }
.zoom__el:nth-child(6) .zoom__frame { top: 27.5vh; left: -22.5vw; height: 25vh; width: 30vw; }
.zoom__el:nth-child(7) .zoom__frame { top: 22.5vh; left: 25vw;  height: 15vh; width: 15vw; }

/* grayscale placeholder tones for the work panels */
.ph0 { background-image: linear-gradient(135deg, #d8d8d8, #f2f2f2); }
.ph1 { background-image: linear-gradient(160deg, #1a1a1a, #4d4d4d); }
.ph2 { background-image: linear-gradient(200deg, #9a9a9a, #cfcfcf); }
.ph3 { background-image: linear-gradient(135deg, #333, #777); }
.ph4 { background-image: linear-gradient(120deg, #e2e2e2, #b8b8b8); }
.ph5 { background-image: linear-gradient(210deg, #2b2b2b, #6b6b6b); }
.ph6 { background-image: linear-gradient(140deg, #c4c4c4, #ececec); }

@media (max-width: 899px) {
  .pmeta dl { grid-column: 1 / span 12; }
  .pback { grid-column: 1 / span 12; text-align: left; margin-top: 24px; }
}

/* ---- Build-your-own estimate (geo-gated) ------------------ */
.quote__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.quote__figure { position: sticky; top: 120px; }
.quote__price {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  word-break: break-all;
}
/* a worded value line (partners page) instead of the big scrambled figure */
.quote__price--text {
  font-family: inherit;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  word-break: normal;
  max-width: 20ch;
}
/* the big earnings figure on partners: large, and it never wraps/breaks, so
   switching Standard <-> Ecommerce changes the number without shifting layout */
.quote__price--earn {
  font-size: clamp(2.25rem, 11vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: normal;
  max-width: 100%;
}
.quote__hint { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 40ch; }
/* the calc hint stays on one line so the box height is fixed between options */
.quote__price--earn + .quote__hint { white-space: nowrap; max-width: none; }

/* ---- Partners --------------------------------------------- */
.pintro__eg { margin-top: 20px; max-width: 62ch; color: var(--muted); }
/* the white-label aside, tucked under the referral calculator */
.wl { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); }
.wl__name { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 10px; }
.wl__body { max-width: 46ch; color: var(--ink); }
.wl__rate { margin-top: 10px; font-size: 14px; color: var(--muted); }
.quote__book { margin-top: 44px; }
.quote__booknote { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.quote__right { display: flex; flex-direction: column; gap: 44px; }
.quote__controls { display: flex; flex-direction: column; gap: 32px; }

/* staggered fade-in for the pricing page */
.q-fade { opacity: 0; transform: translateY(14px); }
.q-fade.in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.qrow { display: flex; flex-direction: column; gap: 12px; }
.qlabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.field .qlabel { display: block; margin-bottom: 12px; }

/* segmented control */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); width: fit-content; }
.seg__btn {
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-right: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 20px;
  transition: background 200ms ease, color 200ms ease;
}
.seg__btn:last-child { border-right: 0; }
.seg__btn.is-on { background: var(--ink); color: var(--bg); }

/* pricing controls: tidy, full-width, evenly-split segmented rows */
.quote__controls { gap: 26px; }
.quote__controls .qrow { gap: 14px; }
.quote__controls .qlabel { font-size: 12px; }
.quote__controls .seg { display: flex; width: 100%; }
.quote__controls .seg__btn { flex: 1 1 0; text-align: center; padding: 14px 12px; }

/* slider */
.qslider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 420px;
  height: 1px;
  background: var(--ink);
  accent-color: var(--ink);
}
.qslider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; height: 16px;
  background: var(--ink);
  border-radius: 0;
  cursor: pointer;
}
.qslider::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--ink);
  border: 0; border-radius: 0;
  cursor: pointer;
}
.qscale-note { font-size: 13px; color: var(--muted); }

/* partner "how it works" list */
.partner-steps { list-style: decimal; padding-left: 1.2em; }
.partner-steps li { margin-bottom: 10px; }
.partner-steps li:last-child { margin-bottom: 0; }

.qcheck {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  margin: 22px 0;
  cursor: pointer;
  max-width: 42ch;
}
.qcheck input { margin-top: 3px; accent-color: var(--ink); }
.qcode { margin-top: 28px; }

@media (max-width: 899px) {
  .quote__layout { grid-template-columns: 1fr; gap: 48px; }
  .quote__figure { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  /* everything instant, fully visible */
  .line { opacity: 1; clip-path: none; transition: none; }
  .q-fade { opacity: 1; transform: none; transition: none; }
  .zoom { height: auto; }
  .zoom__sticky { position: static; height: auto; overflow: visible; padding-block: var(--pad-y); }
  .zoom__el { position: static; transform: none !important; display: block; }
  .zoom__el .zoom__frame { position: relative; top: 0; left: 0; width: 100%; height: 50vh; margin-bottom: 24px; }
  .media img,
  .media--placeholder,
  .btn,
  .nav__links a::after,
  .meta-row dd a,
  .footer__email { transition: none !important; }
  .media:hover img,
  .media--placeholder:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- Work galleries + filters ----------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.gallery--index { grid-template-columns: repeat(3, 1fr); }

/* home galleries as a bento: alternating half / half / full-width rows */
.gallery--bento {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: row dense;
  gap: 20px;
}
.gallery--bento .gcard { grid-column: span 3; }
.gallery--bento .gcard:nth-child(3n) { grid-column: span 6; }
.gallery--bento .gcard:nth-child(3n) .gcard__media { aspect-ratio: 24 / 7; }
.gcard { display: block; text-decoration: none; color: var(--ink); }
.gcard__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  filter: grayscale(1);
  overflow: hidden;
  transition: transform 320ms ease, filter 320ms ease;
}
.gcard:hover .gcard__media { transform: translateY(-3px); filter: grayscale(1) contrast(1.06); }
.gcard__label {
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  mix-blend-mode: difference;
}
.gcard__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
}
.gcard__name { font-size: 18px; }
.gcard:hover .gcard__name { text-decoration: underline; text-underline-offset: 3px; }
.gcard__sector {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.gallery__more { margin-top: 48px; }

/* filters as minimal underline "lines", not bubbles */
.filters { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 44px; }
.filter {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  position: relative;
  transition: color 200ms ease;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms ease;
}
.filter:hover,
.filter.is-on { color: var(--ink); }
.filter:hover::after,
.filter.is-on::after { transform: scaleX(1); }

.index-head { padding-bottom: 16px; }
.index-body { border-top: 0; padding-top: 0; }

/* ---- Project bento ---------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  grid-auto-flow: dense;
}
.bento__cell { min-width: 0; }
.bento__cell--c2 { grid-column: span 2; }
.bento__cell--c3 { grid-column: span 3; }
.bento__cell--c6 { grid-column: span 6; }
.bento__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  filter: grayscale(1);
  overflow: hidden;
}
.bento__cell--c6.bento__media { min-height: 220px; }
.bento__label {
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  mix-blend-mode: difference;
}
.bento__text { padding: 6px 2px; align-self: start; }
.bento__h {
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 14px;
}
.bento__text .body + .body { margin-top: 12px; }

@media (max-width: 899px) {
  .gallery--index { grid-template-columns: repeat(2, 1fr); }
  .gallery--bento { grid-template-columns: repeat(2, 1fr); }
  .gallery--bento .gcard,
  .gallery--bento .gcard:nth-child(3n) { grid-column: span 1; }
  .gallery--bento .gcard:nth-child(3n) .gcard__media { aspect-ratio: 4 / 3; }
  .bento__cell--c2,
  .bento__cell--c3,
  .bento__cell--c6 { grid-column: span 6; }
  .bento__media { min-height: 220px; }
}
@media (max-width: 560px) {
  .gallery,
  .gallery--index,
  .gallery--bento { grid-template-columns: 1fr; }
}
