/* ═══════════════════════════════════════════════════════════
   Turbnetic.ai: apple.com-style landing
   Light-first, one idea per section, alternating light / dark chapters.
   System type (SF Pro on Apple devices), color only in the product and links.
═══════════════════════════════════════════════════════════ */

:root {
  --white:   #ffffff;
  --light:   #f5f5f7;
  --ink:     #1d1d1f;
  --ink-2:   #6e6e73;
  --ink-3:   #86868b;
  --rule:    #d2d2d7;
  --black:   #000000;
  --black-2: #161617;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --link:      #0066cc;
  --link-dark: #2997ff;
  --btn:       #0071e3;
  --btn-hover: #0077ed;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text:    "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1024px;
  --wide: 1200px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--white); color: var(--ink);
  font: 17px/1.47 var(--text); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
::selection { background: rgba(0, 113, 227, 0.22); }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 22px; }
.wide { max-width: var(--wide); }

/* ── type scale ── */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1.24 var(--text); letter-spacing: -0.022em; }
.eyebrow.new { color: #bf4800; }
.dark .eyebrow.new, .tile.feature .eyebrow.new { color: #f56300; }
.h-hero { font: 600 clamp(48px, 7.4vw, 80px)/1.05 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.h-chapter { font: 600 clamp(40px, 5.6vw, 64px)/1.0625 var(--display); letter-spacing: -0.009em; text-wrap: balance; }
.h-section { font: 600 clamp(32px, 4.8vw, 56px)/1.07 var(--display); letter-spacing: -0.005em; text-wrap: balance; }
.h-section .soft { color: var(--ink-3); }
.dark .h-section .soft { color: var(--on-dark-2); }
.lede { font: 400 clamp(21px, 2.4vw, 28px)/1.14 var(--display); letter-spacing: 0.007em; text-wrap: balance; }
.body-l { font: 400 clamp(17px, 1.6vw, 21px)/1.43 var(--text); letter-spacing: 0.011em; }
.fine { font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; color: var(--ink-2); }

/* ── links + buttons: Apple's chevron links and one blue pill ── */
.ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; }
.link { color: var(--link); font-size: 19px; line-height: 1.2; display: inline-flex; align-items: center; gap: 4px; }
.link::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); transition: transform 0.25s var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover::after { transform: translate(2px, -1px); }
.dark .link { color: var(--link-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border: 0; border-radius: 12px; background: var(--btn); color: #fff; font-size: 17px; line-height: 1.18; cursor: pointer; transition: background 0.2s var(--ease), transform 0.1s var(--ease); }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }


/* ── sections ── */
section { position: relative; }
.dark { background: var(--black); color: var(--on-dark); }
.grey { background: var(--light); }
.pad { padding-block: clamp(96px, 13vw, 160px); }
.center { text-align: center; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-md { display: flex; flex-direction: column; gap: 22px; }

/* ═════════ GLOBAL NAV (frosted, adapts to the section beneath) ═════════ */
.gn { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding-top: env(safe-area-inset-top, 0px); }
.gn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.gn.scrolled::before { background: rgba(251, 251, 253, 0.8); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }
.gn.on-dark { color: var(--on-dark); }
.gn.on-dark.scrolled::before { background: rgba(22, 22, 23, 0.8); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.gn-inner { max-width: var(--max); height: 48px; margin: 0 auto; padding-inline: 22px; display: flex; align-items: center; gap: 28px; }
.gn-logo { display: inline-flex; align-items: center; gap: 8px; font: 600 17px/1 var(--display); letter-spacing: -0.01em; }
.gn-logo svg { width: 22px; height: 22px; }
.gn-links { display: flex; gap: 30px; list-style: none; margin-left: auto; }
.gn-links a { font-size: 12px; letter-spacing: -0.01em; opacity: 0.8; transition: opacity 0.2s; }
.gn-links a:hover { opacity: 1; }
.gn-cta { font-size: 12px; padding: 5px 12px; border-radius: 7px; background: var(--btn); color: #fff !important; transition: background 0.2s; }
.gn-cta:hover { background: var(--btn-hover); }
.gn-burger { display: none; width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; cursor: pointer; position: relative; }
.gn-burger span { position: absolute; left: 14px; width: 16px; height: 1.2px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.gn-burger span:nth-child(1) { top: 19px; }
.gn-burger span:nth-child(2) { top: 25px; }
.gn-burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.gn-burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.gn-menu { position: fixed; inset: 48px 0 0; z-index: 99; padding: 24px 40px; background: rgba(251, 251, 253, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--ink); }
.gn-menu a { display: block; padding: 10px 0; font: 600 28px/1.15 var(--display); letter-spacing: 0.007em; }
.gn-menu a.cta { color: var(--btn); }

/* ═════════ HERO (light) ═════════ */
.hero { padding-top: calc(48px + clamp(40px, 6.5vw, 84px)); padding-bottom: 0; overflow: hidden; }
.hero .eyebrow { color: var(--ink-2); font-weight: 600; }
.hero .lede { max-width: 34ch; margin-inline: auto; color: var(--ink); }
.hero .ctas { margin-top: 30px; }
.hero-stage { position: relative; margin: clamp(40px, 5vw, 64px) auto 0; width: min(100%, 1120px); padding-inline: 22px; padding-bottom: clamp(80px, 10vw, 140px); }
.app-window { width: 88%; transform-origin: 50% 0; will-change: transform; filter: drop-shadow(0 36px 48px rgba(0, 0, 0, 0.16)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.08)); }
.app-phone { position: absolute; right: 22px; bottom: clamp(36px, 5vw, 76px); width: 22%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.22)); animation: float 6s ease-in-out infinite alternate; }


@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ═════════ TURBOFAN CHAPTER (dark) ═════════ */
.product { padding-top: clamp(96px, 12vw, 150px); overflow: hidden; }
.product .lede { color: var(--on-dark); }
.product-shot { position: relative; margin: clamp(30px, 5vw, 60px) auto 0; width: min(100%, 1400px); }
.product-shot img { width: 100%; will-change: transform; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin: clamp(24px, 4vw, 48px) auto 0; padding-bottom: clamp(96px, 12vw, 150px); text-align: center; }
.stat b { display: block; font: 600 clamp(40px, 5vw, 56px)/1.05 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 17px; line-height: 1.35; color: var(--on-dark-2); }

/* ═════════ PINNED SCENE: why the edge ═════════ */
.pin { height: 340vh; background: var(--black); color: var(--on-dark); }
.pin-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.pin-bg { position: absolute; inset: -6%; background: url("../assets/shots/engine-cutaway.webp") center / cover no-repeat; opacity: 0.4; transform: scale(1.18); will-change: transform, opacity; }
.pin-stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.92)); pointer-events: none; }
.pin-label { position: absolute; top: calc(48px + 32px); left: 0; right: 0; z-index: 2; text-align: center; color: var(--on-dark-2); }
.steps { position: relative; z-index: 2; width: 100%; max-width: 980px; padding-inline: 22px; text-align: center; }
.step { position: absolute; inset: 50% 22px auto; transform: translateY(-50%); }
.step h2 { font: 700 clamp(44px, 8vw, 96px)/1.04 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.step p { max-width: 34ch; margin: 22px auto 0; color: var(--on-dark-2); }
.step-dots { position: absolute; bottom: 40px; left: 50%; z-index: 2; display: flex; gap: 10px; transform: translateX(-50%); }
.step-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.step-dots i.on { background: #fff; transform: scale(1.15); }

/* ═════════ PLATFORM TILES (apple.com homepage tiles) ═════════ */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 72px); }
.tile { position: relative; display: flex; flex-direction: column; min-height: 560px; padding: 52px 40px 0; border-radius: 28px; background: var(--white); overflow: hidden; text-align: center; }
.tile.span { grid-column: 1 / -1; }
.soon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tile.small { min-height: 0; padding: 44px 28px 40px; }
.tile.small h3 { font-size: clamp(24px, 2.4vw, 28px); }
.tile.small p { font-size: 17px; }
.status { font: 600 14px/1.3 var(--text); letter-spacing: -0.016em; color: var(--ink-3); }
.tile h3 { font: 600 clamp(28px, 3.4vw, 40px)/1.1 var(--display); letter-spacing: 0; margin-top: 8px; }
.tile p { max-width: 30ch; margin: 12px auto 0; color: var(--ink-2); font-size: 19px; line-height: 1.32; letter-spacing: 0.012em; }
.tile .ctas { margin-top: 18px; }
.tile .art { margin-top: auto; padding-top: 36px; display: grid; place-items: end center; }
.tile.feature { flex-direction: row; align-items: center; text-align: left; min-height: 520px; padding: 0 0 0 64px; gap: 40px; background: var(--black); color: var(--on-dark); }
.tile.feature .copy { flex: 1 1 50%; padding-block: 56px; }
.tile.feature p { margin-left: 0; color: var(--on-dark-2); }
.tile.feature .ctas { justify-content: flex-start; }
.tile.feature .art { flex: 1 1 40%; align-self: flex-end; padding: 40px 40px 0 0; }
.tile.feature .art img { width: min(100%, 300px); margin-bottom: -34%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }

/* ═════════ EDGE STACK BENTO ═════════ */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 12px; margin-top: clamp(48px, 6vw, 72px); }
.card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 32px; border-radius: 28px; background: var(--light); overflow: hidden; }
.card.c2 { grid-column: span 2; }
.card.r2 { grid-row: span 2; }
.card.c4 { grid-column: 1 / -1; }
.card.ink { background: var(--black); color: var(--on-dark); }
.card .big { font: 600 clamp(48px, 6vw, 80px)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card.r2 .big { font-size: clamp(72px, 11vw, 140px); }
.card .t { font: 600 24px/1.17 var(--display); letter-spacing: 0.009em; }
.card p { font-size: 17px; line-height: 1.41; color: var(--ink-2); }
.card.ink p { color: var(--on-dark-2); }
.card .label { font: 600 14px/1.29 var(--text); letter-spacing: -0.016em; color: var(--ink-2); }
.card.ink .label { color: var(--on-dark-2); }
.integrations { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.integrations span { padding: 8px 14px; border-radius: 9px; background: var(--white); font-size: 14px; letter-spacing: -0.016em; color: var(--ink); }

/* ═════════ RESEARCH (dark) ═════════ */
.research .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: end; margin-top: clamp(48px, 6vw, 72px); }
.research h3 { font: 600 clamp(28px, 3.2vw, 40px)/1.1 var(--display); }
.research .body-l { color: var(--on-dark-2); margin-top: 14px; }
.research .ctas { justify-content: flex-start; margin-top: 18px; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.figures b { display: block; font: 600 clamp(40px, 4.6vw, 56px)/1 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--on-dark-2); }

/* ═════════ APPROACH ═════════ */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.principle h3 { margin-top: 18px; font: 600 21px/1.19 var(--display); letter-spacing: 0.011em; }
.principle p { margin-top: 8px; font-size: 17px; line-height: 1.41; color: var(--ink-2); }

/* ═════════ CONTACT ═════════ */
.contact .lede { max-width: 30ch; margin: 18px auto 0; color: var(--ink-2); }
.form { max-width: 680px; margin: clamp(40px, 5vw, 56px) auto 0; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--light); text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); padding-left: 4px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); font-size: 17px; line-height: 1.24; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--white); font-size: 15px; }
.form-status.ok { color: #1d7f3b; }
.form-status.err { color: #c9341f; }
.hp { position: absolute; left: -9999px; }

/* ═════════ FOOTER ═════════ */
.footer { background: var(--light); padding-block: 40px 28px; font-size: 12px; line-height: 1.33; color: var(--ink-2); letter-spacing: -0.01em; }
.footer .note { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.footer h4 { margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--ink); }
.footer-cols a { display: block; padding: 4px 0; color: var(--ink-2); }
.footer-cols a:hover { text-decoration: underline; color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; }

/* ═════════ PRODUCT CHAPTER HEADER + DIVE ═════════ */
.product { padding-bottom: clamp(48px, 6vw, 72px); }
.scroll-hint { margin-top: 34px; font-size: 14px; color: var(--on-dark-2); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 36px; margin: 12px auto 0; background: linear-gradient(rgba(255,255,255,.5), transparent); }
.app-window.solo { width: 96%; }

.dive { height: 620vh; background: var(--black); color: var(--on-dark); }
.dive-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.dive-view { position: absolute; inset: 0; }
.dive-view canvas { display: block; width: 100%; height: 100%; }
.dive-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.8s var(--ease); }
.dive.ready .dive-fallback { opacity: 0; pointer-events: none; }
.dive-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.82)); pointer-events: none; z-index: 2; }
.dive-captions { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 3; max-width: var(--wide); margin: 0 auto; padding-inline: 22px; height: 0; }
.cap { position: absolute; left: 22px; bottom: 0; max-width: 560px; opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.cap.on { opacity: 1; transform: none; }
.cap h3 { font: 600 clamp(28px, 3.6vw, 44px)/1.08 var(--display); letter-spacing: -0.005em; color: var(--on-dark); text-wrap: balance; }
.cap p { margin-top: 12px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.38; color: var(--on-dark-2); }
.dive-progress { position: absolute; left: 50%; bottom: 40px; z-index: 3; width: 120px; height: 3px; margin-left: -60px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.dive-progress i { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }

/* sensor tags the 3D engine floats over its parts: Apple glass capsules */
#sensor-hud { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#sensor-hud .s-tag { position: absolute; left: 0; top: 0; padding: 8px 12px 9px; border-radius: 14px; background: rgba(28, 28, 30, 0.6); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.16); color: var(--on-dark); font: 12px/1.2 var(--text); white-space: nowrap; }
#sensor-hud .s-tag-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: rgba(235,235,245,.6); letter-spacing: 0; }
#sensor-hud .s-tag-head::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #30d158; }
#sensor-hud .s-tag--warning .s-tag-head::before { background: #ff9f0a; }
#sensor-hud .s-tag--critical .s-tag-head::before { background: #ff453a; }
#sensor-hud .s-tag-blink { display: none; }
#sensor-hud .s-tag-val { margin-top: 3px; }
#sensor-hud .s-tag-num { font: 600 17px/1 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
#sensor-hud .s-tag-unit { font-size: 12px; color: rgba(235,235,245,.6); }
#sensor-hud .s-tag-alarm-line { margin-top: 4px; font-size: 11px; font-weight: 600; color: #ff9f0a; text-transform: lowercase; }
#sensor-hud .s-tag-alarm-line::first-letter { text-transform: uppercase; }
#sensor-hud-lines line { stroke: rgba(255,255,255,.45) !important; stroke-dasharray: none !important; }

/* ═════════ PRODUCT TILES (apple.com homepage) ═════════ */
.ptile { padding-top: clamp(80px, 10vw, 120px); overflow: hidden; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; background: var(--white); }
.gtile { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 620px; padding: 56px 32px 0; border-radius: 0; background: var(--light); text-align: center; overflow: hidden; }
.gtile.full { grid-column: 1 / -1; }
.gtile.ink { background: var(--black); color: var(--on-dark); justify-content: flex-start; }
.gtile h2 { margin-top: 6px; font: 600 clamp(32px, 3.6vw, 48px)/1.08 var(--display); letter-spacing: -0.003em; text-wrap: balance; }
.gtile .tag { margin-top: 8px; max-width: 34ch; text-wrap: balance; font: 400 clamp(19px, 1.8vw, 24px)/1.25 var(--display); letter-spacing: 0.009em; color: var(--ink); }
.gtile.ink .tag { color: var(--on-dark); }
.gtile .ctas { margin-top: 16px; }
.gtile.ink .link { color: var(--link-dark); }
.gtile .status { color: var(--ink-3); }
.gtile.ink .status { color: var(--on-dark-2); }
.gshot { margin-top: auto; padding-top: 40px; }
.gshot.phone { width: min(70%, 300px); margin-bottom: -26%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
.gshot.mac { width: min(92%, 1120px); margin-bottom: -6%; filter: drop-shadow(0 36px 48px rgba(0,0,0,.16)); }
.gtile.next { min-height: 0; padding-bottom: 64px; }
.gtile .figures { margin-top: auto; padding-block: 48px 56px; width: min(100%, 460px); text-align: left; }

/* live product UI: the windows carry their own shadow; phones show in full */
#apps .app-window { width: 80%; margin-right: auto; }
#apps .app-phone { width: 23%; right: 22px; }
.ui-fit.live { filter: none; }
.gtile .ctas { margin-bottom: 36px; }
.ui-fit.gshot { padding-top: 0; }
.ui-fit.gshot.phone.live { margin-bottom: 48px; width: min(76%, 330px); }
.ui-fit.gshot.mac.live { margin-bottom: 48px; }

/* Apple's current tile CTAs: a filled pill and an outlined pill */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 20px; border: 1px solid var(--btn); border-radius: 11px; background: var(--btn); color: #fff; font-size: 17px; line-height: 1.18; letter-spacing: -0.022em; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .1s var(--ease); }
.pill:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.pill:active { transform: scale(.97); }
.pill.ghost { background: transparent; color: var(--btn); }
.pill.ghost:hover { background: var(--btn); color: #fff; }
.dark .pill.ghost, .gtile.ink .pill.ghost { color: var(--link-dark); border-color: var(--link-dark); }
.dark .pill.ghost:hover, .gtile.ink .pill.ghost:hover { background: var(--link-dark); color: #000; }
.ctas:has(.pill) { gap: 12px 14px; }

/* devices settle into place as they arrive (driven by js/apple.js) */
.ui-fit.live:not(#hero-window) { will-change: transform; }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.r2 { grid-row: span 1; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 834px) {
  .gn-links, .gn-cta { display: none; }
  .gn-burger { display: block; margin-left: auto; }
  .tiles, .soon { grid-template-columns: minmax(0, 1fr); }
  .pgrid { grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
  .gtile { min-height: 560px; }
  .tile.feature { flex-direction: column; text-align: center; padding: 52px 28px 0; }
  .tile.feature .copy { padding-block: 0; }
  .tile.feature p { margin-inline: auto; }
  .tile.feature .ctas { justify-content: center; }
  .tile.feature .art { padding: 30px 0 0; align-self: center; }
  .tile.feature .art img { margin-bottom: -40%; }
  .research .grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .tile { min-height: 480px; padding: 44px 24px 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card.c2, .card.c4 { grid-column: auto; }
  .principles { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
/* phones: lead with the iPhone app, the way Apple does on small screens */
@media (max-width: 600px) {
  #sensor-hud, #sensor-hud-lines { display: none; }
  .dive { height: 520vh; }
  .dive-captions { bottom: 76px; }
  .app-window.solo { display: block; width: 100%; }
  .app-window { display: none; }
  .app-phone { position: relative; right: auto; bottom: auto; display: block; width: min(68%, 290px); margin: 0 auto; }
  .hero-stage { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pin { height: auto; }
  .pin-stage { position: relative; height: auto; display: block; padding-block: 140px 100px; }
  .pin-bg { transform: none; }
  .steps { margin: 0 auto; }
  .step { position: relative; inset: auto; transform: none; margin-bottom: 72px; }
  .step-dots { display: none; }
  .dive { height: auto; }
  .dive-stage { position: relative; height: auto; overflow: visible; padding-bottom: 60px; }
  .dive-view { position: relative; height: 56vw; max-height: 620px; }
  .dive-stage::after, .dive-progress { display: none; }
  .dive-captions { position: relative; bottom: auto; height: auto; display: grid; gap: 32px; padding-top: 24px; }
  .cap { position: relative; left: auto; opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .gn.scrolled::before { background: #fbfbfd; }
  .gn.on-dark.scrolled::before { background: #161617; }
}

/* ═════════ premium pass 3 ═════════ */
.hero { padding-top: calc(48px + clamp(36px, 5vw, 64px)); }
.hero .h-hero { margin-top: 0; }
/* Mac, iPhone, Watch: the Continuity composition */
#apps .app-window { width: 72%; margin-inline: auto; }
#apps .app-phone { width: 20%; right: 22px; }
#apps .app-watch { position: absolute; left: 34px; bottom: clamp(40px, 5vw, 80px); width: 11.5%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.24)); animation: float 7s ease-in-out -2s infinite alternate; }
/* MacBooks sit on a surface */
.ui-fit[data-frame="macbook"] .ui-scale::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -26px; height: 44px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.34), rgba(0,0,0,0)); z-index: -1; pointer-events: none; }
.ui-fit .ui-scale { position: relative; }
/* Pro lighting on black tiles */
.gtile.ink { position: relative; isolation: isolate; }
.gtile.ink::before { content: ""; position: absolute; left: 50%; bottom: -10%; width: 90%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(120,170,255,.16), rgba(120,170,255,0)); z-index: -1; pointer-events: none; }
@media (max-width: 600px) {
  #apps .app-watch { display: none; }
}

/* ═════════ premium pass 4 ═════════ */
/* hero: the MacBook pins while the console walks through three chapters */
.hero { overflow: clip; }
.hero-pin { height: 280vh; }
.hero-sticky { position: sticky; top: 48px; height: calc(100vh - 48px); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero-sticky .hero-stage { margin: 0 auto; padding-bottom: 0; width: min(100%, 1120px, calc((100vh - 230px) * 1.78)); }
.hero-sticky .app-window.solo { width: 100%; }
.chapters { position: relative; width: min(100% - 44px, 640px); height: 64px; margin-top: 34px; }
.chap { position: absolute; inset: 0; margin: 0; font: 400 clamp(17px, 1.5vw, 21px)/1.38 var(--text); letter-spacing: -0.01em; color: var(--ink-3); text-wrap: balance; opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.chap b { color: var(--ink); font-weight: 600; }
.chap.on { opacity: 1; transform: none; }
.chap-dots { display: flex; gap: 8px; margin-top: 18px; }
.chap-dots i { width: 8px; height: 8px; border-radius: 4px; background: #d2d2d7; transition: width .45s var(--ease), background .45s var(--ease); }
.chap-dots i.on { width: 28px; background: var(--ink); }

/* statement: words fill from grey to ink as you read down */
.manifesto { padding-block: clamp(120px, 16vw, 220px); background: var(--white); }
.manifesto p { max-width: 980px; margin-inline: auto; font: 600 clamp(32px, 4.6vw, 56px)/1.12 var(--display); letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.manifesto .w { color: #d2d2d7; transition: color .5s var(--ease); }
.manifesto .w.on { color: var(--ink); }

@media (max-width: 600px) {
  .hero-pin { height: 220vh; }
  .hero-sticky .hero-stage { width: 100%; }
  .chapters { height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pin { height: auto; }
  .hero-sticky { position: static; height: auto; padding-block: 40px 80px; }
  .chapters { height: auto; display: grid; gap: 12px; }
  .chap { position: static; opacity: 1; transform: none; }
  .chap-dots { display: none; }
}
.hero-sticky { justify-content: flex-start; padding-top: clamp(20px, 4.5vh, 52px); }
.hero .ctas { margin-bottom: 0; }
@media (max-width: 600px) {
  .hero-sticky { justify-content: center; padding-top: 0; }
  .hero-pin { height: 200vh; }
  .chapters { height: 76px; margin-top: 28px; }
}
@media (max-width: 600px) { .hero-sticky { justify-content: flex-start; padding-top: 16vh; } }

/* ═════════ premium pass 5 ═════════ */
/* the hero gives way to black: one background morphs as the highlights arrive */
.morph { background: #fff; }

/* Get the highlights: wide media cards, native snap, autoplay dot nav */
.hl { padding-block: clamp(80px, 10vw, 140px) clamp(96px, 12vw, 160px); color: var(--on-dark); }
.hl .h-section { color: #f5f5f7; }
.hl-track { --cw: min(1000px, calc(100vw - 88px)); display: flex; gap: 20px; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0 calc((100vw - var(--cw)) / 2); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hl-track::-webkit-scrollbar { display: none; }
.hl-card { position: relative; flex: 0 0 var(--cw); aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; scroll-snap-align: center; background: radial-gradient(120% 90% at 50% 100%, #1f2026 0%, #0b0b0d 60%, #000 100%); }
.hl-cap { position: absolute; z-index: 2; top: clamp(24px, 3.4vw, 44px); left: clamp(24px, 3.4vw, 48px); max-width: 24ch; margin: 0; font: 600 clamp(19px, 2.1vw, 28px)/1.18 var(--display); letter-spacing: 0.004em; color: #86868b; text-wrap: balance; }
.hl-cap b { color: #f5f5f7; font-weight: 600; }
.hl-media { position: absolute; inset: 0; transition: transform 6.5s cubic-bezier(.25,.1,.25,1); transform: scale(1.04); }
.hl-card.on .hl-media { transform: scale(1); }
.hl-card.cover .hl-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hl-card.cover::after, .hl-card.duo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 34%); }
.hl-card.shot .hl-media img { position: absolute; left: 50%; bottom: -6%; width: 84%; transform: translateX(-50%); border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.6); }
.hl-card.phone .hl-media img { position: absolute; right: 10%; bottom: -34%; width: 31%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.hl-card.phone::before { content: ""; position: absolute; right: 2%; bottom: -30%; width: 48%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(120,160,255,.16), transparent); }
.hl-card#hl-ward::before { background: radial-gradient(closest-side, rgba(255,80,120,.14), transparent); }
.hl-card#hl-field::before { background: radial-gradient(closest-side, rgba(70,210,120,.14), transparent); }
.hl-card.duo .hl-media > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hl-card.duo .hl-phone { position: absolute; right: 9%; bottom: -30%; width: 24%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.7)); }
.hl-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; }
.hl-dots { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px; border-radius: 28px; background: rgba(66,66,69,.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.hl-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.42); cursor: pointer; overflow: hidden; transition: width .5s var(--ease), background .3s; }
.hl-dots button:hover { background: rgba(255,255,255,.7); }
.hl-dots button.on { width: 48px; background: rgba(255,255,255,.42); }
.hl-dots button i { position: absolute; inset: 0; width: 0; border-radius: inherit; background: #f5f5f7; }
.hl-dots button.on i { width: var(--p, 0%); }
.hl-play { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: rgba(66,66,69,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #f5f5f7; cursor: pointer; transition: background .2s; }
.hl-play:hover { background: rgba(86,86,90,.8); }
.hl-play svg { width: 28px; height: 28px; fill: currentColor; display: block; margin: auto; }
.hl-play .i-play, .hl-play .i-replay { display: none; }
.hl-play.paused .i-pause, .hl-play.ended .i-pause { display: none; }
.hl-play.paused .i-play { display: inline; }
.hl-play.ended .i-replay { display: inline; }
.hl-dots button:focus-visible, .hl-play:focus-visible { outline: 2px solid #2997ff; outline-offset: 3px; }

/* Which product is right for you */
.cmp .h-section { text-align: center; }
.cmp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; margin-top: clamp(48px, 6vw, 80px); }
.cmp-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cmp-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 15px; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08), 0 6px 16px -6px rgba(0,0,0,.25); }
.cmp-icon svg { width: 34px; height: 34px; fill: #fff; color: #fff; }
.cmp-col .status { margin-top: 22px; }
.cmp-col h3 { margin-top: 4px; font: 600 clamp(24px, 2.2vw, 28px)/1.14 var(--display); letter-spacing: 0.007em; }
.cmp-line { min-height: 2.6em; margin-top: 8px; max-width: 20ch; font-size: 17px; line-height: 1.3; color: var(--ink-2); text-wrap: balance; }
.cmp-col .pill { margin-top: 18px; min-height: 36px; padding: 7px 16px; font-size: 14px; }
.cmp-col dl { width: 100%; margin-top: 34px; border-top: 1px solid var(--rule); }
.cmp-col dt { padding-top: 22px; font-size: 12px; line-height: 1.33; color: var(--ink-2); }
.cmp-col dd { margin: 4px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--rule); font: 600 17px/1.3 var(--text); letter-spacing: -0.022em; text-wrap: balance; }

@media (max-width: 1068px) {
  .cmp-grid { grid-template-columns: repeat(2, 1fr); gap: 64px 24px; }
}
@media (max-width: 600px) {
  .hl-track { --cw: calc(100vw - 48px); gap: 12px; }
  .hl-card { aspect-ratio: 4 / 5; border-radius: 22px; }
  .hl-card.shot .hl-media img { width: 150%; left: 8%; bottom: 8%; transform: none; }
  .hl-card.phone .hl-media img { right: 50%; transform: translateX(50%); width: 62%; bottom: -40%; }
  .hl-card.duo .hl-phone { width: 46%; right: 27%; bottom: -36%; }
  .hl-card.cover .hl-media img { object-position: 55% 50%; }
  .hl-dots { height: 48px; padding: 0 18px; }
  .hl-play { width: 48px; height: 48px; }
  .cmp-grid { gap: 56px 16px; }
  .cmp-line { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-media { transition: none; transform: none; }
  .morph { background: #fff; }
  .hl { background: #000; }
}
.hl { background: #000; }
.morph.morphing .hl { background: transparent; }
.hl-ctrl { position: sticky; bottom: 26px; z-index: 5; }
.hl-card.cover .hl-media img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; object-fit: initial; }
.hl-card.cover::after { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 22%, rgba(0,0,0,0) 46%); }
@media (max-width: 600px) {
  .hl-card.cover .hl-media img { width: 210%; max-width: none; left: -70%; }
}

/* stats band: padding lives on the section, so no margin collapses into a white seam */
.stats-band { padding-block: clamp(72px, 9vw, 120px); }
.stats-band .stats { margin: 0 auto; padding-bottom: 0; }
.stats-band .stat + .stat { border-left: 1px solid rgba(255,255,255,.14); }
@media (max-width: 600px) { .stats-band .stat + .stat { border-left: 0; } }

/* highlight art: what the phone is watching, drawn behind it */
.hl-art { position: absolute; pointer-events: none; }
.hl-art.vitals { left: 0; right: 0; top: 34%; width: 100%; height: 46%; overflow: visible; }
.vitals .grid { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vitals .trace { fill: none; stroke: url(#vg); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(255,55,95,.55)); stroke-dasharray: 1; stroke-dashoffset: 0; }
.hl-card:not(.on) .vitals .trace { stroke-dashoffset: 1; }
.hl-card.on .vitals .trace { animation: trace 3.6s cubic-bezier(.4,0,.2,1) both; }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hl-art.field { left: -6%; right: 34%; bottom: -8%; height: 78%; perspective: 900px; perspective-origin: 50% 0%; }
.field-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; transform: rotateX(58deg) rotateZ(-8deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%); mask-image: linear-gradient(to top, #000 30%, transparent 100%); }
.field-grid i { border-radius: 6px; background: #0a84ff; opacity: .5; transition: opacity 1s var(--ease); }
.field-grid i.wet { background: #0a84ff; opacity: .75; }
.field-grid i.mid { background: #409cff; opacity: .45; }
.field-grid i.low { background: #64d2ff; opacity: .28; }
.field-grid i.dry { background: #ff9f0a; opacity: .95; box-shadow: 0 0 24px rgba(255,159,10,.7); }
.hl-card.on .field-grid i.dry { animation: pulse-dry 2.4s ease-in-out infinite; }
@keyframes pulse-dry { 50% { box-shadow: 0 0 44px rgba(255,159,10,.95); } }
@media (max-width: 600px) {
  .hl-art.vitals { top: 30%; height: 30%; }
  .hl-art.field { left: -20%; right: -20%; height: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-card .vitals .trace { animation: none; stroke-dashoffset: 0; }
  .hl-card.on .field-grid i.dry { animation: none; }
}
.hero-pin { height: 420vh; }
@media (max-width: 600px) { .hero-pin { height: 320vh; } }
/* lens vignette over the turbine render */
.dive-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%); }

/* Turbnetic buttons: softly squared corners, our own signature rather than Apple's capsule */
.cmp-col .pill { border-radius: 9px; }


/* ═════════ turbine → edge GPU → screens ═════════ */
#apps { position: relative; }
.flow-lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.flow-lines .base { fill: none; stroke: #d2d2d7; stroke-width: 1; }
.flow-lines .raw { fill: none; stroke: #8e8e93; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 8; animation: flow-raw .7s linear infinite; }
.flow-lines .ins { fill: none; stroke: #0071e3; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 16; animation: flow-ins 1.1s linear infinite; }
.flow-lines text { font: 600 11px/1 var(--text); letter-spacing: .02em; fill: #86868b; }
.flow-lines text.blue { fill: #0071e3; }
@keyframes flow-raw { to { stroke-dashoffset: -8.1; } }
@keyframes flow-ins { to { stroke-dashoffset: -26; } }
.flow { max-width: 1120px; margin: clamp(40px, 5vw, 64px) auto 0; padding-inline: 22px; }
.flow-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(56px, 8vw, 110px); align-items: stretch; text-align: left; }
.flow-card { position: relative; z-index: 1; margin: 0; border-radius: 22px; background: #0b0b0c; color: #f5f5f7; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0,0,0,.35); }
.flow-card.turbine img { display: block; width: 100%; aspect-ratio: 2.23; object-fit: cover; }
.flow-card figcaption { padding: 14px 20px 0; }
.flow-card figcaption b, .flow-edge-h b { display: block; font: 600 19px/1.2 var(--display); letter-spacing: .01em; }
.flow-card figcaption span, .flow-edge-h span { display: block; margin-top: 2px; font-size: 13px; color: #86868b; }
.flow-sensors { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 10px 0 0; padding: 0 20px 16px; }
.flow-sensors li { display: flex; justify-content: space-between; padding: 8px 0; border-top: .5px solid rgba(255,255,255,.12); font-size: 13px; color: #a1a1a6; }
.flow-sensors b { font-weight: 600; color: #f5f5f7; font-variant-numeric: tabular-nums; }
.flow-card.edge { display: flex; flex-direction: column; padding: 18px 20px 16px; }
.flow-edge-h { display: flex; align-items: center; gap: 12px; }
.flow-edge-h .chip { flex-shrink: 0; width: 40px; height: 40px; fill: none; stroke: #6e6e73; stroke-width: 1.6; stroke-linecap: round; }
.flow-edge-h .chip .core { fill: #0071e3; stroke: none; animation: chip-beat 1.6s ease-in-out infinite; }
@keyframes chip-beat { 50% { fill: #2997ff; filter: drop-shadow(0 0 4px #2997ff); } }
.flow-model { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 16px; padding: 12px 0; border-top: .5px solid rgba(255,255,255,.12); border-bottom: .5px solid rgba(255,255,255,.12); font-size: 13px; }
.flow-model span { color: #86868b; }
.flow-model b { font-weight: 600; text-align: right; }
.flow-log { flex: 1; list-style: none; margin: 10px 0 0; padding: 0; font: 12px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: #a1a1a6; overflow: hidden; }
.flow-log li { display: grid; grid-template-columns: 92px 52px 1fr; gap: 8px; padding: 6px 0; border-bottom: .5px solid rgba(255,255,255,.06); animation: log-in .45s ease both; white-space: nowrap; }
.flow-log li b { font-weight: 500; color: #f5f5f7; }
.flow-log li em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.flow-log li.warn em { color: #ff9f0a; }
@keyframes log-in { from { opacity: 0; transform: translateY(-6px); } }
.flow-devices { position: relative; z-index: 1; margin-top: clamp(64px, 8vw, 110px) !important; }
@media (max-width: 760px) {
  .flow-row { grid-template-columns: 1fr; gap: 56px; }
  .flow-devices { margin-top: 56px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-lines .raw, .flow-lines .ins, .flow-edge-h .chip .core, .flow-log li { animation: none; }
}
@media (max-width: 600px) { #apps .app-phone { width: min(68%, 290px); right: auto; } }


/* ═════════ mission + how it works: the platform first, products second ═════════ */
.hero-eyebrow { justify-content: center; color: var(--ink-2); }
.manifesto .mission-eyebrow { font: 600 17px/1.24 var(--text); letter-spacing: -0.022em; display: flex; justify-content: center; margin-bottom: 22px; color: var(--btn); }
.industries-h { padding-block: clamp(96px, 13vw, 160px) clamp(40px, 5vw, 64px); background: var(--white); }
.industries-h .lede { max-width: 34ch; margin: 18px auto 0; color: var(--ink-2); }


/* ═════════ edge live: machine → edge computer → people, the data never leaves ═════════ */
@property --el-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.edge-live { --acc: #ff9f0a; position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(110px, 14vw, 180px); background: #000; color: var(--on-dark); }
.edge-live::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(60% 55% at 50% 62%, #000 20%, transparent 75%); mask-image: radial-gradient(60% 55% at 50% 62%, #000 20%, transparent 75%); }
.edge-live::after { content: ""; position: absolute; left: 50%; top: 62%; z-index: -1; width: min(1100px, 120vw); aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(41,151,255,.22), rgba(41,151,255,.06) 55%, transparent); pointer-events: none; }
.edge-live[data-m="ward"], .edge-live:has(.el-stage[data-m="ward"]) { --acc: #ff375f; }
.edge-live:has(.el-stage[data-m="line"]) { --acc: #7d7aff; }
.edge-live:has(.el-stage[data-m="field"]) { --acc: #30d158; }
.el-eyebrow { margin-bottom: 14px; font: 600 17px/1.24 var(--text); letter-spacing: -0.022em; background: linear-gradient(90deg, #2997ff, #7dc4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.edge-live .h-section .soft { color: var(--on-dark-2); }

.el-switch { position: relative; display: inline-flex; gap: 2px; margin-top: 40px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.el-switch button { position: relative; z-index: 1; flex-shrink: 0; padding: 9px 18px; border: 0; border-radius: 10px; background: none; color: var(--on-dark-2); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: color .3s var(--ease); }
.el-switch button:hover, .el-switch button[aria-selected="true"] { color: #fff; }
.el-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 10px; background: rgba(255,255,255,.16); box-shadow: inset 0 .5px 0 rgba(255,255,255,.25), 0 4px 14px rgba(0,0,0,.4); transition: transform .45s var(--ease), width .45s var(--ease); }

.el-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(32px, 88px) minmax(250px, 300px) minmax(32px, 88px) minmax(0, 1fr); align-items: center; margin-top: clamp(56px, 7vw, 88px); }
.el-stage { grid-template-rows: auto auto auto; row-gap: 22px; }
.el-col { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; justify-items: center; align-items: center; min-width: 0; }
.el-col > :first-child { align-self: start; }
.el-col > .el-cap { align-self: start; }
.el-top { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.el-mid { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.el-wire { grid-row: 2; align-self: center; }
.el-step { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--text); color: var(--on-dark); }
.el-step b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; color: #2997ff; box-shadow: inset 0 0 0 1px rgba(41,151,255,.6); }
.el-cap { max-width: 30ch; font-size: 14px; line-height: 1.43; color: var(--on-dark-2); text-align: center; text-wrap: balance; }
.el-card, .el-note { width: 100%; max-width: 360px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035)); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.8); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); text-align: left; }
.el-card { padding: 18px 20px 8px; }
.el-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.el-head b { display: block; font: 600 19px/1.2 var(--display); }
.el-head span { display: block; margin-top: 2px; font-size: 13px; color: var(--on-dark-2); }
.el-led { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48,209,88,.18); animation: el-led 1.8s ease-in-out infinite; }
@keyframes el-led { 50% { box-shadow: 0 0 0 7px rgba(48,209,88,0); } }
.el-sensors { list-style: none; }
.el-sensors li { display: grid; grid-template-columns: minmax(0, 1fr) 60px auto; align-items: center; gap: 12px; padding: 10px 0; border-top: .5px solid rgba(255,255,255,.1); font-size: 14px; color: var(--on-dark-2); }
.el-sensors li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-sensors svg { width: 60px; height: 18px; overflow: visible; fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-linejoin: round; transition: stroke .4s var(--ease); }
.el-sensors b { min-width: 76px; text-align: right; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

.el-wire { position: relative; height: 2px; border-radius: 1px; background: rgba(255,255,255,.1); }
.el-wire i { position: absolute; inset: 0; border-radius: inherit; animation: el-flow .6s linear infinite; }
.el-wire.raw i { background: repeating-linear-gradient(90deg, rgba(255,255,255,.6) 0 2px, transparent 2px 9px); background-size: 9px 2px; }
.el-wire.ins i { background: repeating-linear-gradient(90deg, #2997ff 0 10px, transparent 10px 22px); background-size: 22px 2px; filter: drop-shadow(0 0 4px rgba(41,151,255,.9)); animation-duration: 1s; }
.el-wire::after { content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.6); animation: el-packet 1.6s var(--ease) infinite; }
.el-wire.ins::after { background: #2997ff; box-shadow: 0 0 14px 4px rgba(41,151,255,.8); animation-delay: .8s; }
@keyframes el-flow { to { background-position: 9px 0; } }
.el-wire.ins i { animation-name: el-flow-ins; }
@keyframes el-flow-ins { to { background-position: 22px 0; } }
@keyframes el-packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.el-cloud { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.22); font-size: 13px; color: var(--on-dark-2); }
.el-cloud svg { width: 26px; height: 18px; fill: none; stroke: var(--on-dark-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.el-cloud .x { stroke: #ff453a; }
.el-cloud b { font-weight: 600; color: #fff; }
.el-chip { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; }
.el-pins { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.22); stroke-width: 3; stroke-linecap: round; }
.el-glow { position: absolute; inset: 18%; border-radius: 40px; background: #2997ff; filter: blur(48px); opacity: .45; animation: el-breathe 2.4s ease-in-out infinite; }
@keyframes el-breathe { 50% { opacity: .7; transform: scale(1.06); } }
.el-die { position: absolute; inset: 15%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 30px; background: linear-gradient(150deg, #232326, #0b0b0c 60%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.18), 0 30px 70px -20px rgba(41,151,255,.6); }
.el-die::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--el-a), transparent 0 62%, rgba(41,151,255,.2) 72%, #7dc4ff 86%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: el-spin 3.2s linear infinite; }
@keyframes el-spin { to { --el-a: 360deg; } }
.el-die-l, .el-die-m { font-size: 13px; color: var(--on-dark-2); }
.el-ms { font: 600 clamp(48px, 5vw, 64px)/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, #9ccfff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.el-ms small { margin-left: 4px; font-size: .34em; font-weight: 600; letter-spacing: 0; color: var(--on-dark-2); -webkit-text-fill-color: var(--on-dark-2); }
.el-edge .el-cap span { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

.el-note { padding: 14px 16px 16px; }
.el-note.pop { animation: el-pop .6s var(--ease) both; }
@keyframes el-pop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.el-note-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-2); }
.el-note-h b { font-weight: 600; color: var(--on-dark); }
.el-note-h > span:last-child { margin-left: auto; }
.el-app { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 70%, #fff), var(--acc)); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); transition: background .4s var(--ease); }
.el-note-t { display: block; margin-top: 10px; font: 600 16px/1.25 var(--text); color: #fff; }
.el-note p { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--on-dark-2); }
.el-devices { display: flex; gap: 22px; }
.el-devices svg { width: 26px; height: 26px; fill: none; stroke: var(--on-dark-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.el-foot { margin-top: clamp(48px, 6vw, 72px); font-size: 17px; color: var(--on-dark-2); }
.el-foot .link { font-size: 17px; color: var(--link-dark); }
.el-status { color: #fff; }

@media (max-width: 960px) {
  .el-stage { grid-template-columns: minmax(0, 420px); grid-template-rows: none; justify-content: center; row-gap: 0; }
  .el-col { grid-row: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .el-col > :first-child, .el-col > .el-cap { align-self: center; }
  .el-wire { grid-row: auto; }
  .el-wire { width: 2px; height: 56px; margin: 18px auto; }
  .el-wire.raw i { background: repeating-linear-gradient(180deg, rgba(255,255,255,.6) 0 2px, transparent 2px 9px); background-size: 2px 9px; }
  .el-wire.ins i { background: repeating-linear-gradient(180deg, #2997ff 0 10px, transparent 10px 22px); background-size: 2px 22px; }
  @keyframes el-flow { to { background-position: 0 9px; } }
  @keyframes el-flow-ins { to { background-position: 0 22px; } }
  .el-wire::after { left: 50%; top: 0; margin: -4px 0 0 -4px; animation-name: el-packet-v; }
  @keyframes el-packet-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  .el-chip { max-width: 260px; }
}
@media (max-width: 600px) {
  .el-switch { margin-top: 28px; }
  .el-switch button { padding: 8px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .el-wire i, .el-wire::after, .el-glow, .el-die::before, .el-led, .el-note.pop { animation: none; }
  .el-thumb { transition: none; }
}
