/* ───────────────────────────── Delegent marketing site ──────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:opsz,ital,wght@6..72,0,400;6..72,0,500;6..72,1,400&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --bg:          #faf5ec;
  --bg-chrome:   #f1ead9;
  --bg-elev:     #fdf9f0;
  --bg-deep:     #ede4cf;
  --fg:          #2a2620;
  --muted:       #8b8276;
  --hint:        #6b6456;
  --line:        #e6ddcc;
  --line-strong: #d6ccb6;
  --tint-hover:  #eee5d0;

  --coral:       #4a5a8a;
  --coral-soft:  rgba(74,90,138,0.12);
  --coral-deep:  #3d4a71;
  --accent:      var(--coral);

  /* product UI accents (used inside scenes) */
  --teams-bg:     #f3f6fb;
  --teams-blue:   #4264c0;
  --teams-blue-soft: #dbe4f4;
  --outlook-blue: #0078d4;
  --outlook-bg:   #f5f8fc;

  --font-mono:  'DM Mono', 'SF Mono', Consolas, monospace;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-highlight: Georgia, 'Times New Roman', serif;

  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 10px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(42,38,32,0.04);
  --shadow-md: 0 6px 24px rgba(42,38,32,0.08);
  --shadow-lg: 0 24px 70px rgba(42,38,32,0.14);
  --shadow-window: 0 20px 60px rgba(42,38,32,0.16), 0 4px 12px rgba(42,38,32,0.06);

  --max-w: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

/* Display italics use Georgia by default for cleaner, less-swashy letterforms. */
em {
  font-family: var(--font-highlight);
  font-style: italic;
  letter-spacing: -0.005em;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* type */
.t-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.t-display { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.022em; line-height: 1.02; font-size: clamp(48px, 7vw, 100px); }
.t-display-md { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; line-height: 1.04; font-size: clamp(36px, 4.6vw, 64px); }
.t-h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.015em; line-height: 1.1; }
.t-h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; line-height: 1.2; }
.t-mono { font-family: var(--font-mono); }
.t-muted { color: var(--muted); }
.t-coral { color: var(--coral); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px var(--pad-x); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.brand-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--coral); position: relative; display: inline-flex; align-items: center; justify-content: center; color: #fff5ef; font-family: var(--font-mono); font-weight: 700; font-size: 13px; }
.brand-mark-img { display: inline-block; width: 32px; height: 32px; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; font-size: 14px; color: var(--hint); }
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--coral); }
.nav-links a.nav-reveal { position: relative; }
.nav-links a.nav-reveal:hover, .nav-links a.nav-reveal.is-revealed { color: var(--coral); border-bottom-color: var(--coral); }
.nav-links a.nav-reveal .nav-reveal-inner { display: inline-block; transition: opacity .12s ease; }
.nav-disabled { padding: 6px 0; font-size: 14px; color: var(--muted); cursor: not-allowed; opacity: 0.55; user-select: none; }
.footer-disabled { color: var(--muted); cursor: not-allowed; opacity: 0.5; }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* hamburger toggle — desktop hidden, shown ≤720px */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-m); align-items: center; justify-content: center; flex-direction: column; gap: 4px; margin-left: 4px; }
.nav-toggle:hover { background: var(--tint-hover); }
.nav-toggle-bar { display: block; width: 18px; height: 1.5px; background: var(--fg); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-mobile-panel { display: none; }
.nav-mobile-panel[hidden] { display: none !important; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta-demo { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: 12px; padding: 10px var(--pad-x); }
  .nav-mobile-panel { display: flex; flex-direction: column; gap: 6px; padding: 14px var(--pad-x) 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 96%, transparent); }
  .nav-mobile-links { display: flex; flex-direction: column; }
  .nav-mobile-links a, .nav-mobile-links .nav-disabled { padding: 12px 4px; font-size: 16px; color: var(--fg); border-bottom: 1px solid var(--line); }
  .nav-mobile-links a[aria-current="page"] { color: var(--coral); }
  .nav-mobile-demo { align-self: flex-start; margin-top: 10px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius-m); font-size: 14px; font-weight: 500; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn-ghost { color: var(--fg); }
.btn-ghost:hover { background: var(--tint-hover); }
.btn-primary { background: var(--coral); color: #fff5ef; }
.btn-primary:hover { background: var(--coral-deep); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--fg); }
.btn-outline:hover { background: var(--tint-hover); border-color: var(--fg); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 14.5px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-launch .launch-ico { color: #fff5ef; flex-shrink: 0; transition: transform .15s; }
.btn-launch:hover .launch-ico { transform: translateX(1px); }

/* sections */
section { padding: clamp(80px, 10vw, 140px) var(--pad-x); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 48px; margin-bottom: 56px; }
.section-head .t-eyebrow { padding-top: 8px; }
.section-head h2 { max-width: 760px; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }
.hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px var(--pad-x) 40px; background: var(--bg); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; font-size: 14px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--hint); transition: color .15s; }
.footer a:hover { color: var(--fg); }
.footer-bottom { max-width: var(--max-w); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; } }

/* ─── HERO TOP ─── */
.hero { padding: clamp(72px, 9vw, 130px) var(--pad-x) clamp(40px, 6vw, 70px); text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; margin-bottom: 28px; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.hero h1 { max-width: 1100px; margin: 0 auto 28px; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--hint); max-width: 660px; margin: 0 auto 36px; line-height: 1.5; }
.hero-ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── LOGO BAR ─── */
.logos { padding: 24px var(--pad-x) 56px; }
.logos-inner { max-width: var(--max-w); margin: 0 auto; }
.logos-label { text-align: center; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 28px; }
.logos-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center; opacity: 0.7; filter: saturate(0); }
.logos-row .lg { font-family: var(--font-serif); font-size: 17px; color: var(--fg); text-align: center; letter-spacing: -0.01em; opacity: 0.7; font-weight: 500; }
@media (max-width: 800px) { .logos-row { grid-template-columns: repeat(3, 1fr); gap: 20px 32px; } }

/* ─── 3 CORES STRIP ─── */
.cores { padding: clamp(32px, 4vw, 56px) var(--pad-x) clamp(56px, 7vw, 100px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cores-head { max-width: var(--max-w); margin: 0 auto clamp(32px, 3.5vw, 48px); display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cores-label { text-align: center; color: var(--fg); font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.015em; line-height: 1.1; text-transform: none; margin: 0; }
.cores-faq-link { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff5ef; background: var(--coral); text-decoration: none; padding: 9px 16px; border: 1px solid var(--coral); border-radius: 999px; transition: background .15s, border-color .15s, transform .15s; }
.cores-faq-link:hover { background: var(--coral-deep, var(--coral)); border-color: var(--coral-deep, var(--coral)); transform: translateY(-1px); }
@media (max-width: 720px) { .cores-head { flex-direction: column; gap: 14px; } }
.cores-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 72px); }
.core { display: flex; flex-direction: column; gap: 14px; }
.core-ico { width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--coral-soft); color: var(--coral-deep); display: inline-flex; align-items: center; justify-content: center; }
.core-ico svg { width: 24px; height: 24px; display: block; }
.core-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.012em; line-height: 1.2; color: var(--fg); }
.core-body { color: var(--hint); font-size: 14.5px; line-height: 1.55; max-width: 360px; }
@media (max-width: 720px) { .cores-inner { grid-template-columns: 1fr; gap: 36px; } }

/* ─── SCENE BLOCK (the meat) ─── */
.scene-section { padding: 80px var(--pad-x) 100px; }
.scene-block { max-width: var(--max-w); margin: 0 auto; }
.scene-block + .scene-block { margin-top: clamp(80px, 10vw, 140px); }
.scene-head { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; margin-bottom: 36px; align-items: end; }
.scene-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--coral); padding-bottom: 6px; }
.scene-title h2 { max-width: 720px; }
.scene-title p { color: var(--hint); margin-top: 12px; max-width: 600px; font-size: 16px; }
.scene-controls { display: flex; gap: 8px; align-items: center; padding-bottom: 4px; }
.scene-replay { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--hint); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
.scene-replay:hover { background: var(--tint-hover); color: var(--fg); }
@media (max-width: 760px) { .scene-head { grid-template-columns: 1fr; gap: 12px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; isolation: isolate; min-height: 540px; }
.split::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-strong); z-index: 5; }
.split-side { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 16px; min-height: 540px; position: relative; }
.split-left { background: var(--bg-chrome); }
.split-right { background: #2b2620; color: #f0e9d8; }
.split-label { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.split-left .split-label { color: var(--coral); }
.split-right .split-label { color: rgba(240,233,216,0.55); }
.split-label .with { display: inline-flex; align-items: center; gap: 8px; }
.split-label .with::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.split-label .timer { display: none; }
.split-stage { flex: 1; position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--bg); }
.split-right .split-stage { background: #1f1b16; }
.scene-progress { height: 2px; background: rgba(0,0,0,0.06); border-radius: 2px; overflow: hidden; }
.split-right .scene-progress { background: rgba(255,255,255,0.08); }
.scene-progress .bar { height: 100%; background: var(--coral); width: 0%; transition: width .3s linear; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split::before { display: none; } .split-side { min-height: 460px; } }

/* ─── VIDEO SCENE (real product footage) ─── */
.video-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #1f1b16;
  aspect-ratio: 16 / 9;
  isolation: isolate;
}
.scene-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.scene-veil.video-veil { border-radius: var(--radius-xl); }

/* ─── SCENE VEIL (translucent overlay; lifts on hover) ─── */
.scene-veil {
  position: absolute; inset: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 28, 22, 0.62);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  cursor: pointer;
  transition: opacity 500ms ease, backdrop-filter 500ms ease, background 500ms ease;
  opacity: 1;
  border-radius: var(--radius-xl);
}
.scene-veil.lifted {
  opacity: 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: rgba(34, 28, 22, 0);
  pointer-events: none;
}
.scene-veil .veil-inner {
  text-align: center; color: #fff5ef;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  transform: translateY(0); transition: transform 500ms ease, opacity 500ms ease;
}
.scene-veil.lifted .veil-inner { transform: translateY(-8px); opacity: 0; }
.veil-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 245, 239, 0.7);
}
.veil-title {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(40px, 5.4vw, 76px); line-height: 1;
  color: #fdf6ea;
}
.veil-hint {
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 245, 239, 0.55);
  display: inline-flex; align-items: center; gap: 8px;
}
.veil-hint::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(232, 93, 69, 0.25); animation: pulse 1.6s infinite; }

/* ─── windows / cards inside scenes ─── */
.win { background: #fff; border-radius: 8px; box-shadow: var(--shadow-window); overflow: hidden; font-family: var(--font-sans); color: #1f1f1f; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f3f3f3; border-bottom: 1px solid #e1e1e1; }
.win-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #d8d8d8; }
.win-bar .dot.r { background: #ed6a5e; }
.win-bar .dot.y { background: #f5be4f; }
.win-bar .dot.g { background: #61c554; }
.win-bar .title { margin-left: 8px; font-size: 11.5px; color: #6b6b6b; font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ─── Delegent panel (notification card) ─── */
.delegent-panel { background: var(--bg-elev); border-radius: 12px; box-shadow: var(--shadow-window); border: 1px solid var(--line); overflow: hidden; font-family: var(--font-sans); }
.delegent-panel .dp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-chrome); }
.delegent-panel .dp-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--coral); color: #fff5ef; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.delegent-panel .dp-title { font-family: var(--font-serif); font-size: 14px; font-weight: 500; color: var(--fg); }
.delegent-panel .dp-meta { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; }
.dp-body { padding: 4px 0; }
.dp-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 12px 14px; border-bottom: 1px dashed var(--line); align-items: start; }
.dp-row:last-child { border-bottom: 0; }
.dp-row .ico { width: 22px; height: 22px; border-radius: 5px; background: var(--coral-soft); color: var(--coral); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; font-weight: 600; flex-shrink: 0; }
.dp-row .body { display: flex; flex-direction: column; gap: 4px; }
.dp-row .kind { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.dp-row .text { font-size: 13.5px; color: var(--fg); line-height: 1.4; }
.dp-row .meta-line { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.dp-row .actions { display: flex; gap: 6px; flex-shrink: 0; }
.dp-actions-btn { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 600; font-size: 13px; cursor: pointer; transition: background .15s; }
.dp-actions-btn.accept { background: var(--coral-soft); color: var(--coral); }
.dp-actions-btn.accept:hover { background: var(--coral); color: #fff5ef; }
.dp-actions-btn.reject { background: rgba(0,0,0,0.04); color: var(--muted); }
.dp-row.accepted { opacity: 0.55; }
.dp-row.accepted .text { text-decoration: line-through; text-decoration-color: var(--coral); }
.dp-row.rejected { opacity: 0.35; }

/* ─── Diligent project view (scene 3 left) ─── */
.dproj { background: var(--bg-elev); border-radius: 12px; box-shadow: var(--shadow-window); border: 1px solid var(--line); padding: 16px; height: 100%; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.dproj-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dproj-head .crumb { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.dproj-head .title { font-family: var(--font-serif); font-size: 17px; font-weight: 500; }
.dproj-head .badge { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); text-transform: uppercase; }
.dproj-section-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; padding: 6px 0 2px; }
.dproj-entry { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 8px 10px; border-radius: 6px; background: rgba(0,0,0,0.02); }
.dproj-entry .who { font-family: var(--font-mono); font-size: 10.5px; color: var(--coral); padding-top: 2px; min-width: 56px; }
.dproj-entry .what { font-size: 13px; color: var(--fg); line-height: 1.4; }
.dproj-entry .when { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 3px; letter-spacing: 0.04em; }

/* ─── Teams-ish chat (scenes 1 & 3 right) ─── */
.teams-win { background: var(--teams-bg); border-radius: 8px; height: 100%; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-window); }
.teams-bar { background: var(--teams-blue); color: #fff; padding: 9px 14px; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.teams-bar .av { width: 22px; height: 22px; border-radius: 50%; background: #6884d2; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.teams-bar .name { font-weight: 600; }
.teams-bar .pres { margin-left: auto; font-size: 10.5px; opacity: 0.85; font-family: var(--font-mono); }
.teams-msgs { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow: hidden; }
.tmsg { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; background: #fff; color: #1f1f1f; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.tmsg.me { align-self: flex-end; background: var(--teams-blue); color: #fff; }
.tmsg .ts { display: block; font-family: var(--font-mono); font-size: 9.5px; opacity: 0.6; margin-top: 4px; letter-spacing: 0.04em; }

/* ─── notes doc (scene 1 right second window) ─── */
.notes-doc { background: #fff; border-radius: 6px; padding: 18px 20px; font-family: 'Times New Roman', Georgia, serif; font-size: 12.5px; line-height: 1.6; color: #2a2620; height: 100%; overflow: hidden; box-shadow: var(--shadow-window); position: relative; }
.notes-doc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: #f3f3f3; border-bottom: 1px solid #e1e1e1; }
.notes-doc .title-line { padding-top: 8px; font-weight: 700; margin-bottom: 8px; }
.notes-doc .scrap { color: #444; opacity: 0; transition: opacity .3s; }
.notes-doc .scrap.shown { opacity: 1; }
.notes-doc .scrap.fmt { color: #1f1f1f; font-family: var(--font-sans); font-size: 12px; }
.notes-doc .cursor::after { content: '|'; display: inline-block; animation: blink 1.1s steps(2) infinite; color: #888; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ─── Excel grid (scene 1 right late) ─── */
.excel { background: #fff; border-radius: 6px; height: 100%; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-window); font-family: 'Calibri', 'Inter', sans-serif; font-size: 11px; }
.excel-head { background: #107c41; color: #fff; padding: 6px 10px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.excel-formula { background: #f3f3f3; padding: 4px 10px; font-family: var(--font-mono); font-size: 10.5px; color: #444; border-bottom: 1px solid #e1e1e1; }
.excel-grid { flex: 1; display: grid; grid-template-columns: 30px repeat(5, 1fr); }
.excel-cell { padding: 4px 6px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; min-height: 22px; display: flex; align-items: center; }
.excel-cell.h { background: #f3f3f3; color: #555; font-size: 10px; justify-content: center; font-weight: 600; }
.excel-cell.r { background: #f3f3f3; color: #888; font-size: 10px; justify-content: center; }
.excel-cell.num { font-family: var(--font-mono); font-feature-settings: 'tnum'; justify-content: flex-end; font-size: 10.5px; }
.excel-cell.label { font-weight: 600; font-size: 10.5px; color: #1f1f1f; }
.excel-cell.typing { background: rgba(16,124,65,0.08); }

/* Light Excel variant (lives on the LEFT/Delegent side so it sits on cream chrome) */
.excel-light { background: #fff; border-radius: 6px; height: 100%; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-window); font-family: 'Calibri', 'Inter', sans-serif; font-size: 11px; position: relative; }
.excel-light .excel-head { background: #107c41; color: #fff; padding: 6px 10px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.excel-light .excel-formula { background: #f3f3f3; padding: 4px 10px; font-family: var(--font-mono); font-size: 10.5px; color: #444; border-bottom: 1px solid #e1e1e1; min-height: 22px; }
.excel-wide { flex: 1; display: grid; grid-template-columns: 26px 1.7fr 1fr 1fr 1fr 1fr; align-content: start; }
.excel-wide .excel-cell { padding: 6px 8px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; min-height: 24px; display: flex; align-items: center; }
.excel-wide .excel-cell.h { background: #f3f3f3; color: #555; font-size: 10px; justify-content: center; font-weight: 600; }
.excel-wide .excel-cell.r { background: #f3f3f3; color: #888; font-size: 10px; justify-content: center; }
.excel-wide .excel-cell.num { font-family: var(--font-mono); font-feature-settings: 'tnum'; justify-content: flex-end; font-size: 10.5px; color: #1f1f1f; }
.excel-wide .excel-cell.label { font-weight: 600; font-size: 10.5px; color: #1f1f1f; }
.excel-wide .excel-cell.hi { background: rgba(16,124,65,0.05); color: #0b5e30; font-weight: 600; }
.excel-wide .excel-cell.sum { background: #f7f3e6; border-top: 2px solid #d6ccb6; font-weight: 700; color: #1f1f1f; }
.excel-wide .excel-cell.hi-main { background: rgba(232,93,69,0.10); color: var(--coral-deep); font-weight: 700; font-size: 12px; }

/* Delegent quiet badge inside Excel (bottom-right) */
.dlg-badge { position: absolute; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 10px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-md); max-width: 320px; z-index: 3; }
.dlg-badge .d { width: 22px; height: 22px; border-radius: 5px; background: var(--coral); color: #fff5ef; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.dlg-badge .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dlg-badge .line1 { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.dlg-badge .line1 .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: pulse 1.4s infinite; }
.dlg-badge .line2 { font-size: 11.5px; color: var(--fg); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 290px; }

/* ─── Outlook-ish inbox (scene 2 right) ─── */
.outlook { background: #fff; border-radius: 8px; height: 100%; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-window); min-height: 0; }
.outlook-bar { background: var(--outlook-blue); color: #fff; padding: 10px 14px; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.outlook-bar .o-mark { width: 18px; height: 18px; border-radius: 3px; background: #fff; color: var(--outlook-blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; }
.outlook-toolbar { background: #f3f6fb; padding: 8px 14px; font-family: var(--font-mono); font-size: 10.5px; color: #555; border-bottom: 1px solid #e1e6ee; display: flex; gap: 14px; }
.inbox { flex: 1; overflow: hidden; min-height: 0; }
.imail { display: grid; grid-template-columns: 28px 1fr 110px; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #e8edf4; align-items: start; cursor: default; transition: background .15s, opacity .3s; }
.imail.read { opacity: 0.55; }
.imail.junk { opacity: 0.45; }
.imail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--outlook-blue); margin-top: 6px; }
.imail.read .dot { background: transparent; border: 1px solid #ccd5e2; }
.imail .from { font-size: 12px; font-weight: 600; color: #1f1f1f; }
.imail .subj { font-size: 11.5px; color: #444; margin-top: 2px; }
.imail .preview { font-size: 11px; color: #888; margin-top: 2px; }
.imail .when { font-family: var(--font-mono); font-size: 10px; color: #888; text-align: right; padding-top: 2px; }
.imail.flagged { background: rgba(232,93,69,0.08); }
.imail.flagged .dot { background: var(--coral); }

/* ─── New joiner: random files browser (scene 3 right) ─── */
.files-win { background: #fff; border-radius: 8px; height: 100%; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-window); }
.files-bar { background: #f3f3f3; padding: 8px 12px; border-bottom: 1px solid #e1e1e1; font-family: var(--font-mono); font-size: 11px; color: #555; display: flex; gap: 8px; align-items: center; }
.files-list { flex: 1; padding: 6px 0; overflow: hidden; font-size: 12px; }
.frow { display: grid; grid-template-columns: 22px 1fr 80px 60px; gap: 10px; padding: 7px 14px; align-items: center; transition: background .2s; }
.frow:hover, .frow.active { background: #eef3fb; }
.frow .ic { width: 16px; height: 16px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: #fff; }
.frow .ic.x { background: #107c41; }
.frow .ic.p { background: #b7472a; }
.frow .ic.w { background: #2b579a; }
.frow .ic.f { background: #888; }
.frow .nm { color: #1f1f1f; font-size: 11.5px; }
.frow .sz, .frow .dt { font-family: var(--font-mono); font-size: 10px; color: #888; }

/* ─── Stats strip ─── */
.stats { padding: 60px var(--pad-x); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-chrome); }
.stats-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: left; }
.stat .n { font-family: var(--font-serif); font-size: clamp(38px, 4.5vw, 60px); font-weight: 400; letter-spacing: -0.02em; line-height: 1; color: var(--fg); }
.stat .n em { color: var(--coral); font-style: normal; }
.stat .l { margin-top: 10px; font-size: 13.5px; color: var(--hint); line-height: 1.4; max-width: 220px; }
@media (max-width: 800px) { .stats-inner { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ─── Built for teams ─── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.team-card { background: var(--bg); padding: 36px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.team-card .tg { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.team-card h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.team-card p { color: var(--hint); font-size: 14px; }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }

/* ─── CTA band ─── */
.cta-band { padding: clamp(80px, 9vw, 140px) var(--pad-x); text-align: center; background: var(--bg-chrome); border-top: 1px solid var(--line); }
.cta-band h2 { max-width: 780px; margin: 0 auto 24px; }
.cta-band h2 em { font-style: italic; color: var(--coral); }
.cta-band p { color: var(--hint); font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
.cta-band .btns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── Inline CTA bar (between scenes) ─── */
.cta-inline { max-width: var(--max-w); margin: 60px auto 0; padding: 28px 32px; border-radius: var(--radius-l); background: var(--bg-chrome); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inline .copy { font-family: var(--font-serif); font-size: 22px; line-height: 1.25; max-width: 580px; }
.cta-inline .copy em { color: var(--coral); font-style: italic; }
.cta-inline .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── FAQ ─── */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { display: block; border-bottom: 1px solid var(--line); padding: 0; cursor: pointer; }
.faq-item summary { list-style: none; display: grid; grid-template-columns: 40px 1fr 24px; gap: 20px; padding: 22px 0; align-items: start; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; padding-top: 3px; }
.faq-item .q { font-family: var(--font-serif); font-size: 19px; font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; min-width: 0; }
.faq-item .mark { color: var(--muted); font-family: var(--font-mono); font-size: 18px; line-height: 1; padding-top: 6px; transition: transform .2s; text-align: right; }
.faq-item[open] .mark { transform: rotate(45deg); color: var(--coral); }
.faq-item .a { padding: 0 20px 22px 60px; max-width: 820px; color: var(--hint); font-size: 15px; line-height: 1.55; }

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-elev); display: flex; flex-direction: column; gap: 18px; position: relative; }
.price.featured { border-color: var(--coral); background: var(--bg); box-shadow: 0 0 0 4px var(--coral-soft); }
.price.featured::before { content: 'Most popular'; position: absolute; top: -11px; left: 28px; padding: 3px 10px; background: var(--coral); color: #fff5ef; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; border-radius: 999px; text-transform: uppercase; }
.price .name { font-family: var(--font-serif); font-size: 26px; letter-spacing: -0.01em; }
.price .tg { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.price .desc { color: var(--hint); font-size: 14px; min-height: 48px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--fg); }
.price ul li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; line-height: 1.4; }
.price ul li::before { content: '+'; color: var(--coral); font-family: var(--font-mono); font-weight: 500; padding-top: 1px; }
.price .btn { margin-top: auto; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ─── Solutions page cards ─── */
.sol-grid { 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); }
.sol-card { background: var(--bg); padding: 40px 36px; display: flex; flex-direction: column; gap: 14px; min-height: 280px; }
.sol-card .tg { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.sol-card h3 { font-family: var(--font-serif); font-size: 26px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.sol-card p { color: var(--hint); font-size: 14.5px; line-height: 1.55; }
.sol-card .scenarios { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--hint); }
.sol-card .scenarios .s::before { content: '— '; color: var(--coral); }
@media (max-width: 800px) { .sol-grid { grid-template-columns: 1fr; } }

/* ─── Manifesto ─── */
.manifesto { padding: clamp(80px, 10vw, 160px) var(--pad-x) clamp(60px, 8vw, 120px); }
.manifesto-inner { max-width: 760px; margin: 0 auto; }

/* ─── About: manifesto + segment cards layout ─── */
.about { padding: clamp(72px, 8vw, 130px) var(--pad-x) clamp(60px, 8vw, 110px); }
.about-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: clamp(40px, 5vw, 84px); align-items: start; }
.about-left { min-width: 0; }
.about-left h1 { font-family: var(--font-serif); font-size: clamp(40px, 5.4vw, 68px); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 44px; }
.about-left h1 em { font-style: italic; color: var(--coral); }
.about-left p { font-size: 18px; line-height: 1.6; color: var(--fg); margin-bottom: 24px; }
.about-left p.drop::first-letter { font-family: var(--font-serif); font-size: 3.2em; float: left; line-height: 0.85; padding: 6px 12px 0 0; color: var(--coral); }
.about-left .pull { font-family: var(--font-serif); font-size: 25px; line-height: 1.3; letter-spacing: -0.01em; padding: 28px 0 28px 22px; border-left: 2px solid var(--coral); color: var(--fg); margin: 32px 0; font-style: italic; }
.about-left .signoff { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

.about-right { display: flex; flex-direction: column; gap: 14px; }
.about-right .right-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.seg-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.seg-card .seg-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.seg-card .seg-name { font-family: var(--font-serif); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.seg-card .seg-line { font-size: 14px; line-height: 1.5; color: var(--hint); margin: 0; }

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
}

.manifesto h1 { font-family: var(--font-serif); font-size: clamp(44px, 6vw, 72px); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 48px; }
.manifesto h1 em { font-style: italic; color: var(--coral); }
.manifesto p { font-size: 19px; line-height: 1.6; color: var(--fg); margin-bottom: 28px; }
.manifesto p.drop::first-letter { font-family: var(--font-serif); font-size: 3.2em; float: left; line-height: 0.85; padding: 6px 12px 0 0; color: var(--coral); }
.manifesto .pull { font-family: var(--font-serif); font-size: 28px; line-height: 1.3; letter-spacing: -0.01em; padding: 32px 0 32px 24px; border-left: 2px solid var(--coral); color: var(--fg); margin: 32px 0; }
.manifesto .signoff { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ─── Tweaks panel ─── */
.tweaks { position: fixed; bottom: 20px; right: 20px; width: 270px; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-lg); z-index: 100; font-size: 13px; display: none; }
.tweaks.open { display: block; }
.tweaks .head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tweaks .body { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.tweaks .row { display: flex; flex-direction: column; gap: 8px; }
.tweaks .row label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tweaks .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks .pill { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; cursor: pointer; background: var(--bg); color: var(--fg); }
.tweaks .pill[aria-pressed="true"] { background: var(--coral); color: #fff5ef; border-color: transparent; }
.tweaks .swatches { display: flex; gap: 8px; }
.tweaks .sw { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; outline: 1px solid var(--line); }
.tweaks .sw[aria-pressed="true"] { border-color: var(--fg); }


/* ═══ Scene 1 LEFT — file drag, dock, ghost, cell selection ═══ */
.excel-cell.xl-sel { outline: 2px solid #107c41; outline-offset: -2px; background: rgba(16,124,65,0.06); position: relative; z-index: 2; }
.file-chip { position: absolute; bottom: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px 7px 7px; background: #fff; border: 1px solid #cbd5e0; border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,0.12); cursor: grab; font-size: 11.5px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; z-index: 4; }
.file-chip.appear { opacity: 1; transform: translateY(0); }
.file-chip.dimmed { opacity: 0.35; }
.file-chip .chip-ic { width: 18px; height: 18px; border-radius: 3px; background: #107c41; color: #fff; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.file-chip .chip-nm { color: #1f1f1f; font-weight: 500; }

.dlg-dock { position: absolute; bottom: 14px; right: 14px; width: 320px; background: var(--bg-elev); border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 12px 14px 14px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s, border-color .25s, background .25s; z-index: 4; }
.dlg-dock.appear { opacity: 1; transform: translateY(0); }
.dlg-dock.drop-hover { border-color: var(--coral); border-style: solid; background: var(--coral-soft); }
.dlg-dock .dock-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.dlg-dock .dock-head .d { width: 18px; height: 18px; border-radius: 4px; background: var(--coral); color: #fff5ef; font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dlg-dock .dock-hint { font-size: 12px; color: var(--muted); padding: 14px 8px; text-align: center; font-style: italic; }
.dlg-dock .dock-file { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.dlg-dock .dock-file .chip-ic { width: 22px; height: 22px; border-radius: 4px; background: #107c41; color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.dlg-dock .dock-file .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dlg-dock .dock-file .nm { font-size: 12px; color: var(--fg); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg-dock .dock-file .sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.dlg-dock .dock-file .badge-shared { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; padding: 3px 7px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); }
.dlg-dock .assign-row { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--fg); }
.dlg-dock .assign-row .at { color: var(--muted); font-family: var(--font-mono); }
.dlg-dock .assign-row .who-pill { padding: 1px 7px; background: var(--coral-soft); color: var(--coral); border-radius: 4px; font-weight: 600; font-size: 11.5px; }
.dlg-dock .assign-row .note { color: var(--fg); }
.dlg-dock .assign-row .note.cursor::after { content: '|'; display: inline-block; animation: blink 1.1s steps(2) infinite; color: #888; margin-left: 1px; }
.dlg-dock .assign-status { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; color: #1d8a4a; letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; }
.dlg-dock .assign-status .check { background: #1d8a4a; color: #fff; width: 14px; height: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }

.file-ghost { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px 7px 7px; background: #fff; border: 1px solid var(--coral); border-radius: 6px; box-shadow: 0 12px 26px rgba(0,0,0,0.22); font-size: 11.5px; pointer-events: none; z-index: 6; transform: scale(0.96); opacity: 0.95; transition: transform .15s; }
.file-ghost.grabbed { transform: scale(1.04) rotate(-2deg); }
.file-ghost .chip-ic { width: 18px; height: 18px; border-radius: 3px; background: #107c41; color: #fff; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.file-ghost .chip-nm { color: #1f1f1f; font-weight: 500; }

/* ═══ Scene 1 RIGHT — pre-existing notes, selection, ctx menu, compose ═══ */
.notes-doc .scrap.selected { background: #b3d4fc; color: #000; }
.ctx-menu { position: absolute; left: 38%; top: 38%; background: #fff; border: 1px solid #d6d6d6; border-radius: 4px; box-shadow: 0 8px 22px rgba(0,0,0,0.22); padding: 4px 0; min-width: 160px; font-family: 'Segoe UI', var(--font-sans); font-size: 12px; color: #1f1f1f; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; z-index: 12; }
.ctx-menu.shown { opacity: 1; transform: translateY(0); }
.ctx-menu .ctx-item { padding: 6px 14px; cursor: default; }
.ctx-menu .ctx-item:hover, .ctx-menu .ctx-item.active { background: #0078d4; color: #fff; }
.ctx-menu .ctx-item.dim { color: #aaa; }
.ctx-menu .ctx-sep { height: 1px; background: #ececec; margin: 4px 0; }
.ctx-menu.clicked .ctx-item.active { background: #005ba1; }

.compose-win { background: #fff; border-radius: 6px; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-window); overflow: hidden; font-family: 'Segoe UI', var(--font-sans); font-size: 12px; color: #1f1f1f; }
.compose-win .cmp-bar { background: #0078d4; color: #fff; padding: 6px 12px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.compose-win .cmp-row { display: grid; grid-template-columns: 70px 1fr; padding: 7px 14px; border-bottom: 1px solid #ececec; align-items: center; }
.compose-win .cmp-row .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: #888; text-transform: uppercase; }
.compose-win .cmp-row .v { color: #1f1f1f; font-size: 12px; }
.compose-win .cmp-body { padding: 14px; flex: 1; overflow: hidden; line-height: 1.55; }
.compose-win .cmp-body .cmp-line { color: #1f1f1f; }
.compose-win .cmp-body .cmp-line.faint { color: #b04848; margin-top: 12px; }
.compose-win .cmp-body .cmp-line.cursor::after { content: '|'; display: inline-block; animation: blink 1.1s steps(2) infinite; color: #888; margin-left: 2px; }
.compose-win .cmp-body .pasted-block { background: #fff8d2; padding: 6px 8px; border-left: 3px solid #d9b24a; margin: 8px 0; font-family: 'Times New Roman', Georgia, serif; color: #444; font-size: 11.5px; }

/* ═══ Scene 2 — capped scrolling inbox ═══ */
.inbox { flex: 1; min-height: 0; max-height: 360px; overflow: hidden; position: relative; }
.inbox::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(to bottom, transparent, #ffffff); pointer-events: none; }
.imail { opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s, background .15s; }
.imail.settled { transform: translateY(0); }

/* ═══ Scene 3 LEFT — hover tooltip on context entries ═══ */
.dproj-entry.hoverable { cursor: default; transition: background .2s; position: relative; }
.dproj-entry.hovered { background: var(--coral-soft); }
.src-tip { position: absolute; left: 50%; top: -8px; transform: translate(-50%, -100%) translateY(4px); background: #2b2620; color: #fff5ef; padding: 8px 12px; border-radius: 8px; font-size: 11.5px; line-height: 1.4; white-space: nowrap; box-shadow: 0 8px 22px rgba(0,0,0,0.28); display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 8; pointer-events: none; }
.src-tip.shown { transform: translate(-50%, -100%); opacity: 1; }
.src-tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 9px; height: 9px; background: #2b2620; }
.src-tip-k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: rgba(255,245,239,0.55); text-transform: uppercase; }
.src-tip-v { font-size: 11.5px; }

/* ═══ Scene 3 RIGHT — file viewer overlay ═══ */
.file-viewer { position: absolute; inset: 8px; background: #fff; border-radius: 8px; box-shadow: 0 24px 48px rgba(0,0,0,0.32); display: flex; flex-direction: column; overflow: hidden; z-index: 7; opacity: 0; transform: scale(0.96) translateY(8px); transition: opacity .25s, transform .25s; }
.file-viewer.open { opacity: 1; transform: scale(1) translateY(0); }
.file-viewer .fv-bar { background: #2b579a; color: #fff; padding: 7px 12px; display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.file-viewer .fv-bar .fv-ic { width: 18px; height: 18px; border-radius: 3px; background: #fff; color: #2b579a; font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.file-viewer .fv-bar .fv-nm { flex: 1; }
.file-viewer .fv-bar .fv-x { color: #fff; opacity: 0.7; cursor: pointer; }
.file-viewer .fv-body { flex: 1; overflow: auto; padding: 18px 26px; font-family: 'Times New Roman', Georgia, serif; font-size: 12.5px; color: #2a2620; line-height: 1.65; scroll-behavior: smooth; }
.file-viewer .fv-body .fv-h { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.file-viewer .fv-body p { margin: 4px 0; }


/* Scene 3 — Teams chat overlay sitting ON TOP of the file browser */
.teams-overlay { position: absolute; left: 50%; top: 50%; width: min(78%, 360px); transform: translate(-50%, -42%) scale(0.96); opacity: 0; transition: opacity .3s, transform .3s; z-index: 9; box-shadow: 0 24px 50px rgba(0,0,0,0.36); border-radius: 10px; overflow: hidden; }
.teams-overlay.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.teams-overlay .teams-win { height: auto; }
.teams-overlay .teams-msgs { max-height: 200px; padding: 12px 14px; overflow: hidden; }


/* ═══════════════════════════════════════════════════════════════════
   New surfaces (rewrite v2): meeting overlay, calendar toast, notepad,
   notes app, project tabs/files/emails/preview, ec-edit, cc-autocomplete,
   kbd-pop, static mail reader.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Teams meeting (shared start, scene 1) ─── */
.meet-shell { flex: 1; background: #1f1b16; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-window); position: relative; }
.meet-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; padding: 6px; }
.meet-tile { position: relative; background: linear-gradient(135deg, #3a3128, #2a231d); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 48px; }
.meet-tile.self { background: linear-gradient(135deg, #4a3d31, #3a3128); outline: 2px solid rgba(255,200,170,0.18); }
.meet-tile .av { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,245,239,0.12); color: #fff5ef; font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; letter-spacing: 0.04em; }
.meet-tile .nm { font-size: 9.5px; color: rgba(255,245,239,0.75); font-family: var(--font-mono); letter-spacing: 0.04em; }
.meet-tile .mic { position: absolute; bottom: 4px; right: 5px; font-size: 8px; opacity: 0.7; }
.meet-tile .mic.mute { opacity: 0.35; }
.meet-controls { background: #15110d; padding: 8px 12px; display: flex; align-items: center; gap: 14px; }
.meet-controls .mc-time { font-family: var(--font-mono); font-size: 10px; color: rgba(255,245,239,0.55); margin-right: auto; }
.meet-controls .mc-btn { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,245,239,0.08); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.meet-controls .mc-leave { background: #c0392b; color: #fff; padding: 6px 11px; border-radius: 5px; font-size: 11px; font-weight: 600; transition: transform .15s, background .15s; cursor: pointer; }
.meet-controls .mc-leave.clicked { transform: scale(0.94); background: #962b1f; }

/* ─── Calendar toast (shared start, scene 3) ─── */
.cal-toast { background: #fff; border-radius: 10px; box-shadow: var(--shadow-window); overflow: hidden; max-width: 380px; align-self: center; margin-top: 28px; border: 1px solid var(--line); }
.cal-toast .ct-bar { background: #f6f1e7; padding: 8px 14px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: #6a5e4f; letter-spacing: 0.06em; text-transform: uppercase; }
.cal-toast .ct-body { padding: 16px 18px 10px; }
.cal-toast .ct-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.cal-toast .ct-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; font-family: var(--font-mono); }
.cal-toast .ct-foot { padding: 10px 18px 14px; display: flex; gap: 8px; }
.cal-toast .ct-btn { background: var(--coral); color: #fff5ef; padding: 6px 14px; border-radius: 5px; font-size: 11.5px; font-weight: 600; }
.cal-toast .ct-btn.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }

/* ─── Notepad (scene 1 right) ─── */
.notepad { flex: 1; background: #fff; border-radius: 4px; box-shadow: var(--shadow-window); display: flex; flex-direction: column; overflow: hidden; position: relative; font-family: 'Lucida Console', Consolas, monospace; }
.notepad .np-bar { background: #1561c2; color: #fff; padding: 4px 10px; font-size: 11px; font-family: 'Segoe UI', sans-serif; }
.notepad .np-menu { background: #f0f0f0; padding: 3px 10px; font-size: 11px; color: #333; border-bottom: 1px solid #d0d0d0; font-family: 'Segoe UI', sans-serif; letter-spacing: 0.2em; }
.notepad .np-body { flex: 1; padding: 12px 14px; font-size: 12px; color: #1a1a1a; line-height: 1.7; overflow: hidden; }
.np-line { padding: 1px 4px; transition: background .2s; }
.np-line.selected { background: #316ac5; color: #fff; }
.kbd-pop { position: absolute; bottom: 14px; right: 14px; display: flex; gap: 4px; opacity: 0; transition: opacity .25s; font-family: var(--font-mono); }
.kbd-pop.shown { opacity: 1; }
.kbd-pop .k { background: #2a2620; color: #fff5ef; padding: 4px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; box-shadow: 0 2px 0 #15110d; }

/* ─── Notes app (scene 3 right, phase A) ─── */
.notes-app { flex: 1; background: #fff8e8; border-radius: 8px; box-shadow: var(--shadow-window); display: flex; flex-direction: column; overflow: hidden; }
.notes-app .na-bar { background: #f3ebd3; color: #5a4a30; padding: 6px 12px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.06em; border-bottom: 1px solid #e0d4ad; }
.notes-app .na-body { flex: 1; padding: 14px 18px; font-family: 'Caveat', 'Segoe Script', cursive; font-size: 14.5px; color: #3a2f1f; line-height: 1.6; white-space: pre-wrap; overflow: hidden; scroll-behavior: smooth; }

/* ─── Delegent project memory tabs (scene 3 left) ─── */
.dproj { background: var(--bg-elev); border-radius: 12px; box-shadow: var(--shadow-window); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.dproj .dproj-head { padding: 12px 16px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.dproj .dproj-head .crumb { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.dproj .dproj-head .title { font-size: 14px; font-weight: 600; color: var(--ink); }
.dproj .dproj-head .badge { background: var(--coral); color: #fff5ef; font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.08em; margin-left: auto; }
.dproj-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding: 0 14px; background: rgba(0,0,0,0.015); }
.dproj-tab { background: transparent; border: none; padding: 9px 14px; font-size: 11.5px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s, background .15s; font-family: inherit; }
.dproj-tab:hover { color: var(--ink); }
.dproj-tab.active { color: var(--ink); border-bottom-color: var(--coral); font-weight: 600; }
.dproj-tab.clicking { background: var(--coral-soft); }
.dproj-tabbody { flex: 1; padding: 12px 16px 14px; overflow: hidden; }
.dproj-section-title { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin: 4px 0 8px; }
.dproj-files, .dproj-emails { display: flex; flex-direction: column; gap: 6px; }
.dproj-file { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--bg); border-radius: 6px; border: 1px solid var(--line); position: relative; }
.dproj-file .ic { width: 18px; height: 18px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: #fff; }
.dproj-file .ic.x { background: #107c41; }
.dproj-file .ic.p { background: #b7472a; }
.dproj-file .ic.w { background: #2b579a; }
.dproj-file .meta .nm { font-size: 12px; color: var(--ink); font-weight: 500; }
.dproj-file .meta .sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 2px; }
.dproj-view { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); padding: 4px 10px; border-radius: 4px; font-family: var(--font-mono); font-size: 10px; cursor: pointer; transition: background .15s, border-color .15s; }
.dproj-view:hover, .dproj-view.clicked { background: var(--coral); color: #fff5ef; border-color: var(--coral); }
.dproj-preview { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #2b2620; color: #fff5ef; padding: 12px 14px; border-radius: 8px; box-shadow: 0 16px 32px rgba(0,0,0,0.28); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; z-index: 10; }
.dproj-preview.open { opacity: 1; transform: translateY(0); }
.dproj-preview .dpv-text { font-size: 12px; line-height: 1.5; }
.dproj-preview .dpv-src { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,245,239,0.12); }
.dproj-preview .dpv-src .k { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: rgba(255,245,239,0.55); text-transform: uppercase; }
.dproj-preview .dpv-src .v { font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,245,239,0.85); }
.dproj-email { display: grid; grid-template-columns: 80px 60px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--bg); border-radius: 6px; border: 1px solid var(--line); position: relative; transition: background .2s; }
.dproj-email.hovered { background: var(--coral-soft); }
.dproj-email .who { font-size: 12px; font-weight: 600; color: var(--ink); }
.dproj-email .when { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.dproj-email .summary { font-size: 12px; color: var(--ink); }

.dp-head .dp-sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ─── Email cards (scene 2 left) ─── */
.email-cards { display: flex; flex-direction: column; gap: 10px; padding: 12px; overflow-y: auto; }
.ecard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: background .25s, border-color .25s, opacity .25s;
}
.ecard.hovered { background: var(--coral-soft); border-color: rgba(217,117,87,0.35); }
.ecard.accepted { opacity: 0.55; background: rgba(122,168,112,0.06); border-color: rgba(122,168,112,0.32); }
.ecard.accepted::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #7aa870;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.ec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ec-from { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ec-when { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.ec-subj { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.ec-body {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
  font-style: italic;
  padding: 6px 10px;
  border-left: 2px solid var(--line);
  background: rgba(0,0,0,0.015);
}
.ec-action {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--coral-soft);
  border: 1px dashed rgba(217,117,87,0.4);
  border-radius: 6px;
  font-size: 11.5px;
}
.ec-arrow { font-family: var(--font-mono); font-size: 10px; color: var(--coral); letter-spacing: 0.04em; font-weight: 600; }
.ec-action-text { color: var(--ink); font-weight: 500; }
.ec-btns { display: flex; gap: 6px; align-self: flex-end; }
.ec-btn {
  padding: 5px 12px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: transform .15s, background .2s, color .2s;
}
.ec-btn.accept { background: var(--coral); color: #fff5ef; border-color: var(--coral); }
.ec-btn.accept.clicked { transform: scale(0.92); }
.ec-btn.edit:hover, .ec-btn.edit.clicked { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ec-btn.edit.clicked { transform: scale(0.92); }

/* ─── ec-edit (scene 2 left, edit deadline) ─── */
.ec-deadline { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 3px; background: rgba(217,178,74,0.18); color: #6b5219; margin-left: 6px; }
.ec-deadline.edited { background: rgba(122,168,112,0.22); color: #2f5a25; }
.ec-edit-input { display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; }
.ec-edit-text { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 6px; border-radius: 3px; background: #fff; border: 1px solid var(--coral); color: var(--ink); min-width: 60px; }
.ec-edit-text.cursor::after { content: '|'; animation: blink 1.1s steps(2) infinite; margin-left: 1px; }
.ec-edit-save { background: var(--coral); color: #fff5ef; border: none; padding: 3px 8px; border-radius: 3px; font-family: var(--font-mono); font-size: 9.5px; cursor: pointer; transition: transform .15s; }
.ec-edit-save.clicked { transform: scale(0.92); }

/* ─── CC autocomplete (scene 2 right) ─── */
.compose-win .cmp-row .v.focused { background: #fffbeb; outline: 1.5px solid #d9b24a; border-radius: 3px; padding: 2px 4px; }
.cc-pill { background: #d9e6f7; color: #1f3d6a; padding: 2px 8px; border-radius: 12px; font-size: 11px; }
.cc-autocomplete { position: absolute; left: 80px; top: 100px; background: #fff; border: 1px solid #d0d0d0; border-radius: 6px; box-shadow: 0 12px 24px rgba(0,0,0,0.18); padding: 4px; min-width: 220px; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; z-index: 12; pointer-events: none; }
.cc-autocomplete.shown { opacity: 1; transform: translateY(0); }
.acomp-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; }
.acomp-item.highlighted { background: #eef3fb; }
.acomp-item .ac-av { width: 22px; height: 22px; border-radius: 50%; background: #2b579a; color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.acomp-item .ac-av.g { background: #888; }
.acomp-item .ac-nm { font-size: 11.5px; color: #1f1f1f; font-weight: 600; }
.acomp-item .ac-em { font-size: 10px; color: #888; font-family: var(--font-mono); }
.cmp-foot { padding: 8px 14px; border-top: 1px solid #e1e1e1; }
.cmp-send { background: #2b579a; color: #fff; border: none; padding: 5px 14px; border-radius: 4px; font-size: 11.5px; cursor: pointer; transition: transform .15s, background .15s; }
.cmp-send.clicked { transform: scale(0.94); background: #1c3e75; }

/* ─── Static mail reader (scene 2 right reading pane) ─── */
.mail-reader-static { background: #fff; border-radius: 6px; box-shadow: var(--shadow-window); display: flex; flex-direction: column; overflow: hidden; }
.mail-reader-static .mr-bar { background: #f3f3f3; padding: 7px 12px; border-bottom: 1px solid #e1e1e1; display: flex; justify-content: space-between; font-size: 11px; color: #555; }
.mail-reader-static .mr-tool-btn { color: #2b579a; cursor: pointer; padding: 2px 6px; border-radius: 3px; transition: background .15s; }
.mail-reader-static .mr-tool-btn.clicked { background: #2b579a; color: #fff; }
.mail-reader-static .mr-head { padding: 12px 16px; border-bottom: 1px solid #eee; }
.mail-reader-static .mr-from { font-size: 12.5px; font-weight: 600; color: #1f1f1f; }
.mail-reader-static .mr-em { color: #888; font-weight: 400; font-family: var(--font-mono); font-size: 11px; }
.mail-reader-static .mr-meta { font-size: 11px; color: #888; margin-top: 2px; }
.mail-reader-static .mr-subj { font-size: 13.5px; font-weight: 600; color: #1f1f1f; margin-top: 8px; }
.mail-reader-static .mr-body { flex: 1; padding: 14px 18px; font-family: 'Times New Roman', Georgia, serif; font-size: 12.5px; color: #2a2620; line-height: 1.65; overflow: hidden; }
.mail-reader-static .mr-body p { margin: 4px 0; }
.mail-reader-static .mr-quote { border-left: 3px solid #d9b24a; padding-left: 10px; margin-top: 10px; color: #777; }

/* ─── Excel grid for scene 1 (5 columns) ─── */
.excel-grid.s1l-grid { display: grid; grid-template-columns: 26px 1.6fr 1fr 1fr 1fr; align-content: start; flex: 1; }
.excel-grid.s1l-grid .excel-cell { padding: 6px 8px; border-right: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; min-height: 24px; display: flex; align-items: center; font-size: 11.5px; color: #1f1f1f; }
.excel-grid.s1l-grid .excel-cell.h { background: #f3f3f3; font-family: var(--font-mono); font-size: 10px; color: #555; font-weight: 600; }
.excel-grid.s1l-grid .excel-cell.r { background: #f3f3f3; justify-content: center; font-family: var(--font-mono); font-size: 10px; color: #555; }
.excel-grid.s1l-grid .excel-cell.label { color: #1f1f1f; }
.excel-grid.s1l-grid .excel-cell.num { font-family: var(--font-mono); font-size: 11px; }
.excel-grid.s1l-grid .excel-cell.xl-just-filled { animation: xlfill .55s ease; }
@keyframes xlfill { 0% { background: #fff8d2; } 100% { background: transparent; } }

/* ─── Delegent panel: dp-actions accept-all ─── */
.dp-foot { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.dp-accept-all { background: var(--coral); color: #fff5ef; border: none; padding: 6px 14px; border-radius: 5px; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: transform .15s; }
.dp-accept-all.clicked { transform: scale(0.94); }
.dp-row.accepted { opacity: 0.55; }
.dp-row.accepted .text { text-decoration: line-through; }

/* ─── Pulse animation (used by indicators) ─── */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }



/* ═══ Scene 2 RIGHT — persistent Outlook split + floating Teams card ═══ */

/* Split layout: inbox always visible on left, content pane on right */
.outlook.outlook-split { display: flex; flex-direction: column; min-height: 0; }
.outlook-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; }
.inbox.inbox-fixed {
  max-height: none;
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid #e1e6ee;
  background: #fafbfd;
}
.inbox.inbox-fixed::after { display: none; }
.inbox.inbox-fixed .imail {
  opacity: 1;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  grid-template-columns: none;
}
.inbox.inbox-fixed .imail .dot { display: none; }
.inbox.inbox-fixed .imail .from { font-size: 11.5px; }
.inbox.inbox-fixed .imail .subj { font-size: 10.5px; line-height: 1.3; color: #555; }
.inbox.inbox-fixed .imail .when { font-size: 9px; color: #999; align-self: flex-end; margin-top: -14px; }
.inbox.inbox-fixed .imail.flagged { background: rgba(232,93,69,0.06); border-left: 2px solid var(--coral); padding-left: 10px; }
.inbox.inbox-fixed .imail.opened { background: #d8e4f5; border-left: 2px solid var(--outlook-blue); padding-left: 10px; }

.outlook-pane {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.outlook-pane .pane-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 11.5px;
  font-style: italic;
}
.outlook-pane .mr-bar {
  background: #f3f3f3;
  padding: 7px 12px;
  border-bottom: 1px solid #e1e1e1;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #555;
  flex-shrink: 0;
}
.outlook-pane .mr-tool-btn { color: #2b579a; cursor: pointer; padding: 2px 6px; border-radius: 3px; transition: background .15s; }
.outlook-pane .mr-tool-btn.clicked { background: #2b579a; color: #fff; }
.outlook-pane .mr-head { padding: 12px 14px 8px; border-bottom: 1px solid #ececec; flex-shrink: 0; }
.outlook-pane .mr-from { font-size: 12.5px; font-weight: 600; color: #1f1f1f; }
.outlook-pane .mr-from .mr-em { color: #888; font-weight: 400; font-size: 11px; }
.outlook-pane .mr-meta { font-size: 10.5px; color: #888; margin-top: 2px; font-family: var(--font-mono); }
.outlook-pane .mr-subj { font-size: 13px; font-weight: 600; color: #1f1f1f; margin-top: 6px; }
.outlook-pane .mr-body { padding: 14px; font-size: 12px; color: #333; line-height: 1.55; overflow-y: auto; flex: 1; min-height: 0; }
.outlook-pane .mr-body p { margin: 0 0 8px; }
.outlook-pane .mr-quote { color: #888; font-size: 11px; margin-top: 12px; padding-left: 8px; border-left: 2px solid #ddd; }
.outlook-pane .mr-sent-banner {
  background: rgba(122,168,112,0.12);
  color: #2f5a25;
  padding: 6px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(122,168,112,0.2);
}
.outlook-pane .mr-sent-banner .check { width: 14px; height: 14px; background: #7aa870; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }

/* Compose form inside the pane */
.outlook-pane .compose-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.outlook-pane .compose-inner .cmp-bar { background: #0078d4; color: #fff; padding: 6px 12px; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.06em; }
.outlook-pane .compose-inner .cmp-row { display: grid; grid-template-columns: 60px 1fr; padding: 6px 12px; border-bottom: 1px solid #ececec; align-items: center; }
.outlook-pane .compose-inner .cmp-row .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; color: #888; text-transform: uppercase; }
.outlook-pane .compose-inner .cmp-row .v { color: #1f1f1f; font-size: 11.5px; min-height: 14px; }
.outlook-pane .compose-inner .cmp-row .v.focused { background: #fffbeb; outline: 1.5px solid #d9b24a; border-radius: 3px; padding: 2px 4px; }
.outlook-pane .compose-inner .cmp-body { padding: 12px; flex: 1; font-size: 11.5px; line-height: 1.5; color: #1f1f1f; overflow: hidden; min-height: 0; }
.outlook-pane .compose-inner .cmp-body .cmp-line.cursor::after { content: '|'; animation: blink 1.1s steps(2) infinite; color: #888; margin-left: 1px; }
.outlook-pane .compose-inner .cmp-foot { padding: 8px 12px; border-top: 1px solid #ececec; display: flex; gap: 8px; }
.outlook-pane .compose-inner .cmp-send { background: #0078d4; color: #fff; border: none; padding: 5px 16px; border-radius: 4px; font-size: 11px; cursor: pointer; transition: transform .15s; }
.outlook-pane .compose-inner .cmp-send.clicked { transform: scale(0.92); background: #005a9e; }

.outlook-pane .cc-autocomplete {
  position: absolute;
  left: 60px;
  top: 60px;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
  padding: 4px;
  min-width: 200px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
  z-index: 12;
  pointer-events: none;
}
.outlook-pane .cc-autocomplete.shown { opacity: 1; transform: translateY(0); }
.outlook-pane .acomp-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; font-size: 11px; }
.outlook-pane .acomp-item.highlighted { background: #eef3fb; }
.outlook-pane .acomp-item .ac-av { width: 22px; height: 22px; border-radius: 50%; background: #b87a4e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }
.outlook-pane .acomp-item .ac-av.g { background: #888; }
.outlook-pane .acomp-item .ac-nm { font-size: 11px; font-weight: 500; color: #222; }
.outlook-pane .acomp-item .ac-em { font-size: 9.5px; color: #888; }

/* Floating Teams card overlay */
.teams-float {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
  overflow: hidden;
  font-family: 'Segoe UI', var(--font-sans);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity .35s, transform .35s;
  z-index: 20;
  border: 1px solid rgba(0,0,0,0.08);
}
.teams-float.shown { opacity: 1; transform: translateY(0) scale(1); }
.teams-float.dismissing { opacity: 0; transform: translateY(20px) scale(0.95); }
.teams-float .tf-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #6264a7;
  color: #fff;
}
.teams-float .tf-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b87a4e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.teams-float .tf-meta { flex: 1; }
.teams-float .tf-name { font-size: 12px; font-weight: 600; }
.teams-float .tf-pres { font-size: 10px; opacity: 0.85; margin-top: 1px; }
.teams-float .tf-x { font-size: 16px; opacity: 0.7; cursor: pointer; line-height: 1; }
.teams-float .tf-msgs {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  background: #f5f5f9;
}
.teams-float .tf-msgs .tmsg {
  background: #fff;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #222;
  max-width: 92%;
  align-self: flex-start;
  border: 1px solid #ececf2;
}
.teams-float .tf-msgs .tmsg.me {
  align-self: flex-end;
  background: #e7e7f3;
  border-color: #d8d8e7;
}
.teams-float .tf-msgs .tmsg .ts { font-size: 9px; color: #888; margin-left: 6px; font-family: var(--font-mono); }
.teams-float .tf-input {
  padding: 8px 12px;
  border-top: 1px solid #ececf2;
  background: #fff;
  font-size: 10.5px;
  color: #999;
  font-style: italic;
}
.teams-float .tf-input::before { content: 'Type a message...'; }

/* ─── phone-specific overrides (≤520px) ─────────────────────── */
@media (max-width: 520px) {
  section { padding: clamp(56px, 12vw, 100px) var(--pad-x); }
  .hero { padding: clamp(48px, 12vw, 90px) var(--pad-x) clamp(28px, 7vw, 56px); }
  .hero-ctas { flex-direction: column; width: 100%; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .btn-lg { height: 48px; padding: 0 20px; }
  .btn-sm { height: 38px; padding: 0 14px; }
  .logos-row { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .split-side { padding: 18px 16px 20px; min-height: 420px; }
  .cores-inner { gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  /* prevent any rogue child from causing horizontal scroll */
  img, svg, video, iframe { max-width: 100%; height: auto; }
}
