:root {
  --bg: #0a0908;
  --bg-2: #13110f;
  --line: #2a2622;
  --fg: #f3eee6;
  --fg-dim: #a39b90;
  --accent: #e9a54b;          /* sunset amber, taken from the hero sky */
  --accent-ink: #1a1208;
  --serif: "Cormorant Garamond", "Prata", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; color: var(--accent); }
.mono { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 20px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 9, 8, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 14px; border-color: var(--line); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 16px; width: auto; transition: opacity .3s; }
.brand:hover img { opacity: .75; }
/* Spotlight menu: a soft light follows the cursor; links brighten where it falls */
.nav-links, .filters {
  --mx: -200px; --my: -200px;
  position: relative; display: flex; gap: 2px; list-style: none; margin: 0; padding: 5px;
  border: 1px solid rgba(243, 238, 230, .1); border-radius: 999px;
  background: rgba(19, 17, 15, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  isolation: isolate; overflow: hidden;
}
.nav-links::before, .nav-links::after, .filters::before, .filters::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease);
}
.nav-links::before, .filters::before { z-index: -1; background: radial-gradient(110px circle at var(--mx) var(--my), rgba(255, 232, 196, .42), rgba(233, 165, 75, .16) 40%, transparent 75%); }
.nav-links::after, .filters::after {
  padding: 1px;
  background: radial-gradient(100px circle at var(--mx) var(--my), rgba(255, 236, 205, 1), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.nav-links.lit::before, .nav-links.lit::after, .filters.lit::before, .filters.lit::after { opacity: 1; }
.nav-links li { position: relative; }
.nav-links a, .filters button {
  --lx: -200px; --ly: -200px;
  display: flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; letter-spacing: .04em; color: var(--fg-dim);
  transition: color .3s var(--ease);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .nav-links a, .filters button {
    background: radial-gradient(70px circle at var(--lx) var(--ly), #fff 0%, #ffe6c2 35%, var(--fg-dim) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
}
.nav-links a[aria-current="page"], .filters button[aria-pressed="true"] { -webkit-text-fill-color: var(--fg); color: var(--fg); background: rgba(243, 238, 230, .08); background-clip: border-box; -webkit-background-clip: border-box; }
.nav-links a:focus-visible, .filters button:focus-visible { -webkit-text-fill-color: var(--fg); color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.brand { justify-self: start; }
.lang { background: none; border: 0; color: var(--fg-dim); font: 500 12px var(--mono); letter-spacing: .1em; cursor: pointer; min-height: 44px; padding: 0 8px; display: flex; gap: 6px; align-items: center; }
.lang .on { color: var(--fg); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px var(--gutter) 96px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.08); animation: heroIn 2.4s var(--ease) forwards; will-change: transform; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,0) 30%, rgba(10,9,8,.2) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,9,8,.7) 0%, rgba(10,9,8,0) 65%);
}
.hero-grain { position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-inner { max-width: 1100px; }
.hero-title { margin: 0; font-family: var(--serif); font-size: clamp(48px, 9vw, 132px); line-height: .95; letter-spacing: -.02em; text-shadow: 0 2px 40px rgba(0,0,0,.4); }
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 26px;
  background: var(--fg); color: var(--bg); font: 500 14px var(--sans); letter-spacing: .04em;
  border-radius: 999px; transition: background .3s var(--ease), gap .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn:hover { background: var(--accent); gap: 20px; }

/* ---------- FEATURED (home) ---------- */
.featured { padding: 24px var(--gutter) clamp(96px, 12vw, 160px); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feat { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.feat img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.92); transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.feat:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.feat-cta { display: flex; justify-content: center; margin-top: 48px; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid rgba(243, 238, 230, .35); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- SUBPAGES ---------- */
.subpage { padding-top: clamp(120px, 14vw, 180px); }
.subpage > section:first-child { padding-top: 0; }
.page-title { font-family: var(--serif); font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -.015em; font-weight: 400; margin: 0; }
.about-text .page-title { margin-bottom: 32px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; }

/* ---------- SECTIONS ---------- */
section { scroll-margin-top: 80px; }
.label { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 24px; }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.section-head .label { margin: 0 0 10px; }
h2 { font-family: var(--serif); font-size: clamp(36px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.015em; }



/* ---------- PORTFOLIO ---------- */
.portfolio { padding: 0 var(--gutter) clamp(96px, 12vw, 160px); }
.pf-head { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.filters { flex-wrap: wrap; justify-content: center; }
.filters button { border: 0; cursor: pointer; font: inherit; font-size: 14px; letter-spacing: .04em; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.pf-item { position: relative; display: block; aspect-ratio: 9 / 8; overflow: hidden; background: var(--bg-2); cursor: zoom-in; isolation: isolate; }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: brightness(.82) saturate(.9); }
.pf-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 12px;
  padding: 56px 20px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  font: 400 22px/1.1 var(--serif); pointer-events: none;
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.pf-item:hover .pf-cap, .pf-item:focus-visible .pf-cap { opacity: 1; transform: none; }
.pf-item:hover img { transform: scale(1.04); filter: brightness(.9) saturate(1); }
.pf-item.enter { animation: pfIn .7s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes pfIn { from { opacity: 0; transform: translateY(18px); } }
.pf-empty { text-align: center; color: var(--fg-dim); padding: 64px 0; }
.pf-more { display: flex; justify-content: center; margin-top: 56px; }
.pf-more .btn[hidden] { display: none; }
.btn { border: 0; cursor: pointer; font-family: var(--sans); }
.btn-ghost { border: 1px solid rgba(243, 238, 230, .35); }

/* Light pool that follows the cursor over a photo */
.glow::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), rgba(255, 236, 205, .34), rgba(233, 165, 75, .1) 45%, transparent 70%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: 1px;
  background: radial-gradient(180px circle at var(--x, 50%) var(--y, 50%), rgba(255, 236, 205, .9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s var(--ease);
}
.glow:hover::after, .glow:hover::before { opacity: 1; }

/* quote */
.quote { padding: clamp(96px, 14vw, 180px) var(--gutter); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 980px; }
.quote p { font: italic 400 clamp(30px, 4.4vw, 58px)/1.15 var(--serif); margin: 0 0 28px; }
.quote cite { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: var(--accent); }

/* about */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) !important;
}
/* Height is capped by the viewport so the photo never towers over the text beside it */
.about-img { position: relative; justify-self: end; width: min(100%, 440px, calc((100svh - 220px) * .8)); aspect-ratio: 4/5; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 1s var(--ease); }
.about-img:hover img { filter: grayscale(0); }
.stamp { position: absolute; left: 16px; bottom: 16px; background: var(--bg); color: var(--fg); padding: 8px 12px; }
.about-body p { color: #cfc8bd; max-width: 58ch; margin: 0 0 20px; font-size: 18px; line-height: 1.7; }
.about-body p:last-child { margin-bottom: 0; }

/* footer */
.footer { margin: 0 var(--gutter); padding: 40px 0 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; }
.footer-brand img { height: 11px; width: auto; opacity: .7; transition: opacity .3s; }
.footer-brand:hover img { opacity: 1; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-links a { font-size: 14px; color: var(--fg-dim); min-height: 44px; display: inline-flex; align-items: center; transition: color .3s; }
.footer-links a:hover { color: var(--fg); }
.footer-meta { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6f685f; }
.footer-meta .totop { color: var(--fg-dim); min-height: 24px; transition: color .3s; }
.footer-meta .totop:hover { color: var(--accent); }


/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: var(--fg); }
.lightbox::backdrop { background: rgba(5, 5, 4, .95); backdrop-filter: blur(8px); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 0 16px; animation: fade .3s var(--ease); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lb-figure img { max-width: 100%; max-height: 82vh; object-fit: contain; opacity: 0; transform: scale(.98); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lb-figure img.ready { opacity: 1; transform: none; }
.lb-figure figcaption { display: flex; gap: 20px; align-items: baseline; font: 400 22px var(--serif); }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 9, 8, .6); color: var(--fg); cursor: pointer; display: grid; place-items: center; transition: border-color .3s, color .3s; }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lb-close { position: fixed; top: 16px; right: 16px; z-index: 2; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }
@keyframes fade { from { opacity: 0; } }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 var(--gutter); background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links { border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
  .nav-links::before, .nav-links::after { display: none; }
  .nav-links a, .nav-links a[aria-current="page"] { background: none; -webkit-text-fill-color: currentColor; color: var(--fg); padding: 0; min-height: 56px; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav.menu-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
  .nav-links a { font: 400 44px/1.2 var(--serif); }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .filters { border-radius: 24px; }
  .lightbox[open] { grid-template-columns: 1fr; padding: 72px 12px 24px; }
  .lb-prev, .lb-next { position: fixed; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .section-head { grid-template-columns: 1fr; gap: 0; }
  .about { grid-template-columns: 1fr; }
  .about-img { justify-self: stretch; width: 100%; aspect-ratio: 4/3; }
  .about-body p { font-size: 17px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand img { height: 12px; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-cap { opacity: 1; transform: none; font-size: 19px; }
  .hero { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-media img { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- MAINTENANCE PAGE ---------- */
body.mnt { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; position: relative; isolation: isolate; overflow-x: hidden; }
.mnt-media { position: fixed; inset: 0; z-index: -2; }
.mnt-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: grayscale(.35) brightness(.55); transform: scale(1.06); animation: mntDrift 24s ease-in-out infinite alternate; }
@keyframes mntDrift { to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
body.mnt::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px circle at 15% 85%, rgba(233, 165, 75, .12), transparent 60%),
    linear-gradient(90deg, rgba(10, 9, 8, .92) 0%, rgba(10, 9, 8, .6) 55%, rgba(10, 9, 8, .35) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, .4) 0%, transparent 30%, rgba(10, 9, 8, .85) 100%);
}
body.mnt .hero-grain { position: fixed; }
.mnt-top { display: flex; justify-content: space-between; align-items: center; padding: 24px var(--gutter); }
.mnt-logo { height: 16px; width: auto; }
.mnt-main { align-self: center; padding: 48px var(--gutter); max-width: 1100px; }
.mnt-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 32px; font: 500 12px var(--mono); letter-spacing: .22em; text-transform: uppercase; }
.mnt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(233, 165, 75, .6); animation: mntPulse 2.2s ease-out infinite; flex: none; }
@keyframes mntPulse { 70% { box-shadow: 0 0 0 10px rgba(233, 165, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 165, 75, 0); } }
.mnt-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8.5vw, 124px); line-height: .95; letter-spacing: -.02em; }
.mnt-title span, .mnt-title em { display: block; }
.mnt-message { max-width: 520px; margin: 36px 0 0; color: #d8d1c6; font-size: 17px; white-space: pre-line; }
.mnt-line { display: block; width: 180px; height: 1px; margin: 48px 0 32px; background: var(--line); position: relative; overflow: hidden; }
.mnt-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: mntScan 2.8s var(--ease) infinite; }
@keyframes mntScan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.mnt-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 36px; }
.mnt-mail { font: 400 clamp(24px, 3vw, 36px) var(--serif); border-bottom: 1px solid rgba(243, 238, 230, .25); padding-bottom: 4px; transition: color .3s, border-color .3s; word-break: break-all; }
.mnt-mail:hover { color: var(--accent); border-color: var(--accent); }
.mnt-social { display: flex; gap: 24px; }
.mnt-social a { font-size: 14px; color: var(--fg-dim); min-height: 44px; display: inline-flex; align-items: center; transition: color .3s; }
.mnt-social a:hover { color: var(--fg); }
.mnt-foot { padding: 24px var(--gutter); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }

/* Admin-only notice while maintenance is on */
.admin-pill {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid rgba(233, 165, 75, .45);
  background: rgba(19, 17, 15, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.admin-pill a { padding: 8px 14px; border-radius: 999px; background: rgba(243, 238, 230, .08); white-space: nowrap; transition: background .3s, color .3s; }
.admin-pill a:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 640px) {
  .admin-pill { flex-wrap: wrap; justify-content: center; border-radius: 18px; padding: 12px; text-align: center; }
  .mnt-logo { height: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mnt-media img, .mnt-dot, .mnt-line::after { animation: none; }
}
