/* Solstice — travel agency. Instrument Serif + Manrope. Sand, deep teal, low sun. */
:root {
  --bg: #efe7da;
  --card: #f8f3ea;
  --teal: #0d3a3b;
  --ink: #12211f;
  --muted: #5f6b66;
  --line: rgba(18, 33, 31, 0.15);
  --accent: #e59c4d;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --pad: clamp(20px, 5vw, 80px);
  --gutter: clamp(8px, 1.2vw, 18px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--teal); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 92px); line-height: 0.98; letter-spacing: -0.02em; max-width: 13ch; }
em { font-style: italic; color: var(--teal); }

/* Motion primitives */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; background: none; }
.js [data-reveal="clip"] > img { clip-path: inset(0 0 100% 0 round 24px); transition: clip-path 1.6s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0 round 24px); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.w-i { display: inline-block; transform: translateY(112%); transition: transform 1.25s var(--ease); }
.is-in .w-i { transform: none; }
[hidden] { display: none !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
.btn svg, .link svg, .rail-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.6s var(--ease); }
.btn:hover svg, .link:hover svg { transform: translateX(5px); }
.btn--light { border-color: rgba(255, 255, 255, 0.6); color: #fff; padding: 11px 22px; }
.btn--light:hover { background: #fff; color: var(--teal); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--teal); color: var(--bg); }
.btn--dark { background: var(--teal); color: var(--bg); }
.btn--dark:hover { background: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(var(--gutter) + 20px) calc(var(--gutter) + clamp(16px, 3vw, 40px));
  color: #fff;
  transition: padding 0.6s var(--ease), background 0.6s var(--ease), color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.header.is-scrolled { padding-block: 12px; background: rgba(239, 231, 218, 0.88); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .btn--light { border-color: var(--ink); color: var(--ink); }
.header.is-scrolled .btn--light:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 29px; line-height: 1; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 21px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.nav { display: flex; gap: clamp(18px, 2.8vw, 42px); }
.nav a { position: relative; font-size: 14px; font-weight: 500; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: var(--gutter) var(--gutter) 0; position: relative; }
.hero__frame { position: relative; overflow: hidden; border-radius: clamp(20px, 2.4vw, 34px); min-height: calc(100svh - var(--gutter) - 56px); display: flex; align-items: flex-end; color: #fff; }
.hero__frame > img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; animation: heroIn 2.6s var(--ease) both; }
.hero__frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 34, 35, 0.5) 0%, rgba(9, 34, 35, 0) 30%, rgba(9, 34, 35, 0.12) 55%, rgba(9, 34, 35, 0.72) 100%); }
@keyframes heroIn { from { opacity: 0; scale: 1.08; } to { opacity: 1; scale: 1; } }
.hero__inner { position: relative; z-index: 1; padding: 140px clamp(20px, 4.4vw, 68px) clamp(96px, 13vh, 150px); max-width: 1100px; }
.hero .eyebrow { color: #fff; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 168px); line-height: 0.9; letter-spacing: -0.025em; }
.hero__title em { color: var(--accent); }
.hero__lede { margin-top: 28px; max-width: 40ch; font-size: 18px; color: rgba(255, 255, 255, 0.88); }
.hero__coord { position: absolute; z-index: 1; right: clamp(20px, 4.4vw, 68px); bottom: clamp(96px, 13vh, 150px); text-align: right; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.8; color: rgba(255, 255, 255, 0.8); }
.finder {
  position: relative; z-index: 2; width: min(1080px, calc(100% - 2 * clamp(12px, 3vw, 48px))); margin: -52px auto 0;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; align-items: center; gap: 0;
  background: var(--card); border-radius: 999px; padding: 10px 10px 10px 34px;
  box-shadow: 0 30px 60px -30px rgba(13, 58, 59, 0.45);
}
.finder label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 8px 20px 8px 0; margin-right: 20px; border-right: 1px solid var(--line); }
.finder label:nth-of-type(3) { border-right: 0; }
.finder select { display: block; width: 100%; margin-top: 2px; border: 0; background: transparent; font-family: var(--serif); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; padding: 0; }
.finder select:focus { outline: none; color: var(--teal); }
.finder .btn { padding: 20px 30px; }
.finder__note { position: absolute; left: 34px; top: calc(100% + 14px); font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--teal); opacity: 0; transition: opacity 0.6s var(--ease); }
.finder__note.is-shown { opacity: 1; }

/* Intro */
.intro { padding-block: clamp(110px, 15vw, 220px) clamp(80px, 10vw, 150px); }
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.3vw, 66px); line-height: 1.1; letter-spacing: -0.015em; max-width: 24ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(60px, 8vw, 120px); }
.stats > div { padding-top: 22px; border-top: 1px solid var(--ink); }
.stats dt { font-family: var(--serif); font-size: clamp(52px, 6vw, 96px); line-height: 1; letter-spacing: -0.02em; color: var(--teal); }
.stats dt small { font-size: 0.5em; color: var(--accent); }
.stats dd { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 22ch; }

/* Destinations */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.destinations { padding-bottom: clamp(100px, 13vw, 190px); }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.place { position: relative; display: block; overflow: hidden; border-radius: 24px; color: #fff; }
.place--a { grid-column: span 7; aspect-ratio: 7 / 5; }
.place--b { grid-column: span 5; }
.place--c, .place--d { grid-column: span 4; aspect-ratio: 4 / 5; }
.place--e { grid-column: span 4; }
.place figure { position: absolute; inset: 0; }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease); }
.place:hover img { transform: scale(1.06); }
.place::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 34, 35, 0) 45%, rgba(9, 34, 35, 0.78) 100%); }
.place__info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.2vw, 32px); }
.place__info p { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.place__info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.7vw, 40px); line-height: 1.05; margin-top: 4px; }
.place__info span { display: block; font-size: 13px; opacity: 0; max-height: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), max-height 0.7s var(--ease), margin 0.7s var(--ease); }
.place:hover .place__info span, .place:focus-visible .place__info span { opacity: 0.9; max-height: 30px; transform: none; margin-top: 10px; }

/* Approach */
.approach { background: var(--teal); color: var(--bg); padding-block: clamp(96px, 12vw, 180px); border-radius: clamp(24px, 3vw, 44px); margin-inline: var(--gutter); }
.approach .eyebrow, .approach em { color: var(--accent); }
.approach__inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.approach__head { position: sticky; top: 120px; }
.approach__head > p:last-child { margin-top: 28px; max-width: 34ch; opacity: 0.75; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: clamp(20px, 3vw, 44px); padding: clamp(28px, 3.4vw, 48px) 0; border-top: 1px solid rgba(239, 231, 218, 0.2); }
.steps li:last-child { border-bottom: 1px solid rgba(239, 231, 218, 0.2); }
.steps svg { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform 1s var(--ease); }
.steps li:hover svg { transform: rotate(-8deg) scale(1.06); }
.steps span { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; opacity: 0.6; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; margin: 4px 0 10px; }
.steps p { opacity: 0.75; max-width: 46ch; }

/* Signature journey */
.journey { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; padding-block: clamp(100px, 13vw, 190px); }
.media { position: relative; overflow: hidden; border-radius: 24px; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { position: absolute; left: 0; top: -8%; height: 116%; will-change: transform; }
.journey__media { aspect-ratio: 4 / 5; }
.journey__media figcaption { position: absolute; left: 20px; top: 20px; padding: 8px 16px; border-radius: 999px; background: var(--card); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.tabs { display: flex; gap: 28px; margin: 40px 0 28px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; background: none; border: 0; padding: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.4s var(--ease); }
.tabs button::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.tabs button.is-active { color: var(--ink); }
.tabs button.is-active::after { transform: scaleX(1); }
.panel { min-height: 250px; }
.panel.is-shown { animation: rise 0.9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin-bottom: 12px; }
.panel p { color: var(--muted); max-width: 48ch; }
.panel ul { margin-top: 20px; }
.panel li { position: relative; padding: 9px 0 9px 26px; font-size: 15px; font-weight: 500; border-top: 1px solid var(--line); }
.panel li::before { content: ''; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.journey .btn { margin-top: 28px; }

/* Stories */
.stories { padding-bottom: clamp(100px, 13vw, 190px); }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--ink); background: none; cursor: pointer; display: grid; place-items: center; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.rail-nav button:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.rail { display: flex; gap: clamp(14px, 1.8vw, 26px); overflow-x: auto; padding-inline: max(var(--pad), calc((100vw - 1440px) / 2 + var(--pad))); scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.story { flex: 0 0 clamp(290px, 34vw, 500px); scroll-snap-align: start; background: var(--card); border-radius: 24px; padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; min-height: 380px; }
.story svg { width: 34px; height: 26px; fill: var(--accent); }
.story p { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 33px); line-height: 1.2; margin: 26px 0 32px; }
.story footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.story footer span { color: var(--muted); }

/* Plan */
.plan { position: relative; overflow: hidden; color: #fff; border-radius: clamp(24px, 3vw, 44px); margin-inline: var(--gutter); padding-block: clamp(96px, 12vw, 180px); }
.plan__media { position: absolute; inset: 0; background: var(--teal); }
.plan__media img { width: 100%; height: 118%; object-fit: cover; opacity: 0.45; will-change: transform; }
.plan__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(13, 58, 59, 0.9), rgba(13, 58, 59, 0.35)); }
.plan__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.plan .eyebrow, .plan em { color: var(--accent); }
.plan__title { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 96px); line-height: 0.96; letter-spacing: -0.02em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.form__wide { grid-column: 1 / -1; }
.form label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.form input, .form textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.4); border-radius: 0; font-family: var(--serif); font-size: 24px; letter-spacing: 0; text-transform: none; color: #fff; resize: vertical; transition: border-color 0.5s var(--ease); }
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; margin-top: 8px; }
.form .btn:hover { background: #fff; color: var(--teal); }
.form__note { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); min-height: 1.6em; opacity: 0; transition: opacity 0.6s var(--ease); }
.form__note.is-shown { opacity: 1; }

/* Footer */
.footer { padding-top: clamp(56px, 7vw, 100px); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer__lead p { margin-top: 16px; max-width: 32ch; color: var(--muted); }
.footer .brand { font-size: 38px; }
.footer h3 { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.footer__grid div:not(.footer__lead) a { display: block; padding: 3px 0; font-size: 15px; color: var(--muted); transition: color 0.4s var(--ease); }
.footer__grid div:not(.footer__lead) a:hover { color: var(--ink); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 1000px) {
  .finder { grid-template-columns: 1fr 1fr; border-radius: 28px; padding: 20px; gap: 14px 0; margin-top: -40px; }
  .finder label:nth-of-type(2) { border-right: 0; margin-right: 0; }
  .finder label:nth-of-type(3) { grid-column: 1; }
  .finder .btn { justify-self: stretch; }
  .finder__note { left: 20px; }
  .hero__coord { display: none; }
  .hero__inner { padding-bottom: 90px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .place--a, .place--b { grid-column: span 12; aspect-ratio: 4 / 3; }
  .place--c, .place--d, .place--e { grid-column: span 6; aspect-ratio: 4 / 5; }
  .place--e { grid-column: span 12; aspect-ratio: 4 / 3; }
  .place__info span { opacity: 0.9; max-height: 30px; transform: none; margin-top: 10px; }
  .approach__inner, .journey, .plan__inner { grid-template-columns: 1fr; }
  .approach__head { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__lead { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .brand { z-index: 2; position: relative; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; background: var(--teal); color: var(--bg);
    flex-direction: column; justify-content: center; gap: 4px; padding: var(--pad);
    opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
  }
  .nav a { font-family: var(--serif); font-size: 46px; font-weight: 400; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .header { color: var(--bg); background: none; box-shadow: none; }
}
@media (max-width: 560px) {
  .finder { grid-template-columns: 1fr; }
  .finder label { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .place--c, .place--d { grid-column: span 12; aspect-ratio: 4 / 3; }
  .steps li { grid-template-columns: 1fr; gap: 14px; }
  .tabs { gap: 16px; }
  .form { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
  .stats { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
