/* ==========================================================================
   David Aguilar Photography — stylesheet
   Instrument Serif (titles) + Inter (text & navigation)
   ========================================================================== */

:root {
  --bg: #0e0e0d;
  --bg-2: #131311;
  --bg-3: #1a1a18;
  --fg: #ebe7e0;
  --fg-2: #b5b0a7;
  --muted: #807b73;
  --accent: #ece1b4;                     /* second color: pale, bright, low-saturation yellow */
  --accent-line: rgba(236, 225, 180, 0.5);
  --line: rgba(235, 231, 224, 0.12);
  --line-2: rgba(235, 231, 224, 0.24);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4vw, 64px);
  --header-h: 76px;
  --max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .faq__a a, .eyebrow a { border-bottom: 1px solid var(--line-2); transition: border-color 0.3s; }
p a:hover, .faq__a a:hover, .eyebrow a:hover { border-color: var(--fg); }
button, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 8px 14px; background: var(--fg); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.ico { width: 16px; height: 16px; flex: none; }

/* --------------------------------------------------------------- type */
.eyebrow { font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-2); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; letter-spacing: -0.005em; }
.lead { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.4; color: var(--fg); max-width: 32em; }
.section p { color: var(--fg-2); }
.section .lead { color: var(--fg); }
.section p + p { margin-top: 1.1em; }
.split-line { overflow: clip; padding-bottom: 0.1em; margin-bottom: -0.1em; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--line-2); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; transition: border-color 0.3s, gap 0.4s var(--ease-out); }
.link-arrow:hover { border-color: var(--fg); gap: 14px; }

/* --------------------------------------------------------------- media */
.media { position: relative; overflow: hidden; background: var(--bg-3); }
.media::before { content: ""; position: absolute; inset: -10%; background: var(--lqip) center / cover no-repeat; filter: blur(22px); transform: scale(1.1); transition: opacity 1s var(--ease-out); }
.media > img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s var(--ease-out), transform 1.2s var(--ease-out), filter 0.6s; }
.media.is-loaded > img { opacity: 1; }
.media.is-loaded::before { opacity: 0; }
html:not(.js) .media > img { opacity: 1; }

/* --------------------------------------------------------------- grain / preloader / curtain */
.grain { pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: 0.04; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(3%, 1%); } }
.preloader, .curtain { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: var(--bg); pointer-events: none; }
.is-first .preloader { display: grid; }
.is-arriving .curtain, .curtain.is-active { display: grid; }
.curtain.is-active { pointer-events: all; }
.curtain { background: var(--bg-2); }
.preloader__logo { width: min(300px, 60vw); clip-path: inset(0 100% 0 0); }
.preloader__bar { position: absolute; left: 50%; bottom: 14vh; width: 110px; height: 1px; margin-left: -55px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.curtain__title { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 60px); line-height: 1; opacity: 0; }

/* --------------------------------------------------------------- header + nav */
.header { position: fixed; inset: 0 0 auto; z-index: 120; height: var(--header-h); display: flex; align-items: center; gap: 32px; padding-inline: var(--pad); transition: background-color 0.5s, border-color 0.5s, backdrop-filter 0.5s; border-bottom: 1px solid transparent; }
.header::before { content: ""; position: absolute; inset: 0 0 -50px; z-index: -1; background: linear-gradient(to bottom, rgba(14, 14, 13, 0.6), rgba(14, 14, 13, 0)); pointer-events: none; transition: opacity 0.5s; }
.header.is-solid { background: rgba(14, 14, 13, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
.header.is-solid::before { opacity: 0; }
.header__logo { flex: none; }
.header__logo img { width: 116px; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 28px); }
.nav__item { position: relative; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-size: 11px; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(235, 231, 224, 0.8); transition: color 0.3s; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav__link:hover, .nav__link[aria-current] { color: var(--fg); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.has-sub .nav__link::after { right: 14px; }
.chev { width: 8px; height: 6px; opacity: 0.7; transition: transform 0.4s var(--ease-out); }
.has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }
.nav__sub { position: absolute; top: 100%; left: -18px; min-width: 230px; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.35s, transform 0.45s var(--ease-out), visibility 0.35s; }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub ul { padding: 10px 0; background: rgba(19, 19, 17, 0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.nav__sub a { display: block; padding: 9px 18px; font-size: 13px; letter-spacing: 0.02em; color: var(--fg-2); transition: color 0.25s, padding 0.4s var(--ease-out); }
.nav__sub a:hover, .nav__sub a[aria-current] { color: var(--fg); padding-left: 22px; }

/* language switch EN / ES */
.lang { display: flex; align-items: center; gap: 6px; flex: none; font-size: 11px; letter-spacing: 0.15em; }
.lang span { color: rgba(235, 231, 224, 0.3); }
.lang a { padding: 10px 2px; color: rgba(235, 231, 224, 0.5); transition: color 0.3s; }
.lang a:hover, .lang a[aria-current] { color: var(--fg); }
.burger { display: none; position: relative; width: 40px; height: 40px; margin-left: auto; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1px; background: var(--fg); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.mnav-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.mnav-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 16px) var(--pad) 32px; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.mnav-open .mnav { opacity: 1; visibility: visible; }
.mnav__list > li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.mnav__link { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.mnav__link[aria-current] { font-style: italic; }
.mnav__sub { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.mnav__sub a { font-size: 13px; color: var(--fg-2); }
.mnav__social { margin-top: 28px; }

/* --------------------------------------------------------------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 24px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease), border-color 0.5s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn:hover::before { transform: scaleY(1); }
.btn--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--solid::before { background: var(--bg-3); }
.btn--solid:hover { color: var(--fg); }
.btn .ico { transition: transform 0.4s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* --------------------------------------------------------------- home hero */
.hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; background: #0a0a09; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; }
/* the stage overhangs the screen by 4% on each side: room for the sideways drift, never at the top */
.hero__stage { position: absolute; inset: 0 -4%; will-change: transform; }
.hero__slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.hero__slide.is-active { visibility: visible; }
html:not(.js) .hero__slide:first-child { visibility: visible; opacity: 1; }
.hero__img { position: absolute !important; inset: 0; }
/* framing: each photo sets --pos (x y). y = 0% keeps the summits; crops happen at the bottom / sides */
.hero__img > img { object-position: var(--pos, 50% 0%); transition: opacity 0.6s var(--ease-out); }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 14, 13, 0.45) 0%, rgba(14, 14, 13, 0) 25%, rgba(14, 14, 13, 0) 60%, rgba(14, 14, 13, 0.72) 100%); }
.hero__ui { position: absolute; left: 0; right: 0; bottom: 34px; max-width: none; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.hero__caption { display: flex; flex-direction: column; gap: 4px; justify-self: start; }
.hero__caption .eyebrow { font-size: 10px; }
.hero__name { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1; }
.hero__caption:hover .hero__name { font-style: italic; }
.hero__bars { display: flex; gap: 6px; padding-bottom: 6px; }
.hero__bar { position: relative; width: clamp(24px, 3vw, 44px); height: 14px; }
.hero__bar::before, .hero__bar i { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.hero__bar i { background: var(--fg); transform: scaleX(0); transform-origin: left; }
.hero__bar.is-done i { transform: scaleX(1); }
.hero__count { justify-self: end; padding-bottom: 4px; font-size: 11px; letter-spacing: 0.2em; color: var(--fg-2); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- home sections */
.statement { padding-block: clamp(100px, 16vh, 190px); border-top: 1px solid var(--line); }
.statement__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; max-width: 1240px; margin-inline: auto; }
.statement__portrait { width: var(--ph, clamp(140px, 16vw, 220px)); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 7px var(--bg), 0 0 0 8px var(--line); }
.statement__img { width: 100%; height: 100%; border-radius: 50%; }
.statement__text { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 38px); line-height: 1.3; max-width: 26em; }
.statement__by { margin-top: 22px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* home: film */
.film { padding-top: 0; margin-top: calc(-1 * clamp(60px, 11vh, 130px)); }
.film__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: clamp(18px, 2.4vw, 32px); }
.film__frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.film__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity 0.6s; opacity: 0.86; }
.film__play:hover img, .film__play:focus-visible img { transform: scale(1.03); opacity: 1; }
.film__btn { position: absolute; left: 50%; top: 50%; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; margin: 0; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); background: rgba(14, 14, 13, 0.35); color: #fff; backdrop-filter: blur(6px); transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-out); }
.film__btn svg { width: 38%; height: 38%; margin-left: 6%; }
.film__play:hover .film__btn, .film__play:focus-visible .film__btn { background: #fff; color: #0e0e0d; transform: translate(-50%, -50%) scale(1.06); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.section-head .link-arrow { margin-top: 0; }
.cats { padding-block: clamp(90px, 14vh, 160px); }
.services + .cats { border-top: 1px solid var(--line); }
.cats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { display: block; }
.cat__media { aspect-ratio: 4 / 5; overflow: hidden; }
.cat__img { height: 100%; }
.cat__img > img { filter: brightness(0.9); }
.cat:hover .cat__img > img { transform: scale(1.04); filter: brightness(1.05); }
.cat__meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.cat__title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.cat:hover .cat__title { font-style: italic; }
.cat__count { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; }
.tile { position: relative; display: block; height: 64vh; min-height: 420px; overflow: hidden; border-top: 1px solid var(--line); }
.tile:nth-child(odd) { border-right: 1px solid var(--line); }
.tile__media { position: absolute; inset: -10% 0; }
.tile__img { position: absolute !important; inset: 0; }
.tile__img > img { filter: brightness(0.6); }
.tile:hover .tile__img > img { transform: scale(1.03); filter: brightness(0.78); }
.tile__inner { position: absolute; inset: auto 0 0; padding: 0 var(--pad) 40px; }
.tile__title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 54px); line-height: 1; }
.tile__sub { margin-top: 10px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
.tile__arrow { position: absolute; right: var(--pad); bottom: 44px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background 0.4s, color 0.4s; }
.tile:hover .tile__arrow { background: var(--fg); color: var(--bg); }

/* --------------------------------------------------------------- page hero */
.phero { position: relative; height: 78svh; min-height: 480px; overflow: hidden; display: flex; align-items: flex-end; }
.phero--small { height: 58svh; min-height: 400px; }
.phero__media { position: absolute; inset: 0; }
.phero__img { position: absolute !important; inset: 0; }
.phero__img > img { object-position: var(--pos, 50% 50%); transform-origin: var(--pos, 50% 50%); }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 13, 0.45) 0%, rgba(14, 14, 13, 0) 30%, rgba(14, 14, 13, 0.1) 55%, rgba(14, 14, 13, 0.8) 100%); }
.phero__inner { position: relative; z-index: 2; padding-bottom: 8vh; }
.phero__title { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 88px); line-height: 1; letter-spacing: -0.01em; max-width: 16ch; text-wrap: balance; }

/* --------------------------------------------------------------- generic sections */
.section { padding-block: clamp(70px, 11vh, 140px); }
.section + .section { padding-top: 0; }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: 6vw; align-items: start; }
.split__title { position: sticky; top: calc(var(--header-h) + 24px); }
.prose-cols { display: grid; grid-template-columns: 5fr 6fr; gap: 32px 6vw; align-items: start; }
.prose-cols p { max-width: 40em; }
.intro .lead { max-width: 30em; }
/* tutorials: product box on the dark background */
.course { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 6vw, 110px); }
.course__box { position: relative; }
.course__box::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, rgba(150, 170, 190, 0.16), rgba(150, 170, 190, 0) 100%); filter: blur(30px); pointer-events: none; }
.course__box img { position: relative; display: block; width: 100%; max-width: 400px; height: auto; margin-inline: auto; }
.course__body .eyebrow { margin-bottom: 18px; }
.course__body .lead { max-width: 28em; margin-bottom: 30px; }
@media (max-width: 899px) {
  .course { grid-template-columns: 1fr; }
  .course__box img { max-width: 280px; }
}

.features { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 28px 24px 0 0; }
.feature + .feature { padding-left: 24px; border-left: 1px solid var(--line); }
.feature__title { margin-bottom: 10px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; }
.feature p { font-size: 14px; }

.numlist { border-top: 1px solid var(--line); }
.numlist li { display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.numlist__n { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); padding-top: 3px; }
.checklist { border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 220px 1fr; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.checklist li:not(:has(strong)) { grid-template-columns: 1fr; }
.checklist strong { font-weight: 400; color: var(--fg); }
.note { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; }

.lessons { display: grid; gap: clamp(80px, 13vh, 160px); }
.lesson { display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; align-items: center; max-width: var(--max); margin: 0 auto; width: 100%; padding-inline: var(--pad); }
.lesson--flip { grid-template-columns: 6fr 5fr; }
.lesson--flip .lesson__media { order: 2; }
.lesson__media { max-height: 78vh; overflow: hidden; }
.lesson__img > img { max-height: 78vh; }
.lesson__ba { width: min(100%, calc(78vh * var(--ar))); margin-inline: auto; }
.lesson__media:has(.lesson__ba) { max-height: none; overflow: visible; }
.lesson__title { margin: 12px 0 18px; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; }

.price__card { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(44px, 7vw, 96px) clamp(22px, 5vw, 80px); border: 1px solid var(--line); }
.price__value { font-family: var(--serif); font-size: clamp(56px, 7vw, 104px); line-height: 1; margin-bottom: 20px; color: var(--fg) !important; }
.price__card > p:not(.price__value) { margin-inline: auto; max-width: 34em; }
.price__card .actions { justify-content: center; }
.specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; margin-top: 36px; }
.spec dt { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin-top: 4px; font-family: var(--serif); font-size: 19px; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 12px; height: 12px; margin-top: 8px; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--fg); transition: transform 0.4s var(--ease); }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 22px; max-width: 44em; }

.portrait-block { display: grid; grid-template-columns: 4fr 6fr; gap: 6vw; align-items: start; }
.portrait-block__media { position: sticky; top: calc(var(--header-h) + 24px); }
.portrait-block__body .h2 { margin-bottom: 26px; }
.portrait-block__body .lead { margin-bottom: 26px; }

.awards { border-top: 1px solid var(--line); }
.awards li { display: grid; grid-template-columns: 80px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.awards__y { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.sponsors { border-top: 1px solid var(--line); }
.sponsor { position: relative; display: block; padding: 26px 70px 26px 0; border-bottom: 1px solid var(--line); }
.sponsor__name { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.sponsor__logo { flex: none; height: 30px; width: auto; max-width: 110px; object-fit: contain; }
.sponsor p { color: var(--fg-2); }
.sponsor__arrow { position: absolute; right: 0; top: 50%; margin-top: -22px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background 0.4s, color 0.4s; }
.sponsor:hover .sponsor__arrow { background: var(--fg); color: var(--bg); }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tier { padding: 34px 26px 40px 0; }
.tier + .tier { padding-left: 26px; border-left: 1px solid var(--line); }
.tier__name { font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.tier__price { margin: 26px 0 18px; display: flex; align-items: baseline; gap: 10px; }
.tier__amount { font-family: var(--serif); font-size: clamp(44px, 4vw, 62px); line-height: 1; color: var(--fg); }
.tier__dur { font-size: 12px; letter-spacing: 0.1em; color: var(--fg-2); }
.tier__text { font-size: 14px; }

.mapcards { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.mapcard { display: block; }
.mapcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.mapcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(14, 14, 13, 0) 30%, rgba(14, 14, 13, 0.55) 100%); pointer-events: none; }
.mapcard__product { position: absolute; z-index: 2; right: 5%; bottom: -3%; width: 52%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); transition: transform 1s var(--ease-out); }
.mapcard:hover .mapcard__product { transform: translateY(-4%) rotate(-1.5deg); }
.mapcard__text { margin-top: 10px; max-width: 30em; }
.mapcard__img { height: 100%; }
.mapcard:hover .mapcard__img > img { transform: scale(1.03); }
.mapcard__body { position: relative; padding: 22px 70px 0 0; }
.mapcard__title { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; }
.mapcard__price { margin-top: 8px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg) !important; }
.mapcard__arrow { position: absolute; right: 0; top: 26px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background 0.4s, color 0.4s; }
.mapcard:hover .mapcard__arrow { background: var(--fg); color: var(--bg); }
.signup { display: grid; grid-template-columns: 6fr 5fr; gap: 6vw; align-items: center; }
/* map pages */
.mapbuy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 6vw, 100px); }
.product { position: relative; }
.product::before { content: ""; position: absolute; inset: 10% 6%; background: radial-gradient(closest-side, rgba(150, 170, 190, 0.16), rgba(150, 170, 190, 0)); filter: blur(30px); pointer-events: none; }
.product img { position: relative; display: block; width: 100%; max-width: 640px; height: auto; margin-inline: auto; }
.mapbuy__body .price__value { margin-bottom: 4px; font-size: clamp(48px, 5vw, 76px); }
.mapbuy__body .lead { margin: 18px 0 30px; }
.mapbuy__body .buybox__file { margin: 18px 0 0; }
.mapinside { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.mapinside__media { position: sticky; top: calc(var(--header-h) + 24px); max-width: 420px; }
.mapinside__body .h2 { margin-bottom: 34px; }
.devices { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.devices__panel { background: var(--fg); padding: clamp(10px, 2vw, 30px); }
.devices__img { background: transparent; }
.devices__img > img { mix-blend-mode: multiply; }
.devices__img::before { display: none; }
.devices__text .h2 { margin-bottom: 18px; }
@media (max-width: 899px) {
  .mapbuy, .mapinside, .devices { grid-template-columns: 1fr; }
  .mapinside__media { position: static; max-width: 340px; margin-inline: auto; }
  .product img { max-width: 420px; }
}
.buybox { display: grid; grid-template-columns: 4fr 8fr; gap: 6vw; align-items: start; }
.buybox__price .price__value { margin-bottom: 4px; font-size: clamp(52px, 5.4vw, 84px); }
.buybox__vat, .buybox__file { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 26px; }
.buybox__file { margin: 22px 0 0; letter-spacing: 0.06em; text-transform: none; font-size: 13px; }

/* --------------------------------------------------------------- tours */
.tour-index { margin-top: 34px; border-top: 1px solid var(--line); }
.tour-index a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; transition: padding 0.4s var(--ease-out); }
.tour-index a span:first-child { font-family: var(--serif); font-size: 19px; }
.tour-index a span:last-child { color: var(--muted); font-size: 13px; text-align: right; }
.tour-index a:hover { padding-left: 6px; }
.tour-index li.is-on a { padding-left: 6px; }
.tour-index li.is-on a span:first-child { color: var(--accent); font-style: italic; }
.tour-index a span:first-child { transition: color 0.4s; }

/* photo tours: destinations map */
.tmap-block { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.tmap-block__list .tour-index { margin-top: 22px; }
.tmap { position: relative; width: min(100%, 460px, calc(60vh * 1000 / 1188)); margin-inline: auto; }
.tmap__img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 92%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 92%, transparent); mask-composite: intersect; }
.tmap__pin { position: absolute; z-index: 1; display: flex; align-items: center; gap: 10px; transform: translate(-5.5px, -50%); }
.tmap__dot { position: relative; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(236, 225, 180, 0.16); transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.tmap__dot::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--accent); border-radius: 50%; opacity: 0; animation: pinpulse 2.8s infinite; }
.tmap__label { padding: 5px 9px; background: rgba(14, 14, 13, 0.72); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; transition: color 0.4s, background 0.4s; }
.tmap__pin:hover, .tmap__pin.is-on { z-index: 2; }
.tmap__pin:hover .tmap__dot, .tmap__pin.is-on .tmap__dot { transform: scale(1.35); box-shadow: 0 0 0 7px rgba(236, 225, 180, 0.2); }
.tmap__pin:hover .tmap__label, .tmap__pin.is-on .tmap__label { color: var(--bg); background: var(--accent); }
.tours { display: grid; gap: clamp(90px, 15vh, 180px); }
.tour { display: grid; grid-template-columns: 7fr 5fr; gap: 5vw; align-items: center; max-width: var(--max); margin: 0 auto; width: 100%; padding-inline: var(--pad); scroll-margin-top: calc(var(--header-h) + 20px); }
.tour--flip { grid-template-columns: 5fr 7fr; }
.tour--flip .slider { order: 2; }
.tour__title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 50px); line-height: 1.05; margin-bottom: 22px; }
.tour__meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-bottom: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tour__meta dt { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.tour__meta dd { margin-top: 2px; font-family: var(--serif); font-size: 18px; color: var(--fg); }

.slider { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-3); touch-action: pan-y; }
.slider__track { position: absolute; inset: 0; }
.slider__img { position: absolute !important; inset: 0; opacity: 0; z-index: 0; transition: opacity 1s var(--ease-out); }
.slider__img.is-active { opacity: 1; z-index: 1; }
.slider__img > img { transform: scale(1.04); transition: opacity 0.9s var(--ease-out), transform 6s linear; }
.slider__img.is-active > img { transform: scale(1); }
.slider__img:first-child { opacity: 1; }
.slider.is-ready .slider__img:first-child:not(.is-active) { opacity: 0; }
.slider__ui { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 4px; background: rgba(14, 14, 13, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 40px; }
.slider__btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: background 0.3s, color 0.3s; }
.slider__btn:hover { background: var(--fg); color: var(--bg); }
.slider__count { min-width: 54px; text-align: center; font-size: 11px; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- forms */
.form-block, .newsletter { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: start; }
.form-block .h2, .newsletter .h2 { margin-bottom: 16px; }
.newsletter { padding-top: clamp(60px, 9vh, 110px) !important; border-top: 1px solid var(--line); }
.form { position: relative; }
.form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.form__fields .field:nth-child(n + 3) { grid-column: 1 / -1; }
.field { position: relative; padding-top: 18px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--fg); font: 300 16px/1.5 var(--sans); resize: vertical; outline: none; -webkit-appearance: none; appearance: none; }
.field select { padding-right: 24px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23ebe7e0'/></svg>") right 4px center no-repeat; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--fg); }
.field label { position: absolute; left: 0; top: 30px; font-size: 14px; color: var(--fg-2); pointer-events: none; transform-origin: left top; transition: transform 0.4s var(--ease-out), color 0.3s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.is-up { transform: translateY(-24px) scale(0.8); color: var(--muted); }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.field textarea ~ .field__line { bottom: 6px; }
.field :focus ~ .field__line { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b98a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__actions { margin-top: 30px; }
.form.is-sending .btn { opacity: 0.6; pointer-events: none; }
.form__error { margin-top: 18px; font-size: 14px; color: #d9b3a6 !important; }
.form__done { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; background: var(--bg); }
.form__done[hidden] { display: none; }
.form__check { width: 52px; height: 52px; margin-bottom: 8px; color: var(--fg); }
.form__check svg { width: 100%; height: 100%; }
.form__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.form__check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.form.is-done .form__check circle { transition: stroke-dashoffset 1s var(--ease-out); stroke-dashoffset: 0; }
.form.is-done .form__check path { transition: stroke-dashoffset 0.6s 0.5s var(--ease-out); stroke-dashoffset: 0; }
.form__done-title { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1; color: var(--fg) !important; }
.form__done-text { color: var(--fg-2); }
.form.is-done .form__fields, .form.is-done .form__actions { visibility: hidden; }
.contact__email { margin-top: 26px; font-family: var(--serif); font-size: 22px; }
.social { display: flex; gap: 18px; }
.social a { display: grid; place-items: center; width: 18px; height: 18px; color: var(--fg-2); transition: color 0.3s, transform 0.3s var(--ease-out); }
.social a:hover { color: var(--fg); transform: translateY(-2px); }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.social--contact { margin-top: 26px; }
.sender-wrap, .sender-wrap .sender-form-field, .sender-wrap .sender-form-field > div { display: block !important; width: 100% !important; }
.sender-wrap iframe { width: 100% !important; min-width: 280px; }

/* --------------------------------------------------------------- gallery index */
.gindex__panels { display: flex; height: 100svh; min-height: 540px; }
.gpanel { position: relative; flex: 1 1 0; overflow: hidden; border-right: 1px solid var(--line); transition: flex-grow 1s var(--ease); }
.gpanel:last-child { border-right: 0; }
.gindex__panels:hover .gpanel { flex-grow: 0.8; }
.gindex__panels .gpanel:hover { flex-grow: 3.2; }
.gpanel__img { position: absolute !important; inset: 0; }
.gpanel__img > img { filter: brightness(0.6); }
.gpanel:hover .gpanel__img > img { filter: brightness(0.9); transform: scale(1.02); }
.gpanel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 13, 0.45), transparent 30%, transparent 60%, rgba(14, 14, 13, 0.7)); }
/* the title sits rotated along the narrow panel and swings upright when the panel opens */
.gpanel { --tfs: clamp(30px, 2.9vw, 50px); }
.gpanel__title { position: absolute; left: 22px; bottom: 30px; font-family: var(--serif); font-size: var(--tfs); line-height: 1; white-space: nowrap; transform-origin: 0 100%; transform: translateX(1em) rotate(-90deg); transition: transform 0.9s var(--ease); }
.gpanel:hover .gpanel__title, .gpanel:focus-visible .gpanel__title { transform: none; font-style: italic; }
.gpanel__count { position: absolute; left: 22px; bottom: calc(30px + var(--tfs) + 14px); font-size: 11px; letter-spacing: 0.16em; color: var(--fg-2); opacity: 0; transform: translateY(6px); transition: opacity 0.5s 0.2s, transform 0.7s 0.2s var(--ease-out); }
.gpanel:hover .gpanel__count { opacity: 1; transform: none; }

/* --------------------------------------------------------------- gallery page (justified grid) */
.ghead { padding-top: calc(var(--header-h) + clamp(50px, 9vh, 110px)); padding-bottom: 36px; }
.ghead__title { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 96px); line-height: 1; }
.ghead__count { margin-top: 12px; color: var(--fg-2); font-size: 14px; }
.gtabs { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.gtabs a { position: relative; padding: 4px 0; font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); transition: color 0.3s; }
.gtabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.gtabs a:hover, .gtabs a[aria-current] { color: var(--fg); }
.gtabs a[aria-current]::after { transform: scaleX(1); }
.jg-wrap { padding: 0 clamp(8px, 1.6vw, 28px) clamp(80px, 12vh, 140px); }
.jg { --row: 300px; display: flex; flex-wrap: wrap; gap: 8px; }
.jg::after { content: ""; flex-grow: 999999; }
.jg__item { position: relative; display: block; flex-grow: calc(var(--ar) * 100); width: calc(var(--ar) * var(--row)); overflow: hidden; background: var(--bg-3); }
.jg__item > i { display: block; }
.jg__img { position: absolute !important; inset: 0; }
.jg__item:hover .jg__img > img { transform: scale(1.03); }
.jg__item::after { content: ""; position: absolute; inset: 0; background: rgba(14, 14, 13, 0); transition: background 0.4s; pointer-events: none; }
.jg:hover .jg__item:not(:hover)::after { background: rgba(14, 14, 13, 0.25); }
.js .jg__item { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out); }
.js .jg__item.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10, 10, 9, 0.97); visibility: hidden; opacity: 0; touch-action: pan-y; }
.lightbox__stage { position: absolute; inset: 76px 100px 40px; display: grid; place-items: center; }
.lightbox__frame { position: relative; overflow: hidden; background: var(--lqip) center / cover no-repeat; }
.lightbox__frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox__top { position: absolute; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; justify-content: space-between; padding-inline: var(--pad); }
.lightbox__count { font-size: 12px; letter-spacing: 0.18em; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.lightbox__close { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 20px; border: 1px solid var(--line-2); border-radius: 40px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; transition: background 0.3s, color 0.3s; }
.lightbox__close:hover { background: var(--fg); color: var(--bg); }
.lightbox__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(14, 14, 13, 0.4); transition: background 0.3s, color 0.3s; }
.lightbox__nav:hover { background: var(--fg); color: var(--bg); }
.lightbox__nav .ico { width: 18px; height: 18px; }
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }

/* --------------------------------------------------------------- videos */
.vwrap { padding-bottom: clamp(80px, 12vh, 140px); }
.vsection + .vsection { margin-top: clamp(60px, 9vh, 110px); }
.vsection .h2 { margin-bottom: 26px; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 18px; }
.video__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.video__btn img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: transform 1s var(--ease-out), filter 0.5s; }
.video__btn:hover img { transform: scale(1.03); filter: brightness(1); }
.video__play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border: 1px solid rgba(235, 231, 224, 0.6); border-radius: 50%; background: rgba(14, 14, 13, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 0.3s, color 0.3s, transform 0.5s var(--ease-out); }
.video__play svg { width: 18px; height: 18px; margin-left: 3px; }
.video__btn:hover .video__play { background: var(--fg); color: var(--bg); transform: scale(1.06); }
.video__btn iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__title { margin-top: 12px; font-family: var(--serif); font-size: 19px; line-height: 1.3; }

/* --------------------------------------------------------------- footer */
.footer { padding: clamp(70px, 12vh, 130px) var(--pad) 28px; border-top: 1px solid var(--line); background: var(--bg); }
.footer__top { display: grid; grid-template-columns: 4fr 8fr; gap: 6vw; align-items: start; }
.footer__logo img { width: min(240px, 60vw); opacity: 0.92; }
.footer__mail { margin: 26px 0 20px; font-family: var(--serif); font-size: 20px; }
.footer__nav { columns: 3; column-gap: 36px; }
.footer__nav li { break-inside: avoid; padding: 4px 0; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.footer__nav .footer__sub { padding: 2px 0; }
.footer__nav .footer__sub a { color: var(--muted); letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
.footer__nav a:hover { color: var(--fg-2); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(56px, 9vh, 110px); padding-top: 22px; border-top: 1px solid var(--line); }
.footer__copy { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.footer__top-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background 0.3s, color 0.3s; }
.footer__top-btn:hover { background: var(--fg); color: var(--bg); }
.footer__top-btn svg { width: 16px; height: 16px; }
.notfound { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }

/* --------------------------------------------------------------- reveal initial states (JS only) */
.js [data-reveal="fade"] { opacity: 0; transform: translateY(18px); }
.js [data-reveal-img] { clip-path: inset(100% 0 0 0); }
.js [data-split], .js [data-reveal="lines"] { visibility: hidden; }
.js [data-split].is-split, .js [data-reveal="lines"].is-split { visibility: visible; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; margin-left: 10px; }
  .lang { margin-left: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature + .feature { padding: 24px 20px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tier:nth-child(3) { padding-left: 0; border-left: 0; }
  .tier:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cats__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header__logo img { width: 100px; }
  .hero__ui { grid-template-columns: 1fr auto; bottom: 24px; }
  .hero__bars { grid-column: 1 / -1; grid-row: 2; }
  .hero__bar { flex: 1; width: auto; }
  .phero { height: 64svh; min-height: 380px; }
  .phero--small { height: 48svh; min-height: 320px; }
  .phero__title { font-size: clamp(34px, 9vw, 46px); }
  .ghead__title { font-size: clamp(38px, 11vw, 54px); }
  .h2 { font-size: clamp(26px, 7vw, 32px); }
  .lead { font-size: 19px; }
  .statement__text { font-size: clamp(22px, 6vw, 28px); }
  .cats__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat:last-child { grid-column: 1 / -1; }
  .cat:last-child .cat__media { aspect-ratio: 16 / 9; }
  .tiles { grid-template-columns: 1fr; }
  .tile { height: 52vh; min-height: 340px; border-right: 0 !important; }
  .tmap-block,
  .split, .prose-cols, .portrait-block, .lesson, .lesson--flip, .tour, .tour--flip, .form-block, .newsletter, .signup, .buybox, .footer__top, .mapcards { grid-template-columns: 1fr; }
  .split { gap: 26px; }
  .split__title, .portrait-block__media { position: static; }
  .lesson--flip .lesson__media, .tour--flip .slider { order: 0; }
  .features, .tiers { grid-template-columns: 1fr; }
  .tier, .tier + .tier { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .checklist li { grid-template-columns: 1fr; }
  .form__fields { grid-template-columns: 1fr; }
  .videos { grid-template-columns: 1fr; gap: 28px; }
  .footer__nav { columns: 2; }
  .jg { --row: 150px; gap: 4px; }
  .jg-wrap { padding-inline: 4px; }
  .gindex__panels { flex-direction: column; height: auto; }
  .gpanel { flex: none; height: 40svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .gpanel:first-child { height: calc(40svh + var(--header-h)); }
  .gpanel__title, .gpanel:hover .gpanel__title { transform: none; bottom: 22px; }
  .gpanel__count { opacity: 1; transform: none; left: auto; right: 20px; bottom: 28px; }
  .lightbox__stage { inset: 64px 8px 92px; }
  .lightbox__top { height: 64px; }
  .lightbox__nav { top: auto; bottom: 22px; margin: 0; width: 48px; height: 48px; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

@media (min-width: 1700px) { .jg { --row: 360px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
  .js [data-reveal="fade"], .js .jg__item { opacity: 1; transform: none; }
  .js [data-reveal-img] { clip-path: none; }
  .js [data-split], .js [data-reveal="lines"] { visibility: visible; }
}

/* --------------------------------------------------------------- about extras */
.quote { text-align: center; }
.quote__text { max-width: 22em; margin-inline: auto; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 48px); line-height: 1.2; text-wrap: balance; }
.bleed { padding-inline: var(--pad); }
.bleed__media { height: clamp(320px, 70vh, 760px); overflow: hidden; }
.bleed__img { height: 120%; margin-top: -10%; }
.specs--list { display: block; margin-top: 0; border-top: 1px solid var(--line); }
.specs--list .spec { display: grid; grid-template-columns: minmax(110px, 1fr) 3fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs--list dt { padding-top: 5px; }
.specs--list dd { margin-top: 0; }


/* --------------------------------------------------------------- line icons */
.licon { display: block; width: 30px; height: 30px; }
.feature__ico { display: block; margin-bottom: 20px; color: var(--fg); }
.feature__ico .licon { width: 34px; height: 34px; }
.iconlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); }
.iconlist li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-content: start; padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: 15px; }
.iconlist__ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--fg); }
.iconlist__ico .licon { width: 22px; height: 22px; }
.iconlist strong { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--fg); }

/* --------------------------------------------------------------- home: services */
.services { padding-bottom: clamp(40px, 8vh, 100px); border-top: 1px solid var(--line); padding-top: clamp(90px, 14vh, 160px); }
.service { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); align-items: center; max-width: var(--max); margin: 0 auto clamp(90px, 15vh, 170px); padding-inline: var(--pad); }
.service--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.service--flip .service__media { order: 2; }
.service__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.service__par { position: absolute; inset: -9% 0; }
.service__img { position: absolute !important; inset: 0; }
.service__img > img { filter: brightness(0.92); }
.service__media:hover .service__img > img { transform: scale(1.03); filter: brightness(1); }
.service__n { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.service__n span { color: var(--fg-2); }
.service__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; margin-bottom: 24px; }
.service__title a:hover { font-style: italic; }
.service__text { color: var(--fg-2); max-width: 30em; }
.service__meta { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg); }
.service .actions { margin-top: 28px; }

/* home: map banner */
.promo { margin-bottom: clamp(90px, 15vh, 170px); }
.promo__card { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; align-items: center; gap: clamp(20px, 4vw, 60px); padding-right: clamp(20px, 4vw, 56px); background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.4s; }
.promo__card:hover { border-color: var(--line-2); }
.promo__media { position: relative; align-self: stretch; min-height: 210px; }
.promo__img { position: absolute !important; inset: 0; }
.promo__img > img { filter: brightness(0.7); }
.promo__product { position: absolute; z-index: 2; right: -9%; top: 50%; width: 52%; height: auto; transform: translateY(-50%) rotate(-3deg); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.6)); transition: transform 0.9s var(--ease-out); }
.promo__card:hover .promo__product { transform: translateY(-54%) rotate(-1deg); }
.promo__body { padding-block: 34px; padding-left: 4%; }
.promo__title { margin: 10px 0 8px; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; color: var(--fg) !important; }
.promo__text { font-size: 14px; color: var(--fg-2); max-width: 30em; }
.promo__buy { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.promo__price { font-family: var(--serif); font-size: clamp(30px, 2.8vw, 42px); line-height: 1; }
.promo__card:hover .btn--solid { color: var(--fg); }
.promo__card:hover .btn--solid::before { transform: scaleY(1); }

/* --------------------------------------------------------------- tutorials: jump + sticky buy bar */
.phero__actions { margin-top: 30px; }
.scrollcue { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2); transition: color 0.3s; }
.scrollcue:hover { color: var(--fg); }
.scrollcue i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; }
.scrollcue svg { width: 16px; height: 16px; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: 0.6; } 50% { transform: translateY(3px); opacity: 1; } }
.buybar { position: fixed; z-index: 90; right: var(--pad); bottom: 24px; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 22px; background: rgba(19, 19, 17, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line-2); font-size: 13px; transform: translateY(150%); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.5s; }
.buybar.is-on { transform: none; opacity: 1; }
.buybar__name { font-family: var(--serif); font-size: 19px; }
.buybar__price { color: var(--fg-2); }
.buybar__cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--fg); color: var(--bg); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.buybar:hover .buybar__cta .ico { transform: translateX(3px); }

/* --------------------------------------------------------------- 1-to-1: before / after */
.ba-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ba-block__text .h2 { margin-bottom: 18px; }
.ba { position: relative; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.ba .media > img { pointer-events: none; }
.ba__before { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba__img { position: absolute !important; inset: 0; }
.ba__label { position: absolute; z-index: 4; top: 16px; padding: 6px 10px; background: rgba(14, 14, 13, 0.6); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; pointer-events: none; }
.ba__label--l { left: 16px; }
.ba__label--r { right: 16px; }
.ba__handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--fg); pointer-events: none; }
.ba__handle i { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fg); color: var(--bg); transform: translate(-50%, -50%); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.ba__handle svg { width: 22px; height: 22px; }
.ba__range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ba:focus-within .ba__handle i { outline: 1px solid var(--fg); outline-offset: 4px; }

@media (max-width: 899px) {
  .service, .service--flip { grid-template-columns: 1fr; gap: 28px; }
  .service--flip .service__media { order: 0; }
  .promo__card { grid-template-columns: 1fr; padding: 0 0 28px; }
  .promo__media { min-height: 200px; }
  .promo__product { right: 6%; width: 38%; }
  .promo__body { padding: 8px 24px 0; }
  .promo__buy { flex-direction: row; align-items: center; justify-content: space-between; padding-inline: 24px; }
  .ba-block { grid-template-columns: 1fr; }
  .iconlist { grid-template-columns: 1fr; }
  .statement__inner { grid-template-columns: 1fr; }
  .buybar { left: var(--pad); right: var(--pad); bottom: 14px; justify-content: space-between; }
}

/* --------------------------------------------------------------- accent color
   Small details only: labels, underlines, numbers, icons and prices. Text and buttons stay white. */
::selection { background: var(--accent); color: var(--bg); }
.eyebrow, .service__n span, .scrollcue { color: var(--accent); }
.service__n, .numlist__n, .tier__name, .buybar__price { color: var(--accent); }
.nav__link::after { background: var(--accent); }
.nav__sub a[aria-current] { color: var(--accent); }
.lang a[aria-current] { color: var(--accent); }
.hero__bar i { background: var(--accent); }
.link-arrow { border-bottom-color: var(--accent-line); }
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.feature__ico, .iconlist__ico { color: var(--accent); }
.iconlist__ico { border-color: var(--accent-line); }
.scrollcue i { border-color: var(--accent-line); }
.scrollcue:hover { color: var(--fg); }
.price__value, .tier__amount, .promo__price { color: var(--accent) !important; }
.mapcard__price { color: var(--accent) !important; }
.faq__item summary i::before, .faq__item summary i::after { background: var(--accent); }
.sponsor:hover .sponsor__arrow { background: var(--accent); border-color: var(--accent); }
.mnav__link[aria-current] { color: var(--accent); }
.field__line { background: var(--accent); }
.gtabs a[aria-current] { color: var(--accent); }

/* image protection: no dragging, no selecting, no long-press "Save image" on iPhone */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* gallery header: world map with the place pinned */
.ghead__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.wmap { position: relative; flex: none; width: clamp(300px, 36vw, 540px); margin-bottom: 4px; }
.wmap img { display: block; width: 100%; height: auto; }
.wmap__pin { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(236, 225, 180, 0.18); }
.wmap__pin::after { content: ""; position: absolute; inset: -3px; border: 1px solid var(--accent); border-radius: 50%; animation: pinpulse 2.6s var(--ease-out) infinite; }
@keyframes pinpulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wmap__pin::after, .tmap__dot::after { animation: none; } }
@media (max-width: 699px) {
  .ghead__top { flex-direction: column; align-items: flex-start; gap: 26px; }
  .wmap { width: 100%; }
}
