/* vo.agency theme styles. Tokens first, then layout, then WordPress specific rules. */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/red-hat-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/red-hat-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/red-hat-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/red-hat-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/red-hat-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/red-hat-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/red-hat-text-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/red-hat-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/red-hat-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout: black stage, one framed 3D scene where loose glossy bars sort into four service rows on scroll, then a point of view, services, work and contact. Red is the only accent. */
:root {
  --bg: #0A0A0A;
  --panel: #141414;
  --line: #262626;
  --fg: #F4F4F2;
  --fg-2: #C9C9C5;
  --muted: #9B9B97;
  --red: #F0453A;
  --on-red: #0A0A0A;
  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --body: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, Menlo, monospace;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: var(--fg); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: calc(var(--gl) + 24px); padding-right: calc(var(--gr) + 24px); }
@media (max-width: 600px) { .wrap { padding-left: var(--gl); padding-right: var(--gr); } }
.label { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.02em; margin: 0; }

/* Header */
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.head .logo { height: 26px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.nav a { text-decoration: none; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { background: var(--panel); color: var(--fg); }
.pill { background: var(--red); color: var(--on-red) !important; font-weight: 600; }
.pill:hover { background: var(--fg) !important; color: var(--bg) !important; }
@media (max-width: 820px) { .nav a:not(.pill) { display: none; } }

/* Scene */
.scene { position: relative; height: 330vh; }
.stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); height: calc(100svh - 72px - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; padding-block: 8px 24px; }
.stage .wrap { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 20px; }
.intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.intro h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.2vw, 96px); line-height: 0.95; letter-spacing: -0.035em; }
.intro h1 span { color: var(--red); }
.intro p { margin: 0 0 6px; color: var(--fg-2); max-width: 40ch; }
.frame { position: relative; flex: 1; min-height: 300px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #1C1C1C 0%, #0F0F0F 60%, #0A0A0A 100%); border: 1px solid var(--line); }
.frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.corner { position: absolute; z-index: 2; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 16px 20px; }
.corner.tl { top: 0; left: 0; }
.corner.tr { top: 0; right: 0; text-align: right; }
.corner.br { bottom: 0; right: 0; }
.services-hud { position: absolute; z-index: 2; left: 0; bottom: 0; padding: 20px 24px; display: grid; gap: 6px; max-width: 420px; }
.hud-item { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; align-items: baseline; opacity: 0.38; transition: opacity 0.4s; }
.hud-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transform: translateY(1px); transition: background 0.4s; }
.hud-item b { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.hud-item span { grid-column: 2; font-size: 14px; color: var(--fg-2); display: none; }
.hud-item.on { opacity: 1; }
.hud-item.on i { background: var(--red); }
.hud-item.current span { display: block; }
.services-hud.aligned { inset: 0; padding: 0; max-width: none; display: block; pointer-events: none; }
.services-hud.aligned .hud-item { position: absolute; left: 32px; width: min(300px, 26%); transform: translateY(-14px); }
.services-hud.aligned .hud-item span { position: absolute; top: 100%; left: 26px; right: 0; font-size: 13px; line-height: 1.4; }
.fallback { position: absolute; inset: 0; display: none; place-content: center; gap: 18px; padding: 40px; }
.fallback div { display: flex; gap: 12px; justify-content: center; }
.fallback em { display: block; width: 72px; height: 18px; border-radius: 9px; background: #3A3A3A; }
.fallback div:nth-child(1) em:nth-child(2), .fallback div:nth-child(3) em:nth-child(4) { background: var(--red); }
.no-gl .fallback { display: grid; }
@media (max-width: 760px) {
  .scene { height: 280vh; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro p { display: none; }
  .corner.tr, .corner.br { display: none; }
  .services-hud { padding: 16px; }
  .hud-item b { font-size: 17px; }
}
.scene.static { height: auto; }
.scene.static .stage { position: static; height: auto; }
.scene.static .frame { height: 70vh; flex: none; }

/* Sections */
.section { border-top: 1px solid var(--line); }
.section > .wrap { padding-block: 96px 112px; }
.belief h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 76px); line-height: 1; letter-spacing: -0.03em; max-width: 16ch; }
.belief .lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; color: var(--fg-2); max-width: 46ch; margin: 32px 0 0; }
.beliefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; }
.beliefs div { border-top: 2px solid var(--fg); padding-top: 20px; }
.beliefs div:first-child { border-color: var(--red); }
.beliefs h3 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.beliefs p { margin: 10px 0 0; color: var(--fg-2); font-size: 16px; }
@media (max-width: 820px) { .beliefs { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 48px; }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { border-bottom: 1px solid var(--line); }
.svc a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; gap: 16px 40px; align-items: baseline; padding: 30px 0; text-decoration: none; }
.svc h3 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 52px); letter-spacing: -0.03em; line-height: 1.05; transition: color 0.25s; }
.svc p { margin: 0; color: var(--fg-2); }
.svc .arrow { font-family: var(--mono); font-size: 22px; color: var(--muted); text-align: right; transition: transform 0.25s, color 0.25s; }
.svc a:hover h3, .svc a:hover .arrow { color: var(--red); }
.svc a:hover .arrow { transform: translateX(6px); }
@media (max-width: 760px) { .svc a { grid-template-columns: minmax(0, 1fr) 32px; } .svc p { grid-column: 1; } .svc .arrow { grid-row: 1; grid-column: 2; } }

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { position: relative; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; text-decoration: none; }
.case.wide { grid-column: span 2; aspect-ratio: 21 / 8; }
.case .ph { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-right: 84px; }
.case h3 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1.05; max-width: 18ch; }
.case p { margin: 8px 0 0; color: var(--fg-2); font-size: 15px; }
.case::after { content: ""; position: absolute; right: 28px; top: 28px; width: 56px; height: 12px; border-radius: 6px; background: var(--red); z-index: 1; }
.case:hover { border-color: #3A3A3A; }
@media (max-width: 760px) { .work { grid-template-columns: minmax(0, 1fr); } .case.wide { grid-column: auto; aspect-ratio: 4 / 3; } }

.geo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.geo h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 64px); letter-spacing: -0.03em; line-height: 1; }
.geo .answer { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.45; margin: 0; color: var(--fg); }
.geo .answer + p { color: var(--fg-2); margin: 20px 0 0; }
@media (max-width: 820px) { .geo { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 21px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 24px; color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 24px; max-width: 64ch; color: var(--fg-2); }

.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact h2 { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 9vw, 150px); line-height: 0.9; letter-spacing: -0.045em; }
.contact h2 span { color: var(--red); }
.direct { margin: 36px 0 0; display: grid; gap: 6px; font-size: 18px; }
.direct span { user-select: all; }
form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; resize: vertical; font-size: 16px; padding: 12px 14px; min-height: 48px; border: 1px solid #333; background: var(--bg); color: var(--fg); border-radius: 10px; width: 100%; }
.btn { justify-self: start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--red); color: var(--on-red); font: 600 16px var(--body); border: 0; cursor: pointer; }
.btn:hover { background: var(--fg); }
.note { margin: 0; min-height: 1.6em; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* WordPress */
.admin-bar .head { top: calc(env(safe-area-inset-top, 0px) + 32px); }
.admin-bar .stage { top: calc(env(safe-area-inset-top, 0px) + 104px); height: calc(100svh - 104px - env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) {
  .admin-bar .head { top: calc(env(safe-area-inset-top, 0px) + 46px); }
  .admin-bar .stage { top: calc(env(safe-area-inset-top, 0px) + 118px); height: calc(100svh - 118px - env(safe-area-inset-top, 0px)); }
}
.screen-reader-text { 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:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--red); color: var(--on-red); border-radius: 999px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.note.ok { color: var(--fg); }
.note.err { color: var(--red); }
.consent { margin: 0; font-size: 13px; color: var(--muted); }
.consent a { color: var(--fg-2); }

/* Pages, posts and case studies */
.page-head { padding-block: 72px 32px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.035em; }
.page-head p { color: var(--fg-2); max-width: 56ch; margin: 20px 0 0; font-size: 19px; }
.prose { max-width: 72ch; padding-bottom: 112px; color: var(--fg-2); }
.prose h2, .prose h3 { font-family: var(--display); color: var(--fg); letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose h2 { font-size: 34px; font-weight: 800; }
.prose h3 { font-size: 24px; font-weight: 700; }
.prose a { color: var(--fg); }
.prose img, .prose figure { max-width: 100%; height: auto; border-radius: 16px; }
.prose figure { margin: 32px 0; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose blockquote { margin: 32px 0; padding-left: 20px; border-left: 3px solid var(--red); color: var(--fg); font-size: 21px; }
.cover { margin: 0 0 48px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.cover img { display: block; width: 100%; height: auto; }
.post-list { list-style: none; margin: 0; padding: 0 0 112px; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 28px 0; text-decoration: none; }
.post-list h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; }
.post-list p { margin: 8px 0 0; color: var(--fg-2); }
.case img.case-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.3s; }
.case:hover img.case-img { opacity: 0.75; }
.case > * { position: relative; }
.case .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.2) 60%); }
.lost { padding-block: 120px; }
.lost h1 { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 12vw, 180px); letter-spacing: -0.05em; line-height: 0.9; }
.lost h1 span { color: var(--red); }
.lost p { color: var(--fg-2); font-size: 19px; margin: 24px 0 32px; }

/* Scroll motion (assets/js/motion.js). Only applies when the script runs and motion is allowed. */
.strip { overflow: hidden; border-top: 1px solid var(--line); padding-block: 40px; }
.strip-track { display: flex; align-items: center; gap: 0.45em; white-space: nowrap; width: max-content; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 148px); line-height: 1; letter-spacing: -0.035em; will-change: transform; }
.strip-track .o { color: transparent; -webkit-text-stroke: 1.5px var(--fg-2); }
.strip-track i { display: inline-block; flex: none; width: 0.9em; height: 0.2em; border-radius: 0.1em; background: var(--red); }
.js-motion [data-reveal] { opacity: 0; transform: translate3d(0, 44px, 0); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 90ms), transform 0.9s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 90ms); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }
.js-motion .lit-w { opacity: 0.16; transition: opacity 0.35s ease; }
.js-motion .lit-w.on { opacity: 1; }
.beliefs div { position: relative; }
.js-motion .beliefs div::before { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 140ms + 200ms); }
.js-motion .beliefs div.in::before { transform: scaleX(1); }

.js-motion .svc li::after { content: ""; display: block; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(.2,.7,.2,1) 0.15s; margin-top: -1px; }
.js-motion .svc li.in::after { transform: scaleX(1); }
.js-motion .svc li.in:hover::after { transform: scaleX(1); }
[data-drift] { will-change: transform; }
.js-motion .case.in .case-img { animation: vo-settle 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vo-settle { from { transform: scale(1.12); } to { transform: none; } }
[data-zoom] { transform-origin: left bottom; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .strip-track { transform: none !important; } }
