@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Italiana&display=swap');

:root {
  --ink: #0c090a;
  --paper: #f2e9e5;
  --blue: #171d38;
  --ember: #a71935;
  --acid: #e8bca9;
  --line: rgba(18, 16, 15, 0.18);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 1rem; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
img { display: block; width: 100%; }

.grain { position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .08; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 110; background: var(--acid); padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--pad); color: white; mix-blend-mode: difference; }
.wordmark { font-family: "Italiana", serif; font-size: clamp(1.4rem, 2.2vw, 2rem); text-decoration: none; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 2rem; }
.site-nav a { text-decoration: none; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: .35rem; }
.menu-toggle { display: none; color: inherit; border: 0; background: none; text-transform: uppercase; letter-spacing: .1em; }

.hero { min-height: 100svh; padding: clamp(7rem, 12vh, 10rem) var(--pad) 3rem; background: radial-gradient(circle at 28% 55%, #271117 0, var(--ink) 44%); color: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, .72fr); align-items: center; gap: clamp(2rem, 6vw, 7rem); position: relative; }
.hero::before { content: ""; position: absolute; inset: 6rem auto 4rem 42%; width: 1px; background: linear-gradient(transparent, rgba(232,188,169,.5), transparent); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-label { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; }
.eyebrow { color: #f2b5c0; }
h1, h2 { font-family: "Italiana", serif; font-weight: 400; letter-spacing: -.045em; margin: 0; }
h1 { font-size: clamp(4rem, 8.4vw, 9rem); line-height: .83; max-width: 11ch; }
h1 em, h2 em { color: var(--ember); font-weight: inherit; }
.hero-intro { max-width: 34rem; margin: 2rem 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; color: rgba(244,239,232,.76); }
.text-link { display: inline-block; padding-bottom: .4rem; border-bottom: 1px solid; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; }
.hero-portrait { margin: 0; height: min(78svh, 54rem); position: relative; overflow: hidden; }
.hero-portrait img { height: 100%; object-fit: cover; object-position: center top; filter: saturate(.94) contrast(1.08); transform: scale(1.015); }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(12,9,10,.48)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 0 6rem rgba(74,8,21,.16); }
.hero-portrait figcaption { position: absolute; bottom: 1rem; left: 1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-stamp { position: absolute; right: calc(var(--pad) - 1rem); bottom: 6rem; width: 8rem; aspect-ratio: 1; border-radius: 50%; background: var(--ember); display: grid; place-items: center; transform: rotate(9deg); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; box-shadow: 0 1rem 3rem rgba(0,0,0,.3); }
.scroll-cue { position: absolute; bottom: 1.5rem; left: var(--pad); margin: 0; opacity: .55; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }

.marquee { overflow: hidden; background: var(--ember); color: var(--paper); border-block: 1px solid var(--ink); padding: 1rem 0; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 1.5rem; animation: marquee 22s linear infinite; font-family: "Italiana", serif; font-size: clamp(2rem, 4vw, 4.5rem); text-transform: uppercase; }
.marquee i { color: #f0b8c2; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-pad { padding: clamp(5rem, 11vw, 10rem) var(--pad); }
.section-label { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(3rem, 7vw, 7rem); }
.story { background: #181114; color: #eadfd8; }
.story .story-copy p:not(.lead) { color: rgba(234,223,216,.76); }
.story blockquote { border-color: rgba(234,223,216,.2); color: #e9a6b3; }
.story-grid, .contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 10vw, 10rem); }
.story h2, .contact h2 { font-size: clamp(3.4rem, 7.3vw, 8rem); line-height: .92; }
.story-copy { align-self: end; max-width: 38rem; }
.story-copy p { line-height: 1.7; }
.story-copy .lead { font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.35; }
blockquote { margin: 3rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); font-family: "Italiana", serif; font-size: clamp(1.8rem, 3.4vw, 3.4rem); line-height: 1.12; color: var(--blue); }

.portfolio { background: var(--ink); color: var(--paper); }
.portfolio-heading { display: grid; grid-template-columns: 1.25fr .5fr; align-items: end; gap: clamp(2rem, 8vw, 8rem); margin-bottom: clamp(3rem, 6vw, 6rem); }
.portfolio-heading h2 { font-size: clamp(4rem, 8vw, 9rem); line-height: .84; }
.portfolio-heading h2 em { color: #e9a6b3; }
.portfolio-heading p { line-height: 1.7; color: rgba(242,233,229,.72); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(.5rem, 1vw, 1rem); }
.gallery-item { position: relative; overflow: hidden; border: 0; padding: 0; background: #1b1517; color: inherit; cursor: zoom-in; }
.gallery-item.wide { grid-column: span 7; aspect-ratio: 3 / 2; }
.gallery-item.tall { grid-column: span 5; aspect-ratio: 4 / 5; }
.gallery-item:nth-child(3), .gallery-item:nth-child(4), .gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(7) { grid-column: span 5; }
.gallery-item:nth-child(8), .gallery-item:nth-child(9), .gallery-item.final { grid-column: span 4; aspect-ratio: 4 / 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.75,.25,1), filter .5s; }
.gallery-item::after { content: attr(data-caption); position: absolute; inset: auto 0 0; padding: 3rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.74)); color: white; text-align: left; font-family: "Italiana", serif; font-size: 1.35rem; opacity: 0; transform: translateY(.5rem); transition: opacity .35s, transform .35s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); filter: saturate(1.08); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.gallery-item:focus-visible { outline: 2px solid #e9a6b3; outline-offset: 3px; }

.private-preview { background: #080607; color: var(--paper); }
.private-frame { min-height: min(72svh, 48rem); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid rgba(242,233,229,.1); background: #0d090b; }
.private-copy { align-self: center; padding: clamp(2rem, 6vw, 6rem); position: relative; z-index: 1; }
.private-copy h2 { font-size: clamp(3.8rem, 7vw, 8rem); line-height: .86; }
.private-copy h2 em { color: #e9a6b3; }
.private-copy > p:not(.eyebrow) { max-width: 32rem; margin: 2rem 0; color: rgba(242,233,229,.7); line-height: 1.7; }
.coming-soon { display: inline-flex; align-items: center; gap: .8rem; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; }
.coming-soon::before { content: ""; width: 2.5rem; height: 1px; background: #e9a6b3; }
.private-glimpse { position: relative; min-height: 34rem; background: linear-gradient(90deg, #0d090b 0%, rgba(13,9,11,.72) 32%, rgba(13,9,11,.48) 100%), linear-gradient(rgba(8,5,7,.52), rgba(8,5,7,.9)), url("assets/portfolio/greenday-photo-006.webp") center / cover; }
.private-glimpse::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); background: rgba(8,5,7,.46); }
.private-glimpse span { position: absolute; inset: 0; display: grid; place-items: center; text-transform: uppercase; letter-spacing: .25em; font-size: .7rem; color: rgba(255,255,255,.78); }

.lightbox { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: clamp(1rem, 3vw, 2.5rem); border: 0; background: rgba(8,6,7,.98); color: var(--paper); overflow: hidden; }
.lightbox::backdrop { background: rgba(8,6,7,.94); }
.lightbox[open] { display: grid; grid-template-columns: minmax(5rem, .2fr) minmax(0, 1fr) minmax(5rem, .2fr); align-items: center; gap: 1rem; }
.lightbox figure { height: calc(100svh - 5rem); min-width: 0; margin: 0; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: .7rem; }
.lightbox figure img { width: auto; max-width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox figcaption { font-family: "Italiana", serif; font-size: 1.25rem; }
.lightbox-close, .lightbox-control { border: 1px solid rgba(255,255,255,.35); background: transparent; color: white; min-height: 3rem; padding: .7rem 1rem; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; cursor: pointer; }
.lightbox-close { position: fixed; top: 1rem; right: 1rem; z-index: 2; }
.lightbox-control:hover, .lightbox-control:focus-visible, .lightbox-close:hover, .lightbox-close:focus-visible { background: var(--paper); color: var(--ink); outline: none; }

.energy { background: #d7a6ad; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; }
.energy-card { min-height: 31rem; padding: clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: space-between; }
.energy-card p { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; }
.energy-card h2 { font-size: clamp(3rem, 5.5vw, 6rem); line-height: .94; }
.energy-card span { font-size: .9rem; }
.fire { background: var(--ember); color: var(--paper); }
.ease { background: #170d12; color: white; }

.off-duty { background: #29111d; color: var(--paper); }
.off-duty-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 4rem; gap: 2rem; }
.off-duty h2 { font-size: clamp(4rem, 9vw, 10rem); line-height: .8; }
.off-duty h2 em { color: #e9a6b3; }
.off-duty-heading p { max-width: 16rem; }
.interest-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.interest { min-height: 18rem; border: 1px solid rgba(242,233,229,.45); padding: 1.2rem; text-align: left; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: transform .35s, background .35s, color .35s; }
.interest:hover, .interest:focus-visible, .interest.active { transform: translateY(-.5rem) rotate(-1deg); background: var(--paper); color: var(--ink); outline: none; }
.interest span { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.interest b { font-family: "Italiana", serif; font-weight: 400; font-size: clamp(1.5rem, 2.5vw, 2.5rem); line-height: 1; }
.hiking { grid-column: span 2; background: #6f2638; }
.painting { grid-column: span 2; background: #a71935; }
.gaming { grid-column: span 2; background: #171d38; color: white; }
.vintage { grid-column: 2 / span 2; background: #5a263e; }
.cooking { grid-column: span 2; background: #9b495a; }
.interest-note { min-height: 3rem; margin-top: 2rem; text-align: center; font-family: "Italiana", serif; font-size: 1.7rem; }

.statement { min-height: 80svh; display: grid; place-items: center; padding: var(--pad); background: linear-gradient(rgba(12,9,10,.48), rgba(12,9,10,.72)), url("assets/portfolio/greenday-photo-010.webp") center 42% / cover; color: var(--paper); text-align: center; }
.statement p { font-family: "Italiana", serif; font-size: clamp(4rem, 11vw, 12rem); line-height: .8; letter-spacing: -.05em; max-width: 10ch; margin: 0; text-shadow: 0 .2em 1em rgba(0,0,0,.45); }
.statement em { color: #e9a6b3; font-weight: 400; }

.contact { background: linear-gradient(135deg, #7d1229, #b2213c); color: var(--paper); }
.contact h2 em { color: #ffd8df; text-shadow: 0 .08em .5em rgba(54,0,15,.28); }
.contact-copy { align-self: end; }
.contact-copy > p:first-child { font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.45; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; margin: 1.5rem 0; min-height: 4rem; padding: 1rem 1.5rem; background: var(--paper); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .11em; font-size: .8rem; transition: background .2s, color .2s, transform .2s; }
.contact-button:hover { background: var(--ink); color: var(--paper); transform: rotate(-1deg); }
.micro { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }

footer { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 2rem var(--pad); }
footer p { margin: 0; font-size: .8rem; }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.25,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .site-header { mix-blend-mode: normal; background: var(--ink); }
  .menu-toggle { display: block; min-height: 44px; padding: .55rem 0 .55rem 1rem; }
  .menu-dot { display: inline-block; width: .45rem; height: .45rem; margin-left: .4rem; border-radius: 50%; background: var(--acid); font-size: 0; }
  .site-nav { position: fixed; inset: 4.2rem 0 0; background: var(--ink); color: var(--paper); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav a { font-family: "Italiana", serif; font-size: 3rem; text-transform: none; }
  .hero { grid-template-columns: 1fr; padding-top: 8rem; }
  h1 { font-size: clamp(3.8rem, 17vw, 6.5rem); }
  .hero-portrait { height: 65svh; }
  .hero-stamp { right: 1.25rem; bottom: 3rem; width: 7rem; }
  .scroll-cue { display: none; }
  .story-grid, .contact-grid, .energy { grid-template-columns: 1fr; }
  .private-frame { grid-template-columns: 1fr; }
  .private-glimpse { min-height: 28rem; }
  .portfolio-heading { grid-template-columns: 1fr; align-items: start; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide, .gallery-item.tall, .gallery-item:nth-child(3), .gallery-item:nth-child(4), .gallery-item:nth-child(5), .gallery-item:nth-child(7), .gallery-item:nth-child(8), .gallery-item:nth-child(9), .gallery-item.final { grid-column: span 1; aspect-ratio: 4 / 5; }
  .gallery-item:first-child, .gallery-item:nth-child(6), .gallery-item:nth-child(7), .gallery-item:last-child { grid-column: span 2; aspect-ratio: 3 / 2; }
  .gallery-item::after { opacity: 1; transform: none; font-size: 1rem; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-column: 1 / -1; grid-row: 1; height: calc(100svh - 8rem); }
  .lightbox-prev, .lightbox-next { grid-row: 2; }
  .energy-card { min-height: 25rem; }
  .off-duty-heading { align-items: start; flex-direction: column; }
  .interest-grid { grid-template-columns: 1fr 1fr; }
  .interest { grid-column: auto; min-height: 14rem; }
  .cooking { grid-column: span 2; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .portfolio-heading h2 { font-size: clamp(3rem, 16vw, 5rem); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide, .gallery-item.tall, .gallery-item:nth-child(n), .gallery-item.final { grid-column: span 1; aspect-ratio: 4 / 5; }
  .gallery-item:first-child, .gallery-item:nth-child(6), .gallery-item:nth-child(7), .gallery-item:last-child { aspect-ratio: 3 / 2; }
}

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