/* =========================================================================
   AGENTCONF '26 — light-theme port of the digital-loop design system.
   Fonts: Roboto Slab (display) + Roboto (body), accent #26bbff, 4px grid,
   3px radius default, expressive motion (0.35s cubic-bezier(.645,.045,.355,1)).
   ========================================================================= */

/* ---- Fonts (self-hosted from digital-loop extraction) ------------------- */
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Medium.ttf")  format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/Roboto-Bold.ttf")    format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../fonts/RobotoSlab-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../fonts/RobotoSlab-Bold.ttf")    format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("../fonts/RobotoSlab-Black.ttf")   format("truetype"); font-weight: 900; font-display: swap; }

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* Light surfaces (cool-tinted toward the brand cyan, never warm/cream) */
  --bg:           #ffffff;
  --bg-alt:       #f3f7fb;   /* sunken section */
  --bg-tint:      #eef5fb;   /* faint cyan wash */
  --surface:      #ffffff;   /* cards */
  --ink-band:     #0e1116;   /* dark "terminal" band (inverted from dl #111013) */
  --ink-band-2:   #161a21;

  /* Ink ramp (from dl black #111013) */
  --ink:          #111013;   /* body copy, headings */
  --charcoal:     #2c3138;   /* secondary headings */
  --muted:        #586069;   /* captions/meta — 5.7:1 on white */
  --muted-on-dark:#9aa4b2;   /* muted text on the dark band */

  /* Accent (digital-loop signature) */
  --accent:       #26bbff;   /* fills, glyphs, focus, underline, cursor */
  --accent-ink:   #075985;   /* accent as TEXT on light bg — 6.4:1 on white */
  --accent-deep:  #0a6fb0;   /* hover/pressed accent */

  /* Status (from dl system) */
  --success:#2f8f3f; --success-bg:#e7f5e9;
  --warning:#9a6b00; --warning-bg:#fff4d6;
  --danger:#c23b37;
  --info:#1032cf;

  /* Lines */
  --line:        #e3e8ef;
  --line-strong: #cdd6e0;
  --line-dark:   #262b34;    /* on the dark band */

  /* Type */
  --font-display: "Roboto Slab", Georgia, serif;
  --font-body:    "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Radius (from dl scale) */
  --r-xs: 3px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pill: 9999px;

  /* Elevation (light-adapted from dl shadow tokens) */
  --sh-raised:   0 3px 5px 0 rgba(16,16,19,.06);
  --sh-float:    0 5px 18px 0 rgba(16,16,19,.10);
  --sh-overlay:  0 20px 40px -12px rgba(16,16,19,.22), 0 0 1px rgba(16,16,19,.10);

  /* Motion (extracted dl tokens) */
  --ease: cubic-bezier(.645,.045,.355,1);
  --dur: .35s;
  --dur-fast: .2s;

  /* Layout */
  --container: 1180px;
  --nav-h: 68px;

  /* Z-scale (from dl) */
  --z-sticky: 100; --z-backdrop: 1000; --z-modal: 10000; --z-toast: 10001;
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* ---- Type --------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
strong { font-weight: 700; }
.mono { font-family: var(--font-mono); }

/* ---- Layout primitives -------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head.center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--charcoal); line-height: 1.55; }

/* Kicker — terminal-prompt style, used sparingly (a brand voice, not on every section) */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500;
  color: var(--accent-ink);
  background: var(--bg-tint); border: 1px solid #d6e8f6;
  padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(38,187,255,.25); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: .98rem;
  padding: 13px 22px; border-radius: var(--r-xs); border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: var(--sh-float); }
.btn--accent { background: var(--accent); color: #06212e; font-weight: 700; }
.btn--accent:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px -6px rgba(38,187,255,.6); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--ondark { background: var(--accent); color: #06212e; }
.btn--ondark.btn--ghost { background: transparent; border-color: var(--line-dark); color: #fff; }
.btn--ondark.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
/* No backdrop-blur per dl anti-patterns — use solid bg on scroll instead */
.site-header.is-scrolled { background: #fff; border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(16,16,19,.02); }
.nav { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--accent); }
.brand__sep { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative; color: var(--charcoal); font-size: .96rem; padding: 8px 12px; border-radius: var(--r-xs);
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.active { color: var(--ink); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-xs); background: #fff; align-items: center; justify-content: center; }
.nav__toggle svg { width: 22px; height: 22px; }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 70% 30%, rgba(38,187,255,.28), rgba(38,187,255,0) 60%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__title { margin: 14px 0 0; }
.hero__title .accent { color: var(--accent-ink); }
.hero__rotator { display: inline-block; color: var(--accent-ink); }
.cursor { display: inline-block; width: .6ch; color: var(--accent); animation: blink .9s steps(1) infinite; font-weight: 400; }
.hero__sub { margin-top: 22px; max-width: 46ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--charcoal); line-height: 1.55; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff; color: var(--charcoal);
}
.pill svg { width: 15px; height: 15px; color: var(--accent-ink); }

/* Hero terminal card */
.terminal {
  background: var(--ink-band); border: 1px solid var(--line-dark); border-radius: var(--r-md);
  box-shadow: var(--sh-overlay); overflow: hidden; font-family: var(--font-mono); color: #d7e6f2;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-dark); background: var(--ink-band-2); }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot.r { background: #ff5f57; } .terminal__dot.y { background: #febc2e; } .terminal__dot.g { background: #28c840; }
.terminal__title { margin-left: 6px; font-size: .8rem; color: var(--muted-on-dark); }
.terminal__body { padding: 18px 18px 22px; font-size: .86rem; line-height: 1.7; overflow-x: auto; }
.terminal__body pre { white-space: pre; margin: 0; }
.t-prompt { color: var(--accent); } .t-key { color: #7fd3ff; } .t-str { color: #b7f0c2; } .t-num { color: #ffd479; } .t-dim { color: var(--muted-on-dark); } .t-ok { color: #5cd06a; }

/* ---- Marquee (dl marquee-line-el) --------------------------------------- */
.marquee { border-block: 1px solid var(--line); background: #fff; padding-block: 22px; overflow: hidden; }
.marquee__label { text-align: center; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--charcoal); opacity: .72; transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease); }
.marquee__item:hover { opacity: 1; color: var(--accent-ink); }
.marquee__item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---- Generic grid ------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---- Card (dl card pattern, light) -------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; box-shadow: var(--sh-raised);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-float); border-color: var(--line-strong); }

/* Feature card with leading index number (a real sequence: the 4 format rules) */
.feature { position: relative; }
.feature__num { font-family: var(--font-mono); font-size: .85rem; color: var(--accent-ink); font-weight: 500; }
.feature__icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--bg-tint); color: var(--accent-ink); margin: 14px 0 16px; }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .98rem; }

/* ---- Talk card ---------------------------------------------------------- */
.talk { display: flex; flex-direction: column; gap: 14px; }
.talk__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.talk__format { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px; }
.talk__type { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.talk__type.keynote, .talk__type.closing { color: var(--accent-ink); }
.talk__type.talk { color: var(--muted); }
.talk h3 { font-size: 1.3rem; line-height: 1.18; }
.talk__abstract { color: var(--muted); font-size: .96rem; flex: 1; }
.talk__foot { display: flex; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: #06212e; }
.talk__byline { display: flex; flex-direction: column; line-height: 1.25; }
.talk__byline b { font-size: .92rem; }
.talk__byline span { font-size: .8rem; color: var(--muted); }
.talk__dur { margin-left: auto; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

/* ---- Speaker card ------------------------------------------------------- */
.speaker { text-align: left; }
.speaker__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.speaker .avatar { width: 54px; height: 54px; font-size: 1.15rem; }
.speaker__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.speaker__org { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.speaker__bio { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.speaker__talk { font-size: .9rem; color: var(--charcoal); border-top: 1px solid var(--line); padding-top: 14px; }
.speaker__talk span { display: block; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.speaker__talk a { color: var(--accent-ink); font-weight: 500; }
.speaker__role { display:inline-block; font-family: var(--font-mono); font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color: var(--accent-ink); background: var(--bg-tint); padding: 3px 8px; border-radius: var(--r-pill); }

/* ---- Stats -------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 24px 12px; }
.stat__value { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; color: var(--ink); }
.stat__label { font-family: var(--font-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }

/* ---- Dark band (terminal / agent-ready / format) ------------------------ */
.band { background: var(--ink-band); color: #e7eef5; position: relative; overflow: hidden; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: var(--muted-on-dark); }
.band .kicker { background: rgba(38,187,255,.12); border-color: rgba(38,187,255,.28); color: #7fd3ff; }
.band__glow { position: absolute; inset: auto auto -30% -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(38,187,255,.18), transparent 60%); pointer-events: none; }

/* code block */
.code {
  background: var(--ink-band-2); border: 1px solid var(--line-dark); border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: .85rem; line-height: 1.7; color: #d7e6f2; overflow: auto;
}
.code__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-dark); }
.code__bar .fname { font-size: .78rem; color: var(--muted-on-dark); margin-left: 4px; }
.code pre { margin: 0; padding: 16px 18px; white-space: pre; }

/* tool list (agent-ready) */
.tools { display: grid; gap: 12px; }
.tool {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  background: var(--ink-band-2); border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 14px 16px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tool:hover { border-color: rgba(38,187,255,.5); transform: translateX(4px); }
.tool__name { font-family: var(--font-mono); font-size: .9rem; color: #7fd3ff; }
.tool__desc { font-size: .88rem; color: var(--muted-on-dark); }
.tool__run { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); border: 1px solid var(--line-dark); background: transparent; border-radius: var(--r-xs); padding: 6px 12px; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.tool__run:hover { background: var(--accent); color: #06212e; }
.tool__out { grid-column: 1 / -1; }
.tool__out pre { margin: 8px 0 0; padding: 12px 14px; background: #0a0d12; border: 1px solid var(--line-dark); border-radius: var(--r-xs); font-size: .8rem; color: #b7f0c2; white-space: pre-wrap; word-break: break-word; max-height: 280px; overflow: auto; }

/* ---- Agenda ------------------------------------------------------------- */
.agenda { display: flex; flex-direction: column; gap: 10px; }
.session {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 22px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.session:hover { border-color: var(--line-strong); box-shadow: var(--sh-raised); }
.session--break { background: var(--bg-alt); border-style: dashed; }
.session--keynote, .session--closing { border-color: #bfe4fa; background: linear-gradient(0deg, var(--bg-tint), var(--bg-tint)); }
.session__time { font-family: var(--font-mono); font-size: .9rem; color: var(--ink); font-weight: 500; }
.session__time span { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; }
.session__title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.session__desc { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.session__byline { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.session__byline b { color: var(--charcoal); font-weight: 500; }
.session__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tag { font-family: var(--font-mono); font-size: .72rem; padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag--room { color: var(--accent-ink); border-color: #bfe4fa; background: var(--bg-tint); }
.tag--keynote { color: #fff; background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---- Countdown ---------------------------------------------------------- */
.countdown { display: flex; gap: 16px; flex-wrap: wrap; }
.cd { min-width: 84px; text-align: center; background: var(--ink-band-2); border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 16px 12px; }
.cd__n { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.cd__l { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-on-dark); margin-top: 8px; }

/* ---- Forms (register) --------------------------------------------------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--charcoal); font-weight: 500; }
.field label .req { color: var(--danger); }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-xs); padding: 12px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #9aa4b2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(38,187,255,.18); }
.textarea { resize: vertical; min-height: 96px; font-family: var(--font-mono); font-size: .9rem; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 8px 14px; cursor: pointer; transition: all var(--dur) var(--ease); user-select: none; }
.check input { accent-color: var(--accent-deep); width: 15px; height: 15px; }
.check:has(input:checked) { border-color: var(--accent); background: var(--bg-tint); color: var(--accent-ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__note { font-size: .86rem; color: var(--muted); }
.form__note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ticket / confirmation */
.ticket {
  background: var(--ink-band); color: #e7eef5; border: 1px solid var(--line-dark); border-radius: var(--r-md);
  padding: 28px; box-shadow: var(--sh-overlay); font-family: var(--font-mono);
}
.ticket h3 { color: #fff; font-family: var(--font-display); }
.ticket__id { color: var(--accent); font-size: 1.1rem; letter-spacing: .04em; }
.ticket pre { margin: 16px 0 0; padding: 16px; background: #0a0d12; border: 1px solid var(--line-dark); border-radius: var(--r-xs); font-size: .82rem; color: #b7f0c2; white-space: pre-wrap; word-break: break-word; }
.is-hidden { display: none !important; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color var(--dur) var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--accent-ink); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin-inline: auto; max-width: 620px; margin-bottom: 32px; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink-band); color: var(--muted-on-dark); padding-block: 64px 32px; }
.site-footer a { color: var(--muted-on-dark); transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__brand .brand { color: #fff; margin-bottom: 14px; }
.footer__brand p { max-width: 38ch; font-size: .94rem; }
.footer__col h4 { color: #fff; font-size: .82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .94rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 28px; font-size: .86rem; }
.footer__bottom .mono { color: var(--muted); }

/* ---- Scroll reveal ------------------------------------------------------
   Content is VISIBLE by default. The reveal only ENHANCES: the fadeUp
   animation is added on intersect. If the observer never fires (headless
   render, background tab, no-JS), nothing ships blank — it stays visible. */
@keyframes revealUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.reveal.is-visible { animation: revealUp .6s var(--ease) both; }
.reveal[data-delay="1"].is-visible { animation-delay: .08s; }
.reveal[data-delay="2"].is-visible { animation-delay: .16s; }
.reveal[data-delay="3"].is-visible { animation-delay: .24s; }
.reveal[data-delay="4"].is-visible { animation-delay: .32s; }

/* ---- Tilt --------------------------------------------------------------- */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---- Keyframes (ported from dl) ----------------------------------------- */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translate3d(0, 2rem, 0); } 100% { opacity: 1; transform: none; } }
.spin { animation: spin 1s linear infinite; }

/* ---- Toast -------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: var(--z-toast); background: var(--ink-band); color: #fff; border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 14px 20px; box-shadow: var(--sh-overlay); font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ok { color: var(--accent); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 991px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; box-shadow: var(--sh-float); transform: translateY(-130%); transition: transform var(--dur) var(--ease); margin-left: 0; }
  .nav__links.open { transform: translateY(0); }
  .nav__link { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 12px 0 0; }
  .nav__toggle { display: inline-flex; }
  .nav { gap: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .session { grid-template-columns: 92px 1fr; }
  .session__meta { grid-column: 2; flex-direction: row; align-items: center; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .container { padding-inline: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .session { grid-template-columns: 1fr; gap: 8px; }
  .session__meta { grid-column: 1; }
}

/* ---- Talk card "read as skill" affordance ------------------------------- */
.talk { color: inherit; }
.talk h3 { transition: color var(--dur) var(--ease); }
.talk:hover h3 { color: var(--accent-ink); }
.talk__more { margin-top: 2px; font-size: .78rem; color: var(--accent-ink); opacity: 0; transform: translateX(-4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.talk:hover .talk__more { opacity: 1; transform: none; }
.session__link { color: var(--ink); transition: color var(--dur) var(--ease); }
.session__link:hover { color: var(--accent-ink); }

/* ---- Talk detail page --------------------------------------------------- */
.backlink { display: inline-block; color: var(--accent-ink); font-size: .85rem; margin-bottom: 18px; }
.backlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-meta { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.detail-title { font-size: clamp(2.1rem, 5vw, 4rem); }
.detail-byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.detail-byline .avatar { width: 50px; height: 50px; font-size: 1.05rem; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }

/* Skill document */
.skilldoc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-raised); }
.skilldoc__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--ink-band-2); border-bottom: 1px solid var(--line-dark); }
.skilldoc__bar .fname { font-size: .8rem; color: var(--muted-on-dark); margin-left: 4px; }
.skilldoc__dl { margin-left: auto; color: var(--accent); font-size: .8rem; }
.skilldoc__dl:hover { text-decoration: underline; }
.skilldoc__fm { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 18px 28px; font-size: .86rem; line-height: 1.9; }
.fm__row { white-space: pre-wrap; }
.fm__key { color: var(--accent-ink); font-weight: 500; }
.fm__val { color: var(--charcoal); }
.skilldoc__body { padding: 32px clamp(24px, 4vw, 44px) 40px; }
.skilldoc__body > h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.skilldoc__lede { font-size: 1.1rem; color: var(--charcoal); line-height: 1.55; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.skilldoc__sec { margin-top: 30px; }
.skilldoc__sec h2 { font-size: 1.3rem; margin-bottom: 12px; padding-left: 16px; border-left: 0; position: relative; }
.skilldoc__sec h2::before { content: "#"; color: var(--accent); font-family: var(--font-mono); position: absolute; left: 0; font-weight: 400; }
.skilldoc__sec p { color: var(--ink); line-height: 1.7; max-width: 68ch; }
.skilldoc__list { margin-top: 12px; display: grid; gap: 10px; max-width: 70ch; }
.skilldoc__list li { position: relative; padding-left: 24px; color: var(--ink); line-height: 1.55; }
.skilldoc__list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-ink); font-family: var(--font-mono); }

/* Sidebar */
.detail-side { display: grid; gap: 20px; position: sticky; top: calc(var(--nav-h) + 20px); }
.side-actions { display: grid; gap: 10px; }
.detail-nav { display: grid; gap: 10px; }
.detail-nav__btn { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.detail-nav__btn:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.detail-nav__btn span { font-size: .72rem; color: var(--muted); }
.detail-nav__btn b { font-family: var(--font-display); font-size: .96rem; letter-spacing: -0.01em; }
.detail-nav__btn--next { text-align: right; }

@media (max-width: 991px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}

/* ===== How-it-works: identity, stream, chat, board ====================== */
.note { margin-top: 16px; color: var(--muted); font-size: .85rem; }

/* Identity pill */
.ident { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 8px 16px; }
.ident__name { color: var(--accent-ink); font-weight: 700; border-bottom: 1px dashed currentColor; }
.ident__name:hover { color: var(--accent-deep); }

/* ---- Live stream -------------------------------------------------------- */
.stream { background: var(--ink-band); border: 1px solid var(--line-dark); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-overlay); }
.stream__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink-band-2); border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 0 rgba(255,95,87,.6); animation: livePulse 1.6s ease-out infinite; }
.live-badge { color: #ff8a84; font-weight: 700; letter-spacing: .14em; font-size: .76rem; }
.stream__now { color: var(--muted-on-dark); font-size: .82rem; }
.stream__now b { color: #fff; }
.stream__controls { margin-left: auto; display: flex; gap: 8px; }
.stream__btn { font-size: .76rem; color: var(--accent); background: transparent; border: 1px solid var(--line-dark); border-radius: var(--r-xs); padding: 5px 10px; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.stream__btn:hover { background: var(--accent); color: #06212e; }
.stream__out { margin: 0; padding: 20px 22px; min-height: 320px; max-height: 420px; overflow: auto; font-size: .9rem; line-height: 1.7; color: #d7e6f2; white-space: pre; }
.stream__line { display: block; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,95,87,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,95,87,0); } 100% { box-shadow: 0 0 0 0 rgba(255,95,87,0); } }

/* ---- Chat --------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-raised); overflow: hidden; height: 480px; }
.chat__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.chat__title { font-weight: 700; color: var(--ink); }
.chat__select { max-width: 60%; padding: 6px 10px; font-size: .9rem; }
.chat__presence { margin-left: auto; font-size: .78rem; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.chat__presence::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.chat__log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.chat__empty { color: var(--muted); }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat__form .input { flex: 1; }
.chat__form .btn { padding: 10px 16px; }
.msg { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.chip-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .72rem; color: #06212e; flex: none; }
.msg__head { display: flex; align-items: baseline; gap: 8px; }
.msg__head b { font-size: .9rem; }
.msg__time { font-size: .72rem; color: var(--muted); }
.msg__text { font-size: .95rem; color: var(--ink); line-height: 1.5; }

/* ---- Q&A board ---------------------------------------------------------- */
.board__compose { padding: 20px; display: grid; gap: 14px; }
.board__composerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.board__scopelabel { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.board__composerow .select { flex: 1; min-width: 200px; }
.board__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 24px 0 16px; flex-wrap: wrap; }
.board__count { color: var(--muted); font-size: .85rem; }
.board__filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.board__list { display: grid; gap: 14px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--sh-raised); }
.post--answered { border-color: #bfe4fa; }
.post__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.post__agent { font-size: .95rem; }
.post__scope { font-family: var(--font-mono); font-size: .72rem; padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }
.post__scope--talk { color: var(--accent-ink); border-color: #bfe4fa; background: var(--bg-tint); }
.post__await { color: var(--warning); }
.post__text { color: var(--ink); line-height: 1.6; }
.post__answers { margin-top: 16px; display: grid; gap: 10px; }
.answer { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.answer--official { background: var(--bg-tint); border-color: #bfe4fa; }
.answer__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.answer__by { font-weight: 700; font-size: .85rem; color: var(--accent-ink); }
.answer__text { font-size: .95rem; color: var(--ink); line-height: 1.55; }
.post__reply { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.post__reply .input { flex: 1; }

@media (max-width: 767px) {
  .chat { height: 440px; }
  .board__composerow .select { min-width: 0; width: 100%; }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal.is-visible { animation: none !important; }
  .marquee__track { animation: none !important; }
  .cursor { animation: none !important; }
  .talk__more { opacity: 1; transform: none; }
  .live-dot { animation: none !important; }
}
