/* Fenyx Lab — layout concept: a dark "lab bench". Every project is a catalogued
   specimen (FL-001…) and the hero is a live instrument (a running watch face). */
:root {
  --ink: #06080d;          /* page ground */
  --bench: #0c1018;        /* raised surfaces */
  --bench-2: #121826;      /* hover / inputs */
  --rule: #1d2433;         /* hairlines */
  --text: #e9edf5;         /* primary text */
  --muted: #8b94a8;        /* secondary text */
  --ion: #51afad;          /* brand teal (from the Fenyx Lab logo) */
  --ion-dim: rgba(81, 175, 173, 0.12);
  --signal: #ffb44c;       /* tiny warm indicator for status */

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 3rem);
  --step-4: clamp(2.4rem, 6.5vw, 4.6rem);

  --wrap: 1180px;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ion); color: var(--ink); }

h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ion);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 13, 0.72);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo-mark { height: 32px; width: auto; flex: none; }
.logo-word { height: 14px; width: auto; flex: none; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: auto;
  position: relative;
  transition: transform 0.25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: var(--f-body);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ion);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(81, 175, 173, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px rgba(81, 175, 173, 0.55); }
.btn-ghost { border-color: var(--rule); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); background: var(--bench); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 110px) clamp(48px, 7vw, 90px); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 {
  font-family: var(--f-display);
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.hero h1 em {
  font-style: normal;
  color: var(--ion);
}
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--f-mono);
  font-size: var(--step--1);
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}
.hero-tags span::before { content: "▸ "; color: var(--ion); }

/* Live watch instrument */
.instrument {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}
.instrument-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  max-width: 100%;
}
.instrument-frame::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 175, 173, 0.16), transparent 62%);
  filter: blur(10px);
}
.bezel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 5%;
  background:
    radial-gradient(circle at 30% 25%, #3a4356, #151a24 45%, #0a0d13 75%);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.12),
    inset 0 -6px 14px rgba(0, 0, 0, 0.7),
    0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.bezel canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000;
}
.instrument-label {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.instrument-label b { color: var(--text); font-weight: 500; }
.instrument-label.l1 { top: 4%; left: -2%; }
.instrument-label.l2 { bottom: 6%; right: -2%; text-align: right; }
.instrument-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ion);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--rule); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head > div { display: grid; gap: 16px; min-width: 0; }
.section-head h2 {
  font-family: var(--f-display);
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.section-head p { color: var(--muted); max-width: 52ch; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--rule);
  gap: 1px;
}
.service {
  background: var(--ink);
  padding: 32px 28px 30px;
  display: grid;
  gap: 14px;
  align-content: start;
  position: relative;
  transition: background 0.3s;
}
.service:hover { background: var(--bench); }
.service-code {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ion-dim);
  color: var(--ion);
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 { font-size: var(--step-1); font-weight: 600; }
.service p { color: var(--muted); font-size: 0.96rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.chip {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
}

/* Featured work (home) & portfolio cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.specimen {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bench);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.specimen:hover { transform: translateY(-4px); border-color: #2c3548; }
.specimen-body { padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; }
.specimen-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status.live::before { background: var(--ion); box-shadow: 0 0 10px var(--ion); }
.status.build::before { background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.specimen h3 { font-size: 1.2rem; }
.specimen p { color: var(--muted); font-size: 0.94rem; }

/* Card visuals: CSS-built mock devices */
.viz {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 50% 120%, rgba(81, 175, 173, 0.18), transparent 60%),
    var(--ink);
}
.mock-browser {
  position: relative;
  width: 78%;
  height: 72%;
  border-radius: 10px;
  border: 1px solid #2a3244;
  background: #0d121c;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px #000;
  transition: transform 0.4s;
}
.specimen:hover .mock-browser, .specimen:hover .mock-phone, .specimen:hover .mock-watch, .specimen:hover .mock-term { transform: translateY(-4px) scale(1.02); }
.mock-browser .bar {
  height: 18px;
  border-bottom: 1px solid #222a3a;
  display: flex;
  gap: 5px;
  align-items: center;
  padding-left: 8px;
}
.mock-browser .bar i { width: 6px; height: 6px; border-radius: 50%; background: #2c3548; }
.mock-browser .page { padding: 12px; display: grid; gap: 7px; }
.ln { height: 6px; border-radius: 4px; background: #222a3a; }
.ln.ion { background: var(--ion); opacity: 0.85; }
.ln.w30 { width: 30%; } .ln.w45 { width: 45%; } .ln.w60 { width: 60%; } .ln.w80 { width: 80%; }
.ln.big { height: 12px; }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 4px; }
.blocks i { aspect-ratio: 4 / 3; border-radius: 4px; background: #182030; border: 1px solid #222a3a; }

.mock-phone {
  position: relative;
  height: 84%;
  aspect-ratio: 9 / 18;
  border-radius: 18px;
  border: 2px solid #2a3244;
  background: #0d121c;
  padding: 14px 8px 8px;
  display: grid;
  gap: 6px;
  align-content: start;
  transition: transform 0.4s;
  box-shadow: 0 20px 40px -20px #000;
}
.mock-phone::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 30%;
  height: 4px;
  border-radius: 4px;
  background: #222a3a;
  transform: translateX(-50%);
}
.mock-phone .card { height: 28px; border-radius: 6px; background: #182030; border: 1px solid #222a3a; }
.mock-phone .card.ion { background: var(--ion-dim); border-color: rgba(81, 175, 173, 0.4); }

.mock-watch {
  position: relative;
  height: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #3a4356, #151a24 45%, #0a0d13 75%);
  padding: 6%;
  transition: transform 0.4s;
  box-shadow: 0 20px 40px -16px #000;
}
.mock-watch .face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000;
  display: grid;
  place-items: center;
  position: relative;
  font-family: var(--f-display);
  color: var(--text);
  font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  font-weight: 500;
}
.mock-watch .face::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(var(--ion) 0 var(--p, 68%), #1b2230 var(--p, 68%) 100%);
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%);
  mask: radial-gradient(circle, transparent 64%, #000 65%);
}
.mock-watch.amber .face::before { background: conic-gradient(var(--signal) 0 var(--p, 40%), #1b2230 var(--p, 40%) 100%); }
.mock-watch .face small {
  position: absolute;
  bottom: 26%;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.mock-term {
  position: relative;
  width: 78%;
  border-radius: 10px;
  border: 1px solid #2a3244;
  background: #0a0e15;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--muted);
  transition: transform 0.4s;
  box-shadow: 0 20px 40px -20px #000;
}
.mock-term b { color: var(--ion); font-weight: 400; }
.mock-term .ok { color: var(--signal); }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}
.step {
  padding: 28px 24px 8px 0;
  display: grid;
  gap: 12px;
  align-content: start;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ion);
  letter-spacing: 0.1em;
}
.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ion);
  box-shadow: 0 0 12px var(--ion);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step .time { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--bench), transparent);
}
.principle .num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--ion);
  line-height: 1;
  min-width: 3.2ch;
  font-variant-numeric: tabular-nums;
}
.principle .num small { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); display: block; margin-top: 6px; letter-spacing: 0.06em; }
.principle h3 { font-size: 1.08rem; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  color: var(--ion);
  font-size: 1.3rem;
  transition: transform 0.25s;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 68ch; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contact-copy { display: grid; gap: 20px; min-width: 0; }
.contact-copy h2 { font-family: var(--f-display); font-size: var(--step-3); font-weight: 500; line-height: 1.1; }
.contact-copy p { color: var(--muted); }
.contact-lines { display: grid; gap: 12px; padding-top: 10px; }
.contact-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.contact-line span:first-child { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.contact-line a:hover { color: var(--ion); }

.form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--bench);
  min-width: 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ion);
  box-shadow: 0 0 0 3px var(--ion-dim);
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 0.2s;
}
.pills input:checked + label { background: var(--ion-dim); border-color: var(--ion); color: var(--ion); }
.pills input:focus-visible + label { outline: 2px solid var(--ion); outline-offset: 2px; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-status { font-size: 0.9rem; color: var(--ion); min-height: 1.2em; }

/* CTA band */
.cta-band {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(36px, 6vw, 64px);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(81, 175, 173, 0.16), transparent 55%),
    var(--bench);
}
.cta-band h2 { font-family: var(--f-display); font-size: var(--step-2); font-weight: 500; max-width: 22ch; line-height: 1.2; }

/* ---------- Portfolio page ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 44px); }
.page-hero .wrap { display: grid; gap: 20px; }
.page-hero h1 { font-family: var(--f-display); font-size: var(--step-4); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.1rem; }
.index-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.index-stats b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; margin-right: 6px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.filter .count { font-family: var(--f-mono); font-size: 0.72rem; opacity: 0.7; margin-left: 4px; }

.specimen .specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  font-size: 0.82rem;
}
.specimen .specs dt { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; padding-top: 2px; }
.specimen .specs dd { margin: 0; color: var(--text); }
.specimen.is-hidden { display: none; }

.specimen.open-slot {
  border-style: dashed;
  background: transparent;
  grid-template-rows: 1fr;
  place-items: center;
  text-align: center;
  min-height: 320px;
}
.open-slot .specimen-body { justify-items: center; gap: 14px; }
.open-slot .plus {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px dashed var(--ion);
  color: var(--ion);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 56px 36px; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 36px;
}
.footer-grid h4 {
  margin: 0 0 14px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.93rem; }
.footer-grid ul a { color: var(--text); opacity: 0.85; }
.footer-grid ul a:hover { color: var(--ion); opacity: 1; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all 0.2s;
}
.socials a:hover { color: var(--ion); border-color: var(--ion); }
.socials svg { width: 18px; height: 18px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

/* ---------- Reveal on scroll (starts visible; only nudges) ---------- */
.reveal { transition: transform 0.7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.pending { transform: translateY(14px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .instrument { order: -1; }
  .instrument-frame { width: min(76vw, 340px); }
  .services, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .section-head, .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    background: rgba(6, 8, 13, 0.97);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 620px) {
  .services, .work-grid, .principles, .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .instrument-label { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal.pending { transform: none; }
}

/* ---------- Website packages ---------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.value {
  background: var(--ink);
  padding: 22px 22px 20px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.value b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ion);
  font-variant-numeric: tabular-nums;
}
.value span { color: var(--muted); font-size: 0.92rem; }

.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.package {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 30px 26px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bench);
  min-width: 0;
}
.package.featured {
  border-color: rgba(81, 175, 173, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(81, 175, 173, 0.12), transparent 60%),
    var(--bench);
}
.package .flag {
  position: absolute;
  top: -11px;
  left: 26px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ion);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.package-head { display: grid; gap: 8px; }
.package-head .tier { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.package h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; }
.package-head p { color: var(--muted); font-size: 0.95rem; }
.package .price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 14px;
  border-block: 1px dashed var(--rule);
  font-size: 0.9rem;
}
.package .price b { font-weight: 600; }
.package .price span { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ion); }
.package ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: 0.94rem; }
.package li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.package li::before { content: "✓"; color: var(--ion); font-size: 0.85rem; padding-top: 1px; }
.package .btn { width: 100%; }
.packages-note { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.packages-note a { color: var(--ion); }

/* ---------- The Lab: experiment log ---------- */
.lab {
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(255, 180, 76, 0.07), transparent 70%),
    transparent;
}
.lab .eyebrow { color: var(--signal); }
.log {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bench);
}
.log-head, .log-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 0.9fr 2fr 110px;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
}
.log-head {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-block: 12px;
}
.log-row { border-bottom: 1px solid var(--rule); transition: background 0.2s; }
.log-row:last-child { border-bottom: 0; }
.log-row:hover { background: var(--bench-2); }
.log-row > * { min-width: 0; }
.log-row .code { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.log-row .name { font-weight: 600; }
.log-row .platform { font-size: 0.88rem; color: var(--text); }
.log-row .what { color: var(--muted); font-size: 0.92rem; }
.log-row .status { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.log-empty { padding: 28px 24px; display: grid; gap: 10px; }
.log-empty .status { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.log-empty p { color: var(--muted); max-width: 60ch; }
.status.idea::before { background: transparent; border: 1px solid var(--muted); }
.lab-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 8px 0 22px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.group-title h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--step-2); }
.group-title p { color: var(--muted); font-size: 0.95rem; max-width: 56ch; }
.group-title.is-hidden, .work-grid.is-hidden { display: none; }

@media (max-width: 980px) {
  .packages { grid-template-columns: 1fr; max-width: 560px; }
  .value-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-head { display: none; }
  .log-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .log-row .code { grid-column: 1 / -1; }
  .log-row .name { grid-column: 1; }
  .log-row .status { grid-column: 2; grid-row: 2; }
  .log-row .platform, .log-row .what { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .value-strip { grid-template-columns: 1fr; }
}

/* ---------- Portfolio: watch drawings ---------- */
.mock-watch.earth .face { background: radial-gradient(circle at 34% 30%, #6cc3e8 0, #2a78a8 30%, #0f3b5e 58%, #02070d 100%); text-shadow: 0 1px 6px #000; }
.mock-watch.earth .face::before { display: none; }
.specimen-wide { grid-column: 1 / -1; }
.viz-screens { aspect-ratio: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; place-items: stretch; }
.viz-screens img { width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 620px) {
  .specimen-wide { grid-column: auto; }
  .viz-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.viz-gallery { aspect-ratio: auto; display: grid; gap: 10px; padding: 16px; place-items: stretch; }
.viz-gallery img { width: 100%; height: auto; border-radius: 10px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gallery-thumbs img { aspect-ratio: 16 / 10; object-fit: cover; }
.viz-gallery a, .viz-screens img { transition: opacity 0.2s; }
.viz-gallery a:hover { opacity: 0.85; }
@media (max-width: 620px) { .gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.log-empty p a, .page-hero p a { color: var(--ion); }
/* Phone menu: solid background while open (the frosted blur stops the menu panel painting) */
.site-header.nav-open { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.nav-open .nav { background: var(--ink); }
/* Get a quote page */
.quote-hero .contact { align-items: start; }
.quote-title { font-family: var(--f-display); font-size: var(--step-3); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
.faq details p a { color: var(--ion); }
.page-hero .quote-title { font-size: var(--step-3); line-height: 1.1; }
.quote-hero .wrap.contact { display: grid; }
/* Hidden checkboxes behind the "I'm interested in" pills: keep them tiny so they can't widen the page */
.pills { position: relative; }
.field .pills input { width: 1px; height: 1px; padding: 0; margin: 0; border: 0; top: 0; left: 0; }
/* Hero headline: exactly two lines, one per sentence */
.hero h1 { font-size: clamp(1.45rem, 6.6vw, 3.3rem); white-space: nowrap; }
@media (min-width: 981px) { .hero h1 { font-size: clamp(2rem, 3.9vw, 3.3rem); } }
/* Apps heading: one line above the three cards on wider screens */
#apps .section-head { grid-template-columns: 1fr; }
#apps .section-head h2 { font-size: clamp(1.5rem, 5.5vw, 2.4rem); }
@media (min-width: 761px) { #apps .section-head h2 { font-size: clamp(1.4rem, 3.05vw, 2.4rem); white-space: nowrap; } }
/* Apps heading: centred, with a larger "APPS" label and no dash */
#apps .section-head > div { justify-items: center; text-align: center; }
#apps .section-head .eyebrow { font-size: calc(var(--step--1) * 2); }
#apps .section-head .eyebrow::before { display: none; }
/* Websites heading: same centred, one-line treatment as Apps */
#websites .section-head { grid-template-columns: 1fr; }
#websites .section-head > div { justify-items: center; text-align: center; }
#websites .section-head h2 { font-size: clamp(1.5rem, 5.5vw, 2.4rem); }
@media (min-width: 761px) { #websites .section-head h2 { font-size: clamp(1.4rem, 3.05vw, 2.4rem); white-space: nowrap; } }
#websites .section-head .eyebrow { font-size: calc(var(--step--1) * 2); }
#websites .section-head .eyebrow::before { display: none; }

/* =====================================================================
   Futuristic pass: no dividing lines, a living starfield, glass panels
   and soft teal light. Sections are separated by space and glow only.
   ===================================================================== */
:root { --glass: rgba(14, 20, 30, 0.55); --glass-edge: rgba(81, 175, 173, 0.18); --glow: rgba(81, 175, 173, 0.35); }

/* Starfield canvas sits behind everything */
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; max-width: none; }

/* Remove the lines between sections and blocks */
.site-header { border-bottom: 0; background: rgba(6, 8, 13, 0.45); }
.section, .site-footer, .footer-base, .hero-tags, .index-stats, .group-title { border-top: 0; }
.contact-line { border-bottom: 0; padding-block: 10px; }
.faq { border-top: 0; gap: 12px; }
.faq details { border-bottom: 0; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius); padding-inline: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.package .price { border-block: 0; background: rgba(81, 175, 173, 0.06); border-radius: 10px; padding-inline: 14px; }
.specimen .specs { border-top: 0; }
.site-footer { margin-top: 0; background: linear-gradient(180deg, transparent, rgba(81, 175, 173, 0.05)); }
.hero-tags { padding-top: 0; }

/* Hero: glowing headline and an orbit ring around the watch */
.hero h1 em {
  background: linear-gradient(100deg, #51afad 0%, #8ff0e6 35%, #51afad 55%, #2f8f8d 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.instrument-frame::after {
  content: ""; position: absolute; inset: -7%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(81, 175, 173, 0.0) 70%, rgba(143, 240, 230, 0.9) 98%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 69.4%, #000 69.6%, #000 70.4%, transparent 70.6%);
  mask: radial-gradient(circle, transparent 69.4%, #000 69.6%, #000 70.4%, transparent 70.6%);
  animation: orbit 9s linear infinite; pointer-events: none;
}
.instrument-frame::before { inset: -18%; background: radial-gradient(circle, rgba(81, 175, 173, 0.22), rgba(47, 95, 224, 0.10) 45%, transparent 68%); filter: blur(18px); }
@keyframes orbit { to { transform: rotate(360deg); } }

/* Glass panels with a light that follows the pointer */
.value-strip { background: none; border: 0; gap: 12px; overflow: visible; }
.value, .package, .log, .form, .cta-band, .specimen {
  background: var(--glass); border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
}
.value { border-radius: var(--radius); }
.value::after, .package::after, .specimen::after, .form::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgba(81, 175, 173, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.value:hover::after, .package:hover::after, .specimen:hover::after, .form:hover::after { opacity: 1; }
.package { transition: transform 0.35s cubic-bezier(.2,.7,.2,1), border-color 0.35s, box-shadow 0.35s; }
.package:hover { transform: translateY(-6px); border-color: rgba(81, 175, 173, 0.45); box-shadow: 0 24px 60px -24px var(--glow); }
.package.featured { border-color: rgba(81, 175, 173, 0.6); box-shadow: 0 0 0 1px rgba(81, 175, 173, 0.25), 0 30px 80px -30px var(--glow); }
.package .flag { z-index: 1; }

/* Phone menu panel keeps a clean edge without a line */
@media (max-width: 760px) {
  .nav { border-bottom: 0; }
  .nav a:not(.btn) { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 em, .instrument-frame::after { animation: none; }
}
/* Fixes: keep the orbit inside the hero, show the full ring, don't clip the package tag */
.hero { overflow: clip; }
.instrument-frame::after {
  inset: -5%;
  background: conic-gradient(from 0deg, rgba(81, 175, 173, 0.14) 0 72%, rgba(143, 240, 230, 0.95) 99%, rgba(81, 175, 173, 0.14) 100%);
  -webkit-mask: radial-gradient(closest-side, transparent 97.6%, #000 98.2%, #000 99.4%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 97.6%, #000 98.2%, #000 99.4%, transparent 100%);
}
.package { overflow: visible; }

/* ---------- Reviews ---------- */
#reviews .section-head { grid-template-columns: 1fr; }
#reviews .section-head > div { justify-items: center; text-align: center; }
#reviews .section-head h2 { font-size: clamp(1.5rem, 5.5vw, 2.4rem); }
#reviews .section-head .eyebrow { font-size: calc(var(--step--1) * 2); }
#reviews .section-head .eyebrow::before { display: none; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.reviews:empty { display: none; }
.review-card { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.review-card .rating { color: #ffcf5c; letter-spacing: 3px; font-size: 1.05rem; }
.review-card blockquote { margin: 0; color: var(--text); line-height: 1.65; }
.review-card .who { font-size: 0.9rem; color: var(--muted); }
.review-card .who b { color: var(--text); font-weight: 600; }
.review-card .verified { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ion); text-transform: uppercase; }
#reviews-empty { max-width: 720px; margin-inline: auto; text-align: center; justify-items: center; }

/* Review page */
.review-wrap { max-width: 760px; }
.stars-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.stars-field legend { font-size: 0.82rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: #2a3346; cursor: pointer; transition: color 0.15s, transform 0.15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #ffcf5c; }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--ion); }
[hidden] { display: none !important; }
.stars { position: relative; width: max-content; }
.field .stars input { width: 1px; height: 1px; padding: 0; margin: 0; border: 0; top: 0; left: 0; }
/* Reviews: five decorative stars that light up one after another */
.star-row { display: flex; gap: 10px; font-size: 1.6rem; line-height: 1; }
.star-row span { color: rgba(255, 207, 92, 0.18); text-shadow: none; animation: star-glow 4s ease-in-out infinite; }
.star-row span:nth-child(2) { animation-delay: 0.25s; }
.star-row span:nth-child(3) { animation-delay: 0.5s; }
.star-row span:nth-child(4) { animation-delay: 0.75s; }
.star-row span:nth-child(5) { animation-delay: 1s; }
@keyframes star-glow {
  0%, 15% { color: rgba(255, 207, 92, 0.18); text-shadow: none; }
  30%, 70% { color: #ffcf5c; text-shadow: 0 0 14px rgba(255, 207, 92, 0.55); }
  100% { color: rgba(255, 207, 92, 0.18); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .star-row span { animation: none; color: #ffcf5c; } }
