/* AdX Media LLC — site styles. Colours live in the variables below. */
:root {
  --bg: #131417; --fg: #F4F3EF; --muted: #9A9CA3; --border: #2A2C31; --card: #1B1C20;
  --accent: #4B63FF; --accent-text: #93A3FF; --on-accent: #FFFFFF; --danger: #FF6E6E; --ok: #6FD3A0;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
  --header-h: 76px;
  color-scheme: dark;
}
.light {
  --bg: #EFEDE8; --fg: #131417; --muted: #5C5E64; --border: #D6D3CC; --card: #F8F7F4;
  --accent-text: #3347D9; --danger: #C41E2D; --ok: #16784A;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.light, .dark { background: var(--bg); color: var(--fg); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: #fff; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* Layout */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(5rem, 11vw, 9.5rem); }
.section + .section.same { padding-top: 0; }
.bt { border-top: 1px solid var(--border); }
.grid-12 { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; }
  .c-4 { grid-column: auto / span 4; } .c-5 { grid-column: auto / span 5; } .c-6 { grid-column: auto / span 6; } .c-7 { grid-column: auto / span 7; } .c-8 { grid-column: auto / span 8; }
  .s-7 { grid-column-start: 7; } .s-9 { grid-column-start: 9; } .s-6 { grid-column-start: 6; } .s-8 { grid-column-start: 8; }
}

/* Type */
.t-hero { font-size: clamp(2.6rem, 7.6vw, 7.4rem); line-height: .94; font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; }
.t-display { font-size: clamp(2.3rem, 5.6vw, 5.2rem); line-height: .96; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
.t-h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1; font-weight: 800; letter-spacing: -.028em; text-transform: uppercase; }
.t-h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.t-lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.t-label { font-size: .875rem; font-weight: 600; letter-spacing: .01em; }
.t-small { font-size: .9375rem; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent-text); }
.line { display: block; }
.line.soft { color: var(--muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; } .mt-8 { margin-top: 4rem; }
.measure { max-width: 38rem; }
.stack > * + * { margin-top: 1.25rem; }

/* Buttons */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .98rem; line-height: 1; cursor: pointer; transition: color .35s var(--ease), border-color .35s var(--ease); white-space: nowrap; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent::before { background: var(--fg); }
.btn-accent:hover { color: var(--bg); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary::before { background: var(--accent); }
.btn-primary:hover { color: #fff; }
.btn-outline { border-color: var(--border); color: var(--fg); }
.btn-outline::before { background: var(--fg); }
.btn-outline:hover { color: var(--bg); border-color: var(--fg); }
.btn-lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: .65rem 1.15rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-line { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.link-line:hover { background-size: 100% 1px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(19, 20, 23, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: var(--border); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.logo-mark { width: 30px; height: 30px; }
.nav { display: none; }
.nav ul { display: flex; gap: 2rem; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { background-size: 100% 1px; }
.header-cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: none; font-weight: 700; cursor: pointer; }
.menu-toggle .bars { width: 18px; height: 10px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars::after { top: 8px; }
.menu-open .menu-toggle .bars::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 4px; transform: rotate(-45deg); }
@media (min-width: 1100px) { .nav, .header-cta { display: block; } .menu-toggle { display: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: calc(var(--header-h) + 2rem) var(--pad) 2rem; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.mobile-menu a.big { display: block; font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; padding: .2rem 0; }
.mobile-menu a.big[aria-current="page"] { color: var(--accent-text); }
.mobile-menu .meta { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.menu-open { overflow: hidden; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 3rem) 0 3rem; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,20,23,.2) 0%, rgba(19,20,23,.55) 55%, var(--bg) 100%); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero .status { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(75,99,255,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(75,99,255,0); } 100% { box-shadow: 0 0 0 0 rgba(75,99,255,0); } }
.hero h1 { max-width: 15ch; }
.hero-foot { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1024px) { .hero-foot { grid-template-columns: 1.2fr 1fr; } .hero-foot .btn-row { justify-content: flex-end; } }
.hero-steps { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; color: var(--muted); }
.hero-steps li span { color: var(--accent-text); margin-right: .5rem; }

/* Load animation (hero words) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.w > span { display: inline-block; }
.js .anim .w > span { transform: translateY(105%); animation: wordUp 1s cubic-bezier(.19,1,.22,1) forwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
.js .fade-in { opacity: 0; animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 600ms); }
@keyframes wordUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Section heading */
.sec-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 1024px) { .sec-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 4rem; } }
.sec-head p { max-width: 34rem; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > * { flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-strip { border-block: 1px solid var(--border); padding-block: 2rem; margin-top: 4rem; }
.ph-logo { display: inline-flex; align-items: center; gap: .6rem; margin-right: 4.5rem; color: var(--muted); font-weight: 700; font-size: 1.1rem; opacity: .75; }
.ph-logo i { width: 26px; height: 26px; border: 1.5px dashed currentColor; border-radius: 7px; display: inline-block; }
.word-strip { padding-block: 1.75rem; border-top: 1px solid var(--border); }
.word-strip span { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; margin-right: 2.5rem; color: transparent; -webkit-text-stroke: 1px var(--muted); }
.word-strip span:nth-child(odd) { color: var(--fg); -webkit-text-stroke: 0; }

/* Visual panel */
.visual { position: relative; overflow: hidden; border-radius: 4px; background: var(--card); border: 1px solid var(--border); }
.visual svg { width: 100%; height: 100%; }
.ratio-wide { aspect-ratio: 21 / 9; } .ratio-card { aspect-ratio: 4 / 3; } .ratio-tall { aspect-ratio: 4 / 5; }
@media (max-width: 700px) { .ratio-wide { aspect-ratio: 4 / 3; } }

/* Pillars */
.pillars { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--bg); padding: clamp(1.75rem, 3vw, 2.75rem); transition: background .3s; }
.pillar:hover { background: var(--card); }
.pillar h3 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.pillar ul { margin-top: 2rem; border-top: 1px solid var(--border); }
.pillar li { padding: .75rem 0; border-bottom: 1px solid var(--border); font-weight: 600; font-size: .95rem; }

/* Services */
.services-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service { position: relative; display: flex; flex-direction: column; min-height: 17rem; padding: 1.75rem; background: var(--bg); transition: background .35s var(--ease); }
.service:hover { background: var(--card); }
.service .top { display: flex; justify-content: space-between; align-items: flex-start; }
.service .num { color: var(--muted); font-weight: 600; font-size: .9rem; }
.service .ico { width: 40px; height: 40px; color: var(--accent-text); }
.service h3 { margin-top: auto; padding-top: 2.5rem; }
.service p { margin-top: .75rem; color: var(--muted); font-size: .98rem; }
.service .go { position: absolute; right: 1.5rem; bottom: 1.6rem; width: 20px; height: 20px; opacity: 0; transform: translate(-6px, 6px); transition: all .35s var(--ease); color: var(--accent-text); }
.service:hover .go { opacity: 1; transform: none; }
.service .grp { font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .6rem; }

/* Process */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.timeline .progress { position: absolute; left: 11px; top: 8px; width: 1px; height: 0; background: var(--accent); transition: height .2s linear; }
.step { position: relative; padding-left: 3.5rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 4px; top: 10px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); }
.step .n { color: var(--accent-text); font-weight: 700; }
.step h3 { font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: .5rem; text-transform: uppercase; }
.step p { margin-top: 1rem; max-width: 34rem; color: var(--muted); }
@media (min-width: 1024px) { .sticky { position: sticky; top: calc(var(--header-h) + 3rem); } }

/* Growth flow */
.flow li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--border); align-items: baseline; }
.flow li:last-child { border-bottom: 1px solid var(--border); }
.flow .k { color: var(--accent-text); font-weight: 700; }
.flow strong { display: block; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; font-weight: 800; transition: color .3s; }
.flow li:hover strong { color: var(--accent-text); }
.flow span.t { display: block; color: var(--muted); margin-top: .25rem; }

/* Cards (case studies, insights) */
.cards { display: grid; gap: 2.5rem 1.5rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; }
.card .visual { transition: transform .6s var(--ease); }
.card:hover .visual svg { transform: scale(1.04); }
.card .visual svg { transition: transform 1s var(--ease); }
.card .meta { display: flex; gap: .5rem 1rem; flex-wrap: wrap; margin-top: 1.25rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.card h3 { margin-top: .6rem; }
.card p { margin-top: .6rem; color: var(--muted); }
.tag { position: absolute; left: 1rem; top: 1rem; z-index: 1; font-size: .8rem; font-weight: 700; background: var(--bg); color: var(--fg); border-radius: 999px; padding: .3rem .75rem; }
.card-link { margin-top: 1rem; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; }

/* Metrics */
.metrics { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metric { background: var(--bg); padding: 2rem; min-height: 15rem; display: flex; flex-direction: column; }
.metric .v { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--border); }
.metric h3 { margin-top: auto; padding-top: 2rem; }
.metric p { margin-top: .5rem; color: var(--muted); font-size: .96rem; }

/* Testimonials */
.carousel { position: relative; touch-action: pan-y; }
.slide { display: none; }
.slide.active { display: block; animation: slideIn .6s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.slide blockquote { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.slide blockquote::before { content: '“'; display: block; font-size: 5rem; line-height: .6; color: var(--accent); margin-bottom: 1rem; font-weight: 800; }
.slide figcaption { margin-top: 2rem; display: flex; align-items: center; gap: 1rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 1px dashed var(--muted); display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.car-ctrl { margin-top: 3rem; display: flex; align-items: center; gap: 1rem; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: none; display: grid; place-items: center; cursor: pointer; transition: all .3s; }
.icon-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
.car-count { margin-left: auto; color: var(--muted); font-weight: 600; }
.car-bar { height: 2px; background: var(--border); margin-top: 1.5rem; overflow: hidden; }
.car-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.car-bar i.run { animation: bar 7s linear forwards; }
.carousel.paused .car-bar i.run { animation-play-state: paused; }
@keyframes bar { to { width: 100%; } }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(6rem, 14vw, 11rem) 0; }
.cta::before { content: ''; position: absolute; left: 50%; top: 40%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(75,99,255,.32), transparent); animation: glow 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { transform: translate(-46%, -54%) scale(1.12); } }
.cta .t-hero { max-width: 14ch; margin-inline: auto; position: relative; }
.cta p { max-width: 34rem; margin: 2rem auto 0; position: relative; }
.cta .btn-row { justify-content: center; margin-top: 2.5rem; position: relative; }
.cta .word-strip { margin-top: clamp(5rem, 10vw, 8rem); position: relative; }

/* Page hero */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem)) 0 clamp(4rem, 7vw, 6rem); }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(244,243,239,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(244,243,239,.04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); pointer-events: none; }
.page-hero .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 2.5rem; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .6; }
.crumbs a:hover { color: var(--fg); }
.page-hero .intro { margin-top: 2rem; max-width: 40rem; color: var(--muted); }

/* Service detail */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 600; transition: all .25s; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
button.chip { background: none; cursor: pointer; }
.detail h2 { margin-top: .75rem; }
.detail .tagline { margin-top: 1.25rem; }
.detail h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.checklist li { position: relative; padding: .7rem 0 .7rem 1.75rem; border-top: 1px solid var(--border); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 1.25rem; width: .75rem; height: 2px; background: var(--accent); }
.mini-steps { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .mini-steps { grid-template-columns: repeat(4, 1fr); } }
.mini-steps li { border: 1px solid var(--border); padding: 1rem; font-weight: 600; font-size: .95rem; }
.mini-steps li b { display: block; color: var(--accent-text); font-size: .85rem; margin-bottom: .4rem; }
.cols-2 { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .cols-2 { grid-template-columns: 1fr 1fr; } }

/* Simple list cards (values, principles) */
.tiles { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles.four { grid-template-columns: repeat(4, 1fr); } .tiles.three { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--bg); padding: 2rem; }
.tile p { margin-top: .75rem; color: var(--muted); }

/* Prose (articles, legal) */
.prose { max-width: 42rem; font-size: 1.1rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 3rem; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li + li { margin-top: .6rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .8em; width: .6rem; height: 2px; background: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; font-size: 1.35rem; font-weight: 600; line-height: 1.45; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: .75rem 1rem; text-align: left; vertical-align: top; }
.prose th { background: var(--card); }
.aside-box { border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
@media (min-width: 1024px) { .aside-box.sticky { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* Forms */
.form { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.form .two { display: grid; gap: 1.5rem; }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .5rem; }
.field .req { color: var(--accent-text); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 4px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(75,99,255,.25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .9rem; margin-top: .4rem; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { margin: 0; font-weight: 600; font-size: .9rem; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks span { display: inline-block; border: 1px solid var(--border); border-radius: 999px; padding: .55rem 1rem; cursor: pointer; transition: all .2s; background: var(--card); }
.checks input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1rem 1.25rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--card); font-weight: 600; }
.notice.ok { border-left-color: var(--ok); }
.notice.bad { border-left-color: var(--danger); }
.btn[disabled] { opacity: .6; cursor: progress; }
.contact-info dt { font-weight: 700; margin-top: 1.75rem; }
.contact-info dd { margin: .4rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-top: clamp(4rem, 8vw, 6rem); }
.foot-grid { display: grid; gap: 3rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.foot-grid h2 { font-size: .95rem; font-weight: 700; margin-bottom: 1.25rem; }
.foot-grid li + li { margin-top: .6rem; }
.foot-grid a { color: var(--muted); } .foot-grid a:hover { color: var(--fg); }
.foot-grid address { font-style: normal; color: var(--muted); }
.foot-big { font-size: clamp(3.5rem, 15vw, 14rem); font-weight: 800; letter-spacing: -.06em; line-height: .8; margin-top: 4rem; color: transparent; -webkit-text-stroke: 1px var(--border); user-select: none; white-space: nowrap; overflow: hidden; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.foot-bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot-bottom a:hover { color: var(--fg); }

/* 404 */
.center-page { min-height: 90svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 2rem) var(--pad) 3rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .fade-in, .js .anim .w > span { opacity: 1 !important; transform: none !important; animation: none !important; }
  .marquee-track { animation: none !important; }
}
