/* site.css: shared by fov.studio and its subdomains. Keep all copies identical. */
:root {
  --bg: #0b0d10;
  --surface: #13161b;
  --surface-2: #1a1e24;
  --line: #262b33;
  --text: #e8eaed;
  --muted: #9ba2ad;
  --accent: #ffb547;
  --on-accent: #1a1204;
  --vp: #ffb547;
  --gamedev: #5fd8a4;
  --ai: #9db2ff;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}
[data-site="gamedev"] { --accent: var(--gamedev); --on-accent: #0b0d10; }
[data-site="ai"]      { --accent: var(--ai); --on-accent: #0b0d10; }
[data-site="vp"]      { --on-accent: #0b0d10; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.brand .sub { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; }
.site-nav a { color: var(--muted); padding: 10px 12px; }
.site-nav a:hover { color: var(--text); }

/* Sections */
section { padding: clamp(56px, 9vw, 96px) 0; }
section + section, .rule { border-top: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.5vw, 40px); line-height: 1.1; margin-top: 12px; }
.section-head { margin-bottom: 40px; }

/* Hero with viewfinder corners */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px); }
.frame { position: relative; padding: clamp(28px, 5vw, 56px); }
.frame i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--accent); }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
.hero-meta .live { color: var(--accent); display: flex; align-items: center; gap: 8px; }
.hero-meta .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(44px, 8vw, 80px); line-height: 1.05; }
.hero.sub h1 { font-size: clamp(40px, 7vw, 72px); max-width: 16ch; }
.lead { margin: 24px 0 0; max-width: 60ch; font-size: clamp(18px, 2vw, 20px); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; border: 1px solid var(--line); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn:not(.primary):hover { border-color: var(--muted); }

/* About split */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.split .muted { display: flex; flex-direction: column; gap: 16px; }
.split p { margin: 0; }

/* Work cards */
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.work-head p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.card:hover { border-color: var(--c); }
.card .host, .card .go { color: var(--c); }
.card .name { font-family: var(--display); font-weight: 600; font-size: 20px; }
.card .desc { color: var(--muted); font-size: 16px; }
.card .go { margin-top: auto; font-family: var(--mono); font-size: 13px; }
.card.vp { --c: var(--vp); } .card.gamedev { --c: var(--gamedev); } .card.ai { --c: var(--ai); }

/* Experience */
.job { display: grid; grid-template-columns: minmax(140px, 180px) 1fr; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.job:first-of-type { padding-top: 0; }
.job .when { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.job .title { font-family: var(--display); font-weight: 600; font-size: 19px; }
.job .where { color: var(--accent); font-size: 15px; }
.job p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 560px) { .job { grid-template-columns: 1fr; } }

/* Skills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 12px; }
.chips li { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 12px; }
.chips li.key { border-color: var(--accent); color: var(--accent); }

/* Contact panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.panel h2 { max-width: 18ch; }

/* Projects */
.project { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.project .thumb { aspect-ratio: 16 / 9; border-radius: 6px; background: var(--surface-2); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project .body { padding: 4px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.project .name { font-family: var(--display); font-weight: 600; font-size: 19px; }
.project .desc { color: var(--muted); font-size: 16px; }

/* Posts & news */
.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feed a { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feed a:hover .t { color: var(--accent); }
.feed .d { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.feed .t { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; }
.feed .s { display: block; color: var(--muted); font-size: 16px; margin-top: 6px; }
.feed .tag { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 12px; }
.feed .empty { padding: 24px 0; color: var(--muted); }
@media (max-width: 640px) {
  .feed a { grid-template-columns: 1fr auto; }
  .feed .d { grid-column: 1 / -1; }
}

/* Single post */
.post { max-width: 44rem; }
.post h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 16px 0 12px; }
.post .meta { font-family: var(--mono); font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.post p, .post li { color: #c9ced6; }
.post img { border-radius: 8px; margin: 24px 0; }
.back { font-family: var(--mono); font-size: 13px; color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
