/* Codename Anandam landing page
   Colours come from the green logo file: bottle green, copper, red full stop.
   Patterns: assets/patterns (Jali, built from the logo star). */

:root {
  --green: #073D38;
  --green-2: #0B4A44;
  --green-deep: #052E2A;
  --copper: #F0A675;
  --copper-soft: #F6D2B9;
  --mud: #A85F33;
  --mud-2: #B96D3F;
  --red: #E22E37;
  --paper: #F5F6F3;
  --tint: #E9EEEB;
  --ink: #0D2320;
  --muted: #54655F;
  --line: #CFD8D4;
  --line-dark: rgba(255, 255, 255, 0.2);
  --on-dark: #EEF2EF;
  --on-dark-muted: rgba(238, 242, 239, 0.76);
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 77.5rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --space: clamp(6rem, 13vw, 12.5rem);
  --nav-h: 4.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
/* Desktop sizing: part fixed, part follows screen width.
   Every desktop keeps nearly the same look as the 1728px design view (root is exactly 16px there),
   text never gets too small on 1280px laptops, and browser zoom (Ctrl + and Ctrl -) still works. */
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
@media (min-width: 961px) { html { font-size: calc(8px + 0.463vw); } }
body { margin: 0; overflow-x: clip; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

[hidden] { display: none !important; }

/* Custom cursor (js/cursor.js picks the style; only for mouse and trackpad users) */
/* Style "star": the logo star follows the mouse */
.cursor-star { position: fixed; left: 0; top: 0; z-index: 9999; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor-star img { position: absolute; left: -0.8125rem; top: -0.8125rem; width: 1.625rem; height: 1.625rem; max-width: none; animation: cursor-spin 8s linear infinite; transition: scale 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cursor-star.is-on { opacity: 1; }
.cursor-star.is-link img { scale: 1.5; animation-duration: 1.6s; }
.cursor-star.is-down img { scale: 0.8; }
.cursor-star.is-hidden { opacity: 0; }
@keyframes cursor-spin { to { rotate: 360deg; } }
html.cursor-star-on, html.cursor-star-on * { cursor: none; }
html.cursor-star-on :is(input[type="text"], input[type="tel"], input[type="email"], textarea) { cursor: text; }
/* Style "arrow": brand arrow, and a copper badge on anything clickable. Nothing moves. */
html.cursor-arrow, html.cursor-arrow * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 3 L23 13 L14 15.5 L10 24 Z' fill='%23073D38' stroke='%23F0A675' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto; }
html.cursor-arrow :is(a, button, label, summary, [role="tab"], .spot), html.cursor-arrow :is(a, button, label, summary) * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23F0A675' stroke='%23073D38' stroke-width='1.5'/%3E%3Cpath d='M11 21 L21 11 M13 11 H21 V19' fill='none' stroke='%23073D38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, pointer; }
html.cursor-arrow :is(input[type="text"], input[type="tel"], input[type="email"], textarea) { cursor: text; }
@media (hover: none), (pointer: coarse) { .cursor-star { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-star img { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 0.75rem; top: 0; transform: translateY(-150%); z-index: 100; padding: 0.625rem 1rem; background: var(--copper); color: var(--green); font-weight: 600; text-decoration: none; }
.skip:focus { transform: translateY(0.75rem); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(55rem + 2 * var(--gutter)); }

/* Type */
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 5.2vw, 4.25rem); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
h2 em, h3 em { font-style: normal; color: var(--green-2); }
.dot { color: var(--red); }
.kicker, .eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.kicker--center { text-align: center; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--muted); max-width: 58ch; }
.note { font-size: 0.8125rem; color: var(--muted); margin-top: 1.75rem; }
.note--right { text-align: right; }
.note--center { text-align: center; }

/* Dark contexts share these overrides */
.on-dark, .hero, .idea, .numbers, .register, .footer,
.pattern--green, .split__panel:not(.split__panel--light) { color: var(--on-dark); }
:is(.idea, .numbers, .register, .pattern--green, .footer) :is(.kicker, .eyebrow) { color: #fff; }
:is(.idea, .numbers, .register, .pattern--green) h2 em,
:is(.idea, .numbers, .register, .pattern--green) h3 em { color: #fff; }
:is(.idea, .numbers, .register, .pattern--green) :is(.lede, .note) { color: var(--on-dark-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 3.25rem; padding: 0 1.875rem; font: 600 0.8125rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--copper); border-radius: 2px; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.btn--solid { background: var(--mud); border-color: var(--mud); color: #fff; }
.btn--solid:hover { background: var(--mud-2); border-color: var(--mud-2); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--dark { background: var(--green); border-color: var(--green); color: var(--on-dark); }
.btn--dark:hover { background: var(--green-2); }
.btn--line { background: transparent; border-color: var(--green); color: var(--green); }
.btn--line:hover { background: var(--green); color: var(--on-dark); }
.btn--wide { width: 100%; }
.btn--big { min-height: 3.625rem; }
.btn svg { width: 1.125rem; height: 1.125rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.02em; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 2.5rem; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--green); }
.chip.is-on { color: var(--on-dark); background: var(--green); border-color: var(--green); }
.chip--solid { background: #fff; border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.round-btn { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; color: var(--green); background: transparent; border: 1px solid var(--green); border-radius: 50%; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.round-btn:hover { background: var(--green); color: var(--on-dark); }
.round-btn svg { width: 1.25rem; height: 1.25rem; }

/* Shared backgrounds: image, green tint and pattern layers */
.bg-img, .bg-tint { position: absolute; inset: 0; }
.bg-img { background: center / cover no-repeat; inset: -12% 0; will-change: transform; }
.bg-tint { background: linear-gradient(180deg, rgba(7, 61, 56, 0.72), rgba(5, 46, 42, 0.84)); }
.bg-tint--deep { background: rgba(5, 46, 42, 0.8); }
.bg-tint--side { background: linear-gradient(90deg, rgba(5, 46, 42, 0.94) 0%, rgba(7, 61, 56, 0.86) 48%, rgba(7, 61, 56, 0.35) 100%); }

.pattern { position: relative; isolation: isolate; }
.pattern::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/patterns/pat-jali-copper.svg") 0 0 / 6rem 6rem; opacity: 0.05; }
.pattern--green { background: var(--green); }
.pattern--deep { background: var(--green-deep); }
.pattern--light { background: var(--tint); }
.pattern--light::before { background-image: url("../assets/patterns/pat-jali-green.svg"); opacity: 0.04; }

/* Stock image tag, so nobody mistakes a stock photo for the project */
figure { position: relative; }
.stock-tag { position: absolute; right: 0.75rem; bottom: 0.75rem; z-index: 2; padding: 0.3125rem 0.5625rem; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(5, 46, 42, 0.72); }
.stock-tag--hero { right: var(--gutter); bottom: 2.125rem; background: none; padding: 0; color: var(--on-dark-muted); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 2.25rem; padding: 0 var(--gutter); color: var(--on-dark); transition: background-color 0.35s, height 0.35s; }
.nav.is-solid, .nav.is-open { background: var(--green); }
.nav__logo { flex: none; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.nav__logo img { height: 2.875rem; width: auto; }
.nav.is-solid .nav__logo, .nav.is-open .nav__logo { opacity: 1; pointer-events: auto; }
.nav__links { display: flex; gap: clamp(1.125rem, 2.6vw, 2.5rem); margin-left: auto; }
.nav__links a { white-space: nowrap; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 0.5rem 0; border-bottom: 1px solid transparent; }
.nav__links a:hover { border-color: #fff; }
.nav__cta { min-height: 2.625rem; padding: 0 1.25rem; }
/* First screen on desktop: menu sits in the centre. Once the page scrolls (.is-solid) it moves back to the right, next to the logo. */
@media (min-width: 961px) {
  .nav:not(.is-solid) { justify-content: center; }
  .nav:not(.is-solid) .nav__logo { position: absolute; }
  .nav:not(.is-solid) .nav__links { margin-left: 0; }
  .nav__links, .nav__cta { animation: nav-in 0.5s ease both; }
  .nav:not(.is-solid) .nav__links, .nav:not(.is-solid) .nav__cta { animation-name: nav-in-centre; }
}
@keyframes nav-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nav-in-centre { from { opacity: 0; } to { opacity: 1; } }
.nav__toggle { display: none; position: relative; width: 2.75rem; height: 2.75rem; margin-left: auto; background: none; border: 0; cursor: pointer; }
.nav__toggle i { position: absolute; left: 0.625rem; right: 0.625rem; height: 1.5px; background: #fff; transition: transform 0.25s, top 0.25s; }
.nav__toggle i:nth-of-type(1) { top: 1.0625rem; }
.nav__toggle i:nth-of-type(2) { top: 1.625rem; }
.nav.is-open .nav__toggle i:nth-of-type(1) { top: 1.3125rem; transform: rotate(45deg); }
.nav.is-open .nav__toggle i:nth-of-type(2) { top: 1.3125rem; transform: rotate(-45deg); }

/* 1. Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 38.75rem; display: flex; flex-direction: column; background: var(--green-deep); overflow: hidden; }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide { background: center / cover no-repeat; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 9s linear; }
.hero__slide.is-on { opacity: 1; transform: scale(1); }
.hero__shade { background:
  radial-gradient(ellipse at center, rgba(7, 61, 56, 0.55) 0%, rgba(5, 46, 42, 0.86) 75%),
  linear-gradient(180deg, rgba(5, 46, 42, 0.5) 0%, transparent 30%, transparent 70%, rgba(5, 46, 42, 0.7) 100%); }
.hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--nav-h) var(--gutter) 0; }
.hero .eyebrow { color: #fff; }
.hero__logo { width: min(47.5rem, 86vw); margin: clamp(1.75rem, 5vh, 3.5rem) 0; }
.hero__logo img { width: 100%; }
.hero__line { font-family: var(--serif); font-size: clamp(1.375rem, 2.8vw, 2.125rem); line-height: 1.25; text-wrap: balance; }
.hero__foot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.375rem; padding: 0 var(--gutter) 2.125rem; }
.hero__bars { display: flex; gap: 0.5rem; }
.hero__bars span { position: relative; width: 4rem; height: 2px; background: rgba(238, 242, 239, 0.3); overflow: hidden; }
.hero__bars span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__bars span.is-on::after { animation: bar 6s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero__scroll { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-muted); }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 2.25rem; margin: 0.75rem auto 0; background: linear-gradient(#fff, transparent); }

/* 2. Intro */
.intro { padding: var(--space) 0; text-align: center; }
.intro__star { width: 2.75rem; margin: 0 auto 1.75rem; }
.intro__title { margin-top: 1.625rem; font-size: clamp(2.25rem, 5vw, 4rem); }
.intro__text { margin: 2.25rem auto 0; max-width: 60ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); }
.intro__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; margin-top: 3rem; }


/* 4. The idea */
.idea { position: relative; padding: var(--space) 0; overflow: hidden; }
.idea__inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.idea__name { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; margin-top: 2rem; color: #fff; }
.idea__script { display: flex; gap: 1.25rem; align-items: baseline; margin-top: 1.125rem; font-size: 1.75rem; line-height: 1.3; }
.idea__script span + span { padding-left: 1.25rem; border-left: 1px solid var(--line-dark); }
.idea__say { margin-top: 0.5rem; font-size: 0.875rem; color: var(--on-dark-muted); }
.idea__say i { margin-left: 0.625rem; }
.idea__defs { margin-top: 2rem; border-top: 1px solid var(--line-dark); counter-reset: def; }
.idea__defs li { display: grid; grid-template-columns: 2rem 1fr; padding: 1.125rem 0; border-bottom: 1px solid var(--line-dark); counter-increment: def; color: var(--on-dark-muted); }
.idea__defs li::before { content: counter(def); font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.idea__text h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.idea__text p { margin-top: 2rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--on-dark-muted); max-width: 52ch; }

/* Section heads */
.section { padding: var(--space) 0; }
.section--tint { background: var(--tint); }
.head { display: grid; gap: 1.5rem; margin-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.head--center { justify-items: center; text-align: center; }
.head--center .lede { margin: 0 auto; }
.head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; gap: clamp(1.5rem, 6vw, 6rem); }
.head--split h2 { margin-top: 1.375rem; }


/* 6. Numbers */
.numbers { position: relative; padding: var(--space) 0; overflow: hidden; }
.numbers .wrap { position: relative; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.numbers__grid > div { padding: clamp(2rem, 4vw, 3.5rem) 1rem; text-align: center; border-bottom: 1px solid var(--line-dark); }
.numbers__grid > div:not(:nth-child(4n + 1)) { border-left: 1px solid var(--line-dark); }
.numbers__grid dd { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; color: #fff; }
.numbers__grid dt { margin-top: 0.875rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.numbers .note { margin-top: 2.5rem; }

/* 7. Everyday life: alternating split blocks */
.life { padding-bottom: 0; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 88vh; }
.split--flip { grid-template-columns: 1fr 1.15fr; }
.split--flip .split__img { order: 2; }
/* Photos drift a little with the scroll (js/main.js). They are drawn 12% larger so the frame edges never show. */
html.img-parallax .split__img { overflow: hidden; }
html.img-parallax .split__img img { scale: 1.12; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.75rem, 6vw, 6rem); }
.split__panel--light { color: var(--ink); }
.split__panel--copper { background: var(--mud); }
.split__num { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.split__panel--light .split__num { color: var(--red); }
.split__panel--copper .split__num, .split__panel--copper .ilist svg { color: #fff; }
.split h3 { margin-top: 0.75rem; font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.05; }
.split__lede { margin-top: 1.25rem; max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.125rem); opacity: 0.85; }
.ilist { margin-top: 2.5rem; display: grid; gap: 0.25rem; }
.ilist li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; padding: 0.875rem 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.ilist svg { width: 2.75rem; height: 2.75rem; padding: 0.625rem; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 50%; stroke-width: 1.5; }
.pattern--green .ilist svg { color: #fff; border-color: var(--line-dark); }
.ilist b { display: block; font-weight: 600; line-height: 1.35; }
.ilist span { font-size: 0.9375rem; line-height: 1.5; opacity: 0.92; }

/* 8. Tour carousel */
.tour { position: relative; }
.tour__pin { padding: var(--space) 0; }
/* Desktop (js/main.js adds html.tour-pinned): the section holds still while the photos slide sideways with the scroll */
html.tour-pinned .tour { height: var(--tour-h, auto); }
html.tour-pinned .tour__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 1.5rem) 0 1.5rem; overflow: hidden; }
html.tour-pinned .tour .head { margin-bottom: clamp(1.5rem, 4vh, 3rem); }
html.tour-pinned .tour__track { width: max-content; overflow: visible; scroll-snap-type: none; grid-auto-columns: max-content; will-change: transform; }
html.tour-pinned .tour__card img { width: auto; height: 50vh; height: 50svh; max-width: none; aspect-ratio: 16 / 10; }
html.tour-pinned .tour .note { margin-top: 1rem; }
.tour__ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 1.125rem; }
.tour__count { font-size: 0.875rem; color: var(--muted); min-width: 4rem; text-align: center; }
.tour__count b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--green); }
.tour__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 48.75rem); gap: clamp(1rem, 2vw, 1.75rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 0.5rem; scrollbar-width: none; }
.tour__track::-webkit-scrollbar { display: none; }
.tour__card { scroll-snap-align: start; overflow: hidden; }
.tour__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tour__card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.125rem; }
.tour__card b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 2vw, 1.75rem); color: var(--green); }
.tour__card span { font-size: 0.9375rem; color: var(--muted); text-align: right; }


/* Flyover video */
.flyover__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--green-deep); border-radius: 0.25rem; }
.flyover__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.flyover__toggle { position: absolute; left: 1.25rem; bottom: 1.25rem; display: grid; place-items: center; width: 3rem; height: 3rem; color: #fff; background: rgba(5, 46, 42, 0.65); border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.flyover__toggle:hover, .flyover__toggle:focus-visible { color: var(--green); background: #fff; }
.flyover__toggle svg { width: 1.125rem; height: 1.125rem; }
.flyover__toggle .ic-play, .flyover.is-paused .flyover__toggle .ic-pause { display: none; }
.flyover.is-paused .flyover__toggle .ic-play { display: block; }
.flyover__note { margin-top: 0.875rem; font-size: 0.8125rem; color: var(--muted); }

/* Live labels over the flyover (js/flyover.js). Sizes follow the video width (cqi), so they scale with it. */
.flyover__frame { container-type: inline-size; }
@media (max-width: 640px) { .flyover__frame { aspect-ratio: 1 / 1; } .flyover__video { object-fit: contain; object-position: center bottom; } } /* taller on phones: the whole video sits at the bottom and names rise into the space above it */
.fly-labels { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.fly-roads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.fly-roads path { fill: none; stroke: var(--copper); stroke-width: clamp(4px, 0.55cqi, 8px); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
.fly-roads path.is-thin { stroke: #fff; stroke-width: clamp(2.5px, 0.33cqi, 5px); }
.fl { --v: clamp(1.75rem, 7cqi, 5.5rem); --h: calc(clamp(0.875rem, 3cqi, 2.5rem) * var(--s, 1)); --ink: rgba(255, 255, 255, 0.92); position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; } /* --s (board scale) and --v (line height) are set by js/flyover.js and change smoothly */
.fl__dot { position: absolute; left: 0; top: 0; width: clamp(0.5rem, 0.9cqi, 0.75rem); height: clamp(0.5rem, 0.9cqi, 0.75rem); background: var(--copper); border: 2px solid #fff; border-radius: 50%; translate: -50% -50%; scale: 0; transition: scale 0.25s ease 0.15s; }
.fl__v { position: absolute; left: -0.75px; bottom: 0; width: 1.5px; height: var(--v); background: var(--ink); transform-origin: bottom; scale: 1 0; transition: scale 0.25s ease 0.05s; }
.fl__h { position: absolute; left: 0; bottom: var(--v); width: var(--h); height: 1.5px; background: var(--ink); transform-origin: left; scale: 0 1; transition: scale 0.2s ease; }
.fl__text { position: absolute; left: var(--h); bottom: var(--v); translate: 0.375rem 50%; padding: 0.45em 0.75em 0.5em; font-size: calc(clamp(0.625rem, 1.15cqi, 1rem) * var(--s, 1)); line-height: 1.3; color: #fff; white-space: nowrap; background: rgba(5, 46, 42, 0.86); border-left: 2px solid var(--copper); opacity: 0; transition: opacity 0.2s ease; }
.fl__text b { display: block; font-weight: 600; letter-spacing: 0.01em; }
.fl__text b em { margin-left: 0.35em; font-style: normal; font-weight: 500; opacity: 0.7; }
.fl__text small { display: block; margin-top: 0.1em; font-size: 0.85em; opacity: 0.8; }
.fl__dirs { display: flex; gap: 0.9em; margin-top: 0.2em; font-size: 0.85em; opacity: 0.9; }
.fl__dir { display: inline-flex; align-items: center; gap: 0.3em; }
.fl__dir i { display: inline-grid; width: 1.1em; height: 1.1em; }
.fl__dir svg { width: 100%; height: 100%; fill: none; stroke: var(--copper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Text on the left side of the dot */
.fl.is-left .fl__h { left: auto; right: 0; transform-origin: right; }
.fl.is-left .fl__text { left: auto; right: var(--h); translate: -0.375rem 50%; border-left: 0; border-right: 2px solid var(--copper); text-align: right; }
.fl.is-left .fl__dirs { justify-content: flex-end; }
/* Line drops below the dot (used near the plot's own label) */
.fl.is-down .fl__v { bottom: auto; top: 0; transform-origin: top; }
.fl.is-down .fl__h { bottom: auto; top: var(--v); }
.fl.is-down .fl__text { bottom: auto; top: var(--v); translate: 0.375rem -50%; }
.fl.is-down.is-left .fl__text { translate: -0.375rem -50%; }
/* Draw in: dot, then the rising line, then the sideways line (the L), then the name */
.fl.is-on .fl__dot { scale: 1; transition: scale 0.3s cubic-bezier(0.3, 1.4, 0.5, 1) 0s; }
.fl.is-on .fl__v { scale: 1 1; transition: scale 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
.fl.is-on .fl__h { scale: 1 1; transition: scale 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) 0.65s; }
.fl.is-on .fl__text { opacity: 1; transition: opacity 0.45s ease 0.9s; }
@container (max-width: 640px) { .fl__text { padding: 0.3em 0.55em 0.35em; font-size: calc(0.5625rem * var(--s, 1)); } .fl__text b em, .fl__text small, .fl__dirs { display: none; } }
@media (prefers-reduced-motion: reduce) { .fl__dot, .fl__v, .fl__h, .fl__text { transition-duration: 0.01s !important; transition-delay: 0s !important; } }

/* Map */
.mapbox { display: grid; grid-template-columns: 22.5rem 1fr; min-height: 40rem; border: 1px solid var(--line); background: #fff; }
/* One line at every screen size: tighter side padding and letter spacing, and the text never wraps */
.btn--directions { gap: 0.5rem; padding: 0 0.75rem; font-size: min(0.8125rem, 4.4cqi); letter-spacing: 0.08em; white-space: nowrap; }
.btn--directions svg { flex: none; width: 1rem; height: 1rem; }
.mapbox__side { display: flex; container-type: inline-size; flex-direction: column; gap: 1.25rem; padding: 1.5rem; border-right: 1px solid var(--line); min-width: 0; }
.places { flex: 1; max-height: 27.5rem; overflow-y: auto; border-top: 1px solid var(--line); }
.places li { border-bottom: 1px solid var(--line); }
.places button { display: grid; grid-template-columns: 1fr auto; gap: 2px 0.75rem; width: 100%; padding: 0.8125rem 0.25rem; text-align: left; background: none; border: 0; cursor: pointer; color: var(--ink); }
.places button:hover, .places button.is-on { background: var(--tint); }
.places b { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.places small { grid-column: 1; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.places em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-family: var(--serif); font-size: 1.25rem; color: var(--green); white-space: nowrap; }
.places em small { font-family: var(--sans); font-size: 0.625rem; margin-left: 3px; }
.mapbox__map { position: relative; min-height: 32.5rem; }
#site-map { position: absolute; inset: 0; background: #F1F3F0; }
.map-error { padding: 1.5rem; }
.mapbox__views { position: absolute; top: 1rem; right: 1rem; z-index: 5; display: flex; gap: 0.375rem; padding: 0.25rem; background: #fff; border-radius: 2.5rem; }
.mapbox__views .chip { border: 0; min-height: 2.25rem; }

.pin { width: 0; height: 0; }
.pin__dot { position: absolute; left: 50%; top: 50%; width: 1.125rem; height: 1.125rem; margin: -9px 0 0 -9px; background: var(--red); border: 3px solid #fff; border-radius: 50%; }
.pin__ring { position: absolute; left: 50%; top: 50%; width: 1.125rem; height: 1.125rem; margin: -9px 0 0 -9px; border: 2px solid var(--red); border-radius: 50%; animation: ping 2.2s ease-out infinite; }
@keyframes ping { to { transform: scale(4.2); opacity: 0; } }
.pin__label { position: absolute; left: 50%; bottom: 1.375rem; transform: translateX(-50%); white-space: nowrap; padding: 0.5rem 0.75rem; font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.06em; color: var(--on-dark); background: var(--green); border-bottom: 2px solid var(--red); }
/* MapLibre moves markers with transform, so size changes use width and height, never transform */
.spot { width: 0.875rem; height: 0.875rem; padding: 0; background: var(--green); border: 2px solid #fff; border-radius: 50%; cursor: pointer; }
.spot.is-on { width: 1.25rem; height: 1.25rem; background: var(--copper); }
.spot-tip .maplibregl-popup-content { padding: 0.4375rem 0.6875rem; font: 600 0.75rem/1.3 var(--sans); color: var(--ink); border-radius: 0; }
.maplibregl-map { font-family: var(--sans); }
.maplibregl-ctrl-attrib { font-size: 0.625rem; }



/* Around the corner */
.near { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.6vw, 1.5rem); }
.near__card { padding: 2.25rem 1.75rem 1.5rem; background: #fff; border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s; }
.near__card:hover { border-color: var(--green); transform: translateY(-4px); }
.near__icon { display: grid; place-items: center; width: 4rem; height: 4rem; color: #fff; background: var(--green); border-radius: 50%; }
.near__icon svg { width: 1.75rem; height: 1.75rem; stroke-width: 1.5; }
.near__card h3 { margin-top: 1.5rem; padding-bottom: 0.875rem; font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.15; color: var(--green); border-bottom: 2px solid var(--green); }
.near__card li { position: relative; padding: 0.75rem 0 0.75rem 1.25rem; font-size: 0.9375rem; line-height: 1.4; border-bottom: 1px solid var(--line); }
.near__card li:last-child { border-bottom: 0; }
.near__card li::before { content: ""; position: absolute; left: 2px; top: 1.1875rem; width: 0.4375rem; height: 0.4375rem; background: var(--copper); transform: rotate(45deg); }

/* Merged cards: big roads sits beside everyday needs */
.near--five { grid-template-columns: repeat(5, 1fr); margin-top: clamp(3rem, 6vw, 5rem); }
.near--five .near__card { padding: 1.75rem 1.25rem 1.25rem; }
.near--five .near__card h3 { font-size: 1.375rem; }

/* Tabs (shared): chips switch panels; the new panel fades in */
.chips--center { justify-content: center; }
.chip svg { width: 1rem; height: 1rem; margin-right: 0.5rem; stroke-width: 1.75; }
[data-tab-panel].is-on { animation: tab-in 0.5s ease; }
@keyframes tab-in { from { opacity: 0; } to { opacity: 1; } }
.life .head { margin-bottom: 2.25rem; }
.life__tabs { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.loc__tabs { margin-bottom: 1.25rem; }

/* At a glance: the facts that are not numbers */
.numbers__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3.5rem; margin-top: 2.5rem; }
.numbers__facts li { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.numbers__facts b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.625rem); letter-spacing: 0; text-transform: none; color: #fff; }

/* A day at Anandam: time above each card title */
.tour__card figcaption { flex-wrap: wrap; }
.tour__card time { flex-basis: 100%; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mud); }

/* Masterplan */
.mplan__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
/* Day/night toggle. --v (0 day to 1 night) and --st (knob stretch, 0 at the ends, 1 mid-way) come from js/masterplan.js */
.daynight { position: relative; display: inline-block; transition: opacity 0.3s; }
.daynight.is-off { opacity: 0.4; }
.dn { --v: 0; --st: 0; --w: clamp(7.5rem, 11vw, 9.5rem); --h: 2.75rem; --pad: 0.3125rem; --k: calc(var(--h) - 2 * var(--pad));
  position: relative; display: block; width: var(--w); height: var(--h); overflow: hidden; border-radius: 999px;
  background: color-mix(in oklab, var(--copper), var(--green) calc(var(--v) * 100%)); }
.dn__stars { position: absolute; inset: 0; opacity: var(--v);
  background: radial-gradient(1.5px 1.5px at 22% 30%, #fff 99%, transparent), radial-gradient(1px 1px at 34% 68%, #fff 99%, transparent),
    radial-gradient(1.5px 1.5px at 46% 24%, #fff 99%, transparent), radial-gradient(1px 1px at 14% 58%, #fff 99%, transparent); }
.dn__knob { --kw: calc(var(--k) * (1 + 0.6 * var(--st))); position: absolute; top: var(--pad);
  left: calc(var(--pad) + var(--v) * (var(--w) - 2 * var(--pad) - var(--kw))); width: var(--kw); height: var(--k);
  display: grid; place-items: center; background: #fff; border-radius: 999px; }
.dn__icon { grid-area: 1 / 1; width: 1.25rem; height: 1.25rem; stroke-width: 1.75; }
.dn__icon--sun { color: var(--mud); opacity: calc(1 - 2 * var(--v)); rotate: calc(var(--v) * 180deg); }
.dn__icon--moon { color: var(--green); opacity: calc(2 * var(--v) - 1); rotate: calc((1 - var(--v)) * -40deg); }
.daynight input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; }
.daynight input:active { cursor: grabbing; }
.daynight input:disabled { cursor: not-allowed; }
.daynight:has(input:focus-visible) .dn { outline: 2px solid var(--green); outline-offset: 3px; }
.mplan__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-deep); border-radius: 0.25rem; }
.mplan__stage:has(.mplan__soon:not([hidden])) { background: var(--green-deep) url("../assets/drone/flyover-poster.jpg") center / cover; } /* the blurred poster only sits behind "Releasing soon" */
.mplan__view { position: absolute; inset: 0; z-index: 2; }
/* Crossfade: the view being left stays visible underneath for the length of the fade, so nothing else flashes through */
.mplan__stage .mplan__view[hidden] { display: block !important; z-index: 1; visibility: hidden; transition: visibility 0s 0.5s; }
.mplan__day, .mplan__night { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mplan__night { opacity: 0; }
.mplan__zoom { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; background: #fff; border: 0; cursor: zoom-in; }
.mplan__plan { display: block; }
[data-protect], [data-protect] * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; } /* no selecting, dragging or long-press saving */
.mplan__hint { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; font: 500 0.75rem/1 var(--sans); color: #fff; background: rgba(5, 46, 42, 0.86); }
.mplan__hint svg { width: 1rem; height: 1rem; }
.mplan__soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; color: #fff; background: rgba(5, 46, 42, 0.74); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mplan__soon img { width: 2.5rem; height: 2.5rem; }
.mplan__soon .kicker { margin-top: 1.25rem; color: #fff; }
.mplan__soon-title { margin-top: 0.75rem; font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.1; }
.mplan__soon-text { max-width: 36ch; margin: 0.875rem 0 1.75rem; color: var(--on-dark-muted); }
.mplan .note { margin-top: 1rem; }
.mplan__dialog { width: min(96vw, 110rem); height: min(92vh, 70rem); max-width: none; max-height: none; padding: 0; background: #fff; border: 0; }
.mplan__dialog::backdrop { background: rgba(5, 46, 42, 0.82); }
.mplan__full { width: 100%; height: 100%; overflow: auto; }
.mplan__full canvas { display: block; max-width: none; }
.mplan__close { position: absolute; top: 1rem; right: 1rem; z-index: 1; }
@media (max-width: 640px) {
  .mplan__stage { aspect-ratio: 4 / 3; }
  .mplan__stage:has(.mplan__soon:not([hidden])) { aspect-ratio: 4 / 5; } /* room for the whole "Releasing soon" panel */
  .mplan__bar { flex-direction: column; align-items: flex-start; }
  .numbers__facts { gap: 1.25rem 2rem; }
  .hide-sm { display: none; }
}

/* 10. My Home Group */
.group { padding-bottom: 0; }
.group__top { padding: var(--space) 0 calc(var(--space) * 0.8); }
.group__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 8vw, 7.5rem); align-items: start; }
.group h2 { margin-top: 1.375rem; }
.group__stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 2.75rem; border-top: 1px solid var(--line-dark); }
.group__stats > div { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--line-dark); }
.group__stats dd { font-family: var(--serif); font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.05; color: #fff; }
.group__stats dt { margin-top: 0.375rem; font-size: 0.875rem; color: var(--on-dark-muted); }

/* 11. Register */
.register { position: relative; padding: var(--space) 0; overflow: hidden; }
.register__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32.5rem); gap: clamp(2.5rem, 8vw, 7.5rem); align-items: center; }
.register h2 { margin: 1.5rem 0 1.75rem; font-size: clamp(2.5rem, 6vw, 5rem); }
.perks { margin-top: 2.5rem; display: grid; gap: 0.25rem; max-width: 27.5rem; }
.perks li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: center; padding: 0.75rem 0; border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.perks svg { width: 2.75rem; height: 2.75rem; padding: 0.6875rem; color: #fff; border: 1px solid var(--line-dark); border-radius: 50%; stroke-width: 1.5; }

.form { position: relative; display: grid; gap: 1.375rem; padding: clamp(1.75rem, 4vw, 3rem); color: var(--ink); background: var(--paper); border-radius: 0.375rem; }
.form__head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.375rem; border-bottom: 1px solid var(--line); }
.form__head img { width: 2.125rem; }
.form__title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; color: var(--green); }
.form__sub { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--muted); }
.field label, .field legend { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.field label i { font-style: normal; font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--muted); margin-left: 0.375rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] { width: 100%; height: 3.375rem; padding: 0 1rem; font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0.25rem; transition: border-color 0.2s, box-shadow 0.2s; }
.field input::placeholder { color: #98A5A0; }
.field input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(7, 61, 56, 0.14); }
.field input[aria-invalid="true"], .field__phone:has(input[aria-invalid="true"]) { border-color: #C2362B; }
.field__phone { display: grid; grid-template-columns: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: 0.25rem; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.field__phone:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(7, 61, 56, 0.14); }
.field__phone span { display: grid; place-items: center; padding: 0 1rem; font-weight: 600; color: var(--green); background: var(--tint); border-right: 1px solid var(--line); }
.field__phone input[type="tel"] { border: 0; border-radius: 0; }
.field__phone input[type="tel"]:focus { box-shadow: none; }
.field__err { margin-top: 0.375rem; font-size: 0.8125rem; color: #B3261E; }
.field__err:empty { display: none; }
.field--hp { position: absolute; left: -9999px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 0.25rem; overflow: hidden; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 3.125rem; font-size: 0.875rem; font-weight: 500; color: var(--ink); background: #fff; transition: background-color 0.2s, color 0.2s; }
.seg label:hover span { background: var(--tint); }
.seg input:checked + span { color: var(--on-dark); background: var(--green); }
.seg input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: -4px; }
.consent { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { width: 1.25rem; height: 1.25rem; margin: 1px 0 0; accent-color: var(--green); }
.form__status { font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__status.is-ok { padding: 0.875rem 1rem; color: var(--on-dark); background: var(--green); border-radius: 0.25rem; }
.form__status.is-warn { padding: 0.875rem 1rem; color: var(--ink); background: #FFF4EB; border: 1px solid var(--copper); border-radius: 0.25rem; }
.form__safe { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.form__safe svg { width: 1rem; height: 1rem; color: var(--green); }

/* Footer */
.footer { padding-bottom: 6rem; color: var(--on-dark-muted); background: var(--green-deep); }
.footer__hero { padding: clamp(5.5rem, 11vw, 9.375rem) 0; text-align: center; }
.footer__hero-in { display: grid; justify-items: center; gap: 2.25rem; }
.footer__logo { width: min(32.5rem, 80vw); }
.footer__line { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2; color: var(--on-dark); text-wrap: balance; }
.footer__line em { font-style: normal; color: #fff; }
.footer__cols { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); padding-top: 4.5rem; padding-bottom: 3.5rem; }
.footer__col h4 { margin: 0 0 1.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; }
.footer__col li a { display: inline-block; padding: 0.375rem 0; color: var(--on-dark); text-decoration: none; transition: color 0.2s; }
.footer__col li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.25rem; }
.footer__col p { color: var(--on-dark); line-height: 1.7; }
.footer__link { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 1.125rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; text-decoration: none; }
.footer__link svg, .footer__mhg-link svg { width: 1rem; height: 1rem; vertical-align: -3px; color: #fff; }
.footer__link { transition: color 0.25s; }
.footer__link svg { transition: transform 0.25s, color 0.25s; }
.footer__link:hover, .footer__link:focus-visible, .footer__link:hover svg, .footer__link:focus-visible svg { color: var(--copper); }
.footer__link:hover svg { transform: translate(0.125rem, -0.125rem); }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.social__label { margin-right: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); }
.social__btn { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: #fff; border: 1px solid var(--line-dark); border-radius: 50%; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.social__btn svg { width: 1.125rem; height: 1.125rem; }
.social__btn .icon-fill { fill: currentColor; stroke: none; }
.social__btn:hover, .social__btn:focus-visible { color: var(--green); background: #fff; border-color: #fff; }
.footer__mhg-link { display: flex; align-items: center; gap: 1.375rem; padding: 1.375rem; color: var(--on-dark); text-decoration: none; border: 1px solid var(--line-dark); transition: border-color 0.25s, background-color 0.25s; }
.footer__mhg-link:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.footer__mhg { flex: none; height: 3.5rem; width: auto; }
.footer__mhg-link span { font-size: 0.9375rem; line-height: 1.6; }
.footer__url { display: flex; align-items: center; gap: 0.375rem; white-space: nowrap; } /* the link and its arrow always stay on one line */
.footer__url svg { vertical-align: 0; }
.footer__base { padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.footer__legal summary { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark); cursor: pointer; list-style: none; }
.footer__legal summary::-webkit-details-marker { display: none; }
.footer__legal summary svg { width: 1rem; height: 1rem; transition: transform 0.25s; }
.footer__legal[open] summary svg { transform: rotate(180deg); }
.footer__legal p { margin-top: 1rem; max-width: 120ch; font-size: 0.75rem; line-height: 1.8; }
.footer__copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 1.75rem; font-size: 0.75rem; }

/* Dock: bottom bar after the hero */
.dock { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.625rem var(--gutter); padding-bottom: calc(0.625rem + env(safe-area-inset-bottom)); color: var(--on-dark); background: rgba(5, 46, 42, 0.96); border-top: 1px solid var(--line-dark); transform: translateY(100%); transition: transform 0.35s; }
.dock.is-on { transform: none; }
.dock__brand { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.dock__brand img { width: 6rem; }
.dock__actions { display: flex; align-items: center; gap: 1.5rem; }
.dock__link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.dock__link svg { width: 1.125rem; height: 1.125rem; color: #fff; }
.dock .btn { min-height: 2.75rem; }

/* Motion: scroll progress, word reveals, image wipes, image sliders */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* Hero entrance on page load */
.hero__inner > * { animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__inner > :nth-child(1) { animation-delay: 0.2s; }
.hero__inner > :nth-child(2) { animation-delay: 0.45s; }
.hero__inner > :nth-child(3) { animation-delay: 0.9s; }
.hero__foot { animation: rise 1.2s 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__logo { animation-name: logo-in; }
@keyframes rise { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; transform: none; } }
@keyframes logo-in { from { opacity: 0; transform: scale(0.94); letter-spacing: 0.2em; } to { opacity: 1; transform: none; } }

/* Headings rise word by word (words are wrapped by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w__i { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i) * 45ms); }
.words-in .w__i { transform: none; }

/* Image wipe: a paper curtain lifts off while the photo settles.
   A curtain is used instead of clip-path, because a clipped element never counts as visible to the scroll watcher. */
.wipe { position: relative; overflow: hidden; }
.wipe::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--paper); transform-origin: top; transition: transform 1.3s cubic-bezier(0.7, 0, 0.2, 1); }
.wipe img { transform: scale(1.18); transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wipe.is-in::after { transform: scaleY(0); }
.wipe.is-in img { transform: scale(1); }

/* Crossfade image slider */
.fader { position: relative; overflow: hidden; min-height: 20rem; }
.fader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.fader img.is-on { opacity: 1; transform: scale(1); }
.fader__dots { position: absolute; left: 1.25rem; bottom: 1.125rem; z-index: 2; display: flex; gap: 0.5rem; }
.fader__dots span { width: 1.75rem; height: 2px; background: rgba(255, 255, 255, 0.45); transition: background-color 0.4s; }
.fader__dots span.is-on { background: #fff; }

/* Subtle parallax inside photo frames (js/main.js moves them; here they get 12% extra room) */

/* Gentle lift on cards */
.tour__card img { transition: transform 1s ease; }
.tour__card:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .hero__inner > *, .hero__foot { animation: none; }
  .w__i { transform: none; transition: none; }
  .wipe::after { display: none; }
  .wipe img { transform: none; }
  .fader img { transition: opacity 0.4s; transform: none; }
}
@media (max-width: 960px) {
  .fader { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(1.75rem); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity 0.4s; transform: none; }
  .pin__ring, .hero__bars span.is-on::after { animation: none; }
}

@media (max-width: 1180px) {
  .nav__links { gap: 1.25rem; }
  .nav__links a { font-size: 0.75rem; letter-spacing: 0.04em; }
  .nav__cta { white-space: nowrap; }
}

/* Tablet */
@media (max-width: 960px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 0 0; display: none; flex-direction: column; gap: 0; margin: 0; padding: 1rem var(--gutter) 2rem; background: var(--green); overflow-y: auto; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 1.125rem 0; font-family: var(--serif); font-size: 1.75rem; letter-spacing: 0; text-transform: none; border-bottom: 1px solid var(--line-dark); }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .split, .split--flip, .idea__inner, .group__grid, .register__grid, .head--split { grid-template-columns: 1fr; }
  .split { min-height: 0; }
  .split__img img { aspect-ratio: 4 / 3; height: auto; }
  .split--flip .split__img { order: 0; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__grid > div:not(:nth-child(4n + 1)) { border-left: 0; }
  .numbers__grid > div:nth-child(even) { border-left: 1px solid var(--line-dark); }
  .tour__track { grid-auto-columns: 82vw; }
  .tour__ctrl { justify-content: flex-start; }
  .mapbox { grid-template-columns: 1fr; }
  .mapbox__side { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .mapbox__map { min-height: 27.5rem; }
  .places { max-height: 20rem; }
  .near { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__parent { grid-column: 1 / -1; }
  .dock__brand span { display: none; }
}

/* Tablet only (iPad portrait): show more than one card at a time */
@media (min-width: 641px) and (max-width: 960px) {
  .tour__track { grid-auto-columns: 62vw; }
  .split__img img, .fader { aspect-ratio: 16 / 10; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --nav-h: 3.875rem; }
  body { font-size: 1rem; }
  .intro__cta .btn { width: 100%; }
  .numbers__grid dd { font-size: 2.5rem; }
  .tour__card figcaption { flex-direction: column; gap: 2px; }
  .tour__card span { text-align: left; }
  .near { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__mhg-link { flex-direction: column; align-items: flex-start; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .dock__brand, .dock__link span { display: none; }
  .dock__actions { width: 100%; gap: 0.75rem; }
  .dock .btn { flex: 1; }
  .dock__link { width: 2.75rem; height: 2.75rem; justify-content: center; border: 1px solid var(--line-dark); border-radius: 50%; }
}
