:root {
  --bg: #070B16;
  --bg-2: #0E1530;
  --panel: rgba(255, 255, 255, 0.035);
  --text: #EEF1F8;
  --muted: #A3ACC0;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #FBBF24;
  --gold-soft: #FDE68A;
  --cyan: #22D3EE;
  --cyan-deep: #0891B2;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(50rem 36rem at -10% 40rem, rgba(251, 191, 36, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40rem);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); }
a:hover { color: var(--gold-soft); }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--gold); color: #1A1204; padding: 0.5rem 1rem; border-radius: 0.5rem; }

/* Header */
.site-header { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.lockup { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--text); }
.lockup:hover { color: var(--text); }
.lockup img { width: 2.5rem; height: 2.5rem; display: block; }
.lockup-text { display: flex; flex-direction: column; line-height: 1.25; }
.lockup-name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.lockup-tag { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

/* Type */
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.4rem; }
.grad-biz { background: linear-gradient(90deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-tech { background: linear-gradient(90deg, var(--cyan), var(--cyan-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin: 1.25rem 0 2rem; }
.muted { color: var(--muted); }
.placeholder { color: var(--gold-soft); background: rgba(251, 191, 36, 0.1); border-radius: 0.25rem; padding: 0 0.25rem; }

/* Sections */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 4.5rem 0 5rem; }
.hero-mark { display: flex; justify-content: center; }
.mark { width: min(100%, 20rem); height: auto; filter: drop-shadow(0 2rem 4rem rgba(8, 145, 178, 0.25)); }
.mark .cursor { animation: blink 1.1s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 0.75rem; font-weight: 600; text-decoration: none; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #1A1204; }
.btn-primary:hover { background: var(--gold-soft); color: #1A1204; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Grids and cards */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; }
.card p { margin: 0; color: var(--muted); }
.card .num { font-family: var(--mono); font-size: 0.75rem; color: var(--gold); display: block; margin-bottom: 0.75rem; }
.card .proof { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); font-size: 0.9rem; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; }
.about p { margin: 0 0 1rem; color: var(--muted); font-size: 1.05rem; }
.about p strong { color: var(--text); font-weight: 600; }

.skill-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.skill-groups ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-groups li { font-family: var(--mono); font-size: 0.8rem; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }

.case-link { display: block; text-decoration: none; color: var(--text); transition: border-color 0.15s ease; }
.case-link:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.5); }
.case-link .tag { font-family: var(--mono); font-size: 0.75rem; color: var(--cyan); }
.case-link .more { display: inline-block; margin-top: 1rem; color: var(--gold); font-weight: 600; }

/* Case study page */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.facts dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.facts dd { margin: 0.35rem 0 0; font-weight: 600; }
.prose { max-width: 44rem; }
.prose p, .prose li { color: var(--muted); font-size: 1.05rem; }
.prose ul { padding-left: 1.2rem; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.results .big { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--gold); line-height: 1.1; margin-bottom: 0.5rem; }
figure { margin: 0; }
.artifact-frame { aspect-ratio: 16 / 10; border-radius: 0.75rem; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; margin-bottom: 0.9rem; }
figcaption { color: var(--muted); font-size: 0.95rem; }

/* Contact page */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list .label { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); display: block; }
.contact-list a, .contact-list .value { font-size: 1.15rem; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; margin-top: auto; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .grid-3, .skill-groups, .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 3.5rem; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .mark { width: 8rem; }
  .grid-3, .grid-2, .skill-groups, .results { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark .cursor { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header .nav, .hero-mark, .actions { display: none; }
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.stat { border-left: 2px solid var(--gold); padding-left: 0.9rem; }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* Experience timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 1.5rem; }
.timeline .when { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding-top: 0.2rem; }
.timeline h3 { margin-bottom: 0.15rem; }
.timeline .org { color: var(--cyan); font-weight: 500; margin: 0 0 0.5rem; }
.timeline p { margin: 0; color: var(--muted); }
.deliverables { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.deliverables li { margin: 0; }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.25rem; }
  .deliverables { grid-template-columns: 1fr; }
}

/* Sticky header: logo and menu stay visible while scrolling */
.nav-short { display: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 22, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  padding: 0.85rem 0;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(7, 11, 22, 0.97); }
}
/* Anchor targets land below the sticky header */
section[id], main [id] { scroll-margin-top: 5.5rem; }

@media (max-width: 640px) {
  .site-header { padding: 0.65rem 0; }
  .site-header .wrap { gap: 0.4rem; }
  .lockup img { width: 2.1rem; height: 2.1rem; }
  /* Keep the menu on one line; swipe sideways if it doesn't fit */
  .nav { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 0.95rem; justify-content: space-between; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; font-size: 0.9rem; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  section[id], main [id] { scroll-margin-top: 7rem; }
}
@media print {
  .site-header { position: static; }
}

/* Hero: sigma tile with portrait to its right */
.hero-mark { align-items: center; gap: 1.25rem; }
.hero-mark .mark { width: min(48%, 15rem); flex: none; }
.portrait { display: block; width: min(48%, 15rem); flex: none; }
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 21.875%; /* matches the 14/64 corner of the sigma tile */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2rem 4rem rgba(251, 191, 36, 0.14);
}
@media (max-width: 640px) {
  .hero-mark .mark, .portrait { width: 7.5rem; }
  .hero-mark { gap: 1rem; }
}

/* Hero band with the network wave behind it */
.hero-band { position: relative; overflow: hidden; }
.hero-band .mesh {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 85%, transparent 100%);
}
.hero-band .wrap { position: relative; }
/* Banner-style glow on the gradient words */
.grad-tech { filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.35)); }
