/* GeoGIS — Bingkai Nadir
   The page is an aerial survey print: nadir views, fiducial marks, data strips.
   Light = contact print on photo paper. Dark = night print. */

@font-face {
  font-family: 'Geologica';
  src: url('/assets/fonts/geologica-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geologica';
  src: url('/assets/fonts/geologica-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('/assets/fonts/martian-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('/assets/fonts/martian-mono-latin-ext.woff2') format('woff2');
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --paper: #eef1ec;
  --paper-2: #e2e7e0;
  --paper-3: #d5dcd4;
  --ink: #142019;
  --ink-2: #34433a;
  --ink-3: #56655b;
  --rule: #c3ccc4;
  --rule-strong: #95a398;
  --canopy: #1b3a2a;
  --canopy-2: #234a36;
  --canopy-ink: #e8efe6;
  --canopy-ink-2: #b9c9bb;
  --canopy-rule: #3a6450;
  --genteng: #b8461f;
  --genteng-hover: #9c3a17;
  --on-genteng: #ffffff;
  --genteng-ink: #a33d18;
  --rebate: #101713;
  --rebate-2: #1a241e;
  --rebate-ink: #dbe4da;
  --rebate-ink-2: #9aab9e;
  --stamp: #f2914f;
  --water: #2f6f73;
  --plate: #f6f8f4;
  --shadow-1: 0 1px 1px rgba(20, 32, 25, .06), 0 6px 18px -10px rgba(20, 32, 25, .35);
  --shadow-2: 0 2px 4px rgba(20, 32, 25, .08), 0 24px 48px -24px rgba(20, 32, 25, .45);
  --font: 'Geologica', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --maxw: 1320px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --header-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1310;
    --paper-2: #121b16;
    --paper-3: #1a261f;
    --ink: #e3eae3;
    --ink-2: #b7c3ba;
    --ink-3: #8f9e93;
    --rule: #26332b;
    --rule-strong: #3d4e43;
    --canopy: #12291e;
    --canopy-2: #183526;
    --canopy-ink: #e3eae3;
    --canopy-ink-2: #aebfb2;
    --canopy-rule: #2c4a3a;
    --genteng: #e0693c;
    --genteng-hover: #eb7f54;
    --on-genteng: #0c1310;
    --genteng-ink: #f08a5d;
    --rebate: #050806;
    --rebate-2: #0f1612;
    --plate: #121b16;
    --shadow-1: 0 1px 1px rgba(0, 0, 0, .3), 0 8px 20px -10px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1310;
  --paper-2: #121b16;
  --paper-3: #1a261f;
  --ink: #e3eae3;
  --ink-2: #b7c3ba;
  --ink-3: #8f9e93;
  --rule: #26332b;
  --rule-strong: #3d4e43;
  --canopy: #12291e;
  --canopy-2: #183526;
  --canopy-ink: #e3eae3;
  --canopy-ink-2: #aebfb2;
  --canopy-rule: #2c4a3a;
  --genteng: #e0693c;
  --genteng-hover: #eb7f54;
  --on-genteng: #0c1310;
  --genteng-ink: #f08a5d;
  --rebate: #050806;
  --rebate-2: #0f1612;
  --plate: #121b16;
  --shadow-1: 0 1px 1px rgba(0, 0, 0, .3), 0 8px 20px -10px rgba(0, 0, 0, .6);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .35), 0 24px 48px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 380;
  font-variation-settings: "SHRP" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
/* the hidden attribute must win over the display rules above (layer toggles, panels) */
[hidden] { display: none !important; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--genteng); }
::selection { background: var(--genteng); color: var(--on-genteng); }
:focus-visible { outline: 2px solid var(--genteng); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--rule-strong) var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border: 2px solid var(--paper); border-radius: 6px; }
::placeholder { color: var(--ink-3); opacity: 1; }
input, textarea, select { caret-color: var(--genteng); accent-color: var(--genteng); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 3px; text-decoration: none; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -0.028em; line-height: 1.06; text-wrap: balance; font-variation-settings: "SHRP" 46; }
h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); letter-spacing: -0.015em; line-height: 1.2; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); color: var(--ink-2); max-width: 62ch; line-height: 1.55; }
.mono { font-family: var(--mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .7em 1.15em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: 3px;
  font-weight: 560; font-size: .98rem; line-height: 1.1; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease-out);
}
.btn:hover { --btn-bd: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--genteng); --btn-fg: var(--on-genteng); --btn-bd: var(--genteng); }
.btn-primary:hover { --btn-bg: var(--genteng-hover); --btn-bd: var(--genteng-hover); }
.btn-quiet { --btn-bd: transparent; padding-inline: .6em; }
.btn-quiet:hover { --btn-bd: transparent; --btn-fg: var(--genteng-ink); }
.btn-sm { min-height: 38px; padding: .5em .85em; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.on-dark .btn { --btn-fg: var(--canopy-ink); --btn-bd: var(--canopy-rule); }
.on-dark .btn:hover { --btn-bd: var(--canopy-ink); }
.on-dark .btn-primary { --btn-fg: var(--on-genteng); --btn-bd: var(--genteng); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 540; color: var(--genteng-ink); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { --logo-q: var(--genteng); --logo-k: var(--ink); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-weight: 660; font-size: 1.28rem; letter-spacing: -0.03em; font-variation-settings: "SHRP" 46; }
.nav-primary { display: flex; gap: 4px; margin-left: 8px; }
.nav-primary a {
  position: relative; padding: 8px 12px; border-radius: 3px;
  text-decoration: none; color: var(--ink-2); font-weight: 480; font-size: .97rem;
}
.nav-primary a:hover { color: var(--ink); background: var(--paper-2); }
.nav-primary a[aria-current="page"] { color: var(--ink); }
.nav-primary a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--genteng); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 3px; overflow: hidden; }
.seg a, .seg button {
  display: grid; place-items: center; min-width: 38px; height: 34px; padding: 0 8px;
  background: none; border: 0; text-decoration: none; cursor: pointer;
  font-size: .8rem; font-weight: 620; letter-spacing: .02em; color: var(--ink-3);
}
.seg a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.seg a:hover:not([aria-current="true"]) { color: var(--ink); background: var(--paper-2); }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--rule-strong); border-radius: 3px; background: none; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn [data-show] { display: none; }
:root[data-theme-pref="system"] .theme-btn [data-show="system"],
:root[data-theme-pref="light"] .theme-btn [data-show="light"],
:root[data-theme-pref="dark"] .theme-btn [data-show="dark"] { display: block; }
.menu-btn { display: none; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
  background: var(--paper); padding: 20px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .25s var(--ease-out), visibility .2s;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a.m-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 2px; border-bottom: 1px solid var(--rule);
  font-size: 1.35rem; font-weight: 560; letter-spacing: -0.02em; text-decoration: none;
}
.mobile-nav .m-tools { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.mobile-nav .btn-primary { margin-top: 20px; }

@media (max-width: 960px) {
  .nav-primary, .tools .seg, .tools .theme-btn, .tools .btn-demo-head { display: none; }
  .menu-btn { display: grid; }
  .site-header .bar { gap: 12px; }
}

/* ---------- hero: the aerial frame ---------- */
.hero { padding: 6px var(--gutter) 0; }
.frame {
  position: relative;
  max-width: 1680px; margin-inline: auto;
  background: var(--rebate);
  color: var(--rebate-ink);
  padding: 14px 14px 0;
  border-radius: 2px;
  box-shadow: var(--shadow-2);
}
.frame .viewport {
  position: relative; overflow: hidden;
  height: clamp(540px, calc(100svh - var(--header-h) - 90px), 820px);
  background: #44533f;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fid { position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 3; color: var(--rebate-ink-2); }
.fid svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.fid-n { top: 7px; left: 50%; transform: translate(-50%, -50%); }
.fid-s { bottom: 42px; left: 50%; transform: translate(-50%, 50%); }
.fid-w { left: 7px; top: calc(50% - 21px); transform: translate(-50%, -50%); }
.fid-e { right: 7px; top: calc(50% - 21px); transform: translate(50%, -50%); }
.frame .corner { position: absolute; width: 14px; height: 14px; border-color: var(--rebate-ink-2); border-style: solid; z-index: 3; pointer-events: none; }
.frame .c-tl { top: 3px; left: 3px; border-width: 1.5px 0 0 1.5px; }
.frame .c-tr { top: 3px; right: 3px; border-width: 1.5px 1.5px 0 0; }
.frame .c-bl { bottom: 45px; left: 3px; border-width: 0 0 1.5px 1.5px; }
.frame .c-br { bottom: 45px; right: 3px; border-width: 0 1.5px 1.5px 0; }

.plate-wrap { position: absolute; left: 0; bottom: 0; z-index: 4; padding: clamp(14px, 2.2vw, 28px); max-width: min(660px, 100%); pointer-events: none; }
.plate {
  pointer-events: auto;
  display: grid; background: var(--plate); color: var(--ink);
  padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px);
  border-radius: 2px; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .55);
}
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility .45s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide h1, .slide h2 { font-size: clamp(1.9rem, 1.25rem + 2.5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.034em; font-weight: 660; max-width: 15ch; }
.slide p { margin-top: 14px; color: var(--ink-2); font-size: clamp(1rem, .95rem + .25vw, 1.12rem); max-width: 50ch; line-height: 1.55; }
.slide .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.slide .cta .lbl-short { display: none; } /* phones swap in a shorter label so both buttons share one row */

.strip {
  display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
  height: 46px; padding: 0 2px;
  font-family: var(--mono); font-stretch: 87.5%; font-size: .72rem; font-variant-numeric: tabular-nums;
  color: var(--rebate-ink-2);
}
.strip .meta { display: flex; align-items: center; gap: 18px; min-width: 0; white-space: nowrap; overflow: hidden; }
.strip .stamp { color: var(--stamp); font-weight: 600; letter-spacing: .02em; }
.strip .meta .stamp, .strip .meta .ill { flex-shrink: 0; } /* the frame count and badge never truncate; coordinates and layer give way */
.strip .meta span { overflow: hidden; text-overflow: ellipsis; }
.frames { display: flex; align-items: stretch; gap: 2px; }
.frames button {
  position: relative; min-width: 76px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
  font: inherit; color: var(--rebate-ink-2); text-align: left;
}
.frames button::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 2px; background: var(--rebate-2); }
.frames button { --inset: 10px; }
.frames button .fill { position: absolute; left: var(--inset); top: 0; height: 2px; width: calc((100% - 2 * var(--inset)) * var(--p, 0)); background: var(--stamp); }
.frames button[aria-current="true"] { color: var(--rebate-ink); }
.frames button:hover { color: var(--rebate-ink); }
.frames .pause { min-width: 40px; display: grid; place-items: center; padding: 0; }
.frames .pause::before, .frames .pause .fill { display: none; }
.frames .pause .icon { width: 16px; height: 16px; }
.frames .pause [data-state] { display: none; }
.hero[data-playing="true"] .frames .pause [data-state="pause"],
.hero[data-playing="false"] .frames .pause [data-state="play"] { display: block; }

.frame .canvas-box { position: absolute; inset: 0; }
/* the plate floats over the canvas at every width and takes the active slide's height (hero.js fitPlate) */
.slide { align-self: start; }
.plate { overflow: hidden; transition: height .45s var(--ease-out); }
.strip .ill { font-family: var(--font); font-size: .66rem; font-weight: 640; letter-spacing: .06em; color: var(--rebate-ink); border: 1px solid var(--rebate-ink-2); border-radius: 2px; padding: 1px 6px; }
.strip .nm { display: none; font-family: var(--font); font-size: .8rem; font-weight: 560; color: var(--rebate-ink); }
.strip .meta [data-layer], .strip .meta .state { font-family: var(--font); font-size: .78rem; color: var(--rebate-ink); }
.frames button { font-family: var(--font); font-size: .8rem; font-stretch: 100%; }
.frames .no { display: none; }
/* desktop strip sheds the clock, then the scale, then coordinates and layer as the frame narrows */
@media (min-width: 761px) { .frames button { min-width: 0; padding: 0 9px; white-space: nowrap; } }
@media (min-width: 761px) and (max-width: 1560px) { .strip .meta [data-clock] { display: none; } }
@media (min-width: 761px) and (max-width: 1280px) { .strip .meta [data-scale] { display: none; } }
@media (min-width: 761px) and (max-width: 1100px) { .strip .meta [data-coord], .strip .meta [data-layer] { display: none; } }
/* phones: fixed-height print so the strip stays in the first viewport; numbered segments replace tab names */
@media (max-width: 760px) {
  .hero { padding: 4px 10px 0; }
  .frame { padding: 10px 10px 0; }
  .frame .viewport { height: clamp(500px, calc(100svh - var(--header-h) - 96px), 760px); }
  .plate-wrap { left: 0; right: 0; padding: 8px; max-width: none; }
  /* a compact plate, so the animation keeps most of the frame: two-line headline, small lede, buttons on one row */
  .plate { padding: 13px 14px 14px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
  .slide h1, .slide h2 { font-size: clamp(1.2rem, .95rem + 1.6vw, 1.5rem); line-height: 1.1; letter-spacing: -0.026em; max-width: 26ch; }
  .slide p { margin-top: 5px; font-size: .875rem; line-height: 1.42; }
  .slide p .ph-hide { display: none; } /* the longer ledes drop their second thought on phones */
  .slide .cta { margin-top: 12px; gap: 6px; }
  .slide .cta .btn { min-height: 40px; padding: .5em .7em; gap: .4em; font-size: .9rem; }
  .slide .cta .lbl-long { display: none; }
  .slide .cta .lbl-short { display: inline; }
  .strip { height: auto; flex-direction: column; gap: 4px; padding: 8px 0 6px; }
  .strip .meta { gap: 12px; }
  .strip .meta .opt, .strip .meta [data-coord] { display: none; }
  .strip .nm { display: inline; }
  .frames { display: grid; grid-template-columns: repeat(7, 1fr) 40px; gap: 4px; margin: 0; }
  .frames button { --inset: 2px; min-width: 0; padding: 9px 0 4px; text-align: center; font-family: var(--mono); font-size: .72rem; }
  .frames button::before { left: 2px; right: 2px; }
  .frames .no { display: inline; }
  .frames .lbl { display: none; }
  .fid, .frame .corner { display: none; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section-head { display: grid; gap: 18px; max-width: 880px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 24px 56px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }
.on-dark { background: var(--canopy); color: var(--canopy-ink); }
.on-dark .lede, .on-dark p { color: var(--canopy-ink-2); }
.on-dark h2, .on-dark h3 { color: var(--canopy-ink); }
.alt { background: var(--paper-2); }
.caption { font-size: .82rem; line-height: 1.5; color: var(--ink-3); }
.on-dark .caption { color: var(--canopy-ink-2); }

/* print card: an image framed like a survey print */
.print { position: relative; background: var(--rebate); padding: 10px 10px 0; border-radius: 2px; box-shadow: var(--shadow-2); }
.print .pstrip { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px 2px; font-size: .76rem; color: var(--rebate-ink-2); }
.print .pstrip .stamp, .print .pstrip .num { font-family: var(--mono); font-stretch: 87.5%; font-size: .7rem; font-variant-numeric: tabular-nums; }
.print .pstrip .stamp { color: var(--stamp); font-weight: 600; }
.print .corner { position: absolute; width: 12px; height: 12px; border-color: var(--rebate-ink-2); border-style: solid; pointer-events: none; }
.print .c-tl { top: 2px; left: 2px; border-width: 1.5px 0 0 1.5px; }
.print .c-tr { top: 2px; right: 2px; border-width: 1.5px 1.5px 0 0; }

/* ---------- compare ---------- */
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 1040px) { .cmp-grid { grid-template-columns: 1fr; } }
.cmp {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #6f756f;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  --pos: 50%;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity .35s; }
.cmp .cmp-drone { clip-path: inset(0 0 0 var(--pos)); }
.cmp .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.cmp .knob {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #142019;
  display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); border: 0; padding: 0; cursor: ew-resize;
}
.cmp .knob .icon { width: 22px; height: 22px; }
.cmp .tag { position: absolute; top: 12px; padding: 5px 9px; font-size: .78rem; font-weight: 560; background: rgba(16, 23, 19, .82); color: #e8efe6; border-radius: 2px; pointer-events: none; }
.cmp .tag.l { left: 12px; }
.cmp .tag.r { right: 12px; }
.cmp.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(16, 23, 19, .25); }
.scalebar { display: inline-flex; flex-direction: column; gap: 3px; }
.scalebar .bar { height: 6px; border: 1.5px solid currentColor; border-top: 0; }
.zoom-stops { display: grid; gap: 0; border-top: 1px solid var(--canopy-rule); }
.zoom-stops button {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline;
  width: 100%; padding: 14px 4px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--canopy-rule);
  color: var(--canopy-ink-2); cursor: pointer;
}
.zoom-stops button .z { grid-row: span 2; font-family: var(--mono); font-stretch: 87.5%; font-size: .74rem; color: var(--canopy-ink-2); min-width: 44px; padding-top: 4px; }
.zoom-stops button .n { font-size: 1.15rem; font-weight: 600; color: var(--canopy-ink); letter-spacing: -0.015em; }
.zoom-stops button .d { font-size: .9rem; line-height: 1.45; }
.zoom-stops button[aria-pressed="true"] .z { color: var(--stamp); }
.zoom-stops button[aria-pressed="true"] .n { color: var(--stamp); }
.zoom-stops button:hover .n { text-decoration: underline; text-decoration-color: var(--stamp); }
.cmp-aside { display: grid; gap: 22px; }

/* ---------- layers explorer ---------- */
.lyr-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1040px) { .lyr-grid { grid-template-columns: 1fr; } .lyr-grid .lyr-panel { order: 2; } }
.lyr-map { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: crosshair; touch-action: pan-y;
  background-color: var(--paper-2);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px; }
.lyr-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; transition: opacity .35s; }
.lyr-map img[data-layer="relief"] { mix-blend-mode: multiply; }
.lyr-map .xh { position: absolute; pointer-events: none; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: 0; transition: opacity .15s; }
.lyr-map .xh svg { width: 100%; height: 100%; stroke: #fff; stroke-width: 1.6; fill: none; filter: drop-shadow(0 0 1px rgba(0,0,0,.8)); }
.lyr-map.has-cursor .xh { opacity: 1; }
.lyr-panel { display: grid; gap: 4px; }
.lyr-toggle {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 6px; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.lyr-toggle input { width: 18px; height: 18px; margin: 0; }
.lyr-toggle .t { font-weight: 560; }
.lyr-toggle .s { font-size: .82rem; color: var(--ink-3); grid-column: 2 / -1; margin-top: -8px; }
.lyr-toggle .sw { width: 34px; height: 10px; border-radius: 1px; }
.lyr-legend { margin-top: 14px; padding: 16px; background: var(--paper-2); border-radius: 2px; min-height: 120px; }
.lyr-legend .lt { font-size: .95rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--ink); }
.lyr-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; color: var(--ink-2); }
.lyr-legend li { display: flex; align-items: center; gap: 10px; }
.lyr-legend li i { width: 22px; height: 12px; border-radius: 1px; flex: none; }
.lyr-legend .ramp { height: 12px; border-radius: 1px; margin-bottom: 4px; }
.lyr-legend .ramp-labels { display: flex; justify-content: space-between; font-family: var(--mono); font-stretch: 87.5%; font-size: .7rem; color: var(--ink-3); }
.lyr-legend .note { margin-top: 10px; font-size: .82rem; color: var(--ink-2); }
.opacity { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 12px; font-size: .84rem; color: var(--ink-3); }
.opacity input { width: 100%; }

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .roles { grid-template-columns: 1fr; gap: 20px; } }
.role-tabs { display: grid; border-top: 1px solid var(--rule); }
.role-tabs button {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 4px; background: none; border: 0; border-bottom: 1px solid var(--rule);
  font-size: 1.08rem; font-weight: 520; text-align: left; cursor: pointer; color: var(--ink-2);
}
.role-tabs button .icon { opacity: 0; transition: opacity .2s, transform .25s var(--ease-out); transform: translateX(-6px); color: var(--genteng-ink); }
.role-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 620; }
.role-tabs button[aria-selected="true"] .icon { opacity: 1; transform: none; }
.role-tabs button:hover { color: var(--ink); }
@media (max-width: 960px) {
  .role-tabs { display: flex; overflow-x: auto; border-top: 0; gap: 8px; scrollbar-width: none; padding-bottom: 4px; }
  .role-tabs::-webkit-scrollbar { display: none; }
  .role-tabs button { flex: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 9px 16px; font-size: .95rem; }
  .role-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .role-tabs button .icon { display: none; }
}
.role-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.role-panel[hidden] { display: none; }
.role-panel > div { padding: clamp(22px, 2.6vw, 36px); }
.role-panel .before { border-right: 1px solid var(--rule); }
.role-panel .label { font-size: .85rem; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.role-panel .after .label { color: var(--genteng-ink); }
.role-panel p { font-size: 1.08rem; line-height: 1.55; }
.role-panel .before p { color: var(--ink-2); }
.role-panel .chips { grid-column: 1 / -1; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-block: 16px; }
.role-panel .chips span:first-child { font-size: .85rem; color: var(--ink-3); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: .84rem; color: var(--ink-2); }
@media (max-width: 700px) { .role-panel { grid-template-columns: 1fr; } .role-panel .before { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ---------- process: a drone flies the survey, the photos become one map, the map goes live ---------- */
.flight { display: grid; gap: 26px; }
.flight-stage { margin: 0; }
.flight-stage canvas { display: block; width: 100%; aspect-ratio: 21 / 9; background: #33442f; }
.flight-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.flight-steps li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: start; padding-top: 18px; }
.flight-steps .bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--rule); overflow: hidden; }
.flight-steps .bar i { display: block; width: 100%; height: 100%; background: var(--genteng); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.flight-steps .no { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--rule-strong); border-radius: 50%; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: background .3s, border-color .3s, color .3s; }
.flight-steps h3 { font-size: 1.12rem; }
.flight-steps p { grid-column: 1 / -1; margin-top: 10px; color: var(--ink-2); font-size: .98rem; }
.flight-steps li.is-on .no { background: var(--genteng); border-color: var(--genteng); color: var(--on-genteng); }
.flight-steps li.is-done .no { border-color: var(--genteng); color: var(--genteng-ink); }
@media (max-width: 900px) { .flight-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }
@media (max-width: 640px) {
  .flight-stage canvas { aspect-ratio: 4 / 3; }
  .flight-steps { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- admin spec sheet ---------- */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.spec > div { display: grid; grid-template-columns: 28px 1fr; align-content: start; gap: 4px 16px; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); }
.spec > div:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--rule); }
.spec > div:nth-child(even) { padding-left: 32px; }
.spec .icon { width: 24px; height: 24px; color: var(--genteng-ink); margin-top: 2px; grid-row: span 2; }
.spec h3 { font-size: 1.1rem; }
.spec p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 780px) {
  .spec { grid-template-columns: 1fr; }
  .spec > div, .spec > div:nth-child(odd), .spec > div:nth-child(even) { padding: 20px 0; border-right: 0; }
}

/* ---------- tech ---------- */
.tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .tech { grid-template-columns: 1fr; gap: 36px; } }
.range { margin-top: 30px; }
.range .file { position: relative; height: 56px; background: var(--canopy-2); border: 1px solid var(--canopy-rule); overflow: hidden; }
.range .file i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--stamp); opacity: 0; transition: opacity .3s; }
.range .file i.on { opacity: 1; }
.range .row { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; margin-top: 10px; font-size: .84rem; color: var(--canopy-ink-2); }
.range .row .num { font-family: var(--mono); font-stretch: 87.5%; font-size: .74rem; font-variant-numeric: tabular-nums; }
.range .row b { color: var(--stamp); font-weight: 600; }
.tiles { margin: 0; }
.tiles canvas { display: block; width: 100%; aspect-ratio: 4 / 3; background: #1d2a21; }
.tiles .pstrip b { color: var(--stamp); font-weight: 600; }

/* ---------- live demo ---------- */
.live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.live h2 { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); }
@media (max-width: 1000px) { .live { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 26px 0 30px; border-top: 1px solid var(--rule); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: .82rem; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.04rem; letter-spacing: -0.01em; }
.browser { background: var(--rebate); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-2); }
.browser .chrome { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; color: var(--rebate-ink-2); font-size: .8rem; }
.browser .dots { display: flex; gap: 6px; }
.browser .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--rebate-2); }
.browser .addr { flex: 1; min-width: 0; padding: 5px 10px; background: var(--rebate-2); border-radius: 3px; color: var(--rebate-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .screen { position: relative; aspect-ratio: 1366 / 820; background: #dfe3dc; }
.browser .screen img, .browser .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.browser .run { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(rgba(12, 19, 16, .12), rgba(12, 19, 16, .45)); }
/* illustrated app: the village drawing under a hand-built interface; nothing here is a screenshot */
.mock .screen { aspect-ratio: 16 / 10; background: #33442f; overflow: hidden; }
.mock-ui { position: absolute; inset: 0; pointer-events: none; font-size: clamp(.62rem, .5rem + .5vw, .8rem); color: #1f2a24; }
.mock .m-search { position: absolute; left: 3%; top: 4%; width: 40%; display: flex; justify-content: space-between; align-items: center; padding: .7em 1em; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); color: #5f6368; }
.mock .m-search .icon { width: 1.2em; height: 1.2em; color: #3c4043; }
.mock .m-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock .m-chips { position: absolute; left: 3%; top: calc(4% + 3.4em); display: flex; gap: .5em; flex-wrap: wrap; max-width: 46%; }
.mock .m-you { position: absolute; width: 1em; height: 1em; margin: -.5em 0 0 -.5em; border-radius: 50%; background: #1a73e8; border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(26, 115, 232, .25); opacity: 0; transition: opacity .3s; }
.mock .m-you.in { opacity: 1; }
.mock .m-chips span { display: inline-flex; align-items: center; gap: .45em; padding: .38em .8em; background: #fff; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); font-weight: 560; }
.mock .m-chips i { width: .6em; height: .6em; border-radius: 50%; }
.mock .m-chips .on { background: #e8f0fe; color: #174ea6; }
.mock .m-pins { position: absolute; inset: 0; }
.mock .m-pins b { position: absolute; width: 1.9em; height: 1.9em; margin: -1.9em 0 0 -.95em; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(var(--s, 1)); background: var(--c); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s, transform .45s var(--ease-out); }
.mock .m-pins b::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: #fff; }
.mock .m-pins b.in { opacity: 1; }
.mock .m-pins b.dim { opacity: .35; }
.mock .m-pins b.sel { --s: 1.35; z-index: 2; }
.mock .m-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock .m-route path { fill: none; stroke: #1a73e8; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 1); stroke-dashoffset: calc(var(--len, 1) * (1 - var(--k, 0))); filter: drop-shadow(0 0 2px rgba(255, 255, 255, .9)); }
.mock .m-card { position: absolute; width: 34%; min-width: 150px; padding: .8em; background: #fff; border-radius: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease-out); }
.mock .m-card.in { opacity: 1; transform: none; }
.mock .m-card .ph { height: 4.6em; border-radius: 5px; overflow: hidden; background: #cfdcd6; }
.mock .m-card .ph svg { display: block; width: 100%; height: 100%; }
.mock .m-card .t { margin-top: .6em; font-weight: 640; font-size: 1.12em; }
.mock .m-card .s { color: #5f6368; }
.mock .m-card .s b { color: #188038; font-weight: 600; }
.mock .m-card .b { display: flex; gap: .5em; margin-top: .6em; }
.mock .m-card .b span { padding: .3em .7em; border: 1px solid #dadce0; border-radius: 999px; color: #1a73e8; font-weight: 560; }
.mock .m-card .b span:first-child { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.mock .m-tap { position: absolute; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.mock .m-tap.go { animation: tap .7s ease-out; }
@keyframes tap { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.3); } }
.mock .mock-strip { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mock .mock-strip .ill { font-size: .62rem; font-weight: 640; letter-spacing: .06em; color: #eef1ec; background: rgba(16, 23, 19, .78); border-radius: 2px; padding: 3px 7px; }
.mock .mock-strip .anim-btn { background: rgba(16, 23, 19, .78); border-color: transparent; color: #eef1ec; }
.mock .run { inset: auto 12px 12px auto; display: block; background: none; }
/* phones: the place opens as a bottom sheet, like the app does; the page already has its own demo button */
@media (max-width: 640px) {
  .mock .m-search { width: 62%; }
  .mock .m-chips { max-width: 94%; }
  .mock .m-chips span:nth-child(n+3) { display: none; }
  .mock .m-card { left: 3% !important; right: 3%; top: auto !important; bottom: 3%; width: auto; min-width: 0; display: grid; grid-template-columns: 4.2em 1fr; column-gap: .7em; align-items: center; }
  .mock .m-card .ph { grid-row: span 3; height: 4.2em; }
  .mock .m-card .t { margin-top: 0; }
  .mock .m-card .b { margin-top: .3em; }
  .mock .m-card .b span:nth-child(3) { display: none; }
  .mock .run { display: none; }
  .mock .mock-strip { left: auto; right: 10px; top: 10px; bottom: auto; }
}


/* ---------- looping illustrations: a quiet pause/play toggle in their data strip ---------- */
.anim-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: auto; padding: 0; border: 1px solid var(--rebate-ink-2); border-radius: 50%; background: transparent; color: var(--rebate-ink); cursor: pointer; }
.anim-btn .icon { width: 13px; height: 13px; }
.anim-btn [data-state="play"], .anim-btn[data-paused] [data-state="pause"] { display: none; }
.anim-btn[data-paused] [data-state="play"] { display: block; }
.anim-btn:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.print .pstrip .ill, .tiles .pstrip .ill { font-size: .62rem; font-weight: 640; letter-spacing: .06em; color: var(--rebate-ink); border: 1px solid var(--rebate-ink-2); border-radius: 2px; padding: 1px 6px; }
.print .pstrip .nm { color: var(--rebate-ink); font-weight: 560; }
button.link-arrow { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: 24px; } }
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 1.1rem; font-weight: 560; letter-spacing: -0.012em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { transition: transform .25s var(--ease-out); color: var(--ink-3); }
.qa details[open] summary .icon { transform: rotate(45deg); color: var(--genteng-ink); }
.qa .a { padding: 0 2px 22px; color: var(--ink-2); max-width: 68ch; }
.qa .a p + p { margin-top: 10px; }

/* ---------- final CTA: an empty survey frame waiting for the visitor's area ---------- */
.cta-band { background: var(--canopy); padding-block: clamp(64px, 8vw, 112px); }
.cta-frame { max-width: none; }
.cta-view { position: relative; min-height: clamp(440px, 44vw, 560px); background: var(--paper-2); overflow: hidden; }
.cta-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: #3a4a37; cursor: crosshair; touch-action: pan-y; }
.cta-plate { position: absolute; left: clamp(14px, 2.2vw, 28px); bottom: clamp(14px, 2.2vw, 28px); max-width: min(600px, calc(100% - 28px)); display: block; }
.cta-plate h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); max-width: 14ch; }
.cta-plate p { margin-top: 14px; color: var(--ink-2); max-width: 46ch; }
.cta-plate .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 760px) {
  .cta-band { padding-block: 48px; }
  .cta-view { min-height: 0; display: flex; flex-direction: column; background: var(--rebate); }
  .cta-canvas { position: relative; height: 270px; }
  .cta-plate { position: relative; left: 0; bottom: 0; max-width: none; margin-top: 10px; }
  .cta-frame .corner.c-bl, .cta-frame .corner.c-br { display: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--rebate); color: var(--rebate-ink-2); padding-top: 64px; font-size: .95rem; }
.site-footer a { color: var(--rebate-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--stamp); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .about { grid-column: 1 / -1; } }
.foot-grid .brand { color: var(--rebate-ink); --logo-k: var(--rebate-ink); --logo-q: var(--stamp); }
.foot-grid .about p { margin-top: 16px; max-width: 42ch; color: var(--rebate-ink-2); }
.foot-grid .contact { margin-top: 20px; display: grid; gap: 8px; }
.foot-grid .contact a { display: inline-flex; align-items: center; gap: 10px; }
.foot-grid h2 { font-size: .86rem; font-weight: 600; line-height: 1.2; color: var(--rebate-ink-2); margin-bottom: 14px; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-strip { border-top: 1px solid var(--rebate-2); }
.foot-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; font-size: .84rem; }
.foot-strip .stamp { color: var(--stamp); font-family: var(--mono); font-stretch: 87.5%; font-size: .72rem; font-variant-numeric: tabular-nums; }
.foot-strip .seg { border-color: var(--rebate-2); }
.foot-strip .seg a { color: var(--rebate-ink-2); }
.foot-strip .seg a[aria-current="true"] { background: var(--rebate-ink); color: var(--rebate); }
.foot-strip .seg a:hover:not([aria-current="true"]) { background: var(--rebate-2); color: var(--rebate-ink); }
.foot-strip .icon-btn { border-color: var(--rebate-2); color: var(--rebate-ink-2); }
.foot-strip .icon-btn:hover { color: var(--rebate-ink); border-color: var(--rebate-ink-2); }
.foot-strip .ft-tools { display: flex; gap: 10px; align-items: center; }

/* ---------- modal + form ---------- */
dialog.modal {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100svh - 24px);
  padding: 0; border: 0; border-radius: 3px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  overflow: hidden;
}
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in .35s var(--ease-out); }
dialog.modal::backdrop { background: rgba(8, 12, 10, .62); animation: fade-in .25s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 28px 18px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.modal-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.modal-head p { margin-top: 8px; color: var(--ink-2); font-size: .97rem; max-width: 56ch; }
.modal-body { padding: 22px 28px 8px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 16px 28px 22px; border-top: 1px solid var(--rule); background: var(--paper); }
.modal-foot .note { font-size: .8rem; color: var(--ink-3); max-width: 42ch; display: flex; gap: 8px; align-items: start; }
.modal-foot .note .icon { margin-top: 2px; }
.modal-foot .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.modal-foot .lbl-short, .modal-foot .ph-only { display: none; }
@media (max-width: 640px) {
  dialog.modal { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border-radius: 0; margin: 0; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 18px; }
  /* phones get the form alone: no intro under the title, no storage note above the buttons */
  .modal-head { align-items: center; padding-block: 16px 14px; }
  .modal-head p, .modal-foot .note { display: none; }
  /* both sends on one row: a bordered email button with its icon, WhatsApp taking the rest */
  .modal-foot .acts { width: 100%; flex-wrap: nowrap; }
  .modal-foot .acts .btn-quiet, .modal-foot .acts .btn-quiet:hover { --btn-bd: var(--rule-strong); flex: none; padding-inline: .9em; }
  .modal-foot .acts .btn-primary { flex: 1; min-width: 0; }
  .modal-foot .lbl-long { display: none; }
  .modal-foot .lbl-short { display: inline; }
  .modal-foot .ph-only { display: inline-block; }
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field > .lbl { font-size: .9rem; font-weight: 560; color: var(--ink); }
.field .req { color: var(--genteng-ink); margin-left: 2px; }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: 3px;
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 92px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2356655b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--genteng); box-shadow: 0 0 0 3px color-mix(in srgb, var(--genteng) 22%, transparent); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #c0392b; }
.field .err { display: none; font-size: .82rem; color: #b3261e; font-weight: 520; }
:root[data-theme="dark"] .field .err { color: #ff8a80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #ff8a80; } }
.field.has-error .err { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 13px;
  border: 1px solid var(--rule-strong); border-radius: 999px; font-size: .9rem; color: var(--ink-2);
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink-3); border-radius: 3px; flex: none; transition: background-color .15s, border-color .15s; }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.choice input:checked + span::before { background: var(--genteng); border-color: var(--genteng); box-shadow: inset 0 0 0 2px var(--paper-2); }
.choice input:focus-visible + span { outline: 2px solid var(--genteng); outline-offset: 2px; }
.choice:hover span { border-color: var(--ink-3); }
/* phones: one option per row, full width and left-aligned, instead of pills that wrap into ragged lines */
@media (max-width: 640px) {
  .choices { display: grid; gap: 6px; }
  .choice span { display: flex; min-height: 44px; padding: 10px 13px; border-radius: 3px; font-size: .95rem; }
}
.done { display: none; padding: 8px 0 20px; }
.modal.is-done .form, .modal.is-done .modal-foot { display: none; }
.modal.is-done .done { display: block; }
.done h3 { font-size: 1.4rem; margin-bottom: 10px; }
.done p { color: var(--ink-2); }
.done pre { margin: 16px 0; padding: 14px; max-height: 220px; overflow: auto; background: var(--paper-2); border-radius: 3px; font-family: var(--font); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; }
.done .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- inner pages ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.8rem); line-height: 1; letter-spacing: -0.038em; max-width: 18ch; }
.page-head .lede { margin-top: 20px; }
.crumb { font-size: .86rem; color: var(--ink-3); margin-bottom: 22px; display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--ink-3); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 48px 0 14px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 14px 0; }
.prose a { color: var(--genteng-ink); }
.with-toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; font-size: .92rem; }
.toc a { display: block; padding: 8px 10px; text-decoration: none; color: var(--ink-3); border-radius: 3px; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
.toc a.is-active { color: var(--ink); background: var(--paper-2); }
@media (max-width: 960px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; } .toc a { white-space: nowrap; border: 1px solid var(--rule); } }

/* feature catalogue */
.fgroup { padding-block: 48px; border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 12px); }
.fgroup:first-child { padding-top: 0; }
.fgroup > header { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; margin-bottom: 26px; }
.fgroup > header .gi {
  width: 52px; height: 52px; display: grid; place-items: center; color: var(--genteng-ink);
  --c: var(--ink);
  background:
    linear-gradient(var(--c), var(--c)) left top / 12px 2px no-repeat, linear-gradient(var(--c), var(--c)) left top / 2px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 12px 2px no-repeat, linear-gradient(var(--c), var(--c)) right top / 2px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 12px 2px no-repeat, linear-gradient(var(--c), var(--c)) left bottom / 2px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 12px 2px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 2px 12px no-repeat;
}
.fgroup > header .gi .icon { width: 26px; height: 26px; }
.fgroup > header h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.fgroup > header p { margin-top: 8px; color: var(--ink-2); max-width: 62ch; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.flist li { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); }
.flist li:nth-child(odd) { border-right: 1px solid var(--rule); }
.flist li:nth-child(even) { padding-left: 24px; }
.flist b { display: block; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.flist span { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 760px) { .flist { grid-template-columns: 1fr; } .flist li, .flist li:nth-child(odd), .flist li:nth-child(even) { padding: 16px 0; border-right: 0; } }
.fgroup .figure { margin-top: 26px; }

/* case study */
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .case-grid { grid-template-columns: 1fr; } }
.case-side { position: sticky; top: calc(var(--header-h) + 24px); }
.case-side dl { margin: 0; border-top: 1px solid var(--rule); }
.case-side dl div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.case-side dt { font-size: .82rem; color: var(--ink-3); }
.case-side dd { margin: 2px 0 0; font-weight: 560; }
.shots { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; }
.shots .phone { background: var(--rebate); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-2); align-self: start; }
.shots .phone img { border-radius: 12px; }
@media (max-width: 700px) { .shots { grid-template-columns: 1fr; } .shots .phone { max-width: 300px; margin-inline: auto; } }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: .84rem; color: var(--ink-3); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { display: grid; border-top: 1px solid var(--rule); }
.channels a { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 20px 2px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.channels a:hover .v { text-decoration: underline; text-decoration-color: var(--genteng); }
.channels .ci { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 50%; color: var(--genteng-ink); }
.channels .k { font-size: .82rem; color: var(--ink-3); }
.channels .v { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.inline-form { border: 1px solid var(--rule); padding: clamp(20px, 3vw, 32px); background: var(--paper); }

/* 404 */
.lost { min-height: calc(100svh - var(--header-h) - 120px); display: grid; place-items: center; text-align: left; padding-block: 64px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* case study: directory bars, phone pair */
.bars { display: grid; gap: 10px; margin-top: 18px; max-width: 760px; }
.bars > div { display: grid; grid-template-columns: minmax(130px, 230px) 1fr 34px; gap: 14px; align-items: center; font-size: .95rem; color: var(--ink-2); }
.bars i { display: block; height: 12px; width: calc(var(--v) / 23 * 100%); background: var(--c); border-radius: 1px; }
.bars b { font-weight: 640; font-size: .92rem; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.phones { display: flex; gap: 22px; margin-top: 22px; }
.phones .phone { width: min(260px, 46%); background: var(--rebate); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-2); }
.phones .phone img { border-radius: 12px; }
@media (max-width: 560px) { .bars > div { grid-template-columns: 118px 1fr 28px; gap: 10px; font-size: .88rem; } }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.ticks .icon { color: var(--genteng-ink); margin-top: 3px; }
@media (max-width: 900px) { [data-about] { grid-template-columns: 1fr !important; gap: 36px !important; } }
.qa .a a, .prose a { color: var(--genteng-ink); }
.shots { align-items: start; }

/* ---------- page-head data strip; no-JS ---------- */
:root:not(.js) .reveal { opacity: 1; transform: none; }
.head-strip { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 34px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .72rem; color: var(--ink-3); }
.head-strip .stamp { color: var(--genteng-ink); font-weight: 640; letter-spacing: .04em; }
.head-strip .num { font-family: var(--mono); font-stretch: 87.5%; font-variant-numeric: tabular-nums; }
.lyr-map img { transition: opacity .35s, clip-path .75s var(--ease-out); }
.lyr-map img.is-out { opacity: 0 !important; }
.modal-head .icon-btn { flex: none; }

/* CTA frame details */
.cta-frame .strip { align-items: center; }
.cta-frame .strip .credit { font-family: var(--font); font-size: .74rem; color: var(--rebate-ink-2); }
.cta-plate { box-shadow: 0 0 0 1px var(--rule-strong), 0 14px 40px -18px rgba(0, 0, 0, .55); }
@media (max-width: 760px) {
  .cta-frame .strip .meta { flex-wrap: wrap; white-space: normal; }
}
.opacity output { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.on-dark .link-arrow { color: var(--stamp); }
