/* =========================================================
   THE CASE CONFERENCE 2026
   Tokens ported verbatim from the design system's
   colors_and_type.css. Do not add colors, fonts, or radii.
   ========================================================= */

@font-face {
  font-family: "Tokyo Dreams";
  src: url("./assets/fonts/TokyoDreamsPlain.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("./assets/fonts/Cardo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("./assets/fonts/Cardo-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("./assets/fonts/Montserrat.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- the five named colors --- */
  --tcc-antique-ivory: #f6f4f1;
  --tcc-natural-khaki: #b9aa92;
  --tcc-dusky-green: #a6a799;
  --tcc-terracotta: #88523d;
  --tcc-merlot-noir: #3b1919;

  /* --- tonal steps --- */
  --tcc-ivory-50: #fbfaf8;
  --tcc-ivory-100: #f6f4f1;
  --tcc-ivory-200: #ede8e0;
  --tcc-ivory-300: #ddd4c7;
  --tcc-khaki-400: #c6b9a4;
  --tcc-khaki-500: #b9aa92;
  --tcc-khaki-600: #97876e;
  --tcc-green-500: #a6a799;
  --tcc-green-700: #7c7d6e;
  --tcc-terracotta-400: #a26852;
  --tcc-terracotta-500: #88523d;
  --tcc-terracotta-700: #6b3e2c;
  --tcc-noir-800: #4a2020;
  --tcc-noir-900: #3b1919;
  --tcc-noir-ink: #1e0d0d;

  /* --- semantic --- */
  --bg: var(--tcc-antique-ivory);
  --bg-elevated: var(--tcc-ivory-50);
  --bg-sunken: var(--tcc-ivory-200);
  --bg-inverse: var(--tcc-noir-900);
  --bg-accent: var(--tcc-terracotta-500);
  --bg-muted: var(--tcc-khaki-500);

  --fg1: var(--tcc-noir-900);
  --fg2: var(--tcc-terracotta-700);
  --fg3: var(--tcc-khaki-600);
  --fg-inverse: var(--tcc-antique-ivory);
  --fg-accent: var(--tcc-terracotta-500);

  --border: rgba(59, 25, 25, 0.14);
  --border-strong: rgba(59, 25, 25, 0.32);
  --border-inverse: rgba(246, 244, 241, 0.18);
  --hairline: rgba(59, 25, 25, 0.08);

  /* --- type --- */
  --font-display: "Tokyo Dreams", "Cardo", Georgia, serif;
  --font-serif: "Cardo", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --track-display: -0.012em;
  --track-serif: 0em;
  --track-sub: 0.12em;
  --track-body: 0.01em;

  --fs-display-xl: clamp(56px, 9vw, 128px);
  --fs-display-l: clamp(44px, 6.5vw, 88px);
  --fs-display-m: clamp(36px, 5vw, 64px);
  --fs-h1: clamp(32px, 4vw, 48px);
  --fs-h2: 28px;
  --fs-h3: 22px;
  --fs-h4: 18px;
  --fs-body-l: 18px;
  --fs-body: 16px;
  --fs-body-s: 14px;
  --fs-caption: 12px;
  --fs-eyebrow: 11px;

  --lh-display: 0.98;
  --lh-heading: 1.15;
  --lh-body: 1.55;
  --lh-tight: 1.25;

  /* --- space, radii, elevation --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(59, 25, 25, 0.06);
  --shadow-sm: 0 2px 8px rgba(59, 25, 25, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(59, 25, 25, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(59, 25, 25, 0.28);

  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-entry: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 520ms;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}
html,
body,
#root {
  height: auto;
  min-height: 100%;
  overflow: visible;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll {
  overflow: hidden;
}
::selection {
  background: var(--tcc-terracotta-500);
  color: var(--tcc-antique-ivory);
}

/* ---------- type roles ----------
   Tokyo Dreams leads, display only, never all caps.
   Montserrat is the information layer.
   Cardo is the editorial accent. */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: 0.96;
  letter-spacing: -0.014em;
  text-wrap: balance;
  margin: 0;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0;
}
.ui-h {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0;
}
.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  line-height: 1.4;
}
.label-lg {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.4;
}
.body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin: 0;
}
.body-s {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body-s);
  line-height: 1.6;
  margin: 0;
}
.editorial {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-body-l);
  line-height: 1.55;
  letter-spacing: 0;
  margin: 0;
}
.lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.5;
  letter-spacing: 0;
  margin: 0;
}
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
}
.num {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
}

/* ---------- layout ---------- */

.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: var(--space-7);
  padding-right: var(--space-7);
}
.hairline {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.rule-terra {
  width: 40px;
  height: 1px;
  background: var(--tcc-terracotta-500);
}
.rule-khaki {
  width: 60px;
  height: 1px;
  background: var(--tcc-khaki-500);
}

/* ---------- controls: sharp, editorial, 44px min ---------- */

.btn {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 17px 32px;
  min-height: 44px;
  border: 1px solid var(--tcc-terracotta-500);
  border-radius: var(--radius-sm);
  background: var(--tcc-terracotta-500);
  color: var(--tcc-antique-ivory);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft);
}
.btn:hover {
  background: var(--tcc-terracotta-700);
  border-color: var(--tcc-terracotta-700);
}

.btn-ivory {
  background: var(--tcc-antique-ivory);
  border-color: var(--tcc-antique-ivory);
  color: var(--tcc-noir-900);
}
.btn-ivory:hover {
  background: var(--tcc-noir-900);
  border-color: var(--tcc-noir-900);
  color: var(--tcc-antique-ivory);
}

.btn-quiet {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg1);
}
.btn-quiet:hover {
  background: transparent;
  border-color: var(--tcc-terracotta-500);
  color: var(--tcc-terracotta-500);
}

.btn-block {
  width: 100%;
}

/* text link with the approved arrow */
.tlink {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg1);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft);
}
.tlink:hover {
  color: var(--tcc-terracotta-500);
  border-color: var(--tcc-terracotta-500);
}
.tlink-inverse {
  color: var(--fg-inverse);
  border-color: var(--border-inverse);
}
.tlink-inverse:hover {
  color: var(--tcc-antique-ivory);
  border-color: var(--tcc-antique-ivory);
}

/* nav */
.navlink {
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg1);
  text-decoration: none;
  padding: 14px 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--dur-fast) var(--ease-soft);
}
.navlink:hover {
  color: var(--tcc-terracotta-500);
}

/* focus: 2px terracotta with a 2px ivory offset */
:focus-visible {
  outline: 2px solid var(--tcc-terracotta-500);
  outline-offset: 2px;
}

/* ---------- cards ---------- */

.card {
  background: var(--tcc-ivory-50);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
}
.card-lift {
  transition: transform var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft);
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---------- forms ---------- */

.field {
  width: 100%;
  background: var(--tcc-ivory-50);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--fg1);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-fast) var(--ease-soft);
}
.field::placeholder {
  color: var(--tcc-khaki-600);
  opacity: 1;
}
.field:focus {
  border-color: var(--tcc-terracotta-500);
  box-shadow: var(--shadow-sm);
}
.field-error {
  border-color: var(--tcc-terracotta-700);
}

/* ---------- motion: fades and 4px lifts only ---------- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-soft),
    transform var(--dur-base) var(--ease-soft);
}
.reveal[data-shown="true"] {
  opacity: 1;
  transform: none;
}
.fade-in {
  animation: fade-in var(--dur-base) var(--ease-soft) forwards;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sheet-in {
  animation: sheet-in var(--dur-base) var(--ease-soft) forwards;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fade-in,
  .sheet-in {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* accordion */
.acc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-soft);
}
.acc[data-open="true"] {
  grid-template-rows: 1fr;
}
.acc-inner {
  overflow: hidden;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

@media (max-width: 900px) {
  .shell {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
}

/* ---------- responsive ---------- */
.nav-mobile { display: none; }

@media (max-width: 1100px) {
  .sec-head { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-panel { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .split-2 { grid-template-columns: 1fr !important; }
  .sess-body { grid-template-columns: 1fr !important; }
  .app-split { grid-template-columns: 1fr !important; }
  .app-devices { justify-content: flex-start !important; overflow-x: auto; padding-bottom: var(--space-4); }
  .device { width: 244px; }
}

@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .nav-toggle { display: flex !important; }
  .nav-mobile { display: block; }
  .grid-3, .grid-2, .grid-4, .grid-panel { grid-template-columns: 1fr !important; }
  .grid-2 > article { grid-column: span 1 !important; }

  .hero-meta { grid-template-columns: repeat(2, 1fr) !important; }
  .sess-body { padding-left: 0 !important; }
  .device { width: 236px; }
  .app-devices { gap: var(--space-4) !important; }
  section > .shell { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }
}

@media (max-width: 560px) {
  .hero-meta { grid-template-columns: 1fr !important; }
  .sess-day { display: none !important; }
}

.lockup { width: 232px; height: auto; display: block; }

/* the hero must resolve on the first screen */
.hero-display { font-size: clamp(44px, 6.6vw, 96px); line-height: 0.94; }

.device { width: 268px; }

/* five nav items plus a CTA stop fitting before the layout does */
@media (max-width: 1120px) {
  .nav-desktop { display: none !important; }
  .nav-toggle { display: flex !important; }
}

@media (max-width: 900px) {
  .lockup { width: 168px; }
  .header-cta { display: none !important; }
}

/* sticky header clearance for anchor jumps */
section[id], footer { scroll-margin-top: 96px; }
@media (max-width: 900px) { section[id], footer { scroll-margin-top: 76px; } }

/* sticky access bar clearance */
body { padding-bottom: 0; }

@media (max-width: 900px) {  }

@media (max-width: 900px) {
  .compare-table { display: none !important; }
  .compare-stack { display: block !important; }
  /* one compact row: the essential line and the action, nothing else.
     The dates repeat elsewhere on the page, so they go first. */
  .sticky-inner {
    gap: var(--space-4) !important;
    padding-top: var(--space-2) !important;
    padding-bottom: var(--space-2) !important;
  }
  .sticky-when, .sticky-full { display: none !important; }
  .sticky-short { display: block !important; }
  .sticky-copy > p { margin-top: 0 !important; }
  .sticky-btn { padding: 13px 16px !important; letter-spacing: 0.14em !important; font-size: 11px !important; }
  /* the timer stays on one line beside the action */
  /* the timer keeps its numerals and drops the label: the phrase
     already appears in the bar above the nav, the hero, the cards, and
     the closing section. A clipped label is worse than none. */
  .sticky-copy { overflow: hidden; }
  .sticky-copy .cd-compact { white-space: nowrap; gap: var(--space-2) !important; }
  .sticky-copy .cd-compact .label { display: none !important; }
  .sticky-copy .cd-compact .num { font-size: 16px; }
}

.sticky-short { display: none; }

/* clearance for the fixed access bar, attendee page only */
.has-sticky main { padding-bottom: var(--space-9); }
@media (max-width: 900px) { .has-sticky main { padding-bottom: var(--space-10); } }

/* countdown */
.cd-line { display: none; }
@media (max-width: 560px) {
  .cd-units { display: none !important; }
  .cd-line { display: block; }
}
.nav-countdown { display: inline-flex; }
@media (max-width: 1500px) { .nav-countdown { display: none !important; } }
@media (max-width: 900px) {
  .countdown-bar { flex-wrap: wrap; gap: var(--space-3); }
  .countdown-bar-copy { display: none !important; }
  .snapshot { gap: var(--space-6) !important; }
}

@media (max-width: 900px) {
  .keynote-split { grid-template-columns: 1fr !important; }
  /* the portrait fills its column on desktop; on one column it needs a cap */
  .keynote-split > div:first-child {
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
  }
}

/* the narrowest phones: shave the timer and the action, nothing clips */
@media (max-width: 380px) {
  .sticky-copy .cd-compact .num { font-size: 14px; }
  .sticky-btn { padding: 13px 14px !important; font-size: 11px !important; letter-spacing: 0.12em !important; }
}

/* below 340px a single row cannot hold both without clipping, so the
   action takes its own line. Two thin rows, not the tall stack. */
@media (max-width: 340px) {
  .sticky-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--space-2) !important;
  }
  .sticky-copy {
    display: flex !important;
    align-items: baseline;
    gap: var(--space-4);
  }
  .sticky-copy > p { margin: 0 !important; }
  .sticky-btn { width: 100%; padding: 12px 14px !important; }
}

/* visually hidden, still read by assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* comparison rows */
.cmp-row { transition: background var(--dur-fast) var(--ease-soft); }
.cmp-row:hover { background: var(--tcc-ivory-200); }

/* activation rows: the price sits beside the name on desktop and drops
   beneath it on a phone rather than squeezing the title */
@media (max-width: 700px) {
  .act-price { display: block; width: 100%; padding-top: var(--space-3) !important; }
}

/* past partners: the category label sits above the names on a phone */
@media (max-width: 760px) {
  .past-row { grid-template-columns: 1fr !important; gap: var(--space-4) !important; }
}

/* ---------- logo marquee ----------
   A continuous horizontal drift, not a carousel. The design system
   allows fades and 4px lifts, so this is a documented departure: it is
   the one piece of ambient motion on the site, deliberately slow enough
   to read as a moving wall rather than an animation. It pauses on hover
   and on focus, and resolves to a static wrapped row when the visitor
   prefers reduced motion. */

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-drift 64s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .marquee-dupe {
    display: none !important;
  }
}
@media (max-width: 700px) {
  .marquee-name { font-size: 13px !important; letter-spacing: 0.14em !important; }
}
