:root {
  --bg: #ffffff;
  --tint: #f4f4f2;
  --ink: #141414;
  --ink-2: #333333;
  --muted: #5c5c5c;
  --line: #e8e8e6;
  --accent: #0b5cd5;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav .wrap { min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 32px; }
.nav .brand { font-size: 17px; font-weight: 600; letter-spacing: -.01em; padding: 14px 0; }
.nav .links { display: flex; flex-wrap: wrap; column-gap: 28px; }
.nav .links a { font-size: 14px; color: #4a4a4a; padding: 14px 0; transition: color .3s; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--ink); }
.nav .links a[aria-current="page"] { font-weight: 600; }

/* Type */
.eyebrow { margin: 0; font-size: 15px; font-weight: 500; color: var(--muted); }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.display { font-size: clamp(2.75rem, 6.2vw, 5.25rem); }
.title { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.03em; line-height: 1.1; }
.lede { margin: 0; font-size: clamp(1.125rem, 1.7vw, 1.5rem); line-height: 1.4; color: var(--muted); }
.body { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--accent); }
.link:hover { text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px;
  border-radius: 999px; border: 0; background: var(--accent); color: #fff;
  font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s;
}
.btn:hover { transform: scale(1.04); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid #c9c9c6; }

/* Hero */
.hero { padding: 96px 0 56px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero .lede { max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 8px; }
.feature { display: block; position: relative; border-radius: 28px; overflow: hidden; background: #111; transform-origin: 50% 100%; will-change: transform; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover img { transform: scale(1.03); }
.feature .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 72px 32px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, .74), rgba(0, 0, 0, 0));
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; color: #fff;
}
.feature .cap small { display: block; font-size: 13px; font-weight: 500; color: #e6e6e6; }
.feature .cap strong { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -.02em; }
.feature .cap span { font-size: 16px; font-weight: 500; }

/* Sections */
.section { padding: 120px 0; }
.section.tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
.grid { display: grid; gap: 40px 24px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 40px; }
.tile { display: flex; flex-direction: column; gap: 16px; }
.tile .ph { border-radius: 20px; overflow: hidden; background: #eeeeec; }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.tile i { font-style: normal; font-size: 15px; font-weight: 500; color: var(--accent); }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 24px; }
.center { align-items: center; text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Gallery page */
.g-head { padding: 40px 0 56px; }
.g-head .wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.g-head .lede { max-width: 760px; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; }
.g-section { padding-bottom: 72px; }
.g-section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 28px; }
.masonry { column-count: 3; column-gap: 16px; }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }
.shot { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; text-align: left; font: inherit; }
.shot .ph { border-radius: 14px; overflow: hidden; background: #eeeeec; }
.shot img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption, .shot .date { display: block; padding: 8px 2px 0; font-size: 13px; color: var(--muted); }
.more { display: flex; justify-content: center; padding: 24px 0 0; }
.next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; padding-top: 72px; padding-bottom: 72px; }
.next .txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.next .ph { flex: 1 1 320px; max-width: 480px; border-radius: 20px; overflow: hidden; }
.next img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease); }
.next:hover img { transform: scale(1.04); }

/* About */
.about { padding: 96px 0; }
.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.about .col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about .ph { flex: 1 1 400px; min-width: 0; border-radius: 28px; overflow: hidden; }
.about .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 24px; }
.facts b { display: block; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; }
.facts span { font-size: 16px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--ink); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(10, 10, 10, .94); opacity: 0; transition: opacity .35s var(--ease); }
.lb.is-open { display: flex; }
.lb.is-in { opacity: 1; }
.lb figure { margin: 0; max-width: min(92vw, 1500px); display: flex; flex-direction: column; align-items: center; gap: 14px; transform: scale(.96); transition: transform .5s var(--ease); }
.lb.is-in figure { transform: none; }
.lb img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 10px; }
.lb figcaption { color: #e6e6e6; font-size: 14px; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background-color .3s, transform .3s var(--ease); }
.lb button:hover { background: rgba(255, 255, 255, .28); transform: scale(1.08); }
.lb .x { top: 16px; right: 16px; }
.lb .prev { left: 16px; top: 50%; margin-top: -24px; }
.lb .nextb { right: 16px; top: 50%; margin-top: -24px; }

/* Motion: only when the visitor has not asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(28px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Story, Gear, Contact */
.quote { margin: 0; padding-left: 20px; border-left: 3px solid var(--ink); font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.4; color: var(--ink-2); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #191919; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { gap: 24px; }
.gear { padding: 80px 0; }
.gear .section-head { margin-bottom: 32px; gap: 6px; }
.gear .section-head h2 { margin-bottom: 8px; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 32px 24px; }
.gear-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.gear-card .ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 20px; border-radius: 20px; background: #ffffff; border: 1px solid var(--line); overflow: hidden; }
.gear-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .9s var(--ease); }
.gear-card:hover img { transform: scale(1.05); }
.gear-card .cap { font-size: 15px; font-weight: 500; color: var(--ink-2); }

/* Contact form */
.cform { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; color: var(--ink); }
.field label span { color: #b3261e; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #b9b9b6; border-radius: 14px; background: #fff;
  font: inherit; font-size: 17px; color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11, 92, 213, .18); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.cform-note { margin: 0; font-size: 15px; color: var(--muted); }
.cform-done { display: flex; flex-direction: column; gap: 12px; padding: 40px; border-radius: 24px; background: var(--tint); }
.cform-done[hidden], .cform[hidden] { display: none; }
.cform-done:focus { outline: none; }

/* ───────── Liquid glass ─────────
   Translucent, blurred surfaces with a bright top edge. Used for controls and
   cards only; body text always sits on a surface opaque enough to stay readable. */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .58));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 10px 34px rgba(20, 20, 20, .10);
}
.glass-dark {
  background: linear-gradient(135deg, rgba(22, 22, 22, .56), rgba(22, 22, 22, .40));
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 10px 34px rgba(0, 0, 0, .28);
  color: #fff;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .96); }
  .glass-dark { background: rgba(22, 22, 22, .86); }
}
.card { border-radius: 28px; padding: 36px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: transform .3s var(--ease); }
.chip:hover { transform: scale(1.04); }

/* Floating glass nav */
.nav {
  top: 12px; width: min(calc(100% - 24px), 1180px); margin: 12px auto 0; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .66));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 24px rgba(20, 20, 20, .08);
  transition: box-shadow .4s var(--ease);
}
.nav.is-stuck { border-bottom-color: rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 34px rgba(20, 20, 20, .16); }
.nav .wrap { padding: 0 26px; min-height: 52px; }
.nav .links a { color: #2e2e2e; }

/* Ambient colour behind glass cards (soft, low-contrast, never behind body text directly) */
.ambient { position: relative; overflow: hidden; isolation: isolate; }
.ambient::before, .ambient::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.ambient::before { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: -8%; top: -30%; background: rgba(255, 176, 92, .42); }
.ambient::after { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; right: -6%; bottom: -35%; background: rgba(96, 156, 255, .36); }

/* Glass controls */
.btn.ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .6));
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(190, 190, 186, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 20px rgba(20, 20, 20, .08);
}
.btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px rgba(11, 92, 213, .28); }
.btn.ghost { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 6px 20px rgba(20, 20, 20, .08); }

/* Home feature photo: compact glass plate instead of a full-width gradient, so the photo stays clear */
.feature .cap {
  left: 20px; right: auto; bottom: 20px; max-width: calc(100% - 40px); padding: 16px 22px; border-radius: 24px; gap: 6px 28px; align-items: center;
  background: linear-gradient(135deg, rgba(22, 22, 22, .56), rgba(22, 22, 22, .40));
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 10px 34px rgba(0, 0, 0, .28);
}

/* Gallery photo banner. The photo is only darkened by an even tint; no glass sits over it except the small back chip. */
.mast {
  position: relative; margin-top: -66px; padding: 190px 0 64px; min-height: 58vh; display: flex; align-items: flex-end;
  background: #1a1a1a center / cover no-repeat; color: #fff;
}
.mast::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .34)); }
.mast .wrap { position: relative; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mast h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.g-head { padding: 48px 0 56px; }

/* Glass cards */
.facts .card { padding: 28px; border-radius: 24px; }
.cform.card { padding: 32px; }
.cform-done { background: none; }
.cform-done.glass { background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .58)); }
.gear.ambient .gear-card .ph { background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .66)); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 8px 26px rgba(20, 20, 20, .08); }
.next .ph { box-shadow: 0 10px 34px rgba(20, 20, 20, .14); }

/* Photo viewer */
.lb { -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); background: rgba(10, 10, 10, .86); }
.lb button { background: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .12)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border: 1px solid rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 8px 24px rgba(0, 0, 0, .3); }
.lb figcaption { padding: 8px 16px; border-radius: 999px; color: #fff; }
@media (max-width: 640px) {
  .nav { border-radius: 26px; }
  .nav .wrap { padding: 4px 18px; }
  .card { padding: 24px; }
  .mast { padding-top: 170px; min-height: 46vh; }
}

/* Photo protection (pairs with the handlers in app.js) */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* Photo grid reads left to right: columns are filled one photo at a time by app.js */
.masonry { column-count: initial; display: flex; align-items: flex-start; gap: 16px; }
.masonry .col { flex: 1 1 0; min-width: 0; }
@media (max-width: 900px) { .masonry { column-count: initial; } }
@media (max-width: 560px) { .masonry { column-count: initial; } }
