/* Chris Brown 2027: Marker on the wall
   Tokens: brand/chris-brown-2027/tokens.json */

:root {
  --tarmac: #161513;
  --surface: #1F1E1B;
  --surface-raised: #262521;
  --chalk: #F3F1EC;
  --chalk-surface: #EAE7E0;
  --buff: #B9B5AC;
  --dim: #7A776F;
  --ink-muted: #5E5B55;
  --orange: #FF5A1F;
  --orange-ink: #E8440F;
  --hairline: rgba(243,241,236,0.14);
  --hairline-chalk: rgba(22,21,19,0.16);
  --divider: #2E2C28;
  --divider-chalk: #D6D2C9;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: 32px;
  --section: 144px;
  --measure: 62ch;

  --t-fast: 120ms;
  --t-normal: 220ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --section: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tarmac);
  color: var(--chalk);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
.strike svg, .circle svg, .underline-g svg { max-width: none; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--orange); color: var(--tarmac); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- type ---------- */
.block, h1, h2 {
  font-family: var(--font);
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin: 0;
}
h1 { font-size: clamp(32px, 6.6vw, 84px); }
@media (max-width: 480px) { h1 { font-stretch: 95%; } }
.grid-4-8 h2 { font-size: clamp(28px, 2.6vw, 38px); }
h2 { font-size: clamp(32px, 3.6vw, 48px); font-stretch: 118%; line-height: 0.95; }
h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  font-stretch: 100%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
p { margin: 0 0 0.75em; max-width: var(--measure); }
.lead { font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; line-height: 1.45; }
.small { font-size: 15px; }
.mono {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.mono-sm { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--buff); }
.chalk-mode .muted { color: var(--ink-muted); }
.label { display: flex; align-items: center; gap: 12px; color: var(--buff); margin-bottom: 32px; }
.label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
.chalk-mode .label { color: var(--ink-muted); }
.chalk-mode .label::before { background: var(--orange-ink); }
.quote {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin: 0 0 20px;
}
.lines p { margin-bottom: 0.6em; }
.lines .lead { margin-bottom: 0.7em; }
ol.steps p + p { margin-top: 0.4em; }

/* ---------- gestures ---------- */
.strike { position: relative; display: inline-block; white-space: nowrap; }
.strike svg {
  position: absolute;
  left: -3%; right: -4%; width: 107%;
  top: 50%; height: 0.42em;
  transform: translateY(-50%);
  overflow: visible;
  pointer-events: none;
}
.strike svg path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chalk-mode .strike svg path { stroke: var(--orange-ink); }
.circle { position: relative; display: inline-block; padding: 0 0.1em; }
.circle svg { position: absolute; inset: -26% -22%; width: 144%; height: 152%; overflow: visible; pointer-events: none; }
.circle svg path { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chalk-mode .circle svg path { stroke: var(--orange-ink); }
.underline-g { position: relative; display: inline-block; }
.underline-g svg { position: absolute; left: -2%; width: 104%; bottom: -0.18em; height: 0.22em; overflow: visible; pointer-events: none; }
.underline-g svg path { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Draw-on: site.js measures each gesture in screen pixels (non-scaling-stroke dashes are screen units),
   sets dasharray/dashoffset inline, then .is-in animates the offset to 0. Without JS the gesture is simply visible. */
.draw.is-in path { animation: draw 700ms cubic-bezier(0.6, 0, 0.2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none; } }
.dot { display: inline-block; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--orange); vertical-align: baseline; margin-left: 0.08em; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section.panel { padding: var(--section) 0; border-top: 1px solid var(--hairline); position: relative; }
section.panel.first { border-top: 0; }
.chalk-mode { background: var(--chalk); color: var(--tarmac); }
.chalk-mode a { color: var(--tarmac); text-decoration: underline; text-decoration-color: var(--orange-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.chalk-mode a.btn { text-decoration: none; }
section.panel.chalk-mode { border-top: 0; }
.chalk-mode + .panel { border-top: 0; }
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
.grain > * { position: relative; z-index: 1; }
.grid { display: grid; gap: 48px; }
.grid-2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-5-7 { grid-template-columns: minmax(0,5fr) minmax(0,7fr); }
.grid-7-5 { grid-template-columns: minmax(0,7fr) minmax(0,5fr); }
.grid-4-8 { grid-template-columns: minmax(0,4fr) minmax(0,8fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-5-7, .grid-7-5, .grid-4-8 { grid-template-columns: 1fr; }
  .grid { gap: 40px; }
}
.rule { border: 0; border-top: 2px solid var(--chalk); margin: 48px 0; }
.chalk-mode .rule { border-top-color: var(--tarmac); }
.hair { border: 0; border-top: 1px solid var(--hairline); margin: 32px 0; }
.chalk-mode .hair { border-top-color: var(--hairline-chalk); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(22,21,19,0.92); border-bottom: 1px solid var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav .brand img { height: 22px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.nav ul a { color: var(--chalk); font-weight: 500; font-size: 15px; }
.nav ul a:hover { color: var(--orange); text-decoration: none; }
.nav ul a[aria-current="page"] { color: var(--buff); }
.nav .cta { display: inline-block; }
.nav-toggle { display: none; background: none; border: 2px solid var(--chalk); color: var(--chalk); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--tarmac); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--hairline); padding: 8px 0; }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; }
  .nav ul a { display: block; padding: 16px var(--gutter); font-size: 18px; }
  .nav ul li.cta-li { padding: 12px var(--gutter) 16px; }
  .nav-toggle { display: inline-block; }
  .nav .cta-desktop { display: none; }
}
@media (min-width: 901px) { .nav ul li.cta-li { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 900;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 16px;
  line-height: 1;
  padding: 16px 24px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: var(--tarmac);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--chalk); border-color: var(--chalk); color: var(--tarmac); text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--chalk); color: var(--chalk); }
.btn.ghost:hover { background: var(--chalk); color: var(--tarmac); }
.chalk-mode .btn { background: var(--tarmac); border-color: var(--tarmac); color: var(--chalk); }
.chalk-mode .btn:hover { background: var(--orange-ink); border-color: var(--orange-ink); color: var(--tarmac); }
.chalk-mode .btn.ghost { background: transparent; color: var(--tarmac); }
.chalk-mode .btn.ghost:hover { background: var(--tarmac); color: var(--chalk); }
.btn.sm { font-size: 13px; padding: 12px 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 40px; }
.arrow-link { font-weight: 700; color: var(--chalk); }
.arrow-link::after { content: " \2192"; color: var(--orange); }
.chalk-mode .arrow-link { color: var(--tarmac); }
.chalk-mode .arrow-link::after { color: var(--orange-ink); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 var(--section); overflow: hidden; position: relative; }
@media (max-width: 768px) { .hero { padding-top: 56px; } }
.hero .eyebrow { margin-bottom: 40px; }
.hero h1 { margin-bottom: 48px; }
.hero .lead { max-width: 52ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 48px; align-items: start; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; max-width: 440px; justify-self: end; width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,21,19,0) 50%, #161513 100%); }
.hero-photo .caption { position: absolute; left: 0; bottom: 16px; z-index: 2; color: var(--buff); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { max-width: 420px; } }

/* ---------- stat strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.strip > div { padding: 28px 24px 28px 0; border-right: 1px solid var(--hairline); }
.strip > div:last-child { border-right: 0; }
.strip > div + div { padding-left: 24px; }
.strip .big { font-size: clamp(22px, 2.1vw, 30px); font-weight: 900; font-stretch: 112%; text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
@media (max-width: 900px) {
  .strip { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .strip .big { font-size: clamp(16px, 4.5vw, 30px); font-stretch: 105%; }
  .strip > div { border-right: 0; border-bottom: 1px solid var(--hairline); padding-left: 0; }
  .strip > div:nth-child(odd) { border-right: 1px solid var(--hairline); padding-right: 20px; }
  .strip > div:nth-child(even) { padding-left: 20px; }
  .strip > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- lists ---------- */
ul.dots { list-style: none; padding: 0; margin: 0 0 24px; max-width: var(--measure); }
ul.dots li { position: relative; padding-left: 28px; margin-bottom: 12px; }
ul.dots li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.chalk-mode ul.dots li::before { background: var(--orange-ink); }
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: 70ch; }
ol.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--hairline); counter-increment: step; }
ol.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--buff); padding-top: 8px; }
ol.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.chalk-mode ol.steps li { border-color: var(--hairline-chalk); }
.chalk-mode ol.steps li::before { color: var(--ink-muted); }
ol.steps h3 { margin-bottom: 8px; }
ol.steps p { margin: 0; }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 72ch; }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.timeline li:last-child { border-bottom: 1px solid var(--hairline); }
.timeline .year { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--buff); padding-top: 4px; }
.timeline p { margin: 0; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- proof ---------- */
.shorts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.shorts .short { position: relative; aspect-ratio: 9 / 16; background: var(--chalk-surface); }
.shorts iframe { width: 100%; height: 100%; border: 0; }
.shorts .cap { margin-top: 8px; }
@media (max-width: 900px) { .shorts { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 2px solid var(--tarmac); }
.results > div { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--hairline-chalk); }
.results > div + div { padding-left: 24px; border-left: 1px solid var(--hairline-chalk); }
.results .num { font-size: clamp(36px, 4vw, 52px); font-weight: 900; font-stretch: 118%; line-height: 0.95; text-transform: uppercase; margin-bottom: 12px; }
.results p { margin: 0 0 8px; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; } .results > div + div { padding-left: 0; border-left: 0; } }

/* ---------- WhatsApp mock (real-world colours, labelled) ---------- */
.wa { background: #0B141A; padding: 20px; max-width: 420px; font-family: var(--font); font-stretch: 100%; }
.wa .wa-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; color: #E9EDEF; font-size: 15px; }
.wa .wa-head .av { width: 36px; height: 36px; border-radius: 50%; background: #25D366; color: #0B141A; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.wa .msg { max-width: 86%; padding: 8px 12px; margin-bottom: 8px; font-size: 15px; line-height: 1.4; color: #E9EDEF; background: #202C33; border-radius: 0; }
.wa .msg.out { background: #005C4B; margin-left: auto; }
.wa .msg .t { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; opacity: 0.6; margin-top: 4px; text-align: right; }
.wa-note { margin-top: 12px; color: var(--buff); }

/* ---------- content cards ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.video { border: 1px solid var(--hairline); }
.video .thumb { aspect-ratio: 16 / 9; background: var(--surface); position: relative; display: grid; place-items: center; overflow: hidden; }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.video .thumb .play { position: absolute; left: 16px; bottom: 16px; width: 44px; height: 44px; background: var(--orange); display: grid; place-items: center; }
.video .thumb .play::after { content: ""; border-left: 14px solid var(--tarmac); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 3px; }
.video .body { padding: 20px; }
.video h3 { font-size: 20px; }
@media (max-width: 900px) { .videos { grid-template-columns: 1fr; } }
.playlists { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hairline); }
.playlists li { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.playlists .n { font-family: var(--mono); font-size: 13px; color: var(--buff); padding-top: 8px; }
.playlists h3 { margin-bottom: 4px; font-size: 22px; }
.playlists p { margin: 0; }
.playlists a.arrow-link { display: inline-block; margin-top: 8px; }

/* ---------- forms ---------- */
form.signup { display: grid; grid-template-columns: 1fr auto; gap: 12px; max-width: 560px; }
form.signup input {
  font-family: var(--font); font-size: 17px; padding: 16px 16px;
  background: transparent; border: 2px solid var(--chalk); color: var(--chalk); border-radius: 0; width: 100%;
}
form.signup input::placeholder { color: var(--buff); }
.chalk-mode form.signup input { border-color: var(--tarmac); color: var(--tarmac); }
.chalk-mode form.signup input::placeholder { color: var(--ink-muted); }
form.signup .note { grid-column: 1 / -1; }
@media (max-width: 600px) { form.signup { grid-template-columns: 1fr; } }

/* ---------- placeholders (remove before launch) ---------- */
.ph {
  border: 2px dashed var(--buff);
  padding: 20px 24px;
  color: var(--buff);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
}
.chalk-mode .ph { border-color: var(--ink-muted); color: var(--ink-muted); }
.ph strong { color: var(--orange); font-weight: 500; }
.chalk-mode .ph strong { color: var(--tarmac); }
.ph.fill { display: grid; place-items: center; text-align: center; min-height: 180px; }

/* ---------- press ---------- */
.press-photos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.press-photos figure { margin: 0; }
.press-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.press-photos figcaption { margin-top: 8px; }
@media (max-width: 900px) { .press-photos { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.bio-box { border: 1px solid var(--hairline-chalk); padding: 28px; }
.bio-box p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
footer { border-top: 2px solid var(--chalk); padding: 64px 0 40px; }
footer .top { display: grid; grid-template-columns: minmax(0,2fr) repeat(3, minmax(0,1fr)); gap: 32px; margin-bottom: 56px; }
footer .top img { height: 26px; width: auto; margin-bottom: 20px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a { color: var(--chalk); }
footer a:hover { color: var(--orange); text-decoration: none; }
footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--buff); border-top: 1px solid var(--hairline); padding-top: 24px; }
@media (max-width: 900px) { footer .top { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ---------- legal ---------- */
.legal h2 { font-size: 22px; font-stretch: 100%; text-transform: none; letter-spacing: -0.01em; line-height: 1.2; margin: 40px 0 12px; }
.legal p, .legal li { max-width: 70ch; }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; }
.maxw { max-width: var(--measure); }
.photo { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.photo-block { position: relative; }
.photo-block.fade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,21,19,0) 50%, #161513 100%); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
