/* Layout: left-aligned, asymmetric. A camera viewfinder frames the hero; sets are shown as 16:9 frames with a spec line underneath, like a shot log. */
:root {
  --bg: #e8eaed;          /* cyc wall grey, cool */
  --surface: #f4f5f7;
  --fg: #14181d;
  --muted: #5a626c;
  --line: #c9cdd3;
  --accent: #2b45ff;      /* ultramarine */
  --accent-fg: #ffffff;
  --rec: #d6362b;
  --plate-a: #cfd5e6;
  --plate-b: #aeb8d4;
  --plate-floor: #9aa3b8;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1013; --surface: #151a1f; --fg: #e9ecef; --muted: #959ea8; --line: #2a3138;
    --accent: #8195ff; --accent-fg: #0d1013; --rec: #ff5a4d;
    --plate-a: #1b2233; --plate-b: #2b3552; --plate-floor: #3a4566;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1013; --surface: #151a1f; --fg: #e9ecef; --muted: #959ea8; --line: #2a3138;
  --accent: #8195ff; --accent-fg: #0d1013; --rec: #ff5a4d;
  --plate-a: #1b2233; --plate-b: #2b3552; --plate-floor: #3a4566;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-block: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }

/* top bar */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-bottom: 1px solid var(--line); }
.bar .who { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 18px; letter-spacing: -.01em; }
.bar nav { display: flex; gap: 22px; flex-wrap: wrap; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(38px, 6.2vw, 76px); line-height: .98; letter-spacing: -.03em; margin: 0 0 24px; text-wrap: balance; }
.hero p.lead { max-width: 46ch; font-size: 19px; color: var(--muted); margin: 0 0 32px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn:hover { transform: translateY(-1px); }

.finder { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: linear-gradient(180deg, var(--plate-a) 0%, var(--plate-b) 62%, var(--plate-floor) 62%, var(--plate-b) 100%); overflow: hidden; }
.finder::before { content: ""; position: absolute; left: -40%; right: -40%; top: 62%; bottom: -60%; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; transform: perspective(300px) rotateX(58deg); transform-origin: top; opacity: .8; }
.finder::after { content: ""; position: absolute; left: 18%; right: 18%; top: 14%; height: 34%; border: 1.5px solid var(--fg); opacity: .35; }
.finder i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--fg); }
.finder i:nth-of-type(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.finder i:nth-of-type(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.finder i:nth-of-type(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.finder i:nth-of-type(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.finder .rec { position: absolute; top: 18px; left: 44px; display: flex; align-items: center; gap: 8px; color: var(--fg); z-index: 2; }
.finder .rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }
.finder .tc { position: absolute; bottom: 18px; right: 44px; color: var(--fg); z-index: 2; font-variant-numeric: tabular-nums; }
.finder .cap { position: absolute; bottom: 18px; left: 44px; color: var(--fg); z-index: 2; }

/* sections */
section { padding-block: 72px; border-top: 1px solid var(--line); }
.eyebrow { color: var(--muted); margin: 0 0 12px; }
h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 40px; max-width: 20ch; text-wrap: balance; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.about p { margin: 0 0 16px; max-width: 58ch; }
.skills { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.skills li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.skills li span:last-child { color: var(--muted); text-align: right; }

/* pipeline */
.pipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); }
.pipe > div { padding: 28px 24px; border-right: 1px solid var(--line); position: relative; min-width: 0; }
.pipe > div:last-child { border-right: 0; }
.pipe h3 { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 22px; margin: 6px 0 10px; letter-spacing: -.01em; }
.pipe p { margin: 0; color: var(--muted); font-size: 15.5px; }
.pipe .mono { color: var(--accent); }

/* gallery */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.set { min-width: 0; }
.plate { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: linear-gradient(180deg, var(--plate-a), var(--plate-b) 60%, var(--plate-floor) 60%); }
.plate::before { content: ""; position: absolute; left: -40%; right: -40%; top: 60%; bottom: -60%; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; transform: perspective(260px) rotateX(58deg); transform-origin: top; opacity: .7; }
.plate .tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--bg); color: var(--fg); padding: 4px 8px; }
.plate .drop { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; color: var(--fg); text-align: center; padding: 16px; }
.plate .drop span { background: var(--bg); padding: 6px 10px; }
.p2 { filter: hue-rotate(35deg); } .p3 { filter: hue-rotate(-30deg); } .p4 { filter: hue-rotate(80deg) saturate(.8); } .p5 { filter: hue-rotate(160deg); } .p6 { filter: hue-rotate(-70deg) saturate(.9); }
.meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; flex-wrap: wrap; }
.meta h3 { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: 20px; margin: 0; letter-spacing: -.01em; }
.meta .mono { color: var(--muted); align-self: center; }
.set p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; max-width: 52ch; }
.note { margin-top: 36px; color: var(--muted); font-size: 15px; }

/* featured project */
.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.feature-copy { min-width: 0; }
.feature-copy h3 { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin: 0; }
.feature-copy .spec { color: var(--accent); margin: 6px 0 16px; }
.feature-copy p { margin: 0 0 20px; }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; background: #000; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact h2 { margin-bottom: 0; }
.rows { border-top: 1px solid var(--line); }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rows .mono { color: var(--muted); align-self: center; }
.rows a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact .btns { grid-column: 1 / -1; justify-content: center; margin-top: 8px; }
footer { padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero, .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-block: 40px 48px; }
  .pipe { grid-template-columns: minmax(0, 1fr); }
  .pipe > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pipe > div:last-child { border-bottom: 0; }
  .grid, .feature { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 52px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s ease; }
  .finder .rec::before { animation: blink 1.6s steps(2, start) infinite; }
  @keyframes blink { to { visibility: hidden; } }
}

/* scan demo */
.scan-demo { margin-top: 48px; }
.scan-demo .plate { max-width: 860px; margin-inline: auto; }
.scan-demo .note { max-width: 860px; margin-inline: auto; text-align: center; }

/* looping video frames */
.finder.vid,
.plate.vid {
  position: relative;
  overflow: hidden;
}

.finder.vid video,
.plate.vid video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: #000;
}

/* Keep the viewfinder corners, recording indicator and labels above the video. */
.finder.vid::before,
.finder.vid::after,
.finder.vid > i,
.finder.vid .rec,
.finder.vid .cap,
.finder.vid .tc,
.plate.vid .tag {
  z-index: 2;
  pointer-events: none;
}

/* Video download deterrents (not DRM; the media URL is still accessible to browsers). */
.finder.vid video,
.plate.vid video {
  -webkit-user-drag: none;
  user-select: none;
}