@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #03120B;
  --panel: #061B11;
  --grid: #123A27;
  --grid-faint: rgba(124, 242, 166, 0.05);
  --trace: #57D08E;
  --paper: #B4FBCF;
  --muted: #4E9E72;
  --ok: #9CFFC0;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(1rem, 4vw, 3rem);
  --max: 1320px;
}

*, *::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(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
cite { font-style: italic; }

:focus-visible { outline: 2px solid var(--trace); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); color: var(--ink); padding: .5rem 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--paper);
  font: 600 1rem/1 var(--sans); font-stretch: 90%;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--paper); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--grid); }
.btn--ghost:hover { border-color: var(--paper); }
.btn--small { min-height: 38px; padding: 0 1rem; font-size: .9375rem; }

.link {
  background: none; border: 0; padding: .25rem 0; cursor: pointer;
  color: var(--paper); font: 500 .9375rem var(--sans);
  text-decoration: underline; text-decoration-color: var(--grid);
  text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link:hover { text-decoration-color: var(--trace); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: .75rem var(--pad);
  background: rgba(3, 18, 11, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grid);
}
.nav__logo { width: 1.35rem; height: 1.35rem; margin-right: .55rem; vertical-align: -.22em; color: var(--paper); }
.nav__mark { font-weight: 800; font-stretch: 75%; font-size: 1.25rem; text-decoration: none; letter-spacing: .02em; }
.nav__mark span { color: var(--trace); font: 400 .6875rem var(--mono); letter-spacing: .06em; margin-left: .45em; vertical-align: .35em; }
.nav nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: .9375rem; }
.nav nav a:hover { color: var(--paper); }
@media (max-width: 720px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero sheet ---------- */
.sheet {
  --zone: 22px;
  position: relative;
  margin: var(--pad);
  max-width: var(--max);
  border: 1px solid var(--trace);
  padding: var(--zone);
  background: rgba(3, 18, 11, .55);
}
@media (min-width: 1400px) { .sheet { margin-inline: auto; margin-block: var(--pad); } }
.sheet::before { /* inner border, like a drawing frame */
  content: ""; position: absolute; inset: var(--zone);
  border: 1px solid var(--grid); pointer-events: none;
}
.zones { position: absolute; margin: 0; padding: 0; list-style: none; display: flex; font: 400 .6875rem var(--mono); color: var(--muted); }
.zones li { flex: 1; display: grid; place-items: center; }
.zones--x { top: 0; left: var(--zone); right: var(--zone); height: var(--zone); }
.zones--x li + li { border-left: 1px solid var(--grid); }
.zones--y { top: var(--zone); bottom: var(--zone); left: 0; width: var(--zone); flex-direction: column; }
.zones--y li + li { border-top: 1px solid var(--grid); }

.sheet__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "copy model" "copy block";
  gap: 0 2rem;
  min-height: min(82vh, 820px);
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 3rem) 0;
}
.hero__copy { grid-area: copy; align-self: center; padding-bottom: 3rem; }
.hero__title {
  font-size: clamp(2.9rem, 7.4vw, 6.75rem);
  font-weight: 700; font-stretch: 68%;
  line-height: .92; letter-spacing: -.01em;
}
.hero__title span { display: block; }
.hero__lede { text-wrap: pretty; margin-top: 1.75rem; max-width: 34ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: #86D7A8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

.hero__model { grid-area: model; position: relative; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 1rem 0 2rem; }
.mark { width: 100%; max-height: 54vh; overflow: visible; color: var(--trace); }
.mark .cl { stroke: var(--trace); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 18 4 3 4; opacity: .5; }
.mark .ext, .mark .dim { stroke: var(--trace); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mark .ext { opacity: .6; }
.mark text { font: 400 3.4px var(--mono); fill: var(--trace); letter-spacing: .02em; }
.mark__fill { fill: var(--paper); }
.mark__outline path { fill: none; stroke: var(--paper); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mark .dim, .mark .ext { stroke-linecap: butt; }
/* variant A: hairline drawing */
.hero__model--a .mark__fill { fill-opacity: .05; }
/* variant B: solid mark, centerlines only */
.hero__model--b .mark__dims, .hero__model--b .mark__outline, .hero__model--b .annot { display: none; }
/* variant C (live): drafted in sequence once the terminal is logged in */
@media (prefers-reduced-motion: no-preference) {
  .ready .hero__model--c .cl { transform-box: fill-box; transform-origin: center; animation: cl-grow .7s .1s cubic-bezier(.3,0,.2,1) both; }
  .ready .hero__model--c .cl--h { animation-name: cl-grow-x; }
  .ready .hero__model--c .mark__outline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw 1.3s .45s cubic-bezier(.55,0,.25,1) forwards; }
  .ready .hero__model--c .mark__fill { fill-opacity: 0; animation: mark-fill .6s 1.65s ease-out forwards; }
  .ready .hero__model--c .dimset { opacity: 0; animation: mark-fade .45s ease-out forwards; }
  .ready .hero__model--c .dimset:nth-child(1) { animation-delay: 2.05s; }
  .ready .hero__model--c .dimset:nth-child(2) { animation-delay: 2.3s; }
  .ready .hero__model--c .dimset:nth-child(3) { animation-delay: 2.55s; }
  .ready .hero__model--c .annot { opacity: 0; animation: mark-fade .5s 2.8s ease-out forwards; }
}
@keyframes cl-grow { from { transform: scaleY(0); opacity: 0; } to { transform: none; } }
@keyframes cl-grow-x { from { transform: scaleX(0); opacity: 0; } to { transform: none; } }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-fill { to { fill-opacity: 1; } }
@keyframes mark-fade { to { opacity: 1; } }
.annot { font: 400 .75rem var(--mono); color: var(--muted); }
.hero__model .annot { margin-top: .75rem; text-align: right; }

/* title block */
.titleblock {
  grid-area: block; align-self: end; justify-self: end;
  width: min(100%, 520px);
  margin: 0 calc(-1 * clamp(1.25rem, 3vw, 3rem)) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--trace); border-left: 1px solid var(--trace);
  background: var(--ink);
}
.tb { grid-column: span 2; padding: .55rem .75rem .65rem; border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); min-width: 0; }
.tb--name, .tb--wide { grid-column: span 4; }
.tb--s { grid-column: span 1; }
.tb--contact { grid-column: span 3; }
.tb dt { font: 400 .625rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tb dd { margin: .2rem 0 0; font-size: .9375rem; font-weight: 500; overflow-wrap: anywhere; }
.tb--name dd { font-size: 1.5rem; font-weight: 700; font-stretch: 75%; letter-spacing: .01em; }
.tb dd a { text-decoration: none; }
.tb dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: .45rem; vertical-align: middle; box-shadow: 0 0 0 3px rgba(159,211,176,.15); }

@media (max-width: 900px) {
  .sheet__body { grid-template-columns: 1fr; grid-template-areas: "copy" "model" "block"; min-height: 0; }
  .hero__copy { padding-bottom: 0; }
  .hero__model { margin-top: 1.5rem; padding-bottom: 1rem; }
  .mark { max-height: none; }
  .titleblock { width: auto; justify-self: stretch; margin: 1rem calc(-1 * clamp(1.25rem, 3vw, 3rem)) 0; border-left: 0; }
}
@media (max-width: 520px) {
  .sheet { --zone: 14px; margin: .75rem; }
  .zones { font-size: .5625rem; }
}

/* ---------- shared sections ---------- */
main > section:not(.sheet) { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--pad) 0; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; font-stretch: 72%; letter-spacing: -.005em; margin-bottom: 2.25rem; }
.dwg { color: var(--trace); margin-bottom: .5rem; }

/* ---------- showreel ---------- */
.reel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.reel__head p { color: var(--muted); margin-bottom: 2.25rem; max-width: 40ch; }
.reel__frame { position: relative; aspect-ratio: 16 / 9; background: #010804; overflow: hidden; }
.reel__video { width: 100%; height: 100%; object-fit: cover; }
.reel__play { position: absolute; left: 1.25rem; bottom: 1.25rem; }

/* ---------- featured ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature__stage { position: relative; aspect-ratio: 16 / 9; background: #010804; overflow: hidden; }
.feature__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); } /* crops the letterbox in the source */
.feature__stage model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at center, #0B2A1B 0%, #010804 75%); }
.dim { position: relative; margin-top: .9rem; padding-top: .9rem; color: var(--muted); }
.dim--h::before { /* dimension line with end ticks */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px;
  border-left: 1px solid var(--trace); border-right: 1px solid var(--trace);
  background: linear-gradient(var(--trace), var(--trace)) center / 100% 1px no-repeat;
}
.dim span { display: block; text-align: center; font-size: .75rem; }
.feature__copy h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 700; font-stretch: 70%; margin-bottom: 1.1rem; }
.feature__copy > p:not(.dwg):not(.note) { color: #86D7A8; max-width: 46ch; }
.specs { margin: 1.5rem 0 0; border-top: 1px solid var(--grid); }
.specs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--grid); }
.specs dt { color: var(--muted); font-size: .875rem; }
.specs dd { margin: 0; font-size: .9375rem; }
.feature__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.note { margin-top: .75rem; color: var(--muted); font-size: .8125rem; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* ---------- work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.card { min-width: 0; }
.card__media { aspect-ratio: 16 / 9; background: #010804; overflow: hidden; }
.card__media video { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding-top: 1.1rem; }
.card h3 { font-size: 1.75rem; font-weight: 700; font-stretch: 75%; margin-bottom: .6rem; }
.card__body > p:not(.dwg):not(.tags) { color: #86D7A8; max-width: 52ch; }
.tags { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.card__actions { display: flex; gap: 1.5rem; margin-top: .9rem; }
.card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.card--wide .card__body { padding-top: 0; }
@media (max-width: 760px) { .grid, .card--wide { grid-template-columns: 1fr; } .card--wide .card__body { padding-top: 0; } }

/* ---------- services ---------- */
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--trace); }
.svc li { padding: 1.5rem 1.5rem 1.75rem 0; }
.svc li + li { padding-left: 1.5rem; border-left: 1px solid var(--grid); }
.svc h3 { font-size: 1.375rem; font-stretch: 78%; font-weight: 700; margin-bottom: .6rem; }
.svc p { color: #86D7A8; font-size: .9688rem; }
@media (max-width: 1000px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc li:nth-child(3) { padding-left: 0; border-left: 0; }
  .svc li:nth-child(n+3) { border-top: 1px solid var(--grid); }
}
@media (max-width: 560px) {
  .svc { grid-template-columns: 1fr; }
  .svc li, .svc li + li { padding-left: 0; border-left: 0; }
  .svc li + li { border-top: 1px solid var(--grid); }
}

.process__title { margin-top: 4rem; font-size: 1.375rem; font-stretch: 78%; font-weight: 700; color: var(--muted); }
.process { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.process li { display: flex; gap: .9rem; }
.process li > .mono { flex: none; width: 1.9rem; height: 1.9rem; border: 1px solid var(--trace); border-radius: 50%; display: grid; place-items: center; color: var(--trace); }
.process h4 { font-size: 1.0625rem; font-weight: 600; margin: .25rem 0 .35rem; }
.process p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__photo { margin: 0; }
.about__photo img { filter: saturate(.92) contrast(1.03); }
.about__photo figcaption { margin-top: .6rem; }
.about__text { max-width: 62ch; }
.about__lead { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.25; font-stretch: 88%; font-weight: 500; margin-bottom: 1.25rem; }
.about__text p:not(.about__lead) { color: #86D7A8; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 360px; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 4.5rem); padding-bottom: 2rem; }
.contact__intro > p { color: #86D7A8; max-width: 38ch; }
.contact__ways { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--grid); }
.contact__ways li { display: grid; grid-template-columns: 4.5rem 1fr; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--grid); }
.contact__ways a { font-size: 1.0625rem; text-underline-offset: 5px; text-decoration-color: var(--grid); overflow-wrap: anywhere; }
.contact__ways a:hover { text-decoration-color: var(--trace); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full, .form__foot { grid-column: 1 / -1; }
.field label { font-size: .875rem; color: var(--muted); }
.opt { font-size: .75rem; opacity: .75; margin-left: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .8rem; min-height: 46px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--grid); border-radius: 0;
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--trace) 50%), linear-gradient(135deg, var(--trace) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.25rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--trace); box-shadow: 0 0 0 1px var(--trace); }
.field [aria-invalid="true"] { border-color: #E59A8C; }
.field textarea::placeholder { color: #2F6E4D; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: .25rem; }
.form__status { font-size: .9375rem; color: var(--muted); }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: #E59A8C; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: 4rem auto 0; padding: 1.5rem var(--pad) 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--grid); }
.foot a { color: var(--muted); }
.foot { align-items: baseline; }
.foot > * { flex: 1 1 0; }
.foot__motto { text-align: center; font-style: italic; letter-spacing: .04em; color: var(--trace); }
.foot > a { text-align: right; }
@media (max-width: 600px) { .foot > * { flex-basis: 100%; text-align: center !important; } .foot__motto { order: -1; } }

/* ---------- viewer dialog ---------- */
.viewer { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--trace); background: var(--ink); color: var(--paper); }
.viewer::backdrop { background: rgba(1, 8, 4, .9); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--grid); }
.viewer__title { font-size: 1.125rem; font-stretch: 80%; font-weight: 700; }
.viewer__close { background: none; border: 1px solid var(--grid); color: var(--paper); font: 500 .875rem var(--sans); padding: .45rem .9rem; cursor: pointer; }
.viewer__close:hover { border-color: var(--paper); }
.viewer__stage { aspect-ratio: 16 / 9; max-height: calc(92vh - 60px); background: #010804; }
.viewer__stage video, .viewer__stage model-viewer { width: 100%; height: 100%; display: block; }
.viewer__stage video { object-fit: contain; }
.viewer__stage model-viewer { background: radial-gradient(ellipse at center, #0B2A1B 0%, #010804 75%); }
@media (max-width: 600px) { .viewer__stage { aspect-ratio: 4 / 5; } .viewer__stage video { aspect-ratio: auto; } }

/* ================= drawing paper + CRT screen ================= */
.crt-defs { position: absolute; width: 0; height: 0; }
.paper { position: relative; isolation: isolate; min-height: 100vh; overflow-x: clip; }
.paper::before { /* graph paper inside the margin rules, like an engineering pad */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 28px; right: 28px;
  border-left: 1px solid rgba(124, 242, 166, .28); border-right: 1px solid rgba(124, 242, 166, .28);
  background:
    linear-gradient(90deg, rgba(124, 242, 166, .10) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(rgba(124, 242, 166, .10) 1px, transparent 1px) 0 0 / 50px 50px,
    linear-gradient(90deg, rgba(124, 242, 166, .04) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(rgba(124, 242, 166, .04) 1px, transparent 1px) 0 0 / 10px 10px;
}
@media (max-width: 760px) { .paper::before { left: 8px; right: 8px; } }
/* desktop: the page scrolls inside a fixed tube so the curvature stays on the glass */
.crt body { overflow: hidden; }
.crt .screen {
  position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; outline: none;
  filter: url(#crt-barrel); scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(124, 242, 166, .45) transparent;
}
@media (prefers-reduced-motion: reduce) { .crt .screen { scroll-behavior: auto; } }

/* ================= console layer ================= */
:root { --phosphor: #7CF2A6; --phosphor-dim: rgba(124, 242, 166, .28); --bezel-hi: #18241D; --bezel-lo: #0B130F; }

/* bezels: screwed instrument frames around media */
.bezel {
  position: relative;
  padding: 14px;
  border: 1px solid #24382D;
  border-radius: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='#56675E'/%3E%3Cstop offset='1' stop-color='#18231D'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='6' cy='6' r='4.6' fill='url(#g)' stroke='#030A06' stroke-width='.8'/%3E%3Cg transform='rotate(12 6 6)'%3E%3Crect x='2.4' y='5.4' width='7.2' height='1.2' rx='.5' fill='#030A06'/%3E%3Crect x='5.4' y='2.4' width='1.2' height='7.2' rx='.5' fill='#030A06'/%3E%3C/g%3E%3C/svg%3E") left 4px top 4px / 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='#56675E'/%3E%3Cstop offset='1' stop-color='#18231D'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='6' cy='6' r='4.6' fill='url(#g)' stroke='#030A06' stroke-width='.8'/%3E%3Cg transform='rotate(57 6 6)'%3E%3Crect x='2.4' y='5.4' width='7.2' height='1.2' rx='.5' fill='#030A06'/%3E%3Crect x='5.4' y='2.4' width='1.2' height='7.2' rx='.5' fill='#030A06'/%3E%3C/g%3E%3C/svg%3E") right 4px top 4px / 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='#56675E'/%3E%3Cstop offset='1' stop-color='#18231D'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='6' cy='6' r='4.6' fill='url(#g)' stroke='#030A06' stroke-width='.8'/%3E%3Cg transform='rotate(-28 6 6)'%3E%3Crect x='2.4' y='5.4' width='7.2' height='1.2' rx='.5' fill='#030A06'/%3E%3Crect x='5.4' y='2.4' width='1.2' height='7.2' rx='.5' fill='#030A06'/%3E%3C/g%3E%3C/svg%3E") left 4px bottom 4px / 12px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='#56675E'/%3E%3Cstop offset='1' stop-color='#18231D'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='6' cy='6' r='4.6' fill='url(#g)' stroke='#030A06' stroke-width='.8'/%3E%3Cg transform='rotate(33 6 6)'%3E%3Crect x='2.4' y='5.4' width='7.2' height='1.2' rx='.5' fill='#030A06'/%3E%3Crect x='5.4' y='2.4' width='1.2' height='7.2' rx='.5' fill='#030A06'/%3E%3C/g%3E%3C/svg%3E") right 4px bottom 4px / 12px no-repeat,
    linear-gradient(180deg, var(--bezel-hi), var(--bezel-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 18px 40px -18px rgba(0, 0, 0, .7);
}
.bezel > .reel__frame, .bezel > .feature__stage, .bezel > .card__media, .bezel > .photo-screen {
  border: 1px solid #010603; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(124, 242, 166, .08), inset 0 0 0 1px rgba(0, 0, 0, .6);
}
.bezel > .reel__frame { outline: none; }
.bezel[data-plate]::after { /* engraved nameplate on the lower lip */
  content: attr(data-plate);
  position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%);
  padding: 2px 10px; border-radius: 2px;
  background: #07180F; border: 1px solid #24503A;
  font: 400 .625rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8FC9A6;
  white-space: nowrap;
}
.form.bezel { padding: clamp(1.5rem, 3vw, 2.25rem); }

/* photo: instrument screen with a CRT lip and a soft vignette */
.bezel--photo { padding: 18px; border-radius: 14px; }
.photo-screen { position: relative; overflow: hidden; border-radius: 10px !important; background: #010603; }
.photo-screen img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 0; }
.photo-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(1, 6, 3, .55) 100%),
              repeating-linear-gradient(0deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px);
}
.about__photo img { border: 0; }
.about__photo figcaption { margin-top: 1.4rem; }

/* radar blips on section titles */
.section-title { position: relative; padding-left: 1.6rem; }
.section-title::before, .section-title::after {
  content: ""; position: absolute; left: .2rem; top: .52em; width: .5rem; height: .5rem; border-radius: 50%;
}
.section-title::before { background: var(--phosphor); box-shadow: 0 0 8px 1px var(--phosphor-dim); opacity: .45; }
.section-title::after { border: 1px solid var(--phosphor); opacity: 0; }
.section-title.is-live::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .section-title.is-live::after { animation: ping 1.6s ease-out 2; }
  .section-title.is-live::before { animation: blip 1.6s ease-out 2; }
}
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(5); opacity: 0; } }
@keyframes blip { 0% { opacity: 1; box-shadow: 0 0 14px 4px var(--phosphor); } 100% { opacity: .9; box-shadow: 0 0 8px 1px var(--phosphor-dim); } }



/* ================= CRT terminal ================= */
html { background: #000; }
body { text-shadow: 0 0 3px rgba(124, 242, 166, .14); }
h1, h2, h3, h4, .nav__mark, .tb dd { text-shadow: 0 0 10px rgba(124, 242, 166, .3); }
.btn, .btn--small { text-shadow: none; }
.btn:not(.btn--ghost) { box-shadow: 0 0 18px -4px rgba(124, 242, 166, .55); }
::selection { background: var(--phosphor); color: #03120B; }

/* glass: scanlines, glare and vignette over everything, then rounded tube corners */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body::before {
  z-index: 60;
  background:
    radial-gradient(ellipse 70% 45% at 28% 0%, rgba(190, 255, 215, .045), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .17) 0 1px, transparent 1px 3px),
    radial-gradient(140% 115% at 50% 50%, transparent 58%, rgba(0, 0, 0, .6) 100%);
}
body::after {
  z-index: 61; border-radius: 28px;
  box-shadow: 0 0 0 60px #000, inset 0 0 60px 8px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(124, 242, 166, .07);
}
@media (max-width: 760px) { body::after { border-radius: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: glass-flicker 7s steps(1, end) infinite; }
}
@keyframes glass-flicker { 0%, 100% { opacity: 1; } 47% { opacity: .82; } 48% { opacity: 1; } 81% { opacity: .9; } 82% { opacity: 1; } }

/* boot / login sequence */
html.booting { overflow: hidden; }
.booting body > *:not(.boot) { visibility: hidden; }
.boot { position: fixed; inset: 0; z-index: 55; background: #010603; display: grid; place-items: center; cursor: default; }
.boot__banner { position: absolute; left: 0; right: 0; padding: 3px 0; text-align: center; background: #1F7A47; color: #010603; font: 500 .6875rem var(--mono); letter-spacing: .2em; text-shadow: none; }
.boot__banner--top { top: 0; } .boot__banner--bot { bottom: 0; }
.boot__screen { width: min(760px, 90vw); font: 400 clamp(.8rem, 1.6vw, 1.0625rem)/1.7 var(--mono); color: var(--phosphor); text-shadow: 0 0 7px rgba(124, 242, 166, .6); transform-origin: 50% 50%; animation: crt-on .55s ease-out both; }
.boot__log { margin: 0; white-space: pre-wrap; min-height: 19em; }
.boot__cursor { display: inline-block; width: .6em; height: 1.05em; vertical-align: -.15em; background: var(--phosphor); box-shadow: 0 0 8px var(--phosphor); animation: blink 1s steps(1, end) infinite; }
.boot__ok { color: #DFFFEA; }
.boot__skip { position: absolute; right: 2rem; bottom: 2.2rem; font: 400 .6875rem var(--mono); color: #4E9E72; letter-spacing: .12em; text-transform: uppercase; }
.boot.is-off { animation: crt-off .5s ease-in forwards; }
@keyframes crt-on { 0% { transform: scale(1, .003); filter: brightness(4); opacity: 1; } 35% { transform: scale(1, .003); } 70% { transform: scale(1, 1.03); filter: brightness(1.6); } 100% { transform: none; filter: none; } }
@keyframes crt-off { 0% { opacity: 1; filter: none; } 30% { filter: brightness(2.2); } 100% { opacity: 0; filter: brightness(3); } }
@keyframes blink { 50% { opacity: 0; } }
