/* ===========================================================
   G-Grid — shared design system
   Used by G-Grid.html and pillar subpages (g-dev / g-print / g-fab)
   =========================================================== */
/* ---------- THEME: light is default; dark via [data-theme="dark"] ---------- */
:root {
  /* LIGHT palette (default) */
  --bg:        oklch(0.984 0.003 230);
  --bg-1:      oklch(0.998 0.001 230);
  --bg-2:      oklch(0.955 0.005 230);
  --line:      oklch(0.86 0.008 230);
  --line-soft: oklch(0.915 0.006 230);
  --fg:        oklch(0.255 0.02 240);
  --fg-dim:    oklch(0.46 0.02 240);
  --fg-faint:  oklch(0.62 0.018 240);

  --grid:      oklch(0.60 0.115 196);
  --grid-deep: oklch(0.52 0.10 198);
  --dev:       oklch(0.54 0.17 262);
  --print:     oklch(0.56 0.19 332);
  --fab:       oklch(0.62 0.135 62);

  --on-accent: oklch(0.99 0.002 230);

  /* per-page accent; pillar pages override this */
  --accent:    var(--grid);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-d: "Space Grotesk", sans-serif;
  --font-b: "IBM Plex Sans", sans-serif;
  --font-m: "IBM Plex Mono", monospace;
}

html[data-theme="dark"] {
  --bg:        oklch(0.148 0.012 235);
  --bg-1:      oklch(0.185 0.013 235);
  --bg-2:      oklch(0.228 0.015 235);
  --line:      oklch(0.34 0.013 235);
  --line-soft: oklch(0.255 0.012 235);
  --fg:        oklch(0.972 0.004 235);
  --fg-dim:    oklch(0.745 0.012 235);
  --fg-faint:  oklch(0.56 0.012 235);

  --grid:      oklch(0.80 0.125 192);
  --grid-deep: oklch(0.62 0.095 195);
  --dev:       oklch(0.72 0.15 258);
  --print:     oklch(0.745 0.175 330);
  --fab:       oklch(0.805 0.15 70);

  --on-accent: oklch(0.16 0.02 235);
}

html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body { transition: color .4s var(--ease); }
/* Solid theme background on its own fixed layer — robust even if a host
   environment forces html/body background to transparent.
   NOTE: no transition on background-color — a transition there does not
   re-fire when only the --bg custom property changes (Blink/WebKit), which
   would freeze the background at the old theme's color on runtime toggle. */
.bg-base { position: fixed; inset: 0; z-index: -1; background: var(--bg); pointer-events: none; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[data-lang="pl"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="pl"] { display: none !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--line) 36%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--line) 36%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 1; }

/* ---------- type ---------- */
.mono { font-family: var(--font-m); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 8.4vw, 116px); font-weight: 700; }
h2 { font-size: clamp(32px, 5vw, 62px); }
h3 { font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.55; color: var(--fg-dim); }
.dim { color: var(--fg-dim); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 600;
  font-size: 15.5px; padding: 14px 24px; border-radius: 100px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--grid); color: var(--on-accent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--grid) 70%, transparent); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn--ghost { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--lg { padding: 17px 30px; font-size: 16.5px; }

/* ---------- nav ---------- */
header[data-nav] { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease); border-bottom: 1px solid transparent; }
header[data-nav].is-scrolled { background: color-mix(in oklab, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 30px; width: auto; }
.brand .brand-mark { display: inline-block; height: 58px; width: auto; flex: none; transition: opacity .3s var(--ease); }
.brand b { font-family: var(--font-d); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; text-transform: uppercase; }
.brand-lockup { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-lockup b { font-family: var(--font-d); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; text-transform: uppercase; }
.brand-lockup b .pillar-c { color: var(--accent); }
.brand-anno { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); white-space: nowrap; }
.brand-anno b { font: inherit; color: var(--fg-dim); }
.nav-back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-d); font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-dim); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px 7px 11px; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); white-space: nowrap; }
.nav-back:hover { color: var(--grid); border-color: var(--grid); }
.nav-back .nb-mark { width: 15px; height: 15px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 500; white-space: nowrap; color: var(--fg-dim); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; font-family: var(--font-m); font-size: 12px; }
.lang button { background: transparent; color: var(--fg-faint); border: 0; padding: 7px 12px; cursor: pointer; letter-spacing: 0.08em; transition: color .2s, background .2s; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 100px;
  border: 1px solid var(--line); background: transparent; color: var(--fg-dim); cursor: pointer; flex: none;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.theme-btn:hover { color: var(--accent); border-color: var(--accent); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .i-sun { display: none; }
.theme-btn .i-moon { display: block; }
html[data-theme="dark"] .theme-btn .i-sun { display: block; }
html[data-theme="dark"] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--fg); align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* ---------- secondary pillar bar (home + kontakt) ---------- */
.subnav-bar { border-top: 1px solid var(--line-soft); background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(14px); }
header[data-nav].is-scrolled .subnav-bar { border-top-color: color-mix(in oklab, var(--line) 70%, transparent); }
.subnav-in { display: flex; align-items: stretch; gap: 10px; min-height: 56px; padding-block: 9px; }
.subnav-links { display: flex; align-items: stretch; gap: 10px; flex: 1; min-width: 0; }
.subnav-links a { --c: var(--grid); flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 11px; white-space: nowrap;
  font-family: var(--font-d); font-weight: 600; font-size: 15px; color: var(--fg); padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 100px; transition: border-color .22s var(--ease), background .22s var(--ease), transform .22s var(--ease); }
.subnav-links a .sd { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 0 color-mix(in oklab, var(--c) 60%, transparent); transition: box-shadow .25s var(--ease); }
.subnav-links a .se { color: var(--fg-dim); font-family: var(--font-b); font-weight: 400; font-size: 13.5px; }
.subnav-links a:hover { transform: translateY(-1px); border-color: color-mix(in oklab, var(--c) 55%, var(--line)); background: color-mix(in oklab, var(--c) 9%, transparent); }
.subnav-links a:hover .sd { box-shadow: 0 0 0 4px color-mix(in oklab, var(--c) 22%, transparent); }
@media (max-width: 680px) {
  .subnav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subnav-links::-webkit-scrollbar { display: none; }
  .subnav-links a { flex: 1 0 auto; font-size: 14px; padding: 9px 16px; }
  .subnav-links a .se { display: none; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 110px; padding-bottom: 70px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, color-mix(in oklab, var(--grid) 9%, transparent), transparent 70%),
              linear-gradient(to bottom, transparent 60%, var(--bg) 100%); pointer-events: none; }
.hero .wrap { z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
.hero h1 { margin: 22px 0 0; }
.hero h1 .gl { color: var(--grid); }
.hero p.lead { margin-top: 26px; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.stat { border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px 20px; background: color-mix(in oklab, var(--bg-1) 60%, transparent); backdrop-filter: blur(6px); }
.stat .n { font-family: var(--font-d); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.stat .n.c-grid { color: var(--grid); } .stat .n.c-dev { color: var(--dev); } .stat .n.c-print { color: var(--print); } .stat .n.c-fab { color: var(--fab); }
.stat .l { margin-top: 8px; font-size: 13.5px; color: var(--fg-dim); }

/* ---------- section frame ---------- */
section.band { padding-block: clamp(72px, 10vw, 132px); position: relative; z-index: 1; }
/* anchor targets clear the fixed header when jumped to */
section[id], .hero[id], .phero[id] { scroll-margin-top: 96px; }
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 16px; }
.sec-head p { margin-top: 20px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }

/* ---------- the grid / what we are ---------- */
.grid-statement { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.gs-copy h2 { margin-bottom: 24px; }
.gs-points { list-style: none; margin-top: 30px; display: grid; gap: 2px; }
.gs-points li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.gs-points li:last-child { border-bottom: 1px solid var(--line-soft); }
.gs-points .k { font-family: var(--font-m); color: var(--grid); font-size: 13px; min-width: 34px; }
.gs-points .v b { font-family: var(--font-d); font-weight: 600; display: block; margin-bottom: 3px; }
.gs-points .v span { color: var(--fg-dim); font-size: 15px; }
.gs-visual { aspect-ratio: 1; border: 1px solid var(--line-soft); border-radius: var(--r); background:
    radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--grid) 8%, transparent), transparent 70%), var(--bg-1);
    display: flex; align-items: center; justify-content: center; padding: 12%; position: relative; overflow: hidden; }
.gs-visual::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .35; }
.gs-visual img { width: 64%; filter: drop-shadow(0 0 40px color-mix(in oklab, var(--grid) 45%, transparent)); position: relative; z-index: 1; }
.gs-visual .gs-mark { width: 64%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 0 40px color-mix(in oklab, var(--grid) 45%, transparent)); }

/* ---------- pillars (home) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.pillar { --c: var(--grid); position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1);
  padding: 32px 30px 34px; overflow: hidden; transition: transform .35s var(--ease), border-color .35s var(--ease); }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c); opacity: .85; }
.pillar::after { content: ""; position: absolute; top: -40%; right: -30%; width: 70%; height: 80%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--c) 26%, transparent), transparent 70%); opacity: 0; transition: opacity .4s var(--ease); }
.pillar:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--c) 50%, var(--line)); }
.pillar:hover::after { opacity: 1; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; position: relative; z-index: 1; }
.pillar-tag { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.pillar-idx { font-family: var(--font-m); font-size: 12px; color: var(--fg-faint); }
.pillar h3 { position: relative; z-index: 1; }
.pillar h3 .c { color: var(--c); }
.pillar > p { margin-top: 12px; color: var(--fg-dim); font-size: 15.5px; position: relative; z-index: 1; min-height: 76px; }
.pillar .caps { margin-bottom: 26px; }
.pillar-more { display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1; font-family: var(--font-d); font-weight: 600; font-size: 14.5px; color: var(--c); transition: gap .25s var(--ease); }
.pillar:hover .pillar-more { gap: 13px; }
.pillar-more svg { width: 16px; height: 16px; }
.caps { list-style: none; margin-top: 22px; display: grid; gap: 0; position: relative; z-index: 1; }
.caps li { font-size: 14.5px; padding: 12px 0; border-top: 1px solid var(--line-soft); display: flex; align-items: flex-start; gap: 11px; color: var(--fg); line-height: 1.35; }
.caps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; margin-top: 7px; }

/* ---------- process (home) ---------- */
.flow { margin-top: 56px; }
.flow-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow-line { position: absolute; top: 13px; left: 0; right: 0; height: 1px; background: var(--line); z-index: 0; }
.flow-line i { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: linear-gradient(90deg, var(--dev), var(--print), var(--fab)); transition: width 1.4s var(--ease); }
.flow.in .flow-line i { width: 100%; }
.step { position: relative; z-index: 1; padding-right: 18px; }
.step .dot { width: 27px; height: 27px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.step .dot i { width: 9px; height: 9px; border-radius: 50%; background: var(--cc, var(--grid)); }
.step .num { font-family: var(--font-m); font-size: 12px; color: var(--fg-faint); margin-top: 18px; }
.step h3 { font-size: 19px; margin-top: 7px; }
.step .tag { font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cc, var(--grid)); margin-top: 6px; }
.step p { font-size: 14px; color: var(--fg-dim); margin-top: 9px; max-width: 22ch; }

/* ---------- value / why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.why { border: 1px solid var(--line); border-radius: var(--r); padding: 30px 30px 32px; background: var(--bg-1); transition: border-color .3s var(--ease); }
.why:hover { border-color: var(--accent); }
.why .k { font-family: var(--font-m); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; }
.why h3 { margin-top: 16px; font-size: 23px; }
.why p { margin-top: 12px; color: var(--fg-dim); font-size: 15.5px; }

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 65%), var(--bg-1);
  padding: clamp(48px, 8vw, 96px) var(--gut); text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 52px 52px; opacity: .25; -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 75%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta p { margin: 22px auto 0; max-width: 50ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding-block: 60px 40px; position: relative; z-index: 1; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin-top: 16px; color: var(--fg-dim); font-size: 15px; max-width: 30ch; }
.foot-col h4 { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 16px; font-weight: 500; }
.foot-col a { display: block; color: var(--fg-dim); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.foot-bot .mono { font-size: 12px; }

/* ===========================================================
   PILLAR SUBPAGE COMPONENTS
   =========================================================== */
.phero { position: relative; padding: 142px 0 64px; overflow: hidden; }
.phero--subnav { padding-top: 196px; }
@media (max-width: 680px) { .phero--subnav { padding-top: 212px; } }
.phero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.phero::after { content: ""; position: absolute; top: -10%; right: -5%; width: 55%; height: 120%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 55% at 70% 35%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%); }
.phero .wrap { position: relative; z-index: 1; }
.crumb { display: flex; align-items: center; gap: 9px; font-family: var(--font-m); font-size: 12.5px; color: var(--fg-faint); letter-spacing: 0.04em; }
.crumb a { transition: color .2s; } .crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: .5; }
.phero-tag { font-family: var(--font-m); font-size: clamp(18px, 2.2vw, 26px); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.phero h1 { font-size: clamp(40px, 7.2vw, 96px); margin-top: 20px; }
.phero h1 .ac { color: var(--accent); }
.phero .lead { margin-top: 24px; max-width: 56ch; }
.phero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.phero-spec { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.phero-spec .v { font-family: var(--font-d); font-weight: 700; font-size: 26px; color: var(--accent); letter-spacing: -0.02em; white-space: nowrap; }
.phero-spec .k { margin-top: 5px; font-size: 13.5px; color: var(--fg-dim); }

/* feature / capability grid */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.feat { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); padding: 32px 32px 34px; position: relative; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.feat:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); transform: translateY(-4px); }
.feat .ic { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-bottom: 22px; background: color-mix(in oklab, var(--accent) 8%, transparent); }
.feat .ic svg { width: 23px; height: 23px; }
.feat h3 { font-size: 21px; }
.feat > p { margin-top: 11px; color: var(--fg-dim); font-size: 15px; }
.feat ul { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.feat ul li { font-size: 14px; color: var(--fg); padding-left: 18px; position: relative; line-height: 1.45; }
.feat ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* detailed technology rows */
.techrow { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding: 30px 0; border-top: 1px solid var(--line-soft); align-items: start; }
.techrow:last-child { border-bottom: 1px solid var(--line-soft); }
.techrow .th .abbr { font-family: var(--font-d); font-weight: 700; font-size: 23px; color: var(--accent); letter-spacing: -0.01em; }
.techrow .th .full { font-size: 13.5px; color: var(--fg-dim); margin-top: 5px; }
.techrow .td p { color: var(--fg-dim); font-size: 15.5px; max-width: 64ch; }
.techrow .specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-family: var(--font-m); font-size: 12px; color: var(--fg-dim); border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; white-space: nowrap; }
.chip b { color: var(--fg); font-weight: 500; }

/* spec stats grid */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.spec { border: 1px solid var(--line-soft); border-radius: 12px; padding: 26px 24px; background: var(--bg-1); }
.spec .v { font-family: var(--font-d); font-weight: 700; font-size: 30px; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.spec .k { margin-top: 10px; font-size: 14px; color: var(--fg-dim); }

/* materials matrix */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.mat { border: 1px solid var(--line-soft); border-radius: 11px; padding: 20px 22px; background: var(--bg-1); }
.mat b { font-family: var(--font-d); font-weight: 600; font-size: 16px; display: block; margin-bottom: 5px; }
.mat span { font-size: 13.5px; color: var(--fg-dim); }

/* pillar cross-nav */
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.pnav a { border: 1px solid var(--line); border-radius: var(--r); padding: 30px 32px; background: var(--bg-1); transition: border-color .3s var(--ease), transform .3s var(--ease); display: flex; flex-direction: column; gap: 8px; }
.pnav a:hover { transform: translateY(-4px); }
.pnav a.to-dev:hover { border-color: var(--dev); } .pnav a.to-print:hover { border-color: var(--print); } .pnav a.to-fab:hover { border-color: var(--fab); } .pnav a.to-grid:hover { border-color: var(--grid); }
.pnav .pn-k { font-family: var(--font-m); font-size: 12px; color: var(--fg-faint); letter-spacing: 0.06em; }
.pnav .pn-t { font-family: var(--font-d); font-weight: 600; font-size: 25px; letter-spacing: -0.02em; }
.pnav .c-dev { color: var(--dev); } .pnav .c-print { color: var(--print); } .pnav .c-fab { color: var(--fab); } .pnav .c-grid { color: var(--grid); }
.pnav .pn-d { font-size: 14px; color: var(--fg-dim); }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 52px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); padding: 28px 30px; }
.contact-card .ck { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.contact-card .cmail { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 600; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.01em; color: var(--accent); margin-top: 12px; word-break: break-word; transition: gap .25s var(--ease); }
.contact-card .cmail:hover { gap: 15px; }
.contact-card .cmail svg { width: 19px; height: 19px; flex: none; }
.contact-card p { color: var(--fg-dim); font-size: 15px; margin-top: 10px; }
.contact-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.contact-pills span { font-family: var(--font-m); font-size: 12px; border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; color: var(--fg-dim); }
.contact-pills .d-dev { color: var(--dev); border-color: color-mix(in oklab, var(--dev) 40%, var(--line)); }
.contact-pills .d-print { color: var(--print); border-color: color-mix(in oklab, var(--print) 40%, var(--line)); }
.contact-pills .d-fab { color: var(--fab); border-color: color-mix(in oklab, var(--fab) 40%, var(--line)); }

.form { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); padding: clamp(26px, 3vw, 38px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-family: var(--font-m); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }
.field input, .field select, .field textarea { font-family: var(--font-b); font-size: 15.5px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); width: 100%; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--fg-faint); margin-top: 14px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hero-side .stat { flex: 1 1 140px; }
  .grid-statement { grid-template-columns: 1fr; }
  .gs-visual { max-width: 420px; }
  .pillars { grid-template-columns: 1fr; }
  .flow-track { grid-template-columns: 1fr; gap: 14px; }
  .flow-line { display: none; }
  .step { display: grid; grid-template-columns: 27px 1fr; gap: 16px; padding: 0; }
  .step .num, .step h3, .step .tag, .step p { grid-column: 2; margin-top: 0; }
  .step h3 { margin-top: 2px; } .step .tag { margin-top: 4px; } .step p { margin-top: 8px; max-width: none; }
  .why-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .feat-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .techrow { grid-template-columns: 1fr; gap: 14px; }
  .mat-grid { grid-template-columns: 1fr 1fr; }
  .pnav { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  header[data-nav].is-open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 18px var(--gut) 26px; background: color-mix(in oklab, var(--bg) 96%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  header[data-nav].is-open .nav-links a { padding: 10px 0; font-size: 17px; }
}
@media (max-width: 520px) {
  .foot-top { grid-template-columns: 1fr; } .foot-brand { grid-column: auto; }
  .hero-cta .btn, .phero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .spec-grid { grid-template-columns: 1fr; }
  .mat-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .phero-spec { gap: 24px; }
}
