/* =====================================================================
   Harpenden Design — interior pages
   Self-contained. Same design system as the homepage (home.css): white
   field, DM Sans headings + Hanken Grotesk body, yellow CTAs, glass pill
   nav, solid ink footer. No video header on interior pages.
   ===================================================================== */

:root {
  --paper:      #FFFFFF;
  --paper-warm: #F6EEE2;
  --ink:        #2B2630;
  --ink-soft:   #A6A09B;
  --muted:      #716B66;
  --coral:      #EC6240;
  --ink-grad:   linear-gradient(130deg, #1B1915 0%, #595249 100%);
  --line:       rgba(43, 38, 48, 0.12);
  --card:       #FFFFFF;
  --serif:      "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display:    "DM Sans", "Hanken Grotesk", system-ui, sans-serif;
  --sans:       "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cta:        #FFC83D;
  --maxw:       1200px;
  --gutter:     clamp(20px, 5vw, 56px);
  --r:          18px;
  --r-lg:       28px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:     0 30px 60px -28px rgba(60, 40, 30, 0.35);
  --shadow-sm:  0 16px 30px -18px rgba(60, 40, 30, 0.3);
  /* compatibility aliases for inline var() in the markup */
  --text:       var(--ink);
  --accent:     var(--cta);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background-color: var(--paper);
  font-size: clamp(16px, 1.04vw, 18px); line-height: 1.6; letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #1B1915; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 5.5vw, 76px); position: relative; }
.section--tight { padding-block: clamp(32px, 4.2vw, 60px); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.display { font-family: var(--display); font-weight: 800; font-optical-sizing: auto; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 600; letter-spacing: -0.018em; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.28rem); color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.balance { text-wrap: balance; }
.muted { color: var(--muted); }
.mt-s { margin-top: 10px; }
.mt-l { margin-top: clamp(26px, 3.5vw, 44px); }
.max-46 { max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 1.6em; border-radius: 999px; font-family: var(--sans);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent;
  background: transparent; -webkit-appearance: none; appearance: none;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--cta); color: #1B1915; box-shadow: 0 10px 26px -8px rgba(255, 200, 61, 0.85), 0 2px 6px rgba(27, 25, 21, 0.12); }
.btn--primary:hover { background: #FFD45E; transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(255, 200, 61, 0.95), 0 3px 8px rgba(27, 25, 21, 0.14); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,0.5); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.arw { display: inline-block; }

/* ---------- Header / glass pill nav ---------- */
.site-header { position: fixed; top: clamp(10px, 1.6vw, 20px); left: 0; right: 0; z-index: 100; padding-inline: var(--gutter); transition: transform 0.5s var(--ease), opacity 0.45s var(--ease); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-radius: 999px; padding: 10px 12px 10px 24px;
  background: transparent; border: 1px solid transparent; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.site-header.is-stuck .nav {
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow:
    0 14px 36px -16px rgba(60, 40, 30, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -10px 24px -12px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
@supports (backdrop-filter: url(#glassWarp)) {
  .site-header.is-stuck .nav { background: rgba(255, 255, 255, 0.26); backdrop-filter: url(#glassWarp); }
}
.brand { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 0.4em; }
.brand .dot { width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--cta); display: inline-block; }
.brand .out { font-style: normal; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.nav-links a { font-size: 0.96rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 0.5em; transition: color 0.25s var(--ease); }
.nav-links a .nd { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--ink-grad); opacity: 0.9; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 0.7em 1.3em; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }
.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    position: fixed; inset: 84px 16px auto 16px; z-index: 99;
    background: #fff; border-radius: var(--r); box-shadow: var(--shadow);
    padding: 12px; flex-direction: column; gap: 2px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 500; }
  .mobile-menu a:hover { background: var(--paper-warm); }
  .mobile-menu .btn { margin-top: 8px; justify-content: center; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* ---------- Page hero (text only, clears the fixed nav) ---------- */
.page-hero { padding-top: clamp(116px, 15vw, 164px); padding-bottom: clamp(26px, 4vw, 52px); position: relative; }
.page-hero .display { max-width: 20ch; }
.page-hero .lead { margin-top: clamp(16px, 2vw, 22px); max-width: 52ch; }
.breadcrumb { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.01em; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--sans); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.sec-head { max-width: 720px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 34px); }

/* ---------- Layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- Text link with arrow ---------- */
.tlink { font-family: var(--sans); font-weight: 600; display: inline-flex; align-items: center; gap: 0.5em; background: var(--ink-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tlink:hover { opacity: 0.7; }
.accent { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.accent:hover { color: var(--ink); }

/* ---------- Services: numbered rows ---------- */
.caps { display: grid; border-top: 1px solid var(--line); }
.cap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 34px); padding: clamp(22px, 2.6vw, 32px) 4px; border-bottom: 1px solid var(--line); transition: padding-left 0.3s var(--ease); }
.cap:hover { padding-left: 14px; }
.cap .num { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink-soft); }
.cap .body h3 { font-size: clamp(1.3rem, 1.9vw, 1.65rem); color: var(--ink); }
.cap .body p { color: var(--muted); margin-top: 6px; max-width: 56ch; font-size: 0.98rem; }
.cap .go { font-size: 1.3rem; color: var(--ink); transition: transform 0.3s var(--ease); }
.cap:hover .go { transform: translateX(6px); }

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 22px); }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 34px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.tier.featured { border-color: rgba(27, 25, 21, 0.22); box-shadow: var(--shadow); }
.tier .badge { font-family: var(--sans); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tier.featured .badge { color: #1B1915; background: var(--cta); padding: 3px 11px; border-radius: 999px; width: fit-content; }
.tier h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); margin-top: 14px; color: var(--ink); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; }
.tier li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.96rem; line-height: 1.45; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.tier .btn { margin-top: auto; }

/* ---------- Feature list ---------- */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 30px) clamp(26px, 3vw, 40px); margin-top: 18px; }
@media (max-width: 620px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list--3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 720px) { .feature-list--3 { grid-template-columns: 1fr; } }
.feature-list .item h3 { font-size: 1.1rem; color: var(--ink); }
.feature-list .item p { color: var(--muted); margin-top: 6px; font-size: 0.96rem; line-height: 1.5; }

/* ---------- Pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.pill.on { color: #1B1915; border-color: rgba(27, 25, 21, 0.2); background: rgba(255, 200, 61, 0.2); }

/* ---------- Website mockup stack ---------- */
.stack { position: relative; min-height: clamp(300px, 38vw, 430px); }
.stack img { position: absolute; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); width: 68%; }
.stack .s1 { left: 0; top: 0; z-index: 4; }
.stack .s2 { left: 11%; top: 13%; z-index: 3; opacity: 0.97; }
.stack .s3 { left: 22%; top: 27%; z-index: 2; opacity: 0.9; }
.stack .s4 { left: 33%; top: 41%; z-index: 1; opacity: 0.82; }

/* ---------- Photo gallery ---------- */
.photo-gallery { columns: 3; column-gap: clamp(12px, 1.4vw, 18px); }
@media (max-width: 820px) { .photo-gallery { columns: 2; } }
@media (max-width: 520px) { .photo-gallery { columns: 1; } }
.photo-gallery img, .photo-gallery .ph { width: 100%; border-radius: 12px; margin-bottom: clamp(12px, 1.4vw, 18px); break-inside: avoid; box-shadow: var(--shadow-sm); }

/* ---------- Work grid + placeholders ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 24px); }
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { display: block; }
.work-card .frame { position: relative; border-radius: 14px; overflow: hidden; }
.work-card:hover .frame { box-shadow: var(--shadow); }
.ph { position: relative; background: linear-gradient(135deg, #F1ECE4, #E3DACE); display: grid; place-items: center; color: var(--muted); border-radius: inherit; overflow: hidden; }
.ph::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(43,38,48,0.04) 0 10px, transparent 10px 20px); pointer-events: none; }
.ph-label { position: relative; z-index: 1; font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ph--corner { border-radius: 18px; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.work-card .overlay { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: linear-gradient(to top, rgba(20, 16, 13, 0.82), transparent); color: #fff; opacity: 0; transition: opacity 0.35s var(--ease); }
.work-card:hover .overlay { opacity: 1; }
.work-card .result { font-size: 0.85rem; font-weight: 600; }
.work-card .meta { display: flex; flex-direction: column; margin-top: 12px; }
.work-card .meta .t { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.work-card .meta .s { color: var(--muted); font-size: 0.86rem; }
.work-card .tags { color: var(--ink-soft); font-size: 0.8rem; margin-top: 4px; }

/* ---------- Case study: meta + stats ---------- */
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); }
.hero-meta .item .k { font-family: var(--sans); font-weight: 600; color: var(--ink); }
.hero-meta .item .l { color: var(--muted); margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); border-top: 1px solid var(--line); padding-top: clamp(26px, 3vw, 40px); }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat .k { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ink); letter-spacing: -0.02em; }
.stat .l { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- Prose ---------- */
.prose h2 { font-family: var(--display); font-size: clamp(1.3rem, 1.9vw, 1.7rem); margin: 30px 0 10px; color: var(--ink); }
.prose > h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 12px; }
.prose ul { color: var(--muted); margin: 0 0 14px 1.1em; }
.prose li { margin-bottom: 6px; }

/* ---------- Contact form ---------- */
.enquiry { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 820px) { .enquiry { grid-template-columns: 1fr; gap: 32px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.field input, .field select, .field textarea { font-family: var(--sans); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(27, 25, 21, 0.5); box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.3); }
.chip-set { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease); }
.chip input:checked + span { color: #1B1915; border-color: rgba(27, 25, 21, 0.25); background: var(--cta); }
.form-note { color: var(--ink-soft); font-size: 0.85rem; margin-top: 14px; }
.form-status { font-size: 0.9rem; }

/* ---------- FAQ (plus marker) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 2px; font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink); letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { opacity: 0.65; }
.faq .plus { flex: none; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--ink); transition: transform 0.3s var(--ease); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { color: var(--muted); max-width: 70ch; padding: 0 2px 24px; font-size: 1rem; line-height: 1.55; }
.faq .answer p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; max-width: 760px; margin-inline: auto; padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.cta-band .display { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer (solid ink) ---------- */
.site-footer { position: relative; margin-top: clamp(30px, 5vw, 70px); padding: clamp(52px, 7vw, 92px) var(--gutter) clamp(32px, 4vw, 48px); background: #15110d; }
.foot-panel { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto; }
.foot-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: clamp(30px, 3.4vw, 48px); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.foot-id { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.foot-id .brand { font-size: 1.6rem; color: #fff; }
.foot-id .brand .out { color: #fff; }
.foot-id .brand .dot { background: var(--cta); }
.foot-id .tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: rgba(255, 255, 255, 0.55); }
.foot-start { flex: 0 0 auto; }
.site-footer .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.site-footer .btn--ghost:hover { color: #1B1915; background: #fff; border-color: #fff; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: clamp(34px, 3.8vw, 56px) 0; }
.foot-main a { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.65rem); color: rgba(255, 255, 255, 0.88); padding: 7px 0; transition: color 0.2s var(--ease); }
.foot-main a:hover { color: #fff; }
.foot-col h4 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); font-weight: 600; margin-bottom: 16px; }
.foot-col a { display: block; color: rgba(255, 255, 255, 0.6); padding: 6px 0; font-size: 0.97rem; transition: color 0.25s var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.foot-bottom p, .foot-bottom a { font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } .foot-head { flex-direction: column; align-items: stretch; } .foot-start { width: 100%; justify-content: center; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cta); color: #1B1915; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(255, 200, 61, 0.85), 0 2px 6px rgba(27, 25, 21, 0.14);
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #FFD45E; transform: translateY(-3px); }
.to-top:focus-visible { outline: 2px solid #1B1915; outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity 0.2s; } .to-top:hover { transform: none; } }
