:root {
  --bg: #070808;
  --fg: #ece7df;
  --muted: #898d88;
  --soft: #c9c3b8;
  --accent: #3f9389;
  --copper: #9b623e;
  --line: rgba(236,231,223,.12);
  --panel-pad-x: clamp(1.25rem, 4vw, 4.8rem);
  --floor: clamp(3.5rem, 8vh, 6.5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Helvetica, Arial, sans-serif;
  overflow: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 6.25vw 6.25vw;
  mask-image: radial-gradient(circle at 48% 52%, black, transparent 78%);
  z-index: 1;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: .7rem 1rem;
}
.skip-link:focus { top: 1rem; }
.grain, .ambient-glow, .cursor-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.grain {
  opacity: .065;
  background-image:
    radial-gradient(circle at 20% 20%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 80%, white 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 60%, white 0 .75px, transparent 1.25px);
  background-size: 180px 180px, 240px 240px, 90px 90px;
  animation: grainDrift 18s steps(8) infinite;
}
.ambient-glow {
  background:
    radial-gradient(circle at 64% 22%, rgba(63,147,137,.16), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(155,98,62,.11), transparent 28%);
}
.cursor-orb {
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63,147,137,.11), transparent 67%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: .75;
}
.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: clamp(9rem, 13vw, 15rem) 1fr;
  align-items: start;
  gap: 2rem;
  padding: 1.15rem var(--panel-pad-x);
  background: linear-gradient(to bottom, rgba(0,0,0,.78), rgba(0,0,0,.34) 55%, transparent);
}
.brand {
  display: block;
  width: clamp(8.4rem, 12vw, 13.5rem);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.primary-nav {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}
.primary-nav button,
.enter-site,
#unveilBtn {
  font: inherit;
  color: var(--fg);
  background: rgba(255,255,255,.018);
  border: 1px solid var(--line);
  padding: .9rem 1.05rem;
  min-height: 3rem;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.primary-nav button:hover,
.primary-nav button.is-active,
.enter-site:hover,
#unveilBtn:hover {
  border-color: rgba(63,147,137,.75);
  background: rgba(63,147,137,.08);
  transform: translateY(-1px);
}
.panel-index {
  position: fixed;
  right: var(--panel-pad-x);
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 25;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .18em;
}
.panel-index i {
  display: block;
  width: 6rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.viewport {
  position: relative;
  z-index: 2;
  display: flex;
  width: 700vw;
  height: 100vh;
  height: 100dvh;
  transition: transform .95s cubic-bezier(.22,1,.36,1);
}
.panel {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: clamp(7.25rem, 13vh, 9.25rem) var(--panel-pad-x) var(--floor);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(63,147,137,.45) transparent;
}
.panel::after {
  content: attr(data-panel-name);
  position: absolute;
  right: var(--panel-pad-x);
  top: 46%;
  color: rgba(255,255,255,.032);
  font-size: clamp(4rem, 12vw, 16rem);
  font-weight: 900;
  letter-spacing: -.08em;
  pointer-events: none;
}
.intro {
  display: grid;
  grid-template-columns: minmax(22rem, 1.05fr) minmax(28rem, .95fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  overflow: hidden;
}
.intro-copy {
  max-width: 850px;
  animation: riseIn .9s ease both;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
  font-size: .75rem;
}
.intro h1 {
  margin: .5rem 0 1.6rem;
  font-size: clamp(2.6rem, 5.4vw, 6.8rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 300;
}
.lede {
  color: var(--soft);
  max-width: 650px;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.4;
}
.enter-site { margin-top: 1.5rem; }
.intro-fragments {
  position: relative;
  height: min(64dvh, 620px);
  min-height: 380px;
}
.hero-slab {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 3rem 6rem rgba(0,0,0,.35);
  background: #111;
}
.hero-slab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.8) contrast(1.08);
}
.hero-slab-a {
  right: 3%;
  top: 6%;
  width: 56%;
  height: 34%;
  animation: slabIn .9s .25s ease both;
}
.hero-slab-b {
  left: 0;
  bottom: 4%;
  width: 70%;
  height: 52%;
  animation: slabIn .9s .42s ease both;
}
.measure-line {
  position: absolute;
  background: var(--copper);
  opacity: .8;
}
.line-one { width: 65%; height: 1px; left: 8%; top: 44%; }
.line-two { width: 1px; height: 45%; right: 22%; top: 20%; background: var(--accent); }
.section-head {
  position: relative;
  max-width: 760px;
  z-index: 2;
}
.section-head h2,
.contact-panel h2,
.unveiled-panel h2 {
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 300;
  margin: .2rem 0 1rem;
}
.section-head p:not(.eyebrow),
.veil-card p,
.microcopy {
  color: var(--soft);
  line-height: 1.45;
  font-size: 1.05rem;
}
.works-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.8rem, 1.2vw, 1.4rem);
  margin-top: 2rem;
  max-width: 92vw;
  padding-bottom: 2rem;
}
.work-card {
  position: relative;
  min-height: clamp(14rem, 25dvh, 22rem);
  grid-column: span 4;
  padding: 1rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.008)),
    radial-gradient(circle at 65% 20%, rgba(63,147,137,.16), transparent 35%),
    radial-gradient(circle at 20% 90%, rgba(155,98,62,.12), transparent 38%);
  display: flex;
  align-items: flex-end;
  transition: transform .35s ease, border-color .35s ease, filter .35s ease;
}
.work-card:nth-child(1) { grid-column: span 5; min-height: clamp(16rem, 32dvh, 26rem); }
.work-card:nth-child(2) { grid-column: span 3; min-height: clamp(13rem, 23dvh, 19rem); margin-top: clamp(1rem, 5dvh, 4rem); }
.work-card:nth-child(3) { grid-column: span 4; min-height: clamp(15rem, 28dvh, 22rem); }
.work-card:nth-child(4) { grid-column: span 4; min-height: clamp(13rem, 22dvh, 17rem); }
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(63,147,137,.55);
  filter: brightness(1.08);
}
.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  filter: grayscale(.12) contrast(1.08);
  transition: transform .7s ease, opacity .4s ease;
}
.work-card:hover img { transform: scale(1.04); opacity: .86; }
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent 65%);
}
.work-meta {
  position: relative;
  z-index: 1;
}
.work-meta strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}
.work-meta span {
  color: var(--muted);
  font-size: .82rem;
}
.unveiled-panel {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 44% 45%, rgba(155,98,62,.12), transparent 40%);
}
.veil-card {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  backdrop-filter: blur(18px);
  box-shadow: 0 4rem 8rem rgba(0,0,0,.35);
}
.veil-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255,255,255,.055);
  pointer-events: none;
}
.veil-card .works-grid {
  grid-template-columns: repeat(6, 1fr);
}
.veil-card .work-card { grid-column: span 6; }
.contact-panel {
  display: grid;
  place-items: center;
  text-align: center;
}
.contact-card {
  position: relative;
  z-index: 2;
}
.contact-panel a {
  color: var(--fg);
  text-decoration: none;
  font-size: clamp(1.4rem, 2.4vw, 3rem);
  letter-spacing: -.04em;
}
.contact-panel a:hover { color: var(--accent); }
.lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  grid-template-columns: 6rem 1fr 6rem;
  grid-template-rows: 1fr auto;
  place-items: center;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(8px);
}
.lightbox img {
  grid-column: 2;
  max-width: 78vw;
  max-height: 78vh;
  max-height: 78dvh;
  border: 1px solid var(--line);
  box-shadow: 0 2rem 6rem rgba(0,0,0,.7);
}
#lightboxCaption {
  grid-column: 2;
  padding: 1rem 0 2rem;
  color: var(--soft);
}
#closeLightbox,
#prevWork,
#nextWork {
  background: none;
  border: 0;
  color: var(--fg);
  cursor: pointer;
}
#closeLightbox { position: absolute; top: 1rem; right: 2rem; font-size: 3rem; }
#prevWork,#nextWork { font-size: 4rem; opacity: .75; }
.hidden { display: none !important; }
body.atelier .panel { outline: 1px dashed rgba(63,147,137,.42); outline-offset: -1rem; }
body.atelier .work-card {
  background-image: linear-gradient(45deg, rgba(63,147,137,.09) 25%, transparent 25%, transparent 50%, rgba(63,147,137,.09) 50%, rgba(63,147,137,.09) 75%, transparent 75%);
  background-size: 18px 18px;
}
body.atelier::after {
  content: "ATELIER MODE / COMPOSITION GRID EXPOSED";
  position: fixed;
  left: var(--panel-pad-x);
  bottom: 2rem;
  z-index: 90;
  color: var(--accent);
  font-size: .75rem;
  letter-spacing: .22em;
}
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slabIn { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes grainDrift { to { transform: translate3d(-2rem,1rem,0); } }
@media (max-width: 1200px) {
  .primary-nav button { padding: .75rem .85rem; }
}
@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr; }
  .primary-nav { justify-content: flex-start; }
  .intro { grid-template-columns: 1fr; padding-top: 14rem; }
  .intro-fragments { display: none; }
}
@media (max-width: 900px) {
  html, body { overflow: auto; }
  .viewport { display: block; width: 100%; height: auto; transform: none !important; }
  .panel { height: auto; min-height: 100dvh; overflow: visible; }
  .panel::after,.panel-index,.cursor-orb { display: none; }
  .site-header { position: sticky; background: rgba(0,0,0,.94); }
  .works-grid { grid-template-columns: 1fr; }
  .work-card,.work-card:nth-child(n) { grid-column: auto; min-height: 18rem; margin-top: 0; }
  .lightbox { grid-template-columns: 3rem 1fr 3rem; }
}
