/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --bg:       oklch(0.975 0.007 75);
  --bg2:      oklch(0.955 0.007 75);
  --bg3:      oklch(0.930 0.008 75);
  --line:     oklch(0.875 0.006 75);
  --text:     oklch(0.14  0.012 250);
  --text-dim: oklch(0.46  0.010 250);
  --text-sub: oklch(0.64  0.008 250);
  --accent:   oklch(0.34  0.08  162);
  --accent-l: oklch(0.34  0.08  162 / 0.09);
  --f-serif:  Georgia, Garamond, "Palatino Linotype", "Times New Roman", serif;
  --f-sans:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad:      max(24px, 5vw);
}

@media (max-width: 700px) {
  :root { --pad: 20px; }
}

@media (max-width: 380px) {
  :root { --pad: 16px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       oklch(0.10  0.010 200);
    --bg2:      oklch(0.135 0.010 200);
    --bg3:      oklch(0.165 0.010 200);
    --line:     oklch(0.24  0.008 200);
    --text:     oklch(0.93  0.005 75);
    --text-dim: oklch(0.66  0.008 200);
    --text-sub: oklch(0.48  0.006 200);
    --accent:   oklch(0.72  0.14  162);
    --accent-l: oklch(0.72  0.14  162 / 0.10);
  }
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
::selection { background: var(--accent); color: var(--bg); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: 96px 0; }
.section + .section, .section + footer { border-top: 1px solid var(--line); }

/* ═══════════════════════════════════════════
   TYPE HELPERS
═══════════════════════════════════════════ */
.t-display {
  font-family: var(--f-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}
.t-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-sub);
}

/* ═══════════════════════════════════════════
   SCROLL-DRIVEN REVEAL (progressive enhancement)
═══════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: fade-up 0.75s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  .reveal.d1 { animation-delay: 0.06s; }
  .reveal.d2 { animation-delay: 0.12s; }
  .reveal.d3 { animation-delay: 0.18s; }
  .reveal.d4 { animation-delay: 0.24s; }
}

/* ═══════════════════════════════════════════
   SECTION EYEBROW
═══════════════════════════════════════════ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border-radius: 3px;
  border: 1.5px solid var(--accent);
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-l); }
.btn-sm { font-size: 12px; padding: 8px 18px; }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: oklch(0.975 0.007 75 / 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .site-nav { background: oklch(0.10 0.010 200 / 0.92); }
}

.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
}
.nav-logo-mark img { width: 22px; height: 22px; display: block; }
.nav-logo-name { font-size: 15px; font-weight: 600; letter-spacing: 0.03em; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 13px; color: var(--text-dim); letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.lang-menu { position: relative; z-index: 510; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary,
.lang-menu summary:hover { color: var(--text); border-color: var(--accent); }
.lang-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  box-shadow: 0 18px 48px oklch(0 0 0 / 0.16);
}
.lang-options a {
  display: block;
  padding: 9px 10px;
  border-radius: 3px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.2;
}
.lang-options a:hover { background: var(--accent-l); color: var(--text); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 24px; cursor: pointer; padding: 2px 0;
  background: none; border: none;
}
.nav-toggle span {
  display: block; height: 1.5px; background: var(--text);
  border-radius: 1px; transition: transform 0.25s, opacity 0.25s;
}
.nav-state { position: fixed; opacity: 0; pointer-events: none; width: 0; height: 0; }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--bg);
  z-index: 490;
  padding: var(--pad);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.nav-overlay a {
  display: block;
  font-family: var(--f-serif);
  font-size: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: color 0.2s;
  max-width: 100%;
}
.nav-overlay a:hover { color: var(--accent); }
.nav-overlay .btn {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 24px;
  font-family: var(--f-sans);
  font-size: 12px;
  padding: 8px 18px;
  border-bottom: 1.5px solid var(--accent);
}
.nav-overlay a.btn-primary,
.nav-overlay a.btn-primary:hover { color: #fff; }
.nav-overlay-langs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.nav-overlay .nav-overlay-langs a {
  padding: 8px 0;
  border-bottom: 0;
  color: var(--text-dim);
  font-family: var(--f-sans);
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn, .nav-cta .lang-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-overlay { display: block; }
  .nav-state:checked ~ .site-nav .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-state:checked ~ .site-nav .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-state:checked ~ .site-nav .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-state:checked ~ .nav-overlay { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px var(--pad) 128px;
  position: relative;
  overflow: hidden;
}
.hero-bg-word {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(100px, 20vw, 300px);
  color: var(--text);
  opacity: 0.028;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 700px) {
  .hero-bg-word {
    font-size: clamp(54px, 16vw, 78px);
    letter-spacing: -0.025em;
    transform: translate(-50%, -62%);
  }
}
.hero-side-label {
  position: absolute; right: var(--pad); top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-sub); white-space: nowrap;
}
@media (max-width: 860px) { .hero-side-label { display: none; } }

.hero-content {
  position: relative; z-index: 1; max-width: 1100px;
  animation: fadeSlideUp 1s cubic-bezier(0.22,1,0.36,1) both;
}
@media (max-width: 700px) {
  .hero {
    padding-bottom: 118px;
  }

  .hero-content { margin-bottom: clamp(48px, 10svh, 96px); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  animation: fadeSlideUp 1s 0.08s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-eyebrow-line { width: 28px; height: 1px; background: var(--accent); flex-shrink: 0; }

.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(72px, 11.5vw, 180px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 20px;
  white-space: nowrap;
  animation: fadeSlideUp 1s 0.14s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-dot { color: var(--accent); font-style: italic; }

@media (max-width: 700px) {
  .hero-title {
    font-size: clamp(48px, 15vw, 64px);
    letter-spacing: -0.035em;
  }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s 0.24s cubic-bezier(0.22,1,0.36,1) both;
}

/* CSS word-cycling carousel */
.hero-typing {
  height: clamp(40px, 6vw, 80px);
  overflow: hidden;
  margin-bottom: 32px;
}
.hero-word {
  position: absolute; top: 0; left: 0;
  font-family: var(--f-serif);
  font-weight: 300; font-style: italic;
  font-size: clamp(22px, 3.8vw, 52px);
  color: var(--text-dim);
  line-height: 1.5; white-space: nowrap;
  opacity: 0;
  animation: word-cycle 15s ease-in-out infinite;
}
.hero-word:nth-child(1) { animation-delay: 0s; }
.hero-word:nth-child(2) { animation-delay: 3s; }
.hero-word:nth-child(3) { animation-delay: 6s; }
.hero-word:nth-child(4) { animation-delay: 9s; }
.hero-word:nth-child(5) { animation-delay: 12s; }
@keyframes word-cycle {
  0%, 100%  { opacity: 0; transform: translateY(8px); }
  3.3%      { opacity: 1; transform: translateY(0); }
  16.7%     { opacity: 1; transform: translateY(0); }
  20%       { opacity: 0; transform: translateY(-6px); }
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-desc {
  max-width: 280px;
  font-size: 14px; color: var(--text-sub);
  line-height: 1.8; font-weight: 300;
}

/* Scroll cue */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; opacity: 0.3;
  animation: fadeScrollUp 1s 0.8s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-scroll-line {
  width: 1px; height: 44px; background: var(--text);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes fadeScrollUp {
  from { opacity: 0; transform: translate(-50%, 22px); }
  to   { opacity: 0.3; transform: translate(-50%, 0); }
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.3; transform: scaleY(0.4); transform-origin: top; }
}
.hero-scroll-lbl { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-sub); }

/* ═══════════════════════════════════════════
   CERT STRIP
═══════════════════════════════════════════ */
.cert-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0; overflow: hidden;
  background: var(--bg2);
}
.cert-track {
  display: flex; gap: 52px; width: max-content;
  animation: marquee 34s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cert-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-sub); white-space: nowrap;
}
.cert-diamond {
  width: 4px; height: 4px;
  background: var(--accent); transform: rotate(45deg); flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   STATS
═══════════════════════════════════════════ */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 56px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-val {
  font-family: var(--f-serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400; letter-spacing: -0.02em;
  color: var(--text); line-height: 1; margin-bottom: 10px;
}
.stat-lbl { font-size: 13px; color: var(--text-sub); }

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 36px 16px; }
  .stat:nth-child(odd)  { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
}

/* ═══════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════ */
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; gap: 48px; } }

.about-quote {
  font-family: var(--f-serif); font-weight: 300; font-style: italic;
  font-size: clamp(24px, 3.2vw, 48px);
  color: var(--text); line-height: 1.25; margin-bottom: 36px;
}
.about-text {
  font-size: 15px; color: var(--text-dim);
  line-height: 1.85; font-weight: 300;
  margin-bottom: 16px; max-width: 460px;
}
.about-pillars { display: flex; flex-direction: column; gap: 2px; }
.pillar {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 16px;
  padding: 26px 30px;
  background: var(--bg); border: 1px solid var(--line);
  transition: background 0.2s;
}
.pillar:hover { background: var(--bg3); }
.pillar-name { font-family: var(--f-serif); font-size: 22px; color: var(--text); }
.pillar-desc {
  font-size: 13px; color: var(--text-sub); font-weight: 300;
  text-align: right; max-width: 190px; line-height: 1.5;
}
.pillar-rating {
  padding: 22px 30px; background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center;
  justify-content: space-between; margin-top: 2px;
}
.pillar-rating-val {
  font-family: var(--f-serif); font-size: 28px;
  font-weight: 400; color: var(--text); line-height: 1;
}
.pillar-rating-lbl {
  font-size: 11px; color: var(--text-sub);
  margin-top: 4px; letter-spacing: 0.07em; text-transform: uppercase;
}
.pillar-stars { font-size: 18px; color: var(--accent); letter-spacing: 3px; opacity: 0.9; }

/* ═══════════════════════════════════════════
   SERVICES — details/summary accordion
═══════════════════════════════════════════ */
.services-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 60px;
  gap: 40px; flex-wrap: wrap;
}
.services-note {
  max-width: 240px; font-size: 13px;
  color: var(--text-sub); line-height: 1.8;
  font-weight: 300; text-align: right;
}
@media (max-width: 700px) { .services-note { text-align: left; } }

.services-list { border-top: 1px solid var(--line); }

details.svc { border-bottom: 1px solid var(--line); }
details.svc > summary {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 24px;
  padding: 28px 0;
  transition: color 0.2s;
}
details.svc > summary:hover .svc-title { color: var(--accent); }

.svc-num { font-size: 11px; font-weight: 600; color: var(--text-sub); letter-spacing: 0.08em; }
.svc-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.svc-tag-eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.svc-title {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400; color: var(--text); transition: color 0.2s;
}
.svc-toggle {
  font-size: 20px; color: var(--text-sub);
  font-weight: 300; transition: transform 0.25s;
  user-select: none; line-height: 1;
}
details[open] .svc-toggle { transform: rotate(45deg); }

.svc-body {
  padding: 0 0 36px 64px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: start;
}
.svc-desc {
  font-size: 15px; color: var(--text-dim);
  line-height: 1.85; font-weight: 300;
  max-width: 520px; margin-bottom: 20px;
}
.svc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-pill {
  font-size: 11px; padding: 5px 12px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 2px; color: var(--text-dim);
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}
.svc-pill:hover { border-color: var(--accent); color: var(--text); }

.svc-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  letter-spacing: 0.03em; padding: 12px 24px;
  border: 1px solid var(--accent); border-radius: 3px;
  transition: background 0.2s; white-space: nowrap;
  flex-shrink: 0;
}
.svc-link:hover { background: var(--accent-l); }

@media (max-width: 700px) {
  details.svc > summary { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .svc-body { grid-template-columns: 1fr; padding-left: 0; gap: 20px; }
}

/* ═══════════════════════════════════════════
   WORK / NDA PORTFOLIO
═══════════════════════════════════════════ */
.work-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
@media (max-width: 860px) { .work-inner { grid-template-columns: 1fr; gap: 48px; } }

.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.work-tag {
  font-size: 12px; padding: 6px 14px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 2px; color: var(--text-dim); letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}
.work-tag:hover { border-color: var(--accent); color: var(--text); }

.work-items { display: flex; flex-direction: column; }
.work-item {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--line); align-items: flex-start;
}
.work-item-num { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; margin-top: 3px; flex-shrink: 0; }
.work-item-text { font-size: 14px; color: var(--text-dim); font-weight: 300; line-height: 1.65; }
.work-note { font-size: 11px; color: var(--text-sub); letter-spacing: 0.04em; margin-top: 16px; }

/* ═══════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════ */
.products-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 48px;
  gap: 24px; flex-wrap: wrap;
}
.products-cta-link { font-size: 13px; color: var(--text-sub); transition: color 0.2s; }
.products-cta-link:hover { color: var(--accent); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .product-card:last-child { grid-column: span 3; }
}
@media (max-width: 700px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: span 2; }
}

.product-card {
  display: block; padding: 32px 26px;
  background: var(--bg2); text-decoration: none;
  transition: background 0.2s; position: relative;
}
.product-card:hover { background: var(--bg); }
.product-badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: var(--bg);
  font-size: 9px; font-weight: 600;
  padding: 4px 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.product-tag-lbl {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.product-name { font-family: var(--f-serif); font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 10px; line-height: 1.2; }
.product-desc { font-size: 12px; color: var(--text-sub); line-height: 1.65; font-weight: 300; margin-bottom: 20px; }
.product-open { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; transition: opacity 0.2s; }
.product-card:hover .product-open { opacity: 1; }

/* ═══════════════════════════════════════════
   REVIEWS — CSS :has() radio switcher
═══════════════════════════════════════════ */
.rv-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.reviews-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 56px;
  gap: 24px; flex-wrap: wrap;
}
.reviews-rating { text-align: left; }
.reviews-rating-val {
  font-family: var(--f-serif); font-size: 28px;
  font-weight: 400; color: var(--accent); line-height: 1;
}
.reviews-rating-lbl { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

.rv-featured {
  padding: 52px var(--pad);
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.rv-quote { display: none; }

/* :has() activation */
.reviews:has(#rv0:checked) .rv-quote:nth-of-type(1),
.reviews:has(#rv1:checked) .rv-quote:nth-of-type(2),
.reviews:has(#rv2:checked) .rv-quote:nth-of-type(3),
.reviews:has(#rv3:checked) .rv-quote:nth-of-type(4),
.reviews:has(#rv4:checked) .rv-quote:nth-of-type(5),
.reviews:has(#rv5:checked) .rv-quote:nth-of-type(6) { display: block; }

/* Fallback when :has() not supported */
@supports not selector(:has(*)) { .rv-quote:first-of-type { display: block; } }

.rv-quote-text {
  font-family: var(--f-serif); font-weight: 300; font-style: italic;
  font-size: clamp(20px, 2.8vw, 38px);
  color: var(--text); line-height: 1.4;
  max-width: 800px; margin-bottom: 28px;
}
.rv-author { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-serif); font-size: 18px; font-weight: 600;
  color: var(--bg); flex-shrink: 0;
}
.rv-name { font-size: 14px; font-weight: 600; color: var(--text); }
.rv-role { font-size: 12px; color: var(--text-sub); }
.rv-stars { margin-left: auto; font-size: 16px; color: var(--accent); letter-spacing: 2px; }

/* Tab selector */
.rv-tabs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
}
@media (max-width: 900px) { .rv-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .rv-tabs { grid-template-columns: repeat(2, 1fr); } }

.rv-tab {
  display: block; padding: 16px 14px; background: var(--bg);
  cursor: pointer; border-top: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.rv-tab:hover { background: var(--bg3); }
.rv-tab-name { font-size: 13px; font-weight: 500; color: var(--text-dim); margin-bottom: 3px; transition: color 0.2s; }
.rv-tab-cc { font-size: 11px; color: var(--text-sub); }

/* Active tab */
.reviews:has(#rv0:checked) label[for="rv0"],
.reviews:has(#rv1:checked) label[for="rv1"],
.reviews:has(#rv2:checked) label[for="rv2"],
.reviews:has(#rv3:checked) label[for="rv3"],
.reviews:has(#rv4:checked) label[for="rv4"],
.reviews:has(#rv5:checked) label[for="rv5"] { background: var(--bg2); border-top-color: var(--accent); }

.reviews:has(#rv0:checked) label[for="rv0"] .rv-tab-name,
.reviews:has(#rv1:checked) label[for="rv1"] .rv-tab-name,
.reviews:has(#rv2:checked) label[for="rv2"] .rv-tab-name,
.reviews:has(#rv3:checked) label[for="rv3"] .rv-tab-name,
.reviews:has(#rv4:checked) label[for="rv4"] .rv-tab-name,
.reviews:has(#rv5:checked) label[for="rv5"] .rv-tab-name { color: var(--text); }

/* Fallback active tab */
@supports not selector(:has(*)) {
  label[for="rv0"] { background: var(--bg2); border-top-color: var(--accent); }
  label[for="rv0"] .rv-tab-name { color: var(--text); }
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; max-width: 1200px;
}
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; gap: 48px; } }

.contact-title {
  font-family: var(--f-serif); font-size: clamp(36px, 5vw, 68px);
  font-weight: 400; letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 28px; line-height: 1;
}
.contact-sub {
  font-size: 15px; color: var(--text-dim);
  line-height: 1.85; font-weight: 300;
  margin-bottom: 36px;
}
.contact-channels { display: flex; flex-direction: column; gap: 10px; max-width: 100%; }

/* Email (75%) + PGP (25%) on one row — all viewports */
.contact-ch-row { display: flex; gap: 10px; }
.contact-ch-row > .contact-ch:first-child { flex: 3; min-width: 0; }
.contact-ch-row > .contact-ch:last-child  { flex: 1; min-width: 0; }

.contact-ch {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: var(--bg);
  border: 1px solid var(--line); text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.contact-ch:hover { border-color: var(--accent); background: var(--bg3); }

/* Icon */
.contact-ch-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-l); border-radius: 3px;
  color: var(--accent); margin-right: 14px;
}
.contact-ch-icon img { width: 20px; height: 20px; filter: none; }
@media (prefers-color-scheme: dark) {
  .contact-ch-icon img { filter: brightness(0) saturate(100%) invert(83%) sepia(28%) saturate(478%) hue-rotate(100deg) brightness(96%) contrast(89%); }
}

.contact-ch-body { flex: 1; min-width: 0; }
.contact-ch-label {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-sub); margin-bottom: 4px;
}
.contact-ch-val { font-size: 14px; font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hide detail val on narrow PGP card — show only on wider viewports */
.contact-ch-row > .contact-ch:last-child .contact-ch-val { display: none; }
@media (min-width: 600px) {
  .contact-ch-row > .contact-ch:last-child .contact-ch-val { display: block; }
}

.contact-arrow {
  color: var(--accent); font-size: 18px; margin-left: 16px;
  flex-shrink: 0; transition: transform 0.2s;
}
.contact-ch:hover .contact-arrow { transform: translateX(3px); }

/* Right: NDA callout */
.contact-nda {
  padding: 44px 40px; background: var(--bg); border: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 700px) { .contact-nda { padding: 28px 24px; } }
.contact-nda-icon {
  font-family: var(--f-serif); font-size: 48px; font-weight: 300;
  color: var(--accent); line-height: 1; margin-bottom: 16px;
}
.contact-nda-title {
  font-family: var(--f-serif); font-size: 26px; font-weight: 400;
  color: var(--text); margin-bottom: 12px;
}
.contact-nda-text { font-size: 14px; color: var(--text-sub); line-height: 1.75; font-weight: 300; }
.contact-nda-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-nda-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.contact-nda-item::before { content: '✓'; color: var(--accent); font-weight: 600; flex-shrink: 0; }

@media (max-width: 520px) {
  .contact-ch-row {
    flex-direction: column;
  }

  .contact-ch {
    width: 100%;
    padding: 16px;
  }

  .contact-ch-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
  }

  .contact-arrow {
    margin-left: 12px;
  }

  .contact-ch-row > .contact-ch:last-child .contact-ch-val {
    display: block;
  }

  .contact-nda {
    padding: 24px 20px;
  }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  padding: 28px var(--pad); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-name { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-sub); margin-left: 8px; }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-sub); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 700px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-logo,
  .footer-links { display: none; }
  .footer-copy {
    display: block;
    margin-left: 0;
    line-height: 1.5;
  }
}
