/* ==========================================================================
   BOLT STUDIO — creative product studio
   Warm editorial system: cream ground, deep ink, coral accent, mustard second.
   Pure CSS. No frameworks. Mobile-safe asymmetry.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* ground */
  --cream:        #FBF7F0;
  --cream-2:      #F5EEE2;
  --sand:         #EDE3D2;
  --sand-2:       #E3D6C0;

  /* ink */
  --ink:          #171310;
  --ink-soft:     #2A231D;
  --ink-mute:     #4A423A;   /* 9.2:1 on cream — body copy */
  --ink-faint:    #6E645A;   /* 5.0:1 on cream — small meta only */
  --on-ink:       #FBF7F0;
  --on-ink-mute:  #BFB4A6;   /* 9.0:1 on ink */

  /* accents */
  --coral:        #FF5A3C;   /* FILLS + shapes only (2.9:1 on cream) */
  --coral-ink:    #B8351A;   /* 5.5:1 on cream — safe for text */
  --coral-deep:   #8E2712;
  --sun:          #F5B841;   /* mustard fill */
  --sun-deep:     #A56A05;   /* safe mustard-ish text on cream */
  --moss:         #2F4739;   /* deep warm-green for rare contrast blocks */

  /* lines */
  --rule:         rgba(23, 19, 16, .14);
  --rule-strong:  rgba(23, 19, 16, .82);

  /* type */
  --display: "Bricolage Grotesque", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif:   "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body:    "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-mega: clamp(3.1rem, 11.5vw, 9.5rem);
  --fs-h1:   clamp(2.5rem, 7.2vw, 5.6rem);
  --fs-h2:   clamp(2rem, 5vw, 3.7rem);
  --fs-h3:   clamp(1.3rem, 2.3vw, 1.95rem);
  --fs-h4:   clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body: clamp(1rem, .5vw + .88rem, 1.125rem);
  --fs-lead: clamp(1.1rem, 1vw + .82rem, 1.42rem);
  --fs-sm:   .875rem;
  --fs-xs:   .75rem;

  /* space */
  --gut: clamp(20px, 5vw, 72px);
  --sec-y: clamp(72px, 9vw, 150px);
  --maxw: 1280px;

  /* misc */
  --r-sm: 8px;
  --r:    16px;
  --r-lg: 28px;
  --r-pill: 999px;
  --shadow: 0 18px 44px -22px rgba(23,19,16,.42);
  --shadow-lg: 0 34px 80px -34px rgba(23,19,16,.5);
  --ease: cubic-bezier(.22,.68,.32,1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  /* clip (not hidden) so rotated marquees + the off-canvas nav never create
     a horizontal scrollbar, while position:sticky keeps working. */
  overflow-x: clip;
}

body {
  background: var(--cream);
  color: var(--ink-mute);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--sand); }

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}
h3, h4 { line-height: 1.14; letter-spacing: -.02em; }
p { text-wrap: pretty; }

a { color: var(--coral-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

ul, ol { padding-left: 1.15em; }
li { margin-bottom: .4em; }

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

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--ink); color: var(--on-ink);
  padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-ink); }

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

/* ---------- 3. Layout helpers ------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap-wide { max-width: 1560px; }
.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(52px, 6vw, 96px); }
.bg-sand { background: var(--cream-2); }
.bg-sand-2 { background: var(--sand); }
.bg-ink { background: var(--ink); color: var(--on-ink-mute); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--on-ink); }
.bg-ink a:not(.btn) { color: var(--coral); }

.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
.center { text-align: center; }

.stack > * + * { margin-top: 1.05em; }
.stack-lg > * + * { margin-top: 1.8em; }

/* ---------- 4. Eyebrows, numbers, stickers ------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--coral); flex: none;
}
.eyebrow--plain::before { display: none; }
.bg-ink .eyebrow { color: var(--sun); }
.bg-ink .eyebrow::before { background: var(--sun); }

.num {
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(23,19,16,.28);
  display: block;
}
.num--coral { -webkit-text-stroke-color: var(--coral); }
.num--solid { color: var(--coral-ink); -webkit-text-stroke: 0; }
.bg-ink .num { -webkit-text-stroke-color: rgba(251,247,240,.34); }

.badge {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sun);
  padding: .55em 1.1em;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.badge--coral { background: var(--coral); }
.badge--cream { background: var(--cream); }

.tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  padding: .38em .85em;
  border-radius: var(--r-pill);
}
.bg-ink .tag { color: var(--on-ink-mute); border-color: rgba(251,247,240,.24); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* highlighter mark — coral fill, ink text (7.5:1) */
.mark {
  display: inline-block;
  background: var(--coral);
  color: var(--ink);
  padding: .04em .16em .1em;
  line-height: .92;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mark--sun { background: var(--sun); }
.ital { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.015em; }
.coral-t { color: var(--coral-ink); }

/* hand-drawn underline */
.uline { position: relative; display: inline-block; white-space: nowrap; }
.uline svg {
  position: absolute; left: -2%; bottom: -.24em; width: 104%; height: .34em;
  overflow: visible; pointer-events: none;
}
.uline path { fill: none; stroke: var(--coral); stroke-width: 9; stroke-linecap: round; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.01em;
  padding: 1.02em 1.85em;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  background: var(--coral);
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn .arw { transition: transform .2s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); box-shadow: none; transform: translate(-2px,-2px); }
.btn--sun { background: var(--sun); }
.btn--sm { padding: .78em 1.35em; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
.bg-ink .btn { border-color: var(--cream); box-shadow: 4px 4px 0 var(--cream); }
.bg-ink .btn:hover { box-shadow: 7px 7px 0 var(--cream); }
.bg-ink .btn--ghost { color: var(--cream); box-shadow: none; }
.bg-ink .btn--ghost:hover { background: var(--cream); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--display); font-weight: 800; font-size: 1rem;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
  transition: gap .18s var(--ease), color .18s var(--ease);
}
.tlink:hover { gap: .85em; color: var(--coral-ink); }
.bg-ink .tlink { color: var(--cream); }
.bg-ink .tlink:hover { color: var(--sun); border-color: var(--sun); }

/* ---------- 6. Header / nav --------------------------------------------- */
/* The blur lives on a pseudo-element: putting backdrop-filter on the header
   itself would make it a containing block for the fixed off-canvas nav panel,
   which would then anchor to the 78px header instead of the viewport. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251,247,240,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
  padding-block: 12px;
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800;
  font-size: 1.32rem; letter-spacing: -.045em;
  color: var(--ink); text-decoration: none;
  flex: none;
}
.brand-mark {
  width: 34px; height: 34px; flex: none;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-mark svg { width: 15px; height: 19px; }
.brand em { font-style: normal; color: var(--coral-ink); }

.nav-menu { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.5rem); }
.nav-list { display: flex; align-items: center; gap: clamp(.2rem, 1.2vw, 1rem); list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-link {
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .5rem .7rem;
  border-radius: var(--r-pill);
  transition: color .18s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .28rem;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .24s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative; z-index: 95;  /* above the open panel (90) so it stays clickable */
  width: 46px; height: 46px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  flex: none;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 19px; height: 2.2px; margin: -1.1px 0 0 -9.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .16s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- 7. Hero ------------------------------------------------------ */
.hero { position: relative; padding-top: clamp(48px, 6vw, 92px); padding-bottom: clamp(56px, 7vw, 120px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .78fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: end;
}
.hero-title {
  font-size: var(--fs-mega);
  letter-spacing: -.05em;
  line-height: .89;
  font-weight: 800;
}
.hero-title .l1 { display: block; }
.hero-title .l2 { display: block; padding-left: clamp(0px, 7vw, 128px); }
.hero-title .l3 { display: block; padding-left: clamp(0px, 3vw, 48px); }
.hero-sub { max-width: 40ch; margin-top: clamp(24px, 3vw, 38px); }
.hero-actions { margin-top: clamp(26px, 3vw, 40px); }

.hero-side { position: relative; padding-bottom: 12px; }
.hero-photo {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  transform: rotate(2.4deg);
  box-shadow: var(--shadow-lg);
  background: var(--sand);
}
.hero-photo img { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; }
.hero-photo-2 {
  position: absolute;
  left: -18%; bottom: -14%;
  width: 56%;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  transform: rotate(-5.5deg);
  box-shadow: var(--shadow);
  background: var(--sand);
}
.hero-photo-2 img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.hero-sticker {
  position: absolute; z-index: 3;
  right: -14px; top: -22px;
  width: clamp(86px, 9vw, 122px); height: clamp(86px, 9vw, 122px);
  animation: spin 22s linear infinite;
}
.hero-sticker svg { width: 100%; height: 100%; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 60px);
  margin-top: clamp(44px, 5vw, 78px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 2px solid var(--ink);
}
.stat b {
  display: block;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  color: var(--ink); letter-spacing: -.04em; line-height: 1;
}
.stat span { display: block; margin-top: .45rem; font-size: var(--fs-sm); color: var(--ink-faint); max-width: 20ch; }

.blob {
  position: absolute; z-index: -1; pointer-events: none;
  filter: blur(2px); opacity: .5;
}
.blob--a { top: -140px; right: -120px; width: 460px; color: var(--sun); }
.blob--b { bottom: -180px; left: -160px; width: 420px; color: var(--coral); opacity: .22; }
.blob svg { width: 100%; height: auto; }

/* page hero (inner pages) */
.phero { padding-top: clamp(44px, 5vw, 82px); padding-bottom: clamp(36px, 4.5vw, 68px); position: relative; overflow: hidden; }
.phero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: clamp(24px,4vw,64px); align-items: end; }
.phero h1 { font-size: var(--fs-h1); }
.phero .lead { margin-top: 1.4rem; max-width: 48ch; }
.phero-aside {
  border-left: 2px solid var(--ink);
  padding-left: clamp(18px, 2vw, 28px);
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}
.phero-aside strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.05rem; margin-bottom: .4rem; }

/* ---------- 8. Marquee --------------------------------------------------- */
.marquee {
  --mq-dur: 34s;
  position: relative;
  overflow: hidden;
  background: var(--coral);
  border-block: 2px solid var(--ink);
  padding-block: clamp(12px, 1.4vw, 20px);
  transform: rotate(-1.6deg) scale(1.045);
  margin-block: clamp(34px, 4vw, 56px);
}
.marquee--flat { transform: none; margin-block: 0; }
.marquee--ink { background: var(--ink); }
.marquee--sun { background: var(--sun); }
.marquee--rev { transform: rotate(1.4deg) scale(1.045); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--mq-dur) linear infinite; }
.marquee--rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-group span {
  display: inline-flex; align-items: center; gap: 1.1rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.05rem, 1.9vw, 1.7rem);
  letter-spacing: -.02em;
  color: var(--ink);
  padding-inline: 1.4rem;
  white-space: nowrap;
}
.marquee--ink .marquee-group span { color: var(--cream); }
.marquee-group span::after {
  content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--ink); transform: rotate(45deg);
  flex: none;
}
.marquee--ink .marquee-group span::after { background: var(--coral); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ---------- 9. Section heads --------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(20px, 3.5vw, 56px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 72px);
}
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head-note { padding-bottom: .4rem; }
.sec-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 780px; margin-inline: auto; }

/* ---------- 10. What-we-do (numbered offset rows) ------------------------ */
.dolist { border-top: 2px solid var(--ink); }
.doitem {
  display: grid;
  grid-template-columns: 108px minmax(0, 1.05fr) minmax(0, 1.15fr) auto;
  gap: clamp(16px, 3vw, 44px);
  align-items: start;
  padding-block: clamp(26px, 3.2vw, 44px);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background .25s var(--ease), padding-inline .25s var(--ease);
}
.doitem::before {
  content: ""; position: absolute; inset: 0 -18px; z-index: -1;
  background: var(--cream-2); border-radius: var(--r);
  opacity: 0; transition: opacity .25s var(--ease);
}
.doitem:hover::before { opacity: 1; }
.doitem:hover h3 { color: var(--coral-ink); }
.doitem h3 { font-size: var(--fs-h3); transition: color .2s var(--ease); }
.doitem p { font-size: var(--fs-sm); margin-top: .55rem; }
.doitem-arrow {
  width: 46px; height: 46px; flex: none;
  border: 2px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center;
  transition: background .22s var(--ease), transform .22s var(--ease);
  align-self: center;
}
.doitem:hover .doitem-arrow { background: var(--coral); transform: rotate(-45deg); }
.doitem-arrow svg { width: 16px; height: 16px; }
.doitem-num { font-family: var(--display); font-weight: 800; font-size: clamp(2rem,3vw,2.8rem); line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.6px var(--coral); }

/* ---------- 11. Work cards ----------------------------------------------- */
/* Offset editorial columns — each column stacks independently so the
   deliberate vertical stagger never leaves a dead hole in the layout. */
.workcols {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(24px, 3vw, 46px) clamp(20px, 2.6vw, 40px);
  align-items: start;
}
.workcol { display: grid; gap: clamp(34px, 4vw, 62px); align-content: start; }
.workcol--offset { margin-top: clamp(0px, 6.5vw, 96px); }

.wcard {
  position: relative;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}

.wcard-media {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--sand);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease);
}
.wcard-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.wcard--tall .wcard-media img { aspect-ratio: 3/3.5; }
.wcard--wide-media .wcard-media img { aspect-ratio: 16/9; }
.wcard:hover .wcard-media { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.wcard:hover .wcard-media img { transform: scale(1.045); }
.wcard-chip {
  position: absolute; left: 16px; top: 16px; z-index: 2;
}
.wcard-body { padding-top: 1.3rem; }
.wcard-body h3 { font-size: var(--fs-h3); }
.wcard-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wcard-year { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; }
.wcard-body p { font-size: var(--fs-sm); margin-top: .5rem; max-width: 52ch; }
.wcard-tags { margin-top: .95rem; }

/* rotated variants for editorial feel */
.rot-a { transform: rotate(-1.3deg); }
.rot-b { transform: rotate(1.6deg); }
.rot-c { transform: rotate(-2.4deg); }

/* ---------- 12. Case study blocks (work page) ---------------------------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 68px);
  align-items: center;
  padding-block: clamp(44px, 5vw, 84px);
  border-bottom: 1px solid var(--rule);
}
.case:last-of-type { border-bottom: 0; }
.case--flip .case-media { order: 2; }
/* no overflow:hidden here — the case number is meant to hang outside the frame,
   so the image carries its own radius instead. */
.case-media {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  background: var(--sand);
}
.case-media img {
  width: 100%; aspect-ratio: 5/4; object-fit: cover;
  border-radius: calc(var(--r-lg) - 3px);
}
.case-num {
  position: absolute; right: -16px; top: -26px; z-index: 3;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 6vw, 5rem); line-height: 1;
  color: var(--cream);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--coral);
}
.case h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.case-facts { display: grid; gap: 1.15rem; margin-top: 1.6rem; }
.case-fact {
  border-left: 3px solid var(--coral);
  padding-left: 1.05rem;
}
.case-fact b {
  display: block; font-family: var(--display); font-size: var(--fs-xs);
  letter-spacing: .16em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: .3rem;
}
.case-fact p { font-size: var(--fs-sm); }
.case-outcome {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 34px);
  margin-top: 1.7rem; padding-top: 1.3rem;
  border-top: 2px solid var(--ink);
}
.case-outcome div b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem); color: var(--ink); letter-spacing: -.035em; line-height: 1;
}
.case-outcome div span { font-size: var(--fs-xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 13. Process steps -------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(18px, 2.2vw, 30px); }
.step {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.step:nth-child(1) { transform: rotate(-1.4deg); }
.step:nth-child(2) { transform: rotate(.9deg) translateY(16px); }
.step:nth-child(3) { transform: rotate(-.7deg) translateY(-6px); }
.step:nth-child(4) { transform: rotate(1.6deg) translateY(22px); }
.step:hover { transform: rotate(0) translateY(-4px); box-shadow: 9px 9px 0 var(--coral); }
.step h3 { font-size: 1.24rem; margin-top: .8rem; }
.step p { font-size: var(--fs-sm); margin-top: .55rem; }
.step-tick { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-ink); margin-top: 1rem; display: block; }
.step .num { font-size: clamp(2.2rem, 3vw, 3rem); -webkit-text-stroke-width: 1.8px; }

/* ---------- 14. Pull quote ----------------------------------------------- */
.quote-band { position: relative; overflow: hidden; }
.quote {
  max-width: 21ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--ink);
}
.quote-wrap { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); gap: clamp(28px,4vw,64px); align-items: center; }
.quote-mark {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(5rem, 10vw, 9rem); line-height: .6; color: var(--coral-ink);
  display: block; margin-bottom: .12em;
}
.quote-by { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.quote-by img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.quote-by b { display: block; font-family: var(--display); color: var(--ink); font-size: 1rem; }
.quote-by span { font-size: var(--fs-sm); color: var(--ink-faint); }
.quote-photo {
  border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden;
  transform: rotate(2.6deg); box-shadow: var(--shadow); background: var(--sand);
}
.quote-photo img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; }

/* ---------- 15. Pricing / engagement ------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.plan {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(26px, 2.8vw, 38px);
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan--hot { background: var(--ink); color: var(--on-ink-mute); transform: translateY(-18px); box-shadow: 8px 8px 0 var(--coral); }
.plan--hot:hover { transform: translateY(-24px); }
.plan--hot h3 { color: var(--cream); }
.plan--hot .plan-price { color: var(--sun); }
.plan--hot .plan-list li::before { background: var(--coral); }
.plan--hot .plan-note { color: var(--on-ink-mute); border-top-color: rgba(251,247,240,.2); }
.plan-flag {
  position: absolute; top: -14px; right: 22px;
  font-family: var(--display); font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--sun); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  padding: .38em 1em;
  transform: rotate(3deg);
}
.plan h3 { font-size: 1.5rem; }
.plan-price {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -.04em;
  color: var(--coral-ink); margin-top: .9rem; line-height: 1;
}
.plan-price small { display: block; font-family: var(--body); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-top: .5rem; }
.plan--hot .plan-price small { color: var(--on-ink-mute); }
.plan > p { font-size: var(--fs-sm); margin-top: 1rem; }
.plan-list { list-style: none; padding: 0; margin: 1.4rem 0 1.7rem; }
.plan-list li { position: relative; padding-left: 1.6rem; font-size: var(--fs-sm); margin-bottom: .7rem; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; background: var(--coral); border-radius: 2px; transform: rotate(45deg);
}
.plan-note { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--ink-faint); }

/* ---------- 16. Services list (services page) ---------------------------- */
.svc {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(26px, 4vw, 72px);
  padding-block: clamp(46px, 5.5vw, 92px);
  border-top: 2px solid var(--ink);
  align-items: start;
}
.svc-left { position: sticky; top: 110px; }
.svc-left .num { margin-bottom: 1.2rem; }
.svc-left h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.svc-left .lead { margin-top: 1.1rem; }
.svc-photo { margin-top: 1.8rem; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--sand); }
.svc-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(18px,2.2vw,30px); }
.svc-box {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(20px, 2vw, 28px);
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}
.svc-box:hover { border-color: var(--ink); transform: translateY(-4px); background: var(--cream-2); }
.svc-box h4 { font-size: 1.08rem; }
.svc-box p { font-size: var(--fs-sm); margin-top: .5rem; }
.svc-box .k { font-family: var(--display); font-weight: 800; color: var(--coral-ink); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: .7rem; }
.svc-deliver { margin-top: clamp(22px,2.6vw,34px); background: var(--cream-2); border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(20px,2.2vw,30px); }
.svc-deliver h4 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--coral-ink); margin-bottom: .9rem; }
.svc-deliver ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.svc-deliver li { margin: 0; }

/* ---------- 17. Team / about --------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(22px, 2.8vw, 44px); }
.member { position: relative; }
.member:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
.member-photo {
  border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden;
  background: var(--sand);
  transition: transform .3s var(--ease);
}
.member:nth-child(3n+1) .member-photo { transform: rotate(-1.8deg); }
.member:nth-child(3n+2) .member-photo { transform: rotate(1.5deg); }
.member:hover .member-photo { transform: rotate(0) translateY(-5px); box-shadow: var(--shadow); }
.member-photo img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; filter: saturate(.92); }
.member h3 { font-size: 1.22rem; margin-top: 1rem; }
.member .role { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-ink); margin-top: .3rem; display: block; }
.member p { font-size: var(--fs-sm); margin-top: .6rem; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(22px,2.6vw,40px); }
.value { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.value h3 { font-size: 1.3rem; margin-top: .8rem; }
.value p { font-size: var(--fs-sm); margin-top: .6rem; }

.nope { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(14px,1.8vw,22px); }
.nope li {
  list-style: none; margin: 0;
  display: flex; gap: .9rem; align-items: flex-start;
  background: rgba(251,247,240,.06);
  border: 1px solid rgba(251,247,240,.16);
  border-radius: var(--r);
  padding: 1.05rem 1.2rem;
  font-size: var(--fs-sm);
}
.nope li b { color: var(--cream); font-family: var(--display); display: block; margin-bottom: .2rem; font-size: 1rem; }
.nope-x { color: var(--coral); font-family: var(--display); font-weight: 800; font-size: 1.15rem; flex: none; line-height: 1.35; }

/* timeline */
.tl { position: relative; padding-left: 2.2rem; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.tl-item { position: relative; padding-bottom: 2.1rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -2.2rem; top: .38em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--coral); border: 2px solid var(--ink);
}
.tl-item b { display: block; font-family: var(--display); color: var(--ink); font-size: 1.15rem; }
.tl-item .yr { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); font-weight: 700; }
.tl-item p { font-size: var(--fs-sm); margin-top: .45rem; }

/* ---------- 18. Contact / forms ------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
}
.form-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(14px,1.6vw,20px); }
.field { margin-bottom: 1.15rem; display: flex; flex-direction: column; }
.field label {
  font-family: var(--display); font-weight: 800; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  margin-bottom: .45rem;
}
.field .req { color: var(--coral-ink); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: .35rem; font-weight: 400; letter-spacing: 0; text-transform: none; font-family: var(--body); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--cream-2);
  border: 2px solid var(--rule);
  border-radius: 12px;
  padding: .82rem 1rem;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .18s var(--ease), background .18s var(--ease);
  font-family: var(--body);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171310' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px;
  padding-right: 2.8rem;
  text-overflow: ellipsis;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9086; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: var(--cream); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
.field.is-bad input, .field.is-bad textarea, .field.is-bad select { border-color: var(--coral-ink); background: #fdeee9; }
.err { display: none; font-size: var(--fs-xs); color: var(--coral-deep); margin-top: .4rem; font-weight: 600; }
.field.is-bad .err { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; cursor: pointer;
  border: 2px solid var(--rule); border-radius: var(--r-pill);
  padding: .5rem 1rem; font-size: .87rem; font-weight: 600; color: var(--ink-mute);
  transition: all .18s var(--ease); background: var(--cream-2);
}
.chip input:checked + span { background: var(--coral); border-color: var(--ink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--coral-ink); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink); }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(20px, 3vw, 40px) 0;
}
.form-card.is-done .form-body { display: none; }
.form-card.is-done .form-success { display: block; animation: pop .45s var(--ease) both; }
.form-success .tick {
  width: 84px; height: 84px; margin: 0 auto 1.4rem;
  border-radius: 50%; background: var(--coral); border: 2px solid var(--ink);
  display: grid; place-items: center; box-shadow: 5px 5px 0 var(--ink);
}
.form-success .tick svg { width: 36px; height: 36px; }
.form-success h3 { font-size: clamp(1.6rem,3vw,2.2rem); }
.form-success p { margin-top: .9rem; max-width: 42ch; margin-inline: auto; font-size: var(--fs-sm); }
.form-success .confetti { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.form-success .confetti i { width: 10px; height: 10px; border-radius: 2px; display: block; animation: bounce .9s var(--ease) infinite; }
.form-success .confetti i:nth-child(1) { background: var(--coral); animation-delay: 0s; }
.form-success .confetti i:nth-child(2) { background: var(--sun); animation-delay: .12s; }
.form-success .confetti i:nth-child(3) { background: var(--moss); animation-delay: .24s; }
.form-success .confetti i:nth-child(4) { background: var(--coral); animation-delay: .36s; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.contact-aside { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.info-card {
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--cream-2);
}
.info-card--ink { background: var(--ink); color: var(--on-ink-mute); }
.info-card--ink h3 { color: var(--cream); }
.info-card--ink a:not(.btn) { color: var(--sun); }
.info-card--ink .btn { border-color: var(--cream); box-shadow: 4px 4px 0 var(--cream); }
.info-card--ink .btn:hover { box-shadow: 7px 7px 0 var(--cream); }
.info-card h3 { font-size: 1.3rem; }
.info-card p { font-size: var(--fs-sm); margin-top: .7rem; }
.info-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: var(--fs-sm); margin-bottom: .8rem; }
.info-list svg { width: 18px; height: 18px; flex: none; margin-top: .28em; color: var(--coral-ink); }
.info-card--ink .info-list svg { color: var(--coral); }

.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--display); font-weight: 800; font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--ink); letter-spacing: -.015em;
}
.faq-q:hover { color: var(--coral-ink); }
.faq-ico { width: 30px; height: 30px; flex: none; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; position: relative; transition: background .2s var(--ease); }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; }
.faq-ico::before { width: 12px; height: 2px; }
.faq-ico::after { width: 2px; height: 12px; transition: transform .25s var(--ease); }
.faq-item.is-open .faq-ico { background: var(--coral); }
.faq-item.is-open .faq-ico::after { transform: scaleY(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { font-size: var(--fs-sm); padding-bottom: 1.35rem; max-width: 68ch; }

/* ---------- 19. CTA band -------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--on-ink-mute);
  padding-block: clamp(64px, 8vw, 120px);
}
.cta h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); color: var(--cream); max-width: 16ch; }
.cta .lead { color: var(--on-ink-mute); max-width: 46ch; margin-top: 1.5rem; }
.cta-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: clamp(28px,4vw,64px); align-items: end; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.cta-ring {
  position: absolute; right: -80px; top: -80px; width: 420px; height: 420px;
  border: 2px dashed rgba(255,90,60,.4); border-radius: 50%;
  animation: spin 40s linear infinite; pointer-events: none;
}
.cta-ring::after {
  content: ""; position: absolute; inset: 60px; border: 2px dashed rgba(245,184,65,.28); border-radius: 50%;
}

/* ---------- 20. Footer ---------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-mute); padding-top: clamp(56px, 6vw, 88px); }
.foot-top { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,.7fr)); gap: clamp(26px,3vw,48px); padding-bottom: clamp(40px,5vw,64px); }
.site-footer h4 { color: var(--cream); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--body); font-weight: 700; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: .65rem; }
.foot-links a { color: var(--on-ink-mute); text-decoration: none; font-size: var(--fs-sm); transition: color .18s var(--ease); }
.foot-links a:hover { color: var(--coral); }
.foot-brand .brand { color: var(--cream); font-size: 1.5rem; }
.foot-brand p { font-size: var(--fs-sm); margin-top: 1.1rem; max-width: 34ch; }
.foot-mail {
  display: inline-block; margin-top: 1.2rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--cream);
  text-decoration: none; letter-spacing: -.03em;
  border-bottom: 2px solid var(--coral); padding-bottom: 3px;
}
.foot-mail:hover { color: var(--coral); }
.foot-word {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.6rem, 17vw, 15rem);
  line-height: .78; letter-spacing: -.055em;
  color: transparent; -webkit-text-stroke: 1.6px rgba(251,247,240,.26);
  text-align: center; user-select: none;
  padding-bottom: .04em;
  overflow: hidden;
}
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(251,247,240,.16);
  margin-top: clamp(24px,3vw,40px);
  font-size: var(--fs-xs);
}
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-bottom a { color: var(--on-ink-mute); text-decoration: none; }
.foot-bottom a:hover { color: var(--coral); }
.socials { display: flex; gap: .55rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(251,247,240,.24);
  display: grid; place-items: center; color: var(--on-ink-mute);
  transition: all .2s var(--ease);
}
.socials a:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; }

/* ---------- 21. Legal pages ---------------------------------------------- */
.legal { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: clamp(30px,4vw,72px); align-items: start; }
.legal-toc { position: sticky; top: 108px; border-left: 2px solid var(--ink); padding-left: 1.2rem; }
.legal-toc h4 { font-family: var(--body); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 1rem; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: .6rem; }
.legal-toc a { font-size: var(--fs-sm); color: var(--ink-mute); text-decoration: none; }
.legal-toc a:hover { color: var(--coral-ink); text-decoration: underline; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 2.6rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.14rem; margin-top: 1.7rem; }
.legal-body p, .legal-body ul, .legal-body ol { margin-top: .9rem; font-size: var(--fs-body); }
.legal-body li { margin-bottom: .5rem; }
.legal-note {
  background: var(--cream-2); border-left: 4px solid var(--coral);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.2rem 1.4rem; font-size: var(--fs-sm); margin-top: 1.4rem;
}
.legal-note b { color: var(--ink); font-family: var(--display); }

/* ---------- 22. Misc blocks ---------------------------------------------- */
.hscroll {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--sand-2) transparent;
}
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-track { background: var(--sand); border-radius: 99px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.stack-chip {
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  padding: .7rem 1.35rem; background: var(--cream);
  font-family: var(--display); font-weight: 800; font-size: .95rem; color: var(--ink);
  white-space: nowrap;
}
.stack-chip:nth-child(3n) { background: var(--sun); }
.stack-chip:nth-child(4n) { background: var(--coral); }

.split {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(28px, 4vw, 72px); align-items: center;
}
.split--3070 { grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); }
.split-media { border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.split-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }

.photo-duo { position: relative; }
.photo-duo .p1 { border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; transform: rotate(-2deg); box-shadow: var(--shadow); background: var(--sand); }
.photo-duo .p1 img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.photo-duo .p2 {
  position: absolute; right: -6%; bottom: -16%; width: 48%;
  border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden;
  transform: rotate(4deg); box-shadow: var(--shadow); background: var(--sand);
}
.photo-duo .p2 img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(20px,2.6vw,36px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px,2.6vw,36px); }

.mini {
  border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: clamp(20px,2.2vw,30px); background: var(--cream);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mini:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 var(--coral); }
.mini h3 { font-size: 1.2rem; margin-top: .8rem; }
.mini p { font-size: var(--fs-sm); margin-top: .55rem; }
.mini-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; }
.mini-ico svg { width: 22px; height: 22px; }
.mini:nth-child(3n+2) .mini-ico { background: var(--coral); }
.mini:nth-child(3n) .mini-ico { background: var(--cream-2); }

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 60px); justify-content: center; }
.logos span {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  letter-spacing: -.03em; color: var(--ink); opacity: .48;
  transition: opacity .2s var(--ease);
}
.logos span:hover { opacity: 1; }

/* ---------- 23. Motion ---------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .4s; }

/* keep the tilt when revealing rotated things */
.step[data-reveal] { transform: translateY(26px); }
.step[data-reveal].is-in:nth-child(1) { transform: rotate(-1.4deg); }
.step[data-reveal].is-in:nth-child(2) { transform: rotate(.9deg) translateY(16px); }
.step[data-reveal].is-in:nth-child(3) { transform: rotate(-.7deg) translateY(-6px); }
.step[data-reveal].is-in:nth-child(4) { transform: rotate(1.6deg) translateY(22px); }

.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 2px solid var(--coral); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: opacity .3s var(--ease), width .22s var(--ease), height .22s var(--ease), margin .22s var(--ease), background .22s var(--ease);
  mix-blend-mode: multiply;
}
.cursor-dot.is-on { opacity: 1; }
.cursor-dot.is-big { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(255,90,60,.18); }

/* ---------- 24. Responsive ------------------------------------------------ */
@media (max-width: 1180px) {
  .team { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step:nth-child(2), .step:nth-child(4) { transform: rotate(.9deg) translateY(0); }
  .step[data-reveal].is-in:nth-child(2) { transform: rotate(.9deg); }
  .step[data-reveal].is-in:nth-child(4) { transform: rotate(1.4deg); }
  .foot-top { grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,.8fr)); }
}

@media (max-width: 1024px) {
  html { scroll-padding-top: 84px; }
  .hero-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 32px; }
  .hero-photo-2 { left: -10%; width: 52%; }
  .doitem { grid-template-columns: 78px minmax(0,1fr) minmax(0,1fr) auto; }
  .plans { grid-template-columns: 1fr; }
  .plan--hot { transform: none; }
  .plan--hot:hover { transform: translateY(-6px); }
  .svc { grid-template-columns: 1fr; }
  .svc-left { position: static; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ul { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
  .legal-toc li { margin: 0; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto;
    width: min(400px, 88vw);
    background: var(--cream);
    border-left: 2px solid var(--ink);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 96px var(--gut) 40px;
    transform: translateX(102%);
    transition: transform .38s var(--ease);
    overflow-y: auto;
    z-index: 90;
    box-shadow: var(--shadow-lg);
  }
  .nav-open .nav-menu { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--rule); }
  .nav-link {
    display: block; padding: 1.05rem .2rem;
    font-family: var(--display); font-weight: 800;
    font-size: 1.5rem; letter-spacing: -.03em; color: var(--ink);
    border-radius: 0;
  }
  .nav-link::after { left: .2rem; right: auto; width: 34px; bottom: .8rem; }
  .nav-menu .btn { margin-top: 1.7rem; width: 100%; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(23,19,16,.46);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 99;
  }
  .nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  html.nav-open, body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; gap: clamp(56px, 9vw, 80px); align-items: start; }
  .hero-title .l2, .hero-title .l3 { padding-left: 0; }
  .hero-sub { max-width: none; }
  .hero-side { max-width: 460px; margin-inline: auto; width: 100%; padding-bottom: 0; }
  .hero-photo { transform: rotate(1.6deg); }
  .hero-photo img { aspect-ratio: 4/3.2; }
  .hero-photo-2 { left: auto; right: -4%; bottom: -12%; width: 42%; }
  .phero-grid { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .quote-wrap { grid-template-columns: 1fr; }
  .quote { max-width: none; }
  .quote-photo { max-width: 420px; }
  .cta-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .cta h2 { max-width: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .case, .case--flip { grid-template-columns: 1fr; gap: 28px; }
  .case--flip .case-media { order: 0; }
  .case-num { right: -6px; top: -18px; }
  .split, .split--3070 { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .sec-head-note { padding-bottom: 0; }
  .foot-top { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
  .foot-brand { grid-column: 1 / -1; }
  .values { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .svc-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .marquee { transform: rotate(-1.2deg) scale(1.06); }
  .marquee--rev { transform: rotate(1deg) scale(1.06); }
}

@media (max-width: 760px) {
  .workcols { grid-template-columns: 1fr; gap: clamp(34px, 6vw, 48px); }
  .workcol--offset { margin-top: 0; }
  .wcard-media { transform: none !important; }
  .rot-a, .rot-b, .rot-c { transform: none; }
  .doitem { grid-template-columns: 56px minmax(0,1fr) auto; row-gap: 10px; }
  .doitem p { grid-column: 2 / -1; }
  .doitem-arrow { width: 38px; height: 38px; }
  .nope { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { box-shadow: 5px 5px 0 var(--ink); }
  .member:nth-child(even) { margin-top: 0; }
  .photo-duo .p2 { right: -2%; bottom: -12%; width: 42%; }
  .hero-stats { gap: 22px 30px; }
  .stat { min-width: 128px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 78px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 20px; }
  .stat span { max-width: none; }
  .blob--a { top: -90px; right: -140px; width: 300px; opacity: .38; }
  .blob--b { display: none; }
  .nav { min-height: 68px; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 30px; height: 30px; }
  .grid-3, .grid-2, .svc-cols { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; max-width: 380px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(n) { transform: none !important; }
  .step[data-reveal] { transform: translateY(22px) !important; }
  .step[data-reveal].is-in { transform: none !important; }
  .hero-photo, .hero-photo-2, .quote-photo, .photo-duo .p1, .photo-duo .p2 { transform: rotate(0deg); }
  .hero-photo-2 { position: static; width: 100%; margin-top: 14px; }
  .hero-photo-2 img { aspect-ratio: 16/9; }
  .hero-sticker { right: -6px; top: -16px; width: 76px; height: 76px; }
  .photo-duo .p2 { position: static; width: 100%; margin-top: 14px; }
  .photo-duo .p2 img { aspect-ratio: 16/9; }
  .case-num { font-size: 2.6rem; right: 8px; top: -14px; text-shadow: 3px 3px 0 var(--coral); }
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .plan--hot { box-shadow: 5px 5px 0 var(--coral); }
  .marquee { transform: rotate(-1deg) scale(1.09); margin-block: 30px; }
  .marquee--rev { transform: rotate(.8deg) scale(1.09); }
  .cursor-dot { display: none; }
  .quote-by img { width: 50px; height: 50px; }
  .legal-toc ul { flex-direction: column; gap: .5rem; }
  .legal-toc li { margin-bottom: 0; }
}

@media (max-width: 420px) {
  :root { --fs-mega: clamp(2.7rem, 13.4vw, 3.6rem); }
  .hero-stats { gap: 20px 24px; }
  .btn { width: 100%; }
  .btn-row { gap: .8rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .doitem { grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; }
  .doitem h3 { font-size: 1.2rem; }
  .form-card { padding: 20px 18px; }
  .hero-sticker { width: 66px; height: 66px; }
}

/* ---------- 25. Reduced motion / print ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .cursor-dot { display: none !important; }
  .hero-sticker, .cta-ring { animation: none !important; }
}

@media print {
  .site-header, .cta, .marquee, .cursor-dot, .nav-scrim { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
