/* RealRewards
   The brand's near-black navy for the hero, article tops and footer; bright white and soft
   cool-gray pages for reading. Gold is for action. Radius set: 20px surfaces and photos,
   full pill for controls. Spacing unit: 8px. */

:root {
  --navy-950: #05080F;
  --navy-900: #0A101C;
  --navy-850: #0E1626;
  --navy-800: #141D30;
  --navy-700: #1C2740;
  --tint-50: #F6F7FA;
  --tint-100: #ECEFF4;
  --tint-200: #DDE2EA;
  --paper: #FFFFFF;
  --text: #0A101C;
  --text-2: #56627A;
  --on-dark: #F2F0EA;
  --on-dark-2: rgba(242, 240, 234, .72);
  --gold-200: #F7E2AE;
  --gold-300: #F0D089;
  --gold-400: #D4A84B;
  --gold-600: #A67C2A;
  --gold-700: #8A6519;
  --gold-50: #FBF4E4;
  --teal-400: #2DD4BF;
  --teal-700: #0F7F72;
  --gold-fill: linear-gradient(135deg, #E8C26C 0%, #D4A84B 50%, #BB8D37 100%);
  --char-900: #0E1219;
  --hero-bg:
    radial-gradient(55% 65% at 85% 4%, rgba(212, 168, 75, .14), transparent 62%),
    radial-gradient(65% 60% at 50% 42%, rgba(255, 255, 255, .075), transparent 70%),
    radial-gradient(45% 55% at 5% 100%, rgba(150, 175, 210, .10), transparent 62%),
    linear-gradient(165deg, #0E1219 0%, #161B24 55%, #1E242F 100%);
  --dark-bg: var(--hero-bg);
  --light-bg:
    radial-gradient(50% 120% at 92% 0%, rgba(212, 168, 75, .16), transparent 60%),
    #F7F8FB;
  --r: 20px;
  --pill: 999px;
  --wrap: 1200px;
  --gutter: 20px;
  --header-h: 92px;
  --shadow-md: 0 2px 4px rgba(5, 8, 15, .05), 0 16px 40px rgba(5, 8, 15, .10);
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Onest", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 108px; background: var(--char-900); }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a, button, input, textarea, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-400); color: var(--navy-950); padding: 10px 16px; border-radius: var(--pill); font-weight: 600; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: var(--pill); font: 600 16px/1 var(--font-body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, filter .2s; }
.btn:active { transform: scale(.96); }
.btn .ico { width: 18px; height: 18px; }
.btn-gold { background: var(--gold-fill); color: var(--navy-950); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 22px rgba(201,154,62,.3); }
.btn-gold:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 30px rgba(201,154,62,.42); }
.btn-dark { background: var(--navy-900); color: var(--on-dark); }
.btn-dark:hover { background: var(--navy-700); }
.btn-line { background: var(--paper); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--tint-200); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--gold-600); color: var(--gold-700); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn[data-state="loading"] { pointer-events: none; }
.btn[data-state="loading"] .btn-label { opacity: 0; }
.btn[data-state="loading"]::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn[data-state="done"] { background: var(--teal-400); color: var(--navy-950); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-700); text-decoration: none; min-height: 44px; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Header: logo left, menu centered ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.site-header .brand, .site-header .nav-links, .site-header .nav-links > a, .site-header .drop-trigger, .site-header .menu-btn { transition: color .3s, background-color .3s, border-color .3s; }
.site-header.open { background: var(--char-900); }
html.light-top { background: #FFFFFF; }
/* Over light page heads the header is transparent with dark text until the page scrolls */
.site-header.light:not(.scrolled):not(.open) .brand { color: var(--text); }
.site-header.light:not(.scrolled):not(.open) .brand b { color: var(--gold-600); }
.site-header.light:not(.scrolled):not(.open) .brand img { box-shadow: none; }
.site-header.light:not(.scrolled):not(.open) .nav-links { background: rgba(255,255,255,.7); border-color: var(--tint-200); }
.site-header.light:not(.scrolled):not(.open) .nav-links > a,
.site-header.light:not(.scrolled):not(.open) .nav-links .drop-trigger { color: var(--text-2); }
.site-header.light:not(.scrolled):not(.open) .nav-links > a:hover,
.site-header.light:not(.scrolled):not(.open) .nav-links .drop-trigger:hover,
.site-header.light:not(.scrolled):not(.open) .nav-links > a[aria-current="page"] { color: var(--text); background: var(--tint-100); }
.site-header.light:not(.scrolled):not(.open) .menu-btn { background: #fff; border-color: var(--tint-200); color: var(--text); }
.site-header.scrolled { background: rgba(14, 18, 25, .86); backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px); box-shadow: 0 1px 0 rgba(242,240,234,.07); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--header-h); }
/* Logo and Explore button sit a little inside the hero photos' edges, closer to the menu bar. */
@media (min-width: 1000px) { .nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 0 clamp(12px, 2.6vw, 44px); } }
.nav-end { justify-self: end; display: flex; align-items: center; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 48px; text-decoration: none; color: var(--on-dark); font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; }
.brand span { display: block; padding-top: 1px; white-space: nowrap; }
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand img { width: 40px; height: 40px; border-radius: 11px; }
  .nav-end { gap: 6px; }
  .explore-drop .btn { height: 44px; min-height: 44px; padding: 0 14px; gap: 4px; }
  .menu-btn { width: 44px; height: 44px; }
}
/* Small phones: tighter logo, then just the mark, so it never runs under the Cards button. */
@media (max-width: 374px) {
  .site-header .brand { font-size: 17px; gap: 8px; }
  .site-header .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .explore-drop .btn { padding: 0 12px; }
}
@media (max-width: 339px) { .site-header .brand span { display: none; } }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(240, 208, 137, .3); }
.brand b { color: var(--gold-300); font-weight: 700; }
.nav-links { display: none; align-items: center; gap: 2px; height: 48px; padding: 3px; border-radius: var(--pill); background: rgba(242,240,234,.05); border: 1px solid rgba(242,240,234,.08); }
.nav-links > a, .nav-links .drop-trigger { color: var(--on-dark-2); text-decoration: none; font: 500 15px/1 var(--font-body); padding: 0 18px; border-radius: var(--pill); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 40px; transition: color .15s, background-color .15s; }
.nav-links > a:hover, .nav-links .drop-trigger:hover, .nav-links > a[aria-current="page"] { color: var(--on-dark); background: rgba(242,240,234,.09); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: var(--pill); background: rgba(242,240,234,.08); border: 1px solid rgba(242,240,234,.1); color: var(--on-dark); cursor: pointer; }
.menu-btn .ico { width: 22px; height: 22px; }
@media (min-width: 1000px) { .nav-links { display: flex; } .menu-btn { display: none; } }

/* Topics dropdown: two neat columns, centered under the trigger */
.nav-drop { position: relative; }
.drop-panel { position: absolute; top: calc(100% + 12px); left: 50%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: max-content; padding: 8px; background: #fff; border-radius: var(--r); box-shadow: 0 2px 6px rgba(5,8,15,.06), 0 24px 60px rgba(5,8,15,.24); opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(.98); transform-origin: top center; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-drop.open .drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) { .nav-drop:hover .drop-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.drop-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; min-height: 48px; white-space: nowrap; transition: background-color .15s, color .15s; }
.drop-panel a:hover, .drop-panel a:focus-visible { background: var(--tint-50); }
.drop-panel .cat-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-50); color: var(--gold-700); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.drop-panel a:hover .cat-ico { background: var(--gold-fill); color: var(--navy-950); }
.drop-panel .cat-ico .ico { width: 18px; height: 18px; }
.drop-caret { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-drop.open .drop-caret { transform: rotate(180deg); }
@media (hover: hover) { .nav-drop:hover .drop-caret { transform: rotate(180deg); } }
.drop-panel.right { left: auto; right: 0; grid-template-columns: 1fr; transform: translateY(-6px) scale(.98); transform-origin: top right; }
.nav-drop.open .drop-panel.right { transform: none; }
@media (hover: hover) { .nav-drop:hover .drop-panel.right { transform: none; } }
.drop-panel .ext { margin-left: auto; padding-left: 12px; box-sizing: content-box; width: 14px; height: 14px; opacity: .45; }
.nav-end { gap: 8px; }
.explore-drop .btn { min-height: 48px; height: 48px; padding: 0 22px; font-size: 15px; }
.lbl-sm { display: none; }
@media (max-width: 560px) { .lbl-lg { display: none; } .lbl-sm { display: inline; } .explore-drop .btn { padding: 10px 16px; gap: 6px; } }

/* Mobile menu: big rows for pages, a two-column grid for topics */
.mobile-menu { display: none; padding: 8px 0 32px; }
.site-header.open { height: 100svh; overflow-y: auto; }
html.menu-open { overflow: hidden; }
.mobile-menu.open { display: block; animation: menu-in .3s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mm-links { display: grid; }
.mm-links a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px; color: var(--on-dark); text-decoration: none; font: 600 19px/1 var(--font-display); border-bottom: 1px solid rgba(242,240,234,.08); }
.mm-links a .ico { color: var(--gold-300); width: 18px; height: 18px; }
.mm-label { color: var(--on-dark-2); font-size: 13px; font-weight: 600; padding: 20px 4px 10px; }
.mm-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mm-topics a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(242,240,234,.06); border: 1px solid rgba(242,240,234,.08); color: var(--on-dark); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.2; }
.mm-topics .cat-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,168,75,.15); color: var(--gold-300); flex: none; }
.mm-topics .cat-ico .ico { width: 17px; height: 17px; }
@media (min-width: 1000px) { .mobile-menu, .mobile-menu.open { display: none; } }

/* ---------- Advertiser disclosure: a small, quiet link + popup ---------- */
.disclosure-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 2px; border: 0; background: none; font: 500 12px/1 var(--font-body); letter-spacing: .01em; cursor: pointer; color: var(--on-dark-2); opacity: .8; transition: opacity .2s, color .2s; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.disclosure-btn:hover { opacity: 1; color: var(--on-dark); text-decoration-color: currentColor; }
.disclosure-btn .ico { width: 14px; height: 14px; }
.disclosure-btn.on-light { color: var(--text-2); }
.disclosure-btn.on-light:hover { color: var(--text); }
.top-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; min-height: 36px; margin-bottom: 14px; }
.top-row .crumbs { flex: 1 1 auto; min-width: 0; }
.disclosure-btn { white-space: nowrap; }
.top-row .crumbs { margin: 0; }

dialog.modal { width: min(540px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 40px 100px rgba(5,8,15,.45); overflow: auto; }
dialog.modal::backdrop { background: rgba(5,8,15,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .3s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.modal-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tint-50); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; transition: background-color .15s; }
.modal-close:hover { background: var(--tint-100); }
.modal-body { padding: 14px 24px 26px; color: var(--text-2); font-size: 15px; line-height: 1.65; display: grid; gap: 12px; }
.modal-body a { color: var(--gold-700); font-weight: 600; }

/* ---------- Home hero: exactly one screen, photos framing the buttons ---------- */
.hero { position: relative; background: var(--hero-bg); color: var(--on-dark); margin-top: calc(var(--header-h) * -1); height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(242,240,234,.13) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.hero-disclosure { display: flex; justify-content: center; margin-bottom: clamp(10px, 2.2svh, 22px); }
.hero-disclosure .disclosure-btn { font-size: clamp(12px, 3.3vw, 14px); }
.hero-disclosure .disclosure-btn .ico { width: 1.15em; height: 1.15em; }
/* Wide screens: pinned to the top center of the hero */
@media (min-width: 1200px) {
  .hero-disclosure { position: absolute; z-index: 3; top: calc(var(--header-h) + 6px); left: 0; right: 0; margin: 0; pointer-events: none; }
  .hero-disclosure .disclosure-btn { pointer-events: auto; font-size: 12px; }
}
.hero-grid { height: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; display: grid; align-items: center; padding: var(--header-h) var(--gutter) 24px; }
@media (min-width: 1200px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); gap: 40px; } }
.hero-center { text-align: center; }
.hero h1 { font-size: clamp(42px, min(6.2vw, 10svh), 84px); font-weight: 800; letter-spacing: -0.045em; line-height: .98; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .line-2 > span { background: linear-gradient(100deg, #E9C56F 0%, #D4A84B 55%, #BE913A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pills { margin: clamp(28px, 5.5svh, 56px) auto 0; width: 100%; max-width: 760px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .pills { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.pill { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 7px 18px 7px 7px; border-radius: var(--pill); text-decoration: none; color: var(--on-dark); font: 600 16px/1.2 var(--font-display); text-align: left; background: rgba(242,240,234,.06); border: 1px solid rgba(242,240,234,.14); transition: background-color .25s var(--ease), color .25s, transform .25s var(--ease), border-color .25s; }
.pill .cat-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,168,75,.14); color: var(--gold-300); flex: none; transition: background .25s, color .25s; }
.pill .cat-ico .ico { width: 22px; height: 22px; }
.pill .ext { margin-left: auto; width: 16px; height: 16px; opacity: .5; transition: transform .25s var(--ease), opacity .25s; }
.pill:hover { background: var(--on-dark); color: var(--navy-950); border-color: var(--on-dark); transform: translateY(-3px); }
.pill:hover .cat-ico { background: var(--gold-fill); color: var(--navy-950); }
.pill:hover .ext { opacity: 1; transform: translate(2px, -2px); }
.pill:active { transform: translateY(-1px) scale(.98); }
@media (max-width: 420px) { .pill { font-size: 15px; min-height: 54px; gap: 9px; padding-right: 10px; } .pill .cat-ico { width: 38px; height: 38px; } .pill .ext { display: none; } }

/* Side photos: the four newest guides, two per side, staggered diagonally in the outer margins */
.hero-side { display: none; }
@media (min-width: 1200px) and (min-height: 620px) {
  .hero-side { display: flex; flex-direction: column; justify-content: center; gap: 3svh; height: 100%; padding-bottom: 2svh; }
  .hero-side.left { align-items: flex-start; }
  .hero-side.right { align-items: flex-end; }
  .hero-side.left .float:last-child { align-self: flex-end; }
  .hero-side.right .float:last-child { align-self: flex-start; }
}
.hero-photos { display: none; }
@media (max-width: 1199px) {
  .hero-photos { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 3vw, 18px); margin-bottom: clamp(20px, 3.6svh, 36px); }
  .hero-photos span { display: block; overflow: hidden; background: var(--navy-800); box-shadow: 0 0 0 1px rgba(240,208,137,.25); }
  .hero-photos img { width: 100%; height: 100%; object-fit: cover; }
  .hero-photos .m-arch { height: min(21svh, 190px); aspect-ratio: 3 / 4; border-radius: 200px 200px 18px 18px; }
  .hero-photos .m-circle { height: min(12svh, 112px); aspect-ratio: 1; border-radius: 50%; margin-bottom: 6%; }
}
@media (max-width: 719px) {
  .hero h1 { font-size: clamp(40px, 12.4vw, 58px); }
  .pills { margin-top: clamp(24px, 4svh, 36px); }
}
.hero-side .float { animation: drift 7s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes drift { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
.hero-side a { display: block; overflow: hidden; background: var(--navy-800); box-shadow: 0 0 0 1px rgba(240,208,137,.25); }
.hero-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero-side a:hover img { transform: scale(1.06); }
.f-arch { width: min(180px, 100%, 25svh); aspect-ratio: 3 / 4; border-radius: 200px 200px var(--r) var(--r); }
.f-soft { width: min(180px, 100%, 25svh); aspect-ratio: 3 / 4; border-radius: 72px var(--r) 72px var(--r); }
.f-circle { width: min(120px, 66%, 16svh); aspect-ratio: 1; border-radius: 50%; }

/* ---------- Page heads (guides, topics, contact, about, legal): the hero's charcoal band ---------- */
.page-head { position: relative; background: var(--hero-bg); color: var(--on-dark); margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); overflow: hidden; isolation: isolate; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .45; background-image: radial-gradient(rgba(242,240,234,.13) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(60% 80% at 70% 30%, #000, transparent); -webkit-mask-image: radial-gradient(60% 80% at 70% 30%, #000, transparent); }
.page-head .wrap { padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 768px) { .page-head .wrap { padding-top: 28px; padding-bottom: 84px; } }
.page-head .top-row { margin-bottom: 36px; }
/* Centered page heads: breadcrumb centered, the disclosure link tucked to the right on wide screens */
.wrap.centered { text-align: center; }
.wrap.centered .top-row { position: relative; justify-content: center; }
.wrap.centered .crumbs { justify-content: center; flex: 0 1 auto; }
.wrap.centered h1, .wrap.centered p.lead { margin-left: auto; margin-right: auto; }
.wrap.centered .actions { justify-content: center; }
.wrap.centered .cat-ico { margin-left: auto; margin-right: auto; }
.wrap.centered .updated-chip { margin-left: auto; margin-right: auto; }
@media (min-width: 760px) { .wrap.centered .top-row .disclosure-btn { position: absolute; right: 0; top: 0; } }
@media (max-width: 759px) { .wrap.centered .top-row { flex-direction: column; gap: 2px; } }
.filter-row { justify-content: center; }
.page-head h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; max-width: 18ch; }
.page-head p.lead { margin-top: 18px; max-width: 58ch; color: var(--on-dark-2); font-size: 18px; }
.page-head .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-head .cat-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-fill); color: var(--navy-950); margin-bottom: 22px; }
.page-head .cat-ico .ico { width: 28px; height: 28px; }
.page-head .crumbs { color: var(--on-dark-2); }
.page-head .crumbs a:hover { color: var(--gold-300); }
.page-head .updated-chip { background: rgba(242,240,234,.07); border-color: rgba(242,240,234,.14); color: var(--on-dark-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--text-2); }
.crumbs a { color: inherit; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--gold-700); }
.crumbs .sep { opacity: .5; }
.updated-chip { display: inline-flex; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--text-2); background: #fff; border: 1px solid var(--tint-200); padding: 6px 12px; border-radius: var(--pill); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-tint { background: var(--tint-50); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; letter-spacing: -0.045em; }

/* Bento of latest guides */
.bento { display: grid; gap: 16px; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(260px, auto)); gap: 20px; } .bento > :first-child { grid-column: span 2; grid-row: span 2; } }
.tile-story { position: relative; display: flex; align-items: flex-end; min-height: 280px; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--navy-800); isolation: isolate; }
.tile-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.tile-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,8,15,0) 30%, rgba(5,8,15,.9) 100%); }
.tile-story:hover img { transform: scale(1.035); }
.tile-story .body { padding: 22px; display: grid; gap: 10px; }
.tile-story h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; }
.bento > :first-child h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; line-height: 1.08; }
.bento > :first-child .body { padding: 32px; gap: 14px; }
.bento > :first-child p { color: rgba(255,255,255,.85); max-width: 52ch; }
.tile-story .chip { background: rgba(212,168,75,.22); color: var(--gold-200); }
.tile-story .meta { font-size: 13px; color: rgba(255,255,255,.75); }

.chip { display: inline-flex; align-items: center; gap: 6px; justify-self: start; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--gold-700); background: var(--gold-50); padding: 5px 12px; border-radius: var(--pill); text-decoration: none; }
a.chip:hover { background: #F6E8C6; }

/* Article cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); border: 1px solid var(--tint-100); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .8s var(--ease), border-color .8s var(--ease); }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--tint-100); }
.card-media { aspect-ratio: 16 / 10; background: var(--tint-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--text-2); display: flex; gap: 14px; flex-wrap: wrap; }
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Topic tabs */
.tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px; background: var(--paper); border: 1px solid var(--tint-200); border-radius: var(--pill); margin-bottom: 32px; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: none; justify-content: center; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--pill); border: 0; background: none; cursor: pointer; font: 600 15px/1 var(--font-body); color: var(--text-2); transition: color .25s; white-space: nowrap; }
.tab .ico { width: 18px; height: 18px; }
@media (min-width: 1000px) { .tab { flex: 1 1 0; } }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--on-dark); }
.tab[aria-selected="true"] .ico { color: var(--gold-300); }
.tab-indicator { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: var(--pill); background: var(--navy-900); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) .card { animation: rise .55s var(--ease-out) backwards; }
.tab-panel:not([hidden]) .card:nth-child(2) { animation-delay: .06s; }
.tab-panel:not([hidden]) .card:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.panel-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 44px; }
.pg-nums { display: flex; align-items: center; gap: 4px; }
.pg-num { min-width: 44px; height: 44px; padding: 0 6px; border-radius: var(--pill); display: inline-grid; place-items: center; font: 600 15px/1 var(--font-body); color: var(--text-2); text-decoration: none; transition: background-color .15s, color .15s; }
.pg-num:hover { background: var(--tint-100); color: var(--text); }
.pg-num[aria-current="page"] { background: var(--navy-900); color: var(--on-dark); }
.pg-gap { color: var(--text-2); padding: 0 2px; }
.empty-note { padding: 32px; border-radius: var(--r); background: var(--paper); border: 1px dashed var(--tint-200); color: var(--text-2); text-align: center; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { min-height: 44px; padding: 10px 18px; border-radius: var(--pill); border: 1.5px solid var(--tint-200); background: var(--paper); font: 600 15px/1 var(--font-body); color: var(--text-2); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: border-color .2s, color .2s, background-color .2s; }
.filter:hover { border-color: var(--gold-600); color: var(--gold-700); }
.filter[aria-pressed="true"], .filter[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }

.form-status { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--on-dark-2); }
.form-status.ok { color: var(--teal-400); }
.form-status.err { color: #FB9AA8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--char-900); color: var(--on-dark-2); font-size: 15px; }
.footer-top { display: grid; gap: 28px 24px; padding: 44px 0 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.6fr 1fr .8fr .8fr; gap: 40px; padding: 48px 0 32px; } .footer-brand { grid-column: auto; } }
.footer-brand .brand img { width: 48px; height: 48px; border-radius: 13px; }
.footer-top h3 { font: 600 13px/1 var(--font-body); color: var(--on-dark); margin: 4px 0 8px; letter-spacing: .02em; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; }
.footer-top ul a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; text-decoration: none; color: var(--on-dark-2); transition: color .15s; }
.footer-top ul a:hover { color: var(--gold-300); }
@media (max-width: 899px) {
  .footer-top { text-align: center; }
  .footer-brand { justify-items: center; }
  .footer-brand .brand { justify-self: center; }
  .footer-top ul { justify-items: center; }
  .footer-brand .aff { margin-left: auto; margin-right: auto; }
  /* Phones: Topics (6 links) on the left, Company over Legal (3 + 3) on the right, so both columns end together. */
  .footer-top { row-gap: 24px; }
  .footer-top > div:nth-child(2) { grid-row: span 2; }
  .footer-top ul a { min-height: 40px; }
}
.footer-bottom { border-top: 1px solid rgba(242,240,234,.08); padding: 18px 0 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 13px; }
.footer-bottom .copy { color: rgba(242,240,234,.5); }

/* ---------- Article: title and photo both visible on first load ---------- */
.article-head { background: var(--dark-bg); color: var(--on-dark); margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.article-top { display: grid; gap: 24px; padding-top: 16px; padding-bottom: 40px; }
@media (min-width: 1000px) { .article-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 20px; padding-bottom: 64px; } }
.article-top .top-row { grid-column: 1 / -1; margin-bottom: 0; }
.article-head .crumbs { color: var(--on-dark-2); }
.article-head .crumbs a:hover { color: var(--gold-300); }
.article-head .chip { background: rgba(212,168,75,.16); color: var(--gold-200); min-height: 36px; padding: 0 14px; }
.article-head h1 { margin-top: 16px; font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.article-head .lead { margin-top: 16px; font-size: clamp(16px, 1.4vw, 19px); color: var(--on-dark-2); max-width: 56ch; }
.byline { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; color: var(--on-dark-2); }
.byline .who { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); font-weight: 600; }
.byline .who img { width: 30px; height: 30px; border-radius: 8px; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.article-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-800); box-shadow: 0 0 0 1px rgba(240,208,137,.18); }
@media (min-width: 1000px) { .article-photo { aspect-ratio: 4 / 3; max-height: calc(100svh - var(--header-h) - 140px); width: 100%; } }
.article-photo img { width: 100%; height: 100%; object-fit: cover; }
.topic-title { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 18px); }
.topic-head .cat-ico { flex: none; width: clamp(42px, 4vw, 54px); height: clamp(42px, 4vw, 54px); border-radius: 50%; display: grid; place-items: center; background: var(--gold-fill); color: var(--navy-950); }
.topic-head .cat-ico .ico { width: 45%; height: 45%; }
.topic-head h1 { margin-top: 0; }
.topic-count { margin-top: 14px; font-size: 14px; color: var(--on-dark-2); }
.topic-head .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 599px) {
  .article-top { gap: 18px; padding-bottom: 32px; }
  .article-head h1 { font-size: clamp(28px, 7.6vw, 34px); margin-top: 12px; }
  .article-head .lead { font-size: 16px; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .byline { margin-top: 16px; gap: 6px 14px; font-size: 13px; }
}

.article-layout { display: grid; gap: 48px; padding-top: 56px; padding-bottom: 80px; max-width: calc(1080px + var(--gutter) * 2); }
@media (min-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.article-layout > * { min-width: 0; }
.aside { display: none; }
@media (min-width: 1040px) {
  .aside { display: block; grid-column: 2; grid-row: 1 / span 2; } /* runs the full article, FAQ included */
  .aside-inner { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; max-height: calc(100svh - var(--header-h) - 48px); }
  .aside-inner .toc { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .aside-inner .toc ol { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
  .aside-inner .aside-offer { flex: none; }
}
@media (min-width: 1040px) and (max-height: 760px) { .aside-offer p { display: none; } .aside-offer { padding: 18px; } .aside-offer h2 { margin-top: 10px; font-size: 18px; } }
.toc { padding: 20px; border-radius: var(--r); background: var(--tint-50); }
.toc h2 { font: 600 14px/1 var(--font-body); color: var(--text); margin-bottom: 10px; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.toc a { display: block; padding: 8px 10px 8px 12px; border-left: 2px solid var(--tint-200); color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.4; transition: color .15s, border-color .15s; }
.toc a:hover, .toc a.active { color: var(--text); border-color: var(--gold-400); }
.toc-mobile { margin-bottom: 32px; border: 1px solid var(--tint-200); border-radius: var(--r); background: var(--tint-50); }
.toc-mobile summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 18px; font-weight: 600; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary .ico { transition: transform .25s var(--ease); color: var(--gold-700); }
.toc-mobile[open] summary .ico { transform: rotate(180deg); }
.toc-mobile ol { list-style: none; margin: 0; padding: 0 10px 12px; max-height: 50svh; overflow-y: auto; }
.toc-mobile a { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--text-2); font-size: 15px; line-height: 1.35; }
.toc-mobile a:hover { background: #fff; color: var(--text); }
@media (min-width: 1040px) { .toc-mobile { display: none; } }
.aside-offer { padding: 24px; border-radius: var(--r); background: var(--dark-bg); color: var(--on-dark); }
.aside-offer .cat-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,168,75,.15); color: var(--gold-300); }
.aside-offer h2 { margin-top: 16px; font-size: 21px; }
.aside-offer p { margin-top: 8px; font-size: 14px; color: var(--on-dark-2); }
.aside-offer .btn { margin-top: 18px; width: 100%; }

.takeaways { padding: 26px 26px 26px 28px; border-radius: var(--r); background: linear-gradient(180deg, #FFF9EC, #FCF2DC); border: 1px solid #F3E2B8; margin-bottom: 40px; }
.takeaways h2 { font-size: 18px; letter-spacing: -0.01em; }
.takeaways ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.takeaways li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; line-height: 1.55; }
.takeaways li .ico { color: var(--gold-700); margin-top: 3px; }

.prose { font-size: 18px; line-height: 1.75; color: #1B2335; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(25px, 2.7vw, 32px); letter-spacing: -0.03em; line-height: 1.2; margin-top: 2em; color: var(--text); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin-top: 1.6em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold-600); }
.prose strong { color: var(--text); }
.prose a { color: var(--gold-700); }
.prose a.btn { text-decoration: none; }
.prose a.btn-gold { color: var(--navy-950); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold-400); color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; border-radius: 14px; border: 1px solid var(--tint-100); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--tint-100); vertical-align: top; min-width: 140px; }
.prose thead th { background: var(--tint-50); font-weight: 600; color: var(--text); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint-100); }

.offer-box { margin: 2.2em 0 !important; padding: 28px; border-radius: var(--r); background: var(--dark-bg); color: var(--on-dark); display: grid; gap: 18px; }
@media (min-width: 640px) { .offer-box { grid-template-columns: auto 1fr auto; align-items: center; } }
.offer-box .cat-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(212,168,75,.15); color: var(--gold-300); }
.offer-box .cat-ico .ico { width: 26px; height: 26px; }
.offer-box strong { display: block; font: 700 19px/1.25 var(--font-display); color: var(--on-dark); }
.offer-box div > span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--on-dark-2); }

.faq { margin-top: 56px; }
.faq > h2 { font-size: clamp(25px, 2.7vw, 32px); letter-spacing: -0.03em; margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--tint-100); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font: 600 18px/1.35 var(--font-display); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--gold-700); transition: transform .25s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 68ch; line-height: 1.7; }
.faq details[open] p { animation: rise .35s var(--ease-out); }
.article-after { min-width: 0; }
@media (min-width: 1040px) { .article-after { grid-column: 1; grid-row: 2; } }
.article-after .faq { margin-top: 8px; }
.article-end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--tint-100); font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 96px; }
@media (min-width: 900px) { .contact-wrap { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; padding-top: 72px; } }
.contact-points { display: grid; gap: 14px; }
.contact-point { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--tint-100); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
a.contact-point:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-point .cat-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-700); flex: none; }
.contact-point strong { display: block; font: 600 17px/1.3 var(--font-display); }
.contact-point span { display: block; margin-top: 4px; color: var(--text-2); font-size: 15px; }
.form-card { padding: 32px; border-radius: 28px; background: var(--paper); border: 1px solid var(--tint-100); box-shadow: var(--shadow-md); display: grid; gap: 18px; }
@media (min-width: 900px) { .form-card { padding: 40px; } }
.form-card h2 { font-size: 26px; letter-spacing: -0.025em; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 14px 18px; border-radius: 14px; border: 1.5px solid #E6E9EF; background: #fff; font: 400 16px/1.5 var(--font-body); color: var(--text); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-600); background: #fff; box-shadow: 0 0 0 4px rgba(212,168,75,.16); }
.form-card .form-status { color: var(--text-2); margin-top: 0; }
.form-card .form-status.ok { color: var(--teal-700); }
.form-card .form-status.err { color: #B4233A; }
.form-card .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }

/* ---------- Legal + about ---------- */
.doc-wrap { padding-top: 48px; padding-bottom: 96px; }
@media (min-width: 768px) { .doc-wrap { padding-top: 64px; } }
.doc-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.doc-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--pill); text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 15px; border: 1.5px solid var(--tint-200); transition: background-color .15s, color .15s, border-color .15s; }
.doc-nav a:hover { border-color: var(--gold-600); color: var(--gold-700); }
.doc-nav a[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }
.doc-wrap .prose { max-width: none; }
.wrap.narrow { max-width: calc(760px + var(--gutter) * 2); }

.notfound { margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--hero-bg); color: var(--on-dark); }
.notfound h1 { font-weight: 800; letter-spacing: -0.045em; }
.notfound p { margin: 14px auto 28px; color: var(--on-dark-2); max-width: 44ch; font-size: 18px; }
.notfound h1 { font-size: clamp(34px, 5.4vw, 60px); }
.lost-anim { width: min(520px, 100%); aspect-ratio: 4 / 3; margin: 0 auto 8px; background: radial-gradient(closest-side, rgba(242,240,234,.09), rgba(242,240,234,.03) 60%, transparent); border-radius: 50%; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.notfound .btn-line { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(242,240,234,.3); }
.notfound .btn-line:hover { color: var(--gold-300); box-shadow: inset 0 0 0 1.5px var(--gold-300); }
.footer-brand .aff { margin-top: 54px; max-width: 320px; font-size: 12px; line-height: 1.6; color: rgba(242,240,234,.55); }
.footer-brand .aff a { color: var(--on-dark-2); text-decoration: underline; text-underline-offset: 2px; }
.footer-brand .aff a:hover { color: var(--gold-300); }
@media (max-width: 899px) { .footer-brand .aff { margin-top: 14px; } }

/* ---------- Motion ---------- */
img.fade { opacity: 0; transition: opacity .6s var(--ease), transform 1.4s var(--ease); }
img.fade.loaded { opacity: 1; }

/* Hero intro: hidden in CSS from the start, played once fonts are ready. Keyframe animations
   (not transitions) so the buttons' own hover timing is untouched once the intro ends. */
.js .hero h1 .line > span { transform: translateY(105%); }
.js .hero .pill, .js .hero .hero-disclosure, .js .hero-side a, .js .hero-photos span { opacity: 0; }
.js.ready .hero h1 .line > span { transform: none; animation: line-up 1s var(--ease-out) backwards; }
.js.ready .hero h1 .line-2 > span { animation-delay: .12s; }
.js.ready .hero .pill { opacity: 1; animation: rise .65s var(--ease-out) backwards; animation-delay: calc(.35s + var(--i) * .06s); }
.js.ready .hero .hero-disclosure { opacity: 1; animation: fade .8s ease backwards; animation-delay: .7s; }
.js.ready .hero-side a { opacity: 1; animation: pop-in 1.2s var(--ease-out) backwards; animation-delay: calc(.5s + var(--i) * .12s); }
.js.ready .hero-photos span { opacity: 1; animation: pop-in 1s var(--ease-out) backwards; animation-delay: calc(.15s + var(--i) * .1s); }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* Homepage photo tiles open from alternating sides as they scroll in */
.js .wipe { clip-path: var(--from); transition: clip-path 1.1s var(--ease-out); }
.js .wipe.in { clip-path: inset(0 0 0 0 round var(--r)); }
.wipe[data-dir="up"] { --from: inset(100% 0 0 0 round var(--r)); }
.wipe[data-dir="down"] { --from: inset(0 0 100% 0 round var(--r)); }
.wipe[data-dir="left"] { --from: inset(0 100% 0 0 round var(--r)); }
.wipe[data-dir="right"] { --from: inset(0 0 0 100% round var(--r)); }
.wipe[data-dir="iris"] { --from: inset(50% 50% 50% 50% round var(--r)); }
.js .rise:not(.in) { opacity: 0; }
.js .rise.in { animation: rise .7s var(--ease-out) backwards; animation-delay: var(--stagger, 0s); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .hero h1 .line > span, .js .hero .pill, .js .hero .hero-disclosure, .js .hero-side a, .js .hero-photos span, .js .rise:not(.in) { opacity: 1 !important; transform: none !important; }
  .js .wipe { clip-path: none !important; }
  img.fade { opacity: 1; }
}
