/* ============================================================
   Imagine HQ — shared design system
   Linked by every page (homepage, team pages, brand pages).
   Keep ALL tokens here — do not redefine colors/fonts per page.
   Page-specific components live in a small inline <style> per page.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ink: #1f2937;
  --ink-soft: #475569;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --accent: #0f766e;          /* teal deep */
  --accent-soft: #ccfbf1;
  --accent-ink: #115e59;      /* teal ink */
  --ink-deep: #0c1d1a;        /* cinematic deep teal-charcoal */
  --ink-deep-2: #143029;
  --brand-cream: #fcfaf6;
  --brand-cream-deep: #f6f1e7;
  --brand-gold: #c79a4a;      /* gold for dark backgrounds */
  --brand-gold-soft: #e6d5b3;
  --serif: "Iowan Old Style", "Charter", Georgia, "Apple Garamond", Baskerville, serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-soft); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Cinematic hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  /* TO ADD A PHOTO: prepend an image layer to the first gradient below,
     e.g. ..., url('images/hero.jpg') center/cover; */
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(199,154,74,0.22) 0%, rgba(199,154,74,0) 60%),
    linear-gradient(155deg, var(--ink-deep) 0%, var(--ink-deep-2) 55%, #0a1714 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--brand-gold) 50%, var(--accent) 100%); opacity: .9;
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.hero-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,0.10);
}
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--brand-gold);
  text-transform: uppercase; letter-spacing: 0.24em; display: inline-flex; align-items: center; gap: 8px;
}
.brand::before { content: "✦"; font-size: 15px; letter-spacing: 0; }
.topnav { display: flex; gap: 22px; flex-wrap: wrap; }
.topnav a { color: rgba(255,255,255,0.78); font-size: 14px; font-weight: 500; }
.topnav a:hover { color: #fff; text-decoration: none; }
.back { color: rgba(255,255,255,0.78); font-size: 13.5px; font-weight: 500; }
.back:hover { color: #fff; text-decoration: none; }
.whoami { font-size: 12.5px; color: rgba(255,255,255,0.6); display: inline-flex; align-items: center; gap: 7px; }
.whoami .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }

.hero-body { padding: 22px 0 12px; max-width: 760px; }
.hero-body h1 { font-family: var(--serif); font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero-body h1 .gold { color: var(--brand-gold); }
.hero-body p.sub { font-size: 18px; color: rgba(255,255,255,0.82); margin: 0 0 26px; max-width: 620px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--brand-gold); font-weight: 700; margin: 0 0 14px; }
.ethos {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 30px;
  font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--brand-gold-soft); letter-spacing: .01em;
}
.ethos .d { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-gold); flex-shrink: 0; }

/* Quick-launch row */
.launch { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 20px; }
.launch a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff;
  transition: background .12s, border-color .12s, transform .12s;
}
.launch a:hover { background: rgba(255,255,255,0.12); border-color: var(--brand-gold); transform: translateY(-1px); text-decoration: none; }
.launch a .ic { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; background: #fff; font-size: 11px; font-weight: 700; color: var(--ink-deep); }
.launch a .ic img { width: 15px; height: 15px; object-fit: contain; display: block; }

/* ===== Section grid + cards ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 40px 28px 20px; }
.section-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); font-weight: 700; margin: 0 0 16px; }
.section-label.spaced { margin-top: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .12s, box-shadow .12s, transform .12s;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 8px 22px rgba(15,23,42,.08); transform: translateY(-2px); }
.card-img {
  height: 124px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--ink-deep) 0%, var(--accent-ink) 100%);
  /* TO ADD A PHOTO: background: linear-gradient(0deg, rgba(12,29,26,.45), rgba(12,29,26,.15)), url('images/<name>.jpg') center/cover; */
}
.card-img .glyph { font-family: var(--serif); font-size: 40px; color: rgba(255,255,255,0.32); }
.card-img.gold { background: linear-gradient(140deg, #2a2418 0%, var(--brand-gold) 160%); }
.card-img .imgtag {
  position: absolute; top: 10px; left: 10px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,0.75); background: rgba(0,0,0,0.28);
  padding: 3px 7px; border-radius: 20px;
}
.card-body { padding: 16px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-family: var(--serif); font-size: 19px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.card .desc { color: var(--ink-soft); font-size: 14px; margin: 4px 0 12px; }
.card .links { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.card .links a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px;
  border-radius: 6px; background: var(--bg-soft); font-size: 13.5px; font-weight: 500; color: var(--ink);
  border: 1px solid transparent; transition: background .12s, border-color .12s, color .12s;
}
.card .links a:hover { background: #fff; border-color: var(--accent-soft); color: var(--accent-ink); text-decoration: none; }
.card .links a .arrow { color: var(--muted); font-size: 12px; }
.card .links a:hover .arrow { color: var(--accent); }
.tag-live { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 20px; margin-left: 8px; }
.tag-soon { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 2px 7px; border-radius: 20px; margin-left: 8px; }
.placeholder { color: var(--muted); font-style: italic; }

/* ===== Scaffold notice (placeholder team pages) ===== */
.notice {
  background: var(--brand-cream); border: 1px solid var(--brand-gold-soft); border-left: 3px solid var(--brand-gold);
  border-radius: 12px; padding: 18px 22px; margin: 0 0 28px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6;
}
.notice b { color: var(--ink-deep); }
.notice .need { margin: 10px 0 0; padding-left: 20px; }
.notice .need li { margin-bottom: 4px; }
.card.stub { border-style: dashed; }
.card.stub .card-img { opacity: .82; }
.card .links a.todo { color: var(--muted); font-style: italic; cursor: default; }
.card .links a.todo:hover { background: var(--bg-soft); border-color: transparent; color: var(--muted); }

/* ===== Footer ===== */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px 28px 56px; text-align: center; color: var(--muted); font-size: 13px; }
.foot .tagline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent-ink); margin: 0 0 8px; }
.foot .tagline::before, .foot .tagline::after { content: "✦"; color: var(--brand-gold); margin: 0 12px; font-size: 13px; vertical-align: 2px; }

@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } .hero-body h1 { font-size: 38px; } .hero-body { padding: 44px 0 20px; } }
@media (max-width: 640px) { .topnav { order: 3; width: 100%; gap: 16px; padding-top: 6px; } }

/* ============================================================
   Interactive / welcoming layer (progressive enhancement)
   Driven by assets/hq.js. All motion respects reduced-motion.
   ============================================================ */

/* Persistent top nav (injected by hq.js) */
.brand.link { cursor: pointer; }
.topnav a.active { color: #fff; position: relative; }
.topnav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--brand-gold); border-radius: 2px;
}

/* Time-aware greeting (homepage) */
.greeting {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .03em; color: var(--brand-gold-soft);
}
.greeting::before { content: "✦"; color: var(--brand-gold); font-size: 12px; }

/* Ambient hero: drifting gold glow + floating sparkles */
.hero::before {
  content: ""; position: absolute; inset: -25% -10% auto -10%; height: 150%; pointer-events: none;
  background: radial-gradient(620px 320px at 32% 24%, rgba(199,154,74,0.16) 0%, rgba(199,154,74,0) 62%);
  animation: heroGlow 20s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { transform: translate3d(-4%, -2%, 0); }
  to   { transform: translate3d(7%, 4%, 0); }
}
.spark {
  position: absolute; color: var(--brand-gold); pointer-events: none; opacity: 0; z-index: 1;
  animation: sparkFloat 7s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(199,154,74,0.5);
}
@keyframes sparkFloat {
  0%   { opacity: 0; transform: translateY(10px) scale(.7); }
  25%  { opacity: .6; }
  55%  { opacity: .25; }
  80%  { opacity: .5; }
  100% { opacity: 0; transform: translateY(-16px) scale(1.05); }
}
/* keep hero text above ambient layers */
.hero-inner { position: relative; z-index: 2; }

/* Gentle load-in for hero content */
.hero-body { animation: riseIn .7s ease both; }
.launch { animation: riseIn .7s ease .08s both; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll-reveal (JS adds .reveal, then .in when in view) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Full-width inline search bar + dropdown (bottom of the hero, every page) */
.hqsearch {
  position: relative; display: flex; align-items: center; gap: 11px; cursor: pointer;
  margin: 10px 0 26px; padding: 12px 16px; border-radius: 11px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  transition: background .12s, border-color .12s;
}
.hqsearch:hover { background: rgba(255,255,255,0.14); border-color: var(--brand-gold); }
.hqsearch .sg { color: var(--brand-gold); font-size: 15px; flex-shrink: 0; }
.hqsearch .hqsearch-in {
  flex: 1; min-width: 0; background: none; border: none; outline: none; cursor: pointer;
  color: #fff; font-family: inherit; font-size: 15px;
}
.hqsearch .hqsearch-in::placeholder { color: rgba(255,255,255,0.55); }
.hqsearch .kbd { flex-shrink: 0; font-size: 10.5px; color: var(--brand-gold-soft); border: 1px solid rgba(230,213,179,0.3); border-radius: 5px; padding: 1px 7px; }

/* dropdown */
.hqsearch-menu {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 7px); z-index: 950;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow-y: auto;
  box-shadow: 0 20px 48px rgba(12,29,26,0.30); max-height: min(60vh, 460px);
}
.hqsearch.open .hqsearch-menu { display: block; }
.hqs-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; color: var(--ink); border-bottom: 1px solid var(--bg-soft); }
.hqs-item:last-child { border-bottom: none; }
.hqs-item.active, .hqs-item:hover { background: var(--bg-soft); text-decoration: none; }
.hqs-item .lab { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; min-width: 0; }
.hqs-item .lab .b { color: var(--brand-gold); font-size: 11px; flex-shrink: 0; }
.hqs-item .meta { font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.hqs-empty { padding: 16px; color: var(--muted); font-size: 13.5px; }

/* Command palette */
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none; padding: 11vh 16px 16px;
  justify-content: center; align-items: flex-start;
  background: rgba(12,29,26,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.cmdk-overlay.open { display: flex; }
.cmdk {
  width: min(640px, 94vw); background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(8,18,16,0.4); overflow: hidden; animation: riseIn .18s ease both;
}
.cmdk-top { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.cmdk-top .sg { color: var(--accent); font-size: 17px; }
.cmdk-input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 17px; color: var(--ink); }
.cmdk-input::placeholder { color: var(--muted); }
.cmdk-top .kbd { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; }
.cmdk-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 13px; border-radius: 9px; cursor: pointer; color: var(--ink); font-size: 14.5px; text-decoration: none;
}
.cmdk-item .lab { display: inline-flex; align-items: center; gap: 9px; }
.cmdk-item .lab .b { color: var(--brand-gold); font-size: 11px; }
.cmdk-item .meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cmdk-item.active, .cmdk-item:hover { background: var(--brand-cream); text-decoration: none; }
.cmdk-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== Imagine Academy (training center) ===== */
.crumb { display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--brand-gold-soft); }
.crumb:hover { color: #fff; text-decoration: none; }
.learn {
  background: var(--brand-cream); border: 1px solid var(--brand-gold-soft); border-left: 3px solid var(--brand-gold);
  border-radius: 12px; padding: 20px 24px; margin: 0 0 32px;
}
.learn h2 { font-family: var(--serif); font-size: 18px; margin: 0 0 10px; color: var(--ink-deep); }
.learn ul { margin: 0; padding-left: 20px; }
.learn li { margin-bottom: 6px; color: var(--ink-soft); font-size: 14.5px; }
.module { display: flex; align-items: baseline; gap: 12px; margin: 36px 0 14px; }
.module h2 { font-family: var(--serif); font-size: 22px; margin: 0; color: var(--ink-deep); letter-spacing: -0.01em; }
.module .count { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
/* Progress tracker (per track, persisted in localStorage by hq.js) */
.progress { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.ptrack { flex: 1; height: 8px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; }
.pbar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent) 0%, var(--brand-gold) 100%); border-radius: 6px; transition: width .45s ease; }
.plabel { font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.preset { background: none; border: none; color: var(--muted); font-size: 12px; cursor: pointer; font-family: inherit; text-decoration: underline; padding: 0; }
.preset:hover { color: var(--accent); }
.progress.alldone .plabel { color: var(--accent-ink); }
.progress.alldone .plabel::after { content: " ✦"; color: var(--brand-gold); }

.lessons { display: flex; flex-direction: column; gap: 10px; }
.lesson {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .12s, box-shadow .12s;
}
.lesson:hover { border-color: var(--border-strong); box-shadow: 0 6px 18px rgba(15,23,42,.06); }
.lesson.done { background: var(--brand-cream); border-color: var(--brand-gold-soft); }
.check {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border-strong);
  background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
  font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--accent-ink);
  transition: background .12s, border-color .12s, color .12s;
}
.check:hover { border-color: var(--accent); }
.check .tick { display: none; font-size: 15px; line-height: 1; }
.check.static { cursor: default; border-color: var(--brand-gold-soft); color: var(--brand-gold); }
.lesson.done .check { background: var(--accent); border-color: var(--accent); color: #fff; }
.lesson.done .check .num { display: none; }
.lesson.done .check .tick { display: block; }
.lesson .body { flex: 1; min-width: 0; }
.lesson .t { display: block; font-weight: 600; font-size: 15px; color: var(--ink); }
.lesson .t:hover { color: var(--accent-ink); text-decoration: underline; }
.lesson.done .t { color: var(--muted); text-decoration: line-through; }
.lesson .d { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.lesson .right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lesson .go { color: var(--muted); font-size: 14px; }
.lesson .go:hover { color: var(--accent); text-decoration: none; }
.fmt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.fmt.video { background: var(--accent-soft); color: var(--accent-ink); }
.fmt.doc { background: var(--brand-cream-deep); color: #8a6d2f; }
.fmt.deck { background: #eef2f7; color: var(--ink-soft); }
.fmt.guide { background: rgba(199,154,74,.18); color: #856321; }
.track-meta { font-size: 13px; color: var(--brand-gold); font-weight: 600; margin: 0 0 6px; }
@media (max-width: 560px) {
  .lesson { flex-wrap: wrap; gap: 10px 14px; }
  .lesson .body { flex-basis: calc(100% - 44px); }
  .lesson .right { width: 100%; justify-content: space-between; padding-left: 44px; }
}

/* Respect reduced-motion: kill ambient + reveal motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .hero-body, .launch, .cmdk { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .spark { display: none; }
}

/* ============================================================
   CINEMATIC v2 (June 2026) — photography-led hub language.
   Shared utilities; any page can opt into a photo hero/tile.
   Per-page photos are passed via CSS custom properties. NOTE: a url() inside
   a custom property resolves relative to THIS stylesheet (assets/), so always
   use a root-absolute path (/images/...) — works locally, at the domain root,
   and from sub-pages (teams/, academy/) alike:
     hero:  <header class="hero cine has-photo" style="--hero-img:url('/images/hero.jpg')">
     tile:  <a class="ws has-photo" style="--tile-img:url('/images/sales.jpg')">
   Falls back to the cinematic gradient when no photo is set.
   ============================================================ */

/* ---- Cinematic full-bleed hero ---- */
.hero.cine { min-height: 84vh; display: flex; flex-direction: column; }
.hero.cine.has-photo {
  background:
    linear-gradient(180deg, rgba(10,23,20,0.56) 0%, rgba(10,23,20,0.28) 40%, rgba(10,23,20,0.82) 100%),
    var(--hero-img) center/cover no-repeat;
}
.hero.cine .hero-inner { display: flex; flex-direction: column; flex: 1; }
.hero.cine .hero-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: 720px; padding: 70px 0 40px;
}
.hero.cine h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 22px; }
.hero.cine h1 .gold { font-style: italic; }
.ethos-line {
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.4vw, 26px);
  color: var(--brand-gold-soft); margin: 0 0 26px; letter-spacing: .01em;
}
.hero.cine .sub { max-width: 560px; }
.hero.cine .launch { padding-bottom: 0; }

/* greeting + newest-announcement strip pinned to the hero base */
.hero-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0 26px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.12); flex-wrap: wrap;
}
.hero-strip .greeting { margin: 0; }
.hero-strip .ann-inline { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: rgba(255,255,255,0.82); min-width: 0; }
.hero-strip .ann-inline .tagdot { color: var(--brand-gold); }
.hero-strip .ann-inline .ann-d { color: var(--brand-gold-soft); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.hero-strip .ann-inline a { color: #fff; text-decoration: underline; }
.hero-strip .ann-inline a:hover { color: var(--brand-gold-soft); }

/* ---- Section heads (editorial) ---- */
.ws-section { max-width: var(--max); margin: 0 auto; padding: 54px 28px 8px; }
.ws-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 20px; gap: 16px; flex-wrap: wrap; }
.ws-head h2 { font-family: var(--serif); font-size: 30px; margin: 0; letter-spacing: -0.01em; color: var(--ink-deep); }
.ws-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- Workspace tiles: photo-backed, editorial ---- */
.workspaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ws {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  color: #fff; isolation: isolate;
  background: linear-gradient(165deg, #16302a 0%, #0c1d1a 100%);
  box-shadow: 0 12px 30px rgba(12,29,26,0.14);
  transition: transform .16s ease, box-shadow .16s ease;
}
.ws::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,29,26,0.10) 0%, rgba(12,29,26,0.55) 55%, rgba(10,20,18,0.92) 100%);
}
.ws.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--tile-img); background-size: cover; background-position: center;
  transition: transform .4s ease;
}
.ws:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(12,29,26,0.30); text-decoration: none; }
.ws.has-photo:hover::before { transform: scale(1.05); }
.ws .num { font-family: var(--serif); font-size: 14px; color: var(--brand-gold); letter-spacing: .1em; margin-bottom: auto; }
.ws h3 { font-family: var(--serif); font-size: 25px; margin: 0 0 6px; font-weight: 700; }
.ws p { margin: 0 0 12px; font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.5; }
.ws .enter { font-size: 12.5px; font-weight: 700; color: var(--brand-gold); letter-spacing: .04em; text-transform: uppercase; }
.ws .ws-lock {
  position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand-gold-soft); background: rgba(10,20,18,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(199,154,74,0.4); padding: 4px 9px; border-radius: 20px;
}

/* ---- "For everyone" editorial band ---- */
.global-band { background: var(--brand-cream); border-top: 1px solid var(--brand-cream-deep); margin-top: 54px; }
.global-band .wrap { padding-top: 50px; padding-bottom: 50px; }
.grid.cine { gap: 20px; }
.grid.cine .card { border-radius: 16px; border-color: rgba(199,154,74,0.18); }
.grid.cine .card:hover { box-shadow: 0 14px 30px rgba(12,29,26,0.12); }

/* photo-topped cards (any grid) */
.card-img.photo { background-size: cover; background-position: center; }
.card-img.photo .glyph, .card-img.photo .imgtag { display: none; }
.card-img .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,29,26,0.12), rgba(12,29,26,0.5)); }

@media (max-width: 1000px) { .workspaces { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .workspaces { grid-template-columns: 1fr; } }

/* ============================================================
   "YOUR DAY" panel (homepage) — the live, personalized surface.
   Rendered by assets/today.js from /api/today (Monday-fed),
   with a sample-data fallback before the backend is wired.
   ============================================================ */
.today-wrap { max-width: var(--max); margin: 0 auto; padding: 40px 28px 8px; }
.today {
  background: #fff; border: 1px solid rgba(199,154,74,0.22); border-radius: 18px;
  box-shadow: 0 14px 36px rgba(12,29,26,0.10); padding: 22px 24px 24px; position: relative;
}
.today-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 16px; flex-wrap: wrap; }
.today-head h2 { font-family: var(--serif); font-size: 24px; margin: 0; color: var(--ink-deep); letter-spacing: -0.01em; }
.today-date { margin: 2px 0 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.t-sample { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #856321; background: rgba(199,154,74,.16); border: 1px solid rgba(199,154,74,.34); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.t-live { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }

/* Universal layer: today's full schedule (Google Calendar) */
.today-cal { margin: 0 0 16px; padding: 14px 18px 12px; background: var(--brand-cream); border: 1px solid var(--brand-cream-deep); border-radius: 12px; }
.today-cal .tc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.today-cal .tc-h .t-glyph { font-family: var(--serif); color: var(--brand-gold); font-size: 15px; }
.today-cal .tc-h h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 0; font-weight: 700; }
.today-cal .tc-src { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #856321; background: rgba(199,154,74,.16); border: 1px solid rgba(199,154,74,.3); padding: 2px 8px; border-radius: 20px; }
.tc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.tc-item { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); }
.tc-item:nth-child(1), .tc-item:nth-child(2) { border-top: none; }
.tc-time { width: 74px; flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.tc-main { min-width: 0; }
.tc-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tc-meta { font-size: 12px; color: var(--muted); margin-left: 8px; }
@media (max-width: 860px) { .tc-list { grid-template-columns: 1fr; } .tc-item:nth-child(2) { border-top: 1px solid var(--border); } }

.today-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-col { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 12px; display: flex; flex-direction: column; }
.t-col-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.t-col-h .t-glyph { font-family: var(--serif); color: var(--brand-gold); font-size: 16px; }
.t-col-h h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 0; font-weight: 700; }
.t-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; }
.t-col li { border-top: 1px solid var(--border); }
.t-col li:first-child { border-top: none; }
.t-col li a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; color: var(--ink); border-radius: 7px; }
.t-col li a:hover { background: #fff; text-decoration: none; }
.t-time { flex-shrink: 0; width: 66px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--accent-ink); padding-top: 1px; }
.t-time.t-na { color: var(--border-strong); }
.t-time.t-date { color: var(--brand-gold); width: 66px; }
.t-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.t-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-badge { flex-shrink: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 7px; border-radius: 20px; align-self: center; }
.t-empty { padding: 12px 4px; color: var(--muted); font-size: 13px; font-style: italic; border-top: none; }
.t-more { margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.t-more:hover { color: var(--accent-ink); }

@media (max-width: 860px) { .today-cols { grid-template-columns: 1fr; } }

/* Compact photo hero for inner pages (non-cine). Set --hero-img inline per page.
   Background uses center/cover — image is cropped to fill, never stretched. */
.hero.has-photo {
  background:
    linear-gradient(180deg, rgba(10,23,20,0.66) 0%, rgba(10,23,20,0.50) 45%, rgba(10,23,20,0.82) 100%),
    var(--hero-img) center/cover no-repeat;
}
