/* ==========================================================================
   Eezolab — styles
   Dark, editorial, system fonts. One accent, used sparingly.
   ========================================================================== */

:root {
  --bg: #0c0c0b;
  --bg-2: #131312;
  --fg: #edebe6;
  --fg-2: #a6a49d;
  --fg-3: #85837c;
  --line: rgba(237, 235, 230, 0.1);
  --line-2: rgba(237, 235, 230, 0.22);
  --accent: #ff5a36;

  --sans: "Segoe UI Variable Display", "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 64px;
  --max: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.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-link {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
}
.brand-mark { width: 34px; height: 20px; flex: none; }
.brand-word {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-lab { color: var(--fg-2); font-weight: 500; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  /* without JS: always solid, so content never shows through */
  background: rgba(12, 12, 11, 0.92);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(12, 12, 11, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
/* with JS: transparent over the hero top, solid once the page scrolls */
.js .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
  padding: 0;
  font-size: 0.9375rem;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-list a:hover { color: var(--fg); }
.nav-list .nav-contact { color: var(--fg); }
.nav-contact::before {
  content: "";
  width: 6px; height: 6px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 759px) {
  .nav-optional { display: none; }
}
@media (min-width: 760px) {
  :root { --header-h: 72px; }
}

/* current section in the nav (set by script.js) */
.nav-list a[aria-current="true"] { color: var(--fg); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 54px;
  padding: 0 1.5rem;
  border-radius: 2px;
  background: var(--fg);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.btn:hover { background: #fff; }
.btn-arrow {
  width: 16px; height: 16px;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 54px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}
.text-link span,
.email {
  background-image: linear-gradient(var(--fg), var(--fg)), linear-gradient(var(--line-2), var(--line-2));
  background-size: 0 1px, 100% 1px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.5s var(--ease);
}
.text-link:hover span,
.text-link:focus-visible span,
.email:hover,
.email:focus-visible { background-size: 100% 1px, 100% 1px; }
.down-arrow {
  width: 14px; height: 14px;
  color: var(--fg-2);
  transition: transform 0.4s var(--ease), color 0.2s ease;
}
.text-link:hover .down-arrow { transform: translateY(3px); color: var(--fg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(120px, 20vh, 168px);
  padding-bottom: clamp(56px, 9vh, 112px);
}
.hero-grid { display: grid; gap: clamp(28px, 6vw, 48px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(2.75rem, 1.35rem + 5.8vw, 6.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-lead {
  max-width: 34ch;
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--fg-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
}

.hero-visual {
  position: relative;
  height: clamp(240px, 68vw, 360px);
  margin-inline: calc(var(--gutter) * -1);
  will-change: transform;
}
.hero-visual::before {
  /* the seam: always present, even without JavaScript */
  content: "";
  position: absolute;
  left: 50%;
  top: 4%;
  bottom: 4%;
  width: 1px;
  background: linear-gradient(transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
}
.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
}
.field-label {
  position: absolute;
  bottom: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field-label--left { right: calc(50% + 14px); }
.field-label--right { left: calc(50% + 14px); }

@media (min-width: 960px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .hero > .wrap { width: 100%; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
  }
  .hero-visual {
    height: clamp(420px, 66vh, 640px);
    margin-inline: 0 calc(var(--gutter) * -1);
  }
  .field-label { bottom: 3%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1.1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-visual { animation: fade 1.8s 0.2s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(80px, 13vw, 168px);
  border-top: 1px solid var(--line);
}
.section-grid {
  display: grid;
  gap: 24px;
}
.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.section-label .idx { color: var(--accent); }

@media (min-width: 960px) {
  .section-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: clamp(32px, 4vw, 64px);
    row-gap: 0;
  }
  .section-label { padding-top: 1.1em; }
  .section-head,
  .coda { grid-column: 2; }
  .areas,
  .ifaces,
  .steps { grid-column: 1 / -1; }
}

.h2 {
  max-width: 17ch;
  font-size: clamp(2.125rem, 1.25rem + 3.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lead {
  max-width: 40ch;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--fg-2);
}

/* ---------- 01 Territory ---------- */

.areas {
  list-style: none;
  padding: 0;
  margin-top: clamp(48px, 8vw, 104px);
  border-top: 1px solid var(--line);
}
.area {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.area-glyph { width: 48px; height: 48px; color: var(--fg); }
.area h3 {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.area p {
  max-width: 32ch;
  margin-top: 0.5rem;
  color: var(--fg-2);
}

@media (min-width: 760px) {
  .areas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .area {
    display: block;
    padding: 36px 32px 8px 0;
    border-bottom: 0;
  }
  .area + .area {
    padding-left: 32px;
    border-left: 1px solid var(--line);
  }
  .area-glyph { width: 56px; height: 56px; margin-bottom: 40px; }
  .area h3 { font-size: 1.5rem; }
}

/* ---------- 02 Interfaces ---------- */

.ifaces {
  list-style: none;
  padding: 0;
  margin-top: clamp(40px, 7vw, 88px);
  border-top: 1px solid var(--line);
}
.iface {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 2px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 3rem);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.iface-between {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg-3);
}
.iface-b { text-align: right; }

.iface-link {
  position: relative;
  display: block;
  height: 22px;
}
.iface-link i {
  position: absolute;
  top: 50%;
  width: calc(50% - 10px);
  height: 1px;
  background: var(--line-2);
  transform-origin: left center;
  transition: transform 1s var(--ease), background-color 0.4s ease;
}
.iface-link i:first-child { left: 0; }
.iface-link i:last-child { right: 0; transform-origin: right center; }
.iface-link::before,
.iface-link::after {
  /* endpoints: square on the left, round on the right (structure → reality) */
  content: "";
  position: absolute;
  top: 50%;
  width: 5px; height: 5px;
  margin-top: -2.5px;
  background: var(--fg-2);
}
.iface-link::before { left: 0; }
.iface-link::after { right: 0; border-radius: 50%; }
.iface-link b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 90, 54, 0.25);
  transition: opacity 0.4s ease 0.75s, transform 0.5s var(--ease) 0.75s, box-shadow 0.4s ease;
}
.iface:hover .iface-link b { box-shadow: 0 0 0 7px rgba(255, 90, 54, 0.14); }
.iface:hover .iface-link i { background: var(--fg-2); }

@media (min-width: 900px) {
  .iface {
    grid-template-columns: 6.5rem minmax(0, 1fr) clamp(96px, 13vw, 200px) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(16px, 2vw, 32px);
    padding: 30px 0;
    font-size: clamp(2rem, 1rem + 2vw, 2.875rem);
  }
  .iface-between { margin: 0; }
  .iface-a { text-align: right; }
  .iface-b { text-align: left; }
}

.coda {
  max-width: 34ch;
  margin-top: clamp(36px, 5vw, 56px);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--fg-2);
}
/* ---------- 03 Method ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(40px, 7vw, 88px);
  display: grid;
  gap: 36px;
}
.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
}
.step::before {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 6px; height: 6px;
  background: var(--fg);
}
.step:last-child::before { border-radius: 50%; background: var(--accent); }
.step h3 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.step p {
  max-width: 32ch;
  margin-top: 0.625rem;
  color: var(--fg-2);
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .step { padding-right: 32px; }
}

/* ---------- 04 Founder ---------- */

.founder {
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  margin-top: 8px;
}
@media (min-width: 960px) {
  .founder {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: clamp(32px, 4vw, 64px);
    margin-top: 32px;
  }
}

.portrait {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
@media (min-width: 960px) {
  .portrait { width: 100%; max-width: 360px; align-self: start; }
}
/* crop marks */
.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  z-index: 2;
}
.portrait::before {
  top: -8px; left: -8px;
  border-top: 1px solid var(--fg-2);
  border-left: 1px solid var(--fg-2);
}
.portrait::after {
  right: -8px; bottom: -8px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.06) brightness(0.96);
  color: transparent; /* hides alt text box if the file is missing and JS is off */
}
.portrait.is-missing img { display: none; }
.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fg);
  background:
    radial-gradient(rgba(237, 235, 230, 0.07) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--bg-2);
}
.portrait-fallback svg { width: 46%; height: auto; }
.portrait-initials {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

.founder-name { max-width: none; }
.founder-role {
  margin-top: 0.875rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.founder-lead {
  max-width: 36ch;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.founder-body {
  max-width: 46ch;
  margin-top: 1.25rem;
  color: var(--fg-2);
}
.facts {
  max-width: 560px;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  padding-top: 0.2em;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.facts dd { overflow-wrap: anywhere; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- 05 Contact ---------- */

.section--contact { padding-bottom: clamp(96px, 14vw, 184px); }
.contact-title {
  max-width: 14ch;
  font-size: clamp(2.375rem, 1.2rem + 4.6vw, 5.25rem);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.email-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}
.email {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.copy-btn {
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--fg-2);
  font: 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}
.copy-btn:hover { color: var(--fg); }
.copy-btn[hidden] { display: none; }
.copy-status {
  font: 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px max(28px, env(safe-area-inset-bottom));
  font-size: 0.9375rem;
  color: var(--fg-2);
}
.footer-inner { display: grid; gap: 20px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.brand--small .brand-word { font-size: 1.125rem; }
.brand--small .brand-mark { width: 27px; height: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-nav a { color: var(--fg-2); text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--fg); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--fg-3);
}
.footer-legal p { margin: 0; }
@media (max-width: 559px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Product and legal pages ---------- */

.page-head {
  padding-top: clamp(120px, 20vh, 168px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.page-title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.page-title .title-sub {
  display: block;
  max-width: 28ch;
  margin-top: 0.875rem;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--fg-2);
}
.area h3 a { text-decoration: none; }
.area h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.area .area-meta {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.fns {
  list-style: none;
  padding: 0;
  margin-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.fns li {
  display: grid;
  gap: 0.375rem 2rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .fns li { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: baseline; }
}
.fns code, .prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.fns span { color: var(--fg-2); }
.prose { max-width: 68ch; min-width: 0; }
.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.prose p, .prose ul, .prose ol { margin-top: 1rem; line-height: 1.65; color: var(--fg-2); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.0625rem; font-weight: 500; }
.prose .meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.prose li + li { margin-top: 0.375rem; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose .table-scroll { margin-top: 1.25rem; overflow-x: auto; }
.prose table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
.prose th, .prose td { padding: 0.625rem 0.75rem 0.625rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-family: var(--mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); border-bottom-color: var(--line-2); }
.prose tbody th { color: var(--fg); font-weight: 500; }
.prose td { color: var(--fg-2); }
@media (min-width: 960px) {
  .section-grid > .prose,
  .section-grid > .fns { grid-column: 2; }
}

/* ---------- Scroll reveal (only active when JS has run) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .iface:not(.is-in) .iface-link i { transform: scaleX(0); }
.js .iface:not(.is-in) .iface-link b { opacity: 0; transform: scale(0.3); }
.js .iface.is-in .iface-link i { transition-delay: 0.15s; }

.js .areas .area:nth-child(2),
.js .steps .step:nth-child(2) { transition-delay: 0.1s; }
.js .areas .area:nth-child(3),
.js .steps .step:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .iface .iface-link i { transform: none; }
  .js .iface .iface-link b { opacity: 1; transform: none; }
  .hero-visual { will-change: auto; }
}

@media print {
  .hero-visual, .site-header nav, .copy-btn { display: none; }
  .site-header { position: static; background: none; border: 0; }
  body { background: #fff; color: #000; }
}
