/* bryan.business — Cinder Vector tokens, chassis, motion. */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;500;700&family=JetBrains+Mono:wght@400;700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --void: #070709;
  --coal: #0c0d11;
  --steel: #1b1c22;
  --steel2: #24252e;
  --wire: #4a4d5e;
  --wire-soft: rgba(74, 77, 94, 0.4);
  --ink: #eceff4;
  --dim: #8e92a8;
  --red: #ff3c00;
  --red-glow: rgba(255, 60, 0, 0.45);
  --orange: #ff9900;
  --amber: #ffd000;
  --amber-glow: rgba(255, 208, 0, 0.3);

  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --stencil: "Oswald", system-ui, sans-serif;

  --chassis: 1180px;
  --snap: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: linear(0, 0.06 1%, 0.226 2%, 1.116 5.4%, 1.375 6.6%, 1.565 8.2%, 1.581 9.3%, 1.458 10.9%, 0.937 14.3%, 0.693 16.6%, 0.657 17.7%, 0.729 19.8%, 1.042 23.3%, 1.182 25.6%, 1.201 26.7%, 1.156 28.8%, 0.977 32.2%, 0.894 34.5%, 0.882 35.6%, 0.907 37.7%, 1.045 42.4%, 1.069 44.5%, 0.979 50.9%, 0.96 53.4%, 1.013 59.9%, 1.024 62.3%, 0.986 71.2%, 1.008 79.9%, 1);
}

* { box-sizing: border-box; }
html { background: var(--void); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; background: var(--void); color: var(--dim);
  font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--red-glow); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Blueprint grid + vignette backplate */
.backplate { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.backplate::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12;
  background-image: linear-gradient(var(--wire) 1px, transparent 1px), linear-gradient(90deg, var(--wire) 1px, transparent 1px);
  background-size: 40px 40px;
}
.backplate::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent 35%, rgba(7, 7, 9, 0.9) 100%);
}
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.06;
  background: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 3px);
}

/* Molten stencil wordmark */
.wm {
  margin: 0; font-family: var(--stencil); font-weight: 700; text-transform: uppercase;
  line-height: 0.84; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff 0%, var(--amber) 40%, var(--red) 45%, var(--steel) 48%, var(--red) 55%, var(--orange) 85%, #420b00 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 14px var(--red-glow)) drop-shadow(2px 2px 0 var(--coal));
}

/* Labels, LEDs, ticks */
.over { font: 11px/1 var(--mono); letter-spacing: 0.42em; text-transform: uppercase; color: var(--orange); }
.lcd {
  display: inline-block; padding: 3px 8px; font: 10px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); text-shadow: 0 0 6px var(--amber-glow);
  background: #050506; border: 1px solid var(--wire); box-shadow: inset 0 1px 3px #000;
}
.led {
  display: inline-block; width: 7px; height: 7px; background: var(--red); box-shadow: 0 0 10px var(--red);
  animation: blink 1.2s steps(2) infinite; vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0.15; } }
.ticks { position: absolute; inset: 0; pointer-events: none; }
.ticks i { position: absolute; width: 14px; height: 14px; border: 0 solid var(--red); opacity: 0.85; }
.ticks i:nth-child(1) { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; }
.ticks i:nth-child(2) { top: -2px; right: -2px; border-top-width: 3px; border-right-width: 3px; }
.ticks i:nth-child(3) { bottom: -2px; left: -2px; border-bottom-width: 3px; border-left-width: 3px; }
.ticks i:nth-child(4) { bottom: -2px; right: -2px; border-bottom-width: 3px; border-right-width: 3px; }

/* Chamfered double-border panel */
.panel {
  position: relative; background: linear-gradient(180deg, var(--coal), #09090c);
  border: 2px solid var(--wire); outline: 1px solid #000;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.panel::before {
  content: ""; position: absolute; inset: 5px; border: 1px dashed var(--wire-soft); pointer-events: none;
}
.panel-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  font: 11px/1 var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(90deg, var(--steel2), var(--coal));
  border-bottom: 1px solid var(--wire);
}
.panel-bar::after {
  content: ""; flex: 1; height: 8px; opacity: 0.5;
  background: radial-gradient(circle, var(--wire) 1px, transparent 1.5px) 0 0 / 4px 4px;
}
.panel-bar b { display: inline-grid; place-items: center; width: 16px; height: 16px; background: var(--red); color: #000; font-size: 10px; letter-spacing: 0; }

/* Chamfer button */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
  font: 700 12px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(180deg, var(--steel2), var(--coal)); border: 1px solid var(--wire);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.15s, color 0.15s, transform 0.4s var(--spring);
}
.btn:hover { color: #000; background: linear-gradient(180deg, var(--amber), var(--orange)); }
.btn:active { transform: translateY(1px); }

/* Entrance: staggered build-in, Flash-timeline style */
.build { opacity: 0; animation: build 0.7s var(--snap) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes build { from { opacity: 0; transform: translateY(10px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
.wipe { position: relative; }
.wipe::after {
  content: ""; position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0);
  animation: wipe 0.6s var(--snap) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); pointer-events: none;
}
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 49% { transform: scaleX(1); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

@keyframes spin-cw { to { rotate: 360deg; } }
@keyframes spin-ccw { to { rotate: -360deg; } }

/* Cross-page transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.35s var(--snap) both vt-out; }
  ::view-transition-new(root) { animation: 0.5s var(--snap) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; transform: scale(0.98); filter: brightness(2) saturate(0); } }
@keyframes vt-in { from { opacity: 0; clip-path: inset(48% 0 48% 0); } 60% { clip-path: inset(0); } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .build { opacity: 1; }
}
.i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; } .i5 { --i: 5; }
