/* ============================================
   BAZ26 — Final Website
   Editorial · Cinematic · Placeholder → Substance
   ============================================ */

:root {
  /* Palette */
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --paper: #F2EEE8;
  --paper-warm: #EDE7DD;
  --paper-cool: #F7F4EF;
  --teal: #1A6B6A;
  --teal-deep: #0E4847;
  --teal-soft: rgba(26, 107, 106, 0.08);
  --ember: oklch(0.72 0.12 55);
  --gray-100: #E8E3DB;
  --gray-200: #D6D0C5;
  --gray-300: #B5AFA4;
  --gray-400: #8A857C;
  --gray-500: #5C5852;
  --gray-600: #3A3733;
  --white: #ffffff;

  /* Type */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;
  --space-4xl: 14rem;

  /* Layout */
  --container-max: 1320px;
  --container-pad: 2rem;
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="warm"] {
  --paper: #EDE6DA;
}

[data-accent="ember"] {
  --teal: oklch(0.55 0.13 35);
  --teal-deep: oklch(0.38 0.12 30);
  --teal-soft: oklch(0.55 0.13 35 / 0.1);
}

[data-accent="cobalt"] {
  --teal: oklch(0.45 0.15 245);
  --teal-deep: oklch(0.32 0.13 245);
  --teal-soft: oklch(0.45 0.15 245 / 0.1);
}

[data-accent="moss"] {
  --teal: oklch(0.48 0.10 145);
  --teal-deep: oklch(0.34 0.09 145);
  --teal-soft: oklch(0.48 0.10 145 / 0.1);
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  cursor: none;
}

/* hide native cursor when custom cursor active */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button {
  font-family: inherit;
  cursor: none;
  border: none;
  background: none;
  color: inherit;
}
/* Form inputs keep native I-beam cursor for accessibility — the user must see
   where the caret lands when typing. The custom cursor still tracks the mouse
   over the page but yields here. */
input, textarea, [contenteditable] {
  font-family: inherit;
  font-size: inherit;
  cursor: text;
}
/* Custom cursor handles the visual affordance — keep the native cursor hidden
   on interactive elements too. The @media (hover: none) block below restores
   `cursor: auto` on touch devices, so this doesn't break tap UX. */
button, a, .menu-btn, .lang-toggle button, .nav__link {
  cursor: none;
}

/* ===== Custom Cursor ===== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background 0.25s, opacity 0.2s;
  mix-blend-mode: difference;
  border-color: rgba(255,255,255,0.8);
}

.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.05);
}

.cursor-ring.is-text {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: rgba(255,255,255,0.85);
  border: none;
}

.cursor-dot.is-hover {
  width: 0;
  height: 0;
}

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container--wide {
  max-width: 1480px;
}

/* ===== Type System ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.eyebrow--ink { color: var(--ink); }
.eyebrow--mute { color: var(--gray-400); }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-feature-settings: "liga", "ss01";
}

.display em {
  font-style: italic;
  color: var(--teal);
}

.h-section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding-bottom: 0.1em;
}

.h-section em {
  font-style: italic;
  color: var(--teal);
}

.h-3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.body-lg {
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  line-height: 1.5;
  color: var(--gray-600);
  letter-spacing: -0.005em;
}

.body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-500);
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-500);
}

.mono {
  font-family: var(--font-mono);
}

/* ===== Section base ===== */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--dark .h-section,
.section--dark .h-3 {
  color: var(--paper);
}

.section--dark .body,
.section--dark .body-lg,
.section--dark .body-sm {
  color: var(--gray-200);
}

.founders .body-lg,
.founders .body {
  color: var(--gray-200);
}

.approach .body-lg,
.approach .body {
  color: var(--gray-200);
}

.founders .founder-card__bio {
  color: var(--gray-200);
}

.approach .step__desc {
  color: var(--gray-200);
}

.section--dark .eyebrow--ink { color: var(--paper); }

.section-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  align-items: end;
}

@media (min-width: 900px) {
  .section-intro {
    grid-template-columns: 0.4fr 0.6fr;
    gap: var(--space-xl);
  }
}

.section-intro__label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.section-intro__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gray-400);
  letter-spacing: 0.15em;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.05em;
}

.reveal-mask__inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
}

.reveal-mask.is-visible .reveal-mask__inner {
  transform: translateY(0);
}

/* line-by-line reveal helper for h-section */
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  /* Allow italic glyphs (e.g. P) to overhang the left edge without being clipped */
  padding-left: 0.12em;
  margin-left: -0.12em;
}
.lines .line > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.05s var(--ease-out);
}
.lines.is-visible .line > span {
  transform: translateY(0);
}
.lines.is-visible .line:nth-child(2) > span { transition-delay: 0.08s; }
.lines.is-visible .line:nth-child(3) > span { transition-delay: 0.16s; }
.lines.is-visible .line:nth-child(4) > span { transition-delay: 0.24s; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: color-mix(in oklab, var(--ink) 8%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: var(--header-h);
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand__num {
  color: var(--teal);
  font-feature-settings: "tnum";
}

.brand__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--teal);
  margin-left: 2px;
  animation: caret 1.1s steps(2) infinite;
  vertical-align: -0.1em;
}

@keyframes caret { 50% { opacity: 0; } }

.nav__center {
  display: none;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 900px) {
  .nav__center { display: flex; }
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  position: relative;
  padding: 0.5rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.live-chip {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-500);
  padding: 0.4rem 0.7rem;
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: 100px;
  letter-spacing: 0.05em;
}

@media (min-width: 1100px) {
  .live-chip { display: inline-flex; }
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  opacity: 0.4;
  animation: ping 1.8s var(--ease-out) infinite;
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.lang-toggle {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  border-radius: 100px;
  overflow: hidden;
  background: transparent;
}

.lang-toggle button {
  padding: 0.4rem 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.lang-toggle button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: 100px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--paper);
  color: var(--ink);
  border-color: color-mix(in oklab, var(--ink) 18%, transparent);
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}

.btn--ghost:hover {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}

.btn .arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .arrow { transform: translateX(4px); }

.section--dark .btn--ghost {
  color: var(--paper);
  border-color: rgba(255,255,255,0.18);
}

.section--dark .btn--ghost:hover {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}

/* ===== Mobile menu ===== */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s, opacity 0.2s;
}

@media (max-width: 899px) {
  .menu-btn { display: flex; }
}

.menu-btn.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--container-pad) var(--container-pad);
  gap: 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}

.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-xl);
  }
}

.hero__pre {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}

.hero__pre-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 10vw, 9.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: var(--space-lg);
  padding-bottom: 0.12em;
}

.hero__title em {
  font-style: italic;
  color: var(--teal);
}

.hero__title .baz-placeholder {
  display: inline-block;
  position: relative;
  background: linear-gradient(120deg,
    color-mix(in oklab, var(--teal) 15%, transparent),
    color-mix(in oklab, var(--teal) 6%, transparent));
  padding: 0 0.15em;
  border-radius: 6px;
  font-style: italic;
  color: var(--teal);
}

.hero__sub {
  max-width: 520px;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Hero side: animated terminal-style placeholder card */
.hero__side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__placeholder {
  width: 100%;
  max-width: 420px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.hero__placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
    rgba(26,107,106,0.18), transparent 50%);
  pointer-events: none;
  transition: opacity 0.4s;
}

.hero__placeholder-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.hero__placeholder-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}

.hero__placeholder-bar span:first-child { background: var(--teal); }

.hero__placeholder pre {
  font-family: inherit;
  white-space: pre-wrap;
  margin: 0;
  position: relative;
  z-index: 1;
}

.hero__placeholder .ph-key { color: rgba(255,255,255,0.5); }
.hero__placeholder .ph-val { color: var(--paper); }
.hero__placeholder .ph-teal { color: oklch(0.78 0.10 180); }
.hero__placeholder .ph-comment { color: rgba(255,255,255,0.35); }

.hero__placeholder .ph-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--paper);
  vertical-align: -0.15em;
  animation: caret 1.1s steps(2) infinite;
  margin-left: 2px;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--container-pad);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 50px;
  height: 1px;
  background: var(--gray-300);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform-origin: left;
  animation: slide-line 2.4s var(--ease-in-out) infinite;
}

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

/* Hero variant 2: scramble */
.hero[data-variant="scramble"] .hero__title em {
  color: var(--teal);
}

/* Hero variant 3: split */
.hero[data-variant="split"] .hero__placeholder { display: none; }
.hero[data-variant="split"] .hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 460px;
}

.hero__split-card {
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.hero__split-card--marco {
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid var(--gray-200);
}

.hero__split-card--daniele {
  background: var(--ink);
  color: var(--paper);
}

.hero__split-card h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  font-style: italic;
}

.hero__split-card .role {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 1rem;
}

.hero__split { display: none; }
.hero[data-variant="split"] .hero__split { display: grid; }

/* ===== Marquee ===== */
.marquee {
  border-block: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  padding: 1.4rem 0;
  overflow: hidden;
  background: var(--paper);
}

.marquee--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(255,255,255,0.08);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  animation: marquee 90s linear infinite;
  width: max-content;
}

.marquee__track > span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.marquee__track > span::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-left: 1.5rem;
}

.marquee em {
  font-style: italic;
  color: var(--teal);
}

.marquee--dark em { color: oklch(0.75 0.10 180); }

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

.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ===== About / Founders ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
  }
}

.about__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.about__lead em {
  font-style: italic;
  color: var(--teal);
}

.about__body p {
  margin-bottom: var(--space-md);
  color: var(--gray-600);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.about__body strong {
  color: var(--ink);
  font-weight: 600;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}

.value-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  padding: 1.5rem 0;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  align-items: baseline;
  cursor: none;
  position: relative;
  transition: padding 0.4s var(--ease-out);
}

.value-row__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.1em;
}

.value-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.value-row__title em {
  font-style: italic;
  color: var(--teal);
}

.value-row__expand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--gray-400);
  transition: transform 0.4s var(--ease-out), color 0.3s;
}

.value-row__desc {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.65;
  transition: max-height 0.6s var(--ease-out), margin 0.4s var(--ease-out);
  padding-left: 3.5rem;
  max-width: 540px;
}

.value-row.is-open .value-row__desc {
  max-height: 200px;
  margin-top: 0.8rem;
}

.value-row.is-open .value-row__expand {
  transform: rotate(45deg);
  color: var(--teal);
}

.value-row:hover .value-row__title {
  color: var(--teal);
}

/* ===== Founders ===== */
.founders {
  background: var(--ink);
  color: var(--paper);
}

.founders .h-section { color: var(--paper); }
.founders .body { color: var(--gray-300); }

.founders__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 800px) {
  .founders__grid { grid-template-columns: 1fr 1fr; }
}

.founder-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1rem;
}

.founder-card__portrait {
  aspect-ratio: 4 / 5;
  background: var(--ink-soft);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-card__portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.025) 0,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 8px
  );
}

/* Silhouette placeholder — half-bust figure, prominent, beardless */
.founder-card__silhouette {
  display: none;
}
/* Big M / D — centered in the portrait */
.founder-card__monogram {
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 14rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.08);
  letter-spacing: -0.05em;
  position: relative;
}

.founder-card__noise-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.founder-card__noise-tag::before {
  content: '';
  width: 10px;
  height: 1px;
  background: var(--teal);
}

.founder-card__noise-tag--right { left: auto; right: 1rem; }

.founder-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.founder-card__name em {
  font-style: italic;
  color: oklch(0.75 0.10 180);
}

.founder-card__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}

.founder-card__bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-300);
  max-width: 360px;
}

/* Marco's role: dwell-triggered swap (DIREZIONE → PASSIONE) */
.role-swap__words {
  display: inline-grid;
  grid-template-columns: 1fr;
  position: relative;
  vertical-align: baseline;
}
.role-swap__from,
.role-swap__to {
  grid-area: 1 / 1;
  white-space: nowrap;
  position: relative;
  transition: opacity 0.5s ease, color 0.5s ease;
}
.role-swap__from { opacity: 1; }
.role-swap__to {
  opacity: 0;
  color: var(--teal);
}
/* strike-through line drawn via ::after */
.role-swap__from::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.95s cubic-bezier(0.7, 0, 0.2, 1);
}
.role-swap.is-swapped .role-swap__from::after {
  transform: scaleX(1);
}
.role-swap.is-swapped .role-swap__from {
  opacity: 0;
  transition: opacity 0.5s ease;
  transition-delay: 0.95s;
}
.role-swap.is-swapped .role-swap__to {
  opacity: 1;
  transition-delay: 1.2s;
}

/* ===== Il Nome (cinematic) ===== */
.nome {
  background: var(--paper-cool);
  position: relative;
  overflow: hidden;
}

.nome__hero-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-align: center;
  margin: var(--space-xl) 0;
  position: relative;
}

.nome__hero-line em {
  font-style: italic;
  color: var(--teal);
}

/* BAZ26 always renders in the logo font, never italic — matches the wordmark */
.brand-mark {
  font-family: var(--font-sans);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-feature-settings: "tnum";
}

.brand-mark__num {
  color: var(--teal);
  font-weight: 800;
}

.nome__hero-line .placeholder-token {
  display: inline-block;
  position: relative;
  padding: 0 0.1em;
}

.nome__hero-line .placeholder-token::before {
  content: '';
  position: absolute;
  inset: 8% 0;
  background: color-mix(in oklab, var(--teal) 14%, transparent);
  border-radius: 8px;
  z-index: -1;
  transform-origin: left center;
  transform: scaleX(var(--hl, 0));
  transition: transform 0.05s linear;
}

.nome__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 900px) {
  .nome__layout {
    grid-template-columns: 0.45fr 0.55fr;
    gap: var(--space-2xl);
  }
}

.nome__text p {
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-600);
}

.nome__text strong {
  color: var(--ink);
  font-weight: 600;
}

.nome__text .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: var(--space-md) 0;
  border-left: 2px solid var(--teal);
  padding-left: 1rem;
}

.nome__demo {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  background: var(--white);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.15);
}

.nome__demo-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.nome__demo-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--gray-100);
}

.nome__demo-row:first-of-type { border-top: none; }

.nome__demo-stage {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  letter-spacing: 0.1em;
}

.nome__demo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.nome__demo-text em { font-style: italic; color: var(--teal); }

.nome__demo-progress {
  margin-top: 0.5rem;
  height: 2px;
  background: var(--gray-100);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.nome__demo-progress::after {
  content: '';
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--teal);
  animation: nome-progress 12s linear infinite;
}

@keyframes nome-progress {
  0% { inset: 0 100% 0 0; }
  90%, 100% { inset: 0 0 0 0; }
}

.nome__demo-replace {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  text-align: center;
  padding-top: 0.5rem;
}

/* ===== Services ===== */
.services {
  background: var(--paper);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  margin: 0 calc(var(--space-md) * -1);
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  align-items: center;
  position: relative;
  cursor: none;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), padding 0.4s var(--ease-out);
  border-radius: 4px;
}

.service-row:hover {
  background: var(--teal);
  color: var(--paper);
}

.service-row:hover .service-row__title {
  color: var(--paper);
  transform: translateX(8px);
}

.service-row:hover .service-row__title em {
  color: var(--paper);
  opacity: 0.85;
}

.service-row:hover .service-row__num,
.service-row:hover .service-row__cta {
  color: rgba(255, 255, 255, 0.85);
}

.services__list {
  margin-top: var(--space-lg);
}

.services__list .service-row:last-child {
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}

.service-row__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  align-self: start;
  padding-top: 0.6rem;
}

.service-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding-bottom: 0.08em;
  transition: transform 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

.service-row__title em {
  font-style: italic;
}

.service-row__cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}



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

.service-row:hover .service-row__cta-arrow {
  transform: rotate(-45deg);
}

.service-row__preview { display: none; }

.service-row__preview-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--paper);
  background: linear-gradient(135deg, var(--teal-deep), var(--ink));
  position: relative;
  overflow: hidden;
}

.service-row__preview-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 12px
  );
}

.service-row__detail {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out), margin-top 0.4s var(--ease-out);
}

.service-row.is-open .service-row__detail {
  max-height: 600px;
  margin-top: 1.5rem;
}

.service-row__detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-left: 4rem;
  padding-bottom: 1rem;
}

@media (min-width: 800px) {
  .service-row__detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-row__desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 420px;
}

.service-row__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.service-row__items li {
  color: var(--gray-500);
  padding: 0.4rem 0;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.service-row__items li::before {
  content: '→';
  color: var(--teal);
}

/* ===== hover state on the whole row (teal background) ===== */
.service-row:hover .service-row__desc {
  color: rgba(255, 255, 255, 0.92);
}

.service-row:hover .service-row__items li {
  color: var(--paper);
  border-top-color: rgba(255, 255, 255, 0.22);
}

.service-row:hover .service-row__items li::before {
  color: var(--paper);
}

/* ===== Approach ===== */
.approach {
  background: var(--ink);
  color: var(--paper);
}

.approach .h-section { color: var(--paper); }
.approach .body-lg { color: var(--gray-300); }

.approach__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1000px) {
  .approach__grid {
    grid-template-columns: 1fr 1.4fr;
  }
}

.approach__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.02em;
  display: block;
}

.stat__suffix { color: var(--teal); font-style: italic; }

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-top: 0.5rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.step:first-child { border-top: 1px solid rgba(255,255,255,0.1); }

.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.02em;
  width: 60px;
}

.step__verb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.step__title em { font-style: italic; color: oklch(0.75 0.10 180); }

.step__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray-300);
  max-width: 520px;
}

/* ===== Manifesto pull-quote ===== */
.manifesto {
  background: var(--paper);
  padding: var(--space-3xl) 0;
}

.manifesto__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 1100px;
  text-wrap: balance;
}

.manifesto__quote em {
  font-style: italic;
  color: var(--teal);
}

.manifesto__credit {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.manifesto__credit::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink);
}

/* ===== Ventures ===== */
.ventures {
  background: var(--paper-cool);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.ventures__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
  border-left: 1px solid var(--gray-200);
}

@media (min-width: 700px) {
  .ventures__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .ventures__grid { grid-template-columns: repeat(3, 1fr); }
}

.venture {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.3s, color 0.3s;
}

/* Hover preview layer (iframe for live ventures, black wash for placeholders) */
.venture__preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  overflow: hidden;
}
.venture__preview iframe,
.venture__preview-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: top center;
  filter: blur(5px) saturate(1.05);
  opacity: 0.9;
  background: var(--paper);
  pointer-events: none;
}
.venture__preview-veil {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 65%, transparent);
  mix-blend-mode: multiply;
}
.venture--placeholder .venture__preview,
.venture:not(.venture--live) .venture__preview {
  background: var(--ink);
}
.venture--placeholder .venture__preview-veil,
.venture:not(.venture--live) .venture__preview-veil {
  background: transparent;
}

.venture:hover .venture__preview { opacity: 1; }

/* Make sure card content renders above the preview layer */
.venture > .venture__year,
.venture > div:not(.venture__preview) { position: relative; z-index: 1; }

.venture:hover {
  background: var(--ink);
  color: var(--paper);
}

.venture:hover .venture__name { color: var(--paper); }
.venture:hover .venture__name .brand-mark { color: var(--paper); }
.venture:hover .venture__sector { color: var(--paper); font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.venture:hover .venture__year { color: oklch(0.85 0.12 180); text-shadow: 0 1px 6px rgba(0,0,0,0.55); }
.venture--live:hover .venture__name { text-shadow: 0 1px 8px rgba(0,0,0,0.45); }

/* Placeholder card — strike out the "PLACEHOLDER" word on hover */
.venture--placeholder .venture__sector {
  position: relative;
  display: inline-block;
}

.venture--placeholder .venture__sector::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}

.venture--placeholder:hover .venture__sector::after {
  transform: scaleX(1);
}

.venture__year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.venture__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.1;
}

.venture__name em { font-style: italic; }

.venture__sector {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* ===== Contact ===== */
.contact {
  background: var(--paper);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 0.4rem;
  transition: color 0.3s, border-color 0.3s;
}

.contact__email:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.contact__email em { font-style: italic; }

.contact__details {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 460px;
}

.contact__detail h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.contact__detail p {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--white);
  padding: var(--space-lg);
  border-radius: 14px;
  border: 1px solid var(--gray-100);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

.field__input {
  width: 100%;
  padding: 0.85rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  font-family: var(--font-sans);
}

.field__input::placeholder {
  color: var(--gray-300);
}

.field__input:focus {
  border-bottom-color: var(--teal);
}

textarea.field__input {
  min-height: 100px;
  resize: vertical;
  padding: 0.85rem 0;
  font-family: var(--font-sans);
}

.contact__submit {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: var(--gray-300);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.footer__big {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 13vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--paper);
  white-space: nowrap;
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: baseline;
  gap: 0;
  font-feature-settings: "tnum";
}

.footer__big em {
  font-style: normal;
  font-weight: 800;
  color: var(--teal);
}

.footer__big-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.7em;
  background: var(--teal);
  animation: caret 1.1s steps(2) infinite;
  align-self: center;
  margin-left: 0.12em;
}

.footer__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 800px) {
  .footer__layout {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer__col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--gray-300);
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--paper); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a:hover { color: var(--paper); }

/* Legal line above the bottom row — small, mono, slightly muted. */
.footer__legal-line {
  margin: 0 0 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer__static {
  display: block;
  color: var(--gray-300);
  font-size: 0.95rem;
}

/* ===== Contact CTA (replaces former form) ===== */
.contact__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 720px;
}

.contact__lead {
  margin: 0;
  max-width: 560px;
}

.contact__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--gray-300);
  max-width: 560px;
  line-height: 1.6;
}

.contact__cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  will-change: transform;
}

.contact__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

.contact__cta-email {
  font-family: var(--font-mono);
  font-size: 0.9em;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.contact__details {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .contact__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
  }
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.6s var(--ease-out), visibility 0s 0.7s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__brand {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.loader__brand em { color: var(--teal); font-style: normal; }

.loader__bar {
  width: 200px;
  height: 1px;
  background: var(--gray-200);
  position: relative;
  overflow: hidden;
}

.loader__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform-origin: left;
  animation: load-bar 1.6s var(--ease-in-out) forwards;
}

@keyframes load-bar {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.loader__pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray-400);
}

/* ===== Tweaks panel position adjust ===== */
.tweaks-panel {
  font-family: var(--font-sans);
}

/* ===== utility motion ===== */
.parallax {
  will-change: transform;
}

.magnetic {
  display: inline-flex;
  position: relative;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-mask__inner, .lines .line > span {
    opacity: 1;
    transform: none;
  }
  /* Stop infinite or attention-grabbing motion entirely. */
  .marquee__track,
  .brand__caret,
  .footer__big-cursor,
  .live-dot {
    animation: none !important;
  }
  /* Hide motion-only chrome (custom cursor, loader). */
  .cursor-ring,
  .cursor-dot,
  .loader {
    display: none !important;
  }
}

/* ===========================================================
   ============  MOBILE & TABLET OPTIMIZATION  ===============
   Layered on top of desktop styles. Breakpoints:
     - Tablet:        max-width 1024px
     - Small tablet:  max-width 820px
     - Mobile:        max-width 640px
     - Small mobile:  max-width 380px
   =========================================================== */

/* ---------- Universal: prevent overflow, safe-area, dynamic vh ---------- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* iOS / Android safe-area for fixed nav and hero */
@supports (padding: max(0px)) {
  .nav,
  .container {
    padding-left: max(var(--container-pad), env(safe-area-inset-left));
    padding-right: max(var(--container-pad), env(safe-area-inset-right));
  }
  .mobile-menu {
    padding-left: max(var(--container-pad), env(safe-area-inset-left));
    padding-right: max(var(--container-pad), env(safe-area-inset-right));
    padding-bottom: max(var(--container-pad), env(safe-area-inset-bottom));
  }
}

/* ---------- Touch devices: kill the custom cursor + magnetic/hover ---------- */
@media (hover: none), (pointer: coarse) {
  body, button, a, input, textarea { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }

  /* Hover-driven full-row teal flip is jarring on tap. Keep it neutral. */
  .service-row:hover {
    background: transparent;
    color: inherit;
  }
  .service-row:hover .service-row__title {
    color: var(--ink);
    transform: none;
  }
  .service-row:hover .service-row__title em { color: var(--teal); opacity: 1; }
  .service-row:hover .service-row__num,
  .service-row:hover .service-row__cta { color: var(--gray-400); }
  .service-row:hover .service-row__desc { color: var(--gray-600); }
  .service-row:hover .service-row__items li { color: var(--gray-500); border-top-color: var(--gray-100); }
  .service-row:hover .service-row__items li::before { color: var(--teal); }

  /* Active state still gets a subtle press feedback */
  .service-row:active { background: color-mix(in oklab, var(--teal) 6%, transparent); }
  .venture:hover { background: transparent; color: inherit; }
  .venture:hover .venture__name { color: var(--ink); }
  .venture:hover .venture__name .brand-mark { color: var(--ink); }
  .venture:hover .venture__sector { color: var(--gray-500); }
  .venture:hover .venture__year { color: var(--gray-400); }

  /* Magnetic buttons: disable transforms on touch (they get stuck) */
  .magnetic { transform: none !important; }
}

/* ---------- TABLET (≤1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --container-pad: 1.5rem;
    --space-3xl: 6rem;
    --space-2xl: 4.5rem;
    --space-xl: 3rem;
    --header-h: 64px;
  }

  .section { padding: var(--space-2xl) 0; }

  /* Hero — give the side card a bit less weight, keep it visible */
  .hero__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-lg);
  }
  .hero__title {
    font-size: clamp(3rem, 7.5vw, 5.5rem);
  }

  /* Approach: drop the sticky behaviour earlier so it doesn't fight the steps */
  .approach__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .approach__left {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-lg);
    flex-wrap: wrap;
  }
  .approach__left .body-lg { flex: 1 1 280px; max-width: none; }
  .stats { flex: 1 1 360px; padding-top: 0; border-top: none; }

  /* Nome demo: don't stick on tablet (keeps it from overlapping the prose) */
  .nome__demo { position: static; }

  /* Footer mark scaled */
  .footer__big { font-size: clamp(3rem, 14vw, 9rem); }
}

/* ---------- SMALL TABLET (≤820px) ---------- */
@media (max-width: 820px) {
  :root {
    --space-3xl: 5rem;
    --space-2xl: 3.5rem;
    --space-xl: 2.5rem;
    --space-lg: 2rem;
  }

  /* Live time chip is noisy on small screens — already hidden <1100px,
     but make sure the lang toggle & menu have room */
  .nav { gap: var(--space-sm); }

  /* Hero stacks vertically; placeholder card moves below */
  .hero {
    min-height: auto;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: var(--space-2xl);
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .hero__title {
    font-size: clamp(2.75rem, 10vw, 5rem);
    margin-bottom: var(--space-md);
  }
  .hero__sub { font-size: 1.05rem; margin-bottom: var(--space-lg); }
  .hero__side { order: 2; }
  .hero__placeholder { max-width: 100%; }
  .hero__scroll { display: none; }

  /* Section intros stack */
  .section-intro {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
  }

  /* About grid stacks */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Founders stack */
  .founders__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .founder-card__portrait { aspect-ratio: 5 / 4; }
  .founder-card__monogram { font-size: clamp(7rem, 28vw, 12rem); }

  /* Nome stacks; demo card full width */
  .nome__layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .nome__hero-line {
    font-size: clamp(2.75rem, 13vw, 7rem);
    margin: var(--space-lg) 0;
    text-align: left;
  }

  /* Services: stack the row layout (number on top of title) */
  .service-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "num cta"
      "title title"
      "detail detail";
    gap: 0.6rem var(--space-sm);
    padding: var(--space-md) var(--space-sm);
    margin: 0 calc(var(--space-sm) * -1);
  }
  .service-row__num { grid-area: num; padding-top: 0; }
  .service-row__cta { grid-area: cta; }
  .service-row__title {
    grid-area: title;
    font-size: clamp(2rem, 7.5vw, 3rem);
  }
  .service-row__detail { grid-area: detail; grid-column: auto; }
  .service-row__detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-left: 0;
  }
  .service-row.is-open .service-row__detail { max-height: 800px; }
  .service-row__items { grid-template-columns: 1fr; }

  /* Approach steps tighter */
  .step { padding: var(--space-md) 0; }
  .step__num { font-size: 2rem; width: 48px; }

  /* Contact: stack form below details */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Manifesto smaller */
  .manifesto { padding: var(--space-2xl) 0; }
  .manifesto__quote { font-size: clamp(1.85rem, 6.5vw, 3.5rem); }

  /* Ventures: 2 cols */
  .ventures__grid { grid-template-columns: repeat(2, 1fr); }

  /* Marquee a bit smaller */
  .marquee { padding: 1rem 0; }
  .marquee__track { font-size: clamp(1.25rem, 4vw, 1.75rem); gap: 2rem; }
  .marquee__track > span { gap: 1rem; }
  .marquee__track > span::after { margin-left: 1rem; width: 6px; height: 6px; }

  /* Footer */
  .footer { padding: var(--space-xl) 0 var(--space-md); }
  .footer__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer__big {
    font-size: clamp(3.5rem, 18vw, 7rem);
    margin-bottom: var(--space-lg);
  }
}

/* ---------- MOBILE (≤640px) ---------- */
@media (max-width: 640px) {
  :root {
    --container-pad: 1.25rem;
    --space-3xl: 4rem;
    --space-2xl: 3rem;
    --space-xl: 2rem;
    --space-lg: 1.5rem;
    --header-h: 60px;
  }

  /* Body slightly tighter line-height for narrower measure */
  body { line-height: 1.55; }

  /* Header / Nav */
  .nav { gap: 0.5rem; }
  .brand { font-size: 1.1rem; }
  .lang-toggle button { padding: 0.35rem 0.55rem; font-size: 0.65rem; }
  .menu-btn { padding: 10px; }              /* 44px tap target */
  .menu-btn span { width: 20px; }

  /* Mobile menu — readable stacked links, scrollable if many */
  .mobile-menu {
    gap: 1rem;
    overflow-y: auto;
  }
  .mobile-menu a {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    padding: 0.4rem 0;
  }

  /* Buttons full-width feel without forcing 100% */
  .btn {
    padding: 0.95rem 1.25rem;
    font-size: 0.92rem;
    min-height: 44px;            /* tap target */
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    max-width: 360px;
  }
  .hero__actions .btn { width: 100%; }

  /* Hero — content priority */
  .hero { padding-top: calc(var(--header-h) + 0.5rem); }
  .hero__pre { gap: 0.25rem; margin-bottom: var(--space-sm); }
  .hero__pre-line { font-size: 0.65rem; }
  .hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
  }
  .hero__sub { font-size: 1rem; line-height: 1.5; }

  /* Hero placeholder card: smaller, single line allowed to wrap */
  .hero__placeholder {
    padding: 1rem 1.1rem;
    font-size: 0.78rem;
    line-height: 1.65;
    border-radius: 12px;
  }
  .hero__placeholder pre { white-space: pre-wrap; word-break: break-word; }

  /* Hero split variant: stack vertically on phones */
  .hero[data-variant="split"] .hero__split {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Section intros */
  .section { padding: var(--space-xl) 0; }
  .section-intro { margin-bottom: var(--space-lg); }

  /* Section headlines: keep punchy but readable */
  .h-section { font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.05; }

  /* About */
  .about__lead { font-size: clamp(1.45rem, 5.5vw, 1.9rem); }
  .about__body p { font-size: 1rem; }

  /* Values — clearer tap area, expand affordance bigger */
  .value-row {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-sm);
    padding: 1.1rem 0;
  }
  .value-row__title { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .value-row__desc { padding-left: 2.6rem; max-width: none; }
  .value-row.is-open .value-row__desc { max-height: 320px; }
  .value-row__expand { font-size: 1.25rem; }

  /* Founders */
  .founder-card__name { font-size: clamp(1.6rem, 7vw, 2rem); }
  .founder-card__bio { font-size: 0.95rem; }
  .founder-card__noise-tag { font-size: 0.6rem; }

  /* Nome */
  .nome__hero-line {
    font-size: clamp(2.2rem, 13vw, 4rem);
    line-height: 0.95;
    margin: var(--space-md) 0;
  }
  .nome__demo { padding: 1.1rem; }
  .nome__demo-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.85rem 0;
  }
  .nome__demo-text { font-size: 1.15rem; }

  /* Services — reasonable size, plenty of vertical room for tap */
  .service-row {
    padding: var(--space-md) var(--space-sm);
    min-height: 88px;
  }
  .service-row__title { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .service-row__num { font-size: 0.7rem; }
  .service-row__cta { font-size: 0.7rem; }
  .service-row__cta span:first-child { display: none; } /* keep just the arrow */

  /* Approach */
  .approach__left { flex-direction: column; align-items: stretch; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat__num { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .stat__label { font-size: 0.65rem; }
  .step {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: var(--space-md) 0;
  }
  .step__num { font-size: 1.75rem; width: auto; }
  .step__title { font-size: clamp(1.3rem, 5.5vw, 1.7rem); }

  /* Manifesto */
  .manifesto__quote { font-size: clamp(1.6rem, 7vw, 2.6rem); }

  /* Ventures: keep 2 cols for density, but readable */
  .ventures__grid { grid-template-columns: repeat(2, 1fr); }
  .venture {
    padding: 1rem 0.85rem;
    min-height: 130px;
  }
  .venture__name { font-size: 1.15rem; }
  .venture__sector { font-size: 0.62rem; }
  .venture__year { font-size: 0.62rem; }

  /* Contact */
  .contact__email { font-size: clamp(1.4rem, 6.5vw, 2rem); }
  .contact__details { grid-template-columns: 1fr 1fr; gap: 1rem; max-width: none; }
  .contact__form { padding: 1.25rem; border-radius: 12px; }
  .field__input { font-size: 16px; }    /* prevent iOS auto-zoom */
  textarea.field__input { min-height: 88px; }

  /* Footer */
  .footer { padding: var(--space-lg) 0 var(--space-md); }
  .footer__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md) var(--space-lg);
    padding-bottom: var(--space-md);
  }
  .footer__col h5 { margin-bottom: 0.6rem; }
  .footer__col a { font-size: 0.9rem; padding: 0.35rem 0; }
  .footer__big {
    font-size: clamp(3rem, 22vw, 6rem);
    margin-bottom: var(--space-md);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer__bottom-links { flex-wrap: wrap; gap: 1rem; }

  /* Loader */
  .loader__brand { font-size: 1.85rem; }
  .loader__bar { width: 140px; }
}

/* ---------- SMALL MOBILE (≤380px) ---------- */
@media (max-width: 380px) {
  :root { --container-pad: 1rem; }

  .brand { font-size: 1rem; }
  .lang-toggle button { padding: 0.3rem 0.5rem; }
  .hero__title { font-size: clamp(2.1rem, 12vw, 3rem); }
  .h-section { font-size: clamp(2rem, 11vw, 3rem); }
  .nome__hero-line { font-size: clamp(1.85rem, 13vw, 3rem); }
  .footer__layout { grid-template-columns: 1fr; }
  .ventures__grid { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
  .stat__num { font-size: 1.7rem; }
}

/* ---------- LANDSCAPE PHONES: short viewports ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: var(--space-lg);
  }
  .hero__title { font-size: clamp(2.2rem, 7vw, 3.5rem); }
  .mobile-menu { padding-top: calc(var(--header-h) + 0.5rem); }
  .mobile-menu a { font-size: clamp(1.4rem, 5vw, 2rem); }
}

/* ===========================================================
   ============  DOT NAV / SITH MODE / EXTRAS  ===============
   =========================================================== */

/* Side dot navigation — minimal, scroll-only visibility, dash marks */
.dot-nav {
  position: fixed;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  padding: 0.35rem 0.35rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  /* Fade in/out: scroll activity OR edge-hover (toggled by .is-shown). */
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.dot-nav.is-shown {
  opacity: 1;
  pointer-events: auto;
}

/* Invisible hot-zone along the right edge to summon the nav on hover. */
.dot-nav__hover-zone {
  position: fixed;
  top: 0;
  right: 0;
  width: 28px;
  height: 100vh;
  z-index: 94;
  pointer-events: auto;
  background: transparent;
}

.dot-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 4px 2px;
}

/* Dash mark instead of dot. */
.dot-nav__dot {
  display: block;
  width: 10px;
  height: 1px;
  border-radius: 0;
  background: color-mix(in oklab, var(--ink) 32%, transparent);
  transition: background 0.25s var(--ease-out), width 0.3s var(--ease-spring), height 0.25s var(--ease-out);
}

.dot-nav__item.is-active .dot-nav__dot {
  background: var(--teal);
  width: 18px;
  height: 2px;
}

.dot-nav__item:hover .dot-nav__dot {
  background: var(--teal);
  width: 16px;
}

/* Per-dot dark variant: only the marks that are over a dark section flip to paper.
   The active mark stays teal on every background. Use !important to defeat the
   later [data-mode="sith"] rule that targets .dot-nav__dot directly. */
.dot-nav__item.is-on-dark .dot-nav__dot {
  background: color-mix(in oklab, var(--paper) 60%, transparent) !important;
}
.dot-nav__item.is-on-dark:hover .dot-nav__dot {
  background: var(--paper) !important;
}
/* Active mark: teal everywhere, including over dark sections. */
.dot-nav__item.is-on-dark.is-active .dot-nav__dot {
  background: var(--teal) !important;
}

.dot-nav__label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  padding: 0.3rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}

.dot-nav__item:hover .dot-nav__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 900px) {
  .dot-nav { display: none; }
}

/* Ventures: live (linked) cards get a subtle distinction */
.venture--live .venture__year {
  color: var(--teal);
}
.venture__ext {
  font-family: var(--font-mono);
  margin-left: 2px;
}

/* Founders portrait — lift the placeholder so it reads as intentional */
.founder-card__portrait {
  background: linear-gradient(135deg, var(--ink-soft) 0%, #1a1a1a 100%);
}
.founder-card__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--teal) 16%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, color-mix(in oklab, var(--teal) 8%, transparent) 0%, transparent 50%);
  pointer-events: none;
}
.founder-card__monogram {
  z-index: 1;
  color: rgba(255,255,255,0.10);
  text-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* ============== SITH MODE (dark theme) ============== */
[data-mode="sith"] {
  --ink: #F2EEE8;
  --ink-soft: #d6d0c5;
  --paper: #0d0d0d;
  --paper-warm: #121212;
  --paper-cool: #161616;
  --gray-100: #1f1f1f;
  --gray-200: #2a2a2a;
  --gray-300: #4a4a4a;
  --gray-400: #8a857c;
  --gray-500: #b5afa4;
  --gray-600: #d6d0c5;
  --teal: oklch(0.72 0.13 180);
  --teal-deep: oklch(0.85 0.10 180);
  --teal-soft: oklch(0.72 0.13 180 / 0.12);
  --white: #1a1a1a;
}
[data-mode="sith"] body { background: var(--paper); color: var(--ink); }
[data-mode="sith"] .site-header {
  background: color-mix(in oklab, var(--paper) 80%, transparent);
}
[data-mode="sith"] .menu-btn span { background: var(--ink); }
[data-mode="sith"] .mobile-menu { background: var(--paper); }
[data-mode="sith"] .founders { background: var(--paper-warm); }
[data-mode="sith"] .approach { background: var(--paper-warm); }
[data-mode="sith"] .nome { background: var(--paper-cool); }
[data-mode="sith"] .ventures { background: var(--paper-cool); border-color: var(--gray-200); }
[data-mode="sith"] .footer { background: #050505; }
[data-mode="sith"] .contact__form { background: var(--paper-warm); border-color: var(--gray-200); }
[data-mode="sith"] .field__input { color: var(--ink); border-bottom-color: var(--gray-200); }
[data-mode="sith"] .field__input::placeholder { color: var(--gray-300); }
[data-mode="sith"] .nome__demo { background: var(--paper-warm); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5); }
[data-mode="sith"] .nome__demo-row { border-top-color: var(--gray-200); }
[data-mode="sith"] .loader { background: var(--paper); }
[data-mode="sith"] .loader__brand { color: var(--ink); }
[data-mode="sith"] .loader__bar { background: var(--gray-200); }
[data-mode="sith"] .cursor-ring { border-color: rgba(255,255,255,0.6); }
[data-mode="sith"] .dot-nav { background: transparent; border: 0; }
[data-mode="sith"] .dot-nav__label { background: var(--paper-warm); border-color: var(--gray-200); color: var(--ink); }
[data-mode="sith"] .brand { color: var(--ink); }
[data-mode="sith"] .brand-mark { color: var(--ink); }
[data-mode="sith"] .lang-toggle button.is-active { color: var(--paper); background: var(--ink); }
[data-mode="sith"] .btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-mode="sith"] .btn--primary:hover { background: var(--teal); color: var(--paper); border-color: var(--teal); }
[data-mode="sith"] .btn--ghost { color: var(--ink); border-color: rgba(255,255,255,0.18); }

/* ===== Sith mode: fix specific dark-on-dark problems ===== */

/* Hero config card — was light bg in light mode (looked like a code editor on paper).
   In sith, invert: dark warm bg with light text so it still reads as a "terminal". */
[data-mode="sith"] .hero__placeholder {
  background: #1a1a1a;
  color: var(--ink);
}
[data-mode="sith"] .hero__placeholder .ph-key { color: rgba(255,255,255,0.5); }
[data-mode="sith"] .hero__placeholder .ph-val { color: var(--ink); }
[data-mode="sith"] .hero__placeholder .ph-comment { color: rgba(255,255,255,0.35); }
[data-mode="sith"] .hero__placeholder-caret { background: var(--ink); }

/* Hero split cards (Marco / Daniele variant) */
[data-mode="sith"] .hero__split-card--marco {
  background: var(--paper-warm);
  color: var(--ink);
  border-color: var(--gray-200);
}
[data-mode="sith"] .hero__split-card--daniele {
  background: #1a1a1a;
  color: var(--ink);
}

/* Founders / Approach: in light mode these had ink bg + paper text + gray-200 muted.
   In sith they're paper-warm bg + ink text. Bring text up to full ink, NOT gray-200
   (which is now a dark color #2a2a2a — invisible on dark bg). */
[data-mode="sith"] .founders .h-section,
[data-mode="sith"] .approach .h-section { color: var(--ink); }
[data-mode="sith"] .founders .body,
[data-mode="sith"] .founders .body-lg,
[data-mode="sith"] .approach .body,
[data-mode="sith"] .approach .body-lg,
[data-mode="sith"] .founders .founder-card__bio,
[data-mode="sith"] .approach .step__desc {
  color: var(--gray-500);
}
[data-mode="sith"] .section--dark .body,
[data-mode="sith"] .section--dark .body-lg,
[data-mode="sith"] .section--dark .body-sm {
  color: var(--gray-500);
}
[data-mode="sith"] .section--dark { background: var(--paper-warm); color: var(--ink); }
[data-mode="sith"] .section--dark .h-section,
[data-mode="sith"] .section--dark .h-3 { color: var(--ink); }

/* Founder portrait: in sith the gradient backdrop becomes near-invisible.
   Boost it with lighter tones so the monogram has a visible "frame". */
[data-mode="sith"] .founder-card__portrait {
  background: #181818;
}
[data-mode="sith"] .founder-card__portrait::before {
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--teal) 28%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 80% 90%, color-mix(in oklab, var(--teal) 14%, transparent) 0%, transparent 50%);
}
[data-mode="sith"] .founder-card__monogram { color: rgba(255,255,255,0.18); }

/* Founder name was using --ink; in sith --ink is light, but the name has a separate
   styling in the page that makes it appear darkened. Force it. */
[data-mode="sith"] .founder-card__name { color: var(--ink); }
[data-mode="sith"] .founder-card__role { color: var(--gray-500); }

/* Approach: step number, title, description. Step number was --paper in light = bright on
   ink. In sith, --paper is black so the giant 01/02/03 disappears. Force ink. */
[data-mode="sith"] .step__num { color: var(--ink); }
[data-mode="sith"] .step__title { color: var(--ink); }
[data-mode="sith"] .step__eyebrow { color: var(--teal); }

/* Approach stats numbers/labels */
[data-mode="sith"] .stat__num { color: var(--ink); }
[data-mode="sith"] .stat__label { color: var(--gray-500); }

/* Footer giant wordmark BAZ26 — in light mode "BAZ" is paper (cream) on ink bg.
   In sith, paper is black, so we flip: use ink (light) so the wordmark stays
   readable on the near-black footer. */
[data-mode="sith"] .footer__big { color: var(--ink); }
[data-mode="sith"] .footer__big em { color: var(--teal); }
[data-mode="sith"] .footer__big-cursor { background: var(--ink); }
[data-mode="sith"] .footer__col h4,
[data-mode="sith"] .footer__col-title { color: var(--gray-500); }
[data-mode="sith"] .footer__col a,
[data-mode="sith"] .footer__col li { color: var(--ink); }
[data-mode="sith"] .footer__col a:hover { color: var(--teal); }
[data-mode="sith"] .footer__bottom { border-color: var(--gray-200); color: var(--gray-500); }

/* Marquee: in light mode marquee--dark uses --ink bg + paper text. In sith --ink is light so
   it'd flash white. Re-pin to a real dark color. */
[data-mode="sith"] .marquee--dark {
  background: #0a0a0a;
  color: var(--ink);
  border-color: rgba(255,255,255,0.06);
}
[data-mode="sith"] .marquee {
  border-block-color: rgba(255,255,255,0.08);
}

/* Service rows */
[data-mode="sith"] .service-row { border-top-color: var(--gray-200); }
[data-mode="sith"] .services__list .service-row:last-child { border-bottom-color: var(--gray-200); }
[data-mode="sith"] .service-row__title { color: var(--ink); }
[data-mode="sith"] .service-row__num { color: var(--gray-500); }

/* About section: nome demo */
[data-mode="sith"] .nome__hero-line { color: var(--ink); }
[data-mode="sith"] .brand-mark__num { color: var(--teal); }

/* Hero placeholder dot row (the traffic-light dots top-left of the config card) */
[data-mode="sith"] .hero__placeholder .ph-dot { background: rgba(255,255,255,0.2); }
[data-mode="sith"] .hero__placeholder .ph-dot--active { background: var(--teal); }

/* Dot-nav border tweak so it doesn't blend with paper-warm */
[data-mode="sith"] .dot-nav { border: 0; }
/* In sith mode --paper and --ink are inverted (paper=dark, ink=light), so we
   pin the marks to --ink (the light colour token in sith) to be visible. */
[data-mode="sith"] .dot-nav__item .dot-nav__dot { background: color-mix(in oklab, var(--ink) 60%, transparent) !important; }
[data-mode="sith"] .dot-nav__item.is-active .dot-nav__dot { background: var(--teal) !important; }
[data-mode="sith"] .dot-nav__item:hover .dot-nav__dot { background: var(--ink) !important; }

/* ===== Saber toggle (Jedi/Sith mode switch in navbar) ===== */
.saber-toggle {
  --saber-color: oklch(0.78 0.18 200);  /* Jedi blue/teal */
  --saber-glow: oklch(0.78 0.18 200 / 0.6);
  position: relative;
  width: 44px;
  height: 28px;
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  border-radius: 100px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
}
.saber-toggle:hover {
  border-color: color-mix(in oklab, var(--ink) 24%, transparent);
}

/* Hilt — small metallic capsule */
.saber-toggle__hilt {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 4px;
  background: linear-gradient(180deg, #aaa 0%, #666 50%, #aaa 100%);
  border-radius: 1.5px;
  box-shadow:
    inset 0 0 0 0.5px rgba(0,0,0,0.4),
    inset 0 -0.5px 0 rgba(255,255,255,0.3);
  z-index: 2;
}
.saber-toggle__hilt::before {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
}

/* Blade — extends to the right */
.saber-toggle__blade {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, #fff 0%, var(--saber-color) 30%, var(--saber-color) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--saber-glow), 0 0 14px var(--saber-glow);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
/* Glow halo */
.saber-toggle__glow {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 10px;
  background: radial-gradient(ellipse at left center, var(--saber-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s 0.1s;
  z-index: 0;
  filter: blur(2px);
}

/* Default state: ALWAYS show blade slightly extended so user knows it's a switch */
.saber-toggle__blade { transform: translateY(-50%) scaleX(0.85); }
.saber-toggle__glow { opacity: 0.5; }

/* Jedi state: blue/teal saber */
.saber-toggle.is-jedi {
  --saber-color: oklch(0.82 0.16 200);
  --saber-glow: oklch(0.82 0.18 200 / 0.55);
}

/* Sith state: red saber */
.saber-toggle.is-sith {
  --saber-color: oklch(0.65 0.24 25);
  --saber-glow: oklch(0.65 0.26 25 / 0.7);
  border-color: color-mix(in oklab, var(--saber-color) 30%, transparent);
}
.saber-toggle.is-sith .saber-toggle__blade {
  transform: translateY(-50%) scaleX(1);
  box-shadow: 0 0 10px var(--saber-glow), 0 0 18px var(--saber-glow), 0 0 26px var(--saber-glow);
}
.saber-toggle.is-sith .saber-toggle__glow { opacity: 0.8; }

/* Active click: brief flicker */
.saber-toggle:active .saber-toggle__blade {
  filter: brightness(1.4);
}

/* Mobile: hide on very small screens */
@media (max-width: 480px) {
  .saber-toggle { width: 38px; height: 24px; }
  .saber-toggle__hilt { width: 6px; height: 3.5px; left: 6px; }
  .saber-toggle__blade { width: 18px; height: 2.5px; left: 13px; }
  .saber-toggle__glow { width: 18px; height: 8px; left: 13px; }
}

