/* Fonts are stored on the site itself (no Google tracking). */
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0a0a09;
  --bg-2: #11110f;
  --text: #edeae3;
  --soft: #b9b5ab;
  --muted: #7d7a72;
  --line: rgba(237, 234, 227, 0.12);
  --accent: #c8ad7f;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1480px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--bg); }

.label {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.solid, body:not(.page-home) .site-header {
  background: rgba(10, 10, 9, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 18px; padding-bottom: 18px;
  border-color: var(--line);
}
.logo { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.logo span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 9.5px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--soft); }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav a {
  position: relative; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--soft); padding: 6px 0; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero (full screen) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: var(--bg-2); }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  opacity: 0; transform: scale(1.45);
  transition: opacity 1.4s var(--ease), transform 5.5s cubic-bezier(.25, .1, .1, 1) .2s;
}
.hero-img.loaded { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,10,9,.55) 0%, rgba(10,10,9,0) 22%),
    linear-gradient(to top, rgba(10,10,9,.85) 0%, rgba(10,10,9,.35) 32%, rgba(10,10,9,0) 55%),
    linear-gradient(to right, rgba(10,10,9,.45) 0%, rgba(10,10,9,0) 45%);
}
.hero-text {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 8vh, 80px);
  max-width: 620px;
  animation: rise 1.4s .3s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-text .label { color: var(--text); opacity: .85; }
.hero-text h1 {
  font-family: var(--serif); font-weight: 400; margin-top: 14px;
  font-size: clamp(3.2rem, 8vw, 6.6rem); line-height: .95; letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-text p { color: #e2ded5; margin-top: 18px; max-width: 440px; font-size: 1rem; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 30px; }
.hero-actions .text-link { color: var(--text); }
.btn {
  display: inline-block; padding: 15px 28px; border: 1px solid rgba(237,234,227,.7);
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  background: rgba(10,10,9,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Intro statement ---------- */
.statement { max-width: 1100px; margin: 0 auto; padding: clamp(96px, 16vw, 200px) var(--gutter) clamp(72px, 12vw, 150px); text-align: center; }
.statement .label { display: block; margin-bottom: 34px; }
.statement h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.08; letter-spacing: -.005em;
}
.statement h1 em { font-style: italic; color: var(--accent); }
.statement p { max-width: 520px; margin: 30px auto 0; color: var(--soft); }

/* ---------- Section head ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 12vw, 160px); }
.work { padding-top: clamp(80px, 11vw, 150px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 22px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; }
.section-head .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.1rem; margin-right: 14px; }

.text-link { font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); display: inline-flex; gap: 12px; align-items: center; transition: color .3s, gap .4s var(--ease); white-space: nowrap; }
.text-link:hover { color: var(--text); gap: 18px; }

/* ---------- Editorial grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px) clamp(12px, 1.6vw, 24px);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px) clamp(16px, 2.4vw, 40px); }
.tile { position: relative; margin: 0; }
.tile-btn {
  display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in;
  background: var(--bg-2); overflow: hidden; position: relative;
  aspect-ratio: 3 / 2;
}
.tile-btn img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.015);
  transition: opacity 1s var(--ease), transform 1.4s var(--ease);
}
.tile-btn img.loaded { opacity: 1; transform: scale(1); }
.tile-btn:hover img.loaded { transform: scale(1.035); }
.tile-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.tile-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,9,.7), rgba(10,10,9,0) 45%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.tile-btn:hover::after, .tile-btn:focus-visible::after { opacity: 1; }
.tile figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; pointer-events: none;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.2;
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.tile-btn:hover + figcaption, .tile-btn:focus-visible + figcaption { opacity: 1; transform: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Gallery page ---------- */
.page-top { max-width: var(--max); margin: 0 auto; padding: clamp(140px, 18vw, 210px) var(--gutter) 0; }
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.01em; }
.page-intro { color: var(--soft); max-width: 460px; margin-top: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: clamp(40px, 6vw, 64px) 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.filter {
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--muted);
  font: 500 11px/1.6 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  transition: color .3s;
}
.filter sup { font-family: var(--serif); font-style: italic; font-size: 13px; letter-spacing: 0; margin-left: 5px; text-transform: none; }
.filter:hover { color: var(--soft); }
.filter.active { color: var(--text); }
.filter.active sup { color: var(--accent); }
.gallery-section { padding-top: clamp(28px, 4vw, 48px); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.about-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text .page-title { font-size: clamp(2.8rem, 6vw, 5rem); }
.about-text p { color: var(--soft); margin-top: 22px; max-width: 54ch; }
.about-text p.lead { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: var(--text); margin-top: 30px; }
.facts { list-style: none; margin-top: 44px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts li span:last-child { font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) var(--gutter) 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1; letter-spacing: -.01em; }
.footer-name em { font-style: italic; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 6vw, 72px); }

/* ---------- Full-screen viewer ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: #070706;
  display: grid; grid-template-rows: 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { display: flex; align-items: center; justify-content: center; padding: 72px 96px 12px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease); }
.lb-stage img.loaded { opacity: 1; }
.lb-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px var(--gutter) 26px; }
.lb-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.lb-count { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.1rem; }
.lb-btn {
  position: absolute; background: none; border: 0; color: var(--soft); cursor: pointer;
  width: 56px; height: 56px; display: grid; place-items: center; transition: color .3s;
}
.lb-btn:hover, .lb-btn:focus-visible { color: var(--text); }
.lb-btn svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.lb-close { top: 14px; right: calc(var(--gutter) - 16px); }
.lb-prev { left: calc(var(--gutter) - 16px); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(var(--gutter) - 16px); top: 50%; transform: translateY(-50%); }

/* ---------- Tablet & phone ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
}
/* Touch screens (no mouse hover): always show photo titles under the photos */
@media (hover: none) {
  .tile figcaption { position: static; opacity: 1; transform: none; padding-top: 10px; font-size: 1.15rem; }
  .tile-btn::after { display: none; }
}
@media (max-width: 640px) {
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .logo { font-size: 19px; }
  .logo span { font-size: 8.5px; letter-spacing: .34em; }
  .nav { gap: 16px; }
  .nav a { font-size: 10px; letter-spacing: .18em; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  /* On phones, show the title under each photo (no hover) */
  .tile figcaption { position: static; opacity: 1; transform: none; padding-top: 10px; font-size: 1.15rem; }
  .tile-btn::after { display: none; }
  .hero-text { bottom: 32px; }
  .hero-text p, .hero-actions .text-link { display: none; }
  .hero-text h1 { font-size: 3rem; margin-top: 10px; }
  .hero-actions { margin-top: 22px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .lb-stage { padding: 64px 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 74px; transform: none; }
}
@media (max-width: 400px) {
  .nav { gap: 12px; }
  .nav a { letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= Field journal additions ================= */

/* Fine film grain over the whole site */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06; mix-blend-mode: overlay;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-meta { display: block; margin-top: 14px; color: var(--soft) !important; }

/* Field notes: one photograph at a time, alternating sides, all the same size */
.notes { display: flex; flex-direction: column; gap: clamp(56px, 9vw, 120px); }
.note { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.note.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.note.flip .note-photo { order: 2; }
.note.flip .note-text { order: 1; text-align: right; }
.note .note-photo { aspect-ratio: 3 / 2; }
.note-num { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(3.5rem, 7vw, 6rem); line-height: 1; color: var(--accent); opacity: .85; }
.note-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; margin-top: 14px; }
.note-meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--soft); }

/* Gallery captions: title + where/when */
.tile figcaption { display: flex; flex-direction: column; gap: 4px; }
.tile figcaption .cap-meta { font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }

/* Viewer: where/when under the title */
.lb-meta { display: block; margin-top: 6px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }



@media (max-width: 760px) {
  .note, .note.flip { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .note.flip .note-photo, .note.flip .note-text { order: 0; text-align: left; }
  .note-num { font-size: 3rem; }
}
.hero-text .hero-meta { font-size: 11px; max-width: none; margin-top: 16px; text-shadow: none; }


/* ---------- Opening: 70 / 30 split ---------- */
.hero.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 3fr); background: var(--bg); }
.hero.split::after { background: linear-gradient(to bottom, rgba(10,10,9,.5) 0%, rgba(10,10,9,0) 18%); right: auto; width: 70%; }
.hero-photo { position: relative; overflow: hidden; background: var(--bg-2); }
.hero.split .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero.split .hero-img.loaded { opacity: 1; }
.hero-panel {
  position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px clamp(28px, 3.2vw, 56px) clamp(28px, 4vh, 44px); border-left: 1px solid var(--line);
}
.hero-panel > * { animation: rise 1.2s var(--ease) both; }
.hero-panel .hero-main { animation-delay: .35s; }
.hero-panel .hero-caption-line { animation-delay: .8s; }
.hero-kicker { color: var(--soft); }
.hero-panel h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 6.2vw, 6.4rem); line-height: .9; letter-spacing: -.015em; }
.hero-panel h1 span { display: block; }
.hero-panel h1 span + span { font-style: italic; color: var(--accent); padding-left: .5em; }
.hero-panel .hero-meta { display: block; margin-top: 26px; font-size: 10.5px; letter-spacing: .2em; color: var(--soft); }
.hero-intro { color: var(--soft); margin-top: 18px; max-width: 34ch; }
.hero-panel .hero-actions { margin-top: 32px; }
.hero-panel .btn { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero-caption-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.hero-caption-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

@media (max-width: 900px) {
  .hero.split { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .hero.split::after { width: 100%; height: 70svh; }
  .hero-photo { height: 70vh; height: 70svh; min-height: 360px; }
  .hero-panel { padding: 32px var(--gutter) 40px; border-left: 0; border-top: 1px solid var(--line); gap: 28px; }
  .hero-panel h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  .hero-kicker { order: 2; }
  .hero-main { order: 1; }
  .hero-caption-line { order: 3; }
}
@media (max-width: 640px) { .hero-panel .hero-actions .text-link { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .hero-panel > * { animation: none; } }
