/* Brand display face, served from this site (no third-party font requests).
   SIL Open Font License: fonts/OFL.txt. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #0a0e0c; --surface: #141914; --pine: #1b2a20; --line: #232b25;
  --fg: #f2f4f1; --muted: #a3afa6; --accent: #86ad8f; --tan: #c9a774; --green: #4f7358;
  --glow: rgba(134, 173, 143, 0.16);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f1; --surface: #ffffff; --pine: #e3ece4; --line: #e0e3dc;
    --fg: #14180f; --muted: #59625c; --accent: #3e5e47; --tan: #7a5f38; --green: #4f7358;
    --glow: rgba(79, 115, 88, 0.07);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 14px; border-radius: 8px;
  background: var(--surface); color: var(--fg); z-index: 10; }
.skip:focus { top: 12px; }
.display { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 0.95; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
/* Menu bar: full width and sticky, frosted over whatever scrolls under it.
   On the home page it starts in the drawing's sky color and turns solid
   once you scroll (site.js adds .scrolled). */
html { scroll-padding-top: 88px; }
header.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: background-color 0.3s, box-shadow 0.3s; }
header.top.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); }
header .bar { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none;
  margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand span { font-size: 28px; letter-spacing: 0.08em; }
header nav { display: flex; align-items: center; gap: 6px; }
header nav a { font-size: 16px; font-weight: 600; color: var(--fg); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
header nav a:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
header nav a.cta { margin-left: 6px; background: var(--accent); color: var(--bg); }
header nav a.cta:hover { background: color-mix(in srgb, var(--accent) 85%, var(--fg)); }
@media (max-width: 560px) {
  .brand span { font-size: 23px; }
  header nav { gap: 2px; }
  header nav a { font-size: 15px; padding: 7px 11px; }
}
/* Landing page */
.hero { position: relative; overflow: hidden; padding: 40px 0 0; }
.hero-copy { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; }
.eyebrow { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tan); font-weight: 600; }
h1 { font-size: clamp(48px, 10vw, 96px); margin: 0; }
.lead { font-size: 21px; color: var(--muted); max-width: 30em; margin: 0; }
.cue { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; margin-top: 6px; }
.cue span { width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 4px; } }
/* The range: the drawing's own sky color runs up behind the header and
   hero (--sky), so the picture joins it without a seam, then fades into the
   page at the bottom. site.js drifts it with --sy. */
.home { --sky: #f8f5eb; }
.home header.top:not(.scrolled) { background: color-mix(in srgb, var(--sky) 88%, transparent);
  border-bottom-color: color-mix(in srgb, var(--fg) 12%, transparent); }
.hero { background: linear-gradient(var(--sky) 55%, var(--bg)); }
.range { display: block; height: clamp(300px, 44vw, 620px); margin-top: -24px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 74%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 74%, transparent); }
.range img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  transform: translateY(calc(var(--sy, 0) * 0.22px)) scale(1.04); }
@media (prefers-color-scheme: dark) {
  .home { --sky: #23372b; }
  .range img { object-position: 50% 28%; }
}

.block { padding-top: 72px; }
h2 { font-size: clamp(34px, 6vw, 48px); margin: 0 0 14px; }
.sub { margin: 0 0 24px; color: var(--muted); max-width: 36em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { padding: 14px 14px 22px; border-radius: 20px; border: 1px solid var(--line); outline: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), var(--glow), transparent 45%), var(--surface);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s, box-shadow 0.35s; }
.tile h3 { font-size: 28px; margin: 0 8px 10px; }
.tile p { margin: 0 8px; color: var(--muted); }
.tile:is(:hover, :focus-visible) { transform: translateY(-4px); border-color: var(--green);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7); }
.tile:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }
/* The one-liner gives way to the details on hover, in one grid cell so the
   tile never changes size; touch screens just show the details. */
.blurb { display: grid; }
.blurb p { grid-area: 1 / 1; transition: opacity 0.35s, transform 0.35s; }
.blurb .long { opacity: 0; transform: translateY(6px); }
.tile:is(:hover, :focus-visible) .short { opacity: 0; transform: translateY(-6px); }
.tile:is(:hover, :focus-visible) .long { opacity: 1; transform: none; }
@media (hover: none) {
  .blurb .short { display: none; }
  .blurb .long { opacity: 1; transform: none; }
}

/* Tile graphics: each plays on hover, or on touch screens once it's on
   screen (site.js adds .on). */
.viz { height: 128px; margin-bottom: 18px; border-radius: 14px; background: var(--pine); overflow: hidden; }
.viz svg { display: block; width: 100%; height: 100%; }
/* :where keeps this base below the per-shape rules that follow. */
.viz :where(svg *) { fill: none; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box;
  transform-origin: center; }
.v-phone { stroke: var(--muted); stroke-width: 3; }
.v-bars { stroke: var(--line); stroke-width: 5; }
.v-slash { stroke: var(--tan); stroke-width: 3; }
.v-wave { stroke: var(--line); stroke-width: 2.5; transition: opacity 0.4s; }
.v-check-bg { fill: var(--accent); transform: scale(0); transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.v-check { stroke: var(--bg); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.4s 0.3s; }
.tile:is(:hover, :focus-visible, .on) .v-wave { opacity: 0.15; }
.tile:is(:hover, :focus-visible, .on) .v-check-bg { transform: none; }
.tile:is(:hover, :focus-visible, .on) .v-check { stroke-dashoffset: 0; }

.v-shield { stroke: var(--accent); stroke-width: 3; fill: var(--surface); }
.v-lock { fill: var(--tan); }
.v-shackle { stroke: var(--tan); stroke-width: 4; transition: transform 0.4s; transform: translateY(-5px); }
.v-dot { fill: var(--muted); opacity: 0.6; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s; }
.tile:is(:hover, :focus-visible, .on) .v-shackle { transform: none; }
.tile:is(:hover, :focus-visible, .on) .d1 { transform: translate(-30px, -20px); opacity: 0; }
.tile:is(:hover, :focus-visible, .on) .d2 { transform: translate(-30px, 20px); opacity: 0; }
.tile:is(:hover, :focus-visible, .on) .d3 { transform: translate(30px, -20px); opacity: 0; }
.tile:is(:hover, :focus-visible, .on) .d4 { transform: translate(30px, 20px); opacity: 0; }

.v-topo { stroke: var(--line); stroke-width: 2; }
.v-path { stroke: var(--tan); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s; }
.v-start { fill: var(--accent); }
.v-flag { stroke: var(--accent); stroke-width: 2.5; fill: var(--accent); opacity: 0; transition: opacity 0.3s 1s; }
.tile:is(:hover, :focus-visible, .on) .v-path { stroke-dashoffset: 0; }
.tile:is(:hover, :focus-visible, .on) .v-flag { opacity: 1; }

/* TrueGlass: the eyepiece loops between shaking and stabilized. */
.product-block { margin-top: 24px; padding-bottom: 72px; background: linear-gradient(var(--bg), var(--pine) 30%, var(--pine) 70%, var(--bg)); }
.product-wrap { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.eyepiece { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center;
  border-radius: 50%; background: #000; padding: 6%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.field { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.field::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 58%, rgba(0, 0, 0, 0.35) 66%, rgba(0, 0, 0, 0.92) 71%); }
.scene { position: absolute; left: -12.5%; top: -12.5%; width: 125%; height: 125%; max-width: none;
  animation: shake 8s linear infinite; }
.badge { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; padding: 7px 14px; border-radius: 999px;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap; }
.badge.raw { background: var(--surface); border: 1px solid var(--line); color: var(--muted); animation: raw 8s step-end infinite; }
.badge.on { background: var(--accent); color: var(--bg); animation: steady 8s step-end infinite; }
/* Shaky for the first half, then the stabilizer takes over. */
@keyframes shake {
  0% { transform: translate(0, 0) rotate(0); } 4% { transform: translate(3%, -2%) rotate(0.8deg); }
  8% { transform: translate(-2.5%, 2.5%) rotate(-0.6deg); } 12% { transform: translate(2%, 3%) rotate(1deg); }
  16% { transform: translate(-3.5%, -1%) rotate(-1deg); } 20% { transform: translate(1%, -3%) rotate(0.4deg); }
  24% { transform: translate(-2%, 2%) rotate(-0.8deg); } 28% { transform: translate(3.5%, 1%) rotate(0.9deg); }
  32% { transform: translate(-1%, -2.5%) rotate(-0.4deg); } 36% { transform: translate(2.5%, 2.5%) rotate(0.7deg); }
  40% { transform: translate(-3%, 0) rotate(-0.9deg); } 44% { transform: translate(1.5%, -2%) rotate(0.5deg); }
  48%, 100% { transform: translate(0, 0) rotate(0); }
}
@keyframes raw { 0% { opacity: 1; } 48% { opacity: 0; } }
@keyframes steady { 0% { opacity: 0; } 48% { opacity: 1; } }
.product-copy { display: grid; gap: 16px; justify-items: start; }
.product-copy h2 { display: flex; align-items: center; gap: 16px; margin: 0; }
.product-copy h2 img { width: 56px; height: 56px; border-radius: 13px; }
.product-copy .lead { font-size: 20px; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { margin: 0; padding-left: 28px; position: relative; }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px;
  border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.status { font-size: 14px; color: var(--tan); font-weight: 600; margin: 0; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  background: var(--accent); color: var(--bg); font-weight: 600; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--accent); }
@media (max-width: 760px) {
  .product-wrap { grid-template-columns: 1fr; gap: 40px; }
  .eyepiece { max-width: 300px; }
}

.next { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 20px;
  border: 1.5px dashed var(--line); }
.next h2 { font-size: 30px; margin: 0 0 4px; }
.next p { margin: 0; color: var(--muted); }
.pulse { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--tan);
  box-shadow: 0 0 0 0 var(--tan); animation: beacon 2s ease-out infinite; }
@keyframes beacon { 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Sections ease in as they scroll into view (site.js). */
.js .rv { opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease calc(var(--i, 0) * 70ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 70ms); }
.js .in .rv { opacity: 1; transform: none; }
footer { border-top: 1px solid var(--line); margin-top: 72px; }
footer .wrap { padding-top: 20px; padding-bottom: 28px; font-size: 14px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Documents (privacy, terms) */
main.doc { max-width: 720px; padding-bottom: 16px; }
main.doc h1 { font-size: 46px; margin: 8px 0 4px; }
main.doc h2 { font-size: 20px; margin: 32px 0 8px; }
p.updated { color: var(--muted); }
li { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
