/* Right Click sal — site styles
   Palette sampled from the brand logo: slate grey #818990, signal red #F0525F. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url(../fonts/dm-sans-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 100 1000; font-display: swap; src: url(../fonts/dm-sans-latin-wght-italic.woff2) format("woff2"); }

:root {
  --paper: #f7f5f2;
  --paper-2: #efebe5;
  --surface: #ffffff;
  --ink: #1b1d21;
  --ink-2: #474d55;
  --muted: #6c737b;
  --grey: #818990;
  --line: #e2ddd5;
  --red: #f0525f;
  --red-ink: #c8303f;
  --red-soft: #fde8ea;
  --night: #15171a;
  --night-2: #202328;

  /* Body and headings: DM Sans, sans-serif (--serif kept as an alias so existing rules follow) */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: var(--sans);

  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --section: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(20,22,26,.04), 0 12px 32px -12px rgba(20,22,26,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 1.0625rem/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--red) 60%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--sans); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.narrow { max-width: 760px; }
.narrow-s { max-width: 440px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-xs { width: .85em; height: .85em; display: inline-block; vertical-align: -.05em; }

/* ---------- Type scale ---------- */
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
.h2 em, .h3 em, .hero-title em { font-style: italic; color: var(--grey); }
.eyebrow { display: inline-flex; align-items: center; gap: .35em; font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; }
.eyebrow span { font: 600 1.9em/0 var(--serif); color: var(--red); transform: translateY(.18em); }
.prose { max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 1.4em; margin: .35em 0; }
.prose ul li::before { content: ""; position: absolute; left: .1em; top: .7em; width: .55em; height: 2px; background: var(--red); }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a:not(.btn) { color: var(--red-ink); }
.prose-lg { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); }
.prose > * + .btn { margin-top: 1.4rem; }

/* ---------- Buttons ---------- */
.btn { --b: var(--ink); --f: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.5rem; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: var(--f); font: 700 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { color: var(--f); transform: translateY(-1px); }
.btn:hover .icon { transform: translateX(3px); }
.btn-red { --b: var(--red); }
.btn-red:hover { --b: var(--red-ink); }
.btn-ink { --b: var(--ink); }
.btn-ink:hover { --b: #000; }
.btn-white { --b: #fff; --f: var(--ink); }
.btn-white:hover { --f: var(--red-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--ink); border-bottom: 2px solid var(--red); border-radius: 0; padding-bottom: 4px; }
.btn-link:hover { color: var(--red-ink); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.round-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { flex: none; display: block; }
.brand img { width: auto; height: 41px; } /* 34px + 20% */
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { position: relative; display: block; padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; border-radius: 999px; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-extra { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; place-items: center; }
.nav-toggle .i-close { display: none; }

@media (max-width: 980px) {
  /* backdrop-filter would make the fixed menu position relative to the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .header-inner { height: 68px; }
  .brand img { height: 34px; } /* 28px + 20% */
  .nav-toggle { display: grid; margin-left: auto; }
  .main-nav { position: fixed; inset: 68px 0 0 0; margin: 0; background: var(--paper); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font: 400 clamp(2rem, 8vw, 2.6rem)/1.15 var(--serif); padding: 10px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--red-ink); }
  .nav-extra { display: grid; gap: 12px; margin-top: 32px; }
  .main-nav .nav-extra a { display: flex; align-items: center; gap: 10px; font: 600 1rem/1.4 var(--sans); padding: 4px 0; border: 0; text-decoration: none; word-break: break-all; }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  body.nav-open .nav-toggle .i-open { display: none; }
  body.nav-open .nav-toggle .i-close { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding-bottom: calc(var(--section) * .5); }
.section-alt { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .h2 { margin: 0; max-width: 18ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.split .h2 { max-width: 14ch; }
.split-figure, .wide-figure { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; }
.split-figure img, .wide-figure img { width: 100%; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.9rem, 1.4rem + 6.4vw, 6.6rem); line-height: .98; letter-spacing: -.035em; margin-bottom: .35em; }
.hero-title .dot { color: var(--red); }
.hero-lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 34ch; margin-bottom: 2rem; color: var(--ink-2); }
.hero-art { position: relative; aspect-ratio: 4 / 4.4; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.hero-art.has-image { aspect-ratio: 4 / 3; }
.hero-art .hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-art:not(.has-image)::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, var(--red-soft), transparent 55%), radial-gradient(90% 70% at 0% 100%, var(--paper-2), transparent 60%); z-index: -1; }
.hero-quote { position: absolute; font: 600 clamp(14rem, 10rem + 14vw, 26rem)/1 var(--serif); user-select: none; }
.hero-quote.q1 { color: var(--grey); left: 6%; top: -6%; opacity: .9; }
.hero-quote.q2 { color: var(--red); right: 4%; bottom: -30%; animation: nod 6s var(--ease) infinite; transform-origin: 60% 30%; }
.hero-since { position: absolute; left: 8%; bottom: 8%; font: italic 400 1.25rem/1 var(--serif); color: var(--muted); }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art:not(.has-image) { display: none; }
}

.ticker { margin-top: clamp(48px, 7vw, 96px); border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--paper); }
.ticker-track, .marquee-track { display: flex; width: max-content; animation: scroll 60s linear infinite; }
.ticker:hover .ticker-track, .marquee:hover .marquee-track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li { font: italic 400 clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem)/1.2 var(--serif); color: var(--ink); white-space: nowrap; padding-right: .6em; }
.ticker .comma { color: var(--red); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats-band { background: var(--night); color: #c9ccd1; padding: clamp(48px, 7vw, 88px) 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 42%), 1fr)); gap: 32px 20px; }
.stats li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.stats strong { font: 400 clamp(3.2rem, 2.2rem + 4vw, 5.6rem)/1 var(--serif); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-suffix { font: 400 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--serif); color: var(--red); }
.stat-label { grid-column: 1 / -1; margin-top: 10px; font-weight: 600; letter-spacing: .02em; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: s; }
.service-card { position: relative; padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transition: background .3s; }
.service-card::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--red); transition: width .4s var(--ease); }
.service-card:hover { background: var(--surface); }
.service-card:hover::before { width: 100%; }
.service-no { display: block; font: 400 .95rem/1 var(--serif); color: var(--red-ink); margin-bottom: 2.2rem; font-variant-numeric: tabular-nums; }
.service-card h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card p { margin: 0; font-size: .98rem; color: var(--muted); }
@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } .service-no { margin-bottom: 1rem; } }

.services-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-index { position: sticky; top: 110px; }
.services-index ol { display: grid; gap: 2px; }
.services-index a { display: flex; gap: 12px; padding: 8px 0; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.services-index a span { font: 400 .85rem/1.6 var(--serif); color: var(--red-ink); }
.services-index a:hover, .services-index a.is-current { color: var(--ink); }
.service-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 24px; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row .service-no { font-size: 1.6rem; margin: .2rem 0 0; }
.service-summary { font: italic 400 1.2rem/1.45 var(--serif); color: var(--ink); }
.service-figure { grid-column: 2; margin: 1rem 0 0; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-index { position: static; }
  .services-index ol { display: flex; flex-wrap: wrap; gap: 8px; }
  .services-index a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; background: var(--paper); }
  .service-row { grid-template-columns: 1fr; }
  .service-figure { grid-column: 1; }
}

/* ---------- Portfolio ---------- */
.work-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-strip a, .pf-link { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; text-decoration: none; }
.work-strip img, .pf-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work-strip a:hover img, .pf-link:hover img { transform: scale(1.04); }
.work-strip span, .pf-meta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: rgba(255,255,255,.94); border-radius: 12px; color: var(--ink); font-weight: 700; font-size: .95rem; transform: translateY(8px); opacity: 0; transition: .3s var(--ease); }
.work-strip small, .pf-meta small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.work-strip a:hover span, .work-strip a:focus-visible span, .pf-link:hover .pf-meta, .pf-link:focus-visible .pf-meta { transform: none; opacity: 1; }
@media (hover: none) { .pf-meta, .work-strip span { opacity: 1; transform: none; } }
@media (max-width: 820px) { .work-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pf-filters { display: grid; gap: 14px; margin-bottom: 32px; }
.pf-groups, .pf-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-sm { min-height: 36px; padding: 0 14px; font-size: .84rem; font-weight: 600; }
.chip span { font-weight: 500; opacity: .6; font-size: .8em; }
.chip[hidden] { display: none; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pf-item.pf-beyond { display: none; }
.pf-more { display: grid; justify-items: center; gap: 10px; margin-top: 32px; }
.pf-more p { margin: 0; }
.pf-item[hidden] { display: none; }
.pf-item { position: relative; }
.pf-visit { position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.25); text-decoration: none; transition: background .2s, color .2s; }
.pf-visit .icon { width: 14px; height: 14px; }
.pf-visit:hover, .pf-visit:focus-visible { background: var(--red); color: #fff; }
.lb-visit { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 600; color: #c9ccd1; text-decoration: underline; text-underline-offset: 3px; }
.lb-visit:hover { color: #fff; }
.pf-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(240,82,95,.45); }
.pf-play .icon { width: 26px; height: 26px; margin-left: 3px; }
@media (max-width: 560px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pf-meta { display: none; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,13,15,.94); display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 24px 0; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; display: grid; justify-items: center; gap: 14px; max-height: 100%; }
.lb-media img { max-height: calc(100vh - 140px); width: auto; border-radius: 8px; }
.lb-media iframe { width: min(90vw, 1100px); aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.lb-stage figcaption { color: #e7e8ea; text-align: center; font-weight: 600; }
.lb-stage figcaption small { display: block; color: #9aa0a7; font-weight: 500; }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-nav { justify-self: center; }
.lightbox .round-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.lightbox .round-btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 700px) { .lightbox { grid-template-columns: 1fr; } .lb-nav { position: absolute; bottom: 20px; } .lb-prev { left: 30%; } .lb-next { right: 30%; } .lb-media img { max-height: calc(100vh - 200px); } }

/* Logos / non-4:3 images in portfolio tiles: show whole on white, never zoomed */
.work-strip a.fit-contain, .pf-link.fit-contain { background: #fff; border: 1px solid var(--line); }
.work-strip a.fit-contain img, .pf-link.fit-contain img { object-fit: contain; padding: 12% 14%; }
.work-strip a.fit-contain:hover img, .pf-link.fit-contain:hover img { transform: scale(1.02); }

/* ---------- Clients ---------- */
.marquee { overflow: hidden; margin-top: 8px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { animation-duration: 70s; }
.marquee ul { display: flex; flex: none; gap: 16px; padding-right: 16px; }
.marquee li { flex: none; width: 200px; height: 110px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.marquee li img { max-height: 70px; width: auto; object-fit: contain; }
.marquee li.no-logo span { font: 400 1.15rem/1.2 var(--serif); color: var(--ink); text-align: center; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.filter-bar p { margin: 0; }
.search-field { position: relative; flex: 1 1 320px; max-width: 460px; }
.search-field .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { width: 100%; min-height: 52px; padding: 0 18px 0 50px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; color: var(--ink); }
.search-field input:focus { outline: none; border-color: var(--ink); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.client-grid li[hidden] { display: none; }
.client-tile { height: 120px; display: grid; place-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.client-tile:hover { border-color: var(--grey); transform: translateY(-2px); }
.client-tile img { max-height: 76px; width: auto; object-fit: contain; }
.client-tile.no-logo span { font: 400 1.05rem/1.25 var(--serif); color: var(--ink); text-align: center; }
@media (max-width: 480px) { .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .client-tile { height: 96px; } }
.empty-note { padding: 32px 0; color: var(--muted); }
.empty-state { padding: 48px; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--paper-2); overflow: hidden; }
.t-slider { position: relative; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; outline: none; }
.t-track::-webkit-scrollbar { display: none; }
.t-slide { scroll-snap-align: start; margin: 0; position: relative; padding: 8px 0 0; }
.t-mark { display: block; font: 600 9rem/.6 var(--serif); color: var(--red); height: .5em; }
.t-slide blockquote { margin: 0; }
.t-slide blockquote p { font: 400 clamp(1.7rem, 1.1rem + 2.6vw, 3.3rem)/1.18 var(--serif); color: var(--ink); letter-spacing: -.02em; max-width: 26ch; margin: 0 0 1.6rem; }
.t-slide figcaption { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .95rem; }
.t-slide figcaption strong { color: var(--ink); font-size: 1.05rem; }
.t-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; background: #fff; padding: 6px; }
.t-controls { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.t-count { font: 400 1rem/1 var(--serif); color: var(--muted); min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .sr-only-mobile { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Duo / CTA ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { padding: clamp(32px, 5vw, 64px); border-radius: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.duo-card .prose { margin-bottom: 2rem; }
.duo-light { background: var(--surface); }
.duo-red { background: var(--red); color: #fff; }
.duo-red h2, .duo-red .eyebrow, .duo-red .eyebrow span, .duo-red .prose strong { color: #fff; }
.duo-red .btn-white:hover { --f: var(--red-ink); }
@media (max-width: 820px) { .duo-grid { grid-template-columns: 1fr; } }

.cta-band { background: var(--night); color: #c9ccd1; padding: clamp(56px, 8vw, 104px) 0; }
.cta-band .h2 { color: #fff; }
.cta-band .eyebrow { color: #9aa0a7; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-inner .prose { color: #c9ccd1; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero.has-image { color: #fff; border: 0; padding: clamp(80px, 12vw, 180px) 0 clamp(48px, 7vw, 88px); }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,18,.25), rgba(15,16,18,.72)); }
.page-hero.has-image .page-title, .page-hero.has-image .page-lead, .page-hero.has-image .breadcrumbs, .page-hero.has-image .breadcrumbs a { color: #fff; }
.page-title { font-size: clamp(2.8rem, 1.6rem + 5.2vw, 6rem); letter-spacing: -.035em; margin: 0 0 .25em; }
.page-lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 46ch; margin: 0; color: var(--ink-2); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--red); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

/* ---------- About ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); }
.profile-figure { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.profile .h2 { max-width: 12ch; }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
.team-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 16px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: filter .4s, transform .6s var(--ease); }
.team-card:hover .team-photo img { filter: none; transform: scale(1.03); }
.team-photo.is-empty { display: grid; place-items: center; }
.team-photo.is-empty span { font: 400 clamp(3rem, 2rem + 3vw, 4.4rem)/1 var(--serif); color: var(--grey); letter-spacing: -.03em; }
.team-photo[data-tone="1"] { background: #f3e4e1; }
.team-photo[data-tone="2"] { background: #e6e8ea; }
.team-photo[data-tone="3"] { background: #ece6dc; }
.team-photo[data-tone="1"] span { color: var(--red-ink); }
.team-card h3 { font-size: 1.3rem; margin: 0 0 .15rem; }
.team-role { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 .5rem; }
.team-bio { font-size: .95rem; color: var(--muted); margin: 0; }
.team-links { display: flex; gap: 10px; margin: 10px 0 0; }
.team-links a { color: var(--muted); }
.affiliate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.affiliate { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease); }
a.affiliate:hover { border-color: var(--grey); transform: translateY(-2px); color: inherit; }
.affiliate-logo { height: 84px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.affiliate-logo img { max-height: 72px; width: auto; max-width: 200px; }
.affiliate-logo span { font: italic 400 1.6rem/1 var(--serif); color: var(--grey); }
.affiliate h3 { font: 700 1.05rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: .35rem; }
.affiliate p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ---------- Careers / forms ---------- */
.careers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.careers-grid > .form-card:only-child { grid-column: 1 / -1; max-width: 760px; }
@media (max-width: 900px) { .careers-grid { grid-template-columns: 1fr; } }
.accordion { border-top: 1px solid var(--line); }
.vacancy { border-bottom: 1px solid var(--line); }
.vacancy summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; }
.vacancy summary::-webkit-details-marker { display: none; }
.vacancy summary strong { display: block; font: 400 1.45rem/1.2 var(--serif); color: var(--ink); }
.vacancy summary small { font-weight: 600; color: var(--muted); font-size: .85rem; }
.acc-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.acc-icon::after { transform: rotate(90deg); }
.vacancy[open] .acc-icon { background: var(--ink); border-color: var(--ink); }
.vacancy[open] .acc-icon::before, .vacancy[open] .acc-icon::after { background: #fff; }
.vacancy[open] .acc-icon::after { transform: rotate(0); }
.vacancy-body { padding: 0 0 28px; }
.vacancy-loc { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--muted); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.section-alt .form-card { background: var(--paper); box-shadow: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 24px; }
.field-wide, .form-grid > .field-wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 8px; }
.req { color: var(--red-ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.section-alt .field input, .section-alt .field select, .section-alt .field textarea { background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231b1d21' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27,29,33,.07); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .file-ui { border-color: var(--red-ink); }
.field-error { color: var(--red-ink); font-size: .85rem; font-weight: 600; margin: 6px 0 0; }
.file-drop { position: relative; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.file-ui { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 18px; border: 1.5px dashed var(--grey); border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: .95rem; background: #fff; }
.file-drop input:focus-visible + .file-ui { outline: 2px solid var(--red); outline-offset: 2px; }
.file-drop:hover .file-ui { border-color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; margin-top: 20px; font-weight: 600; font-size: .95rem; }
.alert .icon { margin-top: 2px; }
.alert-success { background: #e7f5ec; color: #17633a; }
.alert-error { background: var(--red-soft); color: #9b1f2c; }
button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; margin-top: 24px; }
.contact-cards li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.contact-cards small { display: block; font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-cards a { font-weight: 700; text-decoration: none; word-break: break-word; }
.cc-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red-ink); }
.map-section { padding-bottom: var(--section); }
.map-frame { position: relative; height: clamp(320px, 45vw, 480px); background: var(--paper-2) radial-gradient(circle at 50% 50%, #fff 0, transparent 60%); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4); }
.map-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; border: 0; background: none; cursor: pointer; text-align: center; color: var(--ink); }
.map-load > .icon { width: 44px; height: 44px; color: var(--red); }
.map-load strong { display: block; font: 400 1.8rem/1.1 var(--serif); }
.map-load small { color: var(--muted); font-weight: 600; }
.map-link { margin-top: 16px; font-weight: 700; }

/* ---------- Cards center ---------- */
.card-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card-type { display: block; text-decoration: none; color: inherit; }
.card-type h3 { font: 700 1.1rem/1.3 var(--sans); margin: 18px 0 4px; letter-spacing: 0; }
.card-type p { color: var(--muted); font-size: .95rem; margin: 0; }
.plastic { position: relative; aspect-ratio: 85.6 / 54; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #2a2d33, #121316); color: #fff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); transition: transform .4s var(--ease); }
.card-type:hover .plastic { transform: translateY(-4px) rotate(-1.5deg); }
.plastic img { width: 100%; height: 100%; object-fit: cover; }
/* Uploaded card design (front, optional back that flips into view on hover/focus) */
.plastic.has-design { background: none; overflow: visible; box-shadow: none; perspective: 1200px; }
.card-type:hover .plastic.has-design { transform: none; }
.plastic-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.plastic-face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); background: #fff; }
.plastic-back { transform: rotateY(180deg); }
.plastic.has-back:hover .plastic-inner, .card-type:focus-visible .plastic.has-back .plastic-inner { transform: rotateY(180deg); }
.plastic.has-design:not(.has-back):hover .plastic-inner { transform: translateY(-4px) rotate(-1.5deg); }
.plastic-hint { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 3px 9px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 600; pointer-events: none; transition: opacity .3s; }
.plastic.has-back:hover .plastic-hint { opacity: 0; }
@media (hover: none) { /* touch screens: show front and back in turn */
  .plastic.has-back .plastic-inner { animation: cardflip 7s var(--ease) infinite; }
  .plastic-hint { display: none; }
}
@keyframes cardflip { 0%, 40% { transform: none; } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .plastic-inner { transition: none; animation: none !important; } }
.plastic[data-tone="1"] { background: linear-gradient(135deg, #f0525f, #b8293a); }
.plastic[data-tone="2"] { background: linear-gradient(135deg, #8a929a, #4f565d); }
.plastic[data-tone="3"] { background: linear-gradient(135deg, #f4efe8, #d9d1c5); color: var(--ink); }
.plastic-chip { position: absolute; left: 9%; top: 32%; width: 15%; aspect-ratio: 1.3; border-radius: 6px; background: linear-gradient(135deg, #e9d18f, #b9974a); }
.plastic-title { position: absolute; left: 9%; bottom: 12%; font: 400 1.35rem/1 var(--serif); }
.plastic-mark { position: absolute; right: 8%; top: -6%; font: 600 5.5rem/1 var(--serif); opacity: .35; }
.spec-list ul li { padding: .6em 0 .6em 1.4em; border-bottom: 1px solid var(--line); margin: 0; }
.spec-list ul li::before { top: 1.25em; }

/* ---------- Error ---------- */
.error-page { text-align: center; }
.error-page .btn-row { justify-content: center; margin-top: 2rem; }
.error-page .page-lead { margin: 0 auto; }
.error-code { font: 400 clamp(6rem, 4rem + 10vw, 12rem)/1 var(--serif); color: var(--ink); letter-spacing: -.05em; margin: 0 0 .1em; }
.error-code span { color: var(--red); }

/* ---------- Footer ----------
   Layout: four columns, each headed by a large title sitting in a full-width band. */
.site-footer { --band: 72px; background: linear-gradient(var(--night-2) 0 var(--band), var(--night) var(--band)); color: #a9aeb5; font-size: 1rem; line-height: 1.75; }
.site-footer a { color: #e3e5e8; text-decoration: none; transition: color .2s; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--red); }
.site-footer strong { color: #e3e5e8; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; padding-bottom: 36px; }
.site-footer.no-gallery .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-h { height: var(--band); display: flex; align-items: center; margin: 0 0 14px; font: 400 clamp(1.6rem, 1.3rem + .8vw, 2rem)/1.1 var(--sans); letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.footer-logo img { height: 36px; width: auto; max-width: 100%; }
.footer-about { margin: 0 0 18px; max-width: 34ch; text-align: justify; }
.footer-links, .footer-list { display: grid; gap: 2px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; background: rgba(255,255,255,.1); color: #fff; }
.socials a .icon { width: 17px; height: 17px; }
.socials a:hover { background: var(--red); color: #fff; }
.footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: -4px; }
.footer-gallery li { aspect-ratio: 1; overflow: hidden; background: var(--night-2); }
.footer-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.footer-gallery li:hover img { transform: scale(1.06); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { margin: 0; }
@media (max-width: 1000px) {
  /* Columns stack: each title gets its own full-bleed band */
  .site-footer { background: var(--night); }
  .footer-grid, .site-footer.no-gallery .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .footer-col { padding-bottom: 28px; }
  .footer-h { background: var(--night-2); box-shadow: 0 0 0 100vmax var(--night-2); clip-path: inset(0 -100vmax); height: 64px; }
}
@media (max-width: 600px) {
  .footer-grid, .site-footer.no-gallery .footer-grid { grid-template-columns: 1fr; }
  .footer-about { text-align: left; }
  .footer-gallery { max-width: 360px; }
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } .ticker-track, .marquee-track, .hero-quote.q2 { animation: none; } }
@media print { .site-header, .site-footer, .ticker, .marquee { display: none; } body { background: #fff; } }
