/* Lasarotta — styles following mercury.DESIGN.md.
   Exception by request: no blue. Mercury's #5266EB / #9CB4E8 are replaced by
   the system's own neutrals (#171721 / #EDEDF3) and lavender-grey #AFB2CE.
   Arcadia is proprietary; Poppins stands in for it (500 -> 500, 400 -> 400). */

:root {
  --surface-dark: #171721;
  --surface-darker: #272735;
  --accent: #AFB2CE;            /* Accent Soft — replaces periwinkle */
  --accent-light: #EDEDF3;      /* Accent Light / Text Inverse */
  --overlay-20: rgb(175 178 206 / .2);
  --overlay-30: rgb(175 178 206 / .3);
  --overlay-10: rgb(175 178 206 / .1);
  --text: #000000;
  --text-inverse: #EDEDF3;
  --text-tertiary: #C3C3CC;
  --muted: #5B5B66;
  --white: #FFFFFF;
  --border: #EBEBEB;
  --border-muted: #F5F5F5;
  --alt: #F5F5F5;

  --font: "Poppins", system-ui, -apple-system, sans-serif;

  --shadow-nav: rgb(86 86 118 / .1) 0 0 6px 0;
  --shadow-hover: rgb(28 28 35 / .02) 0 10px 16px 0, rgb(28 28 35 / .04) 0 6px 10px 0, rgb(28 28 35 / .09) 0 0 3px 0;
  --shadow-elevated: rgb(0 0 0 / .05) 0 0 3px 0, rgb(0 0 0 / .05) 0 8px 12px 0, rgb(0 0 0 / .05) 0 12px 20px 0;

  --gutter: 32px;
  --section-pad: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 500; text-wrap: balance; }
h1 { font-size: 49px; line-height: 54px; }
h2 { font-size: 42px; line-height: 48px; }
h3 { font-size: 16px; line-height: 24px; font-weight: 400; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--surface-dark); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .hero :focus-visible, .dark-section :focus-visible,
.page-head :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-light); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 99;
  background: var(--accent-light); color: var(--surface-dark);
  padding: 12px 20px; border-radius: 40px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Type roles ---------- */
.body-lg { font-size: 21px; line-height: 25px; font-weight: 500; }
.caption {
  display: block; margin: 0 0 12px;
  font-size: 12px; line-height: 17px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.caption--light { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.h-card { font-size: 21px; line-height: 25px; font-weight: 500; margin: 0 0 12px; }
.prose p { max-width: 62ch; }
.prose .body-lg { margin-bottom: 24px; }

/* ---------- Links ---------- */
.link-dark {
  color: var(--text); text-decoration: underline;
  text-decoration-color: rgb(23 23 33 / .3); text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.link-dark:hover { text-decoration-color: var(--surface-dark); }
.link-light {
  color: var(--text-inverse); text-decoration: underline;
  text-decoration-color: rgb(175 178 206 / .5); text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.link-light:hover { text-decoration-color: var(--accent); }
.arrow { display: inline-block; transition: transform .2s ease; }
a:hover > .arrow { transform: translateX(3px); }

/* ---------- Buttons: primary, secondary, ghost ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border: 0; border-radius: 40px;
  font: 400 16px/16px var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
/* Primary on light surfaces: dark pill */
.btn-primary { background: var(--surface-dark); color: var(--text-inverse); }
/* Primary on dark surfaces: light pill */
.topbar .btn-primary, .hero .btn-primary, .dark-section .btn-primary, .page-head .btn-primary {
  background: var(--accent-light); color: var(--surface-dark);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:active { opacity: .8; transform: none; }
.btn-secondary {
  height: 32px; padding: 0 16px; font-size: 14px; line-height: 14px;
  background: var(--overlay-20); color: var(--text-inverse);
}
.btn-secondary:hover { background: var(--overlay-30); }
.btn-secondary:active { background: rgb(175 178 206 / .15); }
.btn-ghost-dark { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost-dark:hover { background: var(--border-muted); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- Top navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 3;
  background: var(--surface-dark); color: var(--text-inverse);
  box-shadow: var(--shadow-nav);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto; height: 72px; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text-inverse); }
.brand img { width: 168px; height: auto; }
.brand-desc { font-size: 12px; line-height: 15px; color: var(--accent); border-left: 1px solid var(--overlay-30); padding-left: 16px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  color: var(--text-inverse); text-decoration: none; font-size: 16px; line-height: 24px; font-weight: 400;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-link[aria-current="page"] { border-bottom-color: var(--accent-light); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface-dark); color: var(--text-inverse);
  min-height: 620px; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(23 23 33 / .35) 0%, rgb(23 23 33 / .55) 45%, rgb(23 23 33 / .92) 100%),
    linear-gradient(90deg, rgb(23 23 33 / .55) 0%, rgb(23 23 33 / 0) 70%);
}
.hero-inner { width: 100%; max-width: 1024px; margin: 0 auto; padding: 96px var(--gutter) 72px; }
.hero h1 { max-width: 15ch; }
.hero .body-lg { max-width: 34ch; margin: 24px 0 32px; color: var(--text-inverse); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--accent); }

/* Input group (input + button) */
.input-group {
  display: flex; max-width: 520px; height: 46px;
  background: var(--overlay-10); border-radius: 32px;
}
.input-group input {
  flex: 1; min-width: 0; height: 46px; padding: 0 20px;
  background: transparent; color: var(--text-inverse);
  font: 400 16px/16px var(--font);
  border: 1px solid var(--overlay-30); border-right: 0; border-radius: 32px 0 0 32px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-group input::placeholder { color: rgb(237 237 243 / .5); }
.input-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgb(175 178 206 / .15); }
.input-group .btn { height: 46px; border-radius: 0 32px 32px 0; padding: 0 24px; }

/* ---------- Sections ---------- */
.container { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 var(--gutter); }
.section { --bg: var(--white); padding: var(--section-pad) 0; }
.section--tight { padding-top: 40px; padding-bottom: 0; }
.section--alt { --bg: var(--alt); background: var(--alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .body-lg { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: start; }
.split > * { min-width: 0; }
.split h2, .split h1 { margin-bottom: 24px; }
.narrow { max-width: 760px; }

/* Page head for sub-pages */
.page-head { background: var(--surface-dark); color: var(--text-inverse); padding: 72px 0; }
.page-head h1 { max-width: 18ch; }
.page-head .body-lg { margin-top: 24px; max-width: 40ch; }
.breadcrumb { font-size: 14px; line-height: 20px; color: var(--accent); margin-bottom: 24px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { color: var(--accent); }

/* ---------- Cards ---------- */
/* Cards sit 5% darker than the surface they are on (mixed toward #171721). */
.card {
  --card-bg: #F3F3F4;
  --card-bg: color-mix(in srgb, var(--bg, #FFFFFF) 95%, var(--surface-dark));
  background: var(--card-bg); border: 1px solid rgb(23 23 33 / .08); border-radius: 0;
  padding: 32px; box-shadow: var(--shadow-hover);
}
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card--link { display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease; }
.card--link:hover { box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.card--link > p:not(.caption) { color: #44444F; }
.card .muted, .card .caption, .step p, .step-num { color: #44444F; }
.card .field input, .card .field textarea { background: var(--white); }
.card .badge { background: var(--white); }
.card th { color: #44444F; }
.card th, .card td { border-bottom-color: rgb(23 23 33 / .12); }
.card-foot { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 40px;
  background: var(--accent-light); color: var(--surface-dark); font-size: 14px; line-height: 14px; font-weight: 500;
}

/* ---------- Stats ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat { padding: 32px 24px 32px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--border); }
.stat dt { font-size: 42px; line-height: 48px; font-weight: 500; }
.stat dd { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); max-width: 22ch; }

/* ---------- Process ---------- */
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 24px; box-shadow: none; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.step .icon { width: 24px; height: 24px; color: var(--surface-dark); }
.step-num { font-size: 12px; line-height: 17px; font-weight: 500; color: #44444F; }
.step .h-card { font-size: 18px; line-height: 24px; }
.step p { font-size: 14px; line-height: 20px; color: #44444F; }
.wide-photo { margin: 40px 0 0; aspect-ratio: 16 / 7; overflow: hidden; background: var(--surface-dark); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin: 32px 0 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.notes strong { color: var(--text); }

/* ---------- Dark section ---------- */
.dark-section { background: var(--surface-dark); color: var(--text-inverse); padding: var(--section-pad) 0; }
.dark-section .body-lg { color: var(--text-inverse); opacity: .85; }
.conf-list { list-style: none; margin: 0; padding: 0; }
.conf-list li {
  display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--overlay-20);
  font-size: 18px; line-height: 26px;
}
.conf-list li:first-child { border-top: 1px solid var(--overlay-20); }
.conf-list .icon { width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }

/* ---------- Contact & form ---------- */
.contact-email { margin: 32px 0 16px; font-size: 21px; line-height: 25px; font-weight: 500; }
.contact-email .caption { margin-bottom: 4px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label, .form legend { font-size: 14px; line-height: 20px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; background: var(--accent-light); color: var(--text);
  border: 1px solid transparent; border-radius: 32px;
  padding: 0 20px; height: 46px;
  font: 400 16px/20px var(--font);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { height: auto; min-height: 136px; padding: 14px 20px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A8A96; }
.field input:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--surface-dark);
  box-shadow: 0 0 0 3px rgb(23 23 33 / .08);
}
.field [aria-invalid="true"] { border-color: #8E3B3B; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form legend { padding: 0; margin-bottom: 8px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 20px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--surface-dark); }
.check--consent { color: var(--muted); }
.form-error {
  margin: 0; padding: 12px 16px; border-radius: 4px;
  background: #F6ECEC; color: #6E2B2B; font-size: 14px; line-height: 20px;
}
.form-error[hidden] { display: none; }

/* Dialog */
.draft-dialog {
  z-index: 99; max-width: 640px; width: calc(100% - 32px);
  border: 1px solid var(--border); border-radius: 0; padding: 32px;
  background: var(--white); color: var(--text); box-shadow: var(--shadow-elevated);
}
.draft-dialog::backdrop { background: rgb(23 23 33 / .6); }
.draft-dialog[open] { animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: .7; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.draft-dialog h2 { font-size: 32px; line-height: 38px; margin-bottom: 16px; }
.draft-dialog pre {
  white-space: pre-wrap; font: 400 14px/20px var(--font);
  background: var(--accent-light); padding: 16px; margin: 24px 0; max-height: 260px; overflow: auto; border-radius: 4px;
}
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dialog-close { margin-left: auto; background: none; border: 0; cursor: pointer; font: 400 14px var(--font); color: var(--muted); text-decoration: underline; }

/* ---------- Fees table ---------- */
.table-card { padding: 8px 32px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 300px; }
th, td { text-align: left; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; line-height: 17px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td.num { font-size: 21px; line-height: 25px; font-weight: 500; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 24px; line-height: 30px; margin: 40px 0 12px; }
.back-link { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-dark); color: var(--text-inverse); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { width: 200px; height: auto; margin-bottom: 20px; }
.site-footer p { font-size: 14px; line-height: 20px; color: var(--accent); max-width: 36ch; }
.site-footer .caption { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.copyright { max-width: none !important; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--overlay-20); font-size: 12px !important; }

/* Smooth (inertial) scrolling via Lenis */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* =====================================================================
   Motion & graphics layer: contours, glow, grain, reveals, spotlight,
   marquee, count-up, parallax. Everything is switched off under
   prefers-reduced-motion (see the end of this file).
   ===================================================================== */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* Frosted top bar once the page scrolls */
.topbar { background: var(--surface-dark); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); transition: box-shadow .3s ease, background-color .3s ease; }
.topbar.is-scrolled { background: rgb(23 23 33 / .84); box-shadow: 0 1px 0 rgb(175 178 206 / .12), 0 8px 24px -12px rgb(0 0 0 / .5); }

/* Topographic contours */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topo path { stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .16; }
.hero .topo { z-index: 0; }
.hero .topo path { opacity: .15; }
.dark-section, .page-head { position: relative; isolation: isolate; overflow: hidden; }
.dark-section .topo, .page-head .topo { z-index: -1; }
.page-head .topo path { opacity: .14; }
html.js .topo path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + .2s); }
html.js .dark-section .topo path { animation-play-state: paused; }
html.js .dark-section.in-view .topo path { animation-play-state: running; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Hero: interactive terrain (canvas). The SVG contours stay as the no-JS fallback. */
.terrain { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.terrain-on > .terrain { opacity: 1; }
.terrain-on > .topo { display: none; }
.dark-section > .terrain, .page-head > .terrain, .site-footer > .terrain { z-index: -1; }
.site-footer { isolation: isolate; }

/* Hero: grain, glow, Ken Burns, staged entrance */
.hero-bg { transform-origin: 60% 40%; will-change: transform; }
html.js .hero-bg { animation: kenburns 2.4s var(--ease-out) both; }
@keyframes kenburns { from { transform: scale(1.12); filter: blur(6px) brightness(.7); } to { transform: scale(1.04); filter: none; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; }
.hero-glow {
  position: absolute; z-index: 0; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(closest-side, rgb(175 178 206 / .22), rgb(175 178 206 / .06) 55%, transparent);
  transform: translate3d(var(--gx, 70vw), var(--gy, 40%), 0);
}
.hero.has-pointer .hero-glow { opacity: 1; }
html.js .hero [data-stage] { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--s, 0) * 110ms + .35s); }
html.js .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); animation: rise .9s var(--ease-out) forwards; animation-delay: calc(var(--w) * 60ms + .45s); }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.hero h1 .underline-draw { position: relative; display: inline-block; }
.hero h1 .underline-draw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; animation: line 1s var(--ease-out) 1.5s forwards;
}
@keyframes line { to { transform: scaleX(1); } }

/* Scroll cue */
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border-radius: 40px; box-shadow: inset 0 0 0 1.5px rgb(237 237 243 / .45); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent-light); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* Primary button sheen */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.topbar .btn-primary::after, .hero .btn-primary::after { background: linear-gradient(105deg, transparent 30%, rgb(175 178 206 / .55) 50%, transparent 70%); }

/* Scroll reveal */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-clip { clip-path: inset(12% 6% 12% 6%); transition: clip-path 1.3s var(--ease-out); }
html.js .reveal-clip.in { clip-path: inset(0); }

/* Card spotlight */
.card--link, .step { position: relative; isolation: isolate; overflow: hidden; }
.card--link::before, .step::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(175 178 206 / .22), transparent 60%);
}
.card--link:hover::before, .step:hover::before { opacity: 1; }
.step { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: rgb(23 23 33 / .16); }
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--surface-dark); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out) calc(var(--d, 0) * 140ms + .2s); }
.step.in::after, html:not(.js) .step::after { transform: scaleX(1); }
.step .icon { transition: transform .5s var(--ease-out); }
.step:hover .icon { transform: rotate(-8deg) scale(1.12); }

/* Stats: numbers count up, rule draws in */
.stat dt { font-variant-numeric: tabular-nums; }
.stat-row { position: relative; }
.stat-row::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--surface-dark); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .1s; }
.stat-row.in::after { transform: scaleX(1); }

/* Marquee band */
.marquee { overflow: hidden; padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.mq-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-run { display: flex; align-items: center; flex: none; }
.mq-item { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; padding: 0 28px; color: transparent; -webkit-text-stroke: 1px #9A9AAA; }
.mq-item--solid { color: var(--surface-dark); -webkit-text-stroke: 0; }
.mq-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Wide photo parallax */
.wide-photo { position: relative; }
.wide-photo img { transform: translate3d(0, var(--py, 0), 0) scale(1.14); will-change: transform; }

/* Dark section: drifting mesh light */
.mesh { position: absolute; inset: -20%; z-index: -2; pointer-events: none; opacity: .55; }
.mesh::before, .mesh::after { content: ""; position: absolute; border-radius: 50%; will-change: transform; }
.mesh::before { width: 46%; height: 60%; left: 8%; top: 18%; background: radial-gradient(closest-side, rgb(175 178 206 / .35), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.mesh::after { width: 40%; height: 54%; right: 6%; bottom: 10%; background: radial-gradient(closest-side, rgb(39 39 53 / .9), transparent); animation: drift-b 26s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-16%, -10%) scale(1.1); } }
.conf-list .icon path, .conf-list .icon rect { stroke-dasharray: 60; stroke-dashoffset: 0; }
html.js .conf-list li .icon path, html.js .conf-list li .icon rect { stroke-dashoffset: 60; transition: stroke-dashoffset 1.4s var(--ease-out) calc(var(--d, 0) * 160ms + .3s); }
html.js .conf-list li.in .icon path, html.js .conf-list li.in .icon rect { stroke-dashoffset: 0; }

/* Enquiry card: slowly turning light on the border */
.form.card { position: relative; border-color: transparent; background:
  linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
  conic-gradient(from var(--angle), rgb(23 23 33 / .1) 0deg, rgb(23 23 33 / .1) 250deg, var(--white) 300deg, var(--surface-dark) 320deg, var(--white) 340deg, rgb(23 23 33 / .1) 360deg) border-box;
  animation: spin-border 8s linear infinite; }
@keyframes spin-border { to { --angle: 360deg; } }

/* Footer wordmark */
.site-footer { position: relative; overflow: hidden; padding-bottom: 0; }
.footer-mark {
  margin-top: 24px; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-size: clamp(80px, 21vw, 300px); line-height: .78; font-weight: 600; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgb(175 178 206 / .28);
  background: linear-gradient(180deg, rgb(175 178 206 / .16), transparent 80%); -webkit-background-clip: text; background-clip: text;
  transform: translateY(18%);
}

/* Link underline grows */
.link-dark, .link-light { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease-out), text-decoration-color .2s ease; }
.link-dark:hover, .link-light:hover { background-size: 100% 1px; text-decoration-color: transparent; }

/* =====================================================================
   Hunting-site section (links to lasarotta.co.uk)
   Dark feature card: live terrain, rotating ring disc with the emblem, facts, chips.
   The whole card is clickable (app.js forwards clicks to the CTA link).
   ===================================================================== */
.hunt { padding-top: 0; }
.hunt-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  padding: 56px; background: var(--surface-dark); color: var(--text-inverse);
  box-shadow: var(--shadow-elevated);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.hunt-card > .terrain { z-index: -1; }
.hunt-card::before { /* soft light from the disc side */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 90% at 85% 50%, rgb(175 178 206 / .14), transparent 70%);
}
.hunt-card:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -24px rgb(0 0 0 / .45), var(--shadow-elevated); }
.hunt-body { position: relative; max-width: 560px; }
.hunt-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12px; line-height: 17px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hunt-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 0 rgb(237 237 243 / .6); animation: hunt-live 2s ease-out infinite; }
@keyframes hunt-live { to { box-shadow: 0 0 0 9px rgb(237 237 243 / 0); } }
.hunt-card h2 { max-width: 18ch; }
.hunt-text { margin: 20px 0 0; color: rgb(237 237 243 / .8); max-width: 54ch; }
.hunt-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 28px 0 0; }
.hunt-fact { padding: 0 24px; border-left: 1px solid var(--overlay-20); }
.hunt-fact:first-child { padding-left: 0; border-left: 0; }
.hunt-fact dt { font-size: 32px; line-height: 38px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hunt-fact dd { margin: 4px 0 0; font-size: 13px; line-height: 18px; color: var(--accent); max-width: 18ch; }
.hunt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; }
.hunt-chip { height: 30px; padding: 0 14px; border-radius: 40px; display: inline-flex; align-items: center; font-size: 13px; background: var(--overlay-20); color: var(--text-inverse); transition: background-color .3s ease; }
.hunt-card:hover .hunt-chip { background: var(--overlay-30); }
.hunt-cta { margin-top: 32px; background: var(--accent-light); color: var(--surface-dark); }
.hunt-card { cursor: pointer; }

/* Wild boar (top right) and bear (bottom right): white-edge cut-outs that melt into the card,
   fading out toward the text and tucking behind the disc. */
.hunt-animal {
  position: absolute; z-index: -1; height: auto; pointer-events: none; user-select: none;
  opacity: .85;
  -webkit-mask-image: linear-gradient(to left, #000 62%, rgb(0 0 0 / .35) 88%, transparent 100%);
  mask-image: linear-gradient(to left, #000 62%, rgb(0 0 0 / .35) 88%, transparent 100%);
}
.hunt-animal--boar { top: -18px; right: 4px; width: 270px; }
.hunt-animal--bear { bottom: -26px; right: 0; width: 290px; }

/* Disc */
.hunt-disc {
  position: relative; flex: none; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #272735, var(--surface-dark) 70%);
  box-shadow: 0 0 0 1px rgb(175 178 206 / .28), 0 24px 60px -20px rgb(0 0 0 / .7), inset 0 1px 0 rgb(237 237 243 / .08);
  transition: transform .7s var(--ease-out);
}
.hunt-disc::before, .hunt-disc::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgb(175 178 206 / .3); animation: hunt-halo 3.6s ease-out infinite; }
.hunt-disc::after { animation-delay: 1.8s; }
@keyframes hunt-halo { 0% { opacity: .8; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.3); } }
.hunt-disc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hunt-ring { transform-origin: 56px 56px; animation: hunt-spin 26s linear infinite; }
.hunt-ring text { font: 500 8.6px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; fill: var(--accent); }
@keyframes hunt-spin { to { transform: rotate(360deg); } }
.hunt-emblem { transform-origin: 56px 56px; transition: opacity .3s ease, transform .6s var(--ease-out); }
.hunt-mtn { fill: none; stroke: var(--accent-light); stroke-width: 1.6; stroke-linejoin: round; }   /* outline only */
.hunt-pawc { fill: var(--accent-light); }
.hunt-arrow {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px; line-height: 1;
  background: var(--accent-light); color: var(--surface-dark);
  opacity: 0; transform: scale(.4) rotate(-45deg); transition: opacity .3s ease, transform .6s var(--ease-out);
}
.hunt-card:hover .hunt-disc { transform: rotate(-10deg) scale(1.03); }
.hunt-card:hover .hunt-ring { animation-duration: 9s; }
.hunt-card:hover .hunt-emblem { opacity: 0; transform: scale(.7) translateY(6px); }
.hunt-card:hover .hunt-arrow { opacity: 1; transform: none; }

/* =====================================================================
   Floating WhatsApp button (message or call +44 78 32 100 524)
   ===================================================================== */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-btn {
  position: relative; width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #FFFFFF; background: #25D366;
  box-shadow: 0 10px 28px -8px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .12) inset;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  animation: wa-in .7s var(--ease-out) 1.2s both;
}
.wa-btn svg { width: 30px; height: 30px; transition: transform .45s var(--ease-out); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-pulse 2.6s ease-out 2s infinite; }
.wa-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 34px -10px rgb(0 0 0 / .5); }
.wa-btn[aria-expanded="true"] svg { transform: rotate(-12deg) scale(.92); }
.wa-btn:focus-visible { outline: 2px solid var(--surface-dark); outline-offset: 3px; }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes wa-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }

.wa-menu {
  width: 290px; padding: 8px; background: rgb(23 23 33 / .96); color: var(--text-inverse);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgb(175 178 206 / .2), 0 24px 48px -16px rgb(0 0 0 / .55);
  opacity: 0; pointer-events: none; transform: translateY(10px) scale(.96); transform-origin: right bottom;
  transition: opacity .25s ease, transform .4s var(--ease-out);
}
.wa.is-open .wa-menu { opacity: 1; pointer-events: auto; transform: none; }
.wa-head { display: flex; align-items: center; gap: 8px; margin: 6px 8px 8px; font-size: 12px; line-height: 16px; color: var(--accent); }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 3px rgb(37 211 102 / .2); }
.wa-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 8px;
  color: var(--text-inverse); text-decoration: none; transition: background-color .2s ease;
}
.wa-item + .wa-item { border-top: 1px solid var(--overlay-20); }
.wa-item:hover, .wa-item:focus-visible { background: var(--overlay-10); outline: none; }
.wa-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--overlay-20); color: #25D366; }
.wa-ico svg { width: 20px; height: 20px; }
.wa-item strong { display: block; font-size: 14px; line-height: 20px; font-weight: 500; }
.wa-item small { display: block; font-size: 12px; line-height: 16px; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 24px; --section-pad: 40px; }
  h1 { font-size: 40px; line-height: 46px; }
  h2 { font-size: 34px; line-height: 40px; }
  .body-lg { font-size: 18px; line-height: 24px; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .site-nav, .site-nav ul { gap: 24px; }
  .brand-desc { display: none; }
  .hunt-card { padding: 40px; gap: 24px; }
  .hunt-disc { width: 200px; height: 200px; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --section-pad: 36px; }
  html { scroll-padding-top: 72px; }
  h1 { font-size: 32px; line-height: 38px; }
  h2 { font-size: 28px; line-height: 34px; }
  .body-lg { font-size: 16px; line-height: 24px; }
  .topbar-inner { height: 64px; padding: 12px var(--gutter); }
  .brand img { width: 140px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; border-radius: 40px;
    background: var(--overlay-20); color: var(--text-inverse); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--surface-dark); padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--overlay-20); box-shadow: var(--shadow-nav);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--overlay-20); }
  .nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--overlay-20); color: var(--accent); }
  .site-nav .btn { height: 44px; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 64px var(--gutter) 40px; }
  .input-group { flex-direction: column; height: auto; background: none; gap: 12px; }
  .input-group input { flex: none; height: 46px; border-right: 1px solid var(--overlay-30); border-radius: 32px; background: var(--overlay-10); }
  .input-group .btn { border-radius: 40px; height: 46px; }
  .split, .card-grid, .notes, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 24px; }
  .section-head { margin-bottom: 24px; }
  .card { padding: 16px; }
  .card--link { padding: 24px 16px; }
  .table-card { padding: 4px 16px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-top { margin-bottom: 20px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 20px 12px 20px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat dt { font-size: 32px; line-height: 38px; }
  .page-head { padding: 40px 0; }
  .wide-photo { aspect-ratio: 4 / 3; }
  .draft-dialog { padding: 24px 16px; }
  .site-footer { padding-top: 40px; }
  .marquee { padding: 32px 0; }
  .wa { right: 16px; bottom: 16px; }
  .wa-btn { width: 54px; height: 54px; }
  .wa-menu { width: min(290px, calc(100vw - 32px)); }
  .hunt-card { grid-template-columns: 1fr; padding: 32px 20px; gap: 32px; }
  .hunt-disc { order: -1; width: 150px; height: 150px; }
  .hunt-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hunt-fact { padding: 0 12px; }
  .hunt-fact dt { font-size: 24px; line-height: 30px; }
  .hunt-fact dd { font-size: 12px; line-height: 16px; }
  .hunt-animal { opacity: .6; }
  .hunt-animal--boar { width: 160px; top: -14px; right: -18px; }
  .hunt-animal--bear { width: 180px; bottom: -22px; right: -16px; }
  .mq-item { padding: 0 16px; }
  .scroll-cue { display: none; }
  .hero-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .hero [data-stage], html.js .hero h1 .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  html.js .reveal-clip { clip-path: none !important; }
  html.js .topo path { stroke-dashoffset: 0 !important; }
  .hero h1 .underline-draw::after, .step::after, .stat-row::after { transform: none !important; }
  html.js .conf-list li .icon path, html.js .conf-list li .icon rect { stroke-dashoffset: 0 !important; }
  .hero-glow, .scroll-cue span { display: none; }
  .mq-track { flex-wrap: wrap; width: auto; }
  .mq-run + .mq-run { display: none; }
  .mq-run { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .wide-photo img { transform: none !important; }
  .wa-btn, .wa-btn::before { animation: none !important; }
  .hunt-ring, .hunt-disc::before, .hunt-disc::after, .hunt-live { animation: none !important; }
  .hunt-card:hover, .hunt-card:hover .hunt-disc { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn-primary:hover, .card--link:hover { transform: none; }
}
