:root {
  --ink: #1c1714;
  --ink-2: #3a312b;
  --paper: #f6f1e9;
  --paper-2: #ece3d5;
  --gold: #b48a4e;
  --gold-2: #c9a46a;
  --muted: #7a6d62;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; }
a { color: inherit; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem; font-weight: 500;
}
section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1rem, 5vw, 4rem); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  color: var(--paper);
  background: linear-gradient(to bottom, rgba(20,16,13,.65), rgba(20,16,13,0));
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold-2); box-shadow: inset 0 0 0 4px transparent, inset 0 0 0 7px var(--gold-2); }
.nav nav { display: flex; gap: clamp(.8rem, 2vw, 2rem); }
.nav nav a { text-decoration: none; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.nav nav a:hover { opacity: 1; color: var(--gold-2); }
@media (max-width: 720px) { .nav nav { display: none; } }

/* PLACEHOLDER IMAGERY */
.ph, .photo { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .35; mix-blend-mode: overlay;
}
.ph::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; translate: -50% -50%;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35);
  box-shadow: inset 0 0 0 9px transparent, inset 0 0 0 10.5px rgba(255,255,255,.28);
}
.hero-photo.ph::after { display: none; }
.ph--warm  { background-image: radial-gradient(120% 90% at 75% 20%, #e8b57a 0%, #a8643a 35%, #3d2318 75%, #1a110c 100%); }
.ph--sepia { background-image: radial-gradient(100% 80% at 35% 30%, #d9bf98 0%, #8e6b46 45%, #3a2b1e 100%); }
.ph--slate { background-image: radial-gradient(110% 90% at 70% 25%, #b9c0c2 0%, #5e676b 45%, #22282b 100%); }
.ph--rose  { background-image: radial-gradient(110% 90% at 30% 25%, #e7c0b0 0%, #9c6457 45%, #3a2220 100%); }
.ph--olive { background-image: radial-gradient(110% 90% at 65% 30%, #cfc79a 0%, #7d7448 45%, #2c2a1a 100%); }
.photo::before, .photo::after { display: none; }

/* HERO */
.hero {
  position: relative; min-height: 100svh; padding: 0;
  display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--ink);
}
.hero-photo { position: absolute; inset: 0; transform: scale(1.04); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translate(-1%, -1%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,16,13,.88) 0%, rgba(20,16,13,.25) 55%, rgba(20,16,13,.45) 100%); }
.hero-text { position: relative; padding: 0 clamp(1rem, 6vw, 5rem) clamp(5rem, 12vh, 8rem); max-width: 52rem; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 7.5rem); font-weight: 400; margin-bottom: .3em; }
.hero h1 em { color: var(--gold-2); }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 32rem; opacity: .9; margin: 0 0 2rem; }
.btn {
  display: inline-block; padding: .9rem 1.8rem; border: 1px solid var(--gold-2); color: var(--paper);
  text-decoration: none; letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; transition: .25s;
}
.btn:hover { background: var(--gold-2); color: var(--ink); }
.film-strip {
  position: absolute; right: 0; bottom: 0; left: 0; display: flex; gap: 1.5rem; justify-content: center;
  padding: .6rem 1rem; font: 500 .65rem/1 var(--sans); letter-spacing: .3em; color: rgba(232,181,122,.6);
  border-top: 1px dashed rgba(232,181,122,.25); white-space: nowrap; overflow: hidden;
}

/* ABOUT */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 72rem; margin: 0 auto; }
.frame { aspect-ratio: 4 / 5; border: 12px solid #fff; box-shadow: 0 30px 60px -30px rgba(28,23,20,.45); rotate: -2deg; }
.caption { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 1.2rem 0 0; text-align: center; }
.about-text p { font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--paper-2); }
.stats dt { font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.stats dd { margin: 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .frame { max-width: 22rem; margin: 0 auto; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* SERVICES */
.services { background: var(--ink); color: var(--paper); }
.services .eyebrow { color: var(--gold-2); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1px; max-width: 72rem; margin: 3rem auto 0; background: rgba(246,241,233,.12); }
.service-grid article { background: var(--ink); padding: 2.2rem 1.8rem; }
.service-grid .num { font-family: var(--serif); color: var(--gold-2); font-size: 1rem; }
.service-grid p { color: #bfb3a6; margin: 0; }

/* ARCHIVE & PROJECTS */
.section-head { max-width: 72rem; margin: 0 auto 2.5rem; }
.archive { background: var(--paper-2); }
.archive-grid, .project-grid { max-width: 72rem; margin: 0 auto; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.archive-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.project-grid { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.tile { margin: 0; cursor: default; }
.tile[tabindex] { cursor: zoom-in; }
.tile .ph, .tile .photo { transition: transform .5s ease, filter .5s ease; }
.tile--archive .ph, .tile--archive .photo { aspect-ratio: 1; border: 8px solid #fff; box-shadow: 0 14px 30px -18px rgba(28,23,20,.5); filter: sepia(.25); }
.tile--project .ph, .tile--project .photo { aspect-ratio: 4 / 3; }
.tile:hover .ph, .tile:hover .photo { transform: translateY(-4px); filter: none; }
.tile figcaption { padding: .8rem .2rem 0; display: flex; flex-direction: column; }
.tile figcaption strong { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.tile figcaption span { font-size: .85rem; color: var(--muted); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; max-width: 64rem; margin: 3rem auto 0; text-align: center; }
.contact-grid h3 { font-size: 1.2rem; color: var(--gold); }
.placeholder { color: var(--muted); font-style: italic; margin: 0; }

/* FOOTER */
.footer { background: var(--ink); color: var(--paper); text-align: center; padding: 2.5rem 1rem; font-size: .85rem; }
.footer p { margin: .2rem 0; }
.footer .muted { color: #9b8f84; font-family: var(--serif); font-style: italic; font-size: 1rem; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15,12,10,.94); display: grid; place-items: center; padding: 2rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 80vh; display: block; }
.lightbox figcaption { color: var(--paper); text-align: center; margin-top: 1rem; font-family: var(--serif); font-size: 1.15rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: var(--paper); font-size: 2.4rem; cursor: pointer; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-photo { animation: none; } }
