/* Elias Bounenni — personal site
   Type: Inter (single family, varied weights)
   Palette: deep charcoal + off-white + single electric accent
*/

:root {
  --bg: #0a0b0c;
  --bg-1: #101214;
  --bg-2: #16181b;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --fg: #eef1f2;
  --fg-dim: #a6acb0;
  --fg-mute: #6e757a;
  --accent-h: 142;
  --accent: oklch(0.82 0.18 var(--accent-h));
  --accent-soft: oklch(0.82 0.18 var(--accent-h) / 0.14);
  --accent-glow: oklch(0.82 0.18 var(--accent-h) / 0.35);

  --f-sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad-y: clamp(80px, 10vw, 140px);

  --r: 14px;
  --r-sm: 8px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

[data-accent="electric"] { --accent-h: 195; }
[data-accent="violet"]   { --accent-h: 270; }
[data-accent="amber"]    { --accent-h: 40; }
[data-accent="mono"]     { --accent: #eef1f2; --accent-soft: rgba(238,241,242,0.12); --accent-glow: rgba(238,241,242,0.28); }

[data-density="tight"] { --pad-y: clamp(56px, 7vw, 96px); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

::selection { background: var(--accent); color: #0a0b0c; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.small { font-size: 12px; letter-spacing: 0; }
.center { justify-content: center; }
.muted { color: var(--fg-mute); }

.accent-text { color: var(--accent); }
.accent-underline {
  background-image: linear-gradient(to top, var(--accent) 0 6px, transparent 6px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding: 0 2px;
}

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #07110b;
  font-weight: 800; font-size: 13px; letter-spacing: -0.02em;
}
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.brand-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-mute);
  padding-left: 14px; margin-left: 6px;
  border-left: 1px solid var(--line);
}

.nav-links { display: flex; gap: 28px; justify-self: center; }
.nav-links a {
  font-size: 14px; color: var(--fg-dim); padding: 6px 0;
  position: relative; transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}

.nav-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }

.pulse {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 999px; background: var(--fg-dim);
  animation: pulse 2s infinite var(--ease);
}
.pulse-accent { background: var(--accent); }
@keyframes pulse {
  0%,100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ========== SECTION LABEL ========== */
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.02em;
  color: var(--fg-mute);
  margin-bottom: 48px;
}
.section-label.no-margin { margin-bottom: 16px; }
.section-label .idx {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--fg); font-size: 11px; font-weight: 500;
  padding: 0 6px;
}
.section-label .rule { flex: 1; height: 1px; background: var(--line); }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) var(--gutter) clamp(60px, 8vw, 100px);
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.45;
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 900px; height: 900px; right: -220px; top: -120px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(40px); opacity: 0.4;
}
.hero > *:not(.hero-grid):not(.hero-glow) { position: relative; z-index: 1; }

.hero-meta {
  display: flex; flex-direction: column; gap: 8px;
  color: var(--fg-mute);
  font-size: 13px;
  padding-bottom: 48px;
}
.meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.meta-row .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.hero-headline {
  font-size: clamp(40px, 7.8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  max-width: 18ch;
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line > * {
  display: inline-block;
  animation: rise 900ms var(--ease) both;
}
.hero-headline .line:nth-child(1) > * { animation-delay: 80ms; }
.hero-headline .line:nth-child(2) > * { animation-delay: 200ms; }
.hero-headline .line:nth-child(3) > * { animation-delay: 320ms; }
@keyframes rise {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-sub {
  max-width: 62ch;
  margin: 40px 0 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--fg-dim);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 40px 0 56px;
}

.hero-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-foot-col {
  display: flex; flex-direction: column; gap: 6px;
  padding-right: 20px;
  border-right: 1px solid var(--line);
  font-size: 14px; color: var(--fg-dim);
}
.hero-foot-col:last-child { border-right: 0; }
.kv-label {
  font-size: 11px; color: var(--fg-mute);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--accent); color: #07110b;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 40px -10px var(--accent-glow);
}
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--fg); }
.btn-lg { padding: 18px 28px; font-size: 15px; }
.btn-xl { padding: 22px 34px; font-size: 17px; }

/* ========== SHARED SECTION WRAPPER ========== */
section.about, section.authority, section.story,
section.principles, section.ecosystem, section.circle,
section.signal, section.qa, section.final {
  padding: var(--pad-y) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--bg-1);
  overflow: hidden;
  border: 1px solid var(--line);
}
.portrait-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  display: flex; flex-direction: column; gap: 2px;
  font-size: 12px; color: var(--fg-mute);
}
.portrait-caption .caption-label { color: var(--fg); font-weight: 500; letter-spacing: 0.08em; font-size: 10px; text-transform: uppercase; }
.portrait-facts {
  margin: 20px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
}
.portrait-facts div {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.portrait-facts dt { color: var(--fg-mute); margin: 0; }
.portrait-facts dd { color: var(--fg); margin: 0; font-weight: 500; }

.about-copy { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.about-copy .lead {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-weight: 500;
  margin: 0 0 8px;
  max-width: 28ch;
}
.about-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 56ch;
}
.about-copy p em { color: var(--fg); font-style: italic; }
.about-link {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px; align-self: flex-start;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.about-link:hover { color: var(--accent); border-color: var(--accent); }

/* ========== RECEIPTS / METRICS ========== */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.metric:last-child { border-right: 0; padding-right: 0; }
.metric-label { font-size: 12px; color: var(--fg-mute); }
.metric-value {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.metric-foot { font-size: 13px; color: var(--fg-dim); }

/* ========== STORY / TIMELINE ========== */
.story-intro {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 40px; align-items: end;
  margin-bottom: 56px;
}
.story-intro h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  max-width: 16ch;
}
.story-intro p {
  margin: 0; color: var(--fg-dim);
  font-size: 16px; line-height: 1.65;
  max-width: 52ch;
}
.story-intro p em { color: var(--fg); font-style: italic; }

.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.timeline li {
  padding: 32px 28px 32px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.timeline li:nth-child(3n) { border-right: 0; padding-right: 0; }
.timeline li:nth-last-child(-n+3) { border-bottom: 0; }
.tl-year {
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.timeline h3 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  font-weight: 500;
  line-height: 1.25;
}
.timeline p {
  margin: 0;
  font-size: 14px; line-height: 1.6;
  color: var(--fg-dim);
  max-width: 42ch;
}

/* ========== PRINCIPLES ========== */
.principles-intro {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 40px; align-items: end;
  margin-bottom: 48px;
}
.principles-intro h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500; margin: 0;
  max-width: 16ch;
}
.principles-intro p {
  margin: 0; color: var(--fg-dim);
  font-size: 16px; line-height: 1.65;
  max-width: 52ch;
}

.principle-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.principle-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left .25s var(--ease);
}
.principle-list li:hover { padding-left: 16px; }
.pr-num {
  font-size: 14px; color: var(--fg-mute);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.principle-list h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.2;
}
.principle-list p {
  margin: 0;
  font-size: 16px; line-height: 1.6;
  color: var(--fg-dim);
  max-width: 64ch;
}

/* ========== WORK / ECOSYSTEM ========== */
.work-intro {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 40px; align-items: end;
  margin-bottom: 48px;
}
.work-intro h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 500; margin: 0;
  max-width: 16ch;
}
.work-intro p {
  margin: 0; color: var(--fg-dim);
  font-size: 16px; line-height: 1.65;
  max-width: 52ch;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.eco-card {
  grid-column: span 6;
  background: var(--bg-1);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 260px;
  transition: background .25s var(--ease);
}
.eco-card:hover { background: var(--bg-2); }
.eco-card-feature {
  background: linear-gradient(180deg, var(--accent-soft), transparent 120%), var(--bg-1);
}
.eco-card-feature:hover { background: linear-gradient(180deg, var(--accent-soft), transparent 100%), var(--bg-2); }

.eco-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-mute);
}
.eco-status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-dim); }
.eco-name {
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.022em;
  font-weight: 500;
  line-height: 1.1;
}
.eco-copy {
  color: var(--fg-dim);
  font-size: 15px; line-height: 1.6;
  max-width: 48ch;
}
.eco-cta {
  margin-top: auto;
  font-size: 13px; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
}
.eco-cta span { transition: transform .25s var(--ease), color .25s var(--ease); }
.eco-card:hover .eco-cta span { transform: translateX(4px); color: var(--accent); }

/* ========== CIRCLE ========== */
.circle-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background:
    radial-gradient(1200px 400px at 10% -20%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg));
  overflow: hidden;
}
.circle-meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--fg-mute);
}
.circle-meta span { display: inline-flex; align-items: center; gap: 8px; }

.circle-body {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: clamp(32px, 4vw, 56px);
}
.circle-left { display: flex; flex-direction: column; }
.circle-headline {
  font-size: clamp(40px, 5.6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-weight: 500;
  margin: 10px 0 20px;
}
.circle-copy {
  color: var(--fg-dim);
  font-size: 17px; line-height: 1.6;
  max-width: 54ch; margin: 0 0 32px;
}
.circle-benefits {
  list-style: none; margin: 0 0 36px; padding: 0;
  display: grid; gap: 0;
  font-size: 15px; color: var(--fg);
}
.circle-benefits li {
  display: grid; grid-template-columns: 40px 1fr;
  align-items: baseline; gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.circle-benefits li:last-child { border-bottom: 1px solid var(--line); }
.tick { color: var(--accent); font-size: 12px; font-weight: 500; }

.circle-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: auto; }
.circle-urgency { color: var(--fg-mute); font-size: 12px; }

.chan {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%; min-height: 440px;
}
.chan-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.chan-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 40%, #000));
  display: grid; place-items: center;
  color: #07110b; font-weight: 700; font-size: 14px; letter-spacing: -0.02em;
}
.chan-name { font-weight: 600; font-size: 14px; }
.chan-sub { font-size: 12px; color: var(--fg-mute); }
.chan-live { font-size: 12px; color: var(--fg-dim); display: inline-flex; align-items: center; gap: 8px; }

.chan-feed {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden; flex: 1;
}
.msg {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg-1);
  font-size: 13px; line-height: 1.55;
  color: var(--fg-dim);
  animation: msgIn .6s var(--ease) both;
}
.msg-meta { font-size: 11px; color: var(--fg-mute); margin-bottom: 6px; }
.msg-body b { color: var(--fg); font-weight: 600; }
.msg:nth-child(1) { animation-delay: .1s; }
.msg:nth-child(2) { animation-delay: .25s; }
.msg:nth-child(3) { animation-delay: .4s; }
.msg-typing { background: transparent; }
.msg-typing .msg-body { display: inline-flex; gap: 6px; }
.dot-typing {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  display: inline-block; opacity: 0.3;
  animation: typing 1.2s infinite var(--ease);
}
.dot-typing:nth-child(2) { animation-delay: .15s; }
.dot-typing:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== WRITING ========== */
.signal-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.signal-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 54px);
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.05;
  max-width: 22ch;
}
.signal-all {
  font-size: 13px; color: var(--fg-dim);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.signal-all:hover { color: var(--accent); border-color: var(--accent); }

.signal-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post {
  background: var(--bg);
  padding: 36px 40px 36px 0;
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
  transition: padding-left .25s var(--ease);
}
.post:hover { padding-left: 20px; }
.post-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--fg-mute);
}
.post h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 24ch;
}
.post p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 15px; line-height: 1.6;
  max-width: 52ch;
}
.post-foot {
  margin-top: auto;
  font-size: 12px; color: var(--fg);
  transition: color .2s var(--ease);
}
.post:hover .post-foot { color: var(--accent); }

/* ========== Q&A ========== */
.qa-grid {
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.qa-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.q {
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
}
.a {
  font-size: 16px; line-height: 1.65;
  color: var(--fg-dim);
  max-width: 58ch;
}

/* ========== FINAL ========== */
.final {
  text-align: center;
  padding-top: calc(var(--pad-y) * 1.2);
  padding-bottom: calc(var(--pad-y) * 1.2);
}
.final-rule {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  margin: 0 auto 40px;
}
.section-label.center { justify-content: center; margin-bottom: 32px; }
.final-headline {
  font-size: clamp(44px, 8vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 auto 24px;
  max-width: 14ch;
}
.final-headline span { display: block; }
.final-copy {
  max-width: 56ch;
  margin: 0 auto 40px;
  color: var(--fg-dim);
  font-size: 17px; line-height: 1.6;
}
.final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========== FOOTER ========== */
.foot {
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 28px;
  max-width: var(--maxw); margin: 0 auto;
}
.foot-top {
  display: grid; grid-template-columns: 1.4fr 2fr;
  gap: 48px; padding-bottom: 48px;
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 40ch; }
.foot-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent); color: #07110b;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: -0.02em;
}
.foot-name { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.foot-desc { color: var(--fg-dim); font-size: 14px; line-height: 1.6; }

.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--fg-dim); }
.foot-cols a { color: var(--fg-dim); transition: color .2s var(--ease); }
.foot-cols a:hover { color: var(--accent); }
.foot-col-label { color: var(--fg-mute); font-size: 12px; margin-bottom: 8px; }

.foot-bottom {
  display: flex; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--fg-mute);
  flex-wrap: wrap; gap: 12px;
}

/* ========== STICKY CTA ========== */
.sticky-cta {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: var(--accent); color: #07110b;
  box-shadow: 0 12px 40px -12px var(--accent-glow);
  transform: translateY(14px); opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* ========== TWEAKS ========== */
.tweaks {
  position: fixed; right: 20px; bottom: 80px; z-index: 60;
  width: 320px; max-width: calc(100vw - 40px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.tweaks[hidden] { display: none; }
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--fg-mute);
}
.tweaks-close { font-size: 18px; line-height: 1; color: var(--fg-dim); }
.tweaks-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tw-row-col { flex-direction: column; align-items: stretch; gap: 8px; }
.tw-row textarea {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 6px; color: var(--fg);
  padding: 10px;
  font: 500 13px var(--f-sans); resize: vertical;
}
.tw-swatches { display: flex; gap: 6px; }
.tw-swatches button {
  width: 22px; height: 22px; border-radius: 999px;
  background: oklch(0.82 0.18 var(--sw));
  border: 1px solid var(--line-strong); cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tw-swatches button[data-v="mono"] { background: var(--fg); }
.tw-swatches button.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); transform: scale(1.08); }
.tw-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.tw-seg button {
  padding: 6px 12px; font-size: 12px; color: var(--fg-dim);
  border-right: 1px solid var(--line);
}
.tw-seg button:last-child { border-right: 0; }
.tw-seg button.is-active { background: var(--accent); color: #07110b; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-foot { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-foot-col { border-right: 0; padding-right: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); padding-right: 0; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { border-right: 1px solid var(--line); }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-intro, .principles-intro, .work-intro { grid-template-columns: 1fr; align-items: start; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-right: 0; padding-right: 0; }
  .timeline li:last-child { border-bottom: 0; }
  .eco-card { grid-column: span 12; }
  .circle-body { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: 1fr; }
  .post { padding-right: 0; }
  .qa-row { grid-template-columns: 1fr; gap: 12px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .principle-list li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  .hero-actions, .final-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .brand-status { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
