/* =========================================================
   Studio Zweck — styles
   Values mirror Figma "Landing Page" (1050:81) at 1440px.
   Fluid sizes use clamp(min, value/1440*100vw, figmaValue).
   ========================================================= */

:root {
  /* colour */
  --cream: #fff7ed;
  --lime: #cae832;
  --blue: #6a8cdd;
  --blue-deep: #4c6dbb;
  --blue-label: #4c76db;
  --navy: #233257;
  --paper: #f6f5f1;
  --studio: #fff7ed; /* Figma v3: cream (was white) */
  --paper-stripe: #f9f0e5;
  --sand: #f2e4d3;
  --charcoal: #22221f;
  --ink: #000;
  --ink-soft: #1a1919;
  --line: #5a5a5a;
  --white: #fff;

  /* type */
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;

  --fs-hero: clamp(56px, 8.3334vw, 120px);
  --fs-display: clamp(52px, 6.9445vw, 100px);
  --fs-xl: clamp(40px, 5.5556vw, 80px);
  --fs-services: clamp(30px, 5.5556vw, 80px);
  --fs-quote: clamp(28px, 3.0556vw, 44px);
  --fs-stat: 44px;
  --fs-h3: clamp(26px, 2.2223vw, 32px);
  --fs-body: clamp(16px, 1.25vw, 18px);

  /* layout */
  --gutter: clamp(16px, 10.2778vw, 148px);
  --content: 1144px;
  --section-y: clamp(72px, 8.3334vw, 120px);
  --section-y-lg: clamp(96px, 12.5vw, 180px); /* roomier than Figma, per feedback */
  --hold: 30vh; /* extra scroll a panel stays fully in view before the next one slides over */

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; } /* no CSS smooth scroll: Lenis handles it, and it breaks ScrollTrigger measuring */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* line mask used for reveal animations */
.line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; } /* room for descenders (g, y) without shifting layout */
.line > span { display: block; will-change: transform; }

/* =========================================================
   Button — cream face, 1px black border, offset lime block
   ========================================================= */
.btn {
  --w: 215.691px;
  --h: 56.919px;
  --dx: 7.75px;
  --dy: 9.58px;
  --face: var(--cream);
  --shadow: var(--lime);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--w);
  height: var(--h);
  margin: 0 var(--dx) var(--dy) 0;
  padding: 0 28px 0 calc(28px + .2em);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .2em; /* 3.2px @16 */
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: transform .35s var(--ease-out);
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: transform .35s var(--ease-out);
}
.btn::before { z-index: -2; background: var(--shadow); transform: translate(var(--dx), var(--dy)); }
.btn::after  { z-index: -1; background: var(--face); border: 1px solid var(--ink); }
.btn:hover { transform: translate(3px, 4px); }
.btn:hover::before { transform: translate(calc(var(--dx) - 3px), calc(var(--dy) - 4px)); }
.btn:active { transform: translate(var(--dx), var(--dy)); transition-duration: .12s; }
.btn:active::before { transform: translate(0, 0); transition-duration: .12s; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  transition: transform .45s var(--ease-out), box-shadow .3s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled { box-shadow: 0 .5px 0 rgba(0,0,0,.18); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  padding-right: max(16px, calc(var(--gutter) - 32px)); /* Figma: 148 left, 116 right */
}
.nav__logo img { display: block; width: 97px; height: auto; } /* Figma 1050:659, wordmark ≈ 45px */
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__link {
  position: relative;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em; /* .96px @12 */
  text-transform: uppercase;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: .08em; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 120px var(--gutter) 67px;
  text-align: center;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1;
  text-transform: uppercase;
}
.hero__sub { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero__lede { max-width: 542px; font-size: 18px; }
.hero__sub .btn { margin-left: var(--dx); } /* keep face centred like Figma */

/* intro (CSS-driven so it works even if JS libs fail) */
.hero__title .line > span { transition: transform 1.1s var(--ease-out); }
.hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.hero__title .line:nth-child(3) > span { transition-delay: .18s; }
.hero__sub { transition: opacity .9s .45s ease, transform .9s .45s var(--ease-out); }
.nav { transition: transform .45s var(--ease-out), box-shadow .3s, opacity .8s .2s; }
.is-loading .hero__title .line > span { transform: translateY(125%); }
.is-loading .hero__sub { opacity: 0; transform: translateY(16px); }
.is-loading .nav { opacity: 0; }

/* =========================================================
   2. CREDIBILITY
   ========================================================= */
.cred {
  display: grid;
  grid-template-columns: 1fr 264px;
  padding-top: 60px;
  padding-bottom: 72px; /* Figma frame is fixed at 276px */
}
.cred__box {
  position: relative;
  height: 144px;
  display: flex;
  flex-direction: column;
}
/* 0.5px borders drawn as pseudo so they can animate */
.cred__box::before {
  content: "";
  position: absolute;
  inset: 0;
  border: .5px solid var(--line);
  pointer-events: none;
}
.cred__box--intro { justify-content: center; gap: 12px; padding: 27px 60px 27px 34px; }
.cred__box--stat  { justify-content: flex-end; gap: 16px; padding: 24px 25px; }
.cred__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 24px; }
.cred__text { font-size: 18px; max-width: 424px; }
.cred__box--stat .cred__text { max-width: 193px; }
.cred__stat { font-family: var(--serif); font-size: var(--fs-stat); line-height: 32px; }

/* =========================================================
   3. SERVICES
   ========================================================= */
.services {
  background: var(--lime);
  min-height: 100vh; /* fills the screen while stacked */
  min-height: 100svh;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: var(--section-y) var(--gutter);
  text-align: center;
}
.services__eyebrow { font-size: 18px; max-width: 424px; }
.services__list { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.services__item {
  overflow: hidden;
  font-family: var(--serif);
  font-size: var(--fs-services);
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: default;
}
.services__item > span {
  display: inline-block;
  transition: opacity .4s ease, letter-spacing .5s var(--ease-out);
}
@media (hover: hover) {
  .services__list:hover .services__item > span { opacity: .42; }
  .services__list .services__item:hover > span { opacity: 1; font-style: italic; letter-spacing: .01em; }
}

/* =========================================================
   4. HOW TO WORK WITH US
   ========================================================= */
.how {
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 103px; /* Figma 1055:1143 */
  padding: var(--section-y-lg) 0;
  overflow: hidden;
}
.how__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-inline: var(--gutter);
  text-align: center;
}
.how__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-display); line-height: .8; }
.how__intro { font-size: 18px; max-width: 566px; }

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 73px;
  padding-block: 28px;
  padding-inline: calc(var(--gutter) + 68px);
  text-align: center;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.step__icon { width: 56px; height: 56px; color: var(--white); }
.step__body { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step__title { font-weight: 700; font-size: 16px; }
.step__text { font-size: 16px; max-width: 251px; }
.step__text--wide { max-width: 286px; }

/* ---- notepad cards ---- */
.how__notes { display: flex; align-items: flex-start; justify-content: center; margin-top: 46px; } /* steps → cards = 149px in Figma */

.note {
  position: relative;
  flex: none;
  width: 494px;
  height: 520px;
  color: var(--ink);
}
.note--partner { height: 475px; }

.note__back,
.note__sheet,
.note__paper,
.note__pattern,
.note__body { position: absolute; }
.note__sheet { inset: 0; transition: transform .6s var(--ease-out); }
.note__back { transition: transform .6s var(--ease-out); }
.note__body { transition: transform .6s var(--ease-out); }

/* Quick Build — positions derived from Figma (494 × 520) */
.note--quick .note__back    { left: 10.23%; top: 10.75%; width: 85.02%; height: 82.38%; --r: 177.18deg; }
.note--quick .note__paper   { left: 7.49%;  top: 13.57%; width: 85.02%; height: 82.38%; transform: rotate(174deg); }
.note--quick .note__pattern { left: 6.2%;  top: 19.88%; width: 83.6%; height: 69.6%;  transform: rotate(-6.5deg); }
.note--quick .note__body {
  left: 95.27px; top: 135.54px; width: 285.365px;
  --r: -6deg;
  transform-origin: 50% 63px;
}
.note--quick .note__includes { margin-top: 25.8px; }
.note--quick .note__list { max-width: 255px; }
.note--quick .btn--note { margin-top: 42.7px; --w: 171.99px; transform: rotate(.3deg); }

/* Design Partners — (494 × 475) */
.note--partner .note__back    { left: 6.39%; top: 2.13%; width: 85.02%; height: 90.19%; --r: 177.18deg; }
.note--partner .note__paper   { left: 8.35%; top: 4.65%; width: 85.02%; height: 90.19%; transform: rotate(-177deg); }
.note--partner .note__pattern { left: 8.75%; top: 6.21%; width: 83.82%; height: 87.68%; transform: rotate(4.25deg); }
.note--partner .note__body {
  left: 102.81px; top: 86.76px; width: 305.95px;
  --r: 3deg;
  transform-origin: 50% 63px;
}
.note--partner .note__includes { margin-top: 25.6px; width: 285.365px; margin-inline: auto; }
.note--partner .note__list { max-width: 249px; }
.note--partner .btn--note { margin-top: 53.7px; --w: 232px; transform: rotate(1.55deg); }

.note__back { transform: rotate(var(--r)); }
.note__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: rotate(var(--r));
}
.note__head { display: flex; flex-direction: column; gap: 16px; }
.note__title { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 56px; color: var(--navy); }
.note__desc { font-size: 15px; }
.note__includes { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.note__label { font-weight: 600; font-size: 14px; letter-spacing: .07em; color: var(--blue-label); }
.note__list { font-style: italic; font-size: 15px; }

.btn--note {
  --h: 43.142px;
  --dx: 6.95px;
  --dy: 6.6px;
  --face: var(--white);
  font-size: 14px;
  padding-inline: 20px calc(20px + .2em);
  margin: 0;
  margin-right: 0;
}
.note .btn--note:hover { transform: translate(3px, 3px) rotate(0deg); }

/* hover: sheet lifts & straightens, back sheet fans out */
@media (hover: hover) {
  .note:hover .note__sheet { transform: translateY(-6px) rotate(1.2deg); }
  .note--partner:hover .note__sheet { transform: translateY(-6px) rotate(-1.2deg); }
  .note:hover .note__body { transform: translateY(-6px) rotate(calc(var(--r) * .8)); }
  .note--quick:hover .note__back { transform: rotate(calc(var(--r) + 3deg)) translate(-6px, 4px); }
  .note--partner:hover .note__back { transform: rotate(calc(var(--r) - 3deg)) translate(6px, 4px); }
}

/* =========================================================
   5. ABOUT / STUDIO
   ========================================================= */
.about {
  position: relative;
  background: var(--studio);
  padding: var(--section-y-lg) 0;
  overflow: hidden;
}
.about__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 66px;
}
.about__title {
  --fs: clamp(44px, 6.9445vw, 100px);
  position: relative;
  flex: none;
  width: 6.32em;
  height: 3.17em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs);
  line-height: normal;
}
.about__title .line { position: absolute; white-space: nowrap; }
.about__l1 { left: 0; top: 0; }
.about__l2 { left: .82em; top: .935em; }
.about__thinks {
  position: absolute;
  left: 7.399em; /* em of this span (71.85px) */
  top: .9617em;
  font-family: var(--hand);
  font-size: .7185em;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--blue);
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-4.01deg);
  /* reveal: wipes left→right like it's being written */
  clip-path: inset(-40% -20% -40% -20%); /* generous: Kalam glyphs overhang their box */
}
/* 446 × 411 column; text block (226 tall) sits at the bottom */
.about__copy {
  flex: none;
  width: 446px;
  height: 411px;
  display: flex;
  align-items: flex-end;
  gap: 37px;
}
.about__rule {
  flex: none;
  width: 1px;
  height: 74.678px;
  background: var(--ink);
  transform-origin: top;
  margin-bottom: calc(226px - 74.678px);
}
.about__text { width: 409px; height: 226px; font-size: 18px; }
.about__text p + p { margin-top: 1.2em; }

.about__bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  margin-top: 128px;
}
.about__stripes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1397.8px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg,
    var(--paper-stripe) 0 96.317px,
    transparent 96.317px 118.317px);
  pointer-events: none;
}
.about__bottom > :not(.about__stripes) { position: relative; }

.photos {
  position: relative;
  width: 100%;
  aspect-ratio: 1144 / 494;
}
/* .polaroid = position (GSAP moves it), .polaroid__frame = tilt + hover */
.polaroid { position: absolute; will-change: transform; }
.polaroid:hover { z-index: 2; }
.polaroid__frame {
  background: var(--white);
  transform: translateY(var(--py, 0px)) rotate(var(--r));
  transition: transform .6s var(--ease-out);
}
.polaroid img { width: 100%; height: auto; object-fit: cover; }
.polaroid--1 { --r: .37deg;   left: 0;      top: 29.84%; width: 31.381%; }
.polaroid--2 { --r: -5.56deg; left: 34.44%; top: 10.64%; width: 31.381%; }
.polaroid--3 { --r: 5.53deg;  left: 68.89%; top: 3.17%;  width: 29.725%; }
.polaroid--1 .polaroid__frame { padding: 5.45% 5.67%; }
.polaroid--2 .polaroid__frame { padding: 5.74% 5.1%; }
.polaroid--3 .polaroid__frame { padding: 4.98% 5.43%; }
.polaroid--1 img { aspect-ratio: 318.287 / 306.023; }
.polaroid--2 img { aspect-ratio: 322.395 / 362.807; }
.polaroid--3 img { aspect-ratio: 303.144 / 278.522; }
@media (hover: hover) {
  /* hover: just turn a little further */
  .polaroid:hover .polaroid__frame { transform: translateY(var(--py, 0px)) rotate(calc(var(--r) + var(--turn))); }
  .polaroid--1 { --turn: -4deg; }
  .polaroid--2 { --turn: 4deg; }
  .polaroid--3 { --turn: -4deg; }
}

/* =========================================================
   6. TESTIMONIALS
   ========================================================= */
.quotes {
  background: var(--sand);
  min-height: max(737px, 100vh); /* fills the screen (Figma: 737) */
  min-height: max(737px, 100svh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: var(--section-y) var(--gutter);
  text-align: center;
}
.quotes__eyebrow { font-size: 18px; }
.quotes__track { display: grid; width: 100%; max-width: 830.406px; }
.quote {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s .6s;
}
.quote.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.quote__text { font-family: var(--serif); font-size: var(--fs-quote); line-height: 1.2728; }
.quote__text .w { display: inline-block; }
.quote__by { display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.quote__name { font-weight: 600; }

.quotes__controls { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.quotes__arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  font-size: 16px;
  transition: background .25s, transform .3s var(--ease-out);
}
.quotes__arrow:hover { background: var(--lime); }
.quotes__arrow[data-prev]:hover { transform: translateX(-2px); }
.quotes__arrow[data-next]:hover { transform: translateX(2px); }
.quotes__dots { display: flex; gap: 10px; }
.quotes__dot {
  position: relative;
  width: 28px; height: 3px;
  background: rgba(0,0,0,.15);
  overflow: hidden;
}
.quotes__dot::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.quotes__dot.is-active::after { animation: dot-progress var(--dur, 7s) linear forwards; }
.quotes.is-paused .quotes__dot.is-active::after { animation-play-state: paused; }
@keyframes dot-progress { to { transform: scaleX(1); } }

/* =========================================================
   7. FAQ
   ========================================================= */
.faq { position: relative; z-index: 10; background: var(--cream); padding-block: var(--section-y-lg); }
.faq__inner { display: flex; align-items: flex-start; gap: 16px; }
.faq__title {
  flex: none;
  width: 514.629px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-xl);
  line-height: 1;
}
.faq__list { flex: 1 1 0; min-width: 0; }
.faq__item { border-top: 1px solid var(--ink); padding-block: 24px; }
.faq__item:first-child { border-top: 0; padding-top: 0; }
.faq__item:last-child { padding-bottom: 0; }
.faq__q {
  position: relative;
  display: block;
  list-style: none;
  padding-right: 40px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q > span, .faq__q { max-width: 100%; }
.faq__q::before,
.faq__q::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 12px; height: 1px;
  background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .3s;
}
.faq__q::after { transform: rotate(90deg); }
.faq__item[open] .faq__q::after { transform: rotate(0deg); opacity: 0; }
.faq__q { transition: opacity .25s; }
.faq__q:hover { opacity: .65; }
.faq__a { overflow: hidden; }
.faq__a p { padding-top: 12px; font-size: 18px; max-width: 613px; }

/* =========================================================
   8. FOOTER
   ========================================================= */
.footer { position: relative; z-index: 10; background: var(--cream); padding: 24px; }
.footer__card {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}
.footer__grid {
  position: absolute;
  left: 18.5px; top: 13.05px;
  width: calc(100% - 37px);
  height: 477.9px;
}
.footer__grid--v { height: calc(100% - 26.1px); }
.footer__grid {
  overflow: visible;
  pointer-events: none;
}
.footer__grid .gl {
  stroke: #fff;
  stroke-opacity: .35;
  stroke-dasharray: 12 12;
  vector-effect: non-scaling-stroke;
  fill: none;
}
.footer__content {
  position: relative;
  min-height: 488.919px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px var(--gutter);
  text-align: center;
}
.footer__title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-xl); line-height: 1; }
.footer__text { font-size: 18px; max-width: 449px; }
.footer__content .btn { margin-top: 20px; margin-left: var(--dx); }
.footer__meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 38px 26px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.footer__mail { color: var(--white); background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease-out); }
.footer__mail:hover { background-size: 100% 1px; }

/* =========================================================
   LEAD GEN MODAL
   ========================================================= */
.lead {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.lead[hidden] { display: none; }
.lead__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .4s ease;
}
.lead__panel {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: 10px 12px 0 var(--lime);
  padding: 44px 44px 36px;
  opacity: 0;
  transform: translateY(24px) rotate(-1deg);
  transition: opacity .4s ease, transform .55s var(--ease-out);
}
.lead.is-open .lead__backdrop { opacity: 1; }
.lead.is-open .lead__panel { opacity: 1; transform: none; }
.lead__close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px;
  font-size: 28px; line-height: 1;
  transition: transform .4s var(--ease-out);
}
.lead__close:hover { transform: rotate(90deg); }
.lead__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.0556vw, 44px); line-height: 1.1; padding-right: 24px; }
.lead__sub { margin-top: 8px; font-size: 18px; }
.lead__form .field:first-of-type { margin-top: 28px; }
.field { display: block; margin-top: 20px; }
.field__label {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--line);
  padding: 0;
}
.field__input {
  width: 100%;
  margin-top: 6px;
  padding: 8px 0;
  font: 400 18px var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
.field__input:focus { border-bottom-color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.field.is-invalid .field__input { border-bottom-color: #d13b2a; }
.choices { border: 0; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { margin-bottom: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block;
  padding: 9px 14px;
  font-size: 14px;
  border: 1px solid var(--ink);
  background: transparent;
  transition: background .2s, transform .3s var(--ease-out);
}
.choice:hover span { background: rgba(202,232,50,.35); }
.choice input:checked + span { background: var(--lime); transform: rotate(-1.5deg); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.lead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.lead__actions .btn { margin: 0 var(--dx) var(--dy) 0; }
.lead__status { font-size: 14px; }
.lead__status.is-error { color: #b42f20; }
.lead__done { padding-block: 24px 8px; }
.hp { position: absolute; left: -9999px; }

/* =========================================================
   RESPONSIVE (adapted — to be polished)
   ========================================================= */
@media (max-width: 1199px) {
  .about__top { flex-direction: column; gap: 40px; }
  .about__copy { width: auto; height: auto; align-self: flex-end; max-width: 446px; }
  .about__rule { margin-bottom: 0; align-self: flex-start !important; }
  .about__text { height: auto; }
}

@media (max-width: 1023px) {
  .how__notes { flex-direction: column; align-items: center; gap: 8px; }
  .how__steps { gap: 40px; padding-inline: var(--gutter); }
  .faq__inner { flex-direction: column; gap: 40px; }
  .faq__title { width: auto; max-width: 520px; }
}

@media (max-width: 767px) {
  .nav__links { gap: 18px; }
  .nav__logo img { width: 76px; }
  .hero { padding-top: 72px; padding-bottom: 48px; }
  .hero__lede { font-size: 16px; }

  .cred { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 72px; }
  .cred__box { height: auto; }
  .cred__box--intro { padding: 24px; }
  .cred__box--stat { padding: 24px; flex-direction: row; align-items: center; gap: 20px; }
  .cred__text { font-size: 16px; }

  .services__eyebrow, .how__intro, .about__text, .quotes__eyebrow, .quote__by, .faq__q, .faq__a p, .footer__text { font-size: 16px; }
  .how { gap: 40px; }
  .how__steps { grid-template-columns: 1fr; gap: 32px; padding-block: 0; }
  .step__icon { width: 48px; height: 48px; }
  .how { gap: 64px; }
  .how__notes { margin-top: 0; }

  .about__copy { align-self: stretch; max-width: none; gap: 20px; }
  .about__text { width: auto; }
  .about__bottom { margin-top: 64px; }

  /* polaroids stack and overlap */
  .photos { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; padding-block: 8px; }
  .polaroid { position: relative; left: auto !important; top: auto !important; width: 78% !important; }
  .polaroid + .polaroid { margin-top: -14%; }
  .polaroid--1 { align-self: flex-start; }
  .polaroid--2 { align-self: flex-end; }
  .polaroid--3 { align-self: center; }

  .faq__item { padding-block: 20px; }

  .footer { padding: 12px; }
  .footer__grid { left: 10px; top: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .footer__grid--v { display: none; }
  .footer__content { min-height: 440px; padding-block: 72px 40px; }
  .footer__meta { flex-direction: column; align-items: center; gap: 6px; padding: 8px 16px 28px; text-align: center; }

  .lead__panel { padding: 36px 22px 28px; box-shadow: 6px 8px 0 var(--lime); }
}

/* Notes switch to flow layout when there is no room for the 494px card */
@media (max-width: 539px) {
  .note, .note--partner { width: calc(100% - 16px); max-width: 420px; height: auto; padding: 26% 9% 22%; }
  .note__body { position: relative; left: auto !important; top: auto !important; width: auto !important; transform-origin: 50% 50%; }
  .note--partner .note__includes { width: auto; }
  .note--quick .note__back    { left: 9%; top: 5%;  width: 88%; height: 90%; }
  .note--quick .note__paper   { left: 4%; top: 7%;  width: 92%; height: 90%; }
  .note--quick .note__pattern { left: 4%; top: 13%; width: 92%; height: 78%; }
  .note--partner .note__back    { left: 3%; top: 3%; width: 88%; height: 92%; }
  .note--partner .note__paper   { left: 6%; top: 5%; width: 90%; height: 92%; }
  .note--partner .note__pattern { left: 7%; top: 7%; width: 88%; height: 88%; }
  .note__title { font-size: 38px; line-height: 46px; }
  .note--quick .btn--note, .note--partner .btn--note { margin-top: 28px; }
}

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

/* =========================================================
   SECTION STACKING — each panel sticks once its bottom reaches
   the viewport bottom, and the next one slides up over it.
   --stick is set in JS: min(0, viewportHeight − panelHeight).
   ========================================================= */
.stack {
  position: sticky;
  top: var(--stick, 0px);
}
.stack--home { z-index: 1; background: var(--cream); }
/* Services is not stacked: it scrolls out normally as How it works comes in */
.services { position: relative; z-index: 2; }
.how.stack { z-index: 3; }
.about.stack { z-index: 4; }
.quotes.stack { z-index: 5; }
.anchor { height: 0; }

/* =========================================================
   SERVICES — hover image (Figma 1052:663)
   ========================================================= */
.services__preview {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  width: clamp(150px, 17.046vw, 245.461px);
  aspect-ratio: 245.461 / 321.771;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.services__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 767px) {
  .services__preview { display: none; }
}
.services__preview {
  transition: transform .6s var(--ease-out), opacity .35s ease, visibility 0s .35s;
}
.services__preview img { transform: scale(1.15); transition: transform .8s var(--ease-out); }
.services__preview.is-visible { opacity: 1; visibility: visible; transition: transform .6s var(--ease-out), opacity .35s ease, visibility 0s; }
.services__preview.is-visible img { transform: scale(1); }

.no-stick .stack { position: relative !important; top: 0 !important; }

/* Hold: a transparent spacer after each stacked panel. The panel stays
   stuck (fully visible) while this scrolls past, so its last content —
   the metrics, the Studio CTA — gets time on screen before the next
   section arrives. */
.stack-hold { height: var(--hold); pointer-events: none; }

/* =========================================================
   FIGMA UPDATE (v3) — logo, hero "truly" + grid, How hint,
   text colours/leading, taller testimonials & footer
   ========================================================= */
:root { --text-soft: #3e3e3e; --grid: #f0e8df; }

/* hero: grid background, tighter top, handwritten "truly" */
.hero {
  padding-top: 100px;
  padding-bottom: 56px; /* Figma frame is 744 tall */
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40.09px 40.09px;
}
.hero__title .line:nth-child(1),
.hero__title .line:nth-child(2) { margin-bottom: calc(-.18em - 4px); } /* Figma: mb -4px */
.hero__truly {
  display: flex;
  align-items: center;
  justify-content: center;
  height: .6785em;          /* 81.42 / 120 */
  margin-bottom: -4px;
}
.hero__truly > span {
  display: block;
  font-family: var(--hand);
  font-size: .6376em;       /* 76.513 / 120 */
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: none;
  color: var(--blue);
  transform: rotate(-4.01deg);
  clip-path: inset(-40% -20% -40% -20%); /* generous: Kalam glyphs overhang their box */
  transition: clip-path 1s .75s ease-in-out;
}
.is-loading .hero__truly > span { clip-path: inset(-40% 100% -40% -20%); }
.hero__lede { color: var(--text-soft); }
.cred__box--intro .cred__text { color: var(--text-soft); }

/* How: heading → steps 45px; hand-drawn hint above the cards */
.how { gap: 45px; }
.how__intro { color: #eee; }
.how__notes { position: relative; margin-top: var(--notes-gap, 215px); }
.how__hint { position: absolute; left: 50%; top: 0; width: 0; height: 0; pointer-events: none; }
/* Figma: 204 × 43.9 box, text bottom-aligned, wraps to "Here’s how / you can" */
.how__hint-text {
  position: absolute;
  left: 0; top: -138.8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 204px;
  height: 43.924px;
  font-family: var(--hand);
  font-size: 46.569px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--white);
  transform: translate(-50%, -50%) rotate(-4.01deg);
}
.how__hint-arrow { position: absolute; max-width: none; }
.how__hint-arrow--l { left: -174.66px; top: -98.1px; width: 23.594px; height: 109.545px; transform: translate(-50%, -50%) rotate(-129.78deg); }
.how__hint-arrow--r { left: 89.6px;    top: -115.2px; width: 46.075px; height: 92.758px;  transform: translate(-50%, -50%) rotate(-69.62deg); }
.note__desc, .note__list { line-height: 20px; }

/* Studio + FAQ body copy */
.about__text { color: var(--text-soft); line-height: 24px; }
.faq__a p { color: var(--text-soft); line-height: 24px; }

/* Testimonials: Figma 812 tall (still fills taller screens) */
.quotes { min-height: max(812px, 100vh); min-height: max(812px, 100svh); }

/* Footer: card 550 tall, roomier type */
.footer__content { min-height: 550px; gap: 16px; }
.footer__title { line-height: 1.05; }            /* 84 / 80 */
.footer__text { color: #e3e3e3; }
.footer__content .btn { margin-top: 17px; }       /* 16 + 17 = 33 */
.footer__grid { height: 536.95px; }
.footer__grid--v { height: calc(100% - 26.1px); }
.footer__meta { position: absolute; left: 0; right: 0; bottom: 0; }

/* =========================================================
   MOBILE (≤767px) — per review
   ========================================================= */
@media (max-width: 767px) {
  /* nav: logo only, centred */
  .nav__links { display: none; }
  .nav__inner { justify-content: center; padding-right: var(--gutter); }
  .nav__logo img { width: 88px; }

  /* hero: "DESIGNING" fills the width (≈ 0.258em per char-width unit) */
  .hero__title { font-size: 80px; }

  /* services: bigger, one line each ("PRODUCT DISCOVERY" fills the width); no hover */
  .services__item { font-size: 11.6vw; }
  .services, .hero { padding-inline: 16px; }
  .services__item { white-space: nowrap; }
  .services__list:hover .services__item > span,
  .services__list .services__item:hover > span { opacity: 1; font-style: normal; letter-spacing: 0; }

  /* notepad cards: straight, no tilt (paper art is drawn upside down, so 180°) */
  .note .note__back,
  .note .note__paper { transform: rotate(180deg) !important; }
  .note .note__pattern,
  .note .note__body,
  .note .btn--note,
  .note:hover .note__sheet,
  .note:hover .note__body { transform: none !important; }
  .note--quick .note__back,
  .note--partner .note__back { left: 7%; top: 6%; width: 90%; height: 92%; }
  .note--quick .note__paper,
  .note--partner .note__paper { left: 3%; top: 4%; width: 90%; height: 92%; }
  .note--quick .note__pattern,
  .note--partner .note__pattern { left: 3%; top: 10%; width: 90%; height: 84%; }

  /* testimonials: quote centred, arrows pinned to the bottom of the section */
  .quotes { justify-content: flex-start; }
  .quotes__eyebrow { margin-top: auto; }
  .quotes__track { margin-bottom: auto; }
  .quotes__controls { margin-top: 48px; }
}

/* testimonials: JS-driven word flip (see main.js) */
.quotes.is-scripted .quote { transition: none; }
.quote__text { perspective: 800px; }
.quote__text .w { transform-origin: 50% 50%; backface-visibility: hidden; }

/* mobile tweaks for the v3 additions */
@media (max-width: 767px) {
  .footer__content { min-height: 440px; }
  .footer__meta { position: relative; }
  .how__notes { margin-top: 56px; }
  .how__hint { display: none; } /* "Here’s how you can" + arrows: desktop only */
}

/* mobile: shorter buttons (desktop keeps Figma's 56.9px) */
@media (max-width: 767px) {
  .btn { --h: 46px; --w: 184px; --dx: 6px; --dy: 7px; font-size: 14px; }
  .btn--note { --h: 40px; font-size: 13px; }
}

/* =========================================================
   HERO UPDATE (v4) — dot grid, multiplayer cursor, line spacing
   Figma 1066:4763. Cursor geometry in em of the 120px headline.
   ========================================================= */
.hero {
  background-image: radial-gradient(circle, #bcbcbc 1px, transparent 1.25px);
  background-size: 19px 16.2495px;
  background-position: -3.5px -6px; /* dot centres at x 6+19n, y 2.1+16.25n */
}
/* DESIGNING → WHAT −6px, WHAT → truly +3.4px, truly → MATTERS −15.4px */
.hero__title { position: relative; }
.hero__title .line:nth-child(1) { margin-bottom: calc(-.18em - .05em); }
.hero__title .line:nth-child(2) { margin-bottom: calc(-.18em - .0614em); } /* truly sits 0.09em higher than Figma: even ink gaps above/below */
.hero__truly { margin-bottom: -.0386em; }

.hero__cursor {
  position: absolute;
  left: calc(50% + .8042em);   /* 96.5px right of centre */
  top: 1.3239em;               /* 158.9px below the headline top */
  width: .425em;               /* 51px */
  height: .425em;
  pointer-events: none;
  text-transform: none;
}
.hero__cursor-arrow {
  position: absolute;
  left: 0; top: 0;
  width: calc(100% * 1.017);   /* svg is 51.87 × 56.99 in a 51 box */
  height: calc(100% * 1.1174);
  max-width: none;
}
.hero__cursor-tag {
  position: absolute;
  font-family: "Inter", var(--sans);
  font-weight: 500;
  font-size: .1461em;                 /* 17.53px; box values below are in this em */
  left: calc(43.03em / 17.53);
  top: calc(51em / 17.53);
  display: flex;
  align-items: center;
  height: calc(28.688em / 17.53);
  padding: 0 calc(6.375em / 17.53);
  background: #ffc700;
  box-shadow: 0 calc(1.594em / 17.53) calc(3.188em / 17.53) rgba(0,0,0,.16);
  line-height: 1.4547;                /* 25.5 / 17.53 */
  letter-spacing: .005em;
  color: #000;
  white-space: nowrap;
}

/* cursor glides in after the headline, then idles like a collaborator */
.hero__cursor { transition: opacity .5s 1.1s ease, translate 1.2s 1.1s var(--ease-out); }
.is-loading .hero__cursor { opacity: 0; translate: 1.2em .6em; }
.hero__cursor { animation: hero-cursor-idle 6s 2.4s ease-in-out infinite; }
@keyframes hero-cursor-idle {
  0%, 100% { transform: translate(0, 0); }
  30%      { transform: translate(-.04em, .02em); }
  60%      { transform: translate(.03em, -.03em); }
}
/* the cursor's slide-in starts off to the right — never let it widen the page */
.hero { overflow-x: clip; }

/* Studio copy: text box fits its content (copy changed), still sits at the
   bottom of the 411px column; the rule stays level with the first line */
@media (min-width: 1200px) {
  .about__copy { flex-wrap: wrap; align-content: flex-end; align-items: flex-start; }
  .about__rule { margin-bottom: 0; }
  .about__text { height: auto; flex: 1 1 0; min-width: 0; }
}
