/* Buana Semesta Travel, v4. Direction (see DESIGN.md): quiet, editorial luxury carried by the client's own
   footage. Espresso ink from the logo, warm ivory paper, the logo's mustard kept for the emblem itself and
   toned down to a champagne hairline everywhere else. */

:root {
  --ink: #1E0B00;            /* logo silhouette */
  --espresso: #17110D;       /* dark sections */
  --espresso-2: #241B14;
  --ivory: #F7F3EC;
  --sand: #EEE7DB;
  --white: #FFFDF9;
  --text: #2B211A;
  --muted: #65584D;
  --line: rgba(30, 11, 0, .14);
  --gold: #D2B06A;           /* champagne: the logo mustard (#EFAF1C) desaturated for hairlines on dark */
  --gold-text: #8A5A00;      /* the same family, dark enough for text on light (5.54:1 on ivory) */
  --on-dark: #F3EDE4;
  --on-dark-muted: #BDB0A2;
  --line-dark: rgba(243, 237, 228, .16);
  --shade: 10, 8, 6;
  --error: #8E2A2C;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 2px;
  --r-card: 4px;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 96px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--sans); font-size: 1rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #EBDDBB; color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.section--dark :focus-visible, .cta :focus-visible, .vhero :focus-visible, .site-footer :focus-visible,
.site-header--overlay:not(.is-solid) :focus-visible { outline-color: var(--gold); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 12px 18px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--dark { background: var(--espresso); color: var(--on-dark); }
.section--sand { background: var(--sand); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.01em; margin: 0; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.9rem); }
h2 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.16rem); color: var(--muted); max-width: 56ch; line-height: 1.7; }
.section--dark .lead { color: var(--on-dark-muted); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--tight { margin-bottom: 30px; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.section-head--row > div { display: grid; gap: 18px; max-width: 680px; }

/* Double hairline: the emblem's double ring, drawn as a short rule above each section title */
.rule { display: block; width: 56px; height: 5px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; color: var(--gold-text); }
.section--dark .rule, .cta .rule { color: var(--gold); }

/* ---------- Buttons: a fill that rises from the baseline, and a press on click ---------- */
.btn {
  --fg: var(--ink); --bg: transparent; --bd: currentColor; --fill: var(--ink); --fg-hover: var(--ivory);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: var(--r); border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .9375rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .2s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-io);
}
.btn:hover, .btn:focus-visible { color: var(--fg-hover); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .4s var(--ease); }
.btn:hover .i-ext, .btn:focus-visible .i-ext { transform: translate(2px, -2px); }

.btn--solid { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); --fill: #3A2617; --fg-hover: var(--ivory); }
.btn--line { --fg: var(--ink); --bd: rgba(30, 11, 0, .55); --fill: var(--ink); --fg-hover: var(--ivory); }
.btn--line:hover, .btn--line:focus-visible { --bd: var(--ink); }
.btn--light { --bg: var(--ivory); --fg: var(--ink); --bd: var(--ivory); --fill: var(--gold); --fg-hover: var(--ink); }
.btn--line-light { --fg: var(--on-dark); --bd: rgba(243, 237, 228, .5); --fill: var(--on-dark); --fg-hover: var(--ink); }
.btn--line-light:hover, .btn--line-light:focus-visible { --bd: var(--on-dark); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .9375rem; letter-spacing: .01em;
  color: var(--gold-text); text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) left calc(100% - 10px) / 0% 1px no-repeat,
    linear-gradient(rgba(127,127,127,.45), rgba(127,127,127,.45)) left calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-io);
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px, 100% 1px; }
.section--dark .text-link { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--ink); transition: background-color .4s ease, color .4s ease, height .4s var(--ease), box-shadow .4s ease; }
.site-header--overlay { color: #FFFFFF; }
.site-header--solid, .site-header.is-solid { background: var(--ivory); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid { --header-h: 76px; }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { height: 60px; width: auto; transition: height .4s var(--ease); }
.is-solid .brand img { height: 50px; }
.nav { display: flex; align-items: center; }
.nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 8px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  font-size: .9375rem; font-weight: 500; letter-spacing: .02em; text-decoration: none;
}
.nav-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-io); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }
.site-header--solid .nav-link[aria-current="page"]::after, .is-solid .nav-link[aria-current="page"]::after { background: var(--gold-text); }
.btn--nav { min-height: 46px; padding: 0 24px; font-size: .875rem; --fg: currentColor; --bd: currentColor; --fill: #FFFFFF; --fg-hover: var(--ink); }
.site-header--solid .btn--nav, .is-solid .btn--nav { --fill: var(--ink); --fg-hover: var(--ivory); }
.menu-toggle { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px 0 12px; background: transparent; border: 0; cursor: pointer; font-weight: 600; font-size: .9375rem; letter-spacing: .02em; }
.menu-bars { position: relative; width: 26px; height: 10px; display: block; }
.menu-bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Thin top shade only where the header floats over video, so the links stay readable on bright sky */
.site-header--overlay::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--shade), .64) 0%, rgba(var(--shade), .58) 38%, rgba(var(--shade), .32) 62%, rgba(var(--shade), .11) 84%, rgba(var(--shade), 0) 100%);
  transition: opacity .4s ease;
}
.site-header.is-solid::before, .site-header.menu-open::before { opacity: 0; }

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .site-header.is-solid { --header-h: 68px; }
  .brand img { height: 50px; }
  .is-solid .brand img { height: 44px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ivory); color: var(--ink); padding: 8px var(--gutter) 28px; box-shadow: 0 1px 0 var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links { position: static; transform: none; flex-direction: column; gap: 0; }
  .nav-link { min-height: 58px; padding: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: 0; border-bottom: 1px solid var(--line); }
  .nav-link::after { left: 0; right: auto; width: 32px; bottom: 12px; }
  .nav .btn--nav { margin-top: 22px; min-height: 52px; --fg: var(--ivory); --bg: var(--ink); --bd: var(--ink); --fill: #3A2617; --fg-hover: var(--ivory); }
  .site-header.menu-open { background: var(--ivory); color: var(--ink); }
}

/* ---------- Video hero (home) ---------- */
.vhero { position: relative; height: 100svh; min-height: 560px; max-height: 1100px; overflow: hidden; background: var(--espresso); color: #FFFFFF; }
.vhero-stage { position: absolute; inset: 0; }
.vslide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease-io), visibility 0s linear 1.1s; }
.vslide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease-io), visibility 0s; z-index: 1; }
.vslide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--espresso); }
/* Thin shade at the bottom edge only, for the place names. No band across the picture. */
.vhero-shade {
  position: absolute; inset: auto 0 0 0; height: 300px; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(var(--shade), .66) 0%, rgba(var(--shade), .58) 30%, rgba(var(--shade), .36) 50%, rgba(var(--shade), .14) 72%, rgba(var(--shade), .03) 90%, rgba(var(--shade), 0) 100%);
}

/* Location label over the landmark, and the info card it opens (the only glass surface on the site) */
.vpin { position: absolute; z-index: 3; left: var(--px, 50%); top: var(--py, 40%); width: 0; height: 0; }
.vpin-btn {
  position: absolute; left: 0; top: 0; transform: translate(-14px, -50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: rgba(var(--shade), .66); border: 1px solid rgba(255, 255, 255, .28); color: #FFFFFF;
  font-size: .875rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  opacity: 0; transition: opacity .6s ease .5s, background-color .3s ease, border-color .3s ease;
}
.vslide.is-active .vpin-btn { opacity: 1; }
.vpin-btn:hover { background: rgba(var(--shade), .82); border-color: rgba(255, 255, 255, .5); }
.vpin-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.vpin-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(210, 176, 106, .7); }
.vcard {
  position: absolute; left: -14px; top: 30px; width: 340px; padding: 22px 24px 18px;
  background: rgba(var(--shade), .68); -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-card); color: #FFFFFF;
  opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s linear .5s;
}
.vcard::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge from label to card */
.vpin.is-left .vcard { left: auto; right: -14px; }
.vpin.is-left .vpin-btn { transform: translate(calc(-100% + 14px), -50%); }
.vslide.is-active .vpin-btn[aria-expanded="true"] + .vcard,
.vslide.is-active .vpin.is-hover .vcard { opacity: 1; transform: none; visibility: visible; transition: opacity .6s var(--ease) .9s, transform .6s var(--ease) .9s, visibility 0s linear .9s; }
.vslide.is-active.is-instant .vpin-btn[aria-expanded="true"] + .vcard,
.vslide.is-active .vpin.is-hover .vcard { transition-delay: 0s; }
/* Small plus after the name: the label opens more information (turns into a cross when open) */
.vpin-more { position: relative; width: 10px; height: 10px; margin-left: 2px; flex: none; transition: transform .4s var(--ease); }
.vpin-more::before, .vpin-more::after { content: ""; position: absolute; background: currentColor; }
.vpin-more::before { left: 0; right: 0; top: 4.5px; height: 1px; }
.vpin-more::after { top: 0; bottom: 0; left: 4.5px; width: 1px; }
.vpin-btn[aria-expanded="true"] .vpin-more { transform: rotate(45deg); }
.vcard-place { margin: 0 0 4px; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; color: #E9DFCF; }
.vcard-title { margin: 0; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.1; }
.vcard-title::after { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin: 14px 0 12px; }
.vcard-text { margin: 0; font-size: .9375rem; line-height: 1.6; color: #F1EAE0; }
.vcard-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; color: #FFFFFF; font-weight: 600; font-size: .875rem; text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left calc(100% - 11px) / 100% 1px no-repeat; transition: background-size .45s var(--ease-io);
}
.vcard-link:hover, .vcard-link:focus-visible { background-size: 0% 1px; }

/* Place names along a hairline, active one centered under the pointer (as on indonesia.travel) */
.vnav { position: absolute; z-index: 4; left: 50%; bottom: clamp(26px, 5vh, 52px); transform: translateX(-50%); width: min(920px, 100% - 2 * var(--gutter) - 168px); display: grid; grid-template-columns: 44px 1fr 44px; align-items: end; gap: 12px; }
.vnav-rail { position: relative; height: 92px; overflow: hidden; }
.vnav-line { position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85) 18%, rgba(255,255,255,.85) 82%, rgba(255,255,255,0)); }
.vnav-pointer { position: absolute; left: 50%; top: 15px; width: 0; height: 0; transform: translateX(-50%); border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid #FFFFFF; }
.vnav-track { position: absolute; inset: 0; }
.vnav-item {
  position: absolute; left: 50%; top: 36px; transform: translateX(calc(-50% + var(--offset, 0px)));
  min-height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; white-space: nowrap;
  color: #FFFFFF; font-size: .9375rem; font-weight: 500; letter-spacing: .02em; opacity: 1;
  transition: transform .8s var(--ease-io), opacity .6s ease, font-size .6s var(--ease-io);
}
.vnav-item:hover { opacity: 1; }
.vnav-item.is-active { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: 0; opacity: 1; cursor: default; }
.vnav-item.is-far { opacity: 0; pointer-events: none; }
.vnav-item.no-anim { transition: none; }
.vnav-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; margin-bottom: 8px;
  background: rgba(var(--shade), .3); border: 1px solid rgba(255, 255, 255, .55); color: #FFFFFF;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.vnav-arrow:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.vnav-arrow svg { width: 20px; height: 20px; }

/* Pause and play, with the clip's progress drawn as a ring */
.vplay { position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(26px, 5vh, 52px); width: 48px; height: 48px; margin-bottom: 6px; border-radius: 50%; border: 0; padding: 0; background: rgba(var(--shade), .3); color: #FFFFFF; cursor: pointer; display: grid; place-items: center; }
.vplay > svg:not(.vplay-ring) { width: 18px; height: 18px; position: relative; }
.vplay-ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
.vplay-ring circle { fill: none; stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.vplay-ring .vplay-progress { stroke: #FFFFFF; stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); }
.vplay .i-play { display: none; }
.vplay[aria-pressed="true"] .i-play { display: block; }
.vplay[aria-pressed="true"] .i-pause { display: none; }
.vplay:hover { background: rgba(var(--shade), .55); }

@media (max-width: 767px) {
  .vhero { height: 88svh; min-height: 540px; }
  .vnav { grid-template-columns: 44px 1fr 44px; bottom: 22px; width: calc(100% - 2 * var(--gutter)); }
  .vplay { bottom: auto; top: calc(var(--header-h) + 12px); right: var(--gutter); }
  .vnav-item:not(.is-active) { opacity: 0; pointer-events: none; }
  .vnav-item.is-active { font-size: 1.5rem; }
  /* On phones the card sits above the place names instead of beside the label */
  .vpin { position: static; width: auto; height: auto; }
  .vpin-btn, .vpin.is-left .vpin-btn { left: var(--px, 50%); top: var(--py, 40%); transform: translate(-50%, -50%); z-index: 3; }
  .vcard, .vpin.is-left .vcard { z-index: 3; left: var(--gutter); right: var(--gutter); top: auto; bottom: 148px; width: auto; }
}

/* ---------- Page hero with video or photo (6 Elements, Contact): text sits on the picture ---------- */
.phero { position: relative; height: 88svh; min-height: 600px; max-height: 980px; overflow: hidden; background: var(--espresso); color: #FFFFFF; display: flex; align-items: flex-end; }
.phero--short { height: 74svh; min-height: 540px; max-height: 820px; }
.phero-media { position: absolute; inset: 0; }
.phero-media video, .phero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Thin shade from the lower left corner only, where the words are. The rest of the picture stays clear. */
.phero-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(var(--shade), .66) 0%, rgba(var(--shade), .56) 25%, rgba(var(--shade), .36) 45%, rgba(var(--shade), .13) 62%, rgba(var(--shade), 0) 78%),
    linear-gradient(90deg, rgba(var(--shade), .34) 0%, rgba(var(--shade), .2) 34%, rgba(var(--shade), .05) 58%, rgba(var(--shade), 0) 72%);
}
.phero-content { position: relative; z-index: 3; display: grid; gap: 20px; padding-bottom: clamp(56px, 9vh, 104px); }
.phero h1 { max-width: 15ch; color: #FFFFFF; text-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 2px 24px rgba(0, 0, 0, .25); }
.phero .lead { color: #F3EEE6; max-width: 52ch; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.phero .rule { color: var(--gold); }
.phero .btn-row { margin-top: 8px; }
.phero-cap { position: absolute; z-index: 3; right: calc(var(--gutter) + 64px); bottom: 34px; margin: 0; font-size: .8125rem; font-weight: 500; letter-spacing: .02em; color: #FFFFFF; text-align: right; max-width: 46ch; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.phero .vplay { bottom: 24px; margin: 0; }
.phero-content .rule { margin-bottom: 2px; }
@media (max-width: 767px) {
  .phero { height: 92svh; min-height: 560px; }
  .phero--short { height: 80svh; min-height: 520px; }
  .phero-cap { display: none; }
  .phero-shade { background: linear-gradient(0deg, rgba(var(--shade), .74) 0%, rgba(var(--shade), .66) 30%, rgba(var(--shade), .52) 50%, rgba(var(--shade), .3) 68%, rgba(var(--shade), .1) 82%, rgba(var(--shade), 0) 92%); }
  .phero h1 { font-size: clamp(2.3rem, 10vw, 2.9rem); }
  .phero .vplay { top: calc(var(--header-h) + 12px); bottom: auto; }
}

/* Mouse parallax: the picture drifts a few pixels with the cursor. Scaled up slightly so no edge shows. */
[data-parallax] { will-change: transform; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(var(--ms, 1)); }

/* ---------- Home intro (the welcome line, right under the video) ---------- */
.intro { padding-block: clamp(80px, 10vw, 136px) clamp(48px, 6vw, 72px); text-align: center; }
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.greeting { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--gold-text); }
.intro h1 { max-width: 18ch; color: var(--ink); }
.intro .lead { margin-inline: auto; }
.intro .btn-row { margin-top: 10px; }
.facts { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-size: .9375rem; color: var(--muted); width: min(720px, 100%); }
.facts li { padding: 0 22px; }
.facts li + li { border-left: 1px solid var(--line); }

/* ---------- About, with the client's crest ---------- */
.section--about { padding-top: clamp(40px, 6vw, 80px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.about-copy { display: grid; gap: 22px; }
.about-copy p { color: var(--muted); max-width: 52ch; margin: 0; }
.about-copy .signoff { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.3; color: var(--ink); max-width: 22ch; }
.since { display: flex; align-items: baseline; gap: 16px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 420px; }
.since strong { font-family: var(--serif); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--ink); }
.since span { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.crest { position: relative; margin: 0; background: var(--white); aspect-ratio: 1 / 1; width: 100%; max-width: 540px; justify-self: end; display: grid; place-items: center; padding: 15%; }
.crest::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(138, 90, 0, .35); pointer-events: none; }
.crest::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(138, 90, 0, .18); pointer-events: none; }
.crest img { width: 100%; max-width: 340px; }

.strengths { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.strength { padding: 36px 36px 4px 0; }
.strength + .strength { padding-left: 36px; border-left: 1px solid var(--line); }
.strength .icon { width: 34px; height: 34px; color: var(--gold-text); margin-bottom: 20px; }
.strength h3 { font-size: 1.6rem; margin-bottom: 10px; }
.strength p { color: var(--muted); }

/* ---------- 6 Elements explorer ---------- */
.explorer { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tablist { display: grid; border-top: 1px solid var(--line-dark); }
.tab {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; text-align: left; width: 100%;
  padding: 18px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); cursor: pointer; color: var(--on-dark-muted);
  transition: color .3s ease;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-io); }
.tab:hover { color: var(--on-dark); }
.tab[aria-selected="true"] { color: var(--on-dark); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-num { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--gold); }
.tab-title { display: block; font-weight: 500; font-size: 1rem; line-height: 1.45; }
.tab-hint { display: block; font-size: .875rem; color: #A99B8C; margin-top: 2px; line-height: 1.45; }
.tab[aria-selected="true"] .tab-hint { color: var(--on-dark-muted); }

.panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 3.6vw, 48px); align-items: start; }
.panel[hidden] { display: none; }
.panel-media { margin: 0; }
.panel-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--espresso-2); }
.panel-media figcaption { margin-top: 12px; font-size: .8125rem; color: #A99B8C; letter-spacing: .01em; }
.panel.is-entering .panel-media img { animation: fadeIn .8s var(--ease) both; }
.panel.is-entering .panel-body { animation: rise .7s var(--ease) .08s both; }
.panel-body { display: grid; gap: 16px; padding-top: 8px; }
.panel-body h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 500; color: var(--on-dark); }
.panel-body p { color: var(--on-dark-muted); margin: 0; }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 10px; }
.explorer-foot { margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line-dark); display: flex; justify-content: flex-end; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; background: currentColor; opacity: .3; }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--gold-text); }
.timeline .when { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.2rem; color: var(--gold-text); line-height: 1.3; }
.timeline .what { display: block; line-height: 1.55; }
.panel-media--timeline { aspect-ratio: 4 / 5; display: flex; align-items: center; padding: clamp(28px, 3.6vw, 48px); background: var(--espresso-2); color: var(--on-dark); border-radius: var(--r); }
.panel-media--timeline .timeline li::before { background: var(--espresso-2); border-color: var(--gold); }
.panel-media--timeline .timeline .when { color: var(--gold); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.services-media { margin: 0; }
.services-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.services-media figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.service-list { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: 30px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-list .icon { width: 28px; height: 28px; color: var(--gold-text); margin-top: 4px; }
.service-list h3 { font-size: 1.5rem; margin-bottom: 8px; }
.service-list p { color: var(--muted); }

/* ---------- Pictures teaser ---------- */
.teaser { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, clamp(190px, 19vw, 270px)); gap: 16px; }
.teaser-card { position: relative; display: block; overflow: hidden; border-radius: var(--r); text-decoration: none; color: #FFFFFF; background: #D9CFC0; }
.teaser-card:first-child { grid-row: span 2; }
.teaser-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.teaser-card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 16px; font-size: .9375rem; font-weight: 500; background: linear-gradient(180deg, rgba(var(--shade), 0), rgba(var(--shade), .5) 50%, rgba(var(--shade), .78)); }
.teaser-card:hover img, .teaser-card:focus-visible img { transform: scale(1.04); }

/* ---------- Closing call to action ---------- */
.cta { background: var(--espresso); color: var(--on-dark); padding-block: clamp(80px, 10vw, 128px); text-align: center; }
.cta-inner { display: grid; justify-items: center; gap: 22px; }
.cta h2 { max-width: 18ch; }
.cta p { color: var(--on-dark-muted); max-width: 52ch; margin: 0; }
.cta .btn-row { margin-top: 12px; }

/* ---------- 6 Elements page ---------- */
.exp-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.exp-layout > * { min-width: 0; }
.exp-index { position: sticky; top: calc(var(--header-h) + 32px); }
.exp-index p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-text); margin-bottom: 10px; }
.exp-index ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.exp-index a { display: flex; align-items: center; min-height: 44px; padding-left: 18px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--muted); font-size: .9375rem; line-height: 1.35; transition: color .25s ease, border-color .25s ease; }
.exp-index a:hover { color: var(--ink); }
.exp-index a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--gold-text); }

.element { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.element:first-child { border-top: 0; padding-top: 0; }
.element-num { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--gold-text); margin-bottom: 12px; }
.element h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); margin-bottom: 20px; }
.element p { color: var(--muted); }
.element p strong { color: var(--text); font-weight: 600; }
.element-media { margin: 0; }
.element-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--sand); }
.element-media figcaption { font-size: .8125rem; color: var(--muted); margin-top: 12px; }
.element--reverse .element-visual { order: -1; }
.element .add-trip { margin-top: 28px; }
.element-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(28px, 3.6vw, 44px); }
.element-aside h3 { font-size: 1.5rem; margin-bottom: 24px; }
.element-aside .timeline li::before { background: var(--white); }

.gallery-section { scroll-margin-top: calc(var(--header-h) + 16px); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(190px, 19vw, 270px); gap: 16px; }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: #D9CFC0; text-align: left; color: #FFFFFF; }
.gallery button:nth-child(1), .gallery button:nth-child(5) { grid-row: span 2; }
.gallery button:nth-child(6) { grid-column: span 2; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 16px; font-size: .9375rem; font-weight: 500; background: linear-gradient(180deg, rgba(var(--shade), 0), rgba(var(--shade), .5) 50%, rgba(var(--shade), .78)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zoom-hint { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid rgba(255,255,255,.6); opacity: 0; transition: opacity .35s ease; }
.zoom-hint svg { width: 15px; height: 15px; }
.gallery button:hover .zoom-hint, .gallery button:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }
.credit { font-size: .8125rem; color: var(--muted); margin-top: 18px; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; color: #FFFFFF; }
.lightbox::backdrop { background: rgba(14, 10, 8, .92); }
.lightbox[open] { animation: fadeIn .4s var(--ease); }
.lightbox figure { margin: 0; position: relative; min-height: 200px; display: grid; place-items: center; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { text-align: center; margin-top: 16px; font-family: var(--serif); font-size: 1.3rem; }
.lb-status { position: absolute; inset: 0; display: grid; place-items: center; color: #E8DDD0; pointer-events: none; }
.lb-status[hidden] { display: none; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #FFFFFF; cursor: pointer; display: grid; place-items: center; transition: background-color .3s ease, color .3s ease; }
.lb-btn:hover { background: #FFFFFF; color: var(--ink); }
.lb-btn svg { width: 20px; height: 20px; }
.lightbox-close { position: fixed; top: 18px; right: 18px; }
.lightbox-nav { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-side { display: grid; gap: 40px; }
.contact-side h2 { font-size: clamp(1.9rem, 2.8vw, 2.4rem); margin-bottom: 18px; }
.person-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.person-card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 2px; padding: 22px 22px 18px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); text-decoration: none; color: var(--ink);
  transition: border-color .4s ease, color .45s var(--ease);
}
.person-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-io); }
.person-card:hover, .person-card:focus-visible { color: var(--ivory); border-color: var(--ink); }
.person-card:hover::before, .person-card:focus-visible::before { transform: scaleY(1); }
.person-card small { font-size: .8125rem; letter-spacing: .03em; color: inherit; opacity: .78; }
.person-card strong { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.2; }
.person-card span { font-size: .9375rem; }
.person-card .go { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .875rem; }
.person-card .go svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.person-card:hover .go svg { transform: translate(2px, -2px); }

.details { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.details > li { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.details .icon { width: 22px; height: 22px; color: var(--gold-text); margin-top: 3px; }
.details h3 { font-family: var(--sans); font-weight: 600; font-size: .875rem; letter-spacing: .03em; color: var(--muted); margin-bottom: 4px; line-height: 1.5; }
.details p { margin: 0; }
.details .value { color: var(--ink); font-size: 1.0625rem; font-weight: 500; overflow-wrap: anywhere; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--gold-text); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.is-done { color: var(--ink); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(28px, 4vw, 52px); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 12px; }
.form-card > p { color: var(--muted); margin-bottom: 30px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field legend { padding: 0; margin-bottom: 10px; }
.field .hint { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r); border: 1px solid rgba(30, 11, 0, .22);
  background: var(--ivory); transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-text); background: var(--white); box-shadow: 0 0 0 3px rgba(138, 90, 0, .18); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.error-msg { color: var(--error); font-size: .875rem; font-weight: 500; }
.error-msg[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 14px; border-radius: var(--r); border: 1px solid rgba(30, 11, 0, .18); background: var(--ivory); cursor: pointer; font-size: .9375rem; line-height: 1.35; transition: border-color .25s ease, background-color .25s ease; }
.check:hover { border-color: rgba(30, 11, 0, .45); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin: 0; }
.check:has(input:checked) { border-color: var(--ink); background: #F1E8D6; }
.check.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(138, 90, 0, 0); } 30% { box-shadow: 0 0 0 4px rgba(138, 90, 0, .3); } }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-note { font-size: .875rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: #F1E8D6; border: 1px solid rgba(138, 90, 0, .35); color: var(--ink); font-size: .9375rem; }
.form-status[hidden] { display: none; }
.form-status a { font-weight: 600; color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; visibility: hidden; background: var(--ink); color: var(--ivory); padding: 14px 20px; border-radius: var(--r); font-weight: 500; font-size: .9375rem; line-height: 1.4; display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.toast svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: clamp(64px, 8vw, 96px) 28px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 48px; }
.footer-brand img { width: 120px; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
.site-footer h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--on-dark); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { min-height: 44px; display: flex; align-items: center; }
.site-footer li.plain { min-height: 0; padding-top: 10px; line-height: 1.6; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; background: linear-gradient(currentColor, currentColor) left calc(100% - 11px) / 0% 1px no-repeat; transition: background-size .45s var(--ease-io), color .25s ease; }
.site-footer li a:hover { color: var(--on-dark); background-size: 100% 1px; }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8125rem; color: #B3A595; }

/* ---------- Page transition: a dark curtain with the emblem and a thin gold progress line.
   It covers the page until the hero video or photo and the fonts are ready, then lifts.
   Clicking a link to another page lowers it again before the browser leaves. ---------- */
.pt { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--espresso); color: var(--on-dark); }
.js .pt { display: grid; animation: ptFailsafe 0s linear 7s forwards; }
.pt-inner { display: grid; justify-items: center; gap: 28px; animation: ptLogoIn .9s var(--ease) both; }
.pt-logo { width: 120px; height: auto; }
.pt-bar { position: relative; display: block; width: 140px; height: 1px; background: rgba(243, 237, 228, .18); overflow: hidden; }
.pt-fill { position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--pt-progress, .08)); transform-origin: left; transition: transform .6s var(--ease); }
.pt.is-leaving { transform: translateY(-100%); transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.pt.is-leaving .pt-inner { opacity: 0; transform: translateY(-24px); transition: opacity .45s ease, transform .6s var(--ease); }
.pt.is-gone { display: none !important; }
.pt.is-entering { display: grid; transform: translateY(100%); animation: none; }
.pt.is-entering.is-covering { transform: none; transition: transform .7s cubic-bezier(.76, 0, .24, 1); }
.pt.is-entering .pt-inner { animation: none; opacity: 0; }
.pt.is-entering.is-covering .pt-inner { opacity: 1; transition: opacity .4s ease .35s; }
@keyframes ptLogoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* If a script ever fails, the curtain still gets out of the way */
@keyframes ptFailsafe { to { visibility: hidden; } }
/* The page underneath settles in as the curtain lifts: the one entrance animation per page */
.js .phero-content > *, .js .vnav, .js .vplay { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js:not(.is-ready) .phero-content > *, .js:not(.is-ready) .vnav { opacity: 0; transform: translateY(16px); }
.js:not(.is-ready) .vnav { transform: translate(-50%, 16px); }
.js:not(.is-ready) .vplay { opacity: 0; }
.js .phero-content > :nth-child(2) { transition-delay: .08s; }
.js .phero-content > :nth-child(3) { transition-delay: .16s; }
.js .phero-content > :nth-child(4) { transition-delay: .24s; }
.js .vnav { transition-delay: .2s; }

/* ---------- Motion: one entrance per page, everything else answers the user ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .tablist { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .tab-hint { display: none; }
}
@media (max-width: 960px) {
  .about-grid, .services-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .crest { aspect-ratio: auto; justify-self: stretch; max-width: none; padding: 56px 22%; }
  .strengths { grid-template-columns: 1fr; }
  .strength, .strength + .strength { padding: 28px 0; border-left: 0; }
  .strength + .strength { border-top: 1px solid var(--line); }
  .services-media img { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .teaser { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 210px; }
  .teaser-card:first-child { grid-row: span 1; grid-column: span 2; }

  .exp-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .exp-index { top: var(--header-h); z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter); background: var(--ivory); border-bottom: 1px solid var(--line); }
  .exp-index p { display: none; }
  .exp-index ol { display: flex; gap: 24px; border: 0; overflow-x: auto; scrollbar-width: none; }
  .exp-index ol::-webkit-scrollbar { display: none; }
  .exp-index a { white-space: nowrap; margin: 0; padding: 0; border: 0; border-bottom: 1px solid transparent; min-height: 52px; font-size: .9375rem; }
  .exp-index a.is-active { border-bottom-color: var(--gold-text); }
  .element, .gallery-section { scroll-margin-top: calc(var(--header-h) + 64px); }
}
@media (max-width: 720px) {
  .section { padding-block: clamp(64px, 14vw, 88px); }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel-media img, .panel-media--timeline { aspect-ratio: 4 / 3; }
  .panel-media--timeline { aspect-ratio: auto; }
  .element, .element--reverse { grid-template-columns: minmax(0, 1fr); }
  .element--reverse .element-visual { order: 0; }
  .element-media img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .gallery button:nth-child(1), .gallery button:nth-child(5) { grid-row: auto; }
  .gallery button:nth-child(6) { grid-column: auto; }
  .explorer-foot { justify-content: flex-start; }
  .facts { flex-direction: column; align-items: center; gap: 6px; }
  .facts li + li { border-left: 0; }
}
@media (max-width: 560px) {
  .tablist { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  .checks, .field-row, .person-cards, .segmented { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head--row .btn { width: 100%; }
  .teaser { grid-auto-rows: 170px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pt.is-leaving { transform: none; opacity: 0; transition: opacity .01ms; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
