/* Alex on Mission: static rebuild of the Adobe Express page */

:root {
  --text: #111a0b;
  --heading: #000;
  --bg: #fff;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --measure: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 27px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--heading); margin: 0; }
h2 {
  font-size: clamp(30px, 5vw, 45px);
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 24px;
  scroll-margin-top: 80px;
}
h3 {
  font-size: clamp(22px, 3vw, 27px);
  line-height: 1.4;
  font-weight: 400;
  margin: 40px 0 16px;
}
p { margin: 0 0 18px; }
p.tight { margin-top: -10px; }
b, strong { font-weight: 700; }
a { color: inherit; }

figure { margin: 32px 0; }
figcaption {
  font-size: 14px;
  line-height: 22.4px;
  color: var(--heading);
  margin-top: 8px;
}

/* ---------- Sticky pill navigation ---------- */

.nav-wrap {
  position: sticky;
  top: 0;
  height: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--gutter);
}
.nav {
  margin-top: 12px;
  display: flex;
  gap: 24px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 8px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-size: 16px;
  line-height: 24px;
  color: #000;
  text-decoration: none;
}
.nav a:hover, .nav a:focus-visible { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  background: #484848;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 49.5% 0%;
}
.hero-title {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 64px var(--gutter);
  text-align: center;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 25%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.25) 75%, rgba(0,0,0,0) 100%);
}
.hero-title h1 {
  color: #fff;
  font-size: clamp(42px, 9vw, 70px);
  line-height: 1.3;
  font-weight: 700;
}
.hero-title p {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 300;
  text-transform: uppercase;
}
.hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  opacity: .85;
}

/* ---------- Single-column sections ---------- */

.single {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 48px var(--gutter);
}
.spacing-top { padding-top: 96px; }
.spacing-bottom { padding-bottom: 96px; }
.center { text-align: center; }
.center .left { text-align: left; }
.single > div + div { margin-top: 64px; }

.button {
  display: inline-block;
  padding: 7px 17px;
  border: 1px solid #000;
  border-radius: 3.2px;
  background: transparent;
  color: #000;
  font-size: 16px;
  line-height: 25.6px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.button:hover, .button:focus-visible { background: #000; color: #fff; }

/* ---------- Photo grid ---------- */

.grid-section {
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 96px;
}
.grid-section figure { margin: 0; }
.grid-row { display: flex; gap: 8px; margin-bottom: 8px; }
/* flex-grow equal to aspect ratio keeps every tile in a row the same height */
.grid-row .land { flex: 1.3333 1 0; min-width: 0; }
.grid-row .port { flex: 0.75 1 0; min-width: 0; }
.grid-section figcaption { text-align: center; margin-top: 12px; }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-media {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-left .split-media img { object-position: 50% 50%; }
.image-right .split-media img { object-position: 46% 53%; }
.image-right .split-media { order: 2; }
.split-text {
  padding: 96px clamp(24px, 5vw, 80px);
  max-width: 680px;
}
.image-left .split-text { justify-self: start; }
.image-right .split-text { justify-self: end; }

/* ---------- Footer ---------- */

.footer {
  padding: 32px var(--gutter) 40px;
  text-align: center;
  font-size: 14px;
  line-height: 22.4px;
  border-top: 1px solid #e6e6e6;
}
.footer p { margin: 0; }

/* ---------- Fade-in on scroll (only when JS runs) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; }
  .split-media, .image-right .split-media {
    position: static;
    order: 0;
    height: auto;
  }
  .split-media img { aspect-ratio: 4 / 5; height: auto; max-height: 85vh; }
  .split-text { padding: 48px var(--gutter); max-width: none; }
  .spacing-top { padding-top: 64px; }
  .spacing-bottom { padding-bottom: 64px; }
  .single > div + div { margin-top: 48px; }

  .grid-section figure { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .grid-row { display: contents; }
  .grid-row .land, .grid-row .port { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
  .grid-section figcaption { grid-column: 1 / -1; }
  .nav { gap: 18px; padding: 8px 18px; }
  .nav a { font-size: 15px; }
}

@media (max-width: 479px) {
  .grid-section figure { grid-template-columns: 1fr; }
  .grid-row .land, .grid-row .port { aspect-ratio: auto; height: auto; }
}
