/* =========================================================================
   Madhaus, global styles
   ========================================================================= */

@font-face {
  font-family: 'BN Dime Display';
  src: url('assets/BNDimeDisplay.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #08080a;
  --ink-2: #101015;
  --ink-3: #1a1a20;
  --bone: #f3efe6;
  --bone-dim: #c9c5bb;
  --muted: #76746e;
  --line: rgba(243, 239, 230, 0.12);
  --line-strong: rgba(243, 239, 230, 0.22);
  --accent: oklch(0.7 0.2 255);   /* electric blue */
  --accent-deep: oklch(0.55 0.2 255);
  --warn: oklch(0.72 0.2 35);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

/* Offset anchor targets so they clear the fixed nav */
#about, #bracco, #contact {
  scroll-margin-top: 80px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

.mono { font-family: 'Manrope', system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }

/* Ambient layers ----------------------------------------------------------- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDEgIDAgMCAwIDAgMSAgMCAwIDAgMCAxICAwIDAgMCAwLjYgMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlMjUnIGhlaWdodD0nMTAwJTI1JyBmaWx0ZXI9J3VybCglMjNuKScvPjwvc3ZnPg==");
}

.blob {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 80vmin;
  height: 80vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    oklch(0.55 0.22 255 / 0.45) 0%,
    oklch(0.45 0.18 255 / 0.18) 30%,
    transparent 65%);
  filter: blur(60px);
  transform: translate(-50%, -50%);
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.blob.b2 {
  width: 50vmin;
  height: 50vmin;
  background: radial-gradient(circle at 50% 50%,
    oklch(0.7 0.2 230 / 0.32) 0%,
    transparent 60%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* Layout ------------------------------------------------------------------- */

.wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Nav ---------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0;
  transition: backdrop-filter 0.3s, background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav.scrolled {
  background: rgba(8, 8, 10, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mark img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-link {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover { color: var(--bone); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--bone);
  transition: all 0.3s var(--ease-out);
}

.nav-li:hover {
  border-color: var(--bone);
  background: var(--bone);
  color: var(--ink);
}

.nav-li .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(20px, 4vw, 56px) 80px;
  overflow: hidden;
}

.hero-eyebrow { display: none; }

.hero-eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.hero-eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-wordmark {
  width: min(100%, 1280px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-wordmark svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-tagline {
  margin-top: clamp(40px, 6vw, 80px);
  max-width: 920px;
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}

.hero-tagline em {
  font-style: normal;
  color: inherit;
  font-family: 'Geist', sans-serif;
  position: relative;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.hero-foot {
  margin-top: clamp(64px, 10vw, 120px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-foot-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 36px;
}

.hero-foot-meta b {
  color: var(--bone);
  font-weight: 500;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.hero-scroll .line {
  width: 40px;
  height: 1px;
  background: var(--bone-dim);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollLine 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* Section common ---------------------------------------------------------- */

section {
  position: relative;
}

.section-label { display: none; }

.section-title {
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 16px 0 0;
  text-wrap: balance;
}

/* Mission / Vision -------------------------------------------------------- */

.mission {
  padding: clamp(100px, 14vw, 200px) 0;
  border-top: none;
}

.mission::before,
.bracco::before,
.cta::before,
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), 1440px);
  height: 1px;
  background: var(--line);
  z-index: 1;
  pointer-events: none;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 96px);
}

@media (min-width: 900px) {
  .mission-grid { grid-template-columns: 0.95fr 1.05fr; gap: clamp(48px, 7vw, 120px); }
}

.mission-body-col {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 28px);
}

.mission-kicker {
  margin-top: clamp(72px, 10vw, 140px);
  padding-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.mission-kicker p {
  font-size: clamp(48px, 9vw, 152px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--accent);
  margin: 0;
  text-wrap: balance;
}

.mission-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.mission-block .num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.mission-blurb {
  font-size: clamp(20px, 1.85vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: var(--bone);
  margin: 0;
  text-wrap: pretty;
  max-width: 36ch;
}

.mission-mark {
  /* legacy under-title mark, hidden now that the motif is used elsewhere */
  display: none;
}

.mission-title-col {
  position: relative;
}

.inline-wordmark {
  display: inline-block;
  height: 0.78em;
  width: auto;
  vertical-align: baseline;
  transform: translateY(0.03em);
}

.mission-bg-mark {
  position: absolute;
  width: clamp(260px, 30vw, 520px);
  aspect-ratio: 1;
  left: -8%;
  top: -6%;
  color: var(--bone);
  opacity: 0.07;
  pointer-events: none;
  z-index: -1;
}

.mission-bg-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mission-blurb--accent {
  color: var(--accent);
  font-weight: 500;
}

.mission-block h3 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.mission-block h3 strong {
  font-weight: 500;
  color: var(--bone);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent) 100%);
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: 0 92%;
  padding: 0 2px;
  color: var(--ink);
}

.mission-divider {
  height: 1px;
  background: var(--line);
}

/* Bracco section ---------------------------------------------------------- */

.bracco {
  position: relative;
  padding: clamp(120px, 16vw, 200px) 0;
  border-top: none;
}

.bracco-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 96px);
}

.bracco-head .right {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

.bracco-card {
  position: relative;
  border: 1px solid oklch(0.55 0.18 45 / 0.35);
  border-radius: clamp(16px, 2vw, 28px);
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 110% -10%, oklch(0.6 0.22 45 / 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 90% 80% at -10% 110%, oklch(0.55 0.18 145 / 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 50%, oklch(0.18 0.04 40) 0%, transparent 60%),
    linear-gradient(180deg, oklch(0.14 0.02 40) 0%, oklch(0.1 0.02 40) 100%);
}

.bracco-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 80px,
    rgba(243, 239, 230, 0.018) 80px,
    rgba(243, 239, 230, 0.018) 81px
  );
  pointer-events: none;
}

.bracco-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .bracco-grid { grid-template-columns: 1.1fr 1fr; }
}

@media (min-width: 900px) {
  .bracco-grid { grid-template-columns: 1fr 1.05fr; }
}

.bracco-copy h2 {
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 14px 0 24px;
}

.bracco-logo-img {
  display: block;
  width: 100%;
  max-width: 38ch;
  height: auto;
  margin: 0 0 28px;
}

.bracco-copy p {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--bone-dim);
  width: 100%;
  max-width: 38ch;
  margin: 0 0 36px;
}

.bracco-byline {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bracco-byline::before {
  content: "";
  width: 28px;
  height: 1px;
  background: oklch(0.72 0.18 45);
}

.bracco-copy h2 .stripe {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 0 0.12em;
  margin-left: -0.04em;
  transform: skew(-6deg);
}

.bracco-copy p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 44ch;
  margin: 0 0 32px;
}

.bracco-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 32px 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bracco-stat {
  padding: 16px 0;
}

.bracco-stat + .bracco-stat { border-left: 1px solid var(--line); padding-left: 16px; }

.bracco-stat .k {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.bracco-stat .v {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.bracco-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: rgba(243, 239, 230, 0.02);
  color: var(--bone);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.btn:hover .arrow { transform: translate(4px, -4px); }

.btn.primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--bone);
  border-color: var(--bone);
}

.bracco-phones {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  animation: phonesFloat 6s var(--ease-in-out) infinite;
  will-change: transform;
}

.bracco-phones img {
  width: 100%;
  height: auto;
  max-width: 720px;
  display: block;
  filter: drop-shadow(0 50px 90px rgba(0, 0, 0, 0.7))
          drop-shadow(0 0 80px oklch(0.55 0.22 45 / 0.2));
}

@keyframes phonesFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.bracco-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  gap: 18px;
}

.bv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.bv-top .ind {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bv-top .ind .d {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.bv-card {
  flex: 1;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(243,239,230,0.04) 0%, rgba(243,239,230,0.01) 100%);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bv-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, oklch(0.55 0.24 255 / 0.22), transparent 50%);
  pointer-events: none;
}

.bv-match {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bv-team {
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1;
}

.bv-team .num {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--bone-dim);
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.bv-vs {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  align-self: center;
}

.bv-line {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.bv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--bone-dim);
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}

.bv-row b {
  color: var(--bone);
  font-weight: 500;
}

.bv-row .odds {
  color: var(--accent);
  background: oklch(0.7 0.2 255 / 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid oklch(0.7 0.2 255 / 0.28);
}

.bv-ticker {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.bv-ticker span {
  display: block;
  flex: 1;
  height: 28px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, oklch(0.7 0.2 255 / 0) 0%, oklch(0.7 0.2 255 / 0.22) 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.bv-ticker span::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0; right: 0;
  background: var(--accent);
  border-radius: 2px;
  height: var(--h, 50%);
}

.bv-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Values ------------------------------------------------------------------ */

.values {
  padding: clamp(120px, 16vw, 200px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.values-head {
  margin-bottom: clamp(56px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .values-head { grid-template-columns: 1fr 0.7fr; align-items: end; }
}

.values-head .right {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--bone-dim);
  line-height: 1.55;
  max-width: 44ch;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.value {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  transition: padding 0.5s var(--ease-out);
}

@media (min-width: 900px) {
  .value { grid-template-columns: 120px 1.2fr 1fr; gap: 56px; }
}

.value::before {
  content: "";
  position: absolute;
  left: -100vw;
  right: -100vw;
  top: 0;
  bottom: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-out);
  z-index: -1;
}

.value:hover::before { transform: translateY(0); }

.value:hover { color: var(--ink); }

.value:hover .v-num,
.value:hover .v-desc { color: var(--ink); }

.value .v-num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  padding-top: 12px;
  transition: color 0.4s var(--ease-out);
}

.value .v-title {
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}

.value .v-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--bone-dim);
  line-height: 1.5;
  padding-top: 18px;
  transition: color 0.4s var(--ease-out);
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .value .v-desc { grid-column: 2; padding-top: 12px; }
}

/* Marquee ----------------------------------------------------------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 36px) 0;
  white-space: nowrap;
  display: flex;
  gap: 40px;
}

.marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
  padding-right: 40px;
}

.marquee-track span {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 40px;
}

.marquee-track span::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* CTA --------------------------------------------------------------------- */

.cta {
  padding: clamp(120px, 16vw, 200px) 0;
  text-align: center;
  border-top: none;
  position: relative;
}

.cta h2 {
  font-size: clamp(48px, 9vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}

.cta h2 .em {
  color: var(--accent);
}

.cta p {
  margin: 32px auto 48px;
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--bone-dim);
}

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

.footer {
  padding: 80px 0 40px;
  border-top: none;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-bottom: 56px;
  align-items: end;
}

@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.4fr 1fr; }
}

.footer-mark img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }

.footer-col a {
  font-size: 15px;
  color: var(--bone-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--bone); }

.footer-col a .a {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scroll reveal ----------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.48s; }

/* Wordmark mask-reveal animation ----------------------------------------- */

.mask-reveal {
  clip-path: inset(0 100% 0 0);
  animation: maskReveal 1.6s var(--ease-out) 0.2s forwards;
}

@keyframes maskReveal {
  to { clip-path: inset(0 0 0 0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease-out) forwards;
}
.fade-up.d1 { animation-delay: 1.2s; }
.fade-up.d2 { animation-delay: 1.4s; }
.fade-up.d3 { animation-delay: 1.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive cleanup ----------------------------------------------------- */

@media (max-width: 700px) {
  .nav-links .desktop-only { display: none; }
  .hero-foot-meta { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
  .hero { padding-top: 110px; }
  .bracco-stat + .bracco-stat { border-left: none; padding-left: 0; }
  .bracco-stats { grid-template-columns: 1fr; }
  .bracco-stat { border-top: 1px solid var(--line); padding: 14px 0; }
  .bracco-stat:first-child { border-top: none; }
}


/* =========================================================================
   Light mode — system preference is the default seed, user can override
   via the theme toggle. data-theme attribute on <html> drives the switch.
   ========================================================================= */

:root[data-theme="light"] {
  --ink: #f4eee0;
  --ink-2: #ebe4d4;
  --ink-3: #ddd5c2;
  --bone: #0f0f12;
  --bone-dim: #4d4a44;
  --muted: #87847d;
  --line: rgba(15, 15, 18, 0.14);
  --line-strong: rgba(15, 15, 18, 0.24);
  --accent: oklch(0.5 0.22 255);
  --accent-deep: oklch(0.4 0.2 255);
}

[data-theme="light"] .blob {
  background: radial-gradient(circle at 50% 50%,
    oklch(0.55 0.24 255 / 0.22) 0%,
    oklch(0.6 0.18 255 / 0.1) 30%,
    transparent 65%);
}

[data-theme="light"] .blob.b2 {
  background: radial-gradient(circle at 50% 50%,
    oklch(0.55 0.22 230 / 0.16) 0%,
    transparent 60%);
}

[data-theme="light"] .grain {
  opacity: 0.04;
  mix-blend-mode: multiply;
}

[data-theme="light"] .scanlines { display: none; }

[data-theme="light"] .btn:not(.primary) {
  background: rgba(15, 15, 18, 0.025);
}

[data-theme="light"] .bracco-card {
  border-color: oklch(0.65 0.18 45 / 0.45);
  background:
    radial-gradient(ellipse 90% 70% at 110% -10%, oklch(0.7 0.22 45 / 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 90% 80% at -10% 110%, oklch(0.65 0.18 145 / 0.16) 0%, transparent 55%),
    linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
}

[data-theme="light"] .bracco-card::before {
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 80px,
    rgba(15, 15, 18, 0.025) 80px,
    rgba(15, 15, 18, 0.025) 81px
  );
}

[data-theme="light"] .bracco-phones img {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25))
          drop-shadow(0 0 60px oklch(0.55 0.22 45 / 0.15));
}

[data-theme="light"] .mission-bg-mark { opacity: 0.09; }

[data-theme="light"] .nav.scrolled {
  background: rgba(244, 238, 224, 0.7);
}

/* =========================================================================
   Theme toggle button
   ========================================================================= */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border-radius: 50%;
  border: none;
  color: var(--bone-dim);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.4s var(--ease-out);
}

.theme-toggle:hover {
  color: var(--bone);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  display: block;
}
