/* vDAI Interactive — huisstijl v1 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0C0D10;
  --graphite: #15171C;
  --steel: #1E2128;
  --line: #2A2D35;
  --bone: #EEEBE4;
  --fog: #8B8F99;
  --signal: #FF4F1F;
  --signal-dim: #FF4F1F26;

  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Archivo", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fog);
}
.label b { color: var(--signal); font-weight: 600; }

/* ---------- Brand lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lockup img { width: 36px; height: 36px; }
.lockup .word {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  line-height: 1;
}
.lockup .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--fog);
  margin-left: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled { background: #0C0D10e6; backdrop-filter: blur(10px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--fog); transition: color .2s;
}
.nav ul a:hover { color: var(--bone); }
.nav .cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 10px 16px; border: 1px solid var(--line);
  transition: border-color .2s, background .2s, color .2s;
}
.nav .cta:hover { border-color: var(--signal); background: var(--signal); color: var(--ink); }
@media (max-width: 760px) { .nav ul { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 4%, transparent 55%),
    linear-gradient(to right, var(--ink) 0%, #0C0D1000 70%);
}
.hero h1 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(44px, 9vw, 132px);
  line-height: .92;
  letter-spacing: -.045em;
  margin: 24px 0 0;
  max-width: 11ch;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-foot p { margin: 0; max-width: 46ch; color: #C9C6BF; font-size: 18px; }
.scroll-hint { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.scroll-hint span.tri {
  width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 10px solid var(--signal);
  animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 50% { transform: translateY(5px); } }
@media (max-width: 640px) { .hero-foot { grid-template-columns: 1fr; } }

/* Load-in */
.rise { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .38s; } .d4 { animation-delay: .52s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  .scroll-hint span.tri { animation: none; }
}

/* ---------- Sections ---------- */
section { padding: clamp(80px, 12vw, 160px) 0; }
.sec-head {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.sec-head h2 {
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(30px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em;
  margin: 0; max-width: 18ch;
}
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.svc {
  position: relative; padding: 36px 32px 44px 0; border-right: 1px solid var(--line);
}
.svc + .svc { padding-left: 32px; }
.svc:last-child { border-right: 0; }
.svc .num { font-family: var(--mono); font-size: 12px; color: var(--signal); letter-spacing: .1em; }
.svc h3 {
  font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 24px;
  letter-spacing: -.02em; margin: 56px 0 12px;
}
.svc p { margin: 0; color: #B9B6AF; font-size: 16px; }
.svc::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0;
  background: var(--signal); transition: width .5s var(--ease);
}
.svc + .svc::before { left: 32px; }
.svc:hover::before { width: calc(100% - 32px); }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .svc + .svc::before { left: 0; }
  .svc h3 { margin-top: 24px; }
}

/* Approach */
.approach { background: var(--graphite); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; counter-reset: s; }
.step { background: var(--ink); padding: 32px 28px 40px; min-height: 260px; display: flex; flex-direction: column; }
.step .label { margin-bottom: auto; }
.step h3 { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 22px; margin: 40px 0 10px; letter-spacing: -.02em; }
.step p { margin: 0; color: #B9B6AF; font-size: 15.5px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* Projects / in development */
.slot {
  position: relative; border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: 420px; overflow: hidden;
}
.slot-art {
  position: relative; background:
    repeating-linear-gradient(135deg, transparent 0 14px, #ffffff06 14px 15px),
    var(--graphite);
  display: grid; place-items: center; border-right: 1px solid var(--line);
}
.slot-art .tri {
  width: min(46%, 220px); aspect-ratio: 34 / 27;
  background: var(--signal);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; transform: scale(.94); } }
@media (prefers-reduced-motion: reduce) { .slot-art .tri { animation: none; } }
.slot-art .corner { position: absolute; font-family: var(--mono); font-size: 11px; color: var(--fog); letter-spacing: .12em; }
.slot-art .tl { top: 16px; left: 18px; } .slot-art .br { bottom: 16px; right: 18px; }
.slot-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.slot-body h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.035em; line-height: 1; margin: 16px 0 16px; }
.slot-body p { margin: 0; color: #B9B6AF; }
.status { display: inline-flex; align-items: center; gap: 10px; }
.status i { width: 8px; height: 8px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px var(--signal-dim); }
@media (max-width: 820px) {
  .slot { grid-template-columns: 1fr; }
  .slot-art { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Project: Coresanity */
.project { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.project-head { display: grid; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.project-title {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(32px, 10.8vw, 128px); line-height: .9; letter-spacing: -.05em;
  margin: 18px 0 0; text-transform: uppercase;
}
.project-tag { margin: 0; color: #C9C6BF; font-size: clamp(18px, 1.8vw, 22px); max-width: 44ch; }

.shot { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: var(--graphite); }
.shot img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .4s; }
.shot:hover img { transform: scale(1.025); }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--signal); transition: box-shadow .25s;
}
.shot:hover::after { box-shadow: inset 0 0 0 2px var(--signal); }
.shot-cap {
  position: absolute; left: 0; bottom: 0; padding: 8px 12px; font-size: 11px;
  background: #0C0D10d9; color: var(--bone);
}
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } .shot:hover img { transform: none; } }

.project-body {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px;
  padding: clamp(32px, 5vw, 64px) 0;
}
.project-text p { margin: 0 0 1em; color: #C9C6BF; max-width: 62ch; }
.project-text strong { color: var(--bone); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); align-self: start; }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.facts div:nth-child(even) { padding-left: 20px; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fog); }
.facts dd {
  margin: 6px 0 0; font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 40px; line-height: 1; letter-spacing: -.03em;
}
.facts dd.small { font-size: 16px; font-stretch: 100%; font-weight: 600; letter-spacing: 0; line-height: 1.4; padding-top: 8px; }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gallery .shot img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* Teaser video */
.teaser { position: relative; margin: 0; border: 1px solid var(--line); background: #000; overflow: hidden; }
.teaser-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; cursor: pointer; }
.teaser .shot-cap { pointer-events: none; }
.teaser-ctrl { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.teaser-ctrl .lb-btn { width: auto; min-width: 44px; height: 44px; padding: 0 14px; gap: 8px; grid-auto-flow: column; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.teaser-sound[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--ink); }
@media (max-width: 520px) { .teaser-ctrl .ts-text { display: none; } .teaser .shot-cap { display: none; } }
.wip-note { margin: 24px 0 0; }

/* Lightbox */
html.lb-open { overflow: hidden; }
.lightbox {
  border: 0; padding: 0; margin: 0; background: transparent; color: var(--bone);
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  height: 100dvh; overflow: hidden;
}
.lightbox::backdrop {
  background: #0C0D1059;
  -webkit-backdrop-filter: blur(12px) saturate(.85);
  backdrop-filter: blur(12px) saturate(.85);
}
.lightbox[open] { display: grid; place-items: center; animation: lb-in .28s var(--ease); }
.lightbox[open]::backdrop { animation: lb-fade .28s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
@keyframes lb-fade { from { opacity: 0; } }
.lb-stage {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "bar bar bar" "prev fig next"; align-items: center; gap: 12px 20px;
  width: min(1680px, 100vw); padding: 0 var(--gutter);
}
.lb-bar { grid-area: bar; display: flex; justify-content: space-between; align-items: center; padding: 0 64px; }
.lb-figure { grid-area: fig; margin: 0; display: grid; justify-items: center; min-width: 0; }
.lb-img {
  display: block; max-width: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto;
  border: 1px solid var(--line); box-shadow: 0 30px 80px -20px #000c; background: var(--graphite);
  user-select: none; -webkit-user-drag: none;
}
.lb-img.swap { animation: lb-swap .3s var(--ease); }
@keyframes lb-swap { from { opacity: .2; transform: translateX(var(--lb-dir, 0)); } }
.lb-cap { margin-top: 14px; color: var(--bone); text-align: center; }
.lb-count { color: var(--bone); }
.lb-btn {
  appearance: none; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); background: #0C0D10b3; color: var(--bone);
  font: 500 18px/1 var(--mono); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.lb-btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.lb-btn:disabled { opacity: .3; pointer-events: none; }
.lb-prev { grid-area: prev; } .lb-next { grid-area: next; }
@media (max-width: 760px) {
  .lb-stage { grid-template-columns: 1fr 1fr; grid-template-areas: "bar bar" "fig fig" "prev next"; gap: 14px; }
  .lb-bar { padding: 0; }
  .lb-prev { justify-self: end; } .lb-next { justify-self: start; }
  .lb-img { max-height: calc(100dvh - 220px); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox[open], .lightbox[open]::backdrop, .lb-img.swap { animation: none; }
}
.shot { cursor: zoom-in; }

/* Contact */
.contact h2 {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(40px, 8vw, 112px); line-height: .95; letter-spacing: -.045em; margin: 24px 0 40px;
}
.mail {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: clamp(15px, 2.2vw, 22px);
  text-decoration: none; padding: 18px 24px; border: 1px solid var(--line);
  transition: border-color .25s, background .25s, color .25s;
  max-width: 100%; overflow-wrap: anywhere;
}
.mail:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.mail .arrow { transition: transform .25s var(--ease); }
.mail:hover .arrow { transform: translateX(6px); }

/* 404 */
.notfound { min-height: 100svh; display: flex; align-items: center; padding: 48px 0; }
.notfound .lockup { margin-bottom: 64px; }
.notfound h1 {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(36px, 7vw, 96px); line-height: .95; letter-spacing: -.045em; margin: 20px 0 20px; max-width: 14ch;
}
.nf-text { color: #C9C6BF; max-width: 46ch; margin: 0 0 36px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer a { text-decoration: none; color: var(--fog); }
footer a:hover { color: var(--bone); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Brand guide page ---------- */
.bg-hero { padding: 160px 0 64px; border-bottom: 1px solid var(--line); }
.bg-hero h1 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(40px, 7vw, 96px); letter-spacing: -.045em; line-height: .95; margin: 20px 0 20px; }
.bg-hero p { max-width: 60ch; color: #C9C6BF; margin: 0; }
.bg-sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
.bg-sec > .wrap > .label { display: block; margin-bottom: 28px; }
.logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.logo-tile { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px solid var(--line); padding: 24px; position: relative; }
.logo-tile.light { background: var(--bone); color: var(--ink); }
.logo-tile.signal { background: var(--signal); color: var(--ink); }
.logo-tile .cap { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; opacity: .7; }
.logo-tile .big-mark { width: 120px; height: 120px; }
.logo-tile .lockup .word { font-size: clamp(22px, 2.6vw, 34px); }
.logo-tile .lockup img { width: 48px; height: 48px; }
.logo-tile.light .lockup .sub { color: #5A5E68; }
.logo-tile.signal .lockup .sub { color: var(--ink); }
@media (max-width: 900px) { .logo-grid { grid-template-columns: 1fr; } }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sw { border: 1px solid var(--line); }
.sw .chip { height: 120px; }
.sw .meta { padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.sw .meta strong { display: block; font-family: var(--body); font-size: 15px; font-weight: 600; }
.sw .meta span { color: var(--fog); }
@media (max-width: 1000px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.type-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.type-row .spec { font-family: var(--mono); font-size: 12px; color: var(--fog); line-height: 1.8; }
@media (max-width: 760px) { .type-row { grid-template-columns: 1fr; gap: 12px; } }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule { border: 1px solid var(--line); padding: 24px; }
.rule h3 { margin: 0 0 8px; font-size: 17px; }
.rule p { margin: 0; color: #B9B6AF; font-size: 15.5px; }
.rule .label b { margin-right: 6px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }
.dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dl a { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); }
.dl a:hover { border-color: var(--signal); color: var(--signal); }

/* Press kit (v6) */
.press-facts { margin-top: 28px; max-width: 900px; }
.press-facts a { color: var(--bone); }
.press-text { max-width: 70ch; margin-top: 28px; color: #C9C6BF; }
.press-text strong { color: var(--bone); }
.press-text ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.press-text li { margin: .35em 0; }
.press-text li::marker { color: var(--signal); }
.press-gallery { margin-top: 28px; }
