/* XQ95 — styles. No external fonts, no third-party requests. */

/* Theme follows the logo: pure black, circuit mint (#00F5B0) and white.
   The site is dark only, so the logo always sits on its own black. */
:root {
  --bg: #000000;
  --bg-raised: #0a0f0e;
  --bg-sunken: #000000;
  --line: #15201d;
  --line-strong: #24342f;
  --fg: #f4f7f6;
  --fg-muted: #98a8a3;
  --fg-faint: #65746f;
  --accent: #00f5b0;
  --accent-ink: #00140e;
  --accent-soft: rgba(0, 245, 176, 0.12);
  --ok: #00f5b0;
  --ok-soft: rgba(0, 245, 176, 0.12);
  --radius: 10px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand-mark { height: 34px; width: auto; }
.brand-word { height: 14px; width: auto; }
.site-footer .brand-word { height: 16px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--fg-muted); font-size: 0.95rem;
}
.nav a:hover { color: var(--fg); background: var(--bg-raised); }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a.nav-cta { color: var(--accent-ink); background: var(--accent); font-weight: 600; margin-left: 6px; }
.nav a.nav-cta:hover { filter: brightness(1.08); }

.menu-btn {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--fg);
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 0.9rem; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 2px; }
  .nav a { padding: 12px; font-size: 1rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- sections ---------- */
main { display: block; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

.eyebrow {
  font: 600 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.lede { font-size: 1.2rem; color: var(--fg-muted); max-width: 62ch; }
.muted { color: var(--fg-muted); }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 70%);
  opacity: 0.55;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-bottom: 36px; }
.page-hero { padding: 96px 0 64px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 20ch; }
@media (max-width: 600px) { .hero { padding: 72px 0 64px; } .page-hero { padding: 64px 0 40px; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 9px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line-strong); color: var(--fg); background: var(--bg-raised);
}
.btn:hover { color: var(--fg); border-color: var(--fg-faint); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }

.status-note {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 10px;
  font: 0.85rem/1.4 var(--mono); color: var(--fg-muted);
}
.status-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card .card-foot { margin-top: auto; padding-top: 16px; }
a.card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { color: inherit; border-color: var(--line-strong); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card { transition: none; } a.card:hover { transform: none; } }

.num { font: 600 0.8rem/1 var(--mono); color: var(--fg-faint); margin-bottom: 16px; letter-spacing: 0.08em; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.72rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-muted);
  white-space: nowrap;
}
.tag-dev { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.tag-dev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.link-arrow { font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- layer stack ---------- */
.stack { display: grid; gap: 8px; }
.layer {
  display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 16px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px;
}
.layer-name { font: 600 0.78rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.layer-items { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 0.88rem/1 var(--mono); padding: 9px 12px; border-radius: 7px;
  background: var(--bg-sunken); border: 1px solid var(--line); color: var(--fg); text-decoration: none;
}
a.chip:hover { border-color: var(--accent); color: var(--fg); }
.layer-top { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.layer-top .layer-name { color: var(--accent); }
.layer-base { background: var(--bg-sunken); }
@media (max-width: 640px) { .layer { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- detail blocks (products / platform) ---------- */
.detail {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px;
  padding: 56px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.detail h3 { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 12px; }
.detail .block + .block { margin-top: 28px; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; } }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-3px);
}

.platform-group { margin-top: 72px; }
.platform-group:first-child { margin-top: 0; }
.platform-group > .eyebrow { color: var(--fg-faint); }

/* ---------- principles ---------- */
.principle {
  display: grid; grid-template-columns: 96px 1fr; gap: 32px;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.principle:first-of-type { border-top: 0; padding-top: 0; }
.principle-num { font: 600 2.5rem/1 var(--mono); color: var(--accent); letter-spacing: -0.04em; }
.principle .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.principle h3 { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.principle ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
@media (max-width: 760px) {
  .principle { grid-template-columns: 1fr; gap: 12px; }
  .principle .cols { grid-template-columns: 1fr; gap: 20px; }
}

.callout {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius); padding: 28px;
}
.callout p:last-child { margin: 0; }

/* ---------- prose (news, privacy) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.meta { font: 0.85rem/1.4 var(--mono); color: var(--fg-faint); margin-bottom: 24px; }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; text-decoration: none; }
.post-list a:hover h2 { color: var(--accent); }
.post-list h2 { font-size: 1.35rem; margin-bottom: 6px; }
.post-list p { margin: 0; color: var(--fg-muted); }
@media (max-width: 640px) { .post-list a { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- contact ---------- */
.contact-email { font: 600 clamp(1.1rem, 2.4vw, 1.35rem)/1.3 var(--mono); word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--fg-muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--fg-faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .code { font: 700 clamp(4rem, 14vw, 8rem)/1 var(--mono); color: var(--accent); letter-spacing: -0.05em; margin-bottom: 12px; }

/* ---------- photos ---------- */
.photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-raised); }
.photo img { display: block; width: 100%; height: auto; }
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.photo-detail { margin-top: 28px; }
.prose .photo-cover { margin: 8px 0 32px; }

/* Page heroes with a photo behind the title, fading to black on the text side */
.page-hero.has-photo { position: relative; isolation: isolate; overflow: hidden; padding: 136px 0 112px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg picture { display: block; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .8; animation: bg-in 2.4s var(--ease-out) both; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(0, 0, 0, .86) 34%, rgba(0, 0, 0, .35) 72%, rgba(0, 0, 0, .2) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 38%),
    linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, transparent 22%);
}
@keyframes bg-in { from { opacity: 0; transform: scale(1.08); } }
@media (max-width: 760px) {
  .page-hero.has-photo { padding: 88px 0 64px; }
  .hero-bg::after { background: linear-gradient(to top, var(--bg) 4%, rgba(0, 0, 0, .74) 55%, rgba(0, 0, 0, .55) 100%); }
}
.post-list a { grid-template-columns: 160px minmax(0, 1fr) 260px; align-items: center; }
@media (max-width: 760px) { .post-list a { grid-template-columns: minmax(0, 1fr); } .post-list .photo { order: -1; } }

/* =========================================================
   Motion. Everything here is decoration: the page is fully
   readable without it, and it all switches off for people
   who ask their system for reduced motion.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --glow: 0 0 0 4px var(--accent-soft), 0 10px 30px -8px rgba(0, 245, 176, .45);
}
::selection { background: rgba(0, 245, 176, .28); color: #fff; }

/* Page-to-page fade (browsers with cross-document view transitions) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Header firms up once the page scrolls */
.site-header { transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: 0 8px 32px -12px rgba(0, 0, 0, .9); border-bottom-color: var(--line-strong); }
.brand-mark { transition: filter .3s ease, transform .4s var(--ease-out); }
.brand:hover .brand-mark { filter: drop-shadow(0 0 8px rgba(0, 245, 176, .6)); transform: rotate(-4deg) scale(1.06); }

/* Nav: a mint line grows under the hovered and current link */
.nav a:not(.nav-cta) { position: relative; transition: color .2s ease, background-color .2s ease; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav a:not(.nav-cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.nav-cta):hover { background: transparent; }
@media (max-width: 860px) { .nav a:not(.nav-cta)::after { display: none; } }

/* Hero: content arrives in sequence, the circuit grid drifts, a glow breathes */
.hero-copy > *, .page-hero .wrap > * { animation: rise .8s var(--ease-out) both; }
.hero-copy > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4), .page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(n+5), .page-hero .wrap > :nth-child(n+5) { animation-delay: .32s; }

/* Rotating Earth beside the home headline (drawn by /js/globe.js) */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.globe { display: block; width: 100%; max-width: 540px; aspect-ratio: 1; justify-self: end; margin: -40px -24px -40px 0; cursor: grab; animation: globe-in 1.4s var(--ease-out) .2s both; }
.globe:active { cursor: grabbing; }
@keyframes globe-in { from { opacity: 0; transform: scale(.92); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .globe { order: -1; justify-self: center; max-width: 320px; margin: -32px auto -8px; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }

.hero::before { animation: grid-drift 40s linear infinite; }
@keyframes grid-drift { to { background-position: 56px 56px, 56px 56px; } }
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -220px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 245, 176, .16), transparent);
  animation: breathe 9s ease-in-out infinite alternate;
}
.hero .wrap { z-index: 1; }
@keyframes breathe { from { opacity: .55; transform: scale(.9); } to { opacity: 1; transform: scale(1.08) translate(-40px, 30px); } }
.hero h1 {
  background: linear-gradient(100deg, var(--fg) 40%, #b9fff0 60%, var(--fg) 80%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .8s var(--ease-out) .08s both, sheen 7s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0%, 60% { background-position: 100% 0; } 100% { background-position: -50% 0; } }

/* Status dot pulses like a live signal */
.status-note::before { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 245, 176, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(0, 245, 176, 0); } }

/* Buttons: lift, glow, a light sweep, and a press */
.btn { position: relative; overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn-primary:hover { filter: none; box-shadow: var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease-out); }
.nav a.nav-cta { transition: box-shadow .25s ease, transform .25s var(--ease-out); }
.nav a.nav-cta:hover { filter: none; box-shadow: var(--glow); transform: translateY(-1px); }

/* Links with arrows nudge forward */
.link-arrow::after { display: inline-block; transition: transform .3s var(--ease-out); }
.link-arrow:hover::after, a.card:hover .link-arrow::after { transform: translateX(4px); }

/* Cards and layers: a soft spotlight follows the pointer */
.card, .layer { position: relative; isolation: isolate; transition: border-color .25s ease, transform .35s var(--ease-out), box-shadow .35s ease; }
.card::before, .layer::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 245, 176, .09), transparent 65%);
  transition: opacity .3s ease;
}
.card:hover::before, .layer:hover::before { opacity: 1; }
.card:hover, .layer:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0, 245, 176, .35); }
.chip { transition: border-color .2s ease, background-color .2s ease, transform .25s var(--ease-out); }
a.chip:hover { background: var(--accent-soft); transform: translateY(-1px); }
.post-list a h2 { transition: color .2s ease, transform .35s var(--ease-out); }
.post-list a:hover h2 { transform: translateX(6px); }
.principle-num { transition: text-shadow .4s ease; }
.principle:hover .principle-num { text-shadow: 0 0 24px rgba(0, 245, 176, .55); }

/* Photos ease in closer on hover */
.photo img { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .photo:hover img, a:hover .photo img, .detail:hover .photo img { transform: scale(1.035); } }

/* Scroll reveal: main.js adds .reveal only to blocks still below the fold */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Reading progress line at the top of the screen */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px rgba(0, 245, 176, .7); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, a.card:hover, a.chip:hover, .post-list a:hover h2, .brand:hover .brand-mark { transform: none; }
  .photo img { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .progress { display: none; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* =========================================================
   Customer card sign-in (/c/)
   ========================================================= */
[hidden] { display: none !important; }
.auth-hero { padding-bottom: 32px; }
.auth-section { padding-top: 48px; border-top: 0; }
.auth-section .wrap { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 860px) { .auth-section .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.auth-panel { display: grid; gap: 20px; min-width: 0; }
.auth-view { display: grid; gap: 20px; }
.auth-form { display: grid; gap: 18px; }
.auth-form .btn { justify-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input {
  width: 100%; min-width: 0; font: inherit; color: var(--fg); background: var(--bg-raised);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: #ff6b81; }
.mono-input { font-family: var(--mono) !important; letter-spacing: 0.06em; text-transform: uppercase; }
.mono-input::placeholder { text-transform: none; letter-spacing: 0.02em; }
.hint { margin: 0; font-size: 0.85rem; color: var(--fg-faint); }
.form-msg { margin: 0; font-size: 0.95rem; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #ff8a9b; }
.form-msg.is-ok { color: var(--accent); }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
button.btn[disabled] { opacity: .6; cursor: progress; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-raised); }
.seg button {
  flex: 1 1 180px; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--fg-muted); cursor: pointer;
  background: transparent; border: 0; border-radius: 8px; padding: 10px 12px; transition: background-color .2s ease, color .2s ease;
}
.seg button:hover { color: var(--fg); }
.seg button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }

.account-card h2 { font-size: 1.5rem; }
.account-card .mono { font-family: var(--mono); color: var(--accent); letter-spacing: 0.06em; }
.auth-more { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; background: var(--bg-raised); }
.auth-more summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.auth-more[open] { padding-bottom: 20px; }
.auth-more p { margin-top: 0; }
.linklike { font: inherit; color: var(--fg-muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--accent); }
.auth-foot { margin: 0; font-size: 0.9rem; }
.auth-note { border-left: 1px solid var(--line); padding-left: 32px; }
.auth-note .checks { margin-bottom: 20px; }
@media (max-width: 860px) { .auth-note { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; } }
