/* =========================================================
   GFXSphere — portfolio
   ========================================================= */
:root {
  --ink: #0c0b0a;
  --ink-2: #1a1816;
  --cream: #f2efe9;
  --cream-2: #e6e1d8;
  --muted: #8a857d;
  --accent: #ff4d2e;
  --line-dark: rgba(242, 239, 233, 0.14);
  --line-light: rgba(12, 11, 10, 0.12);
  --pad: clamp(18px, 3vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Host Grotesk", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --display: "Syne", "Host Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: 100%; padding-inline: var(--pad); max-width: 1600px; margin-inline: auto; }
.light { background: var(--cream); color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.01em;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.btn:hover { transform: translateY(-1px); }
.btn-glass {
  background: rgba(120, 116, 110, 0.35);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
}
.btn-glass:hover { background: rgba(160, 156, 150, 0.45); }
.btn-outline { border: 1px solid currentColor; border-color: var(--line-light); background: rgba(255,255,255,0.3); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--accent); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
body.menu-open { overflow: hidden; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { border-top: 1px solid var(--line-dark); overflow: hidden; }
.menu li a {
  display: flex; align-items: baseline; gap: 20px;
  font-size: clamp(40px, 7vw, 96px); line-height: 1.05; letter-spacing: -0.04em;
  padding: 6px 0; transform: translateY(100%); transition: transform 0.8s var(--ease), color .3s;
}
.menu li a span { font-size: 13px; letter-spacing: 0; color: var(--muted); }
.menu li a:hover { color: var(--accent); }
body.menu-open .menu li a { transform: none; }
body.menu-open .menu li:nth-child(2) a { transition-delay: .05s; }
body.menu-open .menu li:nth-child(3) a { transition-delay: .1s; }
body.menu-open .menu li:nth-child(4) a { transition-delay: .15s; }
body.menu-open .menu li:nth-child(5) a { transition-delay: .2s; }
body.menu-open .menu li:nth-child(6) a { transition-delay: .25s; }
.menu-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.menu-foot .socials { display: flex; gap: 20px; }
.menu-foot a:hover { color: var(--cream); }

/* ---------- Shared keyframes ---------- */
@keyframes rise { to { transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- Studio ---------- */
.studio { padding: clamp(80px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); }
.studio-grid { display: grid; grid-template-columns: minmax(160px, 1fr) 2.6fr; gap: clamp(24px, 6vw, 110px); margin-top: 48px; align-items: start; }
.founder-img {
  aspect-ratio: 4/5; border-radius: 4px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #f5c9b9 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #1d1a18 0 45%, transparent 46%), linear-gradient(160deg, #e6b8a6, #c8826b);
  font-size: 13px; color: transparent; max-width: 220px;
}
.founder-cap { font-size: 13px; color: var(--muted); margin-top: 12px; }
.studio-lead { font-size: clamp(24px, 3.1vw, 48px); line-height: 1.15; letter-spacing: -0.025em; }
.reveal-words .w { opacity: .18; transition: opacity .4s; }
.reveal-words .w.on { opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-top: clamp(80px, 10vw, 160px); }
.stat { border-top: 1px solid var(--line-light); padding-top: 20px; }
.stat-num { font-size: clamp(64px, 9vw, 150px); letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 16px; font-size: 14px; color: #4a4642; }

/* ---------- Services ---------- */
.services { padding-bottom: clamp(60px, 8vw, 120px); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 100px); }
.services-list .eyebrow { padding-top: 40px; }
.service { min-height: 92vh; padding: 12vh 0 8vh; display: flex; flex-direction: column; }
.svc-count { font-size: 13px; color: var(--muted); }
.service h2 { font-size: clamp(52px, 7vw, 110px); letter-spacing: -0.055em; line-height: 0.95; margin: 14px 0 32px; }
.service dl { margin: 0; border-top: 1px solid var(--line-light); }
.service dl div { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.service dt { font-size: 13px; color: var(--muted); }
.service dd { margin: 0; font-size: 15px; }
.svc-desc { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; margin-top: 28px; max-width: 34ch; }
.svc-foot { margin-top: auto; padding-top: 40px; display: flex; justify-content: space-between; align-items: center; }
.price { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.03em; }

.services-media { position: sticky; top: 0; height: 100vh; padding: 12vh 0 6vh; }
.svc-visual {
  position: absolute; inset: 12vh 0 6vh; border-radius: 6px; overflow: hidden;
  opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.svc-visual.active { opacity: 1; transform: none; }

/* visual 0: brand cards */
.v0 { background: radial-gradient(circle at 70% 20%, #3a2f28, #141110 70%); }
.v-card { position: absolute; width: 46%; aspect-ratio: 1.6; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.v-card.a { left: 12%; top: 20%; background: #0c0b0a; transform: rotate(-12deg); border: 1px solid #2b2724; }
.v-card.a::after { content: "Gs"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); font-size: 2.4vw; letter-spacing: -0.05em; }
.v-card.b { left: 34%; top: 40%; background: linear-gradient(135deg, #f6f1e8, #ddd3c3); transform: rotate(8deg); border-bottom: 4px solid #c9a46b; }
.v-card.c { left: 18%; top: 62%; width: 30%; background: var(--accent); transform: rotate(-4deg); }
/* visual 1: social posts */
.v1 { background: linear-gradient(160deg, #1b2b4a, #0b1326); display: grid; place-items: center; }
.v-post { position: absolute; width: 38%; aspect-ratio: 4/5; border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.v-post.p1 { transform: translateX(-60%) rotate(-10deg); background: linear-gradient(180deg, #ffd34d 0 55%, #0c0b0a 55%); }
.v-post.p2 { z-index: 2; background: radial-gradient(circle at 50% 40%, #fff 0 18%, var(--accent) 19% 100%); }
.v-post.p3 { transform: translateX(60%) rotate(10deg); background: repeating-linear-gradient(0deg, #6fd3a8 0 14%, #0f5b42 14% 28%); }
/* visual 2: browser */
.v2 { background: radial-gradient(circle at 30% 80%, #4a3524, #120e0b 70%); display: grid; place-items: center; }
.v-browser { width: 78%; aspect-ratio: 1.4; background: #f2efe9; border-radius: 10px; padding: 14px; position: relative; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.v-browser > i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d4cec4; margin-right: 5px; }
.v-hero { margin-top: 14px; height: 52%; border-radius: 6px; background: linear-gradient(120deg, #0c0b0a 0 55%, var(--accent) 55%); }
.v-row { margin-top: 12px; height: 8%; border-radius: 4px; background: #ddd6ca; }
.v-row.short { width: 60%; }
/* visual 3: 3D */
.v3 { background: radial-gradient(circle at 50% 50%, #2a1010, #0c0b0a 70%); }
.v-torus { position: absolute; left: 50%; top: 50%; width: 60%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
  border: 38px solid transparent; border-top-color: var(--accent); border-right-color: #ffb199; animation: spin 8s linear infinite;
  filter: drop-shadow(0 20px 30px rgba(255,77,46,.4)); }
.v-ball { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #e9dccb 40%, #8c7a66); animation: float 5s ease-in-out infinite; }
.v-ball.b1 { width: 14%; aspect-ratio: 1; left: 18%; top: 22%; }
.v-ball.b2 { width: 9%; aspect-ratio: 1; right: 20%; top: 60%; animation-delay: -2s; background: radial-gradient(circle at 30% 30%, #ffc3b3, var(--accent) 50%, #6b1405); }
.v-ball.b3 { width: 6%; aspect-ratio: 1; left: 30%; bottom: 16%; animation-delay: -3s; }

/* ---------- Clients ---------- */
.clients { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink); }
.marquee { overflow: hidden; margin-top: 40px; }
.marquee-inner { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; font-size: clamp(32px, 4vw, 60px); letter-spacing: -0.03em; white-space: nowrap; }
.marquee-inner em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: rgba(242,239,233,.75); }
.marquee-inner b { color: var(--accent); font-size: .4em; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Quotes ---------- */
.quotes { padding: clamp(60px, 8vw, 120px) 0; }
.quote { display: grid; grid-template-columns: 1fr 3fr; gap: var(--pad); padding: clamp(60px, 10vh, 120px) 0; align-items: start; }
.quote .eyebrow { margin-top: 1.2em; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; }
.quote footer { margin-top: 32px; font-size: 14px; display: grid; gap: 2px; }
.quote footer span { color: var(--muted); font-size: 13px; }

/* ---------- Notes ---------- */
.notes { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); border-top: 1px solid var(--line-light); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); }
.note { display: flex; flex-direction: column; gap: 14px; }
.note-img { aspect-ratio: 4/3; border-radius: 6px; transition: transform .8s var(--ease); overflow: hidden; }
.note:hover .note-img { transform: scale(.97); }
.note-img.n1 { background: radial-gradient(circle at 60% 40%, var(--accent) 0 22%, transparent 23%), linear-gradient(135deg, #1a1816, #3a332d); }
.note-img.n2 { background: repeating-linear-gradient(90deg, #f2c84b 0 25%, #e2492b 25% 50%, #1d33c9 50% 75%, #0c0b0a 75% 100%); }
.note-img.n3 { background: conic-gradient(from 90deg at 50% 50%, #c06bff, #ff4d8d, #1c0f24, #c06bff); }
.note time { font-size: 13px; color: var(--muted); }
.note h4 { font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -0.025em; }
.note-link { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-light); }
.note:hover .note-link { text-decoration-color: currentColor; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line-light); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 100px; }
.faq-title { font-size: clamp(48px, 6vw, 96px); letter-spacing: -0.055em; line-height: .95; margin: 20px 0 32px; }
.faq-list details { border-top: 1px solid var(--line-light); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-light); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-light); font-size: 20px; transition: transform .4s var(--ease), background .3s, color .3s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--cream); }
.faq-list details p { padding: 0 60px 28px 0; color: #4a4642; font-size: 16px; max-width: 60ch; }

/* ---------- Contact / Footer ---------- */
.contact { background: var(--ink); padding-top: clamp(80px, 12vw, 180px); }
.contact-big {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.15em; margin-top: 30px;
  font-size: clamp(56px, 11vw, 200px); letter-spacing: -0.065em; line-height: .9;
}
.contact-orb {
  width: .8em; height: .8em; border-radius: 50%; margin-inline: .08em;
  background: var(--accent);
  transition: transform .8s var(--ease);
}
.contact-big:hover .contact-orb { transform: rotate(180deg) scale(1.1); }
.contact-big:hover span:not(.contact-orb) { color: var(--accent); }
.contact-big span { transition: color .4s; }
.contact-mail { display: inline-block; margin-top: 36px; font-size: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--line-dark); padding-bottom: 4px; }
.contact-mail:hover { border-color: var(--cream); }

.footer { margin-top: clamp(80px, 12vw, 160px); padding-bottom: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); border-top: 1px solid var(--line-dark); padding-top: 28px; font-size: 15px; line-height: 1.7; }
.footer-cols a:hover { color: var(--accent); }
.f-label { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.footer-word { font-family: var(--display); font-weight: 800; font-size: 14vw; letter-spacing: -0.04em; line-height: .85; margin: 60px 0 20px; white-space: nowrap; color: var(--ink-2); -webkit-text-stroke: 1px rgba(242,239,233,.14); }
.footer-word [data-fit] { display: inline-block; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Reveal ---------- */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .founder-img { max-width: 140px; }
  .stats, .notes-grid, .footer-cols { grid-template-columns: 1fr; }
  .stats { gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-media { display: none; }
  .service { min-height: auto; padding: 60px 0; }
  .services-list .eyebrow { position: static; }
  .quote, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > div:first-child { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.quote footer .btn { justify-self: start; margin-top: 8px; }
.contact-sub { margin-top: 28px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); color: rgba(242,239,233,.75); }
.contact-links { display: flex; flex-wrap: wrap; gap: 32px; }
.v-cam {
  position: absolute; right: 22px; bottom: 22px; width: 22%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #f5c9b9 0 22%, transparent 23%), radial-gradient(ellipse at 50% 100%, #1d1a18 0 48%, transparent 49%), #c8826b;
  border: 3px solid #f2efe9; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

/* =========================================================
   Portfolio: case studies, content reels, case modal
   ========================================================= */
.section-title { font-size: clamp(44px, 6vw, 96px); letter-spacing: -0.055em; line-height: .95; margin-top: 18px; }
.section-note { max-width: 32ch; color: #4a4642; font-size: 15px; }

.cases { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line-light); }
.cases .section-head { align-items: end; margin-bottom: clamp(40px, 5vw, 64px); gap: 24px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 44px) var(--pad); }
.case {
  display: flex; flex-direction: column; gap: 16px; text-align: left; padding: 0; color: inherit; cursor: pointer;
}
.case--feature { grid-column: 1 / -1; }
.case-img { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--cream-2); }
.case--feature .case-img { aspect-ratio: 16 / 8; }
.case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.case:hover .case-img img, .case:focus-visible .case-img img { transform: scale(1.04); }
.case:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }
.case-meta { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px; border-top: 1px solid var(--line-light); padding-top: 14px; }
.case-num { font-size: 13px; color: var(--muted); }
.case-name { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; line-height: 1.05; }
.case-kind { font-size: 13px; color: #4a4642; text-align: right; }
.more-label { margin: clamp(60px, 8vw, 100px) 0 28px; }
.case-grid--more { grid-template-columns: repeat(2, 1fr); }
.case--small .case-img { aspect-ratio: 16 / 9; }

/* content reels */
.content-reels { background: var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.content-reels .section-head { align-items: end; margin-bottom: 40px; }
.reel-nav { display: flex; gap: 10px; }
.reel-nav .btn { width: 48px; padding: 0; font-size: 18px; }
.reel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--pad) 8px; scroll-padding-left: var(--pad);
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-card { flex: 0 0 clamp(220px, 22vw, 300px); margin: 0; scroll-snap-align: start; }
.reel-media { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--ink-2); }
.reel-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-sound {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; font-size: 12px;
  background: rgba(12,11,10,.55); color: var(--cream); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
}
.reel-card figcaption { display: grid; gap: 2px; margin-top: 12px; font-size: 14px; }
.reel-card figcaption span { color: rgba(242,239,233,.6); font-size: 13px; }
.reel-foot { margin-top: 40px; }

/* modal */
body.modal-open { overflow: hidden; }
.case-modal {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(12,11,10,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.case-modal.open { opacity: 1; }
.cm-panel {
  position: relative; background: var(--cream); color: var(--ink); margin: 4vh auto; width: min(1200px, calc(100% - 2 * var(--pad)));
  border-radius: 12px; padding: clamp(24px, 4vw, 56px);
  transform: translateY(40px); transition: transform .6s var(--ease);
}
.case-modal.open .cm-panel { transform: none; }
.cm-close { position: sticky; top: 16px; float: right; z-index: 2; }
.cm-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.cm-head h2 { font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.055em; line-height: .95; margin: 14px 0 22px; }
.cm-summary { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; }
.cm-tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-tags li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line-light); border-radius: 999px; }
.cm-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cm-fig { margin: 0; }
.cm-fig:first-child { grid-column: 1 / -1; }
.cm-fig img, .cm-fig video { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--cream-2); }
.cm-fig--video video { max-height: 80vh; object-fit: contain; background: var(--ink); }
.cm-fig figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; text-transform: capitalize; }
.cm-cta { margin-top: 40px; }

@media (max-width: 900px) {
  .cases .section-head, .content-reels .section-head { flex-direction: column; align-items: flex-start; }
  .case-grid, .case-grid--more { grid-template-columns: 1fr; }
  .case--feature .case-img { aspect-ratio: 4 / 3; }
  .cm-gallery { grid-template-columns: 1fr; }
  .reel-card { flex-basis: 64vw; }
}
.case-grid:not(.case-grid--more) > .case:last-child:nth-child(even) { grid-column: 1 / -1; }
.case-grid:not(.case-grid--more) > .case:last-child:nth-child(even) .case-img { aspect-ratio: 16 / 8; }
@media (max-width: 900px) { .case-grid:not(.case-grid--more) > .case:last-child:nth-child(even) .case-img { aspect-ratio: 4 / 3; } }


/* =========================================================
   Work page (work.html), in the style of a studio projects index
   ========================================================= */
.page-work { background: var(--cream); }

.wp { padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); min-height: 100vh; }
.wp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.wp-title { font-size: clamp(96px, 17vw, 270px); letter-spacing: -0.07em; line-height: .82; overflow: hidden; padding-bottom: .04em; margin-left: -.04em; }
.wp-rise { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) .1s forwards; }
.wp-title sup { font-size: .14em; letter-spacing: 0; vertical-align: top; position: relative; top: .55em; margin-left: .15em; color: var(--muted); }
.wp-intro { max-width: 32ch; text-align: right; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; margin-bottom: 1.6vw; }

.wp-filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: clamp(40px, 5vw, 64px) 0 22px; }
.wp-filter { font-size: 15px; color: var(--muted); padding: 4px 0; transition: color .2s; }
.wp-filter:hover { color: var(--ink); }
.wp-filter[aria-pressed="true"] { color: var(--ink); }
.wp-filter[aria-pressed="true"] .wp-slash { color: var(--accent); }
.wp-slash { margin-right: 3px; }
.wp-filter sup { font-size: 10px; margin-left: 3px; }

.wp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.wp-grid.is-switching { opacity: 0; transform: translateY(10px); }
.wp-card {
  display: flex; flex-direction: column; background: var(--cream-2); border-radius: 14px; padding: 10px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.wp-card[hidden] { display: none; }
.wp-card:hover, .wp-card:focus-visible { background: var(--ink); color: var(--cream); }
.wp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wp-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--ink-2); }
.wp-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.wp-card:hover .wp-media > img:not(.wp-blur) { transform: scale(1.035); }
.wp-blur { filter: blur(26px) brightness(.55) saturate(1.2); transform: scale(1.25); }
.wp-phone {
  position: absolute; left: 50%; top: 50%; height: 86%; aspect-ratio: 9 / 16; transform: translate(-50%, -50%);
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transition: transform .8s var(--ease);
}
.wp-card:hover .wp-phone { transform: translate(-50%, -50%) scale(1.04); }
.wp-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-badge {
  position: absolute; left: 12px; top: 12px; font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(12,11,10,.55); color: var(--cream); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wp-info { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 6px 6px; }
.wp-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.wp-year { font-size: 14px; font-variant-numeric: tabular-nums; }
.wp-kind { grid-column: 1 / -1; font-size: 13px; color: var(--muted); transition: color .35s; }
.wp-card:hover .wp-kind { color: rgba(242,239,233,.6); }

/* modal additions shared by both pages */
.cm-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.cm-next { text-align: right; font-size: 14px; color: var(--muted); }
.cm-next strong { display: block; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); transition: color .2s; }
.cm-next:hover strong { color: var(--accent); }
.cm-gallery--videos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cm-gallery--videos .cm-fig:first-child { grid-column: auto; }
.cm-gallery--videos .cm-fig--video video { max-height: 78vh; }
.section-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }

@media (max-width: 900px) {
  .wp-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wp-intro { text-align: left; margin: 0; }
  .wp-grid { grid-template-columns: 1fr; }
  .section-side { align-items: flex-start; text-align: left; }
  .cm-next { text-align: left; }
}

/* =========================================================
   Header + hero (editorial studio style)
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad); color: var(--ink);
  background: rgba(238, 235, 228, 0.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
body.menu-open .nav { background: transparent; border-color: transparent; color: var(--cream); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url("assets/brand/mark.png") center / contain no-repeat; mask: url("assets/brand/mark.png") center / contain no-repeat;
}
.logo-word { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; line-height: 1; }
.nav-clock { font-size: 13px; color: var(--muted); margin-right: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-links { display: flex; gap: 26px; font-size: 14px; }
.nav-links a { position: relative; opacity: .85; transition: opacity .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { font-size: 14px; font-weight: 500; padding-bottom: 3px; border-bottom: 1px solid currentColor; white-space: nowrap; transition: color .2s; }
.nav-cta:hover { color: var(--accent); }
.menu-toggle { display: none; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; border: 1px solid currentColor; }
.burger { display: inline-grid; gap: 4px; width: 16px; }
.burger i { display: block; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
body.menu-open .burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.vh { background: #eeebe4; color: var(--ink); padding-top: 66px; }
.vh-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad); padding: 22px 0 24px; border-bottom: 1px solid var(--line-light); }
.vh-strip > div { opacity: 0; transform: translateY(12px); animation: vhIn .9s var(--ease) forwards; }
.vh-strip > div:nth-child(2) { animation-delay: .06s; } .vh-strip > div:nth-child(3) { animation-delay: .12s; } .vh-strip > div:nth-child(4) { animation-delay: .18s; }
.vh-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vh-strip p:not(.vh-label) { font-size: 14px; line-height: 1.35; max-width: 27ch; }
.vh-word { margin: clamp(28px, 3.6vw, 52px) 0 0; font-family: var(--display); font-weight: 800; line-height: .78; letter-spacing: -0.045em; white-space: nowrap; }
.vh-fit { display: inline-flex; align-items: flex-start; font-size: 14vw; overflow: hidden; padding-bottom: .04em; }
.vh-rise { display: inline-block; transform: translateY(110%); animation: rise 1.3s var(--ease) .15s forwards; }
.vh-mark {
  flex: none; width: .13em; height: .13em; margin: .02em 0 0 .05em; background: currentColor;
  -webkit-mask: url("assets/brand/mark.png") center / contain no-repeat; mask: url("assets/brand/mark.png") center / contain no-repeat;
  opacity: 0; animation: vhIn .8s var(--ease) .9s forwards;
}
.vh-bottom { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--pad); align-items: start; padding: clamp(30px, 4vw, 56px) 0 clamp(34px, 4vw, 52px); }
.vh-headline { font-size: clamp(34px, 4.15vw, 62px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; max-width: 14em;
  opacity: 0; transform: translateY(24px); animation: vhIn 1s var(--ease) .55s forwards; }
.vh-side { justify-self: end; max-width: 31ch; opacity: 0; animation: vhIn 1s var(--ease) .75s forwards; }
.vh-side p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; color: #6e6a62; margin-top: .35em; }
.vh-link { display: inline-flex; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 500; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.vh-link span { transition: transform .3s var(--ease); }
.vh-link:hover span { transform: translateX(4px); }
.vh-media { position: relative; margin: 0; aspect-ratio: 16 / 9; max-height: 100svh; width: 100%; overflow: hidden; background: var(--ink); }
.vh-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.vh-cap {
  position: absolute; z-index: 1; inset: auto var(--pad) 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream);
}
.vh-sound { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 2px; border-bottom: 1px solid currentColor; }
.vh-sound:hover { color: var(--accent); }
@keyframes vhIn { to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .nav-clock { display: none; }
  .nav-links { margin-left: auto; }
}
@media (max-width: 900px) {
  .nav { gap: 12px; }
  .nav-links, .nav-cta { display: none; }
  .logo { margin-right: auto; }
  .menu-toggle { display: inline-flex; }
  .vh { padding-top: 62px; }
  .vh-strip { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .vh-bottom { grid-template-columns: 1fr; gap: 20px; }
  .vh-side { justify-self: start; }
  .vh-cap { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vh-rise, .vh-strip > div, .vh-headline, .vh-side, .vh-mark { transform: none; opacity: 1; }
}


/* hero: short headline + three scannable steps */
.vh-bottom { align-items: end; }
.vh-headline { max-width: 13em; }
.vh-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.vh-side .vh-link { margin-top: 0; }
.vh-link--muted { color: #6e6a62; }
.vh-steps { list-style: none; margin: 0; padding: 22px 0 clamp(36px, 4vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); border-top: 1px solid var(--line-light); }
.vh-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 6px; align-items: baseline;
  opacity: 0; transform: translateY(14px); animation: vhIn .9s var(--ease) forwards; }
.vh-steps li:nth-child(1) { animation-delay: .8s; } .vh-steps li:nth-child(2) { animation-delay: .9s; } .vh-steps li:nth-child(3) { animation-delay: 1s; }
.vh-step-n { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.vh-steps strong { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.vh-steps li > span:last-child { grid-column: 2; font-size: 15px; line-height: 1.4; color: #57534c; max-width: 30ch; }
@media (max-width: 640px) { .vh-steps { grid-template-columns: 1fr; gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .vh-steps li { opacity: 1; transform: none; } }

.vh-bottom { grid-template-columns: 1fr; }
.vh-bottom { justify-items: center; text-align: center; }
.vh-bottom .vh-headline { margin-inline: auto; }

/* restructured hero: wordmark → headline → steps → meta strip */
.vh-word { margin-top: clamp(28px, 4vw, 56px); text-align: center; }
.vh-headline { font-size: clamp(34px, 4.4vw, 66px); max-width: 16em; }
.vh-bottom { padding: clamp(28px, 3.5vw, 48px) 0 clamp(36px, 4vw, 56px); }
.vh-steps { border-top: 0; padding-top: 0; text-align: center; }
.vh-steps li { grid-template-columns: 1fr; justify-items: center; }
.vh-steps li > span:last-child { grid-column: 1; }
.vh-strip { border-bottom: 0; border-top: 1px solid var(--line-light); padding: 20px 0 26px; }
.vh-strip { border-top: 0; border-bottom: 1px solid var(--line-light); padding: 22px 0 24px; }
.vh-steps { padding-bottom: clamp(40px, 5vw, 64px); }

/* smaller hero scale */
.vh-word { width: min(72%, 900px); margin-inline: auto; }
.vh-headline { font-size: clamp(24px, 2.7vw, 40px); max-width: 18em; }
.vh-bottom { padding: clamp(20px, 2.5vw, 32px) 0 clamp(28px, 3vw, 40px); }
.vh-steps strong { font-size: clamp(16px, 1.3vw, 19px); }
.vh-steps li > span:last-child { font-size: 14px; }
.vh-steps { max-width: 980px; margin-inline: auto; padding-bottom: clamp(32px, 4vw, 52px); }
@media (max-width: 640px) { .vh-word { width: 100%; } }
.vh-word { width: min(80%, 1220px); }
.vh-strip { text-align: center; }
.vh-strip p:not(.vh-label) { margin-inline: auto; }

/* =========================================================
   About page (about.html)
   ========================================================= */
.page-about { background: #eeebe4; }
.ab-tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ab-intro { background: #eeebe4; padding-top: clamp(120px, 12vw, 170px); }
.ab-title { font-size: clamp(52px, 8.4vw, 132px); line-height: .95; letter-spacing: -0.055em; font-weight: 500; margin: 22px 0 0; }
.ab-title .ab-rise { display: block; overflow: hidden; }
.ab-title .ab-rise { animation: vhIn 1.1s var(--ease) both; opacity: 0; transform: translateY(40px); }
.ab-title .ab-rise + .ab-rise { animation-delay: .12s; }
.ab-lead { max-width: 36ch; margin: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 80px) auto; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; color: #57534c; }
.ab-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; height: clamp(260px, 42vw, 620px); }
.ab-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ab-row-head { display: flex; justify-content: space-between; border-top: 1px solid var(--line-light); padding-top: 14px; font-size: 13px; color: var(--muted); }
.ab-principles, .ab-story { padding: clamp(70px, 9vw, 130px) 0 0; background: #eeebe4; }
.ab-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-top: clamp(40px, 5vw, 70px); }
.ab-num { display: block; font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
.ab-cols h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.03em; margin-bottom: 14px; }
.ab-cols p { font-size: 16px; line-height: 1.45; color: #57534c; max-width: 32ch; }

.ab-story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 100px); margin-top: clamp(40px, 5vw, 70px); align-items: start; }
.ab-story-grid h2 { font-size: clamp(40px, 5.2vw, 84px); line-height: .98; letter-spacing: -0.05em; font-weight: 500; }
.ab-story-grid p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: #57534c; max-width: 42ch; }
.ab-story-grid p + p { margin-top: 18px; }
.ab-story .stats { margin-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(70px, 9vw, 130px); }

.ab-process { background: var(--ink); color: var(--cream); padding: clamp(80px, 10vw, 140px) 0; }
.ab-process-head { display: grid; grid-template-columns: 1fr 3fr; gap: var(--pad); margin-bottom: clamp(50px, 6vw, 90px); }
.ab-process-head h2 { font-size: clamp(30px, 3.4vw, 54px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; }
.ab-steps { list-style: none; margin: 0; padding: 0; }
.ab-steps li { display: grid; grid-template-columns: 1fr 2fr 1fr 2fr; gap: var(--pad); align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line-dark); }
.ab-steps li:last-child { border-bottom: 1px solid var(--line-dark); }
.ab-steps .ab-num { font-size: 13px; color: var(--muted); margin: 0; letter-spacing: 0; }
.ab-steps h3 { font-size: clamp(36px, 4.4vw, 68px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.ab-when { font-size: 13px; color: var(--muted); }
.ab-steps p { font-size: 15px; line-height: 1.45; color: rgba(242,239,233,.72); max-width: 34ch; }
.ab-steps li { transition: color .3s; }
.ab-steps li:hover h3 { color: var(--accent); }

@media (max-width: 900px) {
  .ab-cols, .ab-story-grid, .ab-process-head { grid-template-columns: 1fr; }
  .ab-steps li { grid-template-columns: 40px 1fr; row-gap: 8px; }
  .ab-steps li .ab-when, .ab-steps li p { grid-column: 2; }
  .ab-lead { margin-left: 0; }
}

/* =========================================================
   Mobile, editorial (VERVE style) — all pages
   ========================================================= */
.menu-cta { display: none; }
@media (max-width: 900px) {
  /* header: logo + plain text "Menu" */
  .nav .menu-toggle { display: inline-flex; border: 0; padding: 0; height: auto; font-size: 15px; }
  .nav .burger { display: none; }
  body.menu-open .nav { background: #eeebe4; color: var(--ink); border-color: var(--line-light); }

  /* menu: light panel dropping from the top */
  .menu {
    bottom: auto; justify-content: flex-start; background: #eeebe4; color: var(--ink);
    padding: 76px var(--pad) 22px; clip-path: inset(0 0 100% 0); border-bottom: 1px solid var(--line-light);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.25);
  }
  .menu li { border: 0; }
  .menu li a { font-size: 40px; line-height: 1.12; padding: 2px 0; letter-spacing: -0.035em; }
  .menu li a span { display: none; }
  .menu li a:hover { color: var(--ink); opacity: .6; }
  .menu-cta {
    display: flex; justify-content: center; align-items: center; height: 56px; margin-top: 22px;
    background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 500;
  }
  .menu-foot { display: none; }
  body.menu-open { overflow: auto; }

  /* hero: left-aligned, info strip in two columns */
  .vh-strip { grid-template-columns: 1fr 1fr; row-gap: 16px; text-align: left; padding: 18px 0 20px; }
  .vh-strip p:not(.vh-label) { margin-inline: 0; font-size: 13px; }
  .vh-word { width: 100%; text-align: left; margin-top: 26px; }
  .vh-bottom { justify-items: start; text-align: left; padding: 20px 0 22px; }
  .vh-bottom .vh-headline { margin-inline: 0; font-size: clamp(28px, 7.6vw, 40px); line-height: 1.08; }
  .vh-steps { text-align: left; max-width: none; margin: 0; padding-bottom: 30px; }
  .vh-steps li { justify-items: start; }
  .vh-media { aspect-ratio: 16 / 10; }
  .vh-cap { flex-direction: row; justify-content: space-between; align-items: center; font-size: 10px; }
}
@media (max-width: 640px) {
  .vh-steps { grid-template-columns: 1fr; gap: 18px; }
  .vh-steps li { grid-template-columns: auto 1fr; column-gap: 10px; }
  .vh-steps li > span:last-child { grid-column: 2; }
  .vh-cap span:first-child { max-width: 55%; }
  .wp-filters { gap: 6px 18px; }
}
@media (max-width: 640px) {
  .ab-strip { grid-template-columns: 1fr; height: auto; gap: 6px; }
  .ab-strip img { aspect-ratio: 4 / 3; height: auto; }
  .ab-strip img:not(:first-child) { display: none; }
  .ab-title { font-size: 44px; }
  .ab-intro { padding-top: 92px; }
}

/* =========================================================
   v3: seamless sections, clients, featured work, problem, services,
   shortscut-style mobile hero, content rows + metrics
   ========================================================= */
/* one light tone everywhere, no hairlines between sections */
.light, .studio, .cases, .faq, .svc, .logos { background: #eeebe4; }
.cases, .faq { border-top: 0; }
/* dark sections melt into the light ones instead of hard edges */
.pb { background: var(--ink); }
.clients { background: var(--ink); }
.content-reels { background: var(--ink); }
.contact { background: var(--ink); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* About without the photo */
.studio-grid { grid-template-columns: 1fr; }
.studio-lead { max-width: 30ch; }

/* client logos */
.logos { padding: clamp(40px, 6vw, 80px) 0 clamp(50px, 6vw, 90px); }
.logos-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.logos-count { font-size: 13px; color: var(--muted); }
.logos-marquee { overflow: hidden; }
.logos-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-set { display: flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding-right: clamp(28px, 4vw, 56px); }
.logo-item { display: inline-flex; align-items: center; height: clamp(26px, 2.6vw, 38px); opacity: .85; transition: opacity .3s; }
.logo-item:hover { opacity: 1; }
.logo-item img { height: 100%; width: auto; display: block; }
.logo-item--type { font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; color: #3a3733; }
.logo-dot { color: var(--accent); font-size: 12px; }

/* featured work: 1 lead + 4 */
.eyebrow-count { color: var(--muted); margin-left: 4px; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.feat { display: flex; flex-direction: column; gap: 14px; text-align: left; color: inherit; cursor: pointer; }
.feat--lead { grid-column: 1 / -1; }
.feat-media { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: var(--ink-2); }
.feat--lead .feat-media { aspect-ratio: 16 / 8; }
.feat-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.feat:hover .feat-media > img:not(.feat-blur) { transform: scale(1.035); }
.feat-blur { filter: blur(28px) brightness(.5) saturate(1.3); transform: scale(1.3); }
.feat-phone { position: absolute; left: 50%; top: 50%; height: 86%; aspect-ratio: 9 / 16; transform: translate(-50%, -50%); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.feat-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-info { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; border-top: 1px solid var(--line-light); padding-top: 12px; }
.feat-num { font-size: 13px; color: var(--muted); }
.feat-name { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; }
.feat-kind { font-size: 13px; color: #57534c; text-align: right; }
.see-more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 64px); }
.see-more-btn { height: 56px; padding: 0 30px; font-size: 15px; }

/* problem band */
.pb { color: var(--cream); padding: clamp(80px, 10vw, 140px) 0; }
.pb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 36px; }
.pb-n { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.pb-item p { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -0.03em; color: rgba(242,239,233,.72); }
.pb-item--fix p { color: var(--cream); }
.pb-item--fix .pb-n { color: var(--accent); }
.pb-link { margin-top: 22px; color: var(--cream); }

/* what we do */
.svc { padding: clamp(70px, 9vw, 130px) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(32px, 4vw, 56px); }
.svc-card { display: flex; flex-direction: column; background: #f7f5f0; border-radius: 16px; padding: 12px 12px 22px; }
.svc-media { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ink-2); margin-bottom: 18px; }
.svc-media img, .svc-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-n { font-size: 13px; color: var(--accent); padding: 0 8px; }
.svc-card h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -0.04em; padding: 4px 8px 0; }
.svc-line { color: #57534c; padding: 2px 8px 0; }
.svc-card ul { list-style: none; margin: 18px 8px 0; padding: 0; border-top: 1px solid var(--line-light); }
.svc-card li { font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.svc-price { margin: auto 8px 0; padding-top: 20px; font-size: 20px; letter-spacing: -0.02em; }
.svc-audit { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; padding: 22px 26px; border-radius: 16px; background: var(--ink); color: var(--cream); }
.svc-audit p { font-size: 16px; max-width: 60ch; color: rgba(242,239,233,.8); }
.svc-audit strong { color: var(--cream); font-weight: 500; }
.svc-audit .btn-dark { background: var(--accent); flex: none; }

/* modal: metrics + reels row */
.cm-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: -10px 0 clamp(28px, 3vw, 44px); max-width: 760px; }
.cm-metrics strong { display: block; font-size: clamp(36px, 4.4vw, 64px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.cm-metrics span { display: block; font-size: 13px; color: #57534c; margin-top: 8px; max-width: 16ch; }
.cm-reels { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.cm-reels .cm-fig { flex: 0 0 clamp(220px, 24vw, 300px); scroll-snap-align: start; }
.cm-reels .cm-fig video { aspect-ratio: 9 / 16; height: auto; max-height: none; object-fit: cover; border-radius: 12px; }

/* work page: shortscut-style rows */
.sc-rows { border-top: 1px solid var(--line-light); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.sc-rows.is-switching { opacity: 0; transform: translateY(10px); }
.sc-row { width: 100%; display: grid; grid-template-columns: minmax(200px, 1fr) auto; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line-light); text-align: left; color: inherit;
  opacity: 0; transform: translateY(16px); animation: vhIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.sc-name { display: flex; align-items: flex-start; gap: 10px; font-size: clamp(40px, 5.6vw, 86px); letter-spacing: -0.055em; line-height: .95; transition: color .3s; }
.sc-row:hover .sc-name { color: var(--accent); }
.sc-tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 3px 8px; margin-top: .5em; color: var(--muted); }
.sc-thumbs { display: flex; gap: 8px; justify-content: flex-end; }
.sc-thumb { display: block; border-radius: 8px; overflow: hidden; background: var(--ink-2); transition: transform .5s var(--ease); }
.sc-thumbs--short .sc-thumb { width: clamp(56px, 6.4vw, 96px); aspect-ratio: 9 / 16; }
.sc-thumbs--long .sc-thumb { width: clamp(140px, 16vw, 240px); aspect-ratio: 16 / 9; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-row:hover .sc-thumb { transform: translateY(-6px); }
.sc-row:hover .sc-thumb:nth-child(even) { transform: translateY(6px); }

/* shortscut-style hero, phones only */
.mh { display: none; }
@media (max-width: 640px) {
  .vh-strip, .vh-word, .vh-bottom, .vh-steps { display: none !important; }
  .mh { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: calc(100svh - 62px - 56vw); justify-content: center; padding: 28px 0 32px; }
  .mh-title { font-size: 13.4vw; font-weight: 600; line-height: .92; letter-spacing: -0.055em; }
  .mh-clip { display: inline-block; width: 1.9em; height: .82em; border-radius: .18em; overflow: hidden; vertical-align: -.08em; background: var(--ink-2); }
  .mh-clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mh-pills { list-style: none; display: flex; gap: 6px; padding: 0; margin: 22px 0 0; }
  .mh-pills li { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: 999px; padding: 4px 10px; }
  .mh-sub { margin-top: 22px; font-size: 14px; line-height: 1.45; color: #57534c; }
  .mh-sub a { color: var(--accent); }
  .vh-media { aspect-ratio: 16 / 10; }
  .logos-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat--lead .feat-media { aspect-ratio: 4 / 3; }
  .pb { padding: 70px 0; }
  .pb-grid, .svc-grid { grid-template-columns: 1fr; }
  .svc-audit { flex-direction: column; align-items: flex-start; }
  .cm-metrics { gap: 10px; }
  .cm-metrics strong { font-size: 30px; }
  .cm-reels .cm-fig { flex-basis: 64vw; }
  .sc-row { grid-template-columns: 1fr; gap: 12px; }
  .sc-name { font-size: 40px; }
  .sc-thumbs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .sc-thumbs--short .sc-thumb { width: 22vw; flex: none; }
  .sc-thumbs--long .sc-thumb { width: 60vw; flex: none; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .pb-grid, .svc-grid { grid-template-columns: 1fr; }
}

.wp-grid[hidden], .sc-rows[hidden] { display: none; }

/* About (home): even spacing now that the stats are gone */
.studio { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }
.studio-grid { margin-top: clamp(16px, 1.6vw, 24px); }
.logos { padding-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 640px) {
  .studio { padding: 40px 0 56px; }
  .studio-lead { font-size: 24px; line-height: 1.2; }
}
.cases { padding-top: clamp(24px, 3vw, 44px); }

/* one heading size for every section title, on every page */
.section-title, .faq-title, .ab-story-grid h2 {
  font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -0.055em; font-weight: 500;
}
@media (max-width: 640px) { .section-title, .faq-title, .ab-story-grid h2 { font-size: 44px; } }
.logos-head { align-items: flex-end; margin-bottom: clamp(28px, 3.5vw, 48px); }
.logos-title { margin-top: 0; }

/* consistent section openers: one heading, no label above it */
.studio .section-title, .pb .section-title, .svc .section-title, .content-reels .section-title, .faq-title, .ab-principles .section-title { margin-top: 0; }
.studio-grid { margin-top: clamp(20px, 2.4vw, 36px); }
.pb .section-title { color: var(--cream); }
.ab-process-head { grid-template-columns: 1fr; gap: clamp(16px, 2vw, 28px); }
.ab-process-lead { font-size: clamp(20px, 2vw, 30px); line-height: 1.25; letter-spacing: -0.02em; color: rgba(242,239,233,.75); max-width: 36ch; }
.ab-process .section-title { color: var(--cream); }
.ab-principles .ab-cols { margin-top: clamp(28px, 3.5vw, 48px); }
.ab-story-grid { margin-top: 0; }
.ab-process-head h2.section-title { font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -0.055em; max-width: none; }
@media (max-width: 640px) { .ab-process-head h2.section-title { font-size: 44px; } }

/* services: square corners */
.svc-card, .svc-media, .svc-audit, .svc .btn { border-radius: 0; }
/* services: edge-to-edge media in square cards */
.svc-card { padding: 0 0 24px; }
.svc-media { margin-bottom: 20px; }
.svc-n, .svc-card h3, .svc-line { padding-inline: 22px; }
.svc-card ul, .svc-price { margin-inline: 22px; }
/* tighter join between Featured projects and What we do */
.cases { padding-bottom: clamp(40px, 5vw, 72px); }
.svc { padding-top: clamp(24px, 3vw, 44px); }
.see-more { margin-top: clamp(28px, 3.5vw, 48px); }

/* =========================================================
   Featured projects: scroll-driven card deck
   ========================================================= */
.feat-deck { position: relative; height: calc(var(--n, 5) * 85vh); }
.feat-sticky { position: sticky; top: 64px; height: calc(100svh - 64px); display: flex; flex-direction: column; padding: 18px 0 20px; }
.feat-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.feat-top .section-title { margin: 0; }
.feat-counter { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feat-counter span { color: var(--ink); }
.feat-stage { position: relative; flex: 1; min-height: 0; }
.feat-stage .feat {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0;
  background: #eeebe4; transform-origin: 50% 0%; will-change: transform, filter;
}
.feat-stage .feat-media { flex: 1; min-height: 0; aspect-ratio: auto !important; border-radius: 10px; box-shadow: 0 -18px 40px -28px rgba(12,11,10,.55); }
.feat-stage .feat-info { padding-top: 12px; margin-top: 10px; }
.see-more { margin-top: 16px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.see-more.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 640px) {
  .feat-sticky { top: 56px; height: calc(100svh - 56px); }
  .feat-top .section-title { font-size: 40px; }
  .feat-stage .feat-info { grid-template-columns: auto 1fr; }
  .feat-stage .feat-kind { grid-column: 2; text-align: left; }
}
/* no motion: plain list */
@media (prefers-reduced-motion: reduce) {
  .feat-deck { height: auto; }
  .feat-sticky { position: static; height: auto; }
  .feat-stage { display: grid; gap: 24px; }
  .feat-stage .feat { position: static; }
  .feat-stage .feat-media { aspect-ratio: 16 / 9 !important; }
  .see-more { opacity: 1; transform: none; pointer-events: auto; }
}

/* =========================================================
   No rounded corners anywhere (true circles like dots stay round)
   ========================================================= */
*, *::before, *::after { border-radius: 0 !important; }
.eyebrow::before, .contact-orb, .faq-list summary::after { border-radius: 50% !important; }

/* =========================================================
   Solace-style Work, Services and Trusted by
   ========================================================= */
.sl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 18px; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line-light); }
.sl-head .section-title { margin: 0; }
.sl-tag { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* work grid */
.sl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.sl-card { display: flex; flex-direction: column; gap: 12px; text-align: left; color: inherit; cursor: pointer; }
.sl-card--lead { grid-column: 1 / -1; }
.sl-meta { display: grid; gap: 2px; }
.sl-name { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.sl-cats { font-size: 14px; color: var(--muted); }
.sl-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.sl-card--lead .sl-media { aspect-ratio: 16 / 8; }
.sl-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.sl-card:hover .sl-media > img:not(.feat-blur) { transform: scale(1.04); }
.sl-more { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 88px); }
.sl-more-link { font-size: clamp(32px, 4vw, 60px); letter-spacing: -0.04em; font-weight: 500; border-bottom: 3px solid currentColor; line-height: 1.05; transition: color .3s; }
.sl-more-link:hover { color: var(--accent); }

/* services accordion */
.acc { border-top: 1px solid var(--line-light); }
.acc-item { border-bottom: 1px solid var(--line-light); }
.acc-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; padding: clamp(14px, 1.6vw, 22px) 0; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-n, .acc-title { font-size: clamp(32px, 3.6vw, 56px); letter-spacing: -0.04em; line-height: 1; font-weight: 500; }
.acc-title { transition: color .3s; }
.acc-item summary:hover .acc-title { color: var(--accent); }
.acc-icon { position: relative; width: 28px; height: 28px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.acc-item[open] .acc-icon::after { transform: rotate(0deg); }
.acc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 6px 0 clamp(24px, 3vw, 40px); }
.acc-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); max-width: 520px; }
.acc-media img, .acc-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-text { padding-right: 52px; }
.acc-text > p:first-child { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: #57534c; max-width: 44ch; }
.acc-text ul { margin: 22px 0 0; padding: 0; list-style: none; }
.acc-text li { font-size: 15px; padding: 3px 0; }
.acc-text li::before { content: "•"; margin-right: 10px; color: var(--accent); }
.acc-price { margin-top: 22px; font-size: 20px; letter-spacing: -0.02em; }

/* trusted by band */
.trust { position: relative; overflow: hidden; color: var(--cream); background: var(--ink); min-height: clamp(420px, 56vw, 760px); display: flex; }
.trust-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); }
.trust-shade { position: absolute; inset: 0; background: rgba(12, 11, 10, .52); }
.trust-inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(28px, 3vw, 40px); }
.trust-statement { font-size: clamp(32px, 4.2vw, 66px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; max-width: 20ch; }
.trust-row { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); flex-wrap: wrap; }
.trust-label { font-size: 14px; color: rgba(242,239,233,.7); }
.trust-logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(16px, 2vw, 28px); margin: 0; padding: 0; }
.trust-logos li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.trust-logos li::before { content: ""; width: 5px; height: 5px; background: var(--accent); }
.trust-logos img { height: 20px; width: auto; filter: brightness(0) invert(1); display: block; }

@media (max-width: 900px) {
  .acc-body { grid-template-columns: 1fr; }
  .acc-text { padding-right: 0; }
}
@media (max-width: 640px) {
  .sl-grid { grid-template-columns: 1fr; }
  .sl-card--lead .sl-media { aspect-ratio: 4 / 3; }
  .acc-item summary { grid-template-columns: 44px 1fr auto; gap: 12px; }
  .acc-n, .acc-title { font-size: 28px; }
  .trust { min-height: 540px; }
  .trust-statement { font-size: 32px; }
}
/* About: full width on desktop */
@media (min-width: 901px) { .studio-lead { max-width: none; } }

/* 3D dot sphere behind the hero text (hero3d.js) */
.vh { position: relative; }
.vh-3d { position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.vh-3d canvas { display: block; }
.vh > .container { position: relative; z-index: 1; }
.vh-media { z-index: 1; }

/* the 3D dot wordmark replaces the flat letters (still there for layout + screen readers) */
.vh-3d { visibility: hidden; }
.vh.is-scatter .vh-3d { visibility: visible; }
.vh.is-scatter .vh-rise { color: transparent; }   /* dots stand in for the letters only while they move */

/* ===== audit fixes ===== */
/* grey labels on light sections: darker so they pass WCAG AA contrast (was 3.1:1, now 4.8:1) */
.light, .vh { --muted: #6b665e; }
/* visible keyboard focus everywhere */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* phones: small text links get at least a 24px tap area */
@media (max-width: 900px) {
  .footer a, .footer-cols a, .contact-links a, .socials a, .mh-sub a, .menu-toggle, .vh-sound, .footer-bottom a { display: inline-block; padding-block: 5px; }
}

/* =========================================================
   Motion layer (motion.js). Hard edges only: wipes, rises, fades.
   ========================================================= */
/* page transition: solid ink panel */
.pt { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: var(--ink); color: var(--cream);
  transform: translateY(100%); pointer-events: none; }
.pt.pt-cover { transform: none; transition: none; }
.pt.pt-out { transform: translateY(-100%); transition: transform .85s cubic-bezier(.76,0,.24,1) .05s; }
.pt.pt-in { transform: none; transition: transform .55s cubic-bezier(.76,0,.24,1); pointer-events: auto; }
.pt-word { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.045em; }
.pt-in .pt-word, .pt-cover .pt-word { animation: ptWord .5s var(--ease) both; }
@keyframes ptWord { from { transform: translateY(30%); opacity: 0; } }
/* cover painted from the first frame when arriving through the curtain (safety: clears itself after 1.5s) */
html.pt-arriving::after { content: ""; position: fixed; inset: 0; z-index: 9998; background: var(--ink); animation: ptSafe 0s 1.5s forwards; }
@keyframes ptSafe { to { visibility: hidden; } }

/* headings: each word rises from behind its line */
.m-words .mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.m-words .mw-i { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.m-words.is-in .mw-i { transform: none; }

/* text blocks fade up */
.m-up { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.m-up.is-in { opacity: 1; transform: none; }

/* media: hard-edged wipe from the bottom, picture settles from a slight zoom */
.m-wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.76,0,.24,1); }
.m-wipe.is-in { clip-path: inset(0 0 0 0); }
.m-wipe img, .m-wipe video { scale: 1.18; transition: scale 1.6s var(--ease); }
.m-wipe.is-in img, .m-wipe.is-in video { scale: 1; }
.m-drift, .m-wipe.is-in .m-drift { scale: 1.1; }

/* showreel grows to full width as it scrolls in (desktop) */
@media (min-width: 901px) { .m-on .vh-media { scale: var(--reel, 1); transform-origin: 50% 0; } }

/* "See all work": the underline draws in after the words */
.m-on .sl-more-link.m-words { border-bottom-color: transparent; position: relative; }
.m-on .sl-more-link.m-words::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .35s; }
.m-on .sl-more-link.m-words.is-in::after { transform: scaleX(1); }

/* About title: the lines fade and rise on their own, no mask needed, so descenders (g, y) are not clipped */
.ab-title .ab-rise { overflow: visible; }
.ab-strip.m-wipe img { scale: 1; }   /* edge-to-edge photo strip: no zoom, so nothing spills past the screen */

/* =========================================================
   Hover motion: every hover eases in AND out on one shared curve.
   (Transitions live on the resting state, so leaving a hover animates back too.)
   ========================================================= */
:root { --io: cubic-bezier(.65, .05, .36, 1); --io-t: .45s; }

/* colour, opacity and border changes */
.menu-foot a, .footer-cols a, .footer-bottom a, .vh-sound, .nav-cta, .menu-cta, .sl-more-link, .acc-title, .wp-filter, .wp-kind,
.cm-next strong, .ab-steps li h3, .sc-name, .contact-big span, .logo-item, .nav-links a {
  transition: color var(--io-t) var(--io), opacity var(--io-t) var(--io), border-color var(--io-t) var(--io), translate .6s var(--io);
}
.btn { transition: background-color var(--io-t) var(--io), color var(--io-t) var(--io), border-color var(--io-t) var(--io), transform var(--io-t) var(--io), translate .6s var(--io); }
.contact-mail { transition: opacity 1s var(--ease), transform 1s var(--ease), color var(--io-t) var(--io), border-color var(--io-t) var(--io); }
.wp-card { transition: background-color var(--io-t) var(--io), color var(--io-t) var(--io); }
.menu li a { transition: transform .8s var(--ease), color var(--io-t) var(--io), opacity var(--io-t) var(--io); }
.nav-links a::after { transition: transform .5s var(--io); }

/* movement */
.contact-orb { transition: transform .7s var(--io), background-color var(--io-t) var(--io); }
.vh-link span, .wp-phone, .sc-thumb { transition: transform .6s var(--io); }
.wp-media > img:not(.wp-blur), .sl-media > img:not(.feat-blur), .acc-media img, .acc-media video,
.m-wipe img, .m-wipe video { transition: scale 1.6s var(--ease), transform .9s var(--io); }

/* rows lean in on hover */
.acc-item summary .acc-title, .faq-list summary { transition: color var(--io-t) var(--io), translate .6s var(--io); }
.acc-item summary:hover .acc-title { translate: 14px 0; }
.faq-list summary:hover { translate: 10px 0; }
.ab-steps li h3 { transition: color var(--io-t) var(--io), translate .6s var(--io); }
.ab-steps li:hover h3 { translate: 10px 0; }

/* press feedback */
.btn:active, .nav-cta:active, .menu-cta:active, .wp-filter:active, .vh-sound:active { scale: .97; }

/* =========================================================
   Interactions (interact.js)
   ========================================================= */
/* cursor: dot swells over links, shows a label over work. Circles are the one allowed round shape. */
html.has-cur, html.has-cur * { cursor: none !important; }
.cur { position: fixed; left: 0; top: 0; z-index: 10001; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .3s var(--io); }
.cur.is-on { opacity: 1; }
html .cur-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50% !important; background: var(--cream);
  mix-blend-mode: difference; transition: scale .45s var(--io), background-color .45s var(--io); }
.cur.is-link .cur-dot { scale: 3.4; }
.cur.is-down .cur-dot { scale: .7; }
.cur.is-link.is-down .cur-dot { scale: 2.8; }
.cur.is-label .cur-dot { scale: 7.5; background: var(--accent); mix-blend-mode: normal; }
.cur-label { position: absolute; left: 0; top: 0; translate: -50% -50%; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; opacity: 0; scale: .6; transition: opacity .35s var(--io), scale .45s var(--io); }
.cur.is-label .cur-label { opacity: 1; scale: 1; }

/* scroll progress: thin flat accent line */
.sp { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 10000; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* text roll on links */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; line-height: 1.2; }
.roll-a, .roll-b { grid-area: 1 / 1; transition: transform .55s var(--io); }
.roll-b { transform: translateY(105%); }
a:hover > .roll .roll-a { transform: translateY(-105%); }
a:hover > .roll .roll-b { transform: none; }

/* project image tilt eases back when the pointer leaves */
.tilt { transition: clip-path 1.2s cubic-bezier(.76,0,.24,1), transform .7s var(--io); will-change: transform; }

/* magnetic pieces need to animate their pull and the press */
.nav-cta, .vh-sound, .menu-toggle, .wp-filter, .sl-more-link, .contact-mail, .btn { transition-property: color, background-color, border-color, opacity, transform, translate, scale;
  transition-duration: var(--io-t), var(--io-t), var(--io-t), var(--io-t), var(--io-t), .6s, .2s; transition-timing-function: var(--io); }
.sl-more-link.m-words { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .roll-a, .roll-b { transition: none; } }

/* cursor fix: the colour-inverting blend must sit on the outer fixed element. On the inner dot it only
   blended with its own empty layer, so a cream dot vanished on cream/white areas. */
html .cur { mix-blend-mode: difference; }
html .cur-dot { mix-blend-mode: normal; background: #fff; }
html .cur.is-label { mix-blend-mode: normal; }
html .cur.is-label .cur-dot { background: var(--accent); }

/* =========================================================
   Phone hero: wordmark first, same story as desktop
   GFXSPHERE full width -> headline -> 3 steps as rows -> showreel
   ========================================================= */
@media (max-width: 640px) {
  .vh .vh-word { display: block !important; width: 100%; margin: 34px 0 0; text-align: left; }
  .vh .vh-bottom { display: block !important; padding: 22px 0 26px; text-align: left; }
  .vh .vh-headline { font-size: 27px; line-height: 1.12; letter-spacing: -0.035em; max-width: 15em; margin: 0; }
  .vh .vh-steps { display: block !important; padding: 0 0 30px; margin: 0; text-align: left; border-top: 1px solid var(--line-light); }
  .vh .vh-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; row-gap: 2px; justify-items: start; align-items: baseline;
    padding: 14px 0; border-bottom: 1px solid var(--line-light); }
  .vh .vh-step-n { grid-row: 1 / 3; font-size: 12px; }
  .vh .vh-steps strong { font-size: 18px; }
  .vh .vh-steps li > span:last-child { grid-column: 2; font-size: 14px; max-width: none; }
  .vh .vh-strip { display: none !important; }
  .vh-media { aspect-ratio: 16 / 10; }
  .vh-cap { inset: auto 18px 16px; }
}
@media (max-width: 640px) {
  .vh-cap { flex-direction: row; justify-content: flex-end; inset: auto 14px 12px; }
  .vh-cap > span { display: none; }          /* phones: just the sound button, no cramped caption */
}

/* =========================================================
   Case study page (Pentagram-style): title + chips, a long rhythm of
   16:9 frames and pairs, pull quotes in the right half, About panel.
   ========================================================= */
.page-case { background: #eeebe4; }
.cs { padding-top: 66px; color: var(--ink); }
.cs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: clamp(40px, 5vw, 72px) 24px clamp(28px, 3vw, 44px); }
.cs-title { font-size: clamp(56px, 8.4vw, 136px); font-weight: 500; letter-spacing: -0.055em; line-height: .92; margin: 0; }
.cs-line { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; margin-top: 22px; max-width: 42ch; color: #3d3a36; }
.cs-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.cs-chips li { font-size: 14px; padding: 6px 10px; background: rgba(12, 11, 10, .07); }
.cs-about-btn { flex: none; position: sticky; top: 86px; font-size: 15px; padding: 10px 16px; background: rgba(12, 11, 10, .07);
  transition: background-color var(--io-t) var(--io), color var(--io-t) var(--io); }
.cs-about-btn:hover { background: var(--ink); color: var(--cream); }
.cs-flow { display: grid; gap: 24px; padding: 0 24px 24px; }
.cs-media { position: relative; margin: 0; overflow: hidden; background: var(--bg, #1d1d1b); }
.cs-media > img, .cs-media > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-full { aspect-ratio: 16 / 9; }
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cs-sq { aspect-ratio: 1 / 1; }
.cs-wide { aspect-ratio: 16 / 9; }
.cs-pair--natural .cs-media > img { height: auto; }
/* the client's real logo files, recoloured live through a mask */
.cs-logo { position: absolute; inset: 0; margin: auto; background: var(--fg);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.cs-logo--mark { --m: url("assets/work/pizza-bell/case/mark.png"); width: 40%; height: 40%; }
.cs-logo--word { --m: url("assets/work/pizza-bell/case/wordmark.png"); width: 64%; height: 22%; }
/* palette */
.cs-palette { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; background: none; }   /* the primary leads */
.cs-palette > div { background: var(--c); color: var(--t); padding: clamp(18px, 2vw, 32px); display: flex; flex-direction: column; justify-content: space-between; }
.cs-palette span { font-size: clamp(14px, 1.2vw, 18px); }
.cs-palette b { font-weight: 500; font-size: clamp(20px, 2.4vw, 40px); letter-spacing: -0.03em; }
/* pull quotes sit in the right half */
.cs-quote { margin: clamp(24px, 3vw, 48px) 0 clamp(24px, 3vw, 48px) 50%; max-width: 700px; padding-right: 24px;
  font-size: clamp(22px, 2vw, 32px); line-height: 1.28; letter-spacing: -0.02em; font-weight: 400; }
/* content reels */
.cs-reels { aspect-ratio: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: clamp(24px, 3vw, 56px); background: #d41d1d; }
.cs-reels video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }
/* concept work is always labelled */
.cs-concept figcaption { position: absolute; left: 16px; top: 16px; background: var(--ink); color: var(--cream); font-size: 14px; padding: 7px 12px; }
/* next project */
.cs-next { display: grid; gap: 10px; padding: clamp(60px, 8vw, 120px) 24px; border-top: 1px solid var(--line-light); margin-top: 24px; }
.cs-next-label { font-size: 14px; color: var(--muted); }
.cs-next-name { font-size: clamp(48px, 7vw, 112px); font-weight: 500; letter-spacing: -0.055em; line-height: .95; transition: color var(--io-t) var(--io), translate .6s var(--io); }
.cs-next:hover .cs-next-name { color: var(--accent); translate: 14px 0; }
.cs-next-line { font-size: 18px; color: #3d3a36; }
/* About the project panel */
.cs-about { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 1300; overflow: auto;
  background: var(--ink); color: var(--cream); padding: 96px 40px 40px; transform: translateX(100%); transition: transform .6s var(--io); }
.about-open .cs-about { transform: none; }
.cs-about h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; margin: 0 0 20px; }
.cs-about p { font-size: 18px; line-height: 1.5; color: rgba(242, 239, 233, .8); }
.cs-about dl { margin: 32px 0; display: grid; gap: 18px; }
.cs-about dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 239, 233, .55); margin-bottom: 4px; }
.cs-about dd { margin: 0; font-size: 17px; line-height: 1.45; }
.cs-about .btn { background: var(--accent); color: var(--ink); }
.cs-about-close { position: absolute; top: 28px; right: 32px; font-size: 15px; color: var(--cream); }
.cs-scrim { position: fixed; inset: 0; z-index: 1250; background: rgba(12, 11, 10, .45); opacity: 0; pointer-events: none; transition: opacity .5s var(--io); }
.about-open .cs-scrim { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) {
  .cs-head { flex-direction: column; }
  .cs-about-btn { position: static; }
  .cs-pair { grid-template-columns: 1fr; }
  .cs-quote { margin-left: 0; }
  .cs-palette { grid-template-columns: 1fr; aspect-ratio: auto; }
  .cs-palette > div { min-height: 110px; }
  .cs-reels { grid-template-columns: repeat(5, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .cs-reels video { scroll-snap-align: center; }
}

.cm-case-link { display: inline-flex; gap: 10px; margin-top: 22px; font-size: 18px; font-weight: 500; padding-bottom: 4px; border-bottom: 2px solid currentColor;
  transition: color var(--io-t) var(--io); }
.cm-case-link:hover { color: var(--accent); }

.cs-palette .cs-primary b { font-size: clamp(28px, 3.6vw, 64px); }

.cs-concept-note { display: inline-block; margin-bottom: 18px; font-size: 14px; padding: 6px 10px; background: var(--ink); color: var(--cream); }
