/* ===== Camel Connect — candidate B "The Headlines" ===== */

@font-face { font-family: "Akkordeon"; src: url("shared/fonts/Akkordeon-Seven.ttf") format("truetype"); font-weight: 400 900; font-display: swap; ascent-override: 78%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Condensed"; src: url("shared/fonts/BarlowCondensed_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("shared/fonts/BarlowCondensed_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("shared/fonts/BarlowCondensed_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("shared/fonts/BarlowCondensed_900Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("shared/fonts/Inter_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("shared/fonts/Inter_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("shared/fonts/Inter_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("shared/fonts/Inter_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("shared/fonts/Inter_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #000;
  --gold: #F4C752;
  --deep: #EBA149;
  --ember: #E27E45;
  --cream: #F5EEDC;
  --text: #E5E2E1;
  --muted: #A1A1AA;
  --card: #111;
  --card-2: #1A1A1A;
  --stroke: #333;
  --grad: linear-gradient(100deg, #F4C752 0%, #EBA149 55%, #E27E45 100%);
  --gut: clamp(16px, 4.4vw, 72px);
  --display: "Akkordeon", "Barlow Condensed", "Arial Narrow", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 6px; }

.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; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #000; padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.cream { color: var(--cream); }
.gold-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-family: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: clamp(13px, 1.05vw, 15px);
  color: var(--gold);
  margin: 0 0 clamp(12px, 2vh, 22px);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow .num { color: var(--cream); padding-right: 12px; border-right: 1px solid var(--stroke); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(244,199,82,.7); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #000;
  font-family: var(--body); font-weight: 700; font-size: 16px; letter-spacing: -.005em;
  padding: 16px 28px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(244,199,82,.5), 0 8px 30px -12px rgba(244,199,82,.55);
  transition: transform .25s ease, background-color .25s ease;
}
.btn:hover { background: #f7d470; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gut);
  background: linear-gradient(#000 0%, rgba(0,0,0,.85) 60%, rgba(0,0,0,0));
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 2px rgba(244,199,82,.55)); }
.brand span { font-family: var(--label); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 17px; color: var(--cream); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.pill {
  font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
  color: var(--gold); border: 1px solid rgba(244,199,82,.45); border-radius: 999px; padding: 6px 12px;
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; }
.hero-inner {
  position: relative; width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gut) clamp(60px, 10vh, 120px);
  will-change: transform, opacity;
}
.hero-eyebrow { margin-bottom: clamp(16px, 3vh, 36px); }
.hero-title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: 15.5vw;            /* JS fits this exactly to the width */
  line-height: .86;
  letter-spacing: -.005em;
  text-transform: uppercase;
  display: flex; align-items: flex-end; gap: .14em;
  width: max-content; max-width: none;
  white-space: nowrap;
}
.hero-row { display: inline-flex; align-items: flex-end; gap: .1em; }
.hw { display: inline-block; overflow: hidden; padding-top: .08em; margin-top: -.08em; }
.hw .ch { display: inline-block; }
.hw.gold-text .ch { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.logo-drop { display: inline-block; width: .78em; height: .78em; margin-bottom: .02em; flex: none; }
.logo-drop img { width: 100%; height: 100%; filter: drop-shadow(0 0 2px rgba(244,199,82,.55)); }
.hero-foot {
  margin-top: clamp(22px, 4vh, 44px);
  display: grid; grid-template-columns: auto minmax(0, 520px); gap: 12px clamp(24px, 4vw, 64px); align-items: baseline;
}
.hero-sub { margin: 0; font-family: var(--body); font-weight: 600; font-size: clamp(19px, 1.9vw, 28px); color: var(--cream); letter-spacing: -.01em; }
.hero-copy { margin: 0; color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); }
.scroll-cue {
  position: absolute; right: var(--gut); bottom: clamp(24px, 5vh, 48px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--label); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--muted);
}
.scroll-cue i { display: block; width: 56px; height: 1px; background: #333; position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); }
.motion .scroll-cue i::after { animation: cue 2.2s cubic-bezier(.6,0,.2,1) infinite 1.6s; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* load sequence (only with JS + motion) */
.motion .hero .hw .ch { transform: translateY(105%); }
.motion .hero .logo-drop { transform: translateY(-160%) rotate(-18deg); opacity: 0; }
.motion .hero-eyebrow, .motion .hero-foot, .motion .scroll-cue, .motion .topbar { opacity: 0; transform: translateY(14px); }
.motion .topbar { transform: translateY(-14px); }
.motion.ready .hero .hw .ch { transform: none; transition: transform 1s cubic-bezier(.16,.9,.24,1) calc(.12s + var(--i, 0) * 55ms); }
.motion.ready .hero .logo-drop { transform: none; opacity: 1; transition: transform .9s cubic-bezier(.34,1.5,.6,1) .65s, opacity .3s ease .65s; }
.motion.ready .hero-eyebrow, .motion.ready .hero-foot, .motion.ready .scroll-cue, .motion.ready .topbar { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.motion.ready .hero-eyebrow { transition-delay: .05s; }
.motion.ready .hero-foot { transition-delay: .95s; }
.motion.ready .scroll-cue { transition-delay: 1.3s; }
.motion.ready .topbar { transition-delay: 1.1s; }

/* ---------- marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid rgba(244,199,82,.28);
  padding: clamp(14px, 2vw, 22px) 0;
  background: #000;
}
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-set { display: flex; align-items: center; flex: none; }
.mq-set span, .mq-set b {
  font-family: var(--label); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 52px); line-height: 1; letter-spacing: .02em;
  color: var(--gold); white-space: nowrap;
}
.mq-set b { font-weight: 600; font-size: clamp(16px, 2vw, 26px); color: var(--deep); padding: 0 clamp(18px, 2.4vw, 36px); }

/* ---------- media frame ---------- */
.frame {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 2vw, 30px);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: 0 0 0 1px rgba(244,199,82,.08), 0 30px 80px -40px rgba(0,0,0,.9);
  aspect-ratio: 4 / 5;
}
.frame::before { /* thin gold light on the top edge */
  content: ""; position: absolute; z-index: 2; left: 18%; right: 18%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,199,82,.8), transparent);
}
.frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- headline moments ---------- */
.hl { position: relative; }
.motion .hl { height: 250vh; }
.hl-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center; gap: clamp(24px, 4vw, 80px);
  padding: 92px var(--gut) 40px;
  overflow: clip;
}
html:not(.motion) .hl-pin { position: relative; height: auto; min-height: 100svh; }
.hl.flip .hl-type { order: 2; }
.hl.flip .hl-card { order: 1; }
.hl-type { min-width: 0; }
.hl-title {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 11vw, 200px);  /* JS fits per section */
  line-height: .9; color: var(--cream); text-transform: uppercase;
}
.hl-line { display: block; width: max-content; max-width: none; white-space: nowrap; will-change: transform; }
.hl-line .ch { display: inline-block; white-space: pre; }
.hl-line.key { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hl-line.key.split { background: none; }
.hl-line.key .ch {
  --cut: 115%;
  background-image:
    linear-gradient(90deg, rgba(245,238,220,0) 0, rgba(245,238,220,0) calc(var(--cut) - 12%), #F5EEDC var(--cut)),
    var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hl-copy { margin: clamp(16px, 3vh, 30px) 0 0; max-width: 470px; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); }
.hl-card { justify-self: center; display: flex; justify-content: center; width: 100%; will-change: transform; }
.hl-card .frame { height: min(72vh, 680px); height: min(72svh, 680px); width: auto; max-width: 100%; }

/* ---------- horizontal dashboard ---------- */
.dash { position: relative; }
.dash-pin {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 104px 0 72px;
}
.motion .dash-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 var(--gut); margin-bottom: clamp(18px, 3.5vh, 40px); }
.dash-head .eyebrow { margin-bottom: 10px; }
.dash-title { margin: 0; font-family: var(--display); font-weight: 400; line-height: .9; color: var(--cream); font-size: clamp(42px, 6.4vw, 104px); }
.dash-count { margin: 0; font-family: var(--label); font-weight: 700; letter-spacing: .14em; color: var(--muted); font-size: clamp(16px, 1.5vw, 22px); white-space: nowrap; }
.dash-count span { color: var(--gold); }
.dash-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; }
.dash-viewport::-webkit-scrollbar { display: none; }
.motion .dash-viewport { overflow: visible; }
.dash-track { list-style: none; margin: 0; padding: 0 var(--gut); display: flex; gap: clamp(16px, 2.6vw, 40px); width: max-content; will-change: transform; }
.dcard {
  --cw: min(400px, 76vw, calc((100svh - 430px) * .8));
  width: var(--cw); flex: none; scroll-snap-align: start;
  will-change: transform;
}
.dcard .frame { width: 100%; }
.dc-meta { padding: 18px 4px 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.dc-num { font-family: var(--label); font-weight: 800; color: var(--gold); font-size: 15px; letter-spacing: .12em; padding-top: 6px; grid-row: span 2; }
.dc-meta h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--cream); font-size: clamp(26px, 2.3vw, 36px); line-height: .95; }
.dc-meta p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.dash-progress { display: none; }
.motion .dash-progress { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(22px, 4vh, 40px); height: 2px; background: #222; border-radius: 2px; overflow: hidden; }
.dash-progress span { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 6px rgba(244,199,82,.6); }

/* ---------- reel ---------- */
.reel { position: relative; }
.motion .reel { height: 220vh; }
.reel-pin {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 3.4vw, 64px);
  padding: 92px var(--gut) 40px;
  overflow: clip;
}
.motion .reel-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.reel-side { font-family: var(--display); line-height: .9; color: var(--cream); font-size: clamp(48px, 7vw, 132px); min-width: 0; }
.reel-side.left { justify-self: end; text-align: right; }
.reel-side.left .rl { margin-left: auto; }
.reel-side.right { justify-self: start; }
.rl { display: block; width: max-content; white-space: nowrap; will-change: transform; }
.reel-card { display: flex; flex-direction: column; align-items: center; gap: 16px; will-change: transform; }
.frame-tall { aspect-ratio: 9 / 16; height: min(76vh, 760px); height: min(76svh, 760px); width: auto; }
.steps { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--muted); white-space: nowrap; }
.steps b { color: var(--gold); padding: 0 4px; }
.vid-toggle {
  position: absolute; z-index: 3; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(244,199,82,.5); background: rgba(0,0,0,.65); color: var(--gold);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.vid-toggle[hidden] { display: none; }
.vid-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.vid-toggle .i-play { display: none; }
.vid-toggle[data-paused="true"] .i-play { display: block; }
.vid-toggle[data-paused="true"] .i-pause { display: none; }

/* ---------- CTA ---------- */
.cta { position: relative; }
.motion .cta { height: 200vh; }
.cta-pin {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 92px var(--gut) 60px; overflow: clip;
}
.motion .cta-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.cta-title { margin: 0; font-family: var(--display); font-weight: 400; line-height: .88; font-size: clamp(80px, 20vw, 320px); display: flex; flex-direction: column; align-items: center; }
.cl { display: block; width: max-content; white-space: nowrap; }
.cl .ch { display: inline-block; will-change: transform, opacity; }
.gold-text.split { background: none; }
.cl.gold-text .ch { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html:not(.js) .cl.gold-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.cta-body { margin-top: clamp(24px, 5vh, 48px); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta-body p { margin: 0; max-width: 520px; color: var(--text); font-size: clamp(16px, 1.4vw, 20px); }
.cta-body:focus-within { opacity: 1 !important; transform: none !important; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid #222;
  padding: 40px var(--gut) 48px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer img { width: 44px; height: 44px; filter: drop-shadow(0 0 2px rgba(244,199,82,.55)); }
.footer p { margin: 0; }
.f-name { font-family: var(--label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); font-size: 16px; }
.f-copy { margin-left: auto !important; color: var(--muted); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .topbar .btn-sm { display: none; }
  .hero-title { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }

  .motion .hl { height: 230vh; }
  .hl-pin { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 78px var(--gut) 24px; }
  .hl.flip .hl-type, .hl.flip .hl-card { order: 0; }
  .hl-copy { font-size: 15px; margin-top: 12px; }
  .hl-card .frame { height: clamp(220px, 44svh, 520px); }

  .dash-pin { padding: 84px 0 56px; }
  .dash-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .dash-count { display: none; }
  .dcard { --cw: min(76vw, calc((100svh - 380px) * .8), 440px); }
  .dc-meta { padding-top: 14px; }
  .dc-meta h3 { font-size: 26px; }
  .dc-meta p { font-size: 14px; }

  .reel-pin { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 14px; padding: 76px var(--gut) 24px; }
  .reel-side { font-size: 13vw; justify-self: center !important; text-align: center !important; }
  .reel-side .rl { margin-inline: 0 !important; }
  .reel-side.left { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .22em; }
  .reel-side.left .rl, .reel-side.right .rl { display: inline-block; }
  .reel-side.right { display: flex; justify-content: center; column-gap: .22em; }
  .frame-tall { height: min(54svh, 560px); }
  .steps { font-size: 11px; letter-spacing: .1em; }

  .f-copy { margin-left: 0 !important; width: 100%; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .hl-copy { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
