/* Veybren Studios. One dark look, built around the mark: ink, bone, one cold light. */

@font-face { font-family: "Oswald"; src: url("fonts/oswald.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("fonts/spectral-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #0c0d10;
  --ink-2: #121419;
  --ink-3: #1a1d24;
  --line: #2a2e37;
  --bone: #ece6d8;
  --bone-2: #b9b3a6;
  --muted: #8a8a84;
  --accent: #5cb8ff;
  --accent-dim: rgba(92, 184, 255, 0.16);
  --paper: #e9e2d0;
  --paper-ink: #17181b;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine grain over everything, so flat ink reads as a surface. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--bone); text-decoration-color: rgba(236, 230, 216, 0.35); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: #fff; text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ink); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: 0.01em; margin: 0 0 0.6em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: 1.05rem; letter-spacing: 0.08em; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.15em; color: var(--bone); }
.prose { max-width: 62ch; color: var(--bone-2); }
.prose .lead { color: var(--bone); }
.prose a { color: var(--bone); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(12, 13, 16, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(42, 46, 55, 0.6); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand .vy-mark-sm { width: 26px; height: 26px; }
.brand .vy-name { height: 15px; width: auto; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.top nav a { text-decoration: none; color: var(--bone-2); padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--bone); }
.menu-btn { display: none; }
/* Phones and small tablets: the links fold into a menu (only when scripts run; without them the links wrap). */
@media (max-width: 760px) {
  .top nav { gap: 2px 14px; font-size: 0.66rem; letter-spacing: 0.12em; }
  .has-js .menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(236, 230, 216, .3); color: var(--bone); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
  .menu-ico { position: relative; width: 14px; height: 1px; background: currentColor; }
  .menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; width: 14px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-ico::before { top: -4px; } .menu-ico::after { top: 4px; }
  .menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-ico::before { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ico::after { transform: translateY(-4px) rotate(-45deg); }
  .has-js .top nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; background: rgba(12, 13, 16, .97); border-bottom: 1px solid var(--line); font-size: 0.78rem; }
  .has-js .top nav.open { display: flex; }
  .has-js .top nav a { padding: 14px 0; border-bottom: 1px solid rgba(42, 46, 55, .6); }
  .has-js .top nav a:last-child { border-bottom: 0; }
  .hero-in .kicker { letter-spacing: 0.14em; font-size: 0.66rem; }
  .hero-in .kicker i { padding: 0 0.4em; }
}
@media (max-width: 420px) { .brand .vy-name { display: none; } }

/* Hero */
.hero { position: relative; min-height: min(92svh, 980px); display: grid; place-items: center; text-align: center; padding: 72px 0 96px; overflow: hidden; isolation: isolate; }
.hero-sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, rgba(92, 184, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 120%, #06070a 30%, transparent 70%),
    linear-gradient(180deg, #0a0b0e 0%, var(--ink) 60%);
}
.hero-in { display: flex; flex-direction: column; align-items: center; }
/* The end card of the ident: the mark, its light, the name. */
.hero-pass { width: clamp(150px, min(26vw, 34svh), 300px); margin-bottom: clamp(14px, 3.4vw, 30px); }
.hero-pass .vy-mark { display: block; width: 100%; height: auto; overflow: visible; }
.hero-pass .vy-mark circle { animation: breathe 5.5s ease-in-out infinite; transform-origin: 100px 120px; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .86; } }
.hero-name { margin: 0; width: clamp(220px, min(70vw, 42svh), 380px); color: var(--bone); line-height: 0; }
.hero-name .vy-word { width: 100%; height: auto; }
.hero-act { margin: 30px 0 0; }
.btn.play { cursor: pointer; }
.btn.play span { color: var(--muted); letter-spacing: 0.1em; }
.btn.play::before { content: ""; width: 0; height: 0; border-left: 8px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
dialog.ident { padding: 0; border: 1px solid var(--line); background: #000; width: min(1200px, 94vw); max-width: none; color: var(--bone); }
dialog.ident::backdrop { background: rgba(4, 5, 7, .88); }
dialog.ident video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
dialog.ident form { position: absolute; top: 8px; right: 8px; margin: 0; }
.ident-x { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone); background: rgba(12, 13, 16, .7); border: 1px solid rgba(236, 230, 216, .35); padding: 6px 10px; cursor: pointer; }
.hero-line { margin: clamp(22px, 4vw, 34px) auto 0; max-width: 34ch; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); font-style: italic; color: var(--bone); line-height: 1.45; }
.kicker { margin: 22px 0 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.kicker i { font-style: normal; color: var(--accent); padding: 0 0.6em; }
.hero-down { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid rgba(236, 230, 216, 0.3); border-radius: 14px; }
.hero-down span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--bone); border-radius: 1px; animation: drop 2.2s ease-in-out infinite; }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Sections */
.sec { padding: clamp(72px, 11vw, 140px) 0; border-top: 1px solid var(--line); position: relative; }
.hero + .sec { border-top: 0; }
.idx { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.idx i { display: inline-block; width: 36px; height: 1px; background: currentColor; opacity: .6; }

.pillars { list-style: none; padding: 0; margin: clamp(44px, 7vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillars li { background: var(--ink); padding: clamp(24px, 3vw, 36px); }
.pillars h3 { text-transform: uppercase; margin-bottom: 0.8em; }
.pillars h3::before { content: ""; display: block; width: 8px; height: 8px; margin-bottom: 18px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 12px var(--accent-dim); }
.pillars p { margin: 0; color: var(--bone-2); font-size: 0.98em; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-rev > :first-child { order: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.sec-engine { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.spec { margin: 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.spec > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-top: 0.35em; }
.spec dd { margin: 0; color: var(--bone); }
.spec-wide > div { grid-template-columns: 9em 1fr; }
@media (max-width: 420px) { .spec > div, .spec-wide > div { grid-template-columns: 1fr; gap: 2px; } }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 0.1em; box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 184, 255, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(92, 184, 255, 0); } }

/* The project file: the one paper object on the site. */
.dossier { position: relative; background: var(--paper); color: var(--paper-ink); padding: clamp(22px, 3.4vw, 34px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .4); transform: rotate(-0.6deg); font-family: var(--mono); font-size: 0.82rem; overflow: hidden; }
.dossier::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 80% 0%, rgba(255, 255, 255, .35), transparent 50%), radial-gradient(ellipse at 0% 100%, rgba(120, 100, 60, .12), transparent 60%); }
.dossier-head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--paper-ink); padding-bottom: 10px; margin-bottom: 6px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.dossier dl { margin: 0; }
.dossier dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(23, 24, 27, .3); }
.dossier dt { text-transform: uppercase; letter-spacing: 0.14em; opacity: .6; }
.dossier dd { margin: 0; }
.redact { display: inline-block; width: var(--w, 8ch); height: 1.05em; vertical-align: -0.15em; background: var(--paper-ink); color: transparent; overflow: hidden; user-select: none; margin: 0 2px 2px 0; }
.dossier { padding-bottom: 78px; }
.stamp { position: absolute; right: 22px; bottom: 18px; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(160, 32, 28, .78); border: 3px solid rgba(160, 32, 28, .7); padding: 2px 12px; transform: rotate(-12deg); mix-blend-mode: multiply; }
@media (max-width: 420px) { .dossier dl > div { grid-template-columns: 1fr; gap: 2px; } .dossier { padding-bottom: 76px; } .stamp { font-size: 1rem; bottom: 22px; right: 18px; } }

.sec-founder { background: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(92, 184, 255, 0.05), transparent 70%); }
.links { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.links a, .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid rgba(236, 230, 216, .35); text-decoration: none; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; transition: border-color .2s, background .2s, color .2s; }
.links a:hover, .btn:hover { border-color: var(--accent); background: var(--accent-dim); color: #fff; }

.sec-contact { text-align: center; }
.sec-contact h2 { margin-bottom: 0.4em; }
.sec-contact p { color: var(--bone-2); }
.big-mail { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); letter-spacing: 0.01em; margin: 18px 0 30px; overflow-wrap: anywhere; }
.big-mail a { text-decoration: none; border-bottom: 1px solid var(--accent); }

/* Press */
.page-head { padding-top: clamp(56px, 9vw, 110px); border-top: 0; }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.2rem); }
.label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 26px 0 10px; }
.boiler { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--bone-2); }
.boiler p:last-child { margin-bottom: 0; }
.note { color: var(--muted); max-width: 70ch; }
.logos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
@media (max-width: 760px) { .logos { grid-template-columns: 1fr; } }
.logos h3 { margin: 16px 0 4px; }
.logos p { margin: 0 0 6px; color: var(--bone-2); font-size: 0.95rem; }
.logos .dl { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted); }
.logo-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.logo-pair figure { margin: 0; aspect-ratio: 4 / 3; position: relative; }
.logo-pair figure { min-width: 0; min-height: 0; }
.logo-pair img { display: block; position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.on-ink { background: var(--ink-2); }
.on-bone { background: var(--bone); }
.swatches { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 0.95rem; }
.swatches li { display: flex; align-items: center; gap: 10px; }
.swatches span { width: 28px; height: 28px; border: 1px solid var(--line); }
code { font-family: var(--mono); font-size: 0.85em; color: var(--bone-2); }
.nf { min-height: 60vh; }

/* Devlog */
.posts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts article { display: grid; grid-template-columns: 11em 1fr; gap: 6px 32px; padding: 26px 0; }
.posts .post-date { grid-row: span 2; margin: 0.3em 0 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.posts h2, .posts h3 { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); letter-spacing: 0.01em; text-transform: none; }
.posts h2 a, .posts h3 a { text-decoration: none; }
.posts h2 a:hover, .posts h3 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.posts p { margin: 0; color: var(--bone-2); max-width: 62ch; }
.posts-short { margin: 26px 0 30px; }
@media (max-width: 680px) { .posts article { grid-template-columns: 1fr; } .posts .post-date { grid-row: auto; margin: 0; } }
.sec-list { padding-top: 0; border-top: 0; }
.idx a { color: var(--accent); text-decoration: none; }
.post-page h1 { max-width: 20ch; }
.post-lead { max-width: 52ch; color: var(--bone); }
.post-text { margin-top: clamp(28px, 4vw, 44px); font-size: 1.02em; }
.post-text ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.post-text li { margin: 0 0 0.45em; }
.post-text strong { color: var(--bone); font-weight: 500; }
.byline { margin: 34px 0 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(44px, 7vw, 72px); border-top: 1px solid var(--line); padding-top: 24px; }
.post-nav a { display: block; text-decoration: none; font-family: var(--display); font-size: 1.1rem; line-height: 1.3; }
.post-nav a span { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; text-align: left; } }

/* Very wide screens: a little more room, the same measure for reading. */
@media (min-width: 1800px) {
  :root { --max: 1280px; }
  body { font-size: 1.22rem; }
  .hero { min-height: min(92svh, 1400px); }
  .hero-pass { width: clamp(300px, min(17vw, 36svh), 460px); }
  .hero-name { width: clamp(380px, min(23vw, 44svh), 600px); }
  .hero-line { font-size: 1.75rem; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 0.9rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-start; }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand .vy-mark-sm { width: 40px; height: 40px; flex: none; color: var(--bone-2); }
.foot-brand p { margin: 0; line-height: 1.5; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-links a { color: var(--bone-2); text-decoration: none; }
.foot-links a:hover { color: var(--bone); }
.foot-note { margin-top: 28px; font-size: 0.8rem; color: #6c6c67; }

/* Reveal on scroll (only when JavaScript says it can). */
.js [data-seen] .wrap > * { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.js [data-seen].in .wrap > * { opacity: 1; transform: none; }
.js [data-seen].in .wrap > *:nth-child(2) { transition-delay: .08s; }
.js [data-seen].in .wrap > *:nth-child(3) { transition-delay: .16s; }
.js [data-seen].in .wrap > *:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-seen] .wrap > * { opacity: 1; transform: none; }
}
