:root {
  color-scheme: dark;
  --black: #090806;
  --black-soft: #11100d;
  --white: #f5f0e6;
  --muted: #aaa295;
  --gold: #d3ac67;
  --gold-light: #f0d7a3;
  --line: rgba(234, 212, 161, .2);
  --gutter: clamp(22px, 6vw, 94px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; scroll-snap-type: y proximity; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--black); }

a { color: inherit; text-decoration: none; }

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  z-index: 30;
  inset: 0 auto auto 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 14px rgba(201, 167, 101, .65);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 88px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(234,212,161,.16);
  background: linear-gradient(180deg, rgba(9,8,6,.72), rgba(9,8,6,.12));
  backdrop-filter: blur(12px);
}

.wordmark { display: inline-flex; align-items: center; gap: 11px; font: 700 12px "Manrope", sans-serif; letter-spacing: .16em; }
.wordmark-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font: 500 15px Georgia, serif;
  letter-spacing: 0;
}
.wordmark-period { color: var(--gold); }
.main-nav { display: flex; gap: clamp(22px, 3.2vw, 50px); color: #d3cfc5; font-size: 12px; }
.main-nav a, .footer-links a { transition: color .25s ease; }
.main-nav a { position: relative; padding: 10px 0; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: 3px; left: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s ease; }
.main-nav a:hover, .footer-links a:hover { color: var(--gold-light); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav .nav-admin { padding: 8px 12px; border: 1px solid rgba(201,167,101,.65); border-radius: 999px; color: var(--gold-light); transition: color .25s ease, background .25s ease; }
.main-nav .nav-admin::after { display: none; }
.main-nav .nav-admin:hover { color: #0a0a09; background: var(--gold); }
.header-note { display: flex; align-items: center; gap: 9px; color: #d3cfc5; font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(201,167,101,.7); }

.hero {
  min-height: 700px;
  height: min(940px, 100svh);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #12100c;
  scroll-snap-align: start;
}
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: sepia(.2) saturate(.72) brightness(.57) contrast(1.08);
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero-shade {
  background:
    radial-gradient(ellipse at 74% 44%, rgba(196,145,67,.2), transparent 34%),
    linear-gradient(90deg, rgba(8,7,5,.95) 0%, rgba(8,7,5,.73) 43%, rgba(8,7,5,.2) 100%),
    linear-gradient(0deg, #090806 0%, transparent 36%, rgba(8,7,5,.35) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 88px 0 0;
  pointer-events: none;
  border-top: 1px solid rgba(234,212,161,.17);
  background: linear-gradient(115deg, transparent 20%, rgba(201,167,101,.08) 72%, transparent 100%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto var(--gutter) 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(234,212,161,.5), rgba(234,212,161,.05) 72%, transparent);
}
.hero-orbit {
  position: absolute;
  right: -9vw;
  top: 20%;
  width: min(50vw, 650px);
  aspect-ratio: 1;
  border: 1px solid rgba(234,212,161,.17);
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit-one { transform: scaleY(.55) rotate(-32deg); }
.hero-orbit-two { transform: scaleY(.55) rotate(32deg); border-color: rgba(234,212,161,.11); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 100px var(--gutter) 34px; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .17em; font-size: 10px; font-weight: 600; }
.hero-eyebrow { display: flex; align-items: center; gap: 13px; color: #ddd5c5; }
.eyebrow-line { display: inline-block; width: 35px; height: 1px; background: var(--gold); }
.hero h1 {
  max-width: 1180px;
  margin: clamp(46px, 8vh, 85px) 0 0;
  font: 500 clamp(66px, 10.2vw, 154px)/.9 "Manrope", sans-serif;
  letter-spacing: -.085em;
  text-wrap: balance;
  text-shadow: 0 10px 50px rgba(0,0,0,.2);
}
.hero h1 > span { color: rgba(245,240,230,.86); }
.hero h1 em, .work-heading h2 em, .focus-heading em, .contact-content h2 em {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.065em;
}
.hero-bottom { display: flex; justify-content: space-between; align-items: end; margin-top: clamp(54px, 9vh, 96px); }
.hero-intro { max-width: 360px; margin: 0; color: #d1cdc4; font-size: 14px; line-height: 1.8; }
.scroll-cue { display: flex; align-items: center; gap: 16px; color: #e6dece; font-size: 9px; letter-spacing: .15em; }
.scroll-cue-line { width: 70px; height: 1px; background: var(--gold); transform-origin: left; animation: cue-pulse 2s ease-in-out infinite; }
.hero-index { position: absolute; z-index: 2; right: var(--gutter); bottom: 37px; margin: 0; color: #e2d9c8; font: 11px "Manrope", sans-serif; letter-spacing: .08em; }
.hero-index span { padding: 0 5px; color: var(--gold); }

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(234,212,161,.14);
  border-bottom: 1px solid rgba(234,212,161,.14);
  background: linear-gradient(90deg, rgba(201,167,101,.08), rgba(201,167,101,.015), rgba(201,167,101,.08));
}
.marquee-track {
  width: max-content;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 34px;
  animation: marquee-drift 32s linear infinite;
  color: #d5c7a8;
  font: 600 10px "Manrope", sans-serif;
  letter-spacing: .2em;
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 15px; }

.section-shell { padding-right: var(--gutter); padding-left: var(--gutter); }
.work-section { padding-top: 130px; padding-bottom: 145px; scroll-snap-align: start; }
.section-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.section-number { margin-right: 22px; color: var(--gold); }
.section-aside { margin: 0; color: var(--muted); font-size: 11px; }
.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 60px 0 54px; }
.work-heading h2, .focus-heading {
  margin: 0;
  font: 500 clamp(49px, 7vw, 94px)/.96 "Manrope", sans-serif;
  letter-spacing: -.075em;
}
.work-heading > p { max-width: 320px; margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.project-list { display: grid; gap: 34px; }
.portfolio-state {
  min-height: 290px;
  margin: 0;
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: radial-gradient(ellipse at 82% 45%, rgba(201,167,101,.16), transparent 38%), linear-gradient(110deg, #11100d, #0c0b09 65%);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.portfolio-state strong { color: var(--white); font: 500 27px "Manrope", sans-serif; letter-spacing: -.04em; }
.portfolio-state::after { content: "D"; position: absolute; right: 8%; top: 50%; color: rgba(234,212,161,.055); font: italic 300 clamp(120px, 23vw, 280px) Georgia,serif; line-height: 1; transform: translateY(-50%); pointer-events: none; }
.portfolio-state > * { position: relative; z-index: 1; }
.portfolio-state.is-error { border-color: rgba(220,120,100,.42); }
.project-entry {
  min-height: 520px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  align-items: stretch;
  border: 1px solid rgba(234,212,161,.17);
  border-radius: 3px;
  background: linear-gradient(135deg, #12110e, #0c0b09);
  overflow: hidden;
}
.project-entry:nth-child(even) { grid-template-columns: 1.25fr .75fr; }
.project-entry:nth-child(even) .project-visual { order: 0; }
.project-entry:nth-child(even) .project-copy { order: 1; }
.project-copy { min-height: 100%; padding: clamp(28px, 5vw, 70px); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.project-count { color: var(--gold); font: 11px "Manrope", sans-serif; letter-spacing: .14em; }
.project-title { margin: 55px 0 12px; font: 500 clamp(30px, 4vw, 54px)/1.05 "Manrope", sans-serif; letter-spacing: -.06em; }
.project-category { margin: 0; color: var(--gold-light); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.project-description { max-width: 410px; margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.project-link { margin-top: 35px; padding-bottom: 5px; border-bottom: 1px solid var(--gold); color: var(--gold-light); font-size: 11px; transition: color .2s, border-color .2s; }
.project-link:hover { color: var(--white); border-color: var(--white); }
.project-visual { min-height: 100%; position: relative; overflow: hidden; background: #171611; }
.project-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.24), transparent 35%); }
.project-visual img { display: block; width: 100%; height: 100%; min-height: 520px; position: absolute; inset: 0; object-fit: cover; transition: clip-path 1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js-motion .project-entry:not(.is-visible) .project-visual img { clip-path: inset(0 100% 0 0); }
.js-motion .project-entry.is-visible .project-visual img { clip-path: inset(0); }
.project-entry:hover .project-visual img { transform: scale(1.045); }
.project-entry[data-reveal] { transition-delay: .08s; }

.focus-section { padding-top: 75px; padding-bottom: 140px; border-top: 1px solid rgba(234,212,161,.12); scroll-snap-align: start; }
.focus-heading { padding: 60px 0 53px; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.focus-card {
  min-height: 480px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(234,212,161,.18);
  border-radius: 3px;
  background: #181713;
  isolation: isolate;
}
.focus-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.62) brightness(.66); transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s; }
.focus-card:hover > img { transform: scale(1.05); filter: saturate(.82) brightness(.75); }
.focus-card-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.3),transparent 40%,rgba(0,0,0,.8)); }
.focus-card::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(240,215,163,.25); opacity: .6; pointer-events: none; transition: inset .45s ease, opacity .45s ease; }
.focus-card:hover::after { inset: 16px; opacity: 1; }
.focus-index { position: absolute; top: 23px; left: 24px; color: #efe7d6; font-size: 9px; letter-spacing: .15em; }
.focus-card-copy { position: absolute; left: 25px; right: 25px; bottom: 28px; }
.focus-card-copy h3 { margin: 0 0 8px; font: 500 clamp(23px,2.4vw,34px) "Manrope", sans-serif; letter-spacing: -.045em; }
.focus-card-copy p { max-width: 260px; margin: 0; color: #d4cfc5; font-size: 12px; line-height: 1.65; }
.focus-corner { position: absolute; right: 23px; top: 18px; color: var(--gold-light); font-size: 18px; opacity: 0; transform: translate(-4px,4px); transition: opacity .3s, transform .3s; }
.focus-card:hover .focus-corner { opacity: 1; transform: none; }
.image-credit { margin: 13px 0 0; text-align: right; color: #77736a; font-size: 9px; }

.about-section { padding-top: 75px; padding-bottom: 145px; border-top: 1px solid rgba(234,212,161,.12); scroll-snap-align: start; }
.about-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10vw; padding-top: 75px; align-items: start; }
.about-layout h2 { max-width: 760px; margin: 0; font: 500 clamp(42px, 6.3vw, 84px)/1.02 "Manrope", sans-serif; letter-spacing: -.07em; }
.about-details { max-width: 390px; padding-top: 8px; }
.about-monogram { display: block; margin-bottom: 30px; color: var(--gold); font: italic 64px Georgia, serif; }
.about-details p { margin: 0 0 20px; color: #b7b2a7; font-size: 13px; line-height: 1.9; }

.contact-section { min-height: 570px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gutter) 45px; border-top: 1px solid var(--line); background: #10100e; scroll-snap-align: start; }
.contact-glow { position: absolute; width: 65vw; height: 65vw; right: -19vw; top: -50vw; border: 1px solid rgba(201,167,101,.19); border-radius: 50%; box-shadow: 0 0 0 50px rgba(201,167,101,.018), 0 0 0 110px rgba(201,167,101,.014), 0 0 0 170px rgba(201,167,101,.01); }
.contact-content { position: relative; z-index: 1; }
.contact-content h2 { margin: 45px 0 35px; font: 500 clamp(57px, 9vw, 116px)/.9 "Manrope", sans-serif; letter-spacing: -.08em; }
.contact-email { display: inline-flex; align-items: center; gap: 22px; color: var(--gold-light); font-size: clamp(15px, 2vw, 20px); border-bottom: 1px solid rgba(201,167,101,.55); padding: 0 0 9px; transition: color .2s; }
.contact-email:hover { color: var(--white); }
.contact-email span { font-size: 17px; }
.contact-footnote { position: relative; z-index: 1; margin: 74px 0 0; color: var(--muted); font-size: 11px; }

.site-footer { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px var(--gutter); border-top: 1px solid rgba(234,212,161,.12); }
.footer-wordmark { font-size: 10px; }
.footer-wordmark .wordmark-symbol { width: 28px; height: 28px; font-size: 12px; }
.site-footer > p { margin: 0; color: #89857b; font-size: 10px; }
.footer-links { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; color: #b0aa9f; font-size: 10px; }

.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.js-motion [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes hero-drift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.1) translateY(-1.5%); } }
@keyframes cue-pulse { 0%,100% { transform: scaleX(.55); opacity: .55; } 50% { transform: scaleX(1); opacity: 1; } }
@keyframes marquee-drift { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .header-note { display: none; }
  .hero { min-height: 660px; height: 90svh; }
  .hero h1 { font-size: clamp(61px, 12vw, 108px); }
  .project-entry, .project-entry:nth-child(even) { min-height: 0; grid-template-columns: 1fr 1.1fr; }
  .project-copy { padding: 34px; }
  .project-visual img { min-height: 470px; }
  .focus-card { min-height: 390px; }
  .about-layout { gap: 6vw; }
}

@media (max-width: 650px) {
  :root { --gutter: 22px; }
  html { scroll-padding-top: 70px; }
  .site-header { height: 70px; }
  .wordmark { gap: 8px; font-size: 10px; }
  .wordmark-symbol { width: 30px; height: 30px; }
  .main-nav { gap: 14px; font-size: 10px; }
  .main-nav a { padding: 12px 0; }
  .main-nav a:nth-child(2) { display: none; }
  .hero { min-height: 690px; height: 92svh; max-height: 850px; }
  .hero-image img { object-position: 58% center; }
  .hero-shade { background: radial-gradient(ellipse at 74% 48%,rgba(196,145,67,.15),transparent 36%),linear-gradient(90deg,rgba(8,7,5,.88),rgba(8,7,5,.47)),linear-gradient(0deg,#090806 0%,transparent 55%,rgba(8,7,5,.3)); }
  .hero-orbit { width: 83vw; top: 23%; right: -32vw; }
  .hero-content { padding-top: 95px; padding-bottom: 57px; }
  .eyebrow { font-size: 9px; }
  .hero h1 { margin-top: 64px; font-size: clamp(56px, 13vw, 82px); }
  .hero::before { inset-inline: var(--gutter); bottom: 17px; }
  .marquee-track { min-height: 54px; gap: 23px; font-size: 9px; }
  .hero-bottom { display: block; margin-top: 55px; }
  .hero-intro { max-width: 290px; font-size: 13px; }
  .scroll-cue { margin-top: 45px; }
  .hero-index { bottom: 25px; font-size: 9px; }
  .work-section { padding-top: 83px; padding-bottom: 90px; }
  .section-topline { align-items: flex-start; gap: 20px; }
  .section-number { margin-right: 10px; }
  .section-aside { max-width: 145px; text-align: right; font-size: 10px; line-height: 1.6; }
  .work-heading { display: block; padding: 42px 0 35px; }
  .work-heading h2, .focus-heading { font-size: clamp(50px, 12vw, 72px); }
  .work-heading > p { max-width: 340px; margin-top: 25px; font-size: 12px; }
  .project-list { gap: 19px; }
  .portfolio-state { min-height: 230px; padding: 27px; }
  .portfolio-state strong { font-size: 23px; }
  .project-entry, .project-entry:nth-child(even) { display: flex; flex-direction: column-reverse; }
  .project-visual { min-height: 0; aspect-ratio: 1.12; }
  .project-visual img { min-height: 0; height: 100%; }
  .project-copy { min-height: 280px; padding: 24px; }
  .project-title { margin: 34px 0 10px; font-size: 32px; }
  .project-description { margin-top: 14px; font-size: 12px; }
  .project-link { margin-top: 24px; }
  .focus-section { padding-top: 62px; padding-bottom: 90px; }
  .focus-heading { padding: 44px 0 32px; }
  .focus-grid {
    display: flex;
    gap: 12px;
    margin-right: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 12px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--gold) rgba(234,212,161,.12);
    scrollbar-width: thin;
  }
  .focus-card { flex: 0 0 min(82vw, 340px); min-height: 360px; scroll-snap-align: start; }
  .focus-card-copy { left: 22px; bottom: 23px; }
  .focus-card-copy h3 { font-size: 29px; }
  .focus-card-copy p { font-size: 11px; }
  .about-section { padding-top: 62px; padding-bottom: 90px; }
  .about-layout { display: block; padding-top: 43px; }
  .about-layout h2 { font-size: clamp(42px, 10.5vw, 62px); }
  .about-details { margin-top: 37px; }
  .about-monogram { margin-bottom: 20px; font-size: 52px; }
  .about-details p { font-size: 12px; }
  .contact-section { min-height: 470px; padding-top: 72px; }
  .contact-content h2 { margin: 38px 0 29px; font-size: clamp(58px, 14vw, 82px); }
  .contact-email { gap: 10px; font-size: clamp(13px, 4vw, 17px); }
  .contact-footnote { margin-top: 60px; font-size: 10px; }
  .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding-top: 22px; padding-bottom: 24px; }
  .site-footer > p { display: none; }
  .footer-links { grid-column: 1 / -1; justify-content: space-between; gap: 12px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
  .js-motion .project-entry .project-visual img { clip-path: none; }
  .marquee-track { animation: none; }
}
