/* Alocal Motion: the CI cover as a website. Colours sampled from A&M Safari CI. */
:root {
  --ground: #13140c;      /* near-black olive */
  --ground-2: #1b1c11;
  --green: #414220;       /* Safari Green */
  --gold: #b5860b;        /* Brass Monkey */
  --gold-lit: #d2a53a;
  --khaki: #a3a483;       /* Old Khaki, lifted for contrast on dark */
  --bone: #ebe7d6;
  --caps: "Marcellus SC", "Copperplate", serif;
  --body: "Carlito", "Calibri", sans-serif;
  --poem: "EB Garamond", Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-color: var(--green) var(--ground); background: var(--ground); }
body { font: 400 1.125rem/1.65 var(--body); color: var(--bone); background: var(--ground); caret-color: var(--gold); }
::selection { background: var(--gold); color: var(--ground); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; text-decoration-color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold-lit); outline-offset: 4px; }

/* Type */
h1, h2, h3 { font-family: var(--caps); font-weight: 400; letter-spacing: .08em; line-height: 1.25; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-lit); }
h2::after {
  content: ""; display: block; width: 120px; height: 6px; margin-top: 1.1rem;
  background: linear-gradient(var(--gold), var(--gold)) 0 0 / 72px 1px no-repeat,
              radial-gradient(circle, var(--gold) .8px, transparent 1.2px) 0 100% / 7px 2px repeat-x;
}
.center h2::after { margin-inline: auto; background-position: 50% 0, 0 100%; }
.fig { font-family: var(--body); letter-spacing: 0; }
h3 { font-size: 1.35rem; color: var(--bone); }
p { max-width: 62ch; }
p + p { margin-top: 1rem; }
.muted { color: var(--khaki); }
.poem { font: italic 400 1.3rem/1.5 var(--poem); color: var(--khaki); }

/* Rules: the CI's solid gold line over a spaced dotted line */
.rules { display: grid; justify-items: center; gap: 1.1rem; width: min(520px, 80vw); margin-inline: auto; }
.rules::before { content: ""; width: 62%; height: 1px; background: var(--gold); transform-origin: center; }
.rules::after {
  content: ""; width: 100%; height: 2px;
  background: radial-gradient(circle, var(--gold) .8px, transparent 1.2px) 0 0 / 7px 2px repeat-x;
}
.dots { height: 2px; background: radial-gradient(circle, rgba(181,134,11,.6) .8px, transparent 1.2px) 0 0 / 7px 2px repeat-x; }

/* Layout */
.wrap { width: min(1240px, 90%); margin-inline: auto; }
section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.band { background: var(--ground-2); }
.band-green { background: var(--green); }
.band-green .muted, .band-green figcaption i { color: #c4c5a4; }

/* Buttons: gold outline, foil-like fill on hover */
.btn {
  display: inline-block; padding: .95rem 2rem; border: 1px solid var(--gold); color: var(--gold-lit);
  font: 400 .95rem var(--caps); letter-spacing: .16em; text-decoration: none; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--ground); }
.btn:active { transform: translateY(1px); }
.link { font-family: var(--caps); letter-spacing: .12em; color: var(--bone); }
.link:hover { color: var(--gold-lit); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.2rem; margin-top: 2.4rem; }

/* Header: dark bar, crest only */
header { position: sticky; top: 0; z-index: 10; background: rgba(19,20,12,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(181,134,11,.25); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
header .crest img { height: 46px; width: auto; }
nav { display: flex; align-items: center; gap: 2.2rem; font: 400 .9rem var(--caps); letter-spacing: .14em; }
nav a { text-decoration: none; }
nav a:not(.btn):hover { color: var(--gold-lit); }
nav .btn { padding: .6rem 1.3rem; }

/* Hero: full-height darkened photo, crest centred like the CI cover */
.hero { position: relative; min-height: min(calc(100dvh - 72px), 980px); display: grid; place-items: center; padding: 3rem 0; overflow: hidden; text-align: center; }
.hero > .media, .hero > .media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero > .media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(19,20,12,.42), rgba(19,20,12,.85) 75%); }
.hero .inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.8rem; }
.hero .logo { width: min(440px, 72vw); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(1.25rem, 2.4vw, 1.9rem); color: var(--bone); max-width: 30ch; }
.hero .offer { color: var(--khaki); font-size: 1.1rem; }
.hero.trip .inner { gap: 1.4rem; }
.hero.trip h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); color: var(--gold-lit); letter-spacing: .1em; }

/* Crest watermark */
.watermark { position: relative; overflow: hidden; }
.watermark::before {
  content: ""; position: absolute; inset: 50% auto auto 50%; width: min(820px, 120vw); aspect-ratio: 2; translate: -50% -50%;
  background: url(assets/crest.png) center / contain no-repeat; opacity: .05; filter: grayscale(1) brightness(2); pointer-events: none;
}
.watermark > * { position: relative; }

/* Tiles: one large, two stacked */
.tiles { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; height: min(88vh, 820px); }
.tile { position: relative; overflow: hidden; color: var(--bone); text-decoration: none; }
.tile:first-child { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile .caption { position: absolute; inset: auto 0 0; padding: 5rem 2rem 1.8rem; background: linear-gradient(transparent, rgba(19,20,12,.88) 55%, rgba(19,20,12,.96)); }
.tile .caption .poem { font-size: 1.15rem; margin-top: .3rem; color: #d9d5c1; }

/* Split: photo + text */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split .text .btn { margin-top: 2.2rem; }
.facts { display: flex; gap: 2.4rem; margin: 2rem 0 0; padding: 1.4rem 0 0; list-style: none; border-top: 1px solid rgba(181,134,11,.3); }
.facts b { display: block; font: 400 1.4rem var(--caps); color: var(--gold-lit); }
.facts span { font-size: .95rem; color: var(--khaki); }

/* Poem band: full-bleed photo with a CI-style caption (swap for the film embed later) */
.poemband { position: relative; padding: 0; }
.poemband img { width: 100%; height: min(80vh, 760px); object-fit: cover; }
.poemband .over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.2rem; padding: 2rem; text-align: center; background: rgba(19,20,12,.55); }
.poemband h2 { color: var(--bone); }
.poemband .poem { color: var(--bone); max-width: 34ch; }

/* Gallery mosaic */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 15vw; gap: .8rem; margin-top: 3.5rem; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .a { grid-column: span 3; grid-row: span 2; }
.mosaic .b { grid-column: span 3; }
.mosaic .c { grid-column: span 2; grid-row: span 2; }
.mosaic .d { grid-column: span 1; grid-row: span 2; }
.mosaic .e { grid-column: span 3; }

/* Species: one hero fish, six supporting */
.species { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3.5rem; }
.species figure:first-child { grid-column: span 2; grid-row: span 2; }
.species img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.species figure:first-child img { aspect-ratio: auto; height: calc(100% - 3.6rem); }
.species figcaption { padding-top: .7rem; font: 400 1rem var(--caps); letter-spacing: .06em; }
.species figcaption i { display: block; font: italic .95rem var(--poem); color: var(--khaki); letter-spacing: 0; }

/* Itinerary: two chapters */
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); margin-top: 3.5rem; text-align: left; }
.chapters h3 { color: var(--gold-lit); margin-bottom: 1.2rem; }
.chapters dl { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem 1.2rem; }
.chapters dt { font-family: var(--caps); color: var(--khaki); letter-spacing: .06em; }
.chapters dd { margin: 0; }

.includes { columns: 2; gap: 3rem; max-width: 760px; margin: 2.4rem auto 0; padding: 0; list-style: none; text-align: left; }
.includes li { padding: .55rem 0 .55rem 1.6rem; position: relative; break-inside: avoid; }
.includes li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* Footer: Safari Green */
footer { background: var(--green); color: var(--bone); padding: 4.5rem 0 2.2rem; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
footer img { width: 210px; height: auto; }
footer h3 { font-size: 1rem; color: var(--gold-lit); margin-bottom: 1rem; }
footer p { margin: 0 0 .5rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--gold-lit); }
footer .poem { color: var(--bone); opacity: .85; margin-top: 1.2rem; font-size: 1.15rem; }
footer small { grid-column: 1 / -1; padding-top: 1.8rem; border-top: 1px solid rgba(235,231,214,.18); color: #cfccb6; font-size: .9rem; }

/* The one authored moment: the hero settles and its rules draw out from the crest */
@media (prefers-reduced-motion: no-preference) {
  .hero > .media > * { animation: settle 14s var(--ease) both; }
  .hero .rules::before, .hero .rules::after { animation: draw 1.6s .3s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.08); } }
  @keyframes draw { from { transform: scaleX(0); } }
}

/* Mobile */
@media (max-width: 820px) {
  body { font-size: 1.05rem; }
  nav a:not(.btn) { display: none; }
  .tiles { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .tiles .tile { aspect-ratio: 4 / 5; }
  .tile:first-child { grid-row: auto; }
  .split, .chapters, footer .wrap { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .mosaic > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .mosaic .a { grid-column: span 2 !important; }
  .species { grid-template-columns: 1fr 1fr; }
  .species figure:first-child img { aspect-ratio: 1; height: auto; }
  .includes { columns: 1; }
  .facts { gap: 1.6rem; }
}
