/* ============================================================
   KNOWLESOS — THE STEWARD
   Ink black · Emerald · Warm gold · Cream
   ============================================================ */

:root {
  --ink: #070806;
  --ink-2: #0c0e0b;
  --ink-3: #121510;
  --emerald: #1fbd8a;
  --emerald-deep: #0c5c43;
  --emerald-glow: rgba(31, 189, 138, 0.35);
  --emerald-soft: rgba(31, 189, 138, 0.08);
  --gold: #c9a03f;
  --gold-soft: rgba(201, 160, 63, 0.14);
  --cream: #f0ead9;
  --cream-dim: #b9b2a0;
  --cream-faint: #7d786b;
  --hairline: rgba(240, 234, 217, 0.08);
  --glass: rgba(240, 234, 217, 0.03);
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html, body { background: var(--ink); }

body {
  font-family: var(--body);
  color: var(--cream);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}
@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
}

::selection { background: var(--emerald-deep); color: var(--cream); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--emerald-deep); }

/* ============================================================
   AMBIENT LAYERS
   ============================================================ */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.8s steps(2) infinite;
}
@keyframes grainShift {
  0% { background-position: 0 0; }
  50% { background-position: -18px 12px; }
  100% { background-position: 14px -20px; }
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 99;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(4, 5, 4, 0.55) 100%);
}

#particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 15;
  opacity: 0.5;
}

/* ---------- Custom cursor ---------- */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; border-radius: 50%;
  z-index: 9998;
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--cream);
  mix-blend-mode: difference;
}
#cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(240, 234, 217, 0.35);
  z-index: 9997;
  transition: width 0.25s, height 0.25s, border-color 0.25s, box-shadow 0.25s;
}
#cursor-ring.hovering {
  width: 58px; height: 58px;
  border-color: var(--emerald);
  box-shadow: 0 0 24px var(--emerald-glow);
}
@media (max-width: 900px), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 26px;
  transition: opacity 0.9s ease, filter 0.9s ease, visibility 0.9s;
}
#loader.done { opacity: 0; filter: blur(8px); visibility: hidden; }
.loader-line { width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, var(--emerald)); }
.loader-line.bottom { background: linear-gradient(to top, transparent, var(--gold)); }
.loader-brand {
  font-family: var(--display);
  font-size: 30px; letter-spacing: 0.45em; text-indent: 0.45em;
  color: var(--cream);
}
.loader-sub {
  font-size: 9px; letter-spacing: 0.4em; text-indent: 0.4em;
  text-transform: uppercase; color: var(--cream-faint);
}
.loader-bar {
  width: 150px; height: 1px;
  background: rgba(240, 234, 217, 0.1);
  position: relative; overflow: hidden;
}
.loader-bar-fill {
  position: absolute; inset: 0;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}
.loader-pct {
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--cream-dim); font-variant-numeric: tabular-nums;
}

/* ============================================================
   CHAPTER MARKERS
   ============================================================ */
#chapters {
  position: fixed; right: 26px; top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
}
.ch-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(240, 234, 217, 0.22);
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s;
  position: relative;
}
.ch-dot .ch-label {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cream-dim); white-space: nowrap;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.ch-dot:hover .ch-label { opacity: 1; }
.ch-dot.active {
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald-glow);
  transform: scale(1.5);
}
.ch-line {
  width: 1px; height: 26px;
  background: rgba(240, 234, 217, 0.12);
  position: relative; overflow: hidden;
}
.ch-line .fill {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: var(--emerald);
}
@media (max-width: 900px) { #chapters { display: none; } }

/* ============================================================
   CINEMA SECTIONS (sticky canvas + frames)
   ============================================================ */
.cinema { position: relative; }
.cinema .stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.cinema canvas.film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.stage-shade {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,8,6,0.5) 0%, transparent 22%, transparent 68%, rgba(7,8,6,0.72) 100%);
}
.stage-shade.left {
  background: linear-gradient(to right, rgba(7,8,6,0.6) 0%, transparent 45%);
}
.stage-fade {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
  background: var(--ink);
  opacity: 0; transition: opacity 0.1s linear;
}

/* Overlay copy inside cinema sections */
.overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 6vw;
  opacity: 0; visibility: hidden;
  transform: translateY(26px);
  filter: blur(7px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease, visibility 0.9s;
  pointer-events: none;
}
.overlay.visible {
  opacity: 1; visibility: visible;
  transform: translateY(0); filter: blur(0);
  pointer-events: auto;
}
.overlay.center { align-items: center; text-align: center; }
.overlay.right { align-items: flex-end; text-align: right; }

/* ---------- Typography scale ---------- */
.kicker {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.42em; text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 22px;
}
.kicker.gold { color: var(--gold); }

.mega {
  font-family: var(--display);
  font-size: clamp(64px, 11.5vw, 190px);
  line-height: 0.92;
  letter-spacing: 0.015em;
  color: var(--cream);
  text-transform: uppercase;
}
.mega .word { display: inline-block; white-space: nowrap; }
.mega .char { display: inline-block; opacity: 0; transform: translateY(0.35em); transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.19, 1, 0.22, 1); }
.overlay.visible .mega .char { opacity: 1; transform: translateY(0); }

.headline {
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
}
.headline .em { color: var(--emerald); }
.headline .au { color: var(--gold); }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1.25;
  color: var(--cream);
  max-width: 18em;
}

.lede {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.75;
  color: var(--cream-dim);
  max-width: 34em;
}

.hero-roles {
  display: flex; gap: 1.6em; flex-wrap: wrap;
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 34px);
  letter-spacing: 0.14em;
  color: var(--cream-dim);
  text-transform: uppercase;
  margin-top: 28px;
}
.hero-roles span { position: relative; }
.hero-roles span:not(:last-child)::after {
  content: ""; position: absolute; right: -0.9em; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  transform: translateY(-50%);
  background: var(--emerald);
}

/* ---------- Buttons ---------- */
.cta-row { display: flex; gap: 18px; margin-top: 44px; flex-wrap: wrap; }
.btn {
  font-family: var(--body);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.3em; text-indent: 0.3em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: none;
}
@media (pointer: coarse) { .btn { cursor: pointer; } }
.btn.primary {
  background: var(--emerald-deep);
  color: var(--cream);
  border-color: rgba(31, 189, 138, 0.4);
}
.btn.primary:hover {
  background: var(--emerald);
  color: var(--ink);
  box-shadow: 0 0 34px var(--emerald-glow);
}
.btn.ghost {
  color: var(--cream);
  border-color: rgba(240, 234, 217, 0.25);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 9px; letter-spacing: 0.4em; text-indent: 0.4em;
  text-transform: uppercase; color: var(--cream-faint);
  transition: opacity 0.6s;
}
.scroll-hint .wheel {
  width: 1px; height: 42px;
  background: rgba(240, 234, 217, 0.15);
  position: relative; overflow: hidden;
}
.scroll-hint .wheel::after {
  content: ""; position: absolute; top: -40%;
  left: 0; width: 100%; height: 40%;
  background: var(--emerald);
  animation: wheelDrop 2.2s ease-in-out infinite;
}
@keyframes wheelDrop { 0% { top: -40%; } 70%, 100% { top: 110%; } }

/* ============================================================
   FLOW SECTIONS (regular DOM)
   ============================================================ */
.flow {
  position: relative;
  background: var(--ink);
  padding: 20vh 6vw;
  z-index: 2;
}
.flow-inner { max-width: 1280px; margin: 0 auto; }

.section-head { margin-bottom: 9vh; }
.section-title {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.95; text-transform: uppercase;
  color: var(--cream);
}
.section-title .em { color: var(--emerald); }

.reveal {
  opacity: 0; transform: translateY(44px); filter: blur(5px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1), filter 1s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: start;
}
.about-story p {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.9;
  color: var(--cream-dim);
  margin-bottom: 1.7em;
}
.about-story p strong { color: var(--cream); font-weight: 500; }
.about-story .drop::first-letter {
  font-family: var(--serif);
  font-size: 3.4em; float: left;
  line-height: 0.85; padding-right: 0.12em;
  color: var(--gold);
}
.about-aside { position: sticky; top: 14vh; }
.about-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.35; color: var(--cream);
  border-left: 1px solid var(--emerald);
  padding-left: 32px;
}
.about-facts { margin-top: 48px; display: grid; gap: 0; }
.fact {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px; letter-spacing: 0.12em;
}
.fact .k { color: var(--cream-faint); text-transform: uppercase; font-size: 10px; letter-spacing: 0.3em; }
.fact .v { color: var(--cream); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-aside { position: static; } }

/* ---------- Timeline ---------- */
#timeline { padding: 0; }
.tl-track-wrap { position: relative; height: 380vh; }
.tl-sticky {
  position: sticky; top: 0;
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.tl-head { padding: 0 6vw; margin-bottom: 7vh; }
.tl-track {
  display: flex; gap: 3.5vw;
  padding: 0 6vw;
  will-change: transform;
}
.tl-card {
  flex: 0 0 clamp(300px, 30vw, 460px);
  border: 1px solid var(--hairline);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 44px 40px 52px;
  position: relative;
  transition: border-color 0.4s, background 0.4s, transform 0.4s;
}
.tl-card:hover {
  border-color: rgba(31, 189, 138, 0.35);
  background: rgba(240, 234, 217, 0.05);
  transform: translateY(-6px);
}
.tl-card .idx {
  font-family: var(--display);
  font-size: 15px; letter-spacing: 0.2em;
  color: var(--gold);
}
.tl-card .era {
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--emerald); margin-top: 26px;
}
.tl-card h3 {
  font-family: var(--display);
  font-size: clamp(26px, 2.4vw, 38px);
  text-transform: uppercase; font-weight: 400;
  color: var(--cream); margin: 12px 0 18px;
  line-height: 1;
}
.tl-card p { font-size: 14px; line-height: 1.8; color: var(--cream-dim); }
.tl-card::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 0%; height: 1px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width 0.7s ease;
}
.tl-card:hover::before { width: 100%; }
.tl-progress {
  margin: 8vh 6vw 0;
  height: 1px; background: rgba(240, 234, 217, 0.08);
  position: relative;
}
.tl-progress .fill {
  position: absolute; inset: 0;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}

/* ---------- Pillars overlays ---------- */
.pillar-panel {
  max-width: 560px;
  border-left: 1px solid rgba(31, 189, 138, 0.4);
  padding-left: 40px;
}
.pillar-panel .num {
  font-family: var(--display);
  font-size: 15px; letter-spacing: 0.25em;
  color: var(--gold);
}
.pillar-panel h3 {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 130px);
  line-height: 0.95; text-transform: uppercase;
  color: var(--cream);
  margin: 10px 0 20px;
}
.pillar-list { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.pillar-list li {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cream-dim);
  padding-left: 26px; position: relative;
}
.pillar-list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 12px; height: 1px;
  background: var(--emerald);
}

/* ---------- Steward statements ---------- */
.steward-line {
  font-family: var(--display);
  font-size: clamp(46px, 7.5vw, 128px);
  line-height: 1; text-transform: uppercase;
  color: var(--cream);
}
.steward-line .fade { color: var(--cream-faint); }

/* ---------- Featured Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.work-card {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 52px 42px 60px;
  min-height: 420px;
  display: flex; flex-direction: column;
  transition: border-color 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
  text-decoration: none;
}
.work-card:hover { border-color: rgba(31, 189, 138, 0.4); }
.work-card .glowspot {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--emerald-soft), transparent 65%);
  pointer-events: none;
}
.work-card:hover .glowspot { opacity: 1; }
.work-card .kicker { margin-bottom: auto; }
.work-card h3 {
  font-family: var(--display);
  font-size: clamp(30px, 2.8vw, 46px);
  text-transform: uppercase; font-weight: 400;
  color: var(--cream); line-height: 1;
  margin: 34px 0 16px;
}
.work-card p { font-size: 14px; line-height: 1.8; color: var(--cream-dim); }
.work-card .meta {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-faint);
  display: flex; justify-content: space-between; align-items: center;
}
.work-card .meta .arrow { color: var(--emerald); font-size: 14px; transition: transform 0.4s; }
.work-card:hover .meta .arrow { transform: translateX(6px); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: 1fr; } .work-card { min-height: 0; } }

/* ---------- Knowledge Graph ---------- */
#graph-section { padding: 16vh 0 0; }
#graph-section .section-head { padding: 0 6vw; }
.graph-wrap {
  position: relative;
  height: 86vh; min-height: 560px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: radial-gradient(ellipse at 50% 40%, rgba(31,189,138,0.05), transparent 65%);
}
#graph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.graph-legend {
  position: absolute; left: 6vw; bottom: 30px; z-index: 5;
  display: flex; gap: 22px; flex-wrap: wrap;
}
.graph-legend .lg {
  display: flex; align-items: center; gap: 8px;
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cream-dim);
}
.graph-legend .lg i {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block;
}
.graph-panel {
  position: absolute; right: 0; top: 0; bottom: 0; z-index: 6;
  width: min(420px, 92vw);
  background: rgba(9, 11, 9, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--hairline);
  padding: 60px 44px;
  transform: translateX(102%);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex; flex-direction: column;
}
.graph-panel.open { transform: translateX(0); }
.graph-panel .gp-cat {
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  margin-bottom: 18px;
}
.graph-panel h3 {
  font-family: var(--display);
  font-size: 40px; text-transform: uppercase; font-weight: 400;
  line-height: 1; color: var(--cream);
  margin-bottom: 22px;
}
.graph-panel p { font-size: 14px; line-height: 1.85; color: var(--cream-dim); }
.graph-panel .gp-links { margin-top: auto; padding-top: 30px; }
.graph-panel .gp-links .k {
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-faint); margin-bottom: 14px;
}
.gp-chip {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--hairline);
  padding: 8px 14px; margin: 0 8px 8px 0;
  transition: all 0.3s;
}
.gp-chip:hover { border-color: var(--emerald); color: var(--emerald); }
.gp-close {
  position: absolute; top: 22px; right: 22px;
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  background: none; color: var(--cream-dim);
  font-size: 14px; line-height: 1;
  transition: all 0.3s;
}
.gp-close:hover { border-color: var(--gold); color: var(--gold); }
.graph-hint {
  position: absolute; right: 6vw; bottom: 30px; z-index: 5;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cream-faint);
}

/* ============================================================
   AI ASSISTANT
   ============================================================ */
#ai-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 500;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--emerald-deep);
  border: 1px solid rgba(31, 189, 138, 0.5);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
#ai-fab:hover { background: var(--emerald); color: var(--ink); box-shadow: 0 0 36px var(--emerald-glow); }
#ai-fab svg { width: 22px; height: 22px; }
#ai-fab .pulse {
  position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--emerald);
  animation: fabPulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}

#ai-panel {
  position: fixed; right: 28px; bottom: 104px; z-index: 500;
  width: min(400px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 150px));
  background: rgba(9, 11, 9, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(24px) scale(0.98);
  transition: all 0.45s cubic-bezier(0.19, 1, 0.22, 1);
}
#ai-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 12px;
}
.ai-head .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
  animation: aiBreath 2.4s ease-in-out infinite;
}
@keyframes aiBreath { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ai-head .t {
  font-family: var(--display);
  font-size: 16px; letter-spacing: 0.25em;
  color: var(--cream); text-transform: uppercase;
}
.ai-head .s { font-size: 9px; letter-spacing: 0.25em; color: var(--cream-faint); text-transform: uppercase; margin-left: auto; }
.ai-log {
  flex: 1; overflow-y: auto;
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 16px;
}
.msg { max-width: 88%; font-size: 13.5px; line-height: 1.75; }
.msg.bot { color: var(--cream-dim); }
.msg.bot strong { color: var(--cream); font-weight: 500; }
.msg.user {
  align-self: flex-end;
  color: var(--cream);
  background: var(--emerald-soft);
  border: 1px solid rgba(31, 189, 138, 0.2);
  padding: 12px 16px;
}
.msg.typing { color: var(--cream-faint); letter-spacing: 0.3em; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip {
  font-family: var(--body);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--cream-dim);
  background: none;
  border: 1px solid var(--hairline);
  padding: 9px 14px;
  transition: all 0.3s;
  text-align: left;
}
.ai-chip:hover { border-color: var(--emerald); color: var(--emerald); }
.ai-input {
  display: flex; border-top: 1px solid var(--hairline);
}
.ai-input input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--cream); font-family: var(--body); font-size: 13px;
  padding: 18px 22px;
}
.ai-input input::placeholder { color: var(--cream-faint); }
.ai-input button {
  background: none; border: none;
  border-left: 1px solid var(--hairline);
  color: var(--emerald);
  padding: 0 22px;
  font-size: 15px;
  transition: all 0.3s;
}
.ai-input button:hover { background: var(--emerald-soft); }
button { cursor: none; }
@media (pointer: coarse) { button { cursor: pointer; } }
@media (max-width: 600px) {
  #ai-fab { right: 18px; bottom: 18px; width: 52px; height: 52px; }
  #ai-panel { right: 18px; bottom: 84px; }
}

/* ============================================================
   FINALE + FOOTER
   ============================================================ */
.finale-sentence {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 4.2vw, 62px);
  line-height: 1.3; color: var(--cream);
  max-width: 16em;
}
.finale-sentence .em { color: var(--emerald); font-style: normal; }
.finale-sentence .au { color: var(--gold); font-style: normal; }

footer {
  position: relative; z-index: 2;
  background: var(--ink-2);
  border-top: 1px solid var(--hairline);
  padding: 90px 6vw 50px;
}
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
}
.foot-brand {
  font-family: var(--display);
  font-size: 34px; letter-spacing: 0.3em;
  color: var(--cream); text-transform: uppercase;
}
.foot-brand .os { color: var(--emerald); }
.foot-motto { margin-top: 18px; font-size: 12px; line-height: 2; color: var(--cream-faint); letter-spacing: 0.08em; }
.foot-col .k {
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--cream-faint); margin-bottom: 22px;
}
.foot-col a {
  display: block;
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-dim); text-decoration: none;
  padding: 7px 0;
  transition: color 0.3s, transform 0.3s;
}
.foot-col a:hover { color: var(--emerald); transform: translateX(6px); }
.foot-legal {
  max-width: 1280px; margin: 70px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between;
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cream-faint);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr; gap: 40px; } .foot-legal { flex-direction: column; gap: 10px; } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
