/* ============================================================
   Brand — the "In My Head" design system (docs/mockups/a-in-my-head.html)
   Scoped to body.brand so it can roll out page by page.
   ============================================================ */

body.brand {
  --navy: #151a33;
  --navy-deep: #0f1326;
  --char: #232323;
  --bone: #f6f3ec;
  --bone-dim: #b9b6ad;
  --muted: #8a90ad;
  --accent: #f2a93b;
  --accent-ink: #2a1c05;
  --line: rgba(246, 243, 236, .14);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --w: min(1240px, 92vw);
  --pill-h: 46px;

  background: var(--navy);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
}
body.brand.is-locked { overflow: hidden; }

.brand *, .brand *::before, .brand *::after { box-sizing: border-box; }
.brand a { color: inherit; text-decoration: none; }
.brand a:focus-visible, .brand button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.brand img { display: block; max-width: 100%; }
.brand h1, .brand h2, .brand h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: .95; text-wrap: balance; margin: 0; }
.brand p { margin: 0; }
.brand .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav + menu ---------- */
.brand-nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 22px 4vw; pointer-events: none; }
.brand-nav > * { pointer-events: auto; }
.brand-logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--accent); letter-spacing: -.02em; }
.brand-nav-right { display: flex; gap: 10px; align-items: center; }
.brand .pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--pill-h); padding: 0 22px; border-radius: 999px; background: var(--bone); color: var(--navy); font-family: var(--body); font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.brand .pill:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.brand .pill.icon { width: var(--pill-h); padding: 0; }
.brand .pill.lg { height: 64px; padding: 0 36px; font-size: 1.1rem; }
.brand .pill.ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.brand .pill.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.brand .burger { display: inline-grid; place-content: center; gap: 4px; }
.burger i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.is-menu-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-menu-open .burger i:nth-child(2) { opacity: 0; }
.is-menu-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.brand-menu { position: fixed; inset: 0; z-index: 35; background: var(--navy-deep); display: grid; grid-template-rows: auto 1fr auto; padding: 110px 4vw 40px; clip-path: circle(0 at calc(100% - 6vw) 44px); transition: clip-path .7s cubic-bezier(.76, 0, .24, 1); visibility: hidden; }
.brand-menu.is-open { clip-path: circle(150% at calc(100% - 6vw) 44px); visibility: visible; }
.brand-menu > ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; gap: .1em; }
.brand-menu > ul > li a { display: flex; align-items: baseline; gap: 18px; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 8vw, 6rem); letter-spacing: -.04em; line-height: 1; transition: color .2s; }
.brand-menu > ul > li a:hover { color: var(--accent); }
.brand-menu > ul > li a small { font-family: var(--body); font-weight: 500; font-size: clamp(.9rem, 1.4vw, 1.1rem); letter-spacing: 0; color: var(--muted); }
.brand-menu .secondary { display: flex; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--bone-dim); font-size: .95rem; }
.brand-menu .secondary a:hover { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .brand-menu > ul > li { opacity: 0; transform: translateY(20px); transition: opacity .4s ease, transform .4s ease; }
  .brand-menu.is-open > ul > li { opacity: 1; transform: none; }
  .brand-menu.is-open > ul > li:nth-child(1) { transition-delay: .25s } .brand-menu.is-open > ul > li:nth-child(2) { transition-delay: .3s } .brand-menu.is-open > ul > li:nth-child(3) { transition-delay: .35s }
  .brand-menu.is-open > ul > li:nth-child(4) { transition-delay: .4s } .brand-menu.is-open > ul > li:nth-child(5) { transition-delay: .45s } .brand-menu.is-open > ul > li:nth-child(6) { transition-delay: .5s } .brand-menu.is-open > ul > li:nth-child(7) { transition-delay: .55s }
}

/* ---------- hero ---------- */
.brand-hero { position: relative; min-height: 92vh; display: grid; place-items: end center; padding: 120px 0 0; overflow: hidden; isolation: isolate; }
.brand-hero .wordmark { position: absolute; top: 9vh; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 800; font-size: clamp(5.5rem, 21vw, 22rem); line-height: .8; letter-spacing: -.05em; color: var(--accent); white-space: nowrap; z-index: 0; user-select: none; }
.brand-hero .head { position: relative; z-index: 2; width: min(560px, 82vw); }
.brand-hero .head img { width: 100%; height: auto; filter: drop-shadow(0 0 0 var(--bone)) drop-shadow(2px 0 0 var(--bone)) drop-shadow(-2px 0 0 var(--bone)) drop-shadow(0 2px 0 var(--bone)) drop-shadow(0 -2px 0 var(--bone)) drop-shadow(0 30px 50px rgba(0,0,0,.6)); }

.sticker { position: absolute; z-index: 3; width: var(--s, 150px); border-radius: 14px; box-shadow: 0 0 0 6px var(--bone), 0 18px 40px -12px rgba(0,0,0,.7); transform: rotate(var(--r, 0deg)); overflow: hidden; background: var(--navy-deep); }
.sticker img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sticker::after { content: ""; position: absolute; right: 0; bottom: 0; width: 24px; height: 24px; background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.18) 50%, var(--bone) 52%); border-top-left-radius: 4px; box-shadow: -3px -3px 8px rgba(0,0,0,.25); transition: width .25s, height .25s; }
.sticker:hover::after { width: 38px; height: 38px; }
.sticker.tag { width: auto; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; border-radius: 999px; box-shadow: 0 0 0 5px var(--bone), 0 12px 30px -10px rgba(0,0,0,.6); white-space: nowrap; }
.sticker.tag::after { display: none; }
.sticker.ph { aspect-ratio: 1; background: linear-gradient(135deg, #2f3550, #1b1f34); display: grid; place-items: center; text-align: center; color: var(--bone-dim); font-size: .78rem; padding: 12px; line-height: 1.3; }
.brand-hero .s1 { --s: 170px; --r: -9deg; top: 22%; left: 5%; }
.brand-hero .s2 { --s: 150px; --r: 7deg; top: 16%; right: 8%; }
.brand-hero .s3 { --s: 130px; --r: 12deg; bottom: 8%; left: 14%; }
.brand-hero .s4 { --s: 160px; --r: -6deg; bottom: 12%; right: 11%; }
.brand-hero .t1 { --r: -5deg; top: 55%; left: 3%; }
.brand-hero .t2 { --r: 6deg; top: 48%; right: 4%; }
.brand-hero .t3 { --r: -3deg; top: 48%; left: 20%; }   /* below the wordmark, clear of the head */
.brand-hero .t4 { --r: 4deg; bottom: 30%; right: 25%; }
.brand-hero .social { position: absolute; right: 4vw; bottom: 28px; z-index: 4; display: flex; gap: 8px; }
.brand-hero .social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--bone-dim); }
.brand-hero .social a svg { width: 16px; height: 16px; fill: currentColor; }
.brand-hero .social a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
  .brand-hero .s1, .brand-hero .s3 { left: -6%; } .brand-hero .s2, .brand-hero .s4 { right: -6%; }
  .brand-hero .s1, .brand-hero .s2, .brand-hero .s3, .brand-hero .s4 { --s: 110px; }
  .brand-hero .t3, .brand-hero .t4, .brand-hero .social { display: none; }
}
/* stickers start hidden; hero controller springs them in (no-JS / reduced motion: visible) */
@media (prefers-reduced-motion: no-preference) { .brand-hero.is-pending .sticker { opacity: 0; } }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0; font-size: .9rem; color: var(--bone-dim); }
.ticker .trk { display: inline-block; animation: tick 45s linear infinite; }
.ticker:hover .trk { animation-play-state: paused; }
.ticker b { color: var(--accent); font-weight: 600; margin-right: 22px; }
.ticker span { margin-right: 48px; }
.ticker span a:hover { color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .trk { animation: none; padding-left: 4vw; } }

/* ---------- statement ---------- */
.statement { padding: 14vh 4vw; text-align: center; }
.statement h2 { font-size: clamp(2.2rem, 6vw, 5.6rem); max-width: 18ch; margin: 0 auto; }
.statement h2 em { font-style: normal; color: var(--accent); }
.statement p { max-width: 46ch; margin: 28px auto 0; color: var(--bone-dim); font-size: 1.15rem; }
.statement-search { max-width: 620px; margin: 44px auto 0; text-align: left; }
.statement-search .search { max-width: none; margin: 0; }

/* ---------- section titles ---------- */
.stitle { text-align: center; margin-bottom: 8vh; }
.stitle .l1, .stitle .l2 { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: -.03em; line-height: 1; }
.stitle .l2 { color: var(--accent); }

/* ---------- golf-ball transitions (bounce_controller) ---------- */
/* The band is the previous section's colour above the seam and the next
   section's below it; a canvas draws the ball landing and bouncing out, and
   fills the near side as it goes. Without JS the seam alone still reads. */
.bounce { position: relative; height: 46vh; min-height: 280px; overflow: hidden; }
.bounce-to-char { background: linear-gradient(var(--navy) 0 62%, var(--char) 62%); }
.bounce-to-navy { background: linear-gradient(var(--char) 0 62%, var(--navy) 62%); }
canvas.bounce-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
@media (max-width: 720px) { .bounce { height: 34vh; min-height: 200px; } }

/* photo stickers dissolve in when they scroll into view */
.chapter .sticker { position: relative; }
.sticker canvas.pixels { z-index: 2; }
.sticker.is-done canvas.pixels { display: none; }

/* ---------- six chapters ---------- */
.six { background: var(--char); padding: 10vh 0 12vh; }
.chapters { width: var(--w); margin: 0 auto; }
.chapter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter .name { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.04em; line-height: .9; transition: color .2s; }
.chapter .sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted); margin-top: 10px; }
.chapter:hover .name { color: var(--accent); }
.chapter .sticker { position: static; --s: 150px; }
.chapter .count { font-size: .9rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 720px) { .chapter { grid-template-columns: 1fr; } .chapter .sticker { --s: 120px; } }

/* ---------- latest ---------- */
.latest { padding: 14vh 0; width: var(--w); margin: 0 auto; }
.tl { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 120px 1.1fr 1.6fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl-row:hover .t { color: var(--accent); }
.tl-row .d { font-family: var(--display); font-weight: 800; color: var(--accent); font-size: 1.2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl-row .t { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.1; transition: color .2s; }
.tl-row .b { color: var(--bone-dim); }
@media (max-width: 720px) { .tl-row { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- quote ---------- */
.quote { padding: 16vh 4vw; text-align: center; background: var(--navy-deep); }
.quote .marks { font-family: var(--display); font-weight: 800; color: var(--accent); font-size: 5rem; line-height: .5; margin-bottom: 40px; }
.quote blockquote { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5.6vw, 5.2rem); letter-spacing: -.035em; line-height: 1; max-width: 22ch; margin: 0 auto; }
.quote blockquote em { font-style: normal; color: var(--accent); }
.quote blockquote .w { display: inline-block; }
.quote cite { display: block; margin-top: 30px; font-style: normal; color: var(--muted); font-size: .95rem; }
.quote cite a:hover { color: var(--accent); }

/* ---------- reading ---------- */
.reading { padding: 14vh 0; width: var(--w); margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card h3 { font-size: 1.6rem; }
.card p { color: var(--bone-dim); flex: 1; }
.card .meta { font-size: .85rem; color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 48px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.brand-footer { padding: 60px 4vw 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .9rem; }
.brand-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.brand-footer nav a:hover { color: var(--accent); }
.brand-footer .id { display: flex; flex-direction: column; gap: 6px; }
/* the handle is the same on every platform, so it labels the icons rather than
   linking to any one of them */
.brand-footer .handle { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--bone); }
.brand-footer .social { display: flex; gap: 8px; }
.brand-footer .social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.brand-footer .social a svg { width: 14px; height: 14px; fill: currentColor; }
.brand-footer .social a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- scroll reveal (driven by reveal_controller) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .brand [data-reveal] { opacity: 0; transform: translateY(28px); }
  .brand [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
  .brand .quote blockquote .w { opacity: .18; transition: opacity .35s ease; }
  .brand .quote blockquote .w.is-in { opacity: 1; }
}

/* ============================================================
   Inner pages — hubs, writing, article, start, about, videos,
   products, ask. Same tokens; one page-header pattern; prose.
   ============================================================ */

.brand .wrap { width: var(--w); margin: 0 auto; }
.brand .narrow { max-width: 72ch; margin-left: auto; margin-right: auto; }
.brand main.page { padding-top: 110px; }

/* ---------- page header ---------- */
.page-head { width: var(--w); margin: 0 auto; padding: 8vh 0 6vh; }
.page-head .eyebrow { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.page-head .eyebrow a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); letter-spacing: -.04em; line-height: .92; }
.page-head h1 em { font-style: normal; color: var(--accent); }
.page-head .lede { max-width: 52ch; margin-top: 26px; font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.35; color: var(--bone-dim); }
.page-head .sub { max-width: 60ch; margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.page-head .sub a { color: var(--accent); }

/* ---------- section labels ---------- */
.label { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- chips (filters) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--bone-dim); font-size: .88rem; font-weight: 500; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--bone); border-color: var(--bone); color: var(--navy); }
.chips + .chips { margin-top: 10px; }
.chips.sub .chip { height: 30px; font-size: .8rem; }

/* ---------- article list ---------- */
.alist { border-top: 1px solid var(--line); }
.alist a { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.alist .t { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; transition: color .2s; }
.alist a:hover .t { color: var(--accent); }
.alist .x { color: var(--bone-dim); margin-top: 8px; max-width: 70ch; }
.alist .m { font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .alist a { grid-template-columns: 1fr; gap: 6px; } }

.section { width: var(--w); margin: 0 auto; padding: 6vh 0; }
.empty { padding: 32px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- search ---------- */
.search { display: flex; gap: 10px; max-width: 520px; margin-bottom: 26px; }
.brand .input, .brand .textarea { width: 100%; background: var(--navy-deep); color: var(--bone); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 1rem; transition: border-color .2s; }
.brand .input:focus, .brand .textarea:focus { outline: none; border-color: var(--accent); }
.brand .input::placeholder, .brand .textarea::placeholder { color: var(--muted); }
.search { position: relative; align-items: flex-start; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search .input { height: var(--pill-h); padding: 0 18px 0 46px; border-radius: 999px; -webkit-appearance: none; appearance: none; }
.search .input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-icon, .search-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.search-icon { position: absolute; left: 18px; top: calc(var(--pill-h) / 2 - 9px); color: var(--muted); pointer-events: none; transition: color .2s; }
.search-field:focus-within .search-icon { color: var(--accent); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; margin: 0; padding: 6px; list-style: none; background: var(--navy-deep); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 0 0 4px rgba(15, 19, 38, .6), 0 28px 60px -24px rgba(0, 0, 0, .8); max-height: min(60vh, 440px); overflow-y: auto; }
.search-results a { display: grid; gap: 3px; padding: 11px 16px; border-radius: 16px; color: var(--bone); text-decoration: none; }
.search-results .p { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.search-results .t { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.2; }
.search-results [aria-selected="true"] a, .search-results a:hover { background: rgba(242, 169, 59, .12); }
.search-results .all a { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; color: var(--bone-dim); font-size: .9rem; }
.search-results .all[aria-selected="true"] a, .search-results .all a:hover { color: var(--accent); }
body:has(.search [aria-expanded="true"]) .soundtrack { opacity: 0; pointer-events: none; transition: opacity .2s; }
.brand-menu .search { max-width: 640px; margin: 0 0 4vh; }
.brand-menu .search .pill { display: none; }
@media (max-width: 720px) { .search .pill { display: none; } .brand-nav .search-toggle { width: 40px; height: 40px; } }

/* ---------- article page ---------- */
.article { width: var(--w); margin: 0 auto; padding: 0 0 8vh; }
.article-head { max-width: 72ch; padding: 6vh 0 4vh; border-bottom: 1px solid var(--line); margin-bottom: 5vh; }
.article-head .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .85rem; color: var(--muted); }
.article-head .crumbs a { color: var(--accent); font-weight: 600; }
.article-head .crumbs a:hover { text-decoration: underline; }
.article-head h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); letter-spacing: -.035em; line-height: .98; }
.article-head .excerpt { margin-top: 22px; font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.4; color: var(--bone-dim); }
.article-head .date { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.article-head .date .draft { color: var(--accent); }

.prose { max-width: 72ch; font-size: 1.12rem; line-height: 1.7; color: var(--bone-dim); }
.brand .prose > * + * { margin-top: 1.25em; }
.brand .prose h2, .brand .prose h3, .brand .prose h4 { color: var(--bone); margin-top: 2em; line-height: 1.1; letter-spacing: -.025em; }
.prose h2 { font-size: 1.9rem; } .prose h3 { font-size: 1.45rem; } .prose h4 { font-size: 1.15rem; }
.prose strong { color: var(--bone); }
.prose em { color: var(--bone); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 1.4em; border-left: 3px solid var(--accent); font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.35; color: var(--bone); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose img { border-radius: 14px; margin: 2em 0; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--navy-deep); padding: .15em .4em; border-radius: 6px; color: var(--bone); }
.prose pre { background: var(--navy-deep); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; overflow-x: auto; font-size: .92rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 2em 0; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--bone); font-weight: 600; border-bottom-color: var(--bone-dim); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.prose td { font-variant-numeric: tabular-nums; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 72ch; margin-top: 6vh; padding-top: 4vh; border-top: 1px solid var(--line); }
.share .lbl { font-size: .85rem; color: var(--muted); margin-right: 8px; }
.share .chip svg { width: 14px; height: 14px; fill: currentColor; margin-right: 8px; }
.related { margin-top: 8vh; }

/* ---------- start page ---------- */
.tracks { display: grid; gap: 6vh; }
.track h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.035em; }
.track h2 a:hover { color: var(--accent); }
.track .tag { color: var(--muted); font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin-top: 6px; }
.track .alist { margin-top: 22px; }
.track .more { display: inline-block; margin-top: 18px; color: var(--accent); font-weight: 600; }
.track .more:hover { text-decoration: underline; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-grid .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 25%; border-radius: 20px; }
.about-grid .photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.about-text { font-size: 1.12rem; line-height: 1.7; color: var(--bone-dim); }
.brand .about-text > * + * { margin-top: 1.2em; }
.about-text strong { color: var(--bone); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-grid .photo { order: -1; max-width: 420px; } }

/* ---------- products / showcase ---------- */
.products { display: grid; gap: 24px; }
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: border-color .2s; }
.product:hover { border-color: var(--accent); }
.product img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.product h2 { font-size: 2rem; letter-spacing: -.03em; }
.product .tagline { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--bone-dim); }
.product .summary { color: var(--muted); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--bone); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #46d17a; box-shadow: 0 0 0 4px rgba(70, 209, 122, .18); }
.product .go { color: var(--accent); font-weight: 600; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

.showcase-lead { max-width: 72ch; font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.4; color: var(--bone-dim); }
.brand .showcase-lead + .showcase-lead { margin-top: 1em; }
.step { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; margin: 10vh 0; }
.step.rev .fig { order: 2; }
.step .fig img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.step h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 16px; }
.step p { color: var(--bone-dim); line-height: 1.65; }
.brand .step p + p { margin-top: 1em; }
.callout { margin: 10vh 0; padding: 40px; border-radius: 22px; background: var(--navy-deep); border: 1px solid var(--line); }
.callout .lbl { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.callout p { color: var(--bone-dim); line-height: 1.65; max-width: 72ch; }
.brand .callout p + p, .brand .callout img + p { margin-top: 1em; }
.callout img { width: 100%; border-radius: 14px; margin: 24px 0 8px; border: 1px solid var(--line); }
.callout strong { color: var(--bone); }
.showcase-outro { max-width: 72ch; color: var(--bone-dim); font-size: 1.12rem; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.actions .url { color: var(--muted); font-size: .9rem; }
.cta { margin: 10vh 0 0; padding: 8vh 40px; border-radius: 26px; background: var(--accent); color: var(--accent-ink); text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.035em; }
.brand .cta p { max-width: 52ch; margin: 18px auto 0; font-size: 1.1rem; opacity: .85; }
.cta .actions { justify-content: center; }
.cta .pill { background: var(--accent-ink); color: var(--accent); }
.cta .pill.ghost { background: transparent; color: var(--accent-ink); border-color: rgba(42, 28, 5, .35); }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 24px; } .step.rev .fig { order: 0; } .callout { padding: 26px; } }

/* ---------- forms (ask) ---------- */
.form { max-width: 620px; display: grid; gap: 22px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--bone); }
.field .hint { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.brand .textarea { min-height: 180px; resize: vertical; }
.errors { padding: 16px 20px; border: 1px solid var(--accent); border-radius: 12px; color: var(--bone-dim); }
.errors ul { margin: 8px 0 0; padding-left: 1.2em; }
.notice { padding: 16px 20px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; margin-bottom: 26px; max-width: 620px; }

/* ---------- flash (layout) ---------- */
.brand .flash-notice, .brand .flash-alert { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.brand .flash-alert { background: var(--bone); color: var(--navy); }

/* ---------- soundtrack control ---------- */
/* Sits above everything, bottom left, clear of the hero social icons. */
.soundtrack { position: fixed; left: 4vw; bottom: 22px; z-index: 45; }
.soundtrack-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 13px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--navy-deep) 82%, transparent); backdrop-filter: blur(8px); color: var(--bone-dim); font-family: var(--body); font-size: .82rem; font-weight: 600; letter-spacing: .01em; cursor: pointer; transition: color .2s, border-color .2s; }
.soundtrack-btn:hover { color: var(--bone); border-color: var(--accent); }
.soundtrack.is-on .soundtrack-btn { color: var(--accent); border-color: var(--accent); }

/* four bars: flat when off, dancing when on */
.soundtrack .bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.soundtrack .bars i { display: block; width: 2px; height: 3px; border-radius: 1px; background: currentColor; transition: height .2s ease; }
.soundtrack.is-on .bars i { animation: eq .9s ease-in-out infinite; }
.soundtrack.is-on .bars i:nth-child(1) { animation-delay: -.5s }
.soundtrack.is-on .bars i:nth-child(2) { animation-delay: -.2s }
.soundtrack.is-on .bars i:nth-child(3) { animation-delay: -.7s }
.soundtrack.is-on .bars i:nth-child(4) { animation-delay: -.35s }
@keyframes eq { 0%, 100% { height: 3px } 50% { height: 14px } }
@media (prefers-reduced-motion: reduce) { .soundtrack.is-on .bars i { animation: none; height: 9px } }

@media (max-width: 720px) { .soundtrack { left: auto; right: 4vw; bottom: 16px; } .soundtrack .txt { display: none; } .soundtrack-btn { padding: 0 13px; } }

/* Michelin star after a title: <span class="michelin-star"></span> in the article title.
   Same rule in application.css for the admin pages. */
.michelin-star {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.2em;
  vertical-align: -0.05em;
  background: url("/images/icons/michelin-star.svg") center / contain no-repeat;
}
