/* ============================================================
   pages.css — shared component layer for the built (wireframe)
   pages. Base + typography + buttons + sections + cards + hero
   + CTA, lifted verbatim from the designed pages so everything
   matches. Consumes tokens.css. Header/footer come from chrome.*.
   ============================================================ */

:root {
  --font-display: 'Pliant SemiExpanded', 'Pliant', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Pliant', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --content-max: 1260px;
  --gutter: var(--space-5);
  --section-y: 11.25rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-surface-3);
  color: var(--color-text-strong);
  font-size: var(--type-size-body);
  line-height: var(--type-lh-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { text-wrap: balance; }
p, li, blockquote, dd { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-text-strong); line-height: var(--type-lh-tight); letter-spacing: -0.01em; font-weight: 400; }
h1 { font-size: clamp(2.75rem, 5vw, 3.5rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); line-height: var(--type-lh-snug); }
h3 { font-size: var(--type-size-h3); line-height: var(--type-lh-snug); }
p { color: var(--color-text-muted); }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-7); }

.section { padding: var(--section-y) 0; }
@media (max-width: 900px) { :root { --section-y: 7.5rem; } }
.section--surface { background: var(--color-surface-1); }
.section--dark { position: relative; overflow: hidden; background: #08090B; color: var(--color-text-inverse); }
.section--dark > .wrap { position: relative; z-index: 1; }
.section--dark::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle at 0% 0%, rgba(168,128,98,0.3), transparent 36%), radial-gradient(circle at 100% 100%, rgba(168,128,98,0.26), transparent 36%); animation: dataGlow 10s ease-in-out infinite alternate; }
@keyframes dataGlow { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .section--dark::before { animation: none; } }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-text-inverse); }
.section--dark .eyebrow { color: var(--color-brand-accent); }
.section--dark .lede { color: rgba(235,236,220,0.78); }
.section--dark .btn--ghost { color: var(--color-text-inverse); border-color: rgba(235,236,220,0.4); }
.section--dark .btn--ghost:hover { background: rgba(235,236,220,0.1); color: var(--color-text-inverse); border-color: rgba(235,236,220,0.4); }

.eyebrow { font-family: var(--font-body); font-size: var(--type-size-eyebrow); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-brand-secondary); display: block; margin-bottom: var(--space-3); }
.lede { font-size: var(--type-size-body-lg); color: var(--color-text-muted); max-width: 56ch; }

/* ---- Buttons (border-beam hover) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: var(--type-size-button); font-weight: 600; letter-spacing: 0.04em; padding: 10px 22px; border-radius: var(--radius-full); border: 1.5px solid transparent; cursor: pointer; position: relative; isolation: isolate; --beam: rgba(245,238,222,0.95); white-space: nowrap; transition: background var(--motion-duration-base) ease, color var(--motion-duration-base) ease; }
.btn--primary, .btn--accent { background: var(--color-brand-primary); color: var(--color-text-inverse); }
.btn--primary:hover, .btn--accent:hover { background: var(--color-brand-secondary); }
.btn--ghost { background: transparent; color: var(--color-brand-primary); border-color: var(--color-brand-primary); }
.btn--ghost:hover { background: var(--color-brand-primary); color: var(--color-text-inverse); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--color-brand-accent); outline-offset: 3px; }
@property --btn-beam-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--btn-beam-a), transparent 0 60%, var(--beam) 78%, transparent 92% 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.btn:hover::after { opacity: 1; animation: btn-beam 1s ease-out 1 forwards; }
@keyframes btn-beam { to { --btn-beam-a: 360deg; } }
.section .btn--ghost, .section .btn--primary { --beam: rgba(255,96,56,0.95); }
@media (prefers-reduced-motion: reduce) { .btn:hover::after { animation: none; opacity: 0; } }
/* dark-section filled buttons → cream fill */
.section--dark .btn--accent, .section--dark .btn--primary { background: var(--color-surface-1); color: var(--color-brand-primary); }
.section--dark .btn--accent:hover, .section--dark .btn--primary:hover { background: #733635; color: var(--color-text-inverse); }

.actions { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; margin-top: var(--space-6); }
.textlink { font-family: var(--font-body); font-size: var(--type-size-body-sm); font-weight: 600; letter-spacing: 0.02em; color: var(--color-brand-primary); display: inline-flex; gap: 6px; margin-top: var(--space-4); }
.textlink:hover { color: var(--color-brand-secondary); }

/* ---- Page hero (light, left copy + right data-field; tucks under the nav) ---- */
.page-hero { position: relative; overflow: hidden; margin-top: calc(-1 * (60px + var(--space-4))); padding: calc(60px + var(--space-4) + var(--space-10)) 0 var(--space-11); min-height: 80vh; display: flex; align-items: center; text-align: left; color: var(--color-text-strong); background: linear-gradient(112deg, var(--color-surface-1) 0%, var(--color-surface-2) 52%, #c6dbd5 100%); }
.page-hero .wrap { max-width: var(--content-max); width: 100%; }
.page-hero > .wrap > * { max-width: 600px; }
.page-hero h1 { max-width: 15ch; margin: var(--space-5) 0 0; font-size: clamp(2.6rem, 5.2vw, 4rem); line-height: 1.05; }
.page-hero .lede { max-width: 52ch; margin: var(--space-5) 0 0; }
.page-hero .actions { margin-top: var(--space-7); }
@media (max-width: 760px) { .page-hero { min-height: 0; } .page-hero > .wrap > * { max-width: none; } }

/* ---- Cards grid ---- */
.cols { display: grid; gap: var(--space-5); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; background: var(--color-surface-3); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); padding: var(--space-7); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.5s ease, border-color 0.45s ease, background 0.45s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(54,30,28,0.16); border-color: rgba(160,201,203,0.75); background: var(--color-surface-1); }
.card .eyebrow { margin-bottom: var(--space-4); }
.card h3 { margin-bottom: var(--space-3); transition: color 0.35s ease; }
.card h3 a { color: inherit; }
.card:hover h3, .card:hover h3 a { color: var(--color-brand-secondary); }
.card p { color: var(--color-text-muted); }
/* arrow nudge on titled links ending in → */
.card h3 a { transition: color 0.35s ease; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* ---- Tag / badge ---- */
.tag { display: inline-block; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-full); margin-left: var(--space-2); vertical-align: middle; }
.tag--accent { background: var(--color-brand-accent); color: var(--color-brand-primary); }

/* ---- CTA band ---- */
.cta-band { text-align: center; }
.cta-band .wrap { max-width: 760px; }
.cta-band .lede { margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }

/* ---- Reveal on scroll (paired with chrome.js-style observer below) ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Responsive ---- */
@media (max-width: 820px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ============================================================
   Extended component layer for the built subpages
   ============================================================ */

/* Section intro (eyebrow + heading + lede, centered or left) */
.section-head { max-width: 760px; margin-bottom: var(--space-8); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: var(--space-4); }

/* Long-form prose (legal pages, rich text) */
.prose { max-width: 760px; margin: 0 auto; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-8); font-size: var(--type-size-h3); }
.prose h3 { margin-top: var(--space-6); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-2); }
.prose a { color: var(--color-brand-primary); text-decoration: underline; }
.prose strong { color: var(--color-text-strong); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-7); }
.stat__value { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1; color: var(--color-text-strong); letter-spacing: -0.03em; }
.stat__label { font-size: var(--type-size-body-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.section--dark .stat__value { color: var(--color-text-inverse); }
.section--dark .stat__label { color: rgba(235,236,220,0.7); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }

/* Split row: text + media/panel, alternating */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-9); align-items: center; }
.split + .split { margin-top: var(--space-10); }
.split--flip .split__media { order: -1; }
.split__media { border-radius: var(--radius-md); overflow: hidden; min-height: 320px; background: var(--color-surface-1); border: 1px solid var(--color-border-subtle); display: flex; }
.split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: var(--space-7); } .split--flip .split__media { order: 0; } }

/* Panel + feature list (the "content" half of a split, or standalone) */
.panel { background: var(--color-surface-1); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); padding: var(--space-7); width: 100%; }
.section--dark .panel { background: rgba(235,236,220,0.06); border-color: rgba(235,236,220,0.14); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); }
.feature-list li { position: relative; padding-left: var(--space-6); color: var(--color-text-muted); }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand-accent); }
.section--dark .feature-list li { color: rgba(235,236,220,0.8); }

/* Numbered steps / process */
.steps { display: grid; gap: var(--space-7); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); align-items: start; }
.step__n { counter-increment: step; font-family: var(--font-display); font-weight: 300; font-size: 2rem; line-height: 1; color: var(--color-brand-accent); min-width: 2ch; }
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--color-text-muted); }

/* Form */
.form { max-width: 580px; }
.form--center { margin: 0 auto; }
.form__row { margin-bottom: var(--space-4); }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form label { display: block; font-size: var(--type-size-body-sm); font-weight: 600; margin-bottom: var(--space-2); color: var(--color-text-strong); }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); font-family: var(--font-body); font-size: var(--type-size-body); background: var(--color-surface-3); color: var(--color-text-strong); transition: border-color 0.2s ease; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--color-brand-accent); }
.form textarea { min-height: 130px; resize: vertical; }
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; } }

/* Listing rows (blog, case studies, press) */
.list { display: flex; flex-direction: column; }
.list-item { display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: baseline; padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border-subtle); transition: padding-left 0.3s ease; }
.list-item:hover { padding-left: var(--space-3); }
.list-item__meta { font-size: var(--type-size-body-sm); color: var(--color-text-muted); white-space: nowrap; }
.list-item h3 { margin-bottom: var(--space-2); }
.list-item p { color: var(--color-text-muted); max-width: 64ch; }

/* Team grid — premium member cards: gradient-ring avatars, index, cursor spotlight */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: member; }
.team__member { position: relative; overflow: hidden; isolation: isolate; text-align: left; background: var(--color-surface-3); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6) var(--space-6); transition: transform 0.55s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.55s ease, border-color 0.45s ease; }
.team__member > * { position: relative; z-index: 2; }
.team__member:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(54,30,28,0.18); border-color: rgba(160,201,203,0.8); }
/* index number, top-right */
.team__member::before { counter-increment: member; content: counter(member, decimal-leading-zero); position: absolute; top: var(--space-5); right: var(--space-6); z-index: 2; font-family: var(--font-display); font-weight: 300; font-size: 1.05rem; color: var(--color-brand-accent); opacity: 0.6; }
/* cursor-following warm spotlight (fed by chrome.js mousemove) */
.team__member::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(255,96,56,0.16), transparent 60%); }
.team__member:hover::after { opacity: 1; }

/* gradient-ring avatar with frosted person placeholder */
.team__avatar { width: 92px; height: 92px; border-radius: 50%; margin-bottom: var(--space-5); position: relative; padding: 2.5px; background: conic-gradient(from var(--ring), var(--color-brand-primary), #A0C9CB 30%, var(--color-brand-accent) 62%, var(--color-brand-primary)); }
.team__member:hover .team__avatar { animation: ringSpin 4.5s linear infinite; }
@keyframes ringSpin { to { --ring: 360deg; } }
.team__avatar::before { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background-color: var(--color-surface-2); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239b9086'><circle cx='12' cy='8.5' r='3.8'/><path d='M4.5 20.5c0-4.2 3.4-6.7 7.5-6.7s7.5 2.5 7.5 6.7z'/></svg>"); background-size: 46px; background-position: center 62%; background-repeat: no-repeat; }
.team__avatar img { position: absolute; inset: 2.5px; width: calc(100% - 5px); height: calc(100% - 5px); border-radius: 50%; object-fit: cover; z-index: 1; }

.team__name { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.team__role { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-brand-secondary); margin: var(--space-3) 0; }
.team__member p { font-size: var(--type-size-body-sm); color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) { .team__member:hover { transform: none; } .team__member:hover .team__avatar { animation: none; } }
@media (max-width: 980px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team { grid-template-columns: 1fr; } }

/* Simple centered note (placeholders / coming soon) */
.note { text-align: center; max-width: 56ch; margin: 0 auto; color: var(--color-text-muted); }

/* ============================================================
   Elevation layer — richer, designed-grade motifs applied to
   built pages (anything with .page-hero). Injected/driven by
   chrome.js (gated on .page-hero so designed pages are untouched).
   ============================================================ */

/* Hero dot-field canvas behind the copy */
.page-hero { position: relative; }
.page-hero > .wrap { position: relative; z-index: 2; }
.hero-fx { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
/* warm breathing glow on the right, behind the data-field */
.page-hero::after { content: ''; position: absolute; right: -8%; top: 28%; width: 760px; height: 760px; z-index: 1; pointer-events: none; background: radial-gradient(circle, rgba(255,150,96,0.2), rgba(255,150,96,0.05) 40%, transparent 64%); animation: heroBreathe 9s ease-in-out infinite; }
@keyframes heroBreathe { 0%, 100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }

/* Hero staged entrance (pure CSS, plays on load) */
.page-hero > .wrap > * { animation: heroRise 0.9s cubic-bezier(0.2,0.7,0.2,1) both; }
.page-hero > .wrap > .eyebrow { animation-delay: 0.1s; }
.page-hero > .wrap > h1 { animation-delay: 0.2s; }
.page-hero > .wrap > .lede { animation-delay: 0.34s; }
.page-hero > .wrap > .actions { animation-delay: 0.46s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page-hero::after { animation: none; } .page-hero > .wrap > * { animation: none; } }

/* Card "magic": ambient corner glow (z0) + cursor-following warm spotlight (z1); content z2 */
.card > * { position: relative; z-index: 2; }
.card::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; background:
  radial-gradient(circle at 0 0, rgba(160,201,203,0.45), transparent 32%),
  radial-gradient(circle at 100% 0, rgba(255,96,56,0.18), transparent 32%),
  radial-gradient(circle at 0 100%, rgba(255,96,56,0.16), transparent 32%),
  radial-gradient(circle at 100% 100%, rgba(160,201,203,0.45), transparent 32%); }
.card:hover::before { opacity: 1; }
.card::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,96,56,0.16), transparent 60%); }
.card:hover::after { opacity: 1; }

/* Stat pop on reveal */
.reveal.in .stat__value { animation: statPop 0.6s cubic-bezier(0.2,0.8,0.2,1) both; }
@keyframes statPop { 0% { opacity: 0; transform: translateY(10px) scale(0.96); } 55% { transform: translateY(0) scale(1.04); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal.in .stat__value { animation: none; } }

/* Animated accent rule under section headings */
.section-head h2 { position: relative; }

/* Reveal stagger for grids */
.cols.reveal > *, .stats.reveal > *, .steps.reveal > *, .team.reveal > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2,0.7,0.2,1); }
.cols.reveal.in > *, .stats.reveal.in > *, .steps.reveal.in > *, .team.reveal.in > * { opacity: 1; transform: none; }
.cols.reveal.in > :nth-child(2), .stats.reveal.in > :nth-child(2) { transition-delay: 0.07s; }
.cols.reveal.in > :nth-child(3), .stats.reveal.in > :nth-child(3) { transition-delay: 0.14s; }
.cols.reveal.in > :nth-child(4), .stats.reveal.in > :nth-child(4) { transition-delay: 0.21s; }
.cols.reveal.in > :nth-child(5) { transition-delay: 0.28s; }
.cols.reveal.in > :nth-child(6) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) { .cols.reveal > *, .stats.reveal > *, .steps.reveal > *, .team.reveal > * { opacity: 1; transform: none; transition: none; } }

/* Grid containers with .reveal: keep container static, stagger children only */
.cols.reveal, .stats.reveal, .steps.reveal, .team.reveal { opacity: 1; transform: none; }

/* Callout — designed "information needed" / note block */
.callout { position: relative; max-width: 720px; margin: 0 auto; background: var(--color-surface-1); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-8) var(--space-8) calc(var(--space-8) + 8px); overflow: hidden; box-shadow: 0 12px 36px rgba(54,30,28,0.06); }
.callout::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--color-brand-accent), var(--color-brand-primary)); }
.callout__badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-brand-secondary); border: 1px solid currentColor; padding: 4px 12px; border-radius: var(--radius-full); margin-bottom: var(--space-4); }
.callout__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-brand-accent); }
.callout h2 { font-size: var(--type-size-h3); margin-bottom: var(--space-4); }
.callout p { color: var(--color-text-muted); }
.callout p + p { margin-top: var(--space-3); }

/* ============================================================
   Animation upgrade — ported from the designed-pages catalog
   (gated on .page-hero / built pages via chrome.js)
   ============================================================ */

/* Hero headline word-by-word mask rise (data-difference style) */
.page-hero.hero-split > .wrap > h1 { animation: none; opacity: 1; }
.wr { display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wr__i { display: inline-block; transform: translateY(118%); animation: wordRise 0.85s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes wordRise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wr__i { transform: none; animation: none; } }

/* Scroll cue — mouse outline + wheel dot, below the hero fold */
.scroll-cue { position: absolute; left: 50%; bottom: var(--space-6); transform: translateX(-50%); z-index: 3; width: 24px; height: 38px; border: 1.5px solid rgba(54,30,28,0.32); border-radius: 13px; display: flex; justify-content: center; padding-top: 7px; opacity: 0; animation: cueIn 0.7s ease 0.9s forwards; transition: opacity 0.4s ease; }
.scroll-cue::before { content: ''; width: 3px; height: 7px; border-radius: 2px; background: var(--color-brand-accent); animation: cueWheel 1.8s ease-in-out infinite; }
.scroll-cue.is-hidden { opacity: 0 !important; }
@keyframes cueIn { to { opacity: 1; } }
@keyframes cueWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::before { animation: none; } }

/* Section-head accent line that draws in on reveal */
.section-head h2 { position: relative; }
.section-head h2::after { content: ''; display: block; width: 52px; height: 2px; margin-top: var(--space-5); background: linear-gradient(90deg, var(--color-brand-accent), transparent); transform: scaleX(0); transform-origin: left center; transition: transform 0.9s cubic-bezier(0.2,0.7,0.2,1) 0.15s; }
.section-head--center h2::after { margin-left: auto; margin-right: auto; transform-origin: center; }
.section-head.reveal.in h2::after, .reveal.in .section-head h2::after, .section-head.in h2::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .section-head h2::after { transform: scaleX(1); transition: none; } }

/* Media zoom on hover */
.split__media { overflow: hidden; }
.split__media img { transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.split__media:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .split__media:hover img { transform: none; } }

/* Hero background variants per particle theme (subtle, on-brand) */
.page-hero[data-hero="waveform"] { background: linear-gradient(118deg, var(--color-surface-1) 0%, var(--color-surface-2) 50%, #bcd2d8 100%); }
.page-hero[data-hero="bars"] { background: linear-gradient(102deg, var(--color-surface-1) 0%, #f1e4d7 54%, #e7d2c2 100%); }
.page-hero[data-hero="orbit"] { background: linear-gradient(126deg, var(--color-surface-1) 0%, var(--color-surface-2) 50%, #d4ddcd 100%); }
.page-hero[data-hero="grid"] { background: linear-gradient(115deg, var(--color-surface-1) 0%, var(--color-surface-2) 52%, #cfdad1 100%); }
.page-hero[data-hero="globe"] { background: linear-gradient(110deg, var(--color-surface-1) 0%, var(--color-surface-2) 55%, #c6dbd5 100%); }

/* ============================================================
   Hero archetypes — variety, not a template (per designed pages)
   ============================================================ */

/* Floating proof-tags over the hero graphic (Sonera signature) */
.hero-tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--color-surface-1); color: var(--color-brand-primary); font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; padding: 8px 14px; border-radius: var(--radius-full); box-shadow: 0 10px 28px rgba(8,9,11,0.16); white-space: nowrap; opacity: 0; animation: tagIn 0.6s cubic-bezier(0.22,0.61,0.36,1) forwards, tagBob 6s ease-in-out infinite; }
.hero-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand-accent); flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(255,96,56,0.16); }
.hero-tag--1 { top: 23%; right: 33%; animation-delay: 1.2s, 1.8s; }
.hero-tag--2 { top: 45%; right: 8%; animation-delay: 1.45s, 2.1s; }
.hero-tag--3 { top: 67%; right: 31%; animation-delay: 1.7s, 2.4s; }
@keyframes tagIn { to { opacity: 1; } }
@keyframes tagBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 860px) { .hero-tags { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-tag { opacity: 1; animation: none; } }

/* Dark "spotlight" archetype (maroon→ink) — brand moment for hub pages */
.page-hero.page-hero--dark { background: linear-gradient(125deg, var(--color-brand-primary) 0%, #1c1110 58%, #08090B 100%); color: var(--color-text-inverse); }
.page-hero--dark h1, .page-hero--dark h2 { color: var(--color-text-inverse); }
.page-hero--dark .lede { color: rgba(235,236,220,0.8); }
.page-hero--dark .eyebrow { color: var(--color-brand-accent); }
.page-hero--dark .scroll-cue { border-color: rgba(235,236,220,0.42); }
.page-hero--dark::after { background: radial-gradient(circle, rgba(255,150,96,0.24), rgba(255,150,96,0.05) 42%, transparent 66%); }

/* Centered variant */
.page-hero--center { text-align: center; }
.page-hero--center > .wrap > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.page-hero--center h1 { max-width: 18ch; }
.page-hero--center .lede { max-width: 56ch; }
.page-hero--center .actions { justify-content: center; }
.page-hero--center::after { left: 50%; right: auto; top: 16%; margin-left: -380px; }

/* ============================================================
   Rich-tier engine — section sketch graphics + interactive
   components (tabs / accordion / carousel / CTA expand).
   Behavior driven by chrome.js, gated on .page-hero pages.
   ============================================================ */

/* Section sketch graphic: a dark halftone canvas in a media panel */
.media { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 380px;
  background: radial-gradient(120% 120% at 78% 12%, rgba(115,54,53,0.55), transparent 60%),
              radial-gradient(100% 100% at 8% 92%, rgba(255,96,56,0.16), transparent 55%), #08090B;
  border: 1px solid rgba(235,236,220,0.10); }
.media--tall { min-height: 460px; }
.page-hero ~ * .sketch, .sketch { position: absolute; inset: 0; }
.sketch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 820px) { .media { min-height: 300px; } }

/* Tabs */
.tabs__bar { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 1px solid var(--color-border-subtle); margin-bottom: var(--space-7); }
.tabs__btn { font-family: var(--font-body); font-size: var(--type-size-body-sm); font-weight: 600; letter-spacing: 0.02em; color: var(--color-text-muted); background: none; border: none; cursor: pointer; padding: 12px 16px; position: relative; transition: color 0.3s ease; }
.tabs__btn::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--color-brand-accent); transform: scaleX(0); transform-origin: left center; transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1); }
.tabs__btn:hover { color: var(--color-text-strong); }
.tabs__btn.is-active { color: var(--color-brand-primary); }
.tabs__btn.is-active::after { transform: scaleX(1); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: tabIn 0.5s ease both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.section--dark .tabs__bar { border-color: rgba(235,236,220,0.18); }
.section--dark .tabs__btn { color: rgba(235,236,220,0.7); }
.section--dark .tabs__btn.is-active { color: var(--color-text-inverse); }
@media (prefers-reduced-motion: reduce) { .tabs__panel.is-active { animation: none; } }

/* Accordion */
.accordion { border-top: 1px solid var(--color-border-subtle); }
.acc-item { border-bottom: 1px solid var(--color-border-subtle); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); text-align: left; background: none; border: none; cursor: pointer; padding: var(--space-5) 0; font-family: var(--font-display); font-weight: 400; font-size: var(--type-size-h4); color: var(--color-text-strong); }
.acc-head__icon { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.acc-head__icon::before, .acc-head__icon::after { content: ''; position: absolute; background: var(--color-brand-accent); }
.acc-head__icon::before { left: 0; right: 0; top: 10px; height: 2px; }
.acc-head__icon::after { top: 0; bottom: 0; left: 10px; width: 2px; transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1); }
.acc-item.is-open .acc-head__icon::after { transform: scaleY(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.2,0.7,0.2,1); }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body__inner { overflow: hidden; }
.acc-body__inner p { padding-bottom: var(--space-5); max-width: 72ch; }
.section--dark .accordion, .section--dark .acc-item { border-color: rgba(235,236,220,0.16); }

/* Carousel */
.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: var(--space-2); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel__nav { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-6); }
.carousel__prev, .carousel__next { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--color-brand-primary); background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--color-brand-primary); transition: background 0.3s ease, color 0.3s ease; }
.carousel__prev:hover, .carousel__next:hover { background: var(--color-brand-primary); color: var(--color-text-inverse); }
.carousel__dots { display: flex; gap: 8px; margin-left: var(--space-3); }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--color-border-subtle); opacity: 0.4; cursor: pointer; padding: 0; transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease; }
.carousel__dot.is-active { opacity: 1; background: var(--color-brand-accent); transform: scale(1.3); }
.section--dark .carousel__prev, .section--dark .carousel__next { border-color: rgba(235,236,220,0.4); color: var(--color-text-inverse); }
.section--dark .carousel__prev:hover, .section--dark .carousel__next:hover { background: rgba(235,236,220,0.12); }

/* CTA card horizontal expand */
.cta-card { position: relative; overflow: hidden; }
.page-hero ~ * .cta-card.cta-anim, .cta-card.cta-anim { transform: scaleX(0); transform-origin: center; transition: transform 0.85s cubic-bezier(0.2,0.72,0.2,1); }
.cta-card.cta-anim.in { transform: scaleX(1); }
.cta-card.cta-anim > * { opacity: 0; transition: opacity 0.55s ease; }
.cta-card.cta-anim.in > * { opacity: 1; transition-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) { .cta-card.cta-anim, .cta-card.cta-anim.in { transform: none; } .cta-card.cta-anim > * { opacity: 1; } }

/* count-up pop */
.stat__value.counted { animation: statPop 0.55s cubic-bezier(0.2,0.8,0.2,1); }
