/* Three Sixty — public site. Design: "Three Sixty v2" (docs/design-reference). */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #07070a;
  --ink: #f2efe8;
  --muted: #9a968e;
  --soft: #c9c5bd;
  --surface: #101014;
  --surface-2: #0b0b0f;
  --accent: #1489b0;
  /* Accent for filled buttons with white text: #1489b0 gives 4.0:1, this gives 4.9:1. */
  --accent-strong: #117a9d;
  --purple: #5b2a9e;
  --magenta: #9a2a9a;
  --pink: #d4148f;
  --orange: #f26a1b;
  --yellow: #f7c31a;
  --grad-warm: linear-gradient(100deg, #d4148f 0%, #f26a1b 45%, #f7c31a 100%);
  --grad-bar: linear-gradient(90deg, #1489b0, #5b2a9e 45%, #d4148f 75%, #f7c31a);
  --line: rgba(255, 255, 255, .1);
  --line-soft: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .3);

  --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-rise: cubic-bezier(.2, .7, .2, 1);
  --gutter: max(16px, 5vw);
  --header-h: 71px;
  color-scheme: dark;
}

/* ------------------------------------------------------------------- fonts */
/* Self-hosted variable fonts (SIL OFL 1.1, licences in assets/fonts/). Nothing is loaded from
   third parties. Each family ships a latin file and a latin-ext file picked by unicode-range. */
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap;
  src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: italic; font-weight: 400; font-stretch: 100%; font-display: swap;
  src: url('fonts/instrument-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans'; font-style: italic; font-weight: 400; font-stretch: 100%; font-display: swap;
  src: url('fonts/instrument-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
button { font: inherit; color: inherit; }
abbr[title] { text-decoration: none; }

html { scrollbar-color: #2a2a31 var(--bg); scrollbar-width: thin; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus, .skip-link:focus-visible { transform: none; color: var(--bg); }

/* ------------------------------------------------------------ typography */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: ""; flex: none;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.03em;
}
.h1-page {
  margin: 0; max-width: 16ch;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 7vw, 112px); line-height: .95; letter-spacing: -.035em;
}
.balance { text-wrap: balance; }
.lead {
  margin: 0; max-width: 46ch;
  font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty;
}
.muted { color: var(--muted); }
.dot { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dot-sm { width: 4px; height: 4px; }
.u-link {
  display: inline-block; width: fit-content;
  padding-bottom: 4px; border-bottom: 1px solid var(--line-strong);
  transition: color .2s, border-color .2s;
}
.u-link:hover { border-color: var(--accent); }
.grad-text {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; cursor: pointer;
  transition: transform .35s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn-lg { padding: 16px 26px; font-size: 14px; }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: var(--accent-strong); color: #fff; }
.btn-accent { background: var(--accent-strong); color: #fff; }
.btn-accent:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); font-weight: 500; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(7, 7, 10, .7);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header-plain { position: relative; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: auto; }
.brand-mark { height: 34px; }
.brand-word { height: 18px; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: inline-block; padding: 4px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: none; }

.header-tools { display: flex; align-items: center; gap: 20px; }
.lang-switch {
  display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted);
}
.lang-switch a { display: inline-block; padding: 8px 4px; color: var(--muted); transition: color .2s; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { color: var(--ink); }
.lang-sep { padding: 0 2px; }

.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.menu-btn:hover { border-color: var(--ink); }
.menu-btn-icon { position: relative; display: block; width: 16px; height: 8px; }
.menu-btn-icon span {
  position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn-icon span:first-child { top: 0; }
.menu-btn-icon span:last-child { top: calc(100% - 1.5px); }
.menu-btn[aria-expanded="true"] .menu-btn-icon span:first-child { top: calc(50% - .75px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon span:last-child { top: calc(50% - .75px); transform: rotate(-45deg); }

.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad-bar);
  transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}

@media (max-width: 960px) {
  :root { --header-h: 71px; }
  .site-header { padding-top: 13px; padding-bottom: 13px; }
  .js .menu-btn { display: inline-flex; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 32px;
    background: rgba(7, 7, 10, .97);
    border-bottom: 1px solid var(--line-soft);
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a {
    display: block; padding: 16px 0;
    font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; text-transform: none;
    color: var(--ink); border-bottom: 1px solid var(--line-soft);
  }
  .js .nav-list a:hover, .js .nav-list a[aria-current="page"] { color: var(--accent); }
  .no-js .site-header { flex-wrap: wrap; }
  .no-js .site-nav { order: 3; width: 100%; }
  .no-js .nav-list { flex-wrap: wrap; gap: 8px 20px; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; align-self: flex-start; }
  .no-js .nav-cta { margin-top: 12px; }
}
@media (max-width: 400px) {
  .site-header { gap: 12px; }
  .header-tools { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { height: 28px; }
  .brand-word { height: 14px; }
}

/* ------------------------------------------------------- image placeholder */
.ph {
  display: block; width: 100%; height: 100%; min-height: 1px;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(20, 137, 176, .10), transparent 60%),
    linear-gradient(135deg, #15151b 0%, #0d0d11 100%);
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 40px var(--gutter) 36px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  display: block; width: 100%; height: 100%; object-fit: cover; opacity: .55;
  animation: kb 26s ease-in-out infinite alternate;
}
.hero-media .ph { position: absolute; inset: 0; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 10, .5) 0%, rgba(7, 7, 10, .25) 45%, #07070a 100%);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 72%) var(--my, 38%), rgba(20, 137, 176, .3), rgba(91, 42, 158, .16) 40%, transparent 65%);
  mix-blend-mode: screen;
}
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-a {
  left: -10vw; top: 10vh; width: 38vw; height: 38vw;
  background: radial-gradient(circle, rgba(20, 137, 176, .35), transparent 70%);
  filter: blur(40px);
  animation: orbA 22s ease-in-out infinite alternate;
}
.hero-orb-b {
  right: -8vw; bottom: -10vh; width: 32vw; height: 32vw;
  background: radial-gradient(circle, rgba(91, 42, 158, .4), transparent 70%);
  filter: blur(50px);
  animation: orbB 28s ease-in-out infinite alternate;
}
.hero-top {
  position: relative;
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  color: var(--soft);
}
.rec { display: flex; align-items: center; gap: 10px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(1) infinite; }
.tc { font-variant-numeric: tabular-nums; }
.hero-title {
  position: relative; margin: 0; max-width: 14ch;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(50px, 10.5vw, 176px); line-height: .92; letter-spacing: -.035em;
}
.word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: .06em 0 .08em; margin: -.06em 0 -.08em;
}
.word-in { display: inline-block; }
.hero-foot {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-sub {
  margin: 0; max-width: 44ch;
  font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; color: var(--soft); text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.cue-line { position: relative; display: block; width: 1px; height: 64px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.cue-line span { position: absolute; inset: 0; background: var(--ink); animation: cue 1.6s cubic-bezier(.6, 0, .4, 1) infinite; }

/* Hero entrance (fix 2): the hidden start state exists only once site.js has added .anim-in
   to <html> from a requestAnimationFrame callback (so: JS ran, the page is rendering, motion is
   allowed). .anim-done (timeout fallback) cancels the animations so nothing can stay hidden. */
.anim-in .hero-top { animation: fadeIn 1s .2s both; }
.anim-in .word-in { animation: wordIn 1s var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * .1s); }
.anim-in .hero-copy { animation: fadeIn 1.2s .7s both; }
.anim-in .scroll-cue { animation: fadeIn 1.2s .9s both; }
.anim-done .hero-top, .anim-done .word-in, .anim-done .hero-copy, .anim-done .scroll-cue { animation: none !important; }

@media (max-width: 640px) {
  .hero { gap: 36px; padding-top: 28px; padding-bottom: 32px; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .scroll-cue { display: none; }
  .hero-orb-a { width: 70vw; height: 70vw; }
  .hero-orb-b { width: 60vw; height: 60vw; }
}
@media (max-width: 400px) {
  .hero-title { font-size: 44px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* --------------------------------------------------------------- marquees */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.marquee-group li { display: flex; align-items: center; white-space: nowrap; text-transform: uppercase; }
.marquee-venues .marquee-group li {
  gap: 56px; padding-right: 56px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; color: var(--soft);
}
.marquee-foot { padding: 14px 0; }
.marquee-foot .marquee-track { animation-duration: 32s; }
.marquee-foot .marquee-group li {
  gap: 40px; padding-right: 40px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--muted);
}

/* ---------------------------------------------------------------- sections */
.section { padding: 140px var(--gutter) 0; }
.section.work { padding-top: 120px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.count { font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .section { padding-top: 96px; }
  .section.work { padding-top: 88px; }
}

/* ------------------------------------------------------------------- work */
.work-list-wrap { position: relative; border-top: 1px solid var(--line); }
.work-list { margin: 0; padding: 0; list-style: none; }
.work-row {
  display: grid; grid-template-columns: 48px minmax(0, 2fr) minmax(0, 1.2fr) auto;
  gap: 24px; align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: padding .4s var(--ease), background-color .3s;
}
.work-row:hover, .work-row:focus-visible { color: var(--ink); background: rgba(255, 255, 255, .035); }
.work-row:focus-visible { outline-offset: -2px; }
@media (hover: hover) {
  .work-row:hover, .work-row:focus-visible { padding-left: 28px; padding-right: 28px; }
}
.work-n { color: var(--muted); }
.work-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(20px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -.02em;
}
.work-venue { font-size: 15px; color: var(--muted); }
.work-tag { display: flex; align-items: center; justify-content: flex-end; gap: 16px; color: var(--muted); }
.work-arrow { font-size: 18px; letter-spacing: 0; color: var(--ink); transition: transform .3s var(--ease); }
.work-row:hover .work-arrow { transform: translate(3px, -3px); }
.work-preview {
  position: absolute; left: 0; top: 0; z-index: 5;
  width: min(380px, 36vw); aspect-ratio: 3 / 2;
  border-radius: 12px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-9999px, 0);
  transition: opacity .35s ease, transform .18s ease-out;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  background: var(--surface);
}
.work-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 720px) {
  .work-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px 12px; padding: 20px 2px;
  }
  .work-n { grid-row: 1; padding-top: 4px; }
  .work-title, .work-venue, .work-tag { grid-column: 2; }
  .work-venue:empty { display: none; }
  .work-tag { justify-content: space-between; }
  .work-preview { display: none; }
}

/* image strip */
.strip { overflow: hidden; padding: 80px 0 0; }
.strip-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.strip:hover .strip-track, .strip:focus-within .strip-track { animation-play-state: paused; }
.strip-group { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.strip-item {
  position: relative; display: block;
  width: clamp(240px, 26vw, 380px); aspect-ratio: 3 / 2;
  margin-right: 16px; border-radius: 10px; overflow: hidden;
  background: var(--surface);
}
.strip-item:focus-visible { outline-offset: -3px; }
.strip-item img, .strip-item .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-item img { transition: transform .6s; }
.strip-item:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .strip { padding-top: 56px; } }

/* --------------------------------------------------------------- services */
.services-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 32px; align-items: end;
}
.service-stack { position: relative; margin-top: 56px; }
.service-card {
  position: sticky; top: calc(var(--header-h) + 21px);
  min-height: min(68vh, 640px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px;
  padding: 40px; margin-bottom: 20px;
  border-radius: 24px; border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -30px 90px rgba(0, 0, 0, .7);
}
.service-body { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.service-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.service-title {
  margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px); line-height: 1; letter-spacing: -.02em;
}
.service-text { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; color: var(--soft); }
.service-media { position: relative; min-height: 260px; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.service-media img, .service-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cards taller than the viewport would hide their bottom under the next card. */
@media (max-width: 720px), (max-height: 680px) {
  .service-card {
    position: relative; top: auto; min-height: 0;
    gap: 24px; padding: 24px; border-radius: 18px;
    box-shadow: none;
  }
  .service-media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------- process */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px;
  margin: 48px 0 0; padding: 0; list-style: none;
}
.step {
  display: flex; flex-direction: column; gap: 56px;
  padding: 32px; border: 1px solid var(--line); border-radius: 20px;
  transition: border-color .3s;
}
.step:hover { border-color: rgba(20, 137, 176, .7); }
.step-n {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -.03em;
}
.step-n-1 { color: var(--accent); }
.step-n-2 { color: var(--magenta); }
.step-n-3 { color: var(--yellow); }
.step-title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.step-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
@media (max-width: 640px) { .step { gap: 32px; padding: 24px; } }

/* ----------------------------------------------------------------- studio */
.studio {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px; align-items: center;
}
.studio-copy { display: flex; flex-direction: column; gap: 24px; }
.studio-copy .kicker { margin: 0; }
.h2-studio { font-size: clamp(36px, 4.6vw, 64px); }
.studio-p { margin: 0; max-width: 52ch; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.studio-media {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: var(--surface);
}
.studio-img {
  position: absolute; left: 0; top: -8%;
  width: 100%; height: 116%; object-fit: cover; display: block;
  will-change: transform;
}
.studio-media .ph { position: absolute; inset: 0; }
.studio-badge {
  position: absolute; left: 20px; bottom: 20px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(7, 7, 10, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
}

/* ------------------------------------------------------------------ stats */
.stats {
  margin: 120px var(--gutter) 0; padding: 56px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
  margin: 0; padding: 0; list-style: none;
}
.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 5.5vw, 84px); line-height: 1; letter-spacing: -.03em;
}
.stat-label { margin-top: 12px; color: var(--muted); }
@media (max-width: 480px) {
  .stats { margin-top: 88px; padding: 40px 0; }
  .stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .stat-value { font-size: 34px; }
}

/* ----------------------------------------------------------------- footer */
.site-footer {
  display: flex; flex-direction: column; gap: 56px;
  padding: 140px var(--gutter) 32px;
}
.footer-talk { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-talk .kicker { margin-bottom: 24px; }
.talk-link {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 12vw, 200px); line-height: .9; letter-spacing: -.045em;
  color: var(--ink); transition: color .3s;
}
.talk-link:hover { color: var(--accent); }
.footer-direct {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0; padding: 0 0 12px; list-style: none;
  font-size: 18px;
}
.footer-logo { display: block; width: 150px; height: auto; margin: 0 0 -24px -10px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
  font-size: 14px; color: var(--muted);
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); padding: 2px 0; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-h {
  margin: 0 0 4px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
}
.footer-legal {
  align-self: end;
  display: flex; justify-content: space-between; gap: 16px;
  letter-spacing: .14em; white-space: nowrap; color: var(--muted);
}
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-footer { padding-top: 96px; gap: 44px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .talk-link { font-size: 48px; }
  .footer-direct { font-size: 16px; }
}

/* ------------------------------------------------- placeholder / error pages */
.page-placeholder, .error-main {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  min-height: 60vh;
  padding: 120px var(--gutter) 40px;
}
.page-placeholder .kicker, .error-main .kicker { margin: 0; }
.placeholder-media {
  position: relative; width: 100%; max-width: 720px; aspect-ratio: 3 / 2;
  border-radius: 16px; overflow: hidden; background: var(--surface);
}
.placeholder-media img, .placeholder-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .page-placeholder, .error-main { padding-top: 72px; } }

/* ------------------------------------------------------- shared (Tasks 7–8) */
[hidden] { display: none !important; }
.no-js [data-js-only], .no-js .r-ctl, .no-js .basket-btn { display: none !important; }
.js .no-js-only { display: none !important; }
html.scroll-lock { overflow: hidden; scrollbar-gutter: stable; }
html.scroll-lock body { overflow: hidden; }

.page-head { display: flex; flex-direction: column; gap: 24px; padding-top: 88px; }
.page-head .kicker { margin: 0; }
.page-head .h1-page { max-width: 18ch; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px;
  color: var(--muted); transition: color .2s;
}
.back-link:hover { color: var(--ink); }
.accent-text { color: var(--accent); }
.empty-note { margin: 0; padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed rgba(255, 255, 255, .14); border-radius: 16px; }

/* chips (work categories, rental families / types) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #b5b0a6;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip-n { font-family: var(--font-mono); font-size: 11px; font-weight: 400; opacity: .75; }
.chip-sm { padding: 8px 13px; font-size: 12px; font-weight: 500; }

/* ------------------------------------------------------------ work grid */
.work-index { padding-top: 56px; }
.chips-nav { padding-top: 24px; border-top: 1px solid var(--line); }
.work-count { margin: 20px 0 24px; color: var(--muted); }
.work-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px;
  margin: 0; padding: 0; list-style: none;
}
.work-cell { grid-column: span 2; min-width: 0; }
.work-cell[data-size="big"] { grid-column: span 3; }
.work-card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); border-radius: 12px; }
.work-card:hover { color: var(--ink); }
.work-card-media {
  position: relative; display: block; aspect-ratio: 4 / 3;
  border-radius: 12px; overflow: hidden; background: var(--surface);
}
.work-cell[data-size="big"] .work-card-media { aspect-ratio: 16 / 9; border-radius: 14px; }
.work-card-media img, .work-card-media .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease);
}
.work-card:hover .work-card-media img, .work-card:focus-visible .work-card-media img { transform: scale(1.04); }
.work-card-body { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.work-card-title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; text-wrap: pretty; }
.work-cell[data-size="big"] .work-card-title { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: -.02em; }
.work-card-venue { color: var(--muted); font-family: var(--font-body); font-size: 15px; letter-spacing: 0; }
.work-card-meta { flex: none; color: var(--muted); white-space: nowrap; }
@media (max-width: 960px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-cell, .work-cell[data-size="big"] { grid-column: span 1; }
  .work-cell[data-size="big"] .work-card-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .page-head { padding-top: 64px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .work-card-body { flex-direction: column; gap: 6px; }
}

/* ------------------------------------------------------------ album page */
.album-head { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; }
.album-head .kicker { margin: 12px 0 0; }
.h1-album {
  margin: 0; max-width: 20ch;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5.4vw, 84px); line-height: .98; letter-spacing: -.035em;
}
.album-venue { margin: 0; font-size: 19px; color: var(--soft); }
.album-desc { max-width: 62ch; font-size: 17px; line-height: 1.65; color: var(--soft); }
.album-desc p { margin: 0 0 1em; text-wrap: pretty; }
.album-desc p:last-child { margin-bottom: 0; }
.album-media { padding-top: 48px; }
.album-cover {
  position: relative; margin: 0; aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden; background: var(--surface);
}
.album-cover img, .album-cover .ph, .album-cover-link { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.album-cover img { object-fit: cover; }
.album-cover-link:focus-visible { outline-offset: -4px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px;
  margin: 16px 0 0; padding: 0; list-style: none;
}
.gallery-item {
  position: relative; display: block; aspect-ratio: 3 / 2;
  border-radius: 12px; overflow: hidden; background: var(--surface);
}
.gallery-item img, .gallery-item .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline-offset: -4px; }
.album-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 80px; }
.album-nav-link {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink);
  transition: border-color .25s;
}
.album-nav-link:hover { border-color: rgba(20, 137, 176, .7); color: var(--ink); }
.album-nav-link .mono { color: var(--muted); }
.album-nav-next { grid-column: 2; text-align: right; align-items: flex-end; }
.album-nav-title { font-family: var(--font-display); font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -.01em; line-height: 1.25; text-wrap: balance; }
.album-cta { padding-top: 80px; }
.album-cta-box {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
}
.album-cta-box .kicker { margin-bottom: 16px; }
.album-cta-title { font-size: clamp(28px, 3.6vw, 48px); max-width: 18ch; }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .album-cover { border-radius: 14px; }
  .album-nav { grid-template-columns: minmax(0, 1fr); padding-top: 56px; gap: 12px; }
  .album-nav-next { grid-column: 1; }
  .album-nav-link { padding: 18px 20px; }
  .album-cta { padding-top: 56px; }
  .album-cta-box { padding: 24px; border-radius: 18px; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 72px 88px;
  background: rgba(7, 7, 10, .96);
  animation: fadeIn .25s both;
}
.lightbox-stage { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox-btn {
  position: absolute; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(7, 7, 10, .6); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.lightbox-btn:hover { border-color: var(--ink); background: rgba(255, 255, 255, .08); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 20px; top: calc(50% - 24px); }
.lightbox-next { right: 20px; top: calc(50% - 24px); }
.lightbox-count { position: absolute; left: 0; right: 0; bottom: 24px; margin: 0; text-align: center; color: var(--soft); }
@media (max-width: 640px) {
  .lightbox { padding: 72px 8px 88px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
  .lightbox-count { bottom: 28px; }
}

/* ---------------------------------------------------------------- forms */
.form, .drawer { --field-bg: var(--surface); }
.contact-form-wrap .form { --field-bg: var(--surface-2); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-size: 13px; color: var(--muted); }
.req { color: var(--muted); }
.form input:not([type="checkbox"]):not([type="hidden"]), .form select, .form textarea,
.drawer input:not([type="checkbox"]), .drawer select, .drawer textarea {
  width: 100%; min-height: 48px; margin: 0;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14); background: var(--field-bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.4;
  color-scheme: dark; transition: border-color .2s;
}
.form textarea, .drawer textarea { resize: vertical; line-height: 1.5; min-height: 96px; }
.form select, .drawer select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.form input::placeholder, .form textarea::placeholder, .drawer input::placeholder, .drawer textarea::placeholder { color: #8a867e; }
.form input:focus, .form select:focus, .form textarea:focus,
.drawer input:focus, .drawer select:focus, .drawer textarea:focus { border-color: var(--accent); }
.form [aria-invalid="true"], .drawer [aria-invalid="true"] { border-color: #e0524f !important; }
.field-error { margin: 0; font-size: 13px; line-height: 1.45; color: #f08a88; }
.field-hint { margin: 0; font-size: 13px; color: var(--muted); }
.field-hint:empty { display: none; }
.form-alert {
  margin: 0; padding: 12px 16px; border-radius: 10px;
  background: rgba(224, 82, 79, .12); border: 1px solid rgba(224, 82, 79, .5);
  font-size: 14px; line-height: 1.5; color: #f6b8b6;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid-2 { gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
@media (max-width: 400px) { .form-grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- contact */
.contact {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start;
  padding-top: 64px;
}
.contact-list { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.contact-list dt { margin-bottom: 8px; color: var(--muted); }
.contact-list dd { margin: 0; color: var(--soft); line-height: 1.6; }
.contact-big {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink); overflow-wrap: anywhere;
}
.contact-list address { font-style: normal; }
.office-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.office-list li { display: flex; flex-direction: column; gap: 2px; }
.office-list a { width: fit-content; color: var(--soft); }
.office-list a:hover { color: var(--accent); }
.office-name { color: var(--ink); font-weight: 600; }
.social-list { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.contact-form-wrap { padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: 13px; }
.form-submit[disabled] { opacity: .6; cursor: progress; }
.form-sent, .sent {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: 16px;
  background: rgba(20, 137, 176, .12); border: 1px solid rgba(20, 137, 176, .5);
}
.form-sent:focus, .sent:focus { outline: none; }
.form-sent:focus-visible, .sent:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-sent-kicker, .sent-kicker { margin: 0; color: #4fb3d6; letter-spacing: .16em; }
.form-sent-title, .sent-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.form-sent p { margin: 0; }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 640px) {
  .contact { padding-top: 48px; }
  .contact-form-wrap { padding: 24px 18px; border-radius: 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
}

/* ------------------------------------------------------- rental catalogue */
.r-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px; align-items: end; padding-top: 72px; padding-bottom: 40px;
}
.r-head .kicker { margin-bottom: 20px; }
.h1-rental {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6.5vw, 96px); line-height: .95; letter-spacing: -.035em;
}
.r-head-side { display: flex; flex-direction: column; gap: 20px; }
.r-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.r-search {
  flex: 1 1 240px; min-width: 0; min-height: 48px;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 16px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s;
}
.r-search::placeholder { color: #8a867e; }
.r-search:focus { border-color: var(--accent); }
.r-view { display: flex; gap: 4px; padding: 2px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(255, 255, 255, .14); }
.r-view button {
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.r-view button:hover { color: var(--ink); }
.r-view button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.r-catalogue { display: flex; flex-direction: column; gap: 20px; padding-top: 0; }
.r-chips { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.chips-sm { gap: 6px; }
.r-status { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; color: var(--muted); letter-spacing: .14em; }

.r-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.r-grid-related { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.r-card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 12px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .25s;
}
.r-card:hover { border-color: rgba(255, 255, 255, .28); }
.r-card.is-in { border-color: rgba(20, 137, 176, .6); }
.r-white { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.r-white .ph { background: linear-gradient(135deg, #f4f3ef, #e7e5df); }
.r-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.r-card-media { aspect-ratio: 4 / 3; border-radius: 10px; padding: 14px; }
.r-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.r-card-sub { font-size: 10px; color: var(--muted); }
.r-card-title { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.3; text-wrap: pretty; overflow-wrap: anywhere; }
.r-card-title a { color: var(--ink); transition: color .2s; }
.r-card-title a:hover { color: #4fb3d6; }
.r-card-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }

/* basket control */
.r-add {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: 44px; padding: 12px 16px; border-radius: 999px;
  border: 0; background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s;
}
.r-add:hover { background: var(--accent-strong); color: #fff; }
.r-add-short { display: none; }
.r-stepper {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 3px 3px 3px 16px; border-radius: 999px;
  background: rgba(20, 137, 176, .16); border: 1px solid rgba(20, 137, 176, .6);
}
.r-in { font-size: 12px; font-weight: 600; color: var(--ink); }
.r-step { display: flex; align-items: center; gap: 2px; }
.r-step-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);
  font-size: 16px; line-height: 1; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.r-step-btn:hover { border-color: var(--ink); }
.r-step-inc { border: 0; background: var(--accent-strong); color: #fff; }
.r-step-inc:hover { background: var(--accent); }
.r-qty { min-width: 28px; text-align: center; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.r-ctl-lg .r-add { display: inline-flex; justify-content: flex-start; width: auto; padding: 16px 28px; font-size: 14px; }
.r-ctl-lg .r-stepper { gap: 14px; padding: 4px 4px 4px 20px; }
.r-ctl-lg .r-in { font-size: 14px; }
.r-ctl-lg .r-qty { min-width: 36px; font-size: 15px; }

/* list view */
.r-grid.is-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.r-grid.is-list .r-card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent;
}
.r-grid.is-list .r-card.is-in { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.r-grid.is-list .r-card-media { width: 72px; height: 54px; aspect-ratio: auto; padding: 6px; border-radius: 8px; }
.r-grid.is-list .r-card-body { gap: 3px; }
.r-grid.is-list .r-add { width: auto; padding: 10px 16px; white-space: nowrap; }
.r-grid.is-list .r-add-long { display: none; }
.r-grid.is-list .r-add-short { display: inline; }
@media (max-width: 560px) {
  .r-grid.is-list .r-card { grid-template-columns: 56px minmax(0, 1fr); gap: 10px 14px; }
  .r-grid.is-list .r-card-media { width: 56px; height: 44px; }
  .r-grid.is-list .r-ctl { grid-column: 2; justify-self: start; }
  .r-grid.is-list .r-card-note { display: none; }
}

.r-empty { padding: 64px 24px; text-align: center; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.r-empty p { margin: 0; }
.r-empty [data-r-q] { color: var(--ink); }
.r-promises {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px;
  margin: 56px 0 0; padding: 40px; list-style: none;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
}
.r-promise { display: flex; flex-direction: column; gap: 8px; }
.r-promise-n { font-size: 11px; }
.r-promise-n-1 { color: #4fb3d6; }
.r-promise-n-2 { color: #d27ad2; }
.r-promise-n-3 { color: var(--yellow); }
.r-promise-title { margin: 0; font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.r-promise-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 640px) {
  .r-head { padding-top: 56px; padding-bottom: 28px; }
  .r-promises { padding: 24px; border-radius: 18px; }
}

/* ------------------------------------------------------- rental item page */
.r-item { display: flex; flex-direction: column; gap: 48px; padding-top: 32px; }
.r-item > .back-link { margin-bottom: -24px; }
.r-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: start; }
.r-gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.r-gallery-main { aspect-ratio: 4 / 3; border-radius: 20px; padding: 36px; }
.r-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.r-thumb { width: 76px; height: 58px; padding: 6px; border-radius: 8px; border: 2px solid transparent; }
.r-thumb[aria-current="true"] { border-color: var(--accent); }
.r-info { display: flex; flex-direction: column; gap: 24px; padding-top: 4px; min-width: 0; }
.r-info .kicker { margin: 0; }
.h1-item {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.r-desc { max-width: 58ch; font-size: 17px; line-height: 1.6; color: var(--soft); }
.r-desc p, .r-desc ul { margin: 0 0 .8em; text-wrap: pretty; }
.r-desc > :last-child { margin-bottom: 0; }
.r-desc ul { padding-left: 1.2em; }
.r-desc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.r-desc strong { color: var(--ink); }
.r-facts { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-facts div { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; }
.r-facts dt { flex: none; color: var(--muted); }
.r-facts dd { margin: 0; text-align: right; }
.r-item-actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.r-open-basket {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 6px;
  transition: color .2s;
}
.r-open-basket:hover { color: #4fb3d6; }
.r-item-note, .r-item-nojs { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.r-related { display: flex; flex-direction: column; gap: 20px; padding-top: 48px; border-top: 1px solid var(--line); }
.r-related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.r-related-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
@media (max-width: 480px) { .r-gallery-main { padding: 20px; border-radius: 14px; } }

/* --------------------------------------------------- basket: header + bar */
.basket-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 6px 7px 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s;
}
.basket-btn:hover { border-color: var(--ink); }
.basket-btn.has-items { border-color: var(--accent); }
.basket-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); color: var(--soft);
  font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums;
}
.basket-btn.has-items .basket-count { background: var(--accent-strong); color: #fff; }
@media (max-width: 1279px) { .has-basket .header-cta { display: none; } }
@media (max-width: 480px) {
  .has-basket .brand-word { display: none; }
  .has-basket .header-tools { gap: 10px; }
}
@media (max-width: 400px) {
  .basket-btn { padding-left: 7px; }
  .basket-btn-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

.basket-bar {
  position: fixed; left: 50%; bottom: 24px; z-index: 25;
  display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 22px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  transform: translateX(-50%);
  animation: pop .4s var(--ease) both;
}
.basket-bar:hover { color: var(--bg); }
.basket-bar-cta { padding: 10px 16px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: 13px; }
.basket-bar:hover .basket-bar-cta { background: var(--bg); }
@media (max-width: 400px) { .basket-bar { gap: 10px; padding-left: 16px; font-size: 13px; bottom: 16px; } }

/* ------------------------------------------------------------ basket drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fadeIn .25s both;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; flex-direction: column;
  width: min(520px, 100vw);
  background: var(--surface-2); border-left: 1px solid var(--line);
  box-shadow: -40px 0 120px rgba(0, 0, 0, .6);
  animation: slideIn .35s var(--ease) both;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line-soft); }
.drawer-kicker { margin: 0 0 6px; font-size: 10px; color: var(--muted); }
.drawer-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer; transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.drawer-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; scrollbar-width: thin; }
.drawer-main { display: flex; flex-direction: column; gap: 24px; }
.basket-empty { padding: 40px 24px; text-align: center; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.basket-empty p { margin: 0; }
.basket-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.text-btn { min-height: 44px; padding: 0 0 0 12px; border: 0; background: none; color: var(--muted); font-size: 10px; letter-spacing: .14em; cursor: pointer; }
.text-btn:hover { color: var(--ink); }
.basket-lines { margin: 0; padding: 0; list-style: none; }
.basket-line {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
}
.basket-line-media { width: 56px; height: 44px; padding: 4px; border-radius: 6px; }
.basket-line-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.basket-line-name { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.basket-line-sub { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.basket-line-ctl { display: flex; align-items: center; gap: 2px; }
.basket-line-ctl .r-step-btn { width: 40px; height: 40px; }
.r-remove { border: 0; color: var(--muted); margin-left: 4px; }
.r-remove:hover { color: #f08a88; }
.drawer-group { min-width: 0; margin: 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line-soft); }
.drawer-group > * + * { margin-top: 14px; }
.drawer-legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.drawer-legend + * { clear: both; margin-top: 0; }
.drawer-foot { display: flex; flex-direction: column; gap: 10px; padding: 16px 28px 22px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.drawer-submit {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; min-height: 52px; padding: 14px 22px; border-radius: 999px; border: 0;
  background: var(--accent-strong); color: #fff; font-size: 15px; font-weight: 600; text-align: left;
  cursor: pointer; transition: background-color .2s, color .2s;
}
.drawer-submit:hover { background: var(--ink); color: var(--bg); }
.drawer-submit[disabled] { opacity: .6; cursor: progress; }
.drawer-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.sent-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--soft); }
.sent-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.sent-rows div { display: flex; justify-content: space-between; gap: 12px; }
.sent-rows dd { margin: 0; color: var(--ink); text-align: right; }
.sent .btn { align-self: flex-start; }
@media (max-width: 480px) {
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .basket-line { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 12px; }
  .basket-line-media { width: 48px; height: 38px; }
  .basket-line-ctl { grid-column: 2; }
  .sent { padding: 20px; }
}

/* error page extras */
.error-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.error-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.error-links a:hover { color: var(--ink); }

@keyframes slideIn { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .work-card-media img, .gallery-item img { transition: none; transform: none !important; }
}
@media print {
  .drawer, .drawer-backdrop, .basket-bar, .basket-btn, .lightbox, .r-ctl, .r-tools, .r-chips { display: none !important; }
}

/* ------------------------------------------- big headings never clip (fix 1)
   Templates set --lw = characters in the heading's longest word (fit() in helpers.php).
   Each heading keeps its design size unless that word would be wider than the space
   available, measured for Unbounded (≈ .70em per character bold, .69em medium, incl. the
   negative tracking; .74 / .72 used as a safety margin). overflow-wrap is the last resort. */
:root { --fit-w: calc(100vw - 2 * var(--gutter) - 12px); }
.hero-title, .h2, .talk-link, .h1-page, .h1-album, .h1-rental, .h1-item, .service-title { overflow-wrap: anywhere; }
.hero-title { font-size: min(clamp(50px, 10.5vw, 176px), calc(var(--fit-w) / (var(--lw, 4) * .74))); }
.h2 { font-size: min(clamp(36px, 5vw, 72px), calc(var(--fit-w) / (var(--lw, 4) * .72))); }
.h2-studio { font-size: min(clamp(36px, 4.6vw, 64px), calc(var(--fit-w) / (var(--lw, 4) * .72))); }
.album-cta-title { font-size: min(clamp(28px, 3.6vw, 48px), calc((var(--fit-w) - 48px) / (var(--lw, 4) * .72))); }
.talk-link { font-size: min(clamp(56px, 12vw, 200px), calc(var(--fit-w) / (var(--lw, 4) * .72))); }
.h1-page { font-size: min(clamp(40px, 7vw, 112px), calc(var(--fit-w) / (var(--lw, 4) * .74))); }
.h1-album { font-size: min(clamp(34px, 5.4vw, 84px), calc(var(--fit-w) / (var(--lw, 4) * .74))); }
.h1-rental { font-size: min(clamp(40px, 6.5vw, 96px), calc(var(--fit-w) / (var(--lw, 4) * .74))); }
.h1-item { font-size: min(clamp(28px, 3.4vw, 48px), calc(var(--fit-w) / (var(--lw, 4) * .72))); }
.service-title { font-size: min(clamp(28px, 3.4vw, 52px), calc((var(--fit-w) - 80px) / (var(--lw, 4) * .72))); }
@media (max-width: 720px) {
  .service-title { font-size: min(clamp(28px, 3.4vw, 52px), calc((var(--fit-w) - 50px) / (var(--lw, 4) * .72))); }
}
@media (max-width: 400px) {
  .hero-title { font-size: min(44px, calc(var(--fit-w) / (var(--lw, 4) * .74))); }
  .talk-link { font-size: min(48px, calc(var(--fit-w) / (var(--lw, 4) * .72))); }
}

/* ---------------------------------------------- privacy page + form notes */
.legal { padding-top: 88px; }
.legal-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.legal-head .kicker, .legal-head p { margin: 0; }
.legal-body { max-width: 72ch; color: var(--soft); font-size: 17px; line-height: 1.7; }
.legal-body h2 { margin: 48px 0 12px; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p, .legal-body ul { margin: 0 0 1em; text-wrap: pretty; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li + li { margin-top: .5em; }
.legal-body strong { color: var(--ink); }
.privacy-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 640px) { .legal { padding-top: 64px; } .legal-body { font-size: 16px; } }

/* --------------------------------------------------------- scroll reveal */
/* Only hidden once site.js has confirmed it can reveal them (class on <html>). */
.rise-ready .rise:not(.in) { opacity: 0; transform: translateY(48px); }
.rise-ready .rise.in { animation: rise 1s var(--ease-rise) both; }

/* ------------------------------------------------------------- keyframes */
@keyframes rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wordIn { from { transform: translateY(110%) rotate(4deg); } to { transform: translateY(0) rotate(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes orbA { to { transform: translate(18vw, 14vh); } }
@keyframes orbB { to { transform: translate(-16vw, -10vh); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .15; } }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ------------------------------------------- reduced motion (design "calm") */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .hero-img, .rec-dot, .cue-line span { animation: none !important; }
  .hero-orb { display: none; }
  .marquee-track, .strip-track { animation: none !important; width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 10px; flex: 1 1 auto; }
  .marquee-group[aria-hidden="true"], .strip-group[aria-hidden="true"] { display: none; }
  .strip { overflow-x: auto; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
  .strip-track { width: max-content; }
  .studio-img { top: 0; height: 100%; transform: none !important; }
  .work-preview { transition: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .marquee, .strip, .hero-media, .hero-glow, .hero-orb, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
}
