/* ---------------------------------------------------------
   pages.css — components for the five-page site (v2).
   Loaded last on every page. Colours come only from theme.css tokens.
   Patterns: .page-hero (kicker, H1 with one italic word, intro, facts),
   alternating .band-* sections, hard-shadow cards, one primary action each.
--------------------------------------------------------- */

/* ---------- header: five pages, CV button, theme toggle ---------- */
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-actions .header-socials { justify-self: auto; }
.cv-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .78rem var(--sans); letter-spacing: .04em; padding: 8px 13px;
  border: 1px solid var(--rule-strong); border-radius: 8px; color: var(--fg); white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cv-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule-strong); background: transparent;
  color: var(--fg); display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.theme-toggle .ti-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-moon { display: block; }
.nav-cv { display: none; }

/* the current page is underlined, not filled */
.nav-links a.is-active { background: transparent; color: var(--fg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--hi); }
.nav-links a:hover:not(.is-active) { background: var(--tint); }

.site-header { background: color-mix(in srgb, var(--page) 86%, transparent); }
.site-header.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(var(--shade), .35); }

@media (max-width: 1180px) { .header-actions .header-socials { display: none; } }
@media (max-width: 900px) {
  .cv-btn { display: none; }
  .nav-cv { display: block; }
  .nav-links a.nav-cv { font: 600 .98rem var(--sans); letter-spacing: .02em; color: var(--accent); padding: 16px 4px 6px; }
  .nav-links a.nav-cv span { font-family: var(--sans); }
  .nav-links { background: var(--page); }
  .nav-links a.is-active { color: var(--accent); text-decoration: none; }
  .header-actions { gap: 8px; }
}

/* ---------- base pieces used on every page ---------- */
.skip-link { color: var(--on-accent); background: var(--accent); }
main { display: block; }
.kicker { color: var(--hi); }
.kicker .dot { background: var(--hi); }
em.accent, .accent-it { font-style: italic; color: var(--hi); font-weight: 600; }

.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--soft); color: var(--on-soft); border-color: var(--soft); }
.btn.secondary { background: var(--page); color: var(--fg); border-color: var(--rule-strong); }
.btn.secondary:hover { background: var(--tint); border-color: var(--fg); }
.btn.ghost { color: var(--fg); border-color: var(--rule-strong); background: transparent; }
.btn.ghost:hover { border-color: var(--fg); background: var(--tint); }
.band-ink .btn.ghost, #about .btn.ghost { color: var(--on-dark); border-color: rgba(248,245,236,.4); }
.band-ink .btn.ghost:hover, #about .btn.ghost:hover { border-color: var(--on-dark); background: rgba(248,245,236,.06); }
.btn.blush { background: var(--soft); color: var(--on-soft); border-color: var(--soft); }
.btn.blush:hover { background: var(--page); border-color: var(--page); }
#about .btn.blush:hover { color: var(--accent-deep); }
.text-link { color: var(--fg-4); font-weight: 500; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.text-link:hover { color: var(--fg); text-decoration-color: var(--hi); }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; padding: clamp(56px, 8vw, 108px) 0 clamp(40px, 5vw, 68px);
  border-bottom: 1px solid var(--rule); background: var(--page);
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  line-height: 1; letter-spacing: -.02em; margin: 4px 0 22px; max-width: 14ch; color: var(--fg);
}
.page-hero h1 em { font-style: italic; font-weight: 600; color: var(--hi); }
.page-intro { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 46ch; color: var(--fg-3); }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--rule-strong); background: var(--card); color: var(--fg);
  font: 600 .8rem var(--sans); letter-spacing: .01em;
}
a.chip:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.page-hero::after {
  content: ""; position: absolute; right: var(--gutter); bottom: -1px; width: min(30vw, 360px); aspect-ratio: 5 / 1;
  background: url("assets/textile-border.jpg") center / 100% auto; opacity: .0; pointer-events: none;
}

.section-pad .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--fg-3); }
.section-sub { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--fg-3); max-width: 46ch; }
.band-sand { background: var(--band); }
.band-sand .section-head h2, .band-sand h3 { color: var(--fg); }
.label {
  display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
  font: 600 .72rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--hi);
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); opacity: .6; }
.kit-note { margin: -8px 0 16px; font: italic 500 1.05rem var(--serif); color: var(--fg-3); }

/* ---------- home: proof strip ---------- */
.proof { padding: clamp(40px, 5vw, 72px) 0; background: var(--page); border-bottom: 1px solid var(--rule); position: relative; z-index: 2; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item {
  display: flex; flex-direction: column; gap: 10px; padding: 8px clamp(14px, 2.6vw, 44px);
  border-left: 1px solid var(--rule-strong); color: inherit;
}
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item:last-child { padding-right: 0; }
.proof-num { font: 700 clamp(2.6rem, 5vw, 4.6rem)/1 var(--serif); letter-spacing: -.02em; color: var(--accent); transition: color .2s ease; }
.proof-label { font-size: .95rem; line-height: 1.45; color: var(--fg-3); max-width: 24ch; }
.proof-go { margin-top: 4px; font: 600 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--hi); }
.proof-go span { display: inline-block; transition: transform .2s ease; }
.proof-item:hover .proof-num, .proof-item:focus-visible .proof-num { color: var(--hi); }
.proof-item:hover .proof-go span { transform: translateX(4px); }

/* ---------- home: explore cards ---------- */
.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.explore-card {
  display: flex; flex-direction: column; background: var(--card); border: var(--border); border-radius: 12px;
  overflow: hidden; color: inherit; transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.explore-card:hover, .explore-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow); }
.explore-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--media); border-bottom: var(--border); }
.explore-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease-out; }
.explore-card:hover .explore-media img { transform: scale(1.04); }
.explore-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.explore-body h3 { font: 700 1.55rem/1.1 var(--serif); color: var(--fg); }
.explore-body p { font-size: .92rem; line-height: 1.5; color: var(--fg-3); }
.explore-go { margin-top: auto; padding-top: 10px; font: 600 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--hi); }
.explore-go span { display: inline-block; transition: transform .2s ease; }
.explore-card:hover .explore-go span { transform: translateX(4px); }

/* ---------- career ---------- */
.cv-block { text-align: center; }
.cv-block h2 { font: 700 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 var(--serif); margin-bottom: 12px; }
.cv-block p { color: var(--fg-3); margin: 0 auto 26px; max-width: 46ch; }
.cv-block .btn span[aria-hidden] { transition: transform .2s ease; }
.cv-block .btn:hover span[aria-hidden] { transform: translateY(2px); }
#what-i-do .book-hint { margin-top: 6px; }

/* ---------- hire me: portfolio video ---------- */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 1080px; margin: 0 auto;
  border: var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; background: var(--media);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--media); }
.video-poster {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; color: var(--on-dark);
  background: var(--media) center / cover no-repeat; display: flex; align-items: center; justify-content: center;
}
.video-poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(var(--dark-2-rgb), .62), rgba(var(--dark-2-rgb), .08) 55%); }
.play-btn {
  position: relative; width: clamp(68px, 8vw, 100px); aspect-ratio: 1; border-radius: 50%;
  background: var(--soft); border: 2px solid var(--fg); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; transition: transform .25s ease-out;
}
.play-btn::after { content: ""; margin-left: 6%; border-left: 24px solid var(--on-soft); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.video-poster:hover .play-btn, .video-poster:focus-visible .play-btn { transform: scale(1.08); }
.video-caption { max-width: 1080px; margin: 0 auto clamp(14px, 2vw, 22px); text-align: center; font: 600 clamp(1.1rem, 2vw, 1.55rem)/1.35 var(--serif); font-style: normal; color: var(--fg); }
.video-label {
  position: absolute; left: 0; right: 0; bottom: clamp(14px, 2.4vw, 24px); text-align: center;
  font: 600 clamp(.82rem, 1.3vw, 1rem) var(--sans); letter-spacing: .04em; color: var(--on-dark); text-shadow: 0 1px 12px rgba(var(--dark-2-rgb), .6);
}

/* ---------- hire me: client work case study ---------- */
.case { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); }
.case > *, .case-head > *, .brochure > *, .footer-connect-inner > * { min-width: 0; }
.case + .case { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(44px, 6vw, 80px); border-top: var(--border); }
.case-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px clamp(20px, 3vw, 44px); align-items: end; }
.case-index { font: 800 clamp(4.4rem, 11vw, 9rem)/.78 var(--serif); letter-spacing: -.04em; color: var(--hi); }
.case-title h3 { font: 700 clamp(2rem, 4.4vw, 3.4rem)/1.04 var(--serif); }
.case-meta { margin: 8px 0 14px; color: var(--fg-4); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--card); font: 600 .78rem var(--sans); color: var(--fg); }
.case-brief { font: italic 500 clamp(1.2rem, 2.3vw, 1.7rem)/1.35 var(--serif); max-width: 40ch; color: var(--fg); }

.rail { display: flex; gap: clamp(14px, 1.8vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; margin: 0 -4px; scrollbar-width: thin; }
.phone {
  position: relative; flex: 0 0 clamp(176px, 21vw, 250px); aspect-ratio: 9 / 16; padding: 0; cursor: pointer;
  border: 0; border-radius: 16px; overflow: hidden; background: var(--media); scroll-snap-align: start;
  box-shadow: 0 28px 50px -26px rgba(var(--shade), .55), 0 2px 6px rgba(var(--shade), .12);
  transition: transform .3s ease-out;
}
.phone:hover { transform: translateY(-4px); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.phone:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong); background: transparent; color: var(--fg);
  font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.round-btn:hover:not(:disabled) { background: var(--fg); color: var(--page); border-color: var(--fg); }
.round-btn:disabled { opacity: .35; cursor: default; }


.kit-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; align-items: flex-start; }
.kit-strip img { height: clamp(210px, 24vw, 310px); width: auto; flex: none; border-radius: 10px; border: 1px solid var(--rule-strong); display: block; }
.kit-meta { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; margin-top: 6px; }
.swatches { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.swatches li { display: flex; align-items: center; gap: 10px; font: 600 .8rem var(--sans); color: var(--fg-3); }
.swatches i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-strong); display: block; }
.swatches small { display: block; font-weight: 500; font-size: .72rem; color: var(--fg-5); }
.fonts { font: 600 .84rem var(--sans); color: var(--fg-3); }
.fonts i { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1rem; color: var(--fg); }

.did { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); counter-reset: did; }
.did li { counter-increment: did; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 1.08rem; color: var(--fg-2); }
.did li::before { content: counter(did, decimal-leading-zero); font: italic 600 1.25rem var(--serif); color: var(--hi); }
.outcome { padding: 22px 26px; border: var(--border); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-sm); font: italic 500 1.25rem/1.4 var(--serif); }

/* ---------- hire me: how I work ---------- */
.track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 4px; counter-reset: step; }
.track::before, .track::after {
  content: ""; position: absolute; top: 40px; left: 12.5%; right: 12.5%; height: 0; border-top: 2px dashed var(--hi);
  transform-origin: left center; transform: scaleX(0); transition: transform 1.3s cubic-bezier(.4,0,.2,1);
}
.track::before { opacity: .3; transform: none; }
.track.is-in::after { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 8px; outline-offset: 6px; }
.node {
  position: relative; z-index: 1; width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--card); border: var(--border); box-shadow: var(--shadow-sm); display: grid; place-items: center;
  font: italic 700 1.6rem var(--serif); color: var(--accent); transition: transform .25s ease-out;
}
.step:hover .node, .step:focus-visible .node { transform: translateY(-3px); }
.step-icon { display: block; width: 30px; height: 30px; margin: 0 auto 10px; color: var(--hi); }
.step-label { font: 700 1.18rem/1.2 var(--serif); color: var(--fg); }
.step-cap { margin: 8px auto 0; max-width: 22ch; font-size: .86rem; line-height: 1.45; color: var(--fg-4); opacity: 0; transform: translateY(4px); transition: opacity .25s ease-out, transform .25s ease-out; }
.step:hover .step-cap, .step:focus-visible .step-cap, .step:focus-within .step-cap { opacity: 1; transform: none; }

/* ---------- brochure viewer (the Editor's Kit, the rate card) ---------- */
.brochure { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.brochure.is-open { grid-template-columns: 1fr; }
.brochure-meta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.brochure-meta h2 { font: 700 clamp(2rem, 3.8vw, 3.2rem)/1.05 var(--serif); }
.brochure-meta p { color: var(--fg-3); max-width: 42ch; font-size: 1.05rem; }
.brochure-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.brochure-card {
  position: relative; justify-self: center; width: min(100%, var(--bw, 560px)); padding: 0; cursor: pointer; text-align: left;
  border: var(--border); border-radius: 10px; background: var(--card); box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1100px) rotateY(-9deg) rotateX(3deg) rotateZ(-1deg); transform-origin: 70% 50%;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease-out;
}
.brochure-card img { display: block; width: 100%; height: auto; }
.brochure-card:hover, .brochure-card:focus-visible { transform: perspective(1100px) rotateY(0) rotateX(0) rotateZ(0) translateY(-4px); }
.brochure-stage { position: relative; }
.brochure-reader { display: none; }
.brochure.is-open .brochure-card, .brochure.is-open .brochure-meta { display: none; }
.brochure.is-open .brochure-reader { display: block; }
.reader-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.reader-title { font: 700 1.2rem var(--serif); }
.reader-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reader-count { font: 600 .82rem var(--sans); letter-spacing: .1em; color: var(--fg-4); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1px solid var(--rule-strong); border-radius: 8px; background: transparent; color: var(--fg); font: 600 .8rem var(--sans); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tool-btn:hover { background: var(--fg); color: var(--page); border-color: var(--fg); }
.tool-btn.is-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.brochure-reader .reader-stage { position: relative; display: grid; place-items: center; background: var(--band); border: var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); padding: clamp(10px, 2vw, 24px); min-height: 240px; overflow: hidden; }
.reader-book { width: 100%; }
.reader-book .pg { background: var(--card); overflow: hidden; }
.reader-book .pg img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.reader-simple img { display: block; margin: 0 auto; max-width: 100%; max-height: min(78vh, 900px); height: auto; border: 1px solid var(--rule); transition: opacity .25s ease-out; }
.brochure-reader .reader-stage:fullscreen { background: var(--page); display: grid; place-items: center; padding: 24px; border-radius: 0; border: 0; }
.brochure-reader .reader-stage:fullscreen .reader-book { max-height: 100vh; }

/* ---------- hire me: closing strip ---------- */
.closing-strip { text-align: center; }
.closing-strip h2 { font: 700 clamp(2rem, 4.2vw, 3.4rem)/1.05 var(--serif); margin-bottom: 22px; }

/* ---------- co-founder ---------- */
.own-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.own-card { padding: 24px 22px 26px; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--card); display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease-out, box-shadow .25s ease-out; }
.own-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--fg); }
.own-card i { font: italic 600 1rem var(--serif); color: var(--hi); font-style: italic; }
.own-card h3 { font: 700 1.3rem/1.15 var(--serif); }
.own-card p { font-size: .92rem; color: var(--fg-3); line-height: 1.5; }

.num-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.num-item { padding: clamp(22px, 3vw, 36px) clamp(14px, 2vw, 32px); border-left: 1px solid var(--rule-strong); }
.num-item:first-child { border-left: 0; padding-left: 0; }
.num-item b { display: block; font: 700 clamp(2.2rem, 4.4vw, 3.8rem)/1 var(--serif); letter-spacing: -.02em; color: var(--accent); }
.num-item span { display: block; margin-top: 8px; font-size: .92rem; color: var(--fg-3); }
.note { margin-top: 14px; font-size: .84rem; color: var(--fg-4); }

.table-wrap { position: relative; margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--card); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.luv-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 880px; }
.luv-table th {
  text-align: right; padding: 14px 16px; font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-4);
  border-bottom: 1px solid var(--rule-strong); background: var(--band); white-space: nowrap;
}
.luv-table td { padding: 15px 16px; text-align: right; border-bottom: 1px solid var(--rule); color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.luv-table th:first-child, .luv-table td:first-child { text-align: left; }
.luv-table th:nth-child(2), .luv-table td:nth-child(2) { text-align: left; }
.luv-table td:first-child { font-weight: 600; color: var(--fg); white-space: normal; min-width: 240px; }
.luv-table .roas { font-weight: 700; color: var(--ok); }
.luv-table tr.best td { background: var(--tint); }
.luv-table tr.total td { font-weight: 700; border-bottom: 0; background: var(--band); color: var(--fg); }
.table-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; pointer-events: none; background: linear-gradient(to right, transparent, var(--card)); opacity: 0; transition: opacity .25s ease; }
.table-wrap.has-more::after { opacity: 1; }
.chart { margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--card); padding: clamp(18px, 2.6vw, 30px); }
.chart h3 { font: 700 1.2rem var(--serif); margin-bottom: 14px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar-label { font: 500 13px var(--sans); fill: var(--fg-2); }
.chart .bar-val { font: 700 13px var(--sans); fill: var(--fg); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--accent); }
.chart .bar.best { fill: var(--hi); }
.chart .avg { stroke: var(--fg-4); stroke-dasharray: 4 4; }
.chart .avg-label { font: 600 11px var(--sans); fill: var(--fg-4); }
.chart .axis { stroke: var(--rule-strong); }

.creative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.creative { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; color: inherit; }
.creative-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--rule-strong); border-radius: 12px; background: var(--media); transition: transform .25s ease-out, box-shadow .25s ease-out; }
.creative:hover .creative-media, .creative:focus-visible .creative-media { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--fg); }
.creative-media img, .creative-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.creative-badge { position: absolute; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(var(--dark-2-rgb), .7); color: var(--on-dark); font: 600 .68rem var(--sans); letter-spacing: .08em; }
.creative-cap { font: 600 1rem/1.25 var(--serif); color: var(--fg); }
.creative-roas { font: 600 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.learn { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); counter-reset: learn; }
.learn li { counter-increment: learn; display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--rule); font: 500 clamp(1.15rem, 2vw, 1.5rem)/1.3 var(--serif); color: var(--fg); }
.learn li::before { content: counter(learn, decimal-leading-zero); font: italic 600 1.2rem var(--serif); color: var(--hi); }

/* ---------- creator ---------- */

.rate-note { margin-top: 18px; color: var(--fg-4); font-size: .9rem; }

/* ---------- lightbox (new pages) reuses the reel player's look ---------- */
.reel-lb-frame.is-image { width: min(560px, calc(100vw - 150px)); height: auto; max-height: calc(100svh - 110px); background: transparent; display: grid; place-items: center; }
.reel-lb-frame.is-image img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 110px); object-fit: contain; background: transparent; border-radius: 12px; }
.reel-lb-count { font: 600 .78rem var(--sans); letter-spacing: .12em; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .reel-lb-frame.is-image { width: calc(100vw - 24px); max-height: calc(100svh - 150px); }
  .reel-lb-frame.is-image img { max-height: calc(100svh - 150px); }
}

/* ---------- footer: Let's Connect on the inner pages ---------- */
.site-footer { padding: 0; border-top: 0; }
.footer-connect { background: var(--tint); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(48px, 6vw, 84px) 0; }
.footer-connect-inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.footer-connect h2 { font: 700 clamp(2.2rem, 4.6vw, 3.8rem)/1 var(--serif); margin: 4px 0 12px; }
.footer-connect h2 em { font-style: italic; color: var(--hi); font-weight: 600; }
.footer-connect p { color: var(--fg-3); max-width: 42ch; }
.footer-connect-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-connect .contact-options { margin: 0; }
.footer-bar { border-top: 1px solid var(--rule); padding: 26px 0 34px; }
.site-footer .footer-row { color: var(--fg-4); }

/* ---------- reveal on scroll for the new blocks ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease-out, transform .8s ease-out; transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .own-grid { grid-template-columns: repeat(2, 1fr); }
  .brochure { grid-template-columns: 1fr; }
  .brochure-meta { align-items: center; text-align: center; order: -1; }
  .brochure-meta p { margin: 0 auto; }
  .brochure-actions { justify-content: center; }
}
@media (max-width: 900px) {
  .footer-connect-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 0 16px; border-left: 1px solid var(--rule-strong); }
  .proof-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--rule-strong); margin-top: 24px; padding-top: 24px; }
  .num-row { grid-template-columns: 1fr 1fr; }
  .num-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .num-item:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
  .case-head { grid-template-columns: minmax(0, 1fr); }
  .case-index { line-height: .9; }
  .did li { grid-template-columns: 44px 1fr; }

  /* How I work: a vertical track with the line down the left */
  .track { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .track::before, .track::after { top: 44px; bottom: 44px; left: 40px; right: auto; height: auto; width: 0; border-top: 0; border-left: 2px dashed var(--hi); transform-origin: center top; }
  .track.is-in::after { transform: scaleY(1); }
  .track::after { transform: scaleY(0); }
  .step { display: grid; grid-template-columns: 80px 1fr; column-gap: 20px; text-align: left; align-items: center; padding: 0; }
  .step .node { grid-row: 1 / span 3; margin: 0; }
  .step-icon { display: none; }
  .step-label { align-self: end; }
  .step-cap { opacity: 1; transform: none; margin: 4px 0 0; max-width: none; align-self: start; }
}
@media (max-width: 560px) {
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card { flex-direction: row; }
  .explore-media { aspect-ratio: 1 / 1; width: 38%; flex: none; border-bottom: 0; border-right: var(--border); }
  .explore-body { padding: 14px; }
  .explore-body h3 { font-size: 1.3rem; }
  .own-grid { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
  .page-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .reader-toolbar { gap: 8px; }
  .learn li { grid-template-columns: 44px 1fr; }
}
@media (hover: none) {
  .step-cap { opacity: 1; transform: none; }
}

/* 44px touch targets */
@media (max-width: 900px) {
  .theme-toggle { width: 44px; height: 44px; }
  .menu-toggle { min-height: 44px; }
}
a.chip, .facts .text-link { min-height: 44px; display: inline-flex; align-items: center; }
.facts .text-link { padding: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .explore-card, .explore-media img, .phone, .own-card, .creative-media, .brochure-card, .node, .step-cap, .play-btn { transition: none; }
  .track::after { transition: none; transform: none; }
  .brochure-card { transform: none; }
}

/* Creator: brand logos above the reel wheel */
.logo-row { list-style: none; margin: clamp(24px, 3.4vw, 40px) 0 clamp(28px, 4vw, 48px); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: clamp(10px, 1.4vw, 16px); }
.logo-tile {
  height: 84px; padding: 14px 18px; display: grid; place-items: center;
  background: var(--logo-tile, #fffdf8); border: 1px solid var(--rule-strong); border-radius: 12px;
}
.logo-tile img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; display: block; }
.logo-word { font: 600 1.05rem/1.2 var(--serif); text-align: center; color: #1e1e1e; letter-spacing: .01em; }

.snap-note { margin: 10px 0 0; font: italic 500 1.2rem/1.4 var(--serif); color: var(--fg-3); }
