:root {
  --bg: #0a0c0d;
  --bg-2: #111517;
  --ink: #eef0ec;
  --muted: #9aa3a3;
  --line: rgba(238, 240, 236, .12);
  --sea: #6fd4c4;
  --sun: #f2a65a;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1320px, 100% - var(--gut) * 2); margin-inline: auto; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(10, 12, 13, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mono {
  width: 36px; height: 36px; border: 1px solid rgba(238,240,236,.5); border-radius: 50%;
  display: grid; place-items: center; font: italic 17px/1 var(--serif); letter-spacing: .02em;
}
.brand b { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.links { display: flex; gap: 26px; }
.links a { text-decoration: none; font-size: 14px; color: rgba(238,240,236,.8); transition: color .2s; }
.links a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
  background: var(--ink); color: #0a0c0d; border: 1px solid var(--ink);
  transition: transform .2s, background .2s, color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(238,240,236,.45); }
.btn.ghost:hover { background: rgba(238,240,236,.1); }
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease;
}
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.slide.on { opacity: 1; }
.slide.on img { animation: drift 9s ease-out forwards; }
@keyframes drift { from { transform: scale(1.08) translate3d(0,0,0); } to { transform: scale(1) translate3d(0,-1%,0); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(10,12,13,.92) 0%, rgba(10,12,13,.35) 38%, rgba(10,12,13,0) 62%),
    linear-gradient(to bottom, rgba(10,12,13,.55), rgba(10,12,13,0) 22%);
}
.hero-text {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(28px, 7vh, 80px);
}
.hero-text { text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.kicker { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(238,240,236,.75); margin: 0 0 14px; }
.hero h1 {
  font: 400 clamp(64px, 13vw, 200px)/.86 var(--serif); letter-spacing: -.02em; margin: 0;
}
.hero h1 span { display: block; }
.hero h1 em { font-style: italic; color: rgba(238,240,236,.86); }
.hero h1 .line { overflow: hidden; }
.hero h1 .line span { animation: rise 1.1s cubic-bezier(.2,.7,.1,1) both; }
.hero h1 .line:nth-child(2) span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; animation: fade 1s .5s both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-meta { text-align: right; font-size: 13px; color: rgba(238,240,236,.8); animation: fade 1s .7s both; }
.hero-meta .where { display: block; font: italic 22px/1.2 var(--serif); color: var(--ink); min-height: 1.2em; transition: opacity .5s; }
.dots { display: flex; gap: 6px; justify-content: flex-end; margin-top: 12px; }
.dots button {
  width: 34px; height: 3px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(238,240,236,.28); position: relative; overflow: hidden;
}
.dots button::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.dots button.on::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* Strip */
.strip { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.strip-in { display: flex; gap: 48px; padding: 18px 0; width: max-content; animation: marquee 40s linear infinite; }
.strip span { font: italic 26px/1 var(--serif); color: rgba(238,240,236,.75); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.strip span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { scroll-margin-top: 70px; }
.sec { padding: clamp(72px, 11vw, 140px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.label { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--sea); margin: 0 0 12px; }
h2 { font: 400 clamp(44px, 6.5vw, 88px)/.95 var(--serif); letter-spacing: -.015em; margin: 0; }
h2 em { color: rgba(238,240,236,.7); }
.lead { color: var(--muted); max-width: 46ch; margin: 18px 0 0; font-size: 17px; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 9px 16px; font-size: 14px; cursor: pointer; color: rgba(238,240,236,.8);
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: rgba(238,240,236,.4); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #0a0c0d; border-color: var(--ink); }
.filters sup { font-size: 10px; margin-left: 3px; opacity: .6; }

/* Gallery (masonry by columns, no sideways scroll) */
.gallery { columns: 3 260px; column-gap: 14px; }
.tile {
  break-inside: avoid; margin: 0 0 14px; position: relative; display: block; width: 100%;
  border: 0; padding: 0; background: var(--bg-2); cursor: zoom-in; overflow: hidden; border-radius: 4px;
  opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.1,1);
}
.tile.in { opacity: 1; transform: none; }
.tile.hide { display: none; }
.tile img { width: 100%; transition: transform 1.2s cubic-bezier(.2,.7,.1,1), filter .6s; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: 13px; color: rgba(255,255,255,.92);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.tile figcaption i { display: block; font: italic 20px/1.2 var(--serif); }
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }
.tile:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.more { text-align: center; margin-top: 30px; }

/* Water feature */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-pic { position: relative; border-radius: 4px; overflow: hidden; }
.feature-pic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.feature-pic .tag {
  position: absolute; left: 14px; bottom: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(10,12,13,.65); backdrop-filter: blur(8px); padding: 7px 12px; border-radius: 999px;
}
.kit { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.kit li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kit li span { color: var(--muted); font-size: 14px; }
.kit li b { font-weight: 600; text-align: right; }

/* Aerial band */
.band { position: relative; min-height: 78vh; display: grid; align-items: end; overflow: hidden; }
.band img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,13,.85), rgba(10,12,13,0) 55%); }
.band .wrap { position: relative; z-index: 1; padding-bottom: clamp(32px, 6vw, 64px); }
.band h2 { max-width: 12ch; text-shadow: 0 2px 24px rgba(0,0,0,.4); }
.band .label { color: rgba(238,240,236,.85); }

/* Prints */
.prints { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.frames { position: relative; aspect-ratio: 1 / 1; }
.frame {
  position: absolute; background: #f3f1ec; padding: 5%; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.4);
  transition: transform .8s cubic-bezier(.2,.7,.1,1);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.a { width: 62%; aspect-ratio: 3/2; left: 0; top: 8%; transform: rotate(-3deg); }
.frame.b { width: 44%; aspect-ratio: 4/5; right: 2%; top: 30%; transform: rotate(4deg); }
.frame.c { width: 46%; aspect-ratio: 3/2; left: 14%; bottom: 2%; transform: rotate(1.5deg); }
.frames:hover .frame.a { transform: rotate(-5deg) translate(-8px,-6px); }
.frames:hover .frame.b { transform: rotate(6deg) translate(8px,-4px); }
.frames:hover .frame.c { transform: rotate(0deg) translateY(8px); }
.steps { list-style: none; margin: 28px 0 32px; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font: italic 22px/1.2 var(--serif); color: var(--sun); }

/* Places */
.places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.places span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 14px; color: rgba(238,240,236,.85); }

/* About */
details.about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.about summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font: 400 clamp(28px, 3.5vw, 40px)/1 var(--serif);
}
details.about summary::-webkit-details-marker { display: none; }
details.about summary::after { content: "+"; font: 300 30px/1 var(--sans); transition: transform .3s; }
details.about[open] summary::after { transform: rotate(45deg); }
.about-body { columns: 2 320px; column-gap: 48px; color: var(--muted); padding-bottom: 32px; }
.about-body p { margin: 0 0 16px; break-inside: avoid; }

/* Footer */
footer { padding: 72px 0 110px; }
.foot-big { font: 400 clamp(48px, 9vw, 130px)/.9 var(--serif); letter-spacing: -.02em; margin: 0 0 30px; }
.foot-big a { text-decoration: none; }
.foot-big a:hover em { color: var(--sea); }
.foot-big em { transition: color .3s; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.foot-row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,7,8,.96);
  display: grid; grid-template-rows: 1fr auto; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 64px 72px 12px; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; transition: opacity .25s, transform .35s; }
.lb-stage img.out { opacity: 0; transform: scale(.98); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 22px; flex-wrap: wrap; }
.lb-cap i { font: italic 24px/1.2 var(--serif); display: block; }
.lb-cap span { color: var(--muted); font-size: 13px; }
.lb-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,12,13,.5); cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(238,240,236,.12); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-close { position: absolute; top: 14px; right: 14px; translate: none; }
.lb-count { position: absolute; top: 26px; left: 24px; font-size: 13px; color: var(--muted); letter-spacing: .1em; }

/* Phone pill */
.pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* Reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.1,1); }
.rv.in { opacity: 1; transform: none; }

/* Grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
  .feature, .prints { grid-template-columns: 1fr; }
  .prints .frames { order: -1; max-width: 520px; width: 100%; margin-inline: auto; }
  .gallery { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; }
}
@media (max-width: 700px) {
  .links, .nav .btn { display: none; }
  .pill { display: inline-flex; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-meta { text-align: left; }
  .dots { justify-content: flex-start; }
  .strip span { font-size: 21px; }
  .lb-stage { padding: 56px 8px 8px; }
  .lb-prev, .lb-next { display: none; }
  .band { min-height: 62vh; }
  .tile figcaption { display: none; }
  .filters button { padding: 8px 13px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .tile { opacity: 1; transform: none; }
}
