/* GridMarshal website. Brand: sharp, black and white about half and half, Obsidian palette.
   Sections alternate .sec (white) and .sec.deep (black). Photos are shown in soft colour (saturation 62%); product screens stay as they are. */

:root {
  --white: #FFFFFF;
  --cloud: #F1F1EE;
  --mist: #E7E7E3;
  --ink: #0E0F11;
  --ink-2: #4A4E56;
  --ink-3: #6B6F78;
  --line: #D9DBDF;
  --obsidian: #0A0A0B;
  --carbon: #151518;
  --graphite: #2A2B30;
  --steel: #8B8F98;
  --titanium: #C9CCD2;
  --ivory: #F3F2EE;
  --signal: #3DDC97;

  --bg: var(--white);
  --bg-2: var(--cloud);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --fg-3: var(--ink-3);
  --rule: var(--line);
  --card: var(--white);
  --btn-bg: var(--ink);
  --btn-fg: var(--white);

  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.3vw, 4.6rem);
  --step-5: clamp(3rem, 2rem + 5vw, 6.6rem);

  --wrap: 1200px;
  --pad: clamp(24px, 6vw, 112px);
  --gutter: max(var(--pad), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--pad), env(safe-area-inset-right, 0px));
  --header-h: 72px;
  --topbar-h: 36px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 30px 80px -40px rgba(10, 10, 11, .45);
  color-scheme: light;
}

/* Explicit dark choice from the theme toggle. Default is light so the page keeps its black and white rhythm. */
:root[data-theme="dark"] {
  --bg: #1B1C20;
  --bg-2: #24252A;
  --fg: var(--ivory);
  --fg-2: #B8BBC2;
  --fg-3: #9A9EA6;
  --rule: #2A2B30;
  --card: #24252A;
  --btn-bg: var(--ivory);
  --btn-fg: var(--obsidian);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-text); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
:target { scroll-margin-top: calc(var(--header-h) + 24px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sec { position: relative; background: var(--bg); color: var(--fg); padding-block: clamp(72px, 10vw, 140px); }
.sec.alt { background: var(--bg-2); }
.sec.deep, .deep { background: var(--obsidian); color: var(--ivory); --fg: var(--ivory); --fg-2: #B8BBC2; --fg-3: #9A9EA6; --rule: var(--graphite); --card: var(--carbon); --btn-bg: var(--ivory); --btn-fg: var(--obsidian); }
.sec.tight { padding-block: clamp(56px, 7vw, 96px); }
.stack { display: grid; gap: clamp(32px, 5vw, 64px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.12; }
h4 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: var(--step-1); color: var(--fg-2); max-width: 46ch; line-height: 1.5; }
.muted { color: var(--fg-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-text); font-size: 0.74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.eyebrow.live::before { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.section-head { display: grid; gap: 18px; max-width: 860px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 24px clamp(28px, 5vw, 80px); }
.section-head.split .eyebrow { grid-column: 1 / -1; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: minmax(0, 1fr); } }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: var(--radius); background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 0.96rem; letter-spacing: .01em; transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px currentColor, 0 14px 30px -14px rgba(0, 0, 0, .3); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- topbar + header ---------- */
.topbar { background: var(--obsidian); color: var(--titanium); font-size: 0.8rem; height: var(--topbar-h); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.topbar a, .topbar button { color: var(--titanium); display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover, .topbar button:hover { color: var(--white); }
.topbar .tb-actions { display: flex; gap: 22px; align-items: center; }
.topbar kbd { font: 600 .7rem var(--font-text); border: 1px solid var(--graphite); border-radius: 3px; padding: 1px 5px; color: var(--steel); }
@media (max-width: 900px) { .topbar { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); transition: background-color .35s, border-color .35s, color .35s; color: var(--ink); }
:root[data-theme="dark"] .site-header { background: rgba(27, 28, 32, .9); border-bottom-color: var(--graphite); color: var(--ivory); }
.site-header .wrap { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: inline-flex; align-items: center; height: 100%; flex: none; transition: opacity .2s; }
.brand:hover { opacity: .75; }
.brand img { height: 26px; width: auto; }
.brand .logo-ivory { display: none; }
:root[data-theme="dark"] .brand .logo-ink { display: none; }
:root[data-theme="dark"] .brand .logo-ivory { display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; font-size: 0.94rem; font-weight: 500; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .25s; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 6px); left: -8px; min-width: 320px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
:root[data-theme="dark"] .dropdown { background: var(--carbon); color: var(--ivory); border-color: var(--graphite); }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; transition: background-color .2s; }
.dropdown a:hover { background: var(--cloud); }
:root[data-theme="dark"] .dropdown a:hover { background: var(--graphite); }
.dropdown b { font-weight: 600; font-size: 0.94rem; }
.dropdown span { font-size: 0.84rem; color: var(--ink-3); }
:root[data-theme="dark"] .dropdown span { color: var(--steel); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; color: inherit; }
:root[data-theme="dark"] .icon-btn { box-shadow: inset 0 0 0 1px var(--graphite); }
.icon-btn:hover { box-shadow: inset 0 0 0 1px currentColor; }
.icon-btn svg { width: 17px; height: 17px; }
.header-cta { height: 42px; padding: 0 18px; font-size: 0.9rem; }
.nav-toggle { display: none; width: 42px; height: 42px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 20.5px; } .nav-toggle span:nth-child(3) { top: 26px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1080px) { .nav, .header-cta, .header-actions .theme-btn { display: none; } .nav-toggle { display: block; } .header-actions { margin-left: auto; } }

/* header over the cinematic hero */
body.has-cine-hero .site-header:not(.scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ivory); }
body.has-cine-hero .site-header:not(.scrolled) .logo-ink { display: none; }
body.has-cine-hero .site-header:not(.scrolled) .logo-ivory { display: block; }
body.has-cine-hero .site-header:not(.scrolled) .icon-btn { box-shadow: inset 0 0 0 1px rgba(243, 242, 238, .4); }
body.has-cine-hero .site-header:not(.scrolled) .header-cta { background: var(--ivory); color: var(--obsidian); }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--obsidian); color: var(--ivory); padding: calc(var(--header-h) + 24px) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; display: grid; align-content: start; gap: 28px; }
body.nav-open .mobile-menu { opacity: 1; visibility: visible; }
body.nav-open .site-header { background: var(--obsidian); color: var(--ivory); border-bottom-color: var(--graphite); }
body.nav-open .site-header .logo-ink { display: none; }
body.nav-open .site-header .logo-ivory { display: block; }
.mm-group { display: grid; gap: 6px; }
.mm-group .eyebrow { color: var(--steel); margin-bottom: 6px; }
.mm-group a { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.25; }
.mm-actions { display: grid; gap: 10px; }
.mm-actions .btn { justify-content: center; }

/* ---------- cinematic hero ---------- */
.hero-cine { position: relative; min-height: min(94vh, 980px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--obsidian); color: var(--ivory); isolation: isolate; margin-top: calc(-1 * var(--header-h)); }
.hero-cine-media { position: absolute; inset: 0; z-index: -2; }
.hcm-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hcm-slide.is-active { opacity: 1; }
.hcm-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); filter: saturate(.62) contrast(1.06) brightness(.92); }
html.kd-motion .hcm-slide.is-active img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.03) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); } }
.hero-cine-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(10, 10, 11, .66) 0%, rgba(10, 10, 11, .1) 14%, transparent 24%),
  linear-gradient(96deg, rgba(10, 10, 11, .9) 0%, rgba(10, 10, 11, .62) 36%, rgba(10, 10, 11, .18) 66%, rgba(10, 10, 11, .4) 100%),
  linear-gradient(0deg, rgba(10, 10, 11, .86) 0%, rgba(10, 10, 11, .1) 32%, transparent 56%); }
.hero-cine-inner, .hero-cine-bar { width: 100%; }
.hero-cine-inner { position: relative; padding-top: clamp(150px, 22vh, 260px); padding-bottom: 28px; display: grid; gap: 22px; }
.hero-cine h1 { color: var(--white); max-width: 11ch; }
.hero-cine .lede { color: #D9DADD; max-width: 38ch; }
.hero-cine .eyebrow { color: var(--titanium); }
.hero-cine .btn-ghost { color: var(--ivory); }
.hero-cine-bar::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter-r); height: 1px; background: rgba(243, 242, 238, .18); }
.hero-cine-bar { position: relative; display: flex; align-items: center; gap: clamp(18px, 4vw, 52px); padding-top: 20px; padding-bottom: 34px; flex-wrap: wrap; font-size: .86rem; color: var(--titanium); }
.hero-cine-bar .types { display: flex; gap: 18px; flex-wrap: wrap; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; font-size: .72rem; }
.hero-cine-bar .spacer { flex: 1; }
.hero-cine-dots { display: flex; gap: 10px; }
.hero-cine-dots button { width: 32px; height: 3px; border-radius: 3px; background: rgba(243, 242, 238, .3); transition: background-color .3s, transform .3s; }
.hero-cine-dots button.active { background: var(--ivory); transform: scaleY(1.6); }

/* ---------- page hero (interior) ---------- */
.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.page-hero .grid-2 { align-items: end; }
.page-hero h1 { font-size: var(--step-5); max-width: 12ch; }
.page-hero .copy { display: grid; gap: 22px; }
.crumbs { display: flex; gap: 8px; font-size: .84rem; color: var(--fg-3); flex-wrap: wrap; }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- media ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--carbon); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) contrast(1.05); transition: transform 1.2s var(--ease); }
.photo.ratio-43 { aspect-ratio: 4 / 3; }
.photo.ratio-169 { aspect-ratio: 16 / 9; }
.photo.ratio-45 { aspect-ratio: 4 / 5; }
.photo.ratio-11 { aspect-ratio: 1 / 1; }
a:hover .photo img, .photo:hover img { transform: scale(1.05); }
.screen { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(14, 15, 17, .08); background: var(--cloud); max-width: 100%; }
.deep .screen { box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(243, 242, 238, .1); background: var(--carbon); }
.screen img { width: 100%; height: auto; }
.screen-cap { font-size: .84rem; color: var(--fg-3); margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.phone { width: min(300px, 70vw); aspect-ratio: 390 / 844; border-radius: 44px; padding: 10px; background: #050506; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7), inset 0 0 0 1px #2A2B30; margin-inline: auto; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--fg); }
.deep .card .ic { background: var(--graphite); }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-size: var(--step-1); line-height: 1.2; }
.card p { color: var(--fg-2); font-size: .97rem; }
.card-photo { display: grid; gap: 18px; align-content: start; }
.card-photo .photo { aspect-ratio: 4 / 3; }
.card-photo .meta { display: grid; gap: 8px; }
.card-photo .badge { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(10, 10, 11, .78); color: var(--ivory); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 3px; backdrop-filter: blur(6px); pointer-events: none; }
.pa-num { font-family: var(--font-display); font-size: clamp(3.4rem, 6vw, 5.2rem); line-height: .9; color: color-mix(in srgb, var(--fg) 50%, transparent); font-variant-numeric: tabular-nums; }

/* checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--fg-2); }
.checks li b { color: var(--fg); font-weight: 600; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='%236B6F78' stroke-width='1.6'/%3E%3C/svg%3E"); color: var(--fg-3); }
.deep .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.6 2.6L9 1' fill='none' stroke='%23C9CCD2' stroke-width='1.6'/%3E%3C/svg%3E"); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .84rem; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg-2); }

/* steps (Connect Watch Catch Fix Report) */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.step { padding: 26px 22px 0 0; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--rule); padding-left: 22px; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step .k { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--fg-3); }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--fg-2); font-size: .95rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: minmax(0, 1fr); } .step { border-right: 0; border-bottom: 1px solid var(--rule); padding: 22px 0; } }

/* feature rows: text + screen alternating */
.feature-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature-row.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
.feature-row.flip .fr-copy { order: 2; }
.fr-copy { display: grid; gap: 18px; }
@media (max-width: 900px) { .feature-row, .feature-row.flip { grid-template-columns: minmax(0, 1fr); } .feature-row.flip .fr-copy { order: 0; } }

/* ---------- sticky sub-nav ---------- */
.pa-subnav { position: sticky; top: var(--header-h); z-index: 60; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .pa-subnav { background: rgba(15, 15, 17, .9); border-bottom-color: var(--graphite); }
.pa-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.pa-track::-webkit-scrollbar { display: none; }
.pa-pill { flex: none; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--fg-2); transition: background-color .25s, color .25s; }
.pa-pill:hover { color: var(--fg); }
.pa-pill.active { background: var(--ink); color: var(--white); }
:root[data-theme="dark"] .pa-pill.active { background: var(--ivory); color: var(--obsidian); }
.pa-anchor { scroll-margin-top: calc(var(--header-h) + 64px); }

/* ---------- pinned image expand ---------- */
[data-expand] { position: relative; background: var(--obsidian); }
.expand-pin { position: relative; height: 100vh; overflow: hidden; }
.expand-media { position: absolute; inset: 0; overflow: hidden; margin: 0; }
html.kd-motion .expand-media { clip-path: inset(19vh 8vw round 18px); }
.expand-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) contrast(1.06) brightness(.85); }
.expand-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 max(24px, 6vw) clamp(40px, 8vh, 90px); color: var(--white); display: grid; gap: 14px; background: linear-gradient(0deg, rgba(10, 10, 11, .78), transparent); padding-top: 160px; }
html.kd-motion .expand-media figcaption { opacity: 0; }
.expand-media figcaption p { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.08; max-width: 22ch; }

/* ---------- numbers band ---------- */
.numbers { position: relative; --num-bg: var(--white); --num-fg: var(--ink); --num-fg2: var(--ink-2); background: var(--num-bg); color: var(--num-fg); transition: background-color .65s var(--ease), color .65s var(--ease); }
.numbers[data-state="deep"] { --num-bg: var(--obsidian); --num-fg: var(--ivory); --num-fg2: #B8BBC2; }
.numbers[data-state="carbon"] { --num-bg: var(--carbon); --num-fg: var(--ivory); --num-fg2: #B8BBC2; }
.numbers .eyebrow, .numbers p { color: var(--num-fg2); transition: color .65s var(--ease); }
.numbers-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 76px); }
.numbers-left { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.num-panel { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.num-art { width: clamp(90px, 26%, 170px); color: var(--num-fg); opacity: .9; }
.num-art svg { width: 100%; height: auto; }
.num-art .draw { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.num-big { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 11rem); line-height: .86; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num-big .suf { font-size: .34em; letter-spacing: 0; margin-left: .12em; }
.num-panel h3 { font-size: var(--step-2); }
@media (max-width: 900px) { .numbers-grid { grid-template-columns: minmax(0, 1fr); } .numbers-left { position: static; height: auto; padding-block: 72px 0; } .num-panel { min-height: 0; padding-block: 56px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--obsidian); color: var(--ivory); padding-block: clamp(96px, 14vw, 180px); }
.cta-band .bg { position: absolute; inset: 0; z-index: -2; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.05) brightness(.62); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 10, 11, .9), rgba(10, 10, 11, .4)); pointer-events: none; }
.cta-band .inner { display: grid; gap: 24px; justify-items: start; }
.cta-band .inner > * { max-width: 760px; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: #D9DADD; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-text); font-weight: 300; font-size: 1.6rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 24px; color: var(--fg-2); max-width: 70ch; }

/* ---------- forms ---------- */
.form, .form-grid { display: grid; gap: 16px; }
.field label .req { font-weight: 400; color: var(--fg-3); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 13px 14px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 14%, transparent); }
.field .err { font-size: .8rem; color: #B42318; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B42318; }
.field.invalid .err { display: block; }
.deep .field .err { color: #FF8A80; }
.form-success { display: none; padding: 22px; border-radius: var(--radius-lg); background: var(--bg-2); border: 1px solid var(--rule); }
.form.sent .form-fields { display: none; }
.form.sent .form-success { display: grid; gap: 8px; }
.fine { font-size: .82rem; color: var(--fg-3); }

/* ---------- footer ---------- */
.site-footer { background: var(--obsidian); color: var(--titanium); padding-top: clamp(64px, 8vw, 110px); }
.site-footer .wrap { display: grid; gap: 56px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ft-brand { display: grid; gap: 18px; align-content: start; }
.ft-brand img { height: 30px; width: auto; }
.ft-brand p { color: var(--steel); max-width: 34ch; font-size: .94rem; }
.ft-brand .ft-line { font-family: var(--font-display); font-size: 1.6rem; color: var(--ivory); }
.ft-col { display: grid; gap: 10px; align-content: start; font-size: .94rem; }
.ft-col .eyebrow { color: var(--steel); margin-bottom: 6px; }
.ft-col a { color: var(--titanium); transition: color .2s; }
.ft-col a:hover { color: var(--white); }
.ft-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--graphite); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: .84rem; color: var(--steel); }
.ft-legal nav { display: flex; gap: 20px; flex-wrap: wrap; }
.ft-legal a:hover { color: var(--white); }
@media (max-width: 860px) { .ft-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft-brand { grid-column: 1 / -1; } }

/* ---------- search modal ---------- */
.search-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(10, 10, 11, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.search-modal.open { display: flex; }
.search-panel { width: min(640px, 100%); background: var(--white); color: var(--ink); border-radius: 14px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6); overflow: hidden; }
:root[data-theme="dark"] .search-panel { background: var(--carbon); color: var(--ivory); }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .search-input-row { border-bottom-color: var(--graphite); }
.search-input-row input { flex: 1; font: inherit; font-size: 1.1rem; border: 0; outline: 0; background: transparent; color: inherit; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.sr-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 8px; }
.sr-item:hover, .sr-item.sel { background: var(--cloud); }
:root[data-theme="dark"] .sr-item:hover, :root[data-theme="dark"] .sr-item.sel { background: var(--graphite); }
.sr-kind { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 4px 7px; border-radius: 3px; background: var(--ink); color: var(--white); }
:root[data-theme="dark"] .sr-kind { background: var(--ivory); color: var(--obsidian); }
.sr-item b { display: block; font-weight: 600; }
.sr-item span.sub { display: block; font-size: .84rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] .sr-item span.sub { color: var(--steel); }
.sr-empty { padding: 20px; color: var(--ink-3); }
.search-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--ink-3); }
:root[data-theme="dark"] .search-foot { border-top-color: var(--graphite); color: var(--steel); }

/* ---------- motion helpers ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html.kd-motion .reveal { transition: none; }
.kd-mask { overflow: hidden; }
.kd-mask-i { display: inline-block; padding-bottom: .14em; margin-bottom: -.14em; will-change: transform; }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 300; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
:root[data-theme="dark"] .scroll-progress { background: var(--ivory); }

html:not(.kd-pt) .pt-overlay { display: none; }
.pt-overlay { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.pt-panel { position: absolute; inset: 0; transform: translateY(0); }
.pt-panel.p1 { background: var(--obsidian); }
.pt-panel.p2 { background: var(--ivory); }
html.kd-pt .pt-panel { animation: kd-pt-reveal .9s cubic-bezier(.76, 0, .24, 1) forwards; }
html.kd-pt .pt-panel.p2 { animation-delay: .12s; }
@keyframes kd-pt-reveal { from { transform: translateY(0); } to { transform: translateY(-101%); } }
html.kd-leaving .pt-overlay { pointer-events: auto; }
html.kd-leaving .pt-panel { animation: kd-pt-cover .6s cubic-bezier(.76, 0, .24, 1) forwards; }
html.kd-leaving .pt-panel.p1 { animation-delay: .1s; }
@keyframes kd-pt-cover { from { transform: translateY(-101%); } to { transform: translateY(0); } }

/* marquee of plant types */
.marquee { overflow: hidden; border-block: 1px solid var(--rule); }
.marquee-track { display: flex; gap: 56px; width: max-content; padding-block: 22px; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: var(--step-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; color: var(--fg); }
.marquee-track span::after { content: ""; width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); opacity: .35; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* legal pages */
.prose { display: grid; gap: 18px; max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--fg-2); }
.prose p { color: var(--fg-2); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-progress, .pt-overlay { display: none !important; }
  .kd-mask { overflow: visible; }
  .hcm-slide { transition: opacity .5s; }
  html.kd-motion .hcm-slide.is-active img { animation: none; }
  .marquee-track { animation: none; }
  * { scroll-behavior: auto !important; }
}
