:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #1b1d20;
  --line: #34373c;
  --text: #f5f6f7;
  --muted: #b8bec6;
  --silver: #d9dfe7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; }
a:focus-visible, video:focus-visible { outline: 2px solid var(--silver); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: 0 1 160px; min-width: 0; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; gap: 30px; align-items: center; }
nav a { color: var(--muted); font-size: .89rem; text-decoration: none; }
nav a:hover, footer a:hover { color: var(--text); }
.small-cta {
  font-size: .88rem;
  font-weight: 700;
  border: 1px solid #555b63;
  border-radius: 8px;
  padding: 9px 15px;
  text-decoration: none;
  white-space: nowrap;
}
.small-cta:hover { background: #24272b; }
main {
  flex: 1;
  padding-block: clamp(38px, 6.5vw, 88px) clamp(52px, 7vw, 92px);
  background: radial-gradient(ellipse at 84% 5%, #23262a, transparent 55%);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--silver);
  font: 700 .74rem/1.4 ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.065em;
}
.intro { max-width: 56ch; color: var(--muted); font-size: 1.05rem; margin-bottom: clamp(26px, 4vw, 46px); }
.empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  padding: clamp(22px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(125deg, #222529, #17191c);
}
.empty[hidden], .work-grid[hidden] { display: none; }
.empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #535963;
  border-radius: 12px;
  color: var(--silver);
}
.empty h2 { margin-bottom: 6px; font-size: clamp(1.3rem, 3.5vw, 1.8rem); line-height: 1.2; letter-spacing: -.035em; }
.empty p { margin-bottom: 14px; color: var(--muted); }
.text-link { font-weight: 700; color: var(--silver); text-underline-offset: 4px; }
.text-link:hover { color: white; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.work-card { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.work-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0b0c0e; }
.work-media[hidden] { display: none; }
.work-body { padding: 20px; overflow-wrap: anywhere; }
.work-body h2 { margin-bottom: 8px; font-size: 1.25rem; line-height: 1.25; }
.work-body p { margin-bottom: 10px; color: var(--muted); }
.work-body p:last-child { margin-bottom: 0; }
footer { border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .86rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
footer a { text-underline-offset: 4px; }
@media (max-width: 850px) { .wrap { width: calc(100% - 48px); } }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .small-cta { padding-inline: 10px; }
  .empty { grid-template-columns: 1fr; }
}
