/* ============================================================
   ROY STUDIOS — shared stylesheet
   Light, paper-toned site. Big tight grotesque type.
   Structure inspired by clean agency layouts; original system.
   ============================================================ */

:root {
  --bg: #F1EFE9;
  --surface: #FAF9F5;
  --ink: #1C1C1C;
  --ink-60: rgba(28, 28, 28, 0.62);
  --ink-40: rgba(28, 28, 28, 0.42);
  --line: rgba(28, 28, 28, 0.14);
  --accent: #E0491F;
  --accent-ink: #FFFFFF;
  --radius: 18px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-gap: clamp(96px, 12vw, 200px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.no-motion { scroll-behavior: auto; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

/* ---------- type ---------- */

.display {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.h-hero   { font-size: clamp(2.9rem, 7.4vw, 7rem); }
.h-giant  { font-size: clamp(3.2rem, 9vw, 9rem); }
.h-section{ font-size: clamp(2.3rem, 5vw, 4.6rem); }
.h-card   { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.03em; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.count-tag {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-40);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-60);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ---------- layout ---------- */

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); max-width: 1680px; margin: 0 auto; }
.section { margin-top: var(--section-gap); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-head .stack { display: grid; gap: 20px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  position: relative;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn.btn-ghost:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* flip label */
.flip { display: inline-grid; overflow: hidden; line-height: 1.3; }
.flip > span { grid-area: 1 / 1; transition: transform 0.4s var(--ease-out); }
.flip > span:last-child { transform: translateY(110%); }
.btn:hover .flip > span:first-child { transform: translateY(-110%); }
.btn:hover .flip > span:last-child { transform: translateY(0); }

.btn .arr { transition: transform 0.35s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease-out), border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }

.nav-logo img { height: 26px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-60);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(28,28,28,0.06); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- hero (full-bleed video stage) ---------- */

.hero-stage {
  position: relative;
  margin: clamp(66px, 9vh, 86px) 10px 0;
  border-radius: clamp(14px, 2vw, 26px);
  overflow: hidden;
  height: calc(100vh - 100px);
  min-height: 600px;
  background: #0E0E0E;
  color: #F3F1EB;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.05) 42%, rgba(8, 8, 8, 0.2) 100%);
  pointer-events: none;
}
.hero-inner {
  position: absolute;
  inset: 0;
  padding: clamp(22px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 18px;
}
.hero-stage .eyebrow { color: rgba(243, 241, 235, 0.75); }
.hero-title { max-width: 12ch; color: #F3F1EB; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero-title .accent-word { color: var(--accent); }

.hero-svc-list {
  position: absolute;
  top: clamp(22px, 6vh, 64px);
  right: clamp(22px, 4vw, 56px);
  list-style: none;
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: rgba(243, 241, 235, 0.94);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero-copyright {
  position: absolute;
  bottom: clamp(26px, 4.5vw, 60px);
  left: 56%;
  font-size: 13.5px;
  color: rgba(243, 241, 235, 0.7);
}

.hero-stage .founder-card { position: absolute; }

.hero-cue {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(243, 241, 235, 0.5);
}

@media (max-width: 860px) {
  .hero-stage { height: auto; min-height: 0; }
  .hero-inner { position: relative; inset: auto; padding-top: clamp(80px, 16vw, 120px); }
  .hero-svc-list { position: static; text-align: left; order: 3; font-size: 1rem; color: rgba(243, 241, 235, 0.85); }
  .hero-copyright, .hero-cue { display: none; }
  .hero-stage .founder-card { position: static; margin-top: 8px; }
}

.chip {
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-60);
  background: var(--surface);
}
.founder-card {
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 14px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 28px 70px -20px rgba(28,28,28,0.4);
}
.founder-card image-slot { width: 104px; height: auto; align-self: stretch; flex: none; }
.founder-card .who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  padding-right: 14px;
}
.founder-card .who .role { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.founder-card .who .org { font-size: 12.5px; color: var(--ink-40); margin-bottom: 7px; }
.founder-card .who .name {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 12px;
}
.founder-card .card-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 9px 9px 18px;
  border-radius: 999px;
  align-self: flex-start;
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.2,1), background 0.3s;
}
.founder-card .card-pill .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg);
  flex: none;
  transition: transform 0.3s cubic-bezier(0.2,0.7,0.2,1);
}
.founder-card .card-pill:hover { transform: translateY(-1px); }
.founder-card .card-pill:hover .dot { transform: translateX(3px); }

/* ---------- marquee ---------- */

.marquee-band { margin-top: var(--section-gap); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; }
.marquee-label { margin-bottom: 18px; }
.marquee { display: flex; overflow: hidden; user-select: none; gap: 0; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding-right: clamp(40px, 6vw, 96px);
  flex: none;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.no-motion .marquee-track { animation: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

.wordmark {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink-40);
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  transition: color 0.3s;
}
.wordmark:hover { color: var(--ink); }
.wordmark::after { content: "◆"; font-size: 0.45em; color: var(--accent); }

/* ---------- work list ---------- */

.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 64px 96px 1fr auto auto auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  padding: clamp(18px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.4s var(--ease-out);
}
.work-row:hover { padding-left: 14px; }
.work-row .idx { font-size: 15px; font-weight: 500; color: var(--ink-40); }
.work-row image-slot, .work-row media-slot { width: 96px; height: 64px; transition: transform 0.45s var(--ease-out); }
.work-row:hover image-slot, .work-row:hover media-slot { transform: scale(1.45) rotate(-2deg); }
.work-row .name { letter-spacing: -0.03em; font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2.3rem); line-height: 1.05; }
.work-row .tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.work-row .go {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.work-row:hover .go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

.status {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.status.soft { background: rgba(28,28,28,0.08); color: var(--ink-60); }

@media (max-width: 860px) {
  .work-row { grid-template-columns: 40px 72px 1fr auto; }
  .work-row image-slot, .work-row media-slot { width: 72px; height: 48px; }
  .work-row .tags, .work-row .go { display: none; }
}

/* ---------- why / stats ---------- */

.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.why .sticky { position: sticky; top: 120px; display: grid; gap: 24px; justify-items: start; }
.stats { display: grid; }
.stat {
  border-top: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px) 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px clamp(24px, 3vw, 48px);
  align-items: baseline;
}
.stat .num {
  font-size: clamp(3.4rem, 6.5vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2.4ch;
}
.stat .num sup { font-size: 0.4em; color: var(--accent); letter-spacing: 0; }
.stat h3 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; font-weight: 600; }
.stat p { grid-column: 2; color: var(--ink-60); font-size: 15px; max-width: 44ch; }

@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
  .why .sticky { position: static; }
}

/* ---------- services accordion ---------- */

.svc { border-top: 1px solid var(--line); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-head {
  width: 100%;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) 0;
  text-align: left;
  transition: padding-left 0.4s var(--ease-out);
}
.svc-head:hover { padding-left: 12px; }
.svc-head .n { font-size: 15px; font-weight: 500; color: var(--ink-40); }
.svc-head .t { font-weight: 600; letter-spacing: -0.035em; font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.05; }
.svc-head .pm {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
}
.svc-head .pm::before, .svc-head .pm::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.svc-head .pm::before { width: 16px; height: 1.6px; }
.svc-head .pm::after { width: 1.6px; height: 16px; }
.svc-row.open .svc-head .pm { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.svc-row.open .svc-head .pm::after { transform: rotate(90deg); }

.svc-body { overflow: hidden; max-height: 0; transition: max-height 0.6s var(--ease-out); }
.svc-body-inner {
  display: grid;
  grid-template-columns: 80px 1.3fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: 4px 0 clamp(28px, 3.5vw, 44px);
}
.svc-body-inner .desc { color: var(--ink-60); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 48ch; grid-column: 2; }
.svc-cats { display: grid; gap: 0; align-content: start; }
.svc-cats span {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.svc-cats span::after { content: "→"; color: var(--ink-40); }
.svc-cats span:first-child { border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .svc-head { grid-template-columns: 48px 1fr auto; }
  .svc-body-inner { grid-template-columns: 1fr; padding-left: 0; }
  .svc-body-inner .desc { grid-column: 1; }
}

/* ---------- about ---------- */

.about-band {
  margin-top: var(--section-gap);
  background: var(--ink);
  color: var(--bg);
  border-radius: clamp(20px, 3vw, 36px);
  padding: clamp(56px, 8vw, 130px) var(--gutter);
}
.about-band .eyebrow { color: rgba(241,239,233,0.6); }
.about-statement {
  font-size: clamp(1.6rem, 3.4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 26ch;
  margin-top: clamp(28px, 4vw, 48px);
  text-wrap: pretty;
}
.about-statement .w { opacity: 0.22; transition: opacity 0.35s linear; }
.about-statement .w.lit { opacity: 1; }
.about-sub {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.about-sub p { color: rgba(241,239,233,0.65); max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.about-band .btn { background: var(--bg); color: var(--ink); }
.about-band .btn:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) { .about-sub { flex-direction: column; align-items: flex-start; } }

/* ---------- testimonials ---------- */

.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.tst {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 34px);
  display: grid;
  gap: 22px;
  align-content: space-between;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.tst:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(28,28,28,0.25); }
.tst q { font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; font-weight: 500; line-height: 1.35; quotes: "“" "”"; }
.tst .person { display: flex; align-items: center; gap: 14px; }
.tst .person image-slot { width: 48px; height: 48px; flex: none; }
.tst .person b { display: block; font-size: 14.5px; }
.tst .person span { font-size: 13px; color: var(--ink-60); }
@media (max-width: 860px) { .tst-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */

.faq { max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  letter-spacing: -0.02em;
}
.faq-q .pm { font-size: 22px; font-weight: 400; color: var(--ink-40); transition: transform 0.4s var(--ease-out); flex: none; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); color: var(--accent); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease-out); }
.faq-a p { padding: 0 0 24px; color: var(--ink-60); max-width: 60ch; }

/* ---------- blog ---------- */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.blog-card { display: grid; gap: 16px; align-content: start; }
.blog-card image-slot { width: 100%; height: auto; aspect-ratio: 4 / 3; transition: transform 0.45s var(--ease-out); }
.blog-card:hover image-slot { transform: scale(0.985); }
.blog-card time { font-size: 13px; color: var(--ink-40); font-weight: 500; }
.blog-card h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.2; }
.blog-card .read { font-size: 14px; font-weight: 600; color: var(--ink-60); display: inline-flex; gap: 8px; }
.blog-card:hover .read { color: var(--accent); }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- contact band + form ---------- */

.contact-band {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.contact-intro { display: grid; gap: 28px; justify-items: start; }
.contact-points { display: grid; gap: 0; margin-top: 12px; width: 100%; }
.contact-points .pt { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 4px; }
.contact-points .pt b { font-size: 15.5px; }
.contact-points .pt span { font-size: 14.5px; color: var(--ink-60); max-width: 48ch; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 18px;
}
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-60); }
.form input, .form textarea {
  font: inherit;
  border: none;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-size: 16.5px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.3s;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form textarea { resize: vertical; min-height: 96px; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-success { display: none; padding: 14px 18px; border-radius: 12px; background: rgba(31,107,69,0.1); color: #1F6B45; font-weight: 600; font-size: 15px; }
.form.sent .form-success { display: block; }
.form.sent .btn { display: none; }

@media (max-width: 860px) { .contact-band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.footer { margin-top: var(--section-gap); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.footer-cols .col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 16px; }
.footer-cols .col ul { list-style: none; display: grid; gap: 10px; }
.footer-cols .col a { font-size: 15.5px; font-weight: 500; color: var(--ink-60); transition: color 0.25s; }
.footer-cols .col a:hover { color: var(--accent); }
.footer-blurb { font-size: 15px; color: var(--ink-60); max-width: 34ch; margin-top: 14px; }

.footer-logo { margin-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.footer-logo img { width: 100%; height: auto; opacity: 0.95; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0 28px;
  font-size: 13.5px;
  color: var(--ink-40);
}
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- page heroes (work / contact) ---------- */

.page-hero { padding-top: clamp(130px, 18vh, 200px); display: grid; gap: 24px; }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 5vw, 64px); }
.work-card { display: grid; gap: 16px; align-content: start; }
.work-card image-slot, .work-card media-slot { width: 100%; height: auto; aspect-ratio: 4 / 3; transition: transform 0.5s var(--ease-out); }
.work-card:hover image-slot, .work-card:hover media-slot { transform: scale(0.985); }
.work-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.work-card h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-card:nth-child(even) { transform: translateY(clamp(0px, 4vw, 64px)); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { transform: none; }
}

/* ---------- phone mockup thumbnail ---------- */

.mock-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(110% 100% at 85% 95%, rgba(28, 28, 28, 0.1), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease-out);
}
.work-card:hover .mock-thumb { transform: scale(0.985); }
.mock-phone {
  width: 34%;
  aspect-ratio: 9 / 19;
  background: #141414;
  border-radius: 12% / 5.7%;
  padding: 2.6%;
  box-shadow: 0 30px 60px -20px rgba(28, 28, 28, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-4deg) translateY(4%);
}
.mock-phone .screen-wrap { width: 100%; height: 100%; border-radius: 9% / 4.3%; overflow: hidden; }
.mock-phone image-slot, .mock-phone media-slot { width: 100%; height: 100%; }
.mock-thumb .mock-label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- case study overlay ---------- */

.cs-overlay { position: fixed; inset: 0; z-index: 200; }
.cs-overlay[hidden] { display: none; }
.cs-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.cs-overlay.open .cs-panel { opacity: 1; }
.cs-overlay.measuring .cs-panel { opacity: 1; transition: none; }

.cs-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.35s var(--ease-out);
}
.cs-close:hover { background: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }

.cs-hero {
  margin: clamp(24px, 4vw, 48px) 10px 0;
  height: min(70vh, 720px);
  border-radius: clamp(14px, 2vw, 26px);
  overflow: hidden;
  background: var(--surface);
  opacity: 0;
}
.cs-overlay.ready .cs-hero { opacity: 1; }
.cs-overlay.measuring .cs-hero { opacity: 0; }
.cs-hero-media { width: 100%; height: 100%; object-fit: cover; display: block; }

.cs-ghost {
  position: fixed;
  z-index: 300;
  overflow: hidden;
  background: var(--surface);
  transition: top 0.65s var(--ease-out), left 0.65s var(--ease-out),
    width 0.65s var(--ease-out), height 0.65s var(--ease-out),
    border-radius 0.65s var(--ease-out);
  will-change: top, left, width, height;
}
.cs-ghost .cs-hero-media { width: 100%; height: 100%; }

.cs-prelude {
  padding-top: clamp(76px, 11vh, 130px);
  display: grid;
  gap: clamp(20px, 2.6vw, 36px);
}
.cs-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cs-headline {
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  max-width: 18ch;
}
.cs-intro {
  display: grid;
  grid-template-columns: 180px 1.5fr 1fr;
  gap: clamp(20px, 3vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 2.6vw, 32px);
  align-items: start;
}
.lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.cs-intro .txt { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-60); max-width: 52ch; text-wrap: pretty; }
.cs-intro .kv { display: grid; gap: 16px; align-content: start; }
.cs-intro .kv div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cs-intro .kv dt { font-size: 13.5px; font-weight: 500; color: var(--ink-40); }
.cs-intro .kv dd { font-size: 14.5px; font-weight: 600; text-align: right; }

.cs-body { padding-top: clamp(40px, 6vw, 90px); padding-bottom: 40px; display: grid; gap: clamp(40px, 6vw, 90px); }

.cs-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 3vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 2.6vw, 32px);
  align-items: start;
}
.cs-statement {
  font-size: clamp(1.6rem, 3.2vw, 2.9rem);
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin-bottom: 18px;
}
.cs-prose { color: var(--ink-60); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.55; max-width: 58ch; text-wrap: pretty; }

.cs-link { display: flex; justify-content: center; }

.cs-gallery { display: grid; gap: clamp(16px, 2vw, 28px); }
.cs-gallery media-slot { width: 100%; height: auto; aspect-ratio: 16 / 10; }

.cs-nextwork { border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 40px); display: grid; gap: clamp(20px, 2.5vw, 36px); }
.cs-nexthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cs-nextlist { display: grid; }
.cs-nextrow {
  display: grid;
  grid-template-columns: 1fr auto 46px;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  padding: clamp(16px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: padding-left 0.4s var(--ease-out);
}
.cs-nextrow:hover { padding-left: 14px; }
.cs-nextrow .nm { font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; }
.cs-nextrow .tg { font-size: 14px; font-weight: 500; color: var(--ink-40); }
.cs-nextrow .go {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
.cs-nextrow:hover .go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

.cs-fade { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--d, 0s); }
.cs-overlay.ready .cs-fade { opacity: 1; transform: none; }
html.no-motion .cs-fade { opacity: 1; transform: none; transition: none; }

@media (max-width: 860px) {
  .cs-intro { grid-template-columns: 1fr; }
  .cs-block { grid-template-columns: 1fr; }
  .cs-hero { height: 48vh; }
  .cs-nextrow { grid-template-columns: 1fr 46px; }
  .cs-nextrow .tg { display: none; }
}

/* ---------- about page ---------- */

.about-intro {
  display: grid;
  grid-template-columns: 180px 1.6fr 1fr;
  gap: clamp(20px, 3vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 2.6vw, 32px);
  align-items: start;
  margin-top: clamp(12px, 2vw, 28px);
}
.about-intro .txt { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--ink-60); max-width: 50ch; text-wrap: pretty; }
.about-intro .side { font-size: 15px; color: var(--ink-40); max-width: 30ch; justify-self: end; text-align: left; }

.about-photo-band { margin: clamp(36px, 5vw, 72px) 10px 0; }
.about-photo-band image-slot { width: 100%; height: auto; aspect-ratio: 21 / 9; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 6vw, 90px);
}
.about-stats .as { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.about-stats .num { font-family: var(--font-display, inherit); font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.about-stats .num sup { font-size: 0.45em; color: var(--accent); }
.about-stats .as p { font-size: 14.5px; color: var(--ink-60); max-width: 24ch; }

.story-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(28px, 4vw, 56px);
}
.story-cols p { font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--ink-60); text-wrap: pretty; }
.story-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 4.5vw, 64px);
  padding-top: clamp(24px, 3vw, 40px);
}
.story-cta .pull { font-size: clamp(1.4rem, 2.6vw, 2.3rem); letter-spacing: -0.03em; max-width: 26ch; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 56px);
}
.client {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: clamp(110px, 13vw, 180px);
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink-60);
  transition: background 0.3s, color 0.3s;
}
.client:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 860px) {
  .about-intro { grid-template-columns: 1fr; }
  .about-intro .side { justify-self: start; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .story-cols { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .about-photo-band image-slot { aspect-ratio: 4 / 3; }
}

/* ---------- reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

.line-mask { overflow: hidden; display: block; }
.line-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.in .line-mask > span, .line-mask.in > span { transform: none; }

html.no-motion [data-reveal],
html.no-motion .line-mask > span { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .line-mask > span { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
