/* ═══════════════════════════════════════════════════════════════
   CIBELE, Inc. — brand system
   Deep space → ivory, Didone display, geometric tracked caps,
   the planet limb and the horizon flare drawn in CSS.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Colour palette — deep space, indigo, violet, mist, ivory */
  --space:      #08080f;
  --space-2:    #0d0d18;
  --space-3:    #12121f;
  --indigo:     #33325e;
  --violet:     #6f63a8;
  --violet-lift:#9d92d6;
  --mist:       #c9c5db;
  --ivory:      #f4f3ef;

  --text:       #e9e7f0;
  --text-dim:   rgba(233, 231, 240, .64);
  --text-mute:  rgba(233, 231, 240, .40);
  --line:       rgba(201, 197, 219, .14);
  --line-soft:  rgba(201, 197, 219, .08);

  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans:    "Jost", "Helvetica Neue", Arial, sans-serif;

  --shell: min(1180px, 92vw);
  --ease:  cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--violet); color: var(--ivory); }

:focus-visible {
  outline: 1px solid var(--violet-lift);
  outline-offset: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  padding: .8rem 1.2rem; background: var(--ivory); color: var(--space);
}
.skip:focus { left: 1rem; top: 1rem; }

/* A trace of film grain, so the flat blacks are not quite flat. */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .3; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

main, .nav, .foot { position: relative; z-index: 2; }

/* ─────────── Shared brand elements ─────────── */

/* Tracked geometric caps — the board's only small type. */
.caps {
  font-family: var(--sans); font-weight: 300;
  font-size: .68rem; line-height: 1.9;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--text-mute);
}
.caps--wide { letter-spacing: .3em; color: var(--mist); }

/* Stacked caps, one idea per line. */
.stack {
  display: flex; flex-direction: column;
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(.66rem, 1vw, .78rem);
  line-height: 2.05; letter-spacing: .3em; text-transform: uppercase;
  color: var(--mist);
}
.stack--sub { color: var(--text-dim); }
.stack--motto {
  font-size: clamp(.78rem, 1.3vw, .95rem);
  letter-spacing: .34em; color: var(--mist);
}

/* The short hairline that sits under a block of type. */
.rule {
  display: block; width: 46px; height: 1px;
  background: var(--mist); opacity: .55;
  margin: 1.6rem 0;
}

/* ─────────── The planet limb ─────────── */

/* The limb is one sphere, drawn as gradients in a full-bleed box.
   Circle: centre 168vw / 34vw, radius 92vw — so its left edge crosses
   the frame at ~76vw and only the crescent is ever visible. */
.limb {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  left: 50%; width: 100vw; translate: -50% 0;
  overflow: hidden;
}

.limb-body,
.limb-rim,
.limb-atmos,
.limb-flare { position: absolute; inset: 0; }

.limb-body {
  background:
    radial-gradient(circle 92vw at 168vw 34vw,
      #0b0b18 0 92%, #101024 97.4%, #17172f 98.9%, #0e0e1f 99.45%, transparent 99.6%);
}

/* A hairline of atmosphere, brightest where the light grazes the edge. */
.limb-rim {
  background:
    radial-gradient(circle 92vw at 168vw 34vw,
      transparent 0 99.36%,
      rgba(224, 217, 255, .96) 99.52%,
      rgba(150, 136, 228, .5) 99.78%,
      transparent 100.1%);
  filter: blur(1.1px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 34%, rgba(0, 0, 0, .3) 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0 34%, rgba(0, 0, 0, .3) 74%, transparent 100%);
}

.limb-atmos {
  background:
    radial-gradient(circle 92vw at 168vw 34vw,
      transparent 0 99.1%,
      rgba(118, 105, 214, .5) 99.7%,
      rgba(80, 70, 165, .16) 100.6%,
      transparent 102%);
  filter: blur(13px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 30%, rgba(0, 0, 0, .28) 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0 30%, rgba(0, 0, 0, .28) 72%, transparent 100%);
}

/* The point where the sun clears the edge: on the circle at y = 10vw. */
.limb-flare {
  background:
    radial-gradient(circle 3vw at 79.2vw 10vw, rgba(255, 254, 250, 1) 0 8%, rgba(234, 228, 255, .5) 26%, transparent 62%),
    radial-gradient(circle 9vw at 79.2vw 10vw, rgba(168, 152, 240, .26) 0 24%, transparent 72%);
  filter: blur(4px);
}

@keyframes limb-drift {
  from { opacity: .92; }
  to   { opacity: 1;   }
}
.limb { animation: limb-drift 22s ease-in-out infinite alternate; }

/* ─────────── The horizon flare ─────────── */

.horizon {
  position: absolute; left: 50%; bottom: 0; z-index: 0;
  width: 210%; aspect-ratio: 2.6; translate: -50% 58%;
  pointer-events: none;
}

.horizon-arc {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 50% 118%, #101024 0%, var(--space) 70%);
  box-shadow:
    0 0 0 1px rgba(178, 168, 236, .55),
    0 -10px 46px -14px rgba(120, 105, 220, .45);
}

.horizon-flare {
  position: absolute; left: 50%; top: 0;
  width: 15%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 253, 247, 1) 0 4%, rgba(255, 237, 208, .7) 11%, transparent 30%),
    radial-gradient(circle, rgba(190, 172, 252, .26) 0 32%, transparent 70%);
  filter: blur(4px);
}

/* ─────────── Nav ─────────── */

.nav {
  position: sticky; top: 0;
  padding: 1.1rem 0;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(8, 8, 15, .82);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.mark { display: inline-flex; align-items: center; gap: .8rem; }

/* The product-tile lockup from the board: the limb inside a squircle. */
.mark-tile {
  position: relative; overflow: hidden; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  background: radial-gradient(circle at 30% 25%, #16162e, #08080f 80%);
  box-shadow: inset 0 0 0 1px rgba(201, 197, 219, .16);
}
.tile-limb {
  position: absolute; top: -18%; right: -52%;
  width: 132%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    transparent 0 46%,
    rgba(226, 220, 255, 1) 47.6%,
    rgba(139, 125, 219, .7) 50%,
    transparent 57%);
  -webkit-mask-image: linear-gradient(108deg, #000 0 20%, transparent 66%);
          mask-image: linear-gradient(108deg, #000 0 20%, transparent 66%);
}

.mark-word {
  font-family: var(--sans); font-weight: 300;
  font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ivory);
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: .68rem; font-weight: 300;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }

.nav-cta {
  padding: .6rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ivory) !important;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav-cta:hover { border-color: var(--violet-lift); background: rgba(111, 99, 168, .16); }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  width: var(--shell); margin-inline: auto;
  padding: clamp(4rem, 12vh, 9.5rem) 0 clamp(4rem, 10vh, 8rem);
}
.hero-inner { position: relative; z-index: 2; max-width: min(46rem, 62%); }

.wordmark {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.55rem, 11.5vw, 10rem);
  line-height: .98; letter-spacing: .01em;
  color: var(--ivory);
  margin: 0 0 clamp(2rem, 5vw, 3.4rem);
}
.wordmark-inc {
  font-size: .4em; letter-spacing: .02em;
  font-weight: 400;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(2.4rem, 6vw, 3.6rem);
}

/* ─────────── Buttons ─────────── */

.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  font-size: .68rem; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ivory); color: var(--space); }
.btn-primary:hover { background: #fff; }

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--mist); background: rgba(201, 197, 219, .07); }

.btn-app {
  border-color: rgba(157, 146, 214, .55);
  color: var(--violet-lift);
  background: rgba(111, 99, 168, .1);
}
.btn-app:hover { background: rgba(111, 99, 168, .2); border-color: var(--violet-lift); }

.btn-quiet {
  padding: .95rem 0; color: var(--text-mute);
  letter-spacing: .18em; text-transform: none;
  font-size: .8rem;
}
.btn-quiet:hover { color: var(--mist); transform: none; }

/* ─────────── Board panels ─────────── */

.board {
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: .8fr 1.4fr 1fr;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--space-2);
}

.panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  border-right: 1px solid var(--line-soft);
  min-height: 15rem;
}
.panel:last-child { border-right: 0; }

.panel--motto { display: flex; flex-direction: column; justify-content: center; }
.panel--motto .rule { margin-bottom: 0; }

.panel--line { display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; }
.panel-copy { color: var(--text-dim); font-size: .95rem; max-width: 34ch; }

.panel--horizon { min-height: 17rem; }
.panel--horizon > .caps,
.panel--horizon > .rule { position: relative; z-index: 2; }

/* ─────────── Marquee ─────────── */

.marquee {
  margin: clamp(4rem, 9vw, 7rem) 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.4rem;
  width: max-content;
  animation: slide 46s linear infinite;
  font-size: .8rem; font-weight: 300;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--text-mute);
}
.marquee-track .sep { color: var(--violet-lift); opacity: .8; }
@keyframes slide {
  from { transform: translate3d(0, 0, 0);     }
  to   { transform: translate3d(-50%, 0, 0);  }
}

/* ─────────── Section heads ─────────── */

.section-head {
  width: var(--shell); margin: 0 auto clamp(3rem, 7vw, 5rem);
  max-width: 46rem;
}
.kicker { color: var(--violet-lift); }

.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06; letter-spacing: .005em;
  color: var(--ivory);
  margin-top: 1.4rem;
}
.section-lede { color: var(--text-dim); max-width: 48ch; }

/* ─────────── Products ─────────── */

.apps { width: var(--shell); margin-inline: auto; }

.app {
  position: relative;
  display: grid; grid-template-columns: 5rem 15rem 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line-soft);
}
.app:first-of-type { border-top: 0; }

.app--pulmona { --accent: #ff4b39; }
.app--siren   { --accent: #f5c15a; }
.app--zodiac  { --accent: #c79a3f; }
.app--theend  { --accent: #e9e7f0; }

.app-num {
  font-family: var(--sans); font-weight: 200;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(157, 146, 214, .45);
  line-height: 1;
  padding-top: .4rem;
}

.app-visual { position: relative; }
.app-visual img {
  position: relative; z-index: 2;
  width: 100%; border-radius: 26px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.app-visual img.on-light { box-shadow: 0 30px 70px -34px rgba(201, 197, 219, .35); }

/* Only the icon carries the product's own colour. */
.app-glow {
  position: absolute; inset: -14%;
  border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 60%);
  opacity: .12; filter: blur(34px);
}

.app-cat { color: var(--violet-lift); }

.app-name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.04; letter-spacing: .01em;
  color: var(--ivory);
  margin: .9rem 0 1.2rem;
}

.app-tag {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.4; color: var(--mist);
  max-width: 30ch;
}

.app-copy {
  margin-top: 1.5rem; color: var(--text-dim);
  max-width: 56ch; font-size: .97rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.chips li {
  padding: .42rem .95rem; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .64rem; font-weight: 300;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
}

.app-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.6rem 2rem; margin-top: 2.2rem;
  padding-top: 1.8rem; border-top: 1px solid var(--line-soft);
}
.app-meta dt {
  font-family: var(--sans); font-weight: 300;
  font-size: .6rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--text-mute);
}
.app-meta dd { margin-top: .6rem; font-size: .9rem; line-height: 1.6; }

.app-links {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.8rem; margin-top: 2.4rem;
}

/* ─────────── Ivory band ─────────── */

.ivory {
  margin: clamp(5rem, 11vw, 9rem) 0;
  background: var(--ivory); color: var(--space);
}
.ivory-inner {
  width: var(--shell); margin-inline: auto;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.ivory-kicker { color: rgba(8, 8, 15, .5); }

.figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2.5rem; margin-top: clamp(2rem, 5vw, 3.4rem);
}
.figure { display: flex; flex-direction: column; gap: .9rem; }
.figure-n {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 5rem); line-height: .9;
}
.figure-l { color: rgba(8, 8, 15, .55); }

/* ─────────── Approach ─────────── */

.studio { width: var(--shell); margin-inline: auto; }

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--space-2);
}
.card {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-right: 1px solid var(--line-soft);
}
.card:last-child { border-right: 0; }
.card-n { color: var(--violet-lift); }
.card h3 {
  font-family: var(--display); font-weight: 400;
  font-size: 1.5rem; line-height: 1.2;
  color: var(--ivory); margin: 1.2rem 0 1rem;
}
.card p { color: var(--text-dim); font-size: .92rem; }
.card em { font-style: italic; color: var(--mist); }

/* ─────────── Company — the embossed panel ─────────── */

.company { margin: clamp(5rem, 11vw, 9rem) 0; }

.emboss {
  position: relative; overflow: hidden; isolation: isolate;
  width: var(--shell); margin-inline: auto;
  border: 1px solid var(--line-soft); border-radius: 4px;
  padding: clamp(2.6rem, 6vw, 5rem) clamp(1.8rem, 4vw, 4rem) clamp(7rem, 13vw, 10rem);
  background:
    radial-gradient(90% 60% at 50% 120%, rgba(51, 50, 94, .5), transparent 70%),
    var(--space-2);
}
.emboss-inner { position: relative; z-index: 2; }

.emboss-mark {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 1; letter-spacing: .015em;
  color: var(--ivory);
  margin-top: 1.6rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .18), 0 -1px 1px rgba(0, 0, 0, .6);
}

.emboss-lede { color: var(--text-dim); max-width: 46ch; }

.emboss-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 2rem; margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: 2.2rem; border-top: 1px solid var(--line-soft);
}
.emboss-facts dt {
  font-family: var(--sans); font-weight: 300;
  font-size: .6rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--text-mute);
}
.emboss-facts dd { margin-top: .7rem; font-size: .92rem; line-height: 1.6; }

.horizon--panel { width: 155%; aspect-ratio: 3.4; translate: -50% 94%; }

/* ─────────── Contact ─────────── */

.contact {
  width: var(--shell); margin-inline: auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
  text-align: center;
}
.contact-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1; letter-spacing: .01em;
  color: var(--ivory);
}
.contact-sub {
  margin: 1.8rem auto 0; max-width: 44ch;
  color: var(--text-dim); font-size: .97rem;
}
.contact-mail {
  display: inline-block; margin-top: 2.6rem;
  font-size: 1rem; letter-spacing: .12em;
  color: var(--ivory);
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--violet-lift);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contact-mail:hover { color: var(--violet-lift); border-color: var(--mist); }

.contact-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1px; margin-top: clamp(3rem, 7vw, 5rem);
  border: 1px solid var(--line-soft); border-radius: 4px;
  overflow: hidden; background: var(--line-soft);
  text-align: left;
}
.contact-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.2rem 1.4rem;
  background: var(--space-2);
}
.contact-list .caps { white-space: nowrap; }
.contact-list a { font-size: .82rem; color: var(--text-dim); }
.contact-list a:hover { color: var(--violet-lift); }

/* ─────────── Footer ─────────── */

.foot {
  border-top: 1px solid var(--line-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.foot-top {
  width: var(--shell); margin-inline: auto;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem;
}
.foot-brand .mark-tile,
.foot-brand .mark-word { display: inline-block; vertical-align: middle; }
.foot-brand .mark-tile { margin-right: .8rem; }
.foot-brand .rule { margin: 1.3rem 0 0; }
.foot-brand p {
  margin: 1rem 0 0;
  font-size: .8rem; color: var(--text-mute);
}

.foot-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 2rem;
}
.foot-cols h4 { margin-bottom: 1rem; color: var(--text-mute); }
.foot-cols a {
  display: block; font-size: .82rem;
  color: var(--text-dim); padding: .3rem 0;
  transition: color .3s var(--ease);
}
.foot-cols a:hover { color: var(--ivory); }

.foot-bottom {
  width: var(--shell); margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  justify-content: space-between;
  font-size: .74rem; color: var(--text-mute);
}

/* ─────────── Reveal ─────────── */

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }

/* ─────────── Responsive ─────────── */

@media (max-width: 1040px) {
  .board { grid-template-columns: 1fr 1fr; }
  .panel--motto { border-right: 1px solid var(--line-soft); }
  .panel--horizon { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line-soft); }
  .card:nth-child(2n) { border-right: 0; }
  .card:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 4rem 1fr; }
  .app-visual { grid-column: 2; max-width: 14rem; }
  .app-body { grid-column: 2; }
  .foot-top { grid-template-columns: 1fr; }
  .hero { padding-top: clamp(3rem, 8vh, 6rem); }
}

@media (max-width: 640px) {
  .board { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-top: 1px solid var(--line-soft); min-height: 0; }
  .panel:first-child { border-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; border-top: 1px solid var(--line-soft); }
  .card:first-child { border-top: 0; }
  .app { grid-template-columns: 1fr; }
  .app-num { position: absolute; top: 2rem; right: 0; }
  .app-visual, .app-body { grid-column: 1; }
  .nav-links { gap: 1.1rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .limb, .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
