/* ============================================================
   RYAN SIMPSON — BRAND TOKENS
   Drop this in, link it before your own stylesheet, use the vars.
   Fonts: add this to <head> or @import at the top of your CSS:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Instrument+Serif:ital@0;1&family=Lato:wght@400;700&display=swap" rel="stylesheet">
   (v1.2: Montserrat replaced Poppins so stills match the videos. Video
   renders add JetBrains Mono and use display=block, see the video layer.)
   ============================================================ */

:root {
  /* ---- NEUTRALS — cool-biased ink scale ------------------- */
  --ink-950: #07080B;
  --ink-900: #0D0F13;
  --ink-800: #14161A;   /* brand base. the dark everything sits on */
  --ink-700: #1F232B;
  --ink-600: #2A313C;
  --ink-500: #3D434D;   /* body text on light */
  --ink-400: #5B626D;
  --ink-300: #767E8B;   /* muted / meta — large text only on white */
  --ink-200: #98A0AC;
  --ink-100: #C3C9D2;
  --ink-75:  #DFE3E8;   /* rules, borders */
  --ink-50:  #EDF0F3;   /* soft rules */
  --ink-25:  #F6F7F9;   /* page wash */
  --white:   #FFFFFF;

  /* ---- ACCENT — signal orange ----------------------------- */
  --accent-700: #8F2D11;
  --accent-600: #B23A18;  /* accent TEXT on light. passes AA */
  --accent-500: #E2542B;  /* the brand colour. fills, not small text */
  --accent-400: #FF7A4D;
  --accent-300: #FF8A3D;  /* accent text + serif accent on dark. 7.72:1 AAA. = video orange-light */
  --accent-200: #FFB38A;
  --accent-50:  #FDF1EC;  /* accent wash / highlight blocks */

  /* ---- COOL — counter-light, never the hero --------------- */
  --cool-700: #1A3A4F;
  --cool-600: #22485F;
  --cool-500: #2E5873;
  --cool-400: #3C6E8F;

  /* ---- STATUS -------------------------------------------- */
  --success: #2E7D53;  --success-on-dark: #5FC98E;
  --warning: #8A6100;  --warning-on-dark: #E0A33A;
  --danger:  #A3201D;  --danger-on-dark:  #E86A64;
  --info:    #2E5873;  --info-on-dark:    #7FB3D1;

  /* ---- SEMANTIC (light surface, the default) -------------- */
  --bg:            var(--ink-25);
  --surface:       var(--white);
  --surface-sunk:  var(--ink-50);
  --text:          var(--ink-500);
  --text-strong:   var(--ink-800);
  --text-muted:    var(--ink-300);
  --border:        var(--ink-75);
  --border-soft:   var(--ink-50);
  --link:          var(--accent-600);

  /* ---- TYPE ---------------------------------------------- */
  --font-display: "Montserrat", Helvetica, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;   /* italic 400, one phrase per heading */
  --font-body: "Lato", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --text-display-xl: 3.5rem;    --lh-display-xl: 1.04;  --ls-display-xl: -0.022em;
  --text-display-l:  2.5rem;    --lh-display-l:  1.08;  --ls-display-l:  -0.020em;
  --text-h1:         2rem;      --lh-h1:         1.15;  --ls-h1:         -0.018em;
  --text-h2:         1.5rem;    --lh-h2:         1.22;  --ls-h2:         -0.015em;
  --text-h3:         1.25rem;   --lh-h3:         1.30;  --ls-h3:         -0.010em;
  --text-h4:         1.0625rem; --lh-h4:         1.35;  --ls-h4:         0;
  --text-lg:         1.125rem;  --lh-lg:         1.60;
  --text-base:       1rem;      --lh-base:       1.62;
  --text-sm:         0.9375rem; --lh-sm:         1.55;
  --text-xs:         0.8125rem; --lh-xs:         1.45;
  --text-label:      0.6875rem; --lh-label:      1.40;  --ls-label:      0.14em;

  --weight-regular: 400;
  --weight-bold: 700;
  --weight-display: 600;

  /* ---- SPACING — 4px base -------------------------------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;

  /* ---- RADII --------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;   /* the panel radius. used on the stream frame */
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ---- ELEVATION ----------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(20,22,26,.06), 0 1px 1px rgba(20,22,26,.04);
  --shadow-md: 0 4px 12px rgba(20,22,26,.08), 0 1px 3px rgba(20,22,26,.06);
  --shadow-lg: 0 12px 32px rgba(20,22,26,.12), 0 2px 8px rgba(20,22,26,.06);
  --shadow-glow: 0 0 40px rgba(226,84,43,.28);

  /* ---- MOTION -------------------------------------------- */
  --ease: cubic-bezier(.2,.7,.3,1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;

  --maxw-prose: 68ch;
  --maxw-page: 1200px;
}

/* ---- DARK SURFACE ---------------------------------------
   Put data-theme="dark" on <html> or any container. The palette
   stays identical; only the semantic layer flips.              */
[data-theme="dark"] {
  --bg:           var(--ink-950);
  --surface:      var(--ink-800);
  --surface-sunk: var(--ink-900);
  --text:         var(--ink-200);
  --text-strong:  var(--white);
  --text-muted:   var(--ink-300);
  --border:       var(--ink-700);
  --border-soft:  var(--ink-800);
  --link:         var(--accent-300);
  --success: var(--success-on-dark);
  --warning: var(--warning-on-dark);
  --danger:  var(--danger-on-dark);
  --info:    var(--info-on-dark);
}

/* ============================================================
   BASE — optional. delete if you have your own reset.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  color: var(--text-strong);
  margin: 0 0 var(--space-3);
}
h1 { font-size: var(--text-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
h2 { font-size: var(--text-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3 { font-size: var(--text-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
h4 { font-size: var(--text-h4); line-height: var(--lh-h4); }

p { margin: 0 0 var(--space-4); max-width: var(--maxw-prose); }
strong { color: var(--text-strong); font-weight: var(--weight-bold); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); font-size: 0.875em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0; }

/* ============================================================
   COMPONENTS — the handful worth standardising.
   ============================================================ */

.display { font-family: var(--font-display); font-weight: var(--weight-display);
  font-size: var(--text-display-l); line-height: var(--lh-display-l);
  letter-spacing: var(--ls-display-l); color: var(--text-strong); }

.eyebrow { font-family: var(--font-display); font-size: var(--text-label);
  font-weight: 600; letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--accent-500); }

.muted { color: var(--text-muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }

/* accent-600, not 500 — white on 500 is only 3.8:1 */
.btn-primary { background: var(--accent-600); color: var(--white); }
.btn-primary:hover { background: var(--accent-700); }

.btn-secondary { background: transparent; color: var(--text-strong);
  border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-sunk); border-color: var(--ink-100); }

.btn-ghost { background: transparent; color: var(--link); padding-inline: var(--space-2); }
.btn-ghost:hover { background: var(--accent-50); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.callout {
  background: var(--accent-50);
  border-left: 3px solid var(--accent-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-4) var(--space-5);
}
[data-theme="dark"] .callout { background: rgba(226,84,43,.10); }

.badge {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-label); letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--ink-800); color: var(--white);
}
.badge-accent { background: var(--accent-500); }
.badge-soft { background: var(--ink-50); color: var(--ink-500); }

.input {
  width: 100%;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--text-strong); background: var(--surface);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  outline: none; border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(226,84,43,.16);
}

/* The signature surface: deep charcoal, warm key light low-right,
   cool fill upper-left. Use for hero sections and dark panels. */
.brand-surface {
  background:
    radial-gradient(60% 70% at 86% 88%, rgba(226,84,43,.26) 0%, rgba(226,84,43,0) 62%),
    radial-gradient(52% 60% at 4% 28%, rgba(60,110,143,.16) 0%, rgba(60,110,143,0) 64%),
    linear-gradient(170deg, #16191F 0%, #090A0D 100%);
  color: var(--ink-200);
}
.brand-surface h1, .brand-surface h2,
.brand-surface h3, .brand-surface .display { color: var(--white); }
.brand-surface .eyebrow { color: var(--accent-400); }

/* ============================================================
   FROM THE VIDEOS (v1.2): applies to stills too.
   Web, slides, thumbnails, social graphics.
   ============================================================ */

/* One accent phrase per heading, in the serif. Never a whole heading.
   <h1>Own your <em class="accent">marketing</em></h1>               */
.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400;
  font-size: 1.35em; line-height: .9; letter-spacing: 0; color: var(--accent-600);
  margin-left: .06em; }
[data-theme="dark"] .accent, .brand-surface .accent, .on-photo .accent { color: var(--accent-300); }

/* Calm glass: ONLY on dark surfaces or over a photo. Never on light UI. */
.glass { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 45%, rgba(255,255,255,.045)),
              rgba(16,16,20,.32);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 16px 40px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.22);
  color: var(--white); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.42), rgba(255,255,255,.06) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }

/* Text set over a photo or footage: soft shadow. Flat surfaces never get one. */
.on-photo { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45); }

/* Real logos in full colour on a white tile, wherever a product is named. */
.logo-tile { width: 56px; height: 56px; border-radius: 26%; background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-50); box-shadow: var(--shadow-sm); }
.logo-tile img, .logo-tile svg { width: 56%; height: 56%; object-fit: contain; }
[data-theme="dark"] .logo-tile, .brand-surface .logo-tile { border-color: transparent;
  box-shadow: 0 14px 34px rgba(0,0,0,.35); }

/* Headline reveal: rises out of a soft blur, once. Stagger words with --i. */
@keyframes reveal { from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
                    to   { opacity: 1; transform: none; filter: blur(0); } }
.reveal { animation: reveal 600ms cubic-bezier(.215,.61,.355,1) both;
  animation-delay: calc(var(--i, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* ============================================================
   VIDEO LAYER (v1.1): YouTube long-form, Reels, TikTok, Shorts
   Approved in Ryan's edit reviews, Oct 2026. Source of truth is
   the youtube-edit and reels-edit skills. Video-only sizes, colours
   and timings. The parts stills share live in "FROM THE VIDEOS" above.
   ============================================================ */
:root {
  --video-orange:        #FF6A13;   /* fills, bars, cores, pins. dark ink on top, never white */
  --video-orange-light:  #FF8A3D;   /* serif accent + accent text over footage. 7.72:1 on ink-800 */
  --video-orange-soft:   #FFB27A;   /* packets, glows, sparks */
  --video-ink-on-orange: #1A1209;
  --video-blue:          #4C8DFF;   /* the little bit of blue */
  --video-live:          #5BD08A;   /* live dots, ticks, trending up */
  --video-label:         rgba(255,255,255,.72);

  --video-font:        "Montserrat", Helvetica, sans-serif;
  --video-font-accent: "Instrument Serif", serif;
  --video-font-mono:   "JetBrains Mono", monospace;

  --video-text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.45);
  --video-glass-tint:  .32;
  --video-glass-shadow: 0 16px 40px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.22);

  --video-ease-enter:  cubic-bezier(.215,.61,.355,1);   /* ~ power3.out */
  --video-ease-camera: cubic-bezier(.72,0,.22,1.10);    /* slow-fast-slow, small overshoot */
  --video-ease-morph:  cubic-bezier(.76,0,.24,1);       /* reels full <-> split */
}

/* Montserrat label/title, one Instrument Serif accent phrase */
.v-tx { font-family: var(--video-font); font-weight: 600; letter-spacing: -.015em;
  color: #fff; text-shadow: var(--video-text-shadow); }
.v-sf { font-family: var(--video-font-accent); font-style: italic; font-weight: 400;
  color: var(--video-orange-light); text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.v-hd > span + span { margin-left: .24em; }   /* the italic serif crowds the sans without this */
.v-label { font-family: var(--video-font); font-weight: 500; letter-spacing: .02em;
  color: var(--video-label); text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* soft dark shade behind plain text over footage (no container needed) */
.v-shade { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(18px);
  background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.35) 55%, rgba(0,0,0,0)); }

/* calm liquid glass: windows and cards only. thin rim, light blur, no sheen */
.v-glass { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 45%, rgba(255,255,255,.045)),
              rgba(16,16,20,var(--video-glass-tint));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--video-glass-shadow); }
.v-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.42), rgba(255,255,255,.06) 35%, rgba(255,255,255,0) 60%, rgba(255,255,255,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.v-glass.dark { --video-glass-tint: .45; }   /* over bright backgrounds, code and browser windows */

/* orange fill (core, pill, bar): always dark ink on top */
.v-fill { background: linear-gradient(150deg, #FF9B4D, var(--video-orange)); color: var(--video-ink-on-orange);
  box-shadow: 0 8px 30px rgba(255,106,19,.45); }

/* app-icon tile for real logos */
.v-tile { background: #fff; border-radius: 26%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.06); }

/* reels caption: Montserrat 600, words rise out of a blur as spoken, keywords in the serif */
.v-caption { font-family: var(--video-font); font-weight: 600; letter-spacing: -.01em; line-height: 1.1;
  color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.55), 0 1px 1px rgba(0,0,0,.35); }
.v-caption .w { display: inline-block; }
.v-caption .k { font-family: var(--video-font-accent); font-style: italic; font-weight: 400;
  font-size: 1.3em; line-height: .85; color: var(--video-orange-light); letter-spacing: 0; }

/* the two entrances everything uses */
@keyframes v-in-up   { from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(12px); }
                       to   { opacity: 1; transform: none; filter: blur(0); } }
@keyframes v-word-in { from { opacity: 0; transform: translateY(12px); filter: blur(10px); }
                       to   { opacity: 1; transform: none; filter: blur(0); } }
.v-in-up   { animation: v-in-up .6s var(--video-ease-enter) both; }
.v-word-in { animation: v-word-in .28s var(--video-ease-enter) both; }
