/* =========================================================
   Lia Vazir — portfolio
   Palette: Alabaster bg · Dust · Muted Teal · Charcoal · Spicy Orange (rare accent)
========================================================= */
:root {
  --bg: #EAE5E2;
  --dust: #DAD7CD;
  --teal: #A2B594;
  --charcoal: #313C2A;
  --orange: #E53D00;
  --ink: #090909;
  --ink-soft: rgba(9, 9, 9, .62);
  --line: rgba(9, 9, 9, .12);
  --paper: #F3EFEC;

  --font: "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --radius: 28px;
  --radius-sm: 16px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--teal); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-soft); }

/* ---------- Grain overlay (moneyincheck / heron vibe) ---------- */
.grain {
  position: fixed; inset: -100%;
  pointer-events: none; z-index: 100;
  /* speckle noise: only the darker turbulence values become visible */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.12  0 0 0 0 0.1  -2.2 -2.2 -2.2 0 2.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .24;
  mix-blend-mode: multiply;
  animation: grain 1.6s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 18px; font-size: 14px; font-weight: 500;
  letter-spacing: 0; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.eyebrow--light { color: rgba(234, 229, 226, .7); }
.section-title {
  margin: 0; font-size: clamp(30px, 4vw, 52px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1;
}

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -0.01em;
  transition: transform .4s var(--spring), background .3s, color .3s;
  background: none;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn__arrow { transition: transform .4s var(--spring); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(-8deg); }
.btn__arrow--accent { color: var(--bg); } /* Alabaster Grey */
.pill {
  border: 1.5px solid var(--line); background: rgba(243, 239, 236, .6);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500;
  backdrop-filter: blur(8px); transition: background .3s, border-color .3s;
}
.pill:hover { background: var(--paper); border-color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 36px; }
.chips li {
  padding: 9px 16px; border-radius: 999px; background: var(--dust);
  font-weight: 500; font-size: 15px;
  transition: transform .4s var(--spring), background .3s;
}
.chips li:hover { transform: rotate(-3deg) scale(1.06); background: var(--teal); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: min(calc(100% - 24px), 760px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px;
  background: rgba(234, 229, 226, .72); backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line); border-radius: 999px;
  transition: transform .5s var(--ease), box-shadow .3s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav.is-scrolled { box-shadow: 0 10px 30px -18px rgba(9, 9, 9, .35); }
.nav__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; letter-spacing: -0.03em; font-size: 18px; white-space: nowrap; }
.nav__brand svg { width: 18px; height: 18px; fill: var(--orange); transition: transform .8s var(--spring); }
.nav__brand:hover svg { transform: rotate(144deg) scale(1.15); }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 15px; transition: background .25s;
}
.nav__links a:hover, .nav__links a.is-active { background: var(--dust); }
.nav__links a.nav__cta { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  .nav { padding-left: 14px; }
  .nav__links a { padding: 8px 10px; font-size: 14px; }
  .nav__links .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px;
  padding-top: 120px; padding-bottom: 80px;
}
.hero__title {
  position: relative; display: inline-block; margin: 0 0 22px; padding-right: .3em;
  font-size: clamp(64px, 10.5vw, 168px); font-weight: 600; line-height: .8; letter-spacing: -0.06em;
}
.hero__lede { margin: 0 0 30px; max-width: 30ch; font-size: clamp(20px, 2vw, 28px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stage { position: relative; height: min(78vh, 680px); }
.hand-note { position: absolute; left: 6%; top: 22%; font-family: var(--hand); font-size: 30px; color: var(--charcoal); transform: rotate(-8deg); z-index: 2; pointer-events: none; }
.drag-hint { position: absolute; bottom: 0; right: 4%; margin: 0; font-family: var(--hand); font-size: 22px; color: var(--ink-soft); }

.sticker {
  position: absolute; touch-action: none; user-select: none; -webkit-user-select: none;
  cursor: grab; border-radius: 18px; background: var(--paper);
  padding: 8px; box-shadow: 0 1px 0 rgba(9,9,9,.06), 0 18px 40px -22px rgba(9,9,9,.5);
  transition: box-shadow .3s, scale .4s var(--spring);
  will-change: transform;
}
.sticker img { width: 100%; height: auto; border-radius: 12px; pointer-events: none; }
.sticker--card img { background: var(--bg); }
.sticker::after { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 22px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(162, 181, 148, .55); border-radius: 2px; mix-blend-mode: multiply;
}
.sticker.is-dragging { cursor: grabbing; scale: 1.06; box-shadow: 0 30px 60px -24px rgba(9,9,9,.55); z-index: 20; }
.sticker__label { display: block; padding: 8px 4px 2px; font-size: 12px; font-weight: 500; color: var(--ink-soft); line-height: 1.2; }

/* hand-drawn doodles (stroke draws on) */
.doodle { position: absolute; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.doodle path { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.doodle.is-drawn path { animation: draw 1.6s var(--ease) forwards; }
.doodle.is-drawn path:nth-child(2) { animation-delay: .9s; animation-duration: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.doodle--star { width: .42em; height: .42em; right: -.2em; top: -.1em; stroke: var(--orange); stroke-width: 3.5; transform: rotate(12deg); }
.doodle--star.is-drawn { animation: spin 14s linear 2s infinite; }
@keyframes spin { to { transform: rotate(372deg); } }
.doodle--arrow { width: 130px; left: 8%; top: 28%; transform: rotate(-10deg); stroke: var(--charcoal); z-index: 2; }
.doodle--squiggle { width: min(420px, 60vw); left: var(--gutter); bottom: 40px; stroke: var(--teal); stroke-width: 5; }
.doodle--loop { width: 220px; right: 40px; bottom: 30px; stroke: var(--teal); stroke-width: 4; }
.doodle--circle { width: 340px; right: 8%; top: 40px; stroke: var(--orange); stroke-width: 3; opacity: .9; }

.hero { overflow-x: clip; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 110px; }
  .hero__stage { height: 460px; }
  .sticker { transform: scale(.66); transform-origin: top left; }
  .hand-note { top: 2%; left: 0; }
  .doodle--arrow { top: 9%; left: 2%; width: 100px; }
  .doodle--squiggle { display: none; }
}
@media (max-width: 760px) {
  .work__head { flex-wrap: wrap; }
  [data-view-toggle] { display: none; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 40px; }
.stat { background: var(--dust); border-radius: var(--radius-sm); padding: 26px 24px 22px; position: relative; overflow: hidden; }
.stat:nth-child(2) { background: var(--teal); }
.stat:nth-child(3) { background: var(--charcoal); color: var(--bg); }
.stat__num { display: block; font-size: clamp(42px, 5vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 15px; line-height: 1.3; opacity: .8; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Work: diagonal 3D file stack ---------- */
.work { position: relative; }
.work__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.work__head { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 100px; gap: 16px; position: relative; z-index: 5; }
.work__controls { display: flex; align-items: center; gap: 16px; }
.work__count { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 15px; }
.work__count b { color: var(--ink); }
.stack { position: relative; z-index: 1; flex: 1; perspective: 1900px; perspective-origin: 40% 50%; }
.file {
  position: absolute; left: 42%; top: 56%;
  width: clamp(260px, 30vw, 460px); aspect-ratio: 4 / 3.2;
  margin-left: calc(clamp(260px, 30vw, 460px) / -2);
  margin-top: calc(clamp(260px, 30vw, 460px) * -.4);
  transform-style: preserve-3d; text-decoration: none; color: inherit;
  will-change: transform, opacity;
}
.file__inner {
  position: absolute; inset: 0; border-radius: 6px 22px 22px 22px;
  background: var(--fc, var(--dust)); padding: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 40px 60px -30px rgba(9,9,9,.45);
  transition: transform .5s var(--spring), box-shadow .4s;
}
.file__tab {
  position: absolute; top: -26px; left: 0; height: 30px; padding: 0 16px 0 14px;
  display: flex; align-items: center; gap: 8px;
  background: var(--fc, var(--dust)); border-radius: 12px 14px 0 0;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.file__tab i { font-style: normal; opacity: .6; }
.file__img { width: 100%; height: 100%; border-radius: 4px 14px 14px 14px; object-fit: cover; background: var(--paper); }
.file:hover .file__inner { transform: translateY(-14px) rotate(-1deg); box-shadow: 0 60px 70px -30px rgba(9,9,9,.5); }
.file[data-c="charcoal"] { --fc: var(--charcoal); color: var(--bg); }
.file[data-c="teal"] { --fc: var(--teal); }
.file[data-c="dust"] { --fc: var(--dust); }
.file.is-active .file__inner { box-shadow: 0 70px 90px -40px rgba(9,9,9,.55); }

.stack__info {
  position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
  padding-bottom: 46px; min-height: 160px;
}
.stack__info h3 { margin: 6px 0 10px; font-size: clamp(28px, 3.4vw, 50px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; max-width: 18ch; }
.stack__meta { margin: 0; font-size: 15px; color: var(--ink-soft); }
.stack__info .swap { animation: swapIn .55s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.stack__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 2px; background: var(--line); border-radius: 2px; z-index: 5; }
.stack__progress span { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 2px; width: 0; }

/* mobile: swipe carousel instead of 3D stack */
@media (max-width: 760px) {
  .work { height: auto !important; }
  .work__sticky { position: relative; height: auto; overflow: visible; }
  .work__head { padding-top: 60px; }
  .stack { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 44px var(--gutter) 24px; perspective: none; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .stack::-webkit-scrollbar { display: none; }
  .file { position: relative; left: auto; top: auto; margin: 0; flex: 0 0 82%; transform: none !important; opacity: 1 !important; scroll-snap-align: center; }
  .stack__progress { display: none; }
  .stack__info { padding-bottom: 20px; min-height: 0; grid-template-columns: 1fr; }
}

/* ---------- Index list w/ cursor preview ---------- */
.index { padding-top: 120px; padding-bottom: 60px; }
.index__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.index__head p { margin: 0; }
.index__list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.index__row a {
  display: grid; grid-template-columns: 52px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr) 90px; gap: 16px; align-items: center;
  padding: 22px 6px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .4s var(--ease), background .3s;
}
.index__row a:hover { padding-left: 22px; background: var(--dust); }
.index__num { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 14px; }
.index__title { font-size: clamp(19px, 2vw, 26px); font-weight: 600; letter-spacing: -0.03em; }
.index__client, .index__tags, .index__year { font-size: 15px; color: var(--ink-soft); }
.index__year { text-align: right; }
.index__row a:hover .index__year::after { content: " →"; color: var(--orange); }
@media (max-width: 760px) {
  .index__row a { grid-template-columns: 34px 1fr auto; }
  .index__tags, .index__client { display: none; }
}
.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 300px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
  transition: opacity .3s, transform .45s var(--spring);
  box-shadow: 0 30px 60px -30px rgba(9,9,9,.6);
}
.cursor-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .cursor-preview { display: none; } }

/* ---------- Color-block cards ---------- */
.block-charcoal { background: var(--charcoal); color: var(--bg); }
.about { padding-top: 60px; padding-bottom: 60px; }
.about__card { position: relative; border-radius: var(--radius); padding: clamp(32px, 6vw, 88px); overflow: hidden; }
.about__card::before { /* noisy gradient glow, heidi-ish */
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -20%; top: -40%;
  background: radial-gradient(circle, rgba(162,181,148,.55), rgba(162,181,148,0) 65%);
  filter: blur(10px);
}
.about__text { position: relative; max-width: 820px; }
.about__heading { margin: 0 0 28px; font-size: clamp(34px, 5vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: .98; }
.about__body p { margin: 0 0 16px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: rgba(234,229,226,.85); max-width: 60ch; }
.about .doodle { stroke: var(--teal); }

/* ---------- Clients marquee (wispr-style) ---------- */
.clients { padding-top: 80px; padding-bottom: 60px; }
.clients .section-title { margin-bottom: 36px; }
.marquee {
  display: flex; overflow: hidden; user-select: none; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 14px; flex-shrink: 0; padding-right: 14px; animation: marquee 42s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-tile {
  flex: 0 0 auto; width: 210px; height: 104px; border-radius: 20px; background: var(--paper);
  display: grid; place-items: center; padding: 26px 32px;
  transition: background .35s, transform .45s var(--spring);
}
.logo-tile img { max-height: 40px; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .78; transition: opacity .3s, filter .3s; }
.logo-tile:hover { background: var(--teal); transform: translateY(-4px) rotate(-2deg); }
.logo-tile:hover img { opacity: 1; }

/* ---------- Testimonials: carousel + confetti ---------- */
.quotes { padding-top: 60px; padding-bottom: 60px; position: relative; }
.quotes .section-title { margin-bottom: 32px; position: relative; }
.quotes__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* generous padding so the hover lift, scale and shadow are never clipped by the scroller */
  padding: 34px 24px 80px; margin: -34px -24px -50px; scroll-padding-inline: 24px; scrollbar-width: none; outline: none;
  perspective: 1400px; cursor: grab; user-select: none;
}
.quotes__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.quotes__track.is-dragging .quote { transition: rotate .2s linear, scale .2s linear; }
.quote { rotate: y var(--tilt, 0deg); scale: var(--depth, 1); transform-origin: center center; }

.quotes__track::-webkit-scrollbar { display: none; }
.quote {
  margin: 0; flex: 0 0 calc((100% - 28px) / 3); scroll-snap-align: start;
  border-radius: var(--radius); padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 18px; min-height: 400px;
  transition: transform .55s var(--spring), box-shadow .45s, rotate .5s var(--ease), scale .5s var(--ease); position: relative;
}
.quote:hover { transform: translateY(-12px) scale(1.025); box-shadow: 0 40px 60px -36px rgba(9,9,9,.45); z-index: 2; }
.quote[data-tone="0"] { background: var(--teal); }
.quote[data-tone="1"] { background: var(--charcoal); color: var(--bg); }
.quote[data-tone="2"] { background: var(--dust); }
.quote__body { flex: 1; }
.quote__mark { font-family: var(--hand); font-size: 64px; line-height: .5; display: block; margin-bottom: 8px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: -0.015em; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.quote__more { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; color: inherit; }
.quote__more:hover { opacity: 1; }
.quote__more .ext { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -1px; }
.quote.has-more .quote__more { display: inline-flex; }
.quote footer b { display: block; font-weight: 600; }
.quote footer span { font-size: 14px; opacity: .72; }
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.quotes__arrow { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; font-size: 20px; transition: background .25s, color .25s, transform .4s var(--spring), opacity .3s; }
.quotes__arrow:hover:not(:disabled) { background: var(--ink); color: var(--bg); transform: scale(1.08); }
.quotes__arrow:disabled { opacity: .25; cursor: default; }
.quotes__count { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink-soft); min-width: 64px; text-align: center; }
@media (max-width: 900px) { .quote { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 640px) { .quote { flex-basis: 86%; min-height: 0; } }
.confetti { position: absolute; pointer-events: none; z-index: 60; }
.cf { position: absolute; display: block; width: 10px; height: 10px; }
.cf--dot { border-radius: 50%; background: var(--c); }
.cf--square { background: var(--c); border-radius: 2px; width: 8px; height: 8px; }
.cf--tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid var(--c); }
.cf--squiggle { width: 26px; height: 12px; } .cf--star { width: 16px; height: 16px; }
.cf svg { width: 100%; height: 100%; display: block; }

/* ---------- Contact ---------- */
.contact { padding-top: 60px; padding-bottom: 80px; }
.contact__card { position: relative; background: var(--paper); border-radius: var(--radius); padding: clamp(36px, 7vw, 110px) clamp(24px, 6vw, 88px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.contact__copy { position: relative; z-index: 1; }
.contact__stage { position: relative; height: clamp(320px, 38vw, 520px); }
.contact__logo { position: absolute; inset: -10% -14% -4% -6%; cursor: grab; will-change: translate; }
.contact__logo.is-grabbing { cursor: grabbing; }
@media (max-width: 860px) { .contact__card { grid-template-columns: 1fr; } .contact__stage { height: 340px; } .contact__logo { inset: 0; } }
.contact__heading { margin: 0 0 20px; font-size: clamp(40px, 7vw, 110px); font-weight: 600; letter-spacing: -0.06em; line-height: .92; max-width: 13ch; position: relative; }
.contact__body { margin: 0 0 34px; font-size: 20px; color: var(--ink-soft); max-width: 42ch; position: relative; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }


.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 40px; font-size: 14px; color: var(--ink-soft); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   PROJECT PAGE
========================================================= */
.p-hero { padding-top: 130px; padding-bottom: 40px; }
.p-back { display: flex; width: fit-content; gap: 8px; align-items: center; margin-bottom: 40px; text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.p-back:hover { color: var(--ink); }
.p-title { margin: 0 0 26px; font-size: clamp(44px, 8vw, 128px); font-weight: 600; letter-spacing: -0.06em; line-height: .92; max-width: 16ch; }
.p-summary { margin: 0; font-size: clamp(20px, 2vw, 27px); line-height: 1.3; letter-spacing: -0.025em; max-width: 46ch; font-weight: 500; }
.p-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 50px; }
.p-meta div { background: var(--dust); border-radius: var(--radius-sm); padding: 18px 20px; }
.p-meta dt { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; }
.p-meta dd { margin: 0; font-weight: 500; line-height: 1.35; }
.p-meta div:last-child { grid-column: span 1; }
@media (max-width: 800px) { .p-meta { grid-template-columns: 1fr 1fr; } }
.p-cover { margin-top: 26px; border-radius: var(--radius); overflow: hidden; background: var(--dust); }
.p-cover img { width: 100%; height: auto; transform-origin: center top; }
.p-blocks { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 100px); padding-top: clamp(40px, 7vw, 100px); padding-bottom: 80px; }

.b-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; }
.b-text h2 { margin: 0; font-size: clamp(28px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.b-text p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: rgba(9,9,9,.8); }
@media (max-width: 800px) { .b-text { grid-template-columns: 1fr; gap: 16px; } }

.b-figure { margin: 0; }
.b-figure img, .b-figure video { width: 100%; border-radius: var(--radius); background: var(--dust); }
.b-figure--tall img { max-width: 760px; margin-inline: auto; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.b-figure--tall figcaption { text-align: center; }

.b-gallery { columns: 3 280px; column-gap: 14px; }
.b-gallery figure { break-inside: avoid; margin: 0 0 14px; cursor: zoom-in; }
.b-gallery img { width: 100%; border-radius: var(--radius-sm); background: var(--dust); transition: transform .6s var(--ease), filter .4s; }
.b-gallery figure:hover img { transform: scale(1.015) rotate(-.4deg); }
.b-gallery figcaption { margin-top: 8px; }

/* tabs (city filter) */
.b-tabs__bar { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.b-tabs__bar button { border: 1.5px solid var(--ink); background: none; border-radius: 999px; padding: 10px 20px; font-weight: 600; transition: background .25s, color .25s; }
.b-tabs__bar button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.b-tabs__panel .b-gallery { animation: swapIn .6s var(--ease); }

/* video */
.b-video { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); }
.b-video video { width: 100%; border-radius: 0; }
.b-video__btn {
  position: absolute; left: 20px; bottom: 20px; border: 0; border-radius: 999px; padding: 12px 18px;
  background: rgba(234,229,226,.85); backdrop-filter: blur(8px); font-weight: 600; font-size: 14px;
}

/* browser frame */
.b-browser { display: grid; gap: 14px; }
.b-browser__bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--dust); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; transition: background .25s; }
.seg button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 2px 8px -4px rgba(9,9,9,.3); }
.browser { border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 50px 80px -50px rgba(9,9,9,.55); border: 1px solid var(--line); transition: max-width .7s var(--ease); margin-inline: auto; width: 100%; }
.browser.is-mobile { max-width: 400px; border-radius: 40px; border: 10px solid var(--ink); }
.browser.is-mobile .browser__chrome { display: none; }
.browser__chrome { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--dust); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(9,9,9,.18); }
.browser__dots i:first-child { background: var(--orange); }
.browser__url { flex: 1; text-align: center; font-size: 13px; background: var(--paper); border-radius: 999px; padding: 6px 12px; color: var(--ink-soft); max-width: 420px; margin-inline: auto; }
.browser__view { position: relative; aspect-ratio: 1920 / 1068; overflow: hidden; }
.browser.is-mobile .browser__view { aspect-ratio: 9 / 18.5; }
.browser__view video, .browser__scroll { position: absolute; inset: 0; width: 100%; height: 100%; }
.browser__view video { object-fit: cover; object-position: top; }
.browser__scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.browser__scroll img { width: 100%; height: auto; }
.browser__hint { position: absolute; right: 16px; bottom: 16px; font-family: var(--hand); font-size: 22px; background: var(--paper); padding: 4px 14px; border-radius: 999px; pointer-events: none; transition: opacity .4s; }

/* live embed */
.b-embed .browser__view { aspect-ratio: 16 / 10; }
.b-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper); }

/* specimen */
.b-specimen { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 5vw, 70px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.b-specimen img { width: 100%; max-width: 460px; }
.b-specimen__sample { font-size: clamp(30px, 4vw, 58px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; margin: 0 0 16px; }
@media (max-width: 800px) { .b-specimen { grid-template-columns: 1fr; } }

/* next project */
.p-next { display: block; text-decoration: none; border-radius: var(--radius); padding: clamp(30px, 6vw, 80px); background: var(--teal); margin-bottom: 40px; position: relative; overflow: hidden; transition: background .4s; }
.p-next:hover { background: var(--charcoal); color: var(--bg); }
.p-next small { font-size: 15px; opacity: .7; }
.p-next strong { display: block; font-size: clamp(34px, 6vw, 90px); letter-spacing: -0.06em; line-height: .95; font-weight: 600; margin-top: 10px; max-width: 16ch; }
.p-next img { position: absolute; right: 4%; top: 50%; width: min(32%, 380px); border-radius: 18px; transform: translateY(-50%) rotate(6deg); transition: transform .6s var(--spring); }
.p-next:hover img { transform: translateY(-54%) rotate(-3deg) scale(1.05); }
@media (max-width: 760px) { .p-next img { display: none; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(9,9,9,.88); display: grid; place-items: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 12px; }
.lightbox button { position: absolute; border: 0; background: var(--bg); width: 48px; height: 48px; border-radius: 50%; font-size: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; }
.lightbox__nav--next { right: 20px; top: 50%; }

/* =========================================================
   EDIT MODE
========================================================= */
.edit-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 120;
  display: flex; gap: 6px; align-items: center; padding: 8px; border-radius: 999px;
  background: var(--ink); color: var(--bg); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  font-size: 14px; max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center;
}
.edit-bar__label { padding: 0 10px 0 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.edit-bar__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.edit-bar button { border: 0; border-radius: 999px; padding: 9px 14px; background: rgba(234,229,226,.12); color: var(--bg); font-weight: 500; }
.edit-bar button:hover { background: rgba(234,229,226,.24); }
.edit-bar button.is-primary { background: var(--orange); }
.edit-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 120; background: var(--charcoal); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.edit-toast.is-on { opacity: 1; }
body.is-editing [data-edit-path] { outline: 1.5px dashed rgba(229, 61, 0, .5); outline-offset: 4px; border-radius: 4px; cursor: text; }
body.is-editing [data-edit-path]:hover, body.is-editing [data-edit-path]:focus { outline-color: var(--orange); outline-style: solid; background: rgba(229, 61, 0, .05); }
body.is-editing [data-edit-src] { outline: 2px dashed rgba(229, 61, 0, .6); outline-offset: -2px; cursor: copy; }
body.is-editing [data-drag-item] { cursor: grab; }
body.is-editing [data-drag-item].is-drag-over { box-shadow: -4px 0 0 var(--orange); }
body.is-editing .index__row.is-drag-over a { box-shadow: 0 -3px 0 var(--orange) inset; }
.drag-handle { display: none; }
body.is-editing .drag-handle { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--orange); color: #fff; font-size: 14px; cursor: grab; position: absolute; top: 8px; left: 8px; z-index: 3; }
body.is-editing .index__row { position: relative; }
body.is-editing .index__row .drag-handle { top: 50%; left: -34px; transform: translateY(-50%); }
body.is-editing .b-gallery figure { position: relative; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .doodle path { stroke-dashoffset: 0; }
}

/* =========================================================
   ILLUSTRATED ICONS (js/icons.js)
========================================================= */
.ill { --i-ink: #111; --i-fill: #fff; --i-shade: #9b9895; --i-accent: #111; display: inline-block; width: 120px; aspect-ratio: 1; }
.ill-icon { width: 100%; height: 100%; overflow: visible; display: block; }
.ill-icon * { stroke: var(--i-ink); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.ill-icon :is(.rays, .steam path, .lid, .iris, .dot, .leaves, .flip, .click, .drip, .blink, .lens) { transform-box: fill-box; transform-origin: center; }
.ill-icon .i-fill { fill: var(--i-fill); }
.ill-icon .i-shade { fill: var(--i-shade); }
.ill-icon .i-ink { fill: var(--i-ink); }
.ill-icon .i-accent { fill: var(--i-accent); }
.ill-icon .i-line { fill: none; }
/* generic motions (on the wrapper) */
.anim-bob { animation: ill-bob 3.2s ease-in-out infinite; }
.anim-wiggle { animation: ill-wiggle 2.4s ease-in-out infinite; }
.anim-spin { animation: ill-spin 9s linear infinite; }
.anim-pulse { animation: ill-pulse 1.6s ease-in-out infinite; }
.anim-draw .ill-icon * { stroke-dasharray: 600; stroke-dashoffset: 600; animation: ill-draw 3.6s ease-in-out infinite; }
@keyframes ill-bob { 50% { translate: 0 -10px; } }
@keyframes ill-wiggle { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes ill-spin { to { rotate: 360deg; } }
@keyframes ill-pulse { 50% { scale: 1.09; } }
@keyframes ill-draw { 0% { stroke-dashoffset: 600; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -600; } }
/* signature motions (anim-alive) */
.anim-alive .rays { animation: ill-flicker 1.8s steps(2) infinite; }
.anim-alive .steam path { animation: ill-steam 2.6s ease-in-out infinite; }
.anim-alive .steam path:nth-child(2) { animation-delay: .4s; } .anim-alive .steam path:nth-child(3) { animation-delay: .8s; }
.anim-alive .lid { animation: ill-blink 4s infinite; transform-origin: 50% 0; }
.anim-alive .iris { animation: ill-look 5s ease-in-out infinite; }
.anim-alive .dot { animation: ill-dot 1.2s ease-in-out infinite; } .anim-alive .dot:nth-of-type(2) { animation-delay: .15s; } .anim-alive .dot:nth-of-type(3) { animation-delay: .3s; }
.anim-alive .leaves { animation: ill-sway 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.anim-alive.ill--pencil .ill-icon, .anim-alive .pencil { animation: ill-write .9s ease-in-out infinite; }
.anim-alive .sketch, .anim-alive .route, .anim-alive .draw { stroke-dasharray: 300; animation: ill-draw-once 2.8s ease-in-out infinite; }
.anim-alive .flip { animation: ill-flip 2.2s ease-in-out infinite; }
.anim-alive .click { animation: ill-flicker 1.2s steps(2) infinite; }
.anim-alive .drip { animation: ill-drip 2.4s ease-in infinite; }
.anim-alive .blink { animation: ill-blink 3.6s infinite; }
.anim-alive.ill--heart .ill-icon, .anim-alive.ill--star .ill-icon, .anim-alive.ill--sparkle .ill-icon { animation: ill-pulse 1.3s ease-in-out infinite; }
.anim-alive .lens { animation: ill-pulse 2s ease-in-out infinite; }
@keyframes ill-flicker { 50% { opacity: .15; } }
@keyframes ill-steam { 0% { translate: 0 6px; opacity: 0; } 40% { opacity: 1; } 100% { translate: 0 -10px; opacity: 0; } }
@keyframes ill-blink { 0%, 92%, 100% { scale: 1 0; } 96% { scale: 1 1; } }
@keyframes ill-look { 0%, 100% { translate: 0 0; } 30% { translate: -6px 0; } 60% { translate: 6px 2px; } }
@keyframes ill-dot { 50% { translate: 0 -7px; } }
@keyframes ill-sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
@keyframes ill-write { 0%, 100% { translate: 0 0; rotate: 0deg; } 25% { translate: 4px -3px; rotate: -4deg; } 75% { translate: -3px 3px; rotate: 3deg; } }
@keyframes ill-draw-once { 0% { stroke-dashoffset: 300; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes ill-flip { 0%, 100% { translate: 0 0; scale: 1 1; } 50% { translate: 0 -12px; scale: .2 1; } }
@keyframes ill-drip { 0% { translate: 0 -6px; opacity: 0; } 30% { opacity: 1; } 100% { translate: 0 14px; opacity: 0; } }


/* =========================================================
   v3 ADDITIONS — mini logo, radio, hero options, decor, gradient band
========================================================= */
/* sticky 3D monogram, top-left, same height as the nav */
.logo-mini {
  position: fixed; top: 14px; left: 18px; z-index: 51; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); overflow: hidden; display: block;
  box-shadow: 0 10px 30px -18px rgba(9,9,9,.35); transition: transform .5s var(--spring);
}
.logo-mini:hover { transform: scale(1.08) rotate(-6deg); }
.logo-mini__gl { width: 100%; height: 100%; }
@media (max-width: 900px) { .logo-mini { width: 46px; height: 46px; top: 16px; left: 12px; } .nav { left: calc(50% + 26px); width: min(calc(100% - 84px), 760px); } }

/* lo-fi radio: outlined circle with a music-note icon; animates while playing */
.radio-btn {
  position: relative; display: inline-grid; place-items: center; width: 37px; height: 37px; padding: 0; margin: 0 2px;
  border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; transition: background .25s, color .25s, transform .4s var(--spring);
}
.radio-btn:hover { background: var(--dust); transform: rotate(-8deg); }
.radio-btn.is-playing { background: var(--charcoal); border-color: var(--charcoal); color: var(--bg); }
.radio-btn .note { width: 18px; height: 18px; display: block; }
.radio-btn .note svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.radio-btn .note circle { fill: currentColor; }
.radio-btn.is-playing .note { animation: note-bop .55s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes note-bop { from { transform: rotate(-12deg) translateY(1px); } to { transform: rotate(10deg) translateY(-2px); } }
.note-fly { position: absolute; inset: 0; pointer-events: none; }
.note-fly i { position: absolute; left: 50%; top: 4px; font-style: normal; font-size: 12px; line-height: 1; color: var(--charcoal); opacity: 0; }
.radio-btn.is-playing .note-fly i { animation: note-fly 2.4s ease-out infinite; }
.radio-btn.is-playing .note-fly i:nth-child(2) { animation-delay: .8s; } .radio-btn.is-playing .note-fly i:nth-child(3) { animation-delay: 1.6s; }
@keyframes note-fly { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + 14px), 26px) rotate(25deg) scale(1); } }
.radio-btn.is-playing .note-fly i:nth-child(2) { --dx: -16px; }

/* hero option: 3D studio */
.hero__stage--studio, .hero__stage--gradient { height: min(80vh, 700px); }
.hero-studio { position: absolute; inset: -6% -10% -4% -6%; cursor: grab; }
.logo-hint { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; white-space: nowrap; font-size: 13px; color: var(--ink-soft); background: rgba(243,239,236,.7); backdrop-filter: blur(8px); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); pointer-events: none; z-index: 2; }
.logo-hint__name { font-weight: 600; color: var(--ink); }

/* hero option: painterly ribbons */
.hero-ribbons { position: absolute; inset: -4%; }
.hero-ribbons svg { width: 100%; height: 100%; overflow: visible; }
.ribbon { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ribbon 2.6s var(--ease) forwards; animation-delay: calc(var(--i) * .45s + .2s); transition: translate 1.2s var(--ease); }
@keyframes ribbon { to { stroke-dashoffset: 0; } }

/* hero option: grainy gradient + rotating words */
.hero-gradient { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; }
.hero-gradient__words { position: absolute; left: 8%; bottom: 10%; right: 8%; height: 1.1em; font-size: clamp(36px, 5vw, 76px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); mix-blend-mode: multiply; }
.hero-gradient__words span { position: absolute; inset: 0; opacity: 0; transform: translateY(30%); filter: blur(8px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.hero-gradient__words span.is-on { opacity: 1; transform: none; filter: none; }

/* hero option: big list (Wealthsimple-style) */
.hero__stage--list { height: auto; align-self: center; }
.hero-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); position: relative; z-index: 1; }
.hero-list a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 20px; padding: 18px 4px 16px; border-bottom: 1.5px solid var(--ink); text-decoration: none; transition: padding .45s var(--ease), background .3s; }
.hero-list__word { font-size: clamp(40px, 5.4vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; grid-row: 1; }
.hero-list__note { grid-row: 2; font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.hero-list__arrow { grid-row: 1 / span 2; align-self: center; width: 52px; height: 52px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 20px; transition: background .3s, color .3s, transform .45s var(--spring); }
.hero-list a:hover { padding-left: 22px; background: var(--dust); }
.hero-list a:hover .hero-list__arrow { background: var(--ink); color: var(--bg); transform: rotate(-35deg); }
.hero-list__peek { position: absolute; right: 18%; width: 230px; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; pointer-events: none; z-index: 2; opacity: 0; transform: translateY(-50%) scale(.7) rotate(-6deg); transition: opacity .3s, transform .5s var(--spring), top .45s var(--ease); box-shadow: 0 30px 50px -30px rgba(9,9,9,.6); }
.hero-list__peek.is-on { opacity: 1; transform: translateY(-50%) scale(1) rotate(-3deg); }
.hero-list__peek img { width: 100%; height: 100%; object-fit: cover; }

/* hero option: analogue collage */
.hero-collage { position: absolute; inset: 0; }
.collage-piece { position: absolute; cursor: grab; touch-action: none; user-select: none; transition: translate .9s var(--ease); }
.collage-piece.is-dragging { cursor: grabbing; transition: none; }
.collage-piece img { width: 100%; display: block; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(9,9,9,.16)); }
.collage-piece img.halftone { filter: grayscale(1) contrast(1.35) brightness(1.05) drop-shadow(0 12px 18px rgba(9,9,9,.18)); border-radius: 4px; mix-blend-mode: multiply; }
.collage-piece .hand-note { position: static; }
.collage-piece .ill { width: 100%; }

/* decor layer: paper scraps + icons placed in sections */
[data-decor-anchor]:not(.work__sticky) { position: relative; }
.decor-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.decor { position: absolute; pointer-events: none; }
.decor img { width: 100%; display: block; filter: drop-shadow(0 10px 14px rgba(9,9,9,.12)); }
.decor .ill { width: 100%; }
.quotes__row, .contact__card, .about__card, .index__list, .marquee, .stack, .stack__info, .work__head { position: relative; z-index: 1; }


/* text style presets (edit mode → Text style) */
.t-h1 { font-size: clamp(56px, 9vw, 150px) !important; line-height: .92 !important; letter-spacing: -0.06em !important; font-weight: 600 !important; }
.t-h2 { font-size: clamp(34px, 5vw, 72px) !important; line-height: .98 !important; letter-spacing: -0.05em !important; font-weight: 600 !important; }
.t-h3 { font-size: clamp(24px, 2.8vw, 40px) !important; line-height: 1.05 !important; letter-spacing: -0.04em !important; font-weight: 600 !important; }
.t-lg { font-size: clamp(20px, 2vw, 28px) !important; line-height: 1.3 !important; letter-spacing: -0.025em !important; }
.t-sm { font-size: 15px !important; line-height: 1.45 !important; letter-spacing: -0.01em !important; }
.t-bold { font-weight: 700 !important; }
.t-regular { font-weight: 400 !important; }
.t-legal { font-size: 12px !important; line-height: 1.45 !important; letter-spacing: 0 !important; opacity: .7; }
.t-eyebrow { font-size: 13px !important; text-transform: uppercase; letter-spacing: .12em !important; font-weight: 600 !important; }

/* =========================================================
   EDIT MODE v3 — inspector, picker, drawer
========================================================= */
body.is-editing { padding-right: 320px; }
@media (max-width: 900px) { body.is-editing { padding-right: 0; } }
body.is-editing .decor { pointer-events: auto; cursor: grab; }
body.is-editing .decor:hover { outline: 1.5px dashed rgba(229,61,0,.6); outline-offset: 4px; }
body.is-editing .decor.is-dragging { cursor: grabbing; opacity: .85; }
.edit-ui { font-family: var(--font); font-size: 13px; letter-spacing: 0; color: var(--ink); }
.edit-bar { right: auto; }
.edit-bar__group { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-left: 1px solid rgba(234,229,226,.2); border-right: 1px solid rgba(234,229,226,.2); }
.edit-bar__muted { opacity: .6; padding: 0 2px 0 6px; }
.edit-bar__hero { font-weight: 600; min-width: 64px; text-align: center; text-transform: capitalize; }
.edit-bar .edit-ui, .edit-bar button { color: var(--bg); }
.edit-sel { position: fixed; z-index: 115; pointer-events: none; border: 2px solid var(--orange); border-radius: 6px; display: none; }
.edit-sel::after { content: attr(data-label); position: absolute; left: -2px; top: -24px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px 6px 6px 0; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.edit-panel { position: fixed; top: 84px; right: 12px; bottom: 84px; width: 296px; z-index: 125; overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); padding: 14px; }
@media (max-width: 900px) { .edit-panel { top: auto; bottom: 76px; left: 12px; right: 12px; width: auto; max-height: 44vh; } }
.ep-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.ep-head strong { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-sec { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.ep-sec h4 { margin: 0 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.ep-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ep-row.is-target { background: var(--dust); border-radius: 8px; padding: 4px; }
.ep-label { flex: 1; font-size: 12px; color: var(--ink-soft); }
.ep-val { width: 34px; text-align: right; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--ink-soft); }
.ep-row input[type=range] { width: 130px; accent-color: var(--charcoal); }
.ep-input { flex: 1.6; min-width: 0; font: inherit; font-size: 12px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
select.ep-input { width: 100%; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ep-chips button, .ep-mini, .ep-tabs button { font: inherit; font-size: 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px; color: var(--ink); }
.ep-chips button.is-on, .ep-tabs button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ep-mini:hover, .ep-chips button:hover { border-color: var(--ink); }
.ep-reset { margin-top: 12px; width: 100%; border-radius: 10px; }
.ep-done { background: var(--ink); color: var(--bg); }
.ep-help { color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin: 6px 0; }
.ep-swatch { width: 34px; height: 26px; border-radius: 8px; border: 1px solid var(--line); flex: 0 0 auto; }
.ep-toggle { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.edit-picker { position: fixed; z-index: 135; width: 268px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45); }
.edit-picker input[type=color] { width: 40px; height: 32px; border: 0; padding: 0; background: none; }
.ep-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.ep-preview { height: 46px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.ep-brand { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.ep-brand button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(9,9,9,.15); }
.ep-brand .ep-none { background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 50%/8px 8px; }
.edit-drawer { position: fixed; left: 12px; top: 84px; bottom: 84px; width: 300px; z-index: 126; overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ed-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; place-items: center; gap: 4px; min-height: 84px; font-size: 10px; color: var(--ink-soft); }
.ed-item:hover { border-color: var(--ink); }
.ed-item img { max-width: 100%; max-height: 64px; }
body.is-editing .is-selected { outline: none !important; }
@media (min-width: 901px) {
  body.is-editing .edit-bar, body.is-editing .edit-toast { left: calc((100% - 320px) / 2); max-width: calc(100% - 360px); }
  body.is-editing .edit-toast { bottom: 96px; }
}
@media (max-width: 640px) {
  .nav .nav__brand { display: none; }
  .nav { justify-content: center; padding-left: 8px; }
  /* spread the links + radio evenly across the full bar */
  .nav__links { flex: 1; justify-content: space-between; align-items: center; }
  .nav__links .radio-btn { margin: 0; }
}
@media (max-width: 900px) {
  .hero-studio { inset: 0; }
  .hero__stage--studio, .hero__stage--gradient { height: 420px; }
  .hero__cta { position: relative; z-index: 2; }
}


/* =========================================================
   v4 — gradients masked inside cards, About photo, hero picker
========================================================= */
.card-gradient { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.card-gradient[hidden] { display: none; }
.contact__card.has-gradient, .about__card.has-gradient { isolation: isolate; }
.contact__card.has-gradient { background: var(--bg); }
.about__card.has-gradient::before { display: none; }
.about__card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.about__text { position: relative; z-index: 1; }
.about__photo { position: relative; z-index: 1; margin: 0; justify-self: center; width: min(100%, 340px); rotate: 3deg; transition: rotate .6s var(--spring); }
.about__photo:hover { rotate: -2deg; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; border: 8px solid var(--paper); box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
.about__photo::before { content: ""; position: absolute; top: -12px; left: 50%; width: 82px; height: 26px; transform: translateX(-50%) rotate(-5deg); background: rgba(162,181,148,.7); z-index: 1; border-radius: 2px; }
.about__photo .hand-note { position: absolute; left: -18px; bottom: -34px; color: var(--bg); font-size: 28px; rotate: -6deg; }
@media (max-width: 860px) { .about__card { grid-template-columns: 1fr; } .about__photo { width: min(80%, 300px); margin-bottom: 30px; } }

.hero-picker { position: absolute; z-index: 30; top: 92px; right: var(--gutter); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px; border-radius: 999px; background: var(--ink); box-shadow: 0 16px 40px -20px rgba(0,0,0,.6); }
.hero-picker__label { color: var(--bg); opacity: .65; padding: 0 8px 0 10px; font-size: 12px; }
.hero-picker button { border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(234,229,226,.12); color: var(--bg); font: inherit; font-size: 12px; text-transform: capitalize; cursor: pointer; }
.hero-picker button.is-on { background: var(--orange); }
.contact__card.has-gradient::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(234,229,226,.62) 0%, rgba(234,229,226,.35) 42%, rgba(234,229,226,0) 70%); }
.contact__card.has-gradient .contact__copy, .contact__card.has-gradient .contact__stage { z-index: 1; }
@media (max-width: 860px) { .contact__card.has-gradient::after { background: linear-gradient(180deg, rgba(234,229,226,.6), rgba(234,229,226,.2) 60%, rgba(234,229,226,0)); } }

/* =========================================================
   v5 — original LV mark + animated hero illustration
========================================================= */
.logo-mini { perspective: 300px; display: grid; place-items: center; background: var(--paper); }

.contact__logo { display: grid; place-items: center; perspective: 1200px; touch-action: pan-y; user-select: none; }
.logo-spin { position: relative; width: min(86%, 440px); transform-style: preserve-3d; will-change: transform; }
.logo-spin img { width: 100%; display: block; pointer-events: none; filter: drop-shadow(0 24px 30px rgba(9,9,9,.22)); }
.logo-spin__shadow { position: absolute; left: 15%; right: 15%; bottom: -8%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(9,9,9,.25), transparent); transform: translateZ(-60px) rotateX(80deg); }

/* hero option: illustration */
.hero__stage--illustration { height: min(82vh, 720px); display: grid; place-items: center; }
.hero-illo { position: relative; height: 100%; aspect-ratio: 692 / 1032; max-width: 100%; cursor: pointer; animation: illo-in 1.1s var(--ease) both; }
.hero-illo svg { width: 100%; height: 100%; overflow: visible; display: block; transform: scaleX(-1); /* faces left, toward the copy */ }
@keyframes illo-in { from { opacity: 0; translate: 0 30px; } }
.doodle--ground { position: absolute; left: 4%; right: 4%; bottom: 0; width: 92%; stroke: var(--charcoal); stroke-width: 3; opacity: .55; }
.doodle--ground .speed { stroke-dasharray: 8 10; animation: speed-lines 1.2s linear infinite; }
@keyframes speed-lines { to { stroke-dashoffset: -36; } }
.hero-illo__hint { right: 0; bottom: -6px; }
.ill-bike * { transform-box: view-box; }
.ill-bike .head { transform-origin: 300px 150px; animation: look-around 7s ease-in-out infinite; }
.ill-bike .hair { animation: look-around 7s ease-in-out infinite, hair-sway 3.2s ease-in-out infinite; }
.ill-bike .body { transform-origin: 320px 690px; animation: breathe 3.6s ease-in-out infinite; }
.ill-bike .lace { transform-box: fill-box; transform-origin: 0% 100%; animation: lace 1.1s ease-in-out infinite; }
@keyframes walk-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes wheel-spin { to { rotate: 360deg; } }
@keyframes look-around { 0%, 100% { rotate: 0deg; } 30% { rotate: -2.2deg; } 60% { rotate: 1.4deg; } }
@keyframes hair-sway { 0%, 100% { translate: 0 0; } 50% { translate: -2.5px 1px; } }
@keyframes bag-swing { 0%, 100% { rotate: -2.4deg; } 50% { rotate: 2.4deg; } }
@keyframes breathe { 50% { scale: 1 1.008; } }
@keyframes lace { 50% { rotate: 14deg; } }
@keyframes ring-wobble { 30% { rotate: -1.2deg; } 60% { rotate: .8deg; } }
.bell-note { position: absolute; pointer-events: none; font-size: 30px; white-space: nowrap; transform: translate(-50%, -120%) rotate(-6deg); animation: bell-note 1.4s var(--ease) forwards; z-index: 3; }
@keyframes bell-note { from { opacity: 0; translate: 0 10px; scale: .7; } 20% { opacity: 1; scale: 1; } to { opacity: 0; translate: 0 -34px; } }
.bell-spark { position: absolute; width: 34px; pointer-events: none; z-index: 3; }
@media (max-width: 900px) { .hero__stage--illustration { height: 460px; } }
@media (prefers-reduced-motion: reduce) { .ill-bike * { animation: none !important; } }
.radio-li { position: relative; }
.now-playing { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -6px); display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--charcoal); color: var(--bg); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--spring); box-shadow: 0 16px 30px -18px rgba(0,0,0,.6); }
.now-playing__label { opacity: .6; }
.now-playing__next { border: 0; border-radius: 999px; padding: 5px 10px; background: rgba(234,229,226,.14); color: var(--bg); font: inherit; font-size: 12px; cursor: pointer; }
.now-playing.is-on, .radio-li.is-playing:hover .now-playing { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 640px) { .now-playing { left: auto; right: -40px; transform: translate(0, -6px); } .now-playing.is-on, .radio-li.is-playing:hover .now-playing { transform: none; } }
.ep-ask { width: 100%; resize: vertical; margin-bottom: 8px; font-family: var(--font); }


/* =========================================================
   v6 — dimensional logo, floating mini mark, full-bleed contact + footer
========================================================= */
/* extruded logo */
.logo3d { position: relative; transform-style: preserve-3d; will-change: transform; }
.logo3d img { display: block; width: 100%; pointer-events: none; user-select: none; }
.logo3d__layer { position: absolute; inset: 0; backface-visibility: visible; }
.logo3d__face { position: relative; transform: translateZ(0); filter: drop-shadow(0 1px 0 rgba(255,255,255,.18)); }
.logo3d__sheen { position: absolute; inset: 0; pointer-events: none; transform: translateZ(.5px);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mix-blend-mode: screen; opacity: .75;
  background: radial-gradient(circle at center, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 18%, transparent 36%) no-repeat; background-size: 260% 260%; background-position: 50% 40%; }
.logo-spin { width: min(86%, 440px); }
.logo-spin .logo3d { filter: drop-shadow(0 30px 34px rgba(9,9,9,.22)); }

/* mini mark: no container, floats on its own, 15% larger */
.logo-mini { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; width: 64px; height: 64px; top: 10px; perspective: 380px; animation: mini-float 4.2s ease-in-out infinite; }
.logo-mini .logo3d--mini { width: 100%; }
.logo-mini .logo3d--mini .logo3d__face { filter: drop-shadow(0 8px 10px rgba(9,9,9,.18)); }
.logo-mini:hover { transform: scale(1.08); }
@keyframes mini-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-width: 900px) { .logo-mini { width: 53px; height: 53px; top: 12px; left: 10px; } }

/* contact: full bleed, top corners rounded, footer baked in */
.contact { padding: 60px 0 0; }
.contact__card { border-radius: var(--radius) var(--radius) 0 0; padding-bottom: 0; grid-template-rows: 1fr auto; min-height: 640px; }
.contact__card > .contact__copy, .contact__card > .contact__stage { padding-top: clamp(20px, 4vw, 40px); }
.contact__footer { grid-column: 1 / -1; position: relative; z-index: 1; margin-top: clamp(40px, 6vw, 80px); padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.contact__footer a:hover { color: var(--ink); }
.contact .decor-layer { overflow: hidden; }

/* about: note sits just below the photo */
.about__photo { display: flex; flex-direction: column; align-items: center; }
.about__photo .hand-note { position: static; margin-top: 14px; rotate: -3deg; color: var(--bg); font-size: 28px; }

/* hero illustration 20% smaller, skills float around her */
.hero-illo { height: 80%; }
.hero--floating-chips .hero__copy .chips { display: none; }
.float-chip { position: absolute; z-index: 3; cursor: grab; touch-action: none; user-select: none; animation: chip-drift var(--dur, 8s) ease-in-out var(--delay, 0s) infinite; transition: scale .35s var(--spring); }
.float-chip.is-selected { z-index: 4; }
.hero__stage--illustration { position: relative; }
.float-chip__pill { position: relative; z-index: 1; display: block; border: 0; cursor: inherit; font: inherit; color: var(--ink); padding: 11px 18px; border-radius: 999px; background: var(--dust); font-weight: 500; font-size: 15px; white-space: nowrap; box-shadow: 0 14px 26px -20px rgba(9,9,9,.5); transition: background .3s, color .3s; }
.float-chip.is-selected .float-chip__pill { background: var(--teal); }
.float-chip__pill:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.float-chip:hover { scale: 1.06; }
/* project card for the selected skill: sits behind the illustration (illustration z 2, pills z 3) */
.skill-peek { position: absolute; z-index: 1; width: 210px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--paper); border: 4px solid var(--paper); box-shadow: 0 24px 40px -24px rgba(9,9,9,.55); translate: -50% 0; rotate: var(--tilt, -7deg); opacity: 0; pointer-events: none; transition: opacity .3s; }
.skill-peek.is-on { opacity: 1; pointer-events: auto; }
.skill-peek img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hero__stage--illustration .hero-illo { position: relative; z-index: 2; pointer-events: none; }
.hero__stage--illustration .hero-illo .rider { pointer-events: visiblePainted; }
@media (max-width: 900px) { .skill-peek { width: 150px; } }
.float-chip.is-dragging { cursor: grabbing; animation-play-state: paused; scale: 1.08; box-shadow: 0 26px 40px -24px rgba(9,9,9,.55); }
@keyframes chip-drift { 0%, 100% { translate: 0 0; } 25% { translate: var(--dx) calc(var(--dy) * -.6); } 50% { translate: calc(var(--dx) * -.4) var(--dy); } 75% { translate: calc(var(--dx) * -.9) calc(var(--dy) * .3); } }
@media (prefers-reduced-motion: reduce) { .float-chip, .logo-mini { animation: none; } }
@media (max-width: 860px) { .contact__card { grid-template-rows: none; min-height: 0; } }


/* =========================================================
   v7 — Selected work: drag-driven infinite loop (no scroll-jacking)
========================================================= */
.work__sticky { position: relative; height: min(100svh, 920px); min-height: 640px; cursor: grab; user-select: none; outline: none; }
.work__sticky.is-dragging { cursor: grabbing; }
.work__sticky.is-dragging .file { transition: none; }
.work__sticky .file__inner { transition: transform .5s var(--spring), box-shadow .4s; }
.work__sticky.is-dragging .file:hover .file__inner { transform: none; }
.work__head .work__hint { font-family: var(--hand); font-size: 22px; color: var(--ink-soft); margin: 0 0 0 14px; rotate: -3deg; display: inline-block; }
@media (max-width: 760px) { .work__sticky { height: auto; min-height: 0; cursor: auto; } }

/* keep the header row clear of the folder stack */
.work__head { z-index: 6; }
.work__controls .pill { background: var(--paper); backdrop-filter: none; box-shadow: 0 6px 18px -12px rgba(9,9,9,.35); }
.stack .file { top: 62%; }

.logo-mini .logo3d img { width: 100%; height: auto; }


/* =========================================================
   v8 — typewriter (Archive manifesto logic), caret in Muted Teal
========================================================= */
.tw-word { display: inline-block; white-space: nowrap; }
.tw .ch { display: inline-block; opacity: 0; }
.tw .ch.on { opacity: 1; }
.tw-caret { --cw: max(2px, .06em); display: inline-block; width: var(--cw); height: 1em; margin-left: 2px; margin-right: calc(-2px - var(--cw)); border-radius: 2px; background: var(--teal); vertical-align: -.16em; animation: twblink 1s linear infinite; }
.tw-caret.is-typing { animation: none; opacity: 1; }
.hero__title .tw-caret { --cw: max(4px, .055em); height: .82em; vertical-align: -.04em; margin-left: .04em; }
@keyframes twblink { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tw-caret { animation: none; } }

/* "keep scrolling" cue at the bottom of the hero */
.hero { position: relative; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 4; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-soft); font-size: 13px; font-weight: 500; letter-spacing: .02em; transition: opacity .4s, color .25s; }
.scroll-cue:hover { color: var(--ink); }
.scroll-cue__arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 15px; line-height: 1; animation: cue-bounce 1.6s cubic-bezier(.34,1.56,.64,1) infinite; }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; }
@keyframes cue-bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 7px; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue__arrow { animation: none; } }
@media (max-width: 900px) { .scroll-cue { bottom: 8px; } }

/* project images: no placeholder fill behind them. Many artboards already have rounded,
   transparent corners baked in; a grey fill behind showed through and looked like clipped corners */
.b-gallery img, .b-figure img, .b-figure--tall img, .p-cover, .p-cover img, .p-next img { background: none !important; }
.p-cover { overflow: visible; }
/* "Next project" banner: artwork sits behind the text */
.p-next { isolation: isolate; }
.p-next img { z-index: 0; }
.p-next small, .p-next strong { position: relative; z-index: 1; }


/* =========================================================
   v9 — page end: gradient glow that fades up into the page, footer on top
========================================================= */
.site-end { position: relative; margin-top: 40px; min-height: clamp(300px, 36vw, 480px); display: flex; align-items: flex-end; overflow: hidden; }
.site-end__gl { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 75%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 30%, #000 75%); }
.site-end__gl[hidden] { display: none; }
.site-end__footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.site-end__footer .footer__top { text-decoration: none; }
.site-end__footer .footer__top:hover { color: var(--ink); }
.about__actions { margin-top: 26px; position: relative; }
.btn--light { border-color: rgba(234,229,226,.85); color: var(--bg); }
.btn--light:hover { background: var(--bg); color: var(--charcoal); }

/* contact card without the logo: copy spans the card */
.contact__card { grid-template-columns: 1fr; }

.eyebrow--multi { gap: 18px; flex-wrap: wrap; }
.eyebrow--multi::before { display: none; }
.eyebrow__item { display: inline-flex; align-items: center; gap: .6em; }
.eyebrow__item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* contact headline: two lines */
.contact__heading { max-width: none; font-size: clamp(38px, 6.4vw, 104px); text-wrap: balance; }
.hero__copy > .eyebrow { display: flex; width: fit-content; }

/* v57: raw galleries keep baked-in outlines; Archive component specimens */
.b-gallery--raw img { border-radius: 0; overflow: visible; }
.b-gallery--raw figure:hover img { transform: none; }
.b-comps { display: grid; gap: 28px; }
.b-comps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.b-comp { margin: 0; display: grid; gap: 14px; }
.b-comp--wide { grid-column: 1 / -1; }
.b-comp__frame { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--charcoal); box-shadow: 0 18px 40px -24px rgba(9,9,9,.45); }
.b-comp--wide .b-comp__frame { aspect-ratio: 16 / 8; }
.b-comp__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.b-comp__note { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--teal); max-width: 60ch; }
.b-comp__title { font-family: "Caveat", cursive; font-size: 1.6rem; line-height: 1.1; color: var(--charcoal); margin: 0; }
.b-comp__body { margin: 0; font-size: .95rem; opacity: .8; }
.b-comp__open { font-size: .85rem; color: var(--charcoal); width: fit-content; }
@media (max-width: 760px) { .b-comps__grid { grid-template-columns: minmax(0, 1fr); } .b-comp--wide .b-comp__frame { aspect-ratio: 4 / 3; } }

/* v61: gallery column setting (edit mode: Columns 1/2/3) */
.b-gallery--c1 { columns: 1; }
.b-gallery--c2 { columns: 2 280px; }
.b-gallery--c3 { columns: 3 280px; }
.edit-cols { display: inline-flex; gap: 6px; align-items: center; margin: 6px 0 0 10px; font-size: 13px; }
.edit-cols b { font-weight: 600; margin-right: 2px; }
.edit-cols .pill { min-width: 34px; padding: 4px 10px; }
.edit-cols .pill.is-on { background: var(--charcoal); color: var(--bg); }
body:not(.is-editing) .edit-cols { display: none; }

/* v64: 16px corners on every content image */
.p-blocks img, .p-blocks video { border-radius: 16px; }
.b-gallery--raw img, .p-cover img { border-radius: 0; }
.p-cover { margin-top: 0; }
.p-cover img { will-change: transform; }
.b-gallery:not(:has([data-zoom])) figure { cursor: default; }
.b-gallery:not(:has([data-zoom])) figure:hover img { transform: none; }
.b-youtube { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.b-youtube iframe { width: 100%; height: 100%; border: 0; display: block; }
.p-cover--zoom { overflow: hidden !important; border-radius: var(--radius-sm); }
.p-cover--zoom img { border-radius: 0; transform: scale(1.22); transform-origin: 50% 40%; transition: transform .25s linear; will-change: transform; }

/* v69: testimonial carousel. Snap points come from JS (snapAt); neighbours peek by less than the card padding,
   so only a sliver of card edge shows, never text. The track's 24px padding is part of the visible scrollport. */
.quotes__track { --peek: 20px; --gap: 14px; --k: 3; gap: var(--gap); scroll-behavior: auto; scroll-padding-inline: calc(var(--peek) + var(--gap)); }
.quote { flex: 0 0 calc((100% + 48px - 2 * var(--peek) - (var(--k) + 1) * var(--gap)) / var(--k)); padding-inline: 36px; }
@media (max-width: 900px) { .quotes__track { --k: 2; } .quote { flex-basis: calc((100% + 48px - 2 * var(--peek) - 3 * var(--gap)) / 2); } }
@media (max-width: 640px) { .quotes__track { --k: 1; --peek: 18px; } .quote { flex-basis: calc(100% + 48px - 2 * var(--peek) - 2 * var(--gap)); padding-inline: 28px; } }
.quotes__arrow { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.quotes__arrow:active { transform: scale(.94); }

/* v70: Portfolio highlights is scroll-led again on desktop (JS sets .work height; the stack pins) */
@media (min-width: 761px) {
  .work__sticky { position: sticky; top: 0; height: 100svh; min-height: 0; cursor: auto; user-select: auto; }
}
@media (min-width: 1024px) { .hero__lede { max-width: none; width: min(50ch, 62vw); position: relative; z-index: 2; } }
.hero__title [data-bind="hero.title"] { line-height: inherit !important; } /* the H1 preset sets its own; the hero headline follows .hero__title */
/* hero breathing room: clear of the nav, and the headline's descenders clear of the paragraph */
.hero { padding-top: 160px; }
@media (max-width: 900px) { .hero { padding-top: 130px; } }
.hero__title { margin-bottom: .22em; }

/* v79: first fold fits headline, paragraph and both CTAs on desktop; illustration sits a little higher */
@media (min-width: 901px) {
  .hero { padding-top: clamp(104px, 15vh, 136px); }
  .hero__title { font-size: clamp(56px, min(10.5vw, 13vh), 168px); }
  .hero__stage { translate: 0 -64px; }
}

/* v81: device mockups for product work */
.b-device { margin: 0; display: grid; gap: 14px; }
.ipad { position: relative; margin-inline: auto; width: 100%; max-width: 1080px; padding: clamp(12px, 2.2vw, 26px); border-radius: clamp(22px, 3.4vw, 44px); background: linear-gradient(145deg, #2b2b2d, #0e0e0f 60%, #232325); box-shadow: 0 0 0 1px #4a4a4d inset, 0 2px 0 1px #5d5d60 inset, 0 60px 90px -50px rgba(9,9,9,.6), 0 24px 40px -30px rgba(9,9,9,.5); }
.ipad::before { content: ""; position: absolute; left: 50%; top: calc(clamp(12px, 2.2vw, 26px) / 2 - 3px); width: 6px; height: 6px; border-radius: 50%; background: #1d2a33; box-shadow: 0 0 0 1px #000; translate: -50% 0; }
.ipad__screen { position: relative; aspect-ratio: 1440 / 1024; border-radius: clamp(8px, 1.2vw, 16px); overflow: hidden; background: #f7f5f3; }
.ipad__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.b-laptops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.laptop { margin: 0; display: grid; justify-items: center; gap: 0; }
.laptop--wide { grid-column: 1 / -1; }
.laptop__lid { width: 88%; padding: 2.2% 2.2% 3%; border-radius: 14px 14px 4px 4px; background: #111; box-shadow: 0 0 0 1px #3b3b3d inset, 0 30px 50px -40px rgba(9,9,9,.6); }
.laptop__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #fff; }
.laptop__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; outline: none; }
.laptop__scroll img { display: block; width: 100%; height: auto; border-radius: 0 !important; }
.laptop__hint { position: absolute; right: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(9,9,9,.72); color: #fff; font-size: 12px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.laptop.is-tall .laptop__hint { opacity: 1; }
.laptop.is-scrolled .laptop__hint { opacity: 0; }
.laptop__base { width: 100%; height: clamp(8px, 1.3vw, 14px); border-radius: 0 0 14px 14px / 0 0 10px 10px; background: linear-gradient(#d9d9dc, #a9a9ad); box-shadow: 0 18px 30px -16px rgba(9,9,9,.45); position: relative; }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 45%; border-radius: 0 0 8px 8px; background: #9a9a9e; translate: -50% 0; }
.laptop figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .b-laptops { grid-template-columns: 1fr; } }

.b-resizer { display: grid; gap: 14px; }
.rz__stage { position: relative; padding-right: 22px; }
.rz__win { position: relative; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 80px -50px rgba(9,9,9,.55); }
.rz__view { position: relative; height: 600px; overflow: hidden; }
.rz__view iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.rz__stage.is-dragging iframe { pointer-events: none; }
.rz__grip { position: absolute; top: 50%; left: 0; translate: 0 -50%; width: 18px; height: 72px; border: 0; border-radius: 999px; background: var(--ink); cursor: ew-resize; display: grid; place-items: center; touch-action: none; transition: scale .2s; }
.rz__grip i { width: 2px; height: 26px; border-radius: 2px; background: var(--bg); box-shadow: 4px 0 0 var(--bg), -4px 0 0 var(--bg); }
.rz__grip:hover, .rz__stage.is-dragging .rz__grip { scale: 1.12; }
.rz__w { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-soft); }
.laptop__page { position: relative; }
.laptop__hot { position: absolute; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 6px; }
.laptop__hot:not(.is-on)::after { content: ""; position: absolute; inset: 12% 8%; border-radius: 6px; box-shadow: 0 0 0 2px var(--orange); animation: hotPulse 1.6s ease-in-out infinite; }
.laptop__hot:hover:not(.is-on)::after { background: rgba(229, 61, 0, .08); }
@keyframes hotPulse { 50% { box-shadow: 0 0 0 5px rgba(229, 61, 0, .25); } }
.laptop__seg { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .laptop__hot::after { animation: none; } }
.b-figure--raw img { border-radius: 0 !important; background: none !important; }
/* brand-refresh collage: its rounded card is baked onto white; clip to that 92px (of 2400 x 1304) corner */
.b-figure--raw img[src*="brand-refresh-hero"] { border-radius: 3.95% / 7.3% !important; }

/* v85: case-study story block */
.b-story { display: grid; gap: clamp(40px, 6vw, 72px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 20px clamp(24px, 4vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.story__label { display: grid; gap: 10px; align-content: start; position: sticky; top: 96px; }
.story__num { font-family: var(--hand); font-size: 28px; line-height: 1; color: var(--orange); }
.story__title { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.story__body { display: grid; gap: 20px; min-width: 0; }
.story__p { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.story__quote { margin: 4px 0; padding: 28px clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--charcoal); color: var(--bg); font-size: clamp(28px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.story__quote span::before { content: "“"; } .story__quote span::after { content: "”"; }
.story__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.story__card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--radius-sm); background: var(--dust); }
.story__cardnum { font-size: 13px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.story__card b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.story__card span:last-child { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.story__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.story__stats li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--teal); font-weight: 600; font-size: 15px; }
.story__up { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story__label { position: static; } .story__cards { grid-template-columns: 1fr; } }

/* v87: FigJam-style type tester */
.b-fontboard { display: grid; gap: 22px; }
.b-fontboard__head { display: grid; gap: 8px; max-width: 62ch; }
.b-fontboard__title { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.b-fontboard__head .muted { margin: 0; }
.fb { --fb-bg: #f5f5f4; position: relative; height: clamp(460px, 62vw, 640px); border-radius: var(--radius); overflow: hidden; cursor: text; outline: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle, #d6d3d0 1.1px, transparent 1.5px) 0 0 / 22px 22px, var(--fb-bg); box-shadow: inset 0 0 0 1px rgba(9,9,9,.08), 0 40px 70px -50px rgba(9,9,9,.5); touch-action: manipulation; }
.fb:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.fb__input { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.fb__top { position: absolute; z-index: 6; left: 14px; right: 14px; top: 14px; display: flex; align-items: center; gap: 10px; pointer-events: auto; cursor: default; }
.fb__file { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); font-size: 13px; }
.fb__file span:last-child { color: var(--ink-soft); }
.fb__logo { width: 18px; height: 18px; border-radius: 5px; background: conic-gradient(#f24e1e 0 25%, #a259ff 0 50%, #1abcfe 0 75%, #0acf83 0); }
.fb__crew { margin-left: auto; display: flex; }
.fb__ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; border: 2px solid #fff; margin-left: -8px; }
.fb__live { padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; }
.fb__live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #0acf83; margin-right: 7px; vertical-align: 1px; animation: fbBlink 1.6s infinite; }
@keyframes fbBlink { 50% { opacity: .3; } }
.fb__sticky { position: absolute; z-index: 1; width: clamp(120px, 15vw, 170px); aspect-ratio: 1; padding: 16px; display: flex; align-items: flex-end; box-shadow: 0 1px 1px rgba(0,0,0,.06), 0 12px 24px -12px rgba(0,0,0,.35); font: 400 clamp(19px, 2vw, 26px)/1.05 "LV Hand", var(--hand); color: #1d1d1b; pointer-events: none; }
.fb__sticky--yellow { background: #ffe57a; } .fb__sticky--green { background: #b5ecc3; } .fb__sticky--pink { background: #ffc4dc; } .fb__sticky--blue { background: #bfe0ff; }
.fb__stamp { position: absolute; z-index: 2; pointer-events: none; display: grid; place-items: center; }
.fb__stamp--yes { width: 74px; height: 74px; border-radius: 50%; background: #089b5e; color: #fff; font: 400 26px/1 "LV Hand", var(--hand); rotate: -12deg; box-shadow: 0 0 0 4px #fff, 0 10px 20px -10px rgba(0,0,0,.4); }
.fb__stamp--star { width: 58px; height: 58px; background: #e2bf36; clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); rotate: 10deg; }
.fb__stamp--heart { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #e53d00; font-size: 28px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.fb__prompt { position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); font-weight: 600; font-size: 15px; pointer-events: none; transition: opacity .35s, scale .35s; animation: fbFloat 2.6s ease-in-out infinite; }
.fb__prompt-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #0d99ff; color: #fff; font-weight: 700; }
.fb.is-typing .fb__prompt { opacity: 0; scale: .9; animation: none; }
@keyframes fbFloat { 50% { translate: -50% calc(-50% - 6px); } }
.fb__tools { position: absolute; z-index: 6; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 4px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); cursor: default; }
.fb__tool { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.fb__tool svg { width: 20px; height: 20px; fill: none; stroke: #333; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fb__tool[data-t="cursor"] svg path { fill: #333; }
.fb__tool.is-on { background: #0d99ff; } .fb__tool.is-on svg { stroke: #fff; }
.fb__text { position: absolute; z-index: 4; max-width: 70%; padding: 2px 6px; font: 400 clamp(30px, 4.4vw, 58px)/1.05 "LV Hand", var(--hand); color: #111; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; transition: opacity .3s, scale .3s; }
.fb__text.is-active { outline: 1.5px solid #0d99ff; outline-offset: 4px; border-radius: 2px; }
.fb__caret { display: none; width: 2px; height: .9em; margin-left: 2px; vertical-align: -.08em; background: #0d99ff; animation: fbBlink 1s steps(2) infinite; }
.fb__text.is-active .fb__caret, .fb__text.is-untyping .fb__caret, .fb__text.is-ghost .fb__caret { display: inline-block; }
.fb__text.is-ghost { color: color-mix(in srgb, var(--who) 70%, #111); font-size: clamp(24px, 3vw, 40px); outline: 1.5px solid var(--who); outline-offset: 4px; }
.fb__text.is-ghost .fb__caret, .fb__text.is-untyping .fb__caret { background: var(--who, #0d99ff); }
.fb__tag { position: absolute; left: -2px; top: -26px; padding: 2px 7px; border-radius: 6px 6px 6px 0; background: var(--who); color: #fff; font: 600 11px/1.4 var(--font, system-ui), sans-serif; }
.fb__text.is-gone { opacity: 0; scale: .96; }
.fb__cursor { position: absolute; z-index: 5; pointer-events: none; display: flex; align-items: flex-start; gap: 2px; will-change: left, top; }
.fb__cursor b { margin-top: 14px; padding: 3px 8px; border-radius: 999px; background: var(--who); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .fb__live, .fb__file span:last-child { display: none; } .fb__stamp--star, .fb__stamp--heart { display: none; } }
@media (prefers-reduced-motion: reduce) { .fb__prompt, .fb__live::before { animation: none; } }

/* v88: iPhone video mockup + horizontal photo carousel */
.b-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius); background: var(--dust); }
.iphone { position: relative; width: clamp(220px, 26vw, 320px); aspect-ratio: 9 / 19.5; padding: 3.2%; border-radius: 15% / 7%; background: linear-gradient(150deg, #3a3a3d, #0d0d0e 45%, #2a2a2c); box-shadow: 0 0 0 1.5px #55555a inset, 0 0 0 4px #1b1b1d inset, 0 50px 80px -45px rgba(9,9,9,.6), 0 20px 30px -24px rgba(9,9,9,.5); rotate: -3deg; }
.iphone__screen { position: relative; width: 100%; height: 100%; border-radius: 12.5% / 5.8%; overflow: hidden; background: #000; }
.iphone__screen { background: #f7f6f1; display: grid; place-items: center; padding: 14% 4% 6%; } /* the 9:16 video's own paper colour; padding keeps the full frame (and its wide type) clear of the island and edges */
.iphone__screen video { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0 !important; }
.iphone__island { position: absolute; left: 50%; top: 5.2%; width: 30%; height: 3.4%; translate: -50% 0; border-radius: 999px; background: #000; }
.b-phone__copy { display: grid; gap: 14px; max-width: 46ch; }
.b-phone__h { margin: 0; font-size: clamp(30px, 4vw, 56px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; text-wrap: balance; }
.b-phone__p { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 760px) { .b-phone { grid-template-columns: 1fr; justify-items: center; text-align: center; } .iphone { rotate: 0deg; } }

.b-carousel { display: grid; gap: 18px; }
.b-carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.b-carousel__bar .quotes__nav { margin: 0; }
.b-carousel__pre { margin: 0; font-size: clamp(24px, 2.8vw, 38px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; text-wrap: balance; }
.b-carousel__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; cursor: grab; outline: none; overscroll-behavior-x: contain; }
.b-carousel__track::-webkit-scrollbar { display: none; }
.b-carousel__track.is-grab { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.b-carousel__item { margin: 0; flex: none; height: clamp(320px, 38vw, 520px); scroll-snap-align: start; }
.b-carousel__item img { height: 100%; width: auto; display: block; border-radius: var(--radius-sm); pointer-events: none; }
.b-text:not(:has(h2)) p { grid-column: 1 / -1; max-width: 70ch; } /* no heading: the paragraph takes the full row */

/* v91: story extras + gallery wall */
.story__kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.story__metrics { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.story__metrics li { display: grid; gap: 6px; padding: 20px; border-radius: var(--radius-sm); background: var(--charcoal); color: var(--bg); }
.story__metrics b { font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--teal); }
.story__metrics span { font-size: 14px; line-height: 1.35; opacity: .85; }
.story__bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story__bullets li { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--dust); font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.story__bullets li b { font-size: 16px; font-weight: 600; color: var(--ink); }
.story__people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.story__people li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.story__people b { font-weight: 600; font-size: 16px; }
.story__people span { font-size: 14px; color: var(--ink-soft); }
.b-wall { display: grid; gap: 22px; }
.b-wall__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.b-wall__col { display: grid; gap: clamp(20px, 3vw, 40px); }
.b-wall__col:nth-child(2) { margin-top: clamp(60px, 10vw, 160px); }
.b-wall__item { margin: 0; opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease), translate 1s var(--ease); }
.b-wall__item.is-in { opacity: 1; translate: 0 0; }
.b-wall__item img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
@media (max-width: 700px) { .b-wall__grid { grid-template-columns: 1fr; } .b-wall__col:nth-child(2) { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .b-wall__item { opacity: 1; translate: none; transition: none; } }

/* v92: hero film + side-by-side proposal slides */
.hv { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); aspect-ratio: 16 / 9; }
.hv video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; }
.hv__ui { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s; }
.hv:hover .hv__ui, .hv:focus-within .hv__ui { opacity: 1; translate: 0 0; }
@media (hover: none) { .hv__ui { opacity: .9; translate: 0 0; } }
.hv__btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(9,9,9,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.hv__btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hv__btn:hover { background: rgba(9,9,9,.8); }
.b-compare { display: grid; gap: 16px; }
.b-compare__head { display: grid; gap: 12px; max-width: 62ch; margin-bottom: 8px; }
.cmp__labels, .cmp__slide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.cmp__label { justify-self: start; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cmp__label--0 { background: #a6dbdb; color: #0f2e21; } .cmp__label--1 { background: #e2ebc3; color: #14300a; }
.cmp__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; cursor: grab; overscroll-behavior-x: contain; }
.cmp__track::-webkit-scrollbar { display: none; }
.cmp__track.is-grab { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.cmp__slide { flex: 0 0 100%; scroll-snap-align: start; }
.cmp__side { margin: 0; }
.cmp__side img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -30px rgba(9,9,9,.45); pointer-events: none; }
.cmp__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.cmp__step { display: flex; align-items: baseline; gap: 12px; }
.cmp__count { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-soft); }
.cmp__name { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.03em; }
.cmp__dots { display: flex; gap: 6px; }
.cmp__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.cmp__dots button.is-on { width: 24px; background: var(--ink); }
.cmp__bar .quotes__nav { margin: 0; }
@media (max-width: 640px) { .cmp__labels, .cmp__slide { grid-template-columns: 1fr; } .cmp__labels { display: none; } .cmp__dots { display: none; } }
.p-next img[src*="archive-3d"], .p-next img[src*="next-banner"] { border-radius: 0; } /* transparent renders: no card corners */
.b-wall__item:not(.is-loaded) { min-height: 50vh; }
/* phone-screen mockups in the wall: narrower so they don't tower over the photos; their frames are transparent PNGs */
.b-wall__item img[src*="ltw/mock-4"], .b-wall__item img[src*="ltw/mock-5"] { width: 40%; margin-inline: auto; border-radius: 0; }
.p-cover img[src*="ltw/hero"] { border-radius: var(--radius-sm) !important; } /* match the meta boxes above */
@media (min-width: 1024px) { .hero__lede { font-size: clamp(18px, 1.75vw, 25px); width: 34.5em; max-width: 62vw; } } /* width in em keeps the same two-line wrap at every desktop size */
.eyebrow--light::before { background: var(--paper); } /* light dot on dark cards, for contrast */
.eyebrow--nodot::before { display: none; }
