/* =========================================================
   Real Intelligence Consultancy — design tokens & styles
   Cira structure, re-skinned in RI's warm serif-led brand
   ========================================================= */

:root {
  /* Exact tokens pulled from realintelligence.netlify.app */
  --bg-base:      #faf8f5;            /* original body background */
  --accent-rust:  #c4572a;            /* original accent (rgb 196,87,42) */
  --accent-rust-d:#a8462c;
  --ink-navy:     #1a1e2e;            /* original heading ink (rgb 26,30,46) */
  --ink-soft:     #2a2f42;
  --text-muted:   #5c5a56;            /* original body text */
  --text-faint:   #9a9489;            /* original muted */
  --surface:      #fffaf6;
  --surface-2:    #ffffff;
  /* Exact original page background (base + two rust radial blushes) */
  --bg-brand:
    radial-gradient(80% 60% at 70% 20%, rgba(196,87,42,0.12), rgba(0,0,0,0)),
    radial-gradient(50% 50% at 20% 80%, rgba(196,87,42,0.05), rgba(0,0,0,0)),
    var(--bg-base);
  --surface-line: rgba(26, 30, 46, 0.10);
  --shadow-card:  0 1px 2px rgba(39,42,63,.04), 0 12px 40px rgba(39,42,63,.08);
  --shadow-float: 0 10px 30px rgba(39,42,63,.14), 0 2px 8px rgba(39,42,63,.08);

  --font-serif: "DM Serif Display", Georgia, serif;  /* real RI brand serif */
  --font-sans:  "Outfit", system-ui, sans-serif;     /* real RI brand sans */
  --font-mono:  "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* DM Serif Display ships a single weight (400) — force it everywhere it's used */
.hero__title, .section__head h2, .brand__title, .brand__tile, .svc-card h3,
.step h3, .step__n, .work-card h3, .modal__card h3, .assistant__avatar,
.footer__clock { font-weight: 400; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-navy);
  background: var(--bg-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none; /* replaced by custom cursor + trail (restored on touch via JS) */
}
body.no-fancy-cursor { cursor: auto; }

/* ---------- Fixed background: cream gradient + animated orange TV noise ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -2; overflow: hidden; }

.bg-gradient {
  position: absolute; inset: 0;
  background: var(--bg-brand);   /* exact original page background */
}
/* drifting orange signal-glow = ambient TV background animation */
.bg-glow {
  position: absolute; top: -15%; left: -15%; width: 55vw; height: 55vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(196,87,42,.18), rgba(196,87,42,0) 70%);
  filter: blur(30px);
  animation: glowDrift 22s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(55vw, 18vh) scale(1.25); }
  100% { transform: translate(20vw, 48vh) scale(1.1); }
}
/* The "TV" — JS canvas redraws vivid orange static every frame */
.bg-noise {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .2; mix-blend-mode: normal; pointer-events: none;
}

/* Custom cursors — 4 styles, switched per section for comparison */
.cur { position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform; }
.cur-dot   { z-index: 10001; width: 7px;  height: 7px;  background: var(--accent-rust); transition: opacity .25s; }
.cur-ring  { z-index: 10000; width: 34px; height: 34px; border: 1.5px solid rgba(196,87,42,.55); transition: width .2s ease, height .2s ease, border-radius .2s ease, border-color .2s ease, background .2s ease, opacity .25s; }
.cur-glow  { z-index: 10000; width: 12px; height: 12px; background: var(--accent-rust); box-shadow: 0 0 22px 10px rgba(196,87,42,.35); transition: width .2s ease, height .2s ease, box-shadow .2s ease, opacity .25s; }
.cur-blend { z-index: 10002; width: 30px; height: 30px; background: #fff; mix-blend-mode: difference; transition: width .2s ease, height .2s ease, opacity .25s; }

/* show only the active mode's element(s) */
body[data-cursor-mode="dotring"]  .cur-dot,
body[data-cursor-mode="dotring"]  .cur-ring,
body[data-cursor-mode="trail"]    .cur-dot,
body[data-cursor-mode="trail"]    .cur-ring,
body[data-cursor-mode="glow"]     .cur-glow,
body[data-cursor-mode="magnetic"] .cur-ring,
body[data-cursor-mode="invert"]   .cur-blend { opacity: 1; }
/* invert sections: over a box, swap the lens for the magnetic ring */
body[data-cursor-mode="invert"].magnet-on .cur-blend { opacity: 0; }
body[data-cursor-mode="invert"].magnet-on .cur-ring  { opacity: 1; }
body.cursor-out .cur { opacity: 0 !important; }
.cursor-trail-canvas { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }

/* hover emphasis */
.cur-ring.is-hover  { border-color: rgba(196,87,42,.9); background: rgba(196,87,42,.06); }
.cur-glow.is-hover  { width: 18px; height: 18px; box-shadow: 0 0 30px 14px rgba(196,87,42,.5); }
.cur-blend.is-hover { width: 54px; height: 54px; }

/* label naming the current cursor style (for the comparison) */
.cursor-label {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; pointer-events: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-navy);
  background: rgba(255,250,246,.82); border: 1px solid var(--surface-line);
  border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .bg-noise { opacity: .08; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Sections: alternating bands for clear separation ---------- */
.section { position: relative; width: 100%; padding: 0; }
.section__inner { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
/* A "band" sits on a solid surface that hides the noise -> visible section break */
.section.band {
  background: var(--surface-2);
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
}
/* 3rd layer: exact original-site background (rust blush on cream), no grain */
.section.plain {
  background: var(--bg-brand);
  border-top: 1px solid var(--surface-line);
  border-bottom: 1px solid var(--surface-line);
}

.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; letter-spacing: -.01em; }
.muted { color: var(--text-muted); }
.accent { color: var(--accent-rust); }
.nowrap { white-space: nowrap; }

/* ---------- NAV (logo left · menu center · regions right, no box) ---------- */
.nav { position: relative; z-index: 50; padding: 24px 0; }
.nav__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav__left { justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.nav__links { justify-self: center; }
.nav__regions {
  display: flex; align-items: center; gap: 9px; padding-left: 2px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--text-faint);
}
.nav__regions i { font-style: normal; color: var(--accent-rust); opacity: .55; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-navy); }
.brand__tile { display: grid; place-items: center; width: 38px; height: 38px; background: var(--accent-rust); color: #fff; border-radius: 10px; font-family: var(--font-serif); font-weight: 600; letter-spacing: .04em; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__title { font-family: var(--font-serif); font-weight: 600; font-size: 18px; color: var(--accent-rust); }
.brand__sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: .22em; color: var(--text-muted); margin-top: 3px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--accent-rust); }
.nav__clock { font-family: var(--font-mono); font-size: 13px; color: var(--ink-navy); letter-spacing: .04em; min-width: 84px; text-align: right; }

/* ---------- HERO ---------- */
.hero { max-width: 1180px; margin: 0 auto; padding: 48px 32px 96px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; color: var(--text-muted); }
.eyebrow .dot, .online { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-rust); display: inline-block; }
.online { background: #3bbf7a; box-shadow: 0 0 0 3px rgba(59,191,122,.18); }
.hero__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -.02em; margin: 20px 0 0; color: var(--ink-navy); }
.hero__title em { font-style: italic; color: var(--accent-rust); }
.hero__sub { margin: 22px 0 0; font-size: 18px; }
.hero__cta { margin-top: 36px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Above-the-fold split: video | channels */
.hero__split {
  margin-top: 44px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
  text-align: left;
}

/* --- TV set housing the video --- */
.tv-set {
  background: linear-gradient(165deg, #23263a, var(--ink-navy));
  border-radius: 20px; padding: 14px; box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 12px;
}
.tv-set__screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #000; box-shadow: inset 0 0 0 4px #0c0e16, inset 0 0 40px rgba(0,0,0,.6);
}
.tv-set__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-set__base { display: flex; align-items: center; gap: 14px; padding: 2px 8px 4px; }
.tv-set__brand { font-family: var(--font-serif); font-size: 16px; color: #fff; }
.tv-set__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.7); }
.tv-set__knob { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6b6f86, #2a2e42); box-shadow: 0 0 0 2px rgba(255,255,255,.08); }

/* --- Big changing capability text, integrated into the background --- */
.channels { position: relative; }
.channels__screen {
  position: relative; min-height: 360px; overflow: hidden;   /* no card chrome */
  display: flex; align-items: center;
}
.channels__static { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .1s linear; pointer-events: none; z-index: 3; mix-blend-mode: screen; }
.channels__screen.is-changing .channels__static { opacity: 1; }
/* bright scan-sweep line racing down during the switch */
.channels__screen::after {
  content: ""; position: absolute; left: -4%; right: -4%; height: 4px; top: -8px; z-index: 4; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,240,225,.95), transparent);
  box-shadow: 0 0 16px 5px rgba(255,205,160,.75);
}
.channels__screen.is-changing::after { animation: sweep .42s linear; }
@keyframes sweep { 0% { top: -8px; opacity: 1; } 100% { top: 100%; opacity: 1; } }
/* faint TV scanlines */
.channels__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .5;
  background: repeating-linear-gradient(rgba(26,30,46,.05) 0 1px, transparent 1px 4px);
  animation: scanMove 6s linear infinite;
}
@keyframes scanMove { to { background-position: 0 8px; } }
.channels__label { position: absolute; top: 4px; left: 2px; z-index: 4; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--accent-rust); }

.channel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0; transform: scale(1.02); transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.channel.is-active { opacity: 1; transform: none; }
/* the new channel rolls in like a CRT settling after a channel change */
.channel.rolling { animation: rollIn .5s cubic-bezier(.2,.85,.25,1); }
@keyframes rollIn {
  0%   { transform: scaleY(.02) translateY(-14%); filter: brightness(3.2); }
  28%  { transform: scaleY(1.12) translateY(-4%);  filter: brightness(1.7); }
  58%  { transform: scaleY(.96)  translateY(3%); }
  100% { transform: scaleY(1)    translateY(0);    filter: none; }
}
/* chromatic (RGB) split on the text mid-switch */
.channel.rolling .channel__title { text-shadow: 2.5px 0 rgba(230,40,90,.5), -2.5px 0 rgba(40,180,230,.45); }
.channel__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 6.5vw, 88px); line-height: .98; letter-spacing: -.02em; margin: 0; color: var(--ink-navy); }
.channel__sub { margin: 0; color: var(--text-muted); font-size: clamp(16px, 1.6vw, 21px); }

/* typewriter for the changing phrase (AnsarTech-style, types left -> right) */
.channel__title { min-height: 1.05em; }
.channel__title.is-typing::after {
  content: ""; display: inline-block; width: .05em; height: .82em; margin-left: .04em;
  background: var(--accent-rust); vertical-align: baseline; animation: caret .8s steps(1) infinite;
}
.channel.is-active .channel__sub { animation: subFade .5s ease both; animation-delay: .15s; }
@keyframes subFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 500; border-radius: var(--radius-pill); padding: 13px 24px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, color .2s; }
.btn--primary { background: var(--ink-navy); color: #fff; }
.btn--primary:hover { background: var(--accent-rust); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,250,246,.6); color: var(--ink-navy); border-color: var(--surface-line); }
.btn--ghost:hover { border-color: var(--accent-rust); color: var(--accent-rust); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- SERVICES ---------- */
.tag-row { display: inline-flex; gap: 8px; margin-bottom: 14px; }
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; padding: 5px 12px; border: 1px solid var(--surface-line); border-radius: var(--radius-pill); color: var(--text-muted); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.svc-card { background: var(--surface-2); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.svc-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; margin: 0 0 8px; }
.svc-card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- PROCESS ---------- */
.process__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-card); }
.step__n { font-family: var(--font-serif); font-size: 40px; color: var(--accent-rust); display: block; line-height: 1; margin-bottom: 14px; }
.step h3 { font-family: var(--font-serif); font-weight: 500; font-size: 20px; margin: 0 0 6px; }
.step p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* ---------- CASE STUDIES ---------- */
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 21px; margin: 16px 0 4px; display: flex; justify-content: space-between; gap: 12px; }
.work-card .arrow { color: var(--accent-rust); }
.work-card .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-muted); margin: 0; }
.tv-thumb {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: linear-gradient(165deg, #2f3247, var(--ink-navy));
  border: 1px solid var(--surface-line); display: grid; place-items: center;
  box-shadow: var(--shadow-card); overflow: hidden;
}
.tv-screen {
  width: 64%; height: 58%; border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 4px),
    radial-gradient(120% 120% at 50% 30%, var(--accent-rust) 0%, var(--accent-rust-d) 60%, #7d3320 100%);
  box-shadow: inset 0 0 24px rgba(0,0,0,.45), 0 0 0 4px #14161f; position: relative;
}
.tv-screen::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .25; mix-blend-mode: overlay;
}

/* ---------- CONTACT ---------- */
.contact__form { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--text-muted); }
.field input, .field textarea { font-family: var(--font-sans); font-size: 15px; padding: 12px 14px; border: 1px solid var(--surface-line); border-radius: 12px; background: var(--surface-2); color: var(--ink-navy); resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-rust); }
.contact__form .btn { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--accent-rust); min-height: 18px; margin: 0; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink-navy); color: #f3ece6; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer__clock { font-family: var(--font-serif); font-size: 28px; color: #fff; }
.footer__cols { display: flex; gap: 48px; }
.footer__cols div { display: flex; flex-direction: column; gap: 8px; }
.footer__cols a { text-decoration: none; color: rgba(243,236,230,.7); font-size: 14px; }
.footer__cols a:hover { color: var(--accent-rust); }
.footer__legal { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 11px; color: rgba(243,236,230,.5); letter-spacing: .04em; }

/* ---------- FLOATING ASSISTANT (add-on) ---------- */
.assistant {
  position: fixed; left: 50%; top: 50%; z-index: 80;
  transform: translate(-50%, -50%);
  width: 540px; max-width: calc(100vw - 32px);
  /* Frosted, orange-tinted crystal glass (Emanuel-style transparency) */
  background: linear-gradient(155deg, rgba(255,252,250,.55), rgba(255,235,225,.38));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 22px;
  /* 3D depth: floating shadow + inner top highlight + warm bottom rim */
  box-shadow:
    0 26px 60px rgba(26,30,46,.22),
    0 6px 18px rgba(26,30,46,.12),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -18px 38px rgba(196,87,42,.12),
    inset 0 0 0 1px rgba(255,255,255,.22);
  backdrop-filter: blur(9px) saturate(1.25);
  -webkit-backdrop-filter: blur(9px) saturate(1.25);
  overflow: hidden;
  transition: width .3s ease, box-shadow .3s ease, bottom .35s cubic-bezier(.4,0,.2,1);
}
/* glassy specular sheen for the crystal look */
.assistant::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 38%);
}
.assistant > * { position: relative; z-index: 3; }
.assistant__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: default; border-bottom: 1px solid var(--surface-line); }
.assistant__online { display: inline-flex; }
.assistant__prompt { flex: 1; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.assistant__toggle { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--surface-line); background: var(--surface-2); color: var(--ink-navy); cursor: pointer; transition: background .2s, color .2s; }
.assistant__toggle:hover { background: var(--accent-rust); color: #fff; border-color: var(--accent-rust); }
.assistant__toggle .ic-up { display: none; }

.assistant__panel { display: block; }
.assistant__header { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--surface-line); }
.assistant__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--surface-line); font-family: var(--font-serif); font-size: 13px; font-weight: 600; color: var(--accent-rust); }
.assistant__id { display: flex; flex-direction: column; line-height: 1.25; }
.assistant__id strong { font-size: 14px; }
.assistant__id em { font-style: normal; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.assistant__body { padding: 14px; max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { align-self: flex-start; max-width: 85%; background: var(--surface-2); border: 1px solid var(--surface-line); padding: 10px 14px; border-radius: 12px; font-size: 14px; min-height: 1em; }
.bubble--user { align-self: flex-end; background: var(--ink-navy); color: #fff; border-color: var(--ink-navy); }
/* blinking caret while "Mike" is typing */
.bubble.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: var(--accent-rust); margin-left: 2px; vertical-align: -2px; animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips[hidden] { display: none; }
.chips:not([hidden]) { animation: chipsIn .4s ease both; }
@keyframes chipsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chip { font-family: var(--font-sans); font-size: 13px; padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--surface-line); background: var(--surface-2); color: var(--ink-soft); cursor: pointer; transition: all .18s; }
.chip:hover { border-color: var(--accent-rust); color: var(--accent-rust); }
.chip.is-active { background: var(--accent-rust); color: #fff; border-color: var(--accent-rust); }
.assistant__foot { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--surface-line); }
.assistant__input { flex: 1; min-width: 0; border: 1px solid var(--surface-line); background: var(--surface-2); border-radius: var(--radius-pill); padding: 9px 14px; font-family: var(--font-sans); font-size: 14px; color: var(--ink-navy); }
.assistant__input:focus { outline: none; border-color: var(--accent-rust); }
.assistant__call { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent-rust); color: var(--accent-rust); background: transparent; border-radius: var(--radius-pill); padding: 8px 12px; font-family: var(--font-sans); font-size: 13px; cursor: pointer; transition: all .2s; }
.assistant__call:hover { background: var(--accent-rust); color: #fff; }
.assistant__call span { display: none; }
.assistant__send { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; border: none; background: var(--ink-navy); color: #fff; cursor: pointer; transition: background .2s; }
.assistant__send:hover { background: var(--accent-rust); }

/* Collapsed: shrink to the bar and dock to the bottom of the page (Emanuel-style) */
.assistant[data-state="collapsed"] {
  width: 460px;
  top: auto; bottom: 24px;
  transform: translateX(-50%);
}
.assistant[data-state="collapsed"] .assistant__bar { padding: 16px 18px; }
.assistant__body { max-height: 52vh; }
.assistant[data-state="collapsed"] .assistant__panel { display: none; }
.assistant[data-state="collapsed"] .assistant__bar { border-bottom: none; }
.assistant[data-state="collapsed"] .assistant__toggle .ic-down { display: none; }
.assistant[data-state="collapsed"] .assistant__toggle .ic-up { display: block; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(39,42,63,.4); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal__card { background: var(--surface-2); border-radius: var(--radius); padding: 32px; max-width: 420px; text-align: center; position: relative; box-shadow: var(--shadow-card); }
.modal__card h3 { font-family: var(--font-serif); font-weight: 500; margin: 0 0 10px; font-size: 24px; }
.modal__card p { margin: 0 0 20px; }
.modal__close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero__split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { cursor: auto; }
  .cur, .cursor-label, .cursor-trail-canvas { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav__links { display: none; }
  .nav__regions { font-size: 10px; letter-spacing: .08em; gap: 6px; }
  .services__grid, .process__grid, .work__grid, .contact__form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .section__inner { padding: 64px 20px; }
  .hero { padding: 32px 20px 64px; }
  .assistant { width: calc(100vw - 24px); }
  .assistant[data-state="collapsed"] { width: calc(100vw - 24px); }
}

/* ============ Coming-soon / publish-version additions ============ */
.ribbon {
  position: relative; z-index: 60; text-align: center;
  background: var(--ink-navy); color: #f3ece6;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  padding: 9px 16px;
}
.hero__soon { margin: 22px auto 0; max-width: 620px; font-size: 16px; color: var(--text-muted); }
.hero__soon strong { color: var(--accent-rust); }

/* consultancy subsection in How I Work */
.consult {
  max-width: 720px; margin: 44px auto 0; text-align: center;
  background: var(--surface-2); border: 1px solid var(--surface-line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-card);
}
.consult__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 3vw, 32px); margin: 0 0 18px; color: var(--ink-navy); }
.consult__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }
.consult__list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 16px; }
.consult__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-rust); font-weight: 600; }

/* case-studies coming-soon */
.soon-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0; }
.soon-tv { width: 220px; max-width: 70vw; aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: linear-gradient(165deg, #2f3247, var(--ink-navy)); border: 1px solid var(--surface-line);
  display: grid; place-items: center; box-shadow: var(--shadow-card); }
.soon-tv .tv-screen { width: 64%; height: 58%; }
.soon-text { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px); color: var(--ink-navy); margin: 0; }

/* mailto contact */
.contact__cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.btn--lg { font-size: 17px; padding: 16px 30px; }
.contact__mail { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); text-decoration: none; }
.contact__mail:hover { color: var(--accent-rust); }
