/* ==========================================================================
   Pi MedTech, site styles
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* brand, sampled from the logo */
  --navy: #1a2a8c;
  --blue: #2563d9;
  --cyan: #1fc0e4;
  --grad: linear-gradient(120deg, #1a2a8c 0%, #2563d9 45%, #1fc0e4 100%);

  --ink: #0b1533;
  --ink-2: #33405f;
  --ink-3: #66718c;
  --line: #e3e8f2;
  --bg: #fbfcfe;
  --bg-2: #f3f6fb;
  --white: #ffffff;
  --deep: #070e24;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 51, .06), 0 2px 8px rgba(11, 21, 51, .04);
  --shadow: 0 10px 30px -10px rgba(11, 21, 51, .18), 0 2px 6px rgba(11, 21, 51, .05);
  --shadow-lg: 0 30px 60px -20px rgba(26, 42, 140, .28);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3 { text-wrap: balance; color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h1 em, h2 em, blockquote em, .mission em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 500 15.5px/1 var(--sans); letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 21, 51, .5); }
.btn-primary:hover { color: #fff; background: var(--navy); transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(26, 42, 140, .55); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #c9d2e4; background: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(31, 192, 228, .5); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(251, 252, 254, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--ink-2); font-size: 15px; font-weight: 500; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 9vw, 110px)) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(31, 192, 228, .16), transparent 60%),
    radial-gradient(700px 500px at 100% 90%, rgba(37, 99, 217, .12), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(26, 42, 140, .06), transparent 60%),
    var(--bg);
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2); letter-spacing: .01em;
  padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .7);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(31, 192, 228, .18); }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 em { font-size: 1.08em; display: inline-block; }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--ink-2); max-width: 560px; margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--ink-3); }
.proof li { position: relative; padding-left: 18px; }
.proof li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(37, 99, 217, .1); }
.proof strong { color: var(--ink); font-weight: 600; }

/* hero visual: floating glass cards */
.hero-visual { position: relative; height: 520px; }
.glass {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .8);
  border-radius: var(--radius);
}
.hero-visual .glass { position: absolute; padding: 20px 22px; }
.label { font-size: 12.5px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.metric { font-size: 44px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.metric small { font-size: 16px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.metric.sm { font-size: 34px; }
.card-row { display: flex; justify-content: space-between; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #0f9d6b; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #12b981; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 185, 129, .5); } 100% { box-shadow: 0 0 0 9px rgba(18, 185, 129, 0); } }

.card-ecg { top: 0; left: 4%; right: 0; animation: float 9s ease-in-out infinite; }
.ecg { width: 100%; height: 84px; margin-top: 10px; overflow: visible; }
.ecg-grid { stroke: #e9eef7; stroke-width: 1; fill: none; }
.ecg-line {
  fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 760; stroke-dashoffset: 760; animation: draw 3.2s cubic-bezier(.6, .1, .3, 1) infinite;
  filter: drop-shadow(0 4px 8px rgba(37, 99, 217, .35));
}
@keyframes draw { 0% { stroke-dashoffset: 760; } 55% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.card-tir { display: flex; align-items: center; gap: 18px; top: 222px; left: 0; width: 290px; animation: float 11s ease-in-out -3s infinite; }
.ring { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 11; }
.ring-bg { stroke: #e9eef7; }
.ring-fg { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; animation: ring 2.4s 0.6s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes ring { to { stroke-dashoffset: 56.5; } }
.delta { font-size: 12.5px; font-weight: 600; color: #0f9d6b; }

.card-insight { display: flex; gap: 14px; align-items: flex-start; top: 370px; right: 0; width: 300px; animation: float 10s ease-in-out -6s infinite; }
.card-insight p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.spark-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px -4px rgba(37, 99, 217, .5); }
.spark-icon svg { width: 18px; height: 18px; fill: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px;
}
.section h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.03em; line-height: 1.06; }
.section h2 em { font-size: 1.06em; }
.sub { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); margin-top: 22px; max-width: 680px; }

/* approach */
.approach { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shift {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.shift::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
  transform: scaleX(.18); transform-origin: left; transition: transform .5s ease;
}
.shift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.shift:hover::before { transform: scaleX(1); }
.shift-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-3); }
.shift h3 { font-size: 24px; margin: 18px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.shift .from { color: #a3acc0; font-weight: 500; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: #c7cede; }
.shift .arrow { color: var(--cyan); font-weight: 400; }
.shift p { margin: 0; font-size: 16px; }
.mission { text-wrap: balance; text-align: center; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); margin: clamp(56px, 7vw, 88px) auto 0; max-width: 820px; letter-spacing: -0.015em; line-height: 1.35; }
.mission em { font-size: 1.12em; }

/* products */
.solutions { background: var(--bg); }
.product {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.product + .product { margin-top: 28px; }
.product-flip .product-media { order: 2; }
.product-media {
  position: relative; border-radius: 22px; min-height: 480px; display: grid; place-items: center; overflow: hidden; padding: 36px 20px 0;
  align-self: stretch;
}
.media-cardio { background: radial-gradient(120% 90% at 50% 100%, rgba(37, 99, 217, .22), transparent 60%), linear-gradient(160deg, #eef3ff, #e4ecfd); }
.media-life { background: radial-gradient(120% 90% at 50% 100%, rgba(31, 192, 228, .26), transparent 60%), linear-gradient(160deg, #ecfbfd, #def4f8); }
.product-media picture { display: flex; justify-content: center; align-self: end; width: 100%; }
.product-media img { width: min(270px, 70%); height: auto; align-self: end; filter: drop-shadow(0 30px 40px rgba(11, 21, 51, .25)); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product-media picture { display: flex; justify-content: center; align-self: end; width: 100%; }
.product-media img { transform: translateY(-8px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag-stage { background: #fff7e8; color: #9a6200; border-color: #f6e2b8; }
.product h3 { font-size: clamp(32px, 3.4vw, 42px); letter-spacing: -0.03em; }
.product-lede { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2vw, 26px); color: var(--ink); line-height: 1.3; margin: 10px 0 18px; }
.features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.55; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(37, 99, 217, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232563d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.features strong { color: var(--ink); font-weight: 600; }

/* PiNet (dark) */
.pinet {
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(31, 192, 228, .16), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(37, 99, 217, .22), transparent 60%),
    var(--deep);
  color: #b8c3dc;
}
.pinet h2 { color: #fff; }
.pinet h2 em { background-image: linear-gradient(120deg, #7fb2ff 0%, #1fc0e4 55%, #9ff3ff 100%); }
.pinet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.pinet-copy > p { font-size: 17.5px; margin-top: 22px; }
.tag-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #d5dcf0; }
.tag-live { display: inline-flex; align-items: center; gap: 7px; background: rgba(18, 185, 129, .12); border-color: rgba(18, 185, 129, .3); color: #5ee3b0; }
.tag-live i { width: 7px; height: 7px; border-radius: 50%; background: #12b981; animation: pulse 1.8s ease-out infinite; }
.features-dark li { color: #c9d2e8; }
.features-dark li::before { background-color: rgba(31, 192, 228, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231fc0e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pinet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.citation { font-size: 14px; color: #8794b3; margin-top: 22px; }
.citation em { color: #d5dcf0; }
.pinet-visual { margin: 0; }
.pinet-stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: 26px; overflow: hidden;
  background: #050a1a; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 80px -30px rgba(31, 192, 228, .35), inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.pinet-stage { display: grid; place-items: center; padding: 46px 20px 70px; }
.pinet-stage picture { display: contents; }
.pinet-anim { width: min(84%, 440px); height: auto; filter: drop-shadow(0 0 36px rgba(31, 192, 228, .28)); }
.legend { display: inline-flex; align-items: center; gap: 8px; color: #d5dcf0; }
.legend i { display: inline-block; flex: none; }
.lg-link { width: 18px; height: 3px; border-radius: 2px; background: #2d4cff; }
.lg-node { width: 9px; height: 9px; border-radius: 50%; background: #ff5263; }
.pinet-hud {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-radius: 14px; font-size: 12.5px; color: #8fa0c4;
  background: rgba(7, 14, 36, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .08);
}
.pinet-hud b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 3px; }
.pinet-labels { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #6f7fa6; }
.pinet-step { display: inline-flex; align-items: center; gap: 8px; color: #cfe9ff; }
.pinet-step i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pinet-visual figcaption { font-size: 13px; color: #6f7fa6; margin-top: 14px; text-align: center; }

/* quote */
.quote { background: var(--white); text-align: center; border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(34px, 5.2vw, 66px); color: var(--ink); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
.quote blockquote em { font-size: 1.08em; }
.quote-sub { max-width: 640px; margin: 28px auto 0; font-size: 18px; }

/* founders */
.founders { background: var(--bg); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.founder {
  padding: clamp(26px, 3.4vw, 40px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease;
}
.founder:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.founder-top { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.founder-photo { width: 112px; height: 112px; border-radius: 26px; object-fit: cover; flex: none; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line), var(--shadow); }
.founder h3 { font-size: 24px; }
.role { margin: 4px 0 10px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); }
.linkedin { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: #0a66c2; padding: 6px 12px 6px 10px; border-radius: 999px; background: #eef5fc; transition: background-color .2s ease; }
.linkedin:hover { background: #dbeafa; color: #0a66c2; }
.linkedin svg { width: 15px; height: 15px; fill: currentColor; }
.founder > p { font-size: 15.5px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 8px; background: var(--bg-2); color: var(--ink-2); }

/* contact */
.contact {
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(31, 192, 228, .14), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(37, 99, 217, .1), transparent 60%),
    var(--white);
  border-top: 1px solid var(--line);
}
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 500; }
.ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); flex: none; }
.ci svg { width: 19px; height: 19px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linejoin: round; }

.form { padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 18px; background: rgba(255, 255, 255, .85); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid #d6ddea; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2366718c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 217, .14); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.consent.invalid { color: #b03636; }
.form-status { margin: 0; font-size: 14.5px; min-height: 1.4em; text-align: center; }
.form-status.ok { color: #0f8a5f; font-weight: 500; }
.form-status.err { color: #b03636; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 34px; font-size: 14.5px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { margin: 16px 0 0; color: var(--ink-3); max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { color: var(--ink-2); font-weight: 500; }
.footer-nav a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.footer-base p { margin: 0; }
.disclaimer { max-width: 620px; }

/* simple content pages (privacy, 404) */
.page { padding: calc(var(--header-h) + 72px) 0 100px; min-height: 70vh; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.03em; margin-bottom: 14px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.page .updated { color: var(--ink-3); font-size: 14.5px; margin-bottom: 36px; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.center { text-align: center; }
.center .btn { margin-top: 12px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
/* hero animates on load with CSS only, so it never waits for JS */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .08s; }
.js .hero .reveal:nth-child(3) { animation-delay: .16s; }
.js .hero .reveal:nth-child(4) { animation-delay: .24s; }
.js .hero .reveal:nth-child(5) { animation-delay: .32s; }
.js .hero-visual.reveal { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.shifts .reveal:nth-child(2), .founder-grid .reveal:nth-child(2) { transition-delay: .1s; }
.shifts .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 440px; max-width: 560px; width: 100%; margin: 12px auto 0; }
  .pinet-grid, .contact-grid { grid-template-columns: 1fr; }
  .pinet-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .product { grid-template-columns: 1fr; }
  .product-flip .product-media { order: 0; }
  .product-media { min-height: 380px; }
  .product-media picture { display: flex; justify-content: center; align-self: end; width: 100%; }
.product-media img { width: min(230px, 60%); }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .nav-toggle {
    display: grid; place-items: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line);
    border-radius: 12px; background: rgba(255, 255, 255, .8); cursor: pointer; padding: 0; align-content: center;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .25s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: rgba(251, 252, 254, .97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 18px 0 0; height: 48px; }
  .site-header.menu-open { background: rgba(251, 252, 254, .97); box-shadow: 0 1px 0 var(--line); }
  .shifts, .founder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { height: 455px; }
  .card-ecg { left: 0; }
  .card-tir { top: 196px; width: 240px; padding: 16px 18px; gap: 14px; }
  .ring { width: 66px; height: 66px; }
  .card-insight { top: 318px; width: 255px; padding: 16px 18px; }
  .metric { font-size: 38px; }
  .metric.sm { font-size: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .founder-top { flex-direction: column; align-items: flex-start; }
  .pinet-hud { font-size: 11.5px; padding: 10px 12px; }
  .product { padding: 18px; border-radius: 22px; }
  .product-media { min-height: 330px; }
  .pinet-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ecg-line { animation: none !important; stroke-dashoffset: 0; }
  .ring-fg { animation: none !important; stroke-dashoffset: 56.5; }
  .js .reveal, .js .hero .reveal { opacity: 1; transform: none; animation: none; }
}
.center-sub { margin-left: auto; margin-right: auto; margin-bottom: 28px; }
