/* RG Forant: black, grey, white. Photographs carry the color. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
	--bg: #0d0d0d;
	--surface: #161616;
	--line: #2a2a2a;
	--text: #ecebe8;
	--muted: #a19f9a;           /* 7.4:1 on --bg */
	--paper: #f4f3f0;
	--ink: #151515;
	--serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
	--sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
	--gutter: clamp(1rem, 3vw, 2.5rem);
	--header-h: 5rem;
	--sidebar-w: 16rem;
	--tile-gap: 6px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.15; margin: 0 0 .5em; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--paper); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.button {
	display: inline-block;
	padding: .8rem 1.6rem;
	border: 1px solid currentColor;
	background: transparent;
	color: var(--text);
	font: 500 .78rem/1 var(--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.button:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	height: var(--header-h);
	padding: 0 var(--gutter);
	background: rgba(13, 13, 13, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.has-hero .site-header { position: fixed; inset: 0 0 auto; background: linear-gradient(rgba(0,0,0,.55), transparent); border-bottom: 0; backdrop-filter: none; transition: background .3s; }
.has-hero .site-header.is-scrolled { background: rgba(13, 13, 13, .92); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 500 1.35rem/1.1 var(--serif); letter-spacing: .04em; }
.brand-sub { font: 400 .68rem/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.nav-list { display: flex; gap: clamp(1rem, 3vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav-list a { font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: .9rem 0; display: inline-block; }
.nav-list a:hover, .nav-list .current-menu-item a { box-shadow: inset 0 -1px currentColor; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 32rem; overflow: hidden; background: #000; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(2.5rem, 9vh, 6rem); }
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-name { display: block; font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: .01em; }
.hero-sub { display: block; font: 400 clamp(.8rem, 1.4vw, 1rem)/1.5 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: #d8d6d1; margin-top: .4rem; }

/* Intro band */
.intro { display: grid; gap: 1.5rem 4rem; padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); max-width: 76rem; margin: 0 auto; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.intro-heading { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.intro-body { color: var(--muted); font-size: 1.05rem; }
.intro-body p:first-child { margin-top: 0; }

/* Tiles: edge to edge, thin black gutters */
.tiles-section { padding: 0 0 clamp(3rem, 8vw, 6rem); }
.section-label { font: 500 .78rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); padding: 3rem var(--gutter) 1.5rem; margin: 0; }
.tiles { list-style: none; margin: 0; padding: 0 var(--tile-gap); display: grid; gap: var(--tile-gap); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: saturate(.9) brightness(.85); }
.tile a:hover img, .tile a:focus-visible img { transform: scale(1.04); filter: none; }
.tile-label { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; flex-direction: column; }
.tile-name { font: 300 1.5rem/1.15 var(--serif); }
.tile-count { font: 400 .7rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #cfcdc8; }

/* Gallery page */
.gallery-layout { display: grid; min-height: calc(100svh - var(--header-h)); }
@media (min-width: 1024px) { .gallery-layout { grid-template-columns: var(--sidebar-w) 1fr; } }
.gallery-nav { border-bottom: 1px solid var(--line); padding: 0 var(--gutter); }
@media (min-width: 1024px) {
	.gallery-nav { border-bottom: 0; border-right: 1px solid var(--line); padding: 2rem 1.5rem 2rem var(--gutter); position: sticky; top: var(--header-h); align-self: start; max-height: calc(100svh - var(--header-h)); overflow-y: auto; overscroll-behavior-y: contain; }
	.gallery-nav-toggle > summary { display: none; }
}
.gallery-nav-toggle > summary { cursor: pointer; padding: 1rem 0; font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.nav-group { margin-bottom: 1.5rem; }
.nav-region { font: 500 .68rem/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.gallery-nav ul { list-style: none; margin: 0; padding: 0; }
.gallery-nav li a { display: block; padding: .2rem 0; font: 300 1.2rem/1.35 var(--serif); text-decoration: none; color: #cfcdc8; }
.gallery-nav li a:hover { color: #fff; }
.gallery-nav li a[aria-current="page"] { color: #fff; font-weight: 500; padding-left: .75rem; box-shadow: inset 1px 0 var(--text); }

.gallery-main { min-width: 0; padding: 1.5rem var(--gutter) 3rem; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.5rem; margin-bottom: 1rem; }
.gallery-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.gallery-lede { color: var(--muted); margin: 0; }

/* No JS: photos stack. With JS: one at a time on the stage. */
.stage { position: relative; }
.slide { margin: 0 0 1.5rem; }
.slide figcaption { color: var(--muted); font-size: .9rem; padding-top: .5rem; }

.js .stage { height: calc(100svh - var(--header-h) - 12.5rem); min-height: 18rem; background: #000; }
.js .slide { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.js .slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.js .slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; flex: 0 1 auto; }
.js .slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .75rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); text-align: center; color: #e6e4df; }

.stage-btn { position: absolute; top: 0; bottom: 0; width: min(18%, 6rem); display: flex; align-items: center; justify-content: center; background: none; border: 0; color: #fff; cursor: pointer; opacity: 0; transition: opacity .25s; z-index: 2; }
.stage-prev { left: 0; } .stage-next { right: 0; }
.stage:hover .stage-btn, .stage-btn:focus-visible { opacity: .85; }
@media (hover: none) { .stage-btn { opacity: .6; } }
.stage-btn svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: currentColor; stroke-width: 1.25; filter: drop-shadow(0 0 4px rgba(0,0,0,.6)); }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding: .9rem 0; }
.controls button { background: none; border: 0; color: var(--text); font: 500 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; padding: .8rem 0; min-height: 44px; }
.controls button:hover { color: #fff; box-shadow: inset 0 -1px currentColor; }
.ctl-play[aria-pressed="true"] .when-paused, .ctl-play[aria-pressed="false"] .when-playing { display: none; }
.ctl-count { margin: 0; color: var(--muted); font-size: .85rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.ctl-inquire { margin-left: auto; }
@media (max-width: 599px) { .ctl-inquire { margin-left: 0; width: 100%; text-align: center; } }

.thumbs { list-style: none; margin: 0; padding: 0 0 .5rem; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.thumbs button { display: block; padding: 0; border: 0; background: none; cursor: pointer; opacity: .45; transition: opacity .2s; outline-offset: -2px; }
.thumbs button:hover, .thumbs button[aria-current="true"] { opacity: 1; }
.thumbs button[aria-current="true"] { box-shadow: inset 0 -2px var(--text); }
.thumbs img { width: 64px; height: 64px; object-fit: cover; }

.slideshow:fullscreen { background: #000; display: flex; flex-direction: column; padding: 1rem; }
.slideshow:fullscreen .stage { flex: 1; height: auto; }
.slideshow:fullscreen .thumbs { display: none; }

/* Pages */
.page-layout { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.prose h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); }
.prose p, .prose li { color: #d6d4cf; }

/* Contact */
.contact-form { margin-top: 2rem; }
.contact-form label { display: block; font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
	width: 100%; padding: .85rem 1rem; background: var(--surface); color: var(--text);
	border: 1px solid var(--line); border-radius: 0; font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--text); outline: none; }
.hp { position: absolute; left: -9999px; }
.inquiry { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); margin-bottom: 1.5rem; }
.inquiry img { width: 120px; height: auto; }
.inquiry p { margin: 0; }
.form-note { padding: .85rem 1rem; border: 1px solid var(--line); }
.form-note.is-ok { border-color: #6f8f6f; }
.form-note.is-error { border-color: #a86a6a; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem var(--gutter); color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: baseline; justify-content: space-between; }
.footer-brand { font: 500 1.2rem/1 var(--serif); color: var(--text); margin: 0; }
.footer-brand span { font: 400 .65rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-left: .5rem; }
.footer-social { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-copy { flex-basis: 100%; margin: 0; font-size: .8rem; }
.footer-email, .footer-nps { margin: 0; }

@media (max-width: 599px) {
	:root { --header-h: 4.25rem; }
	.brand img { width: 40px; height: 40px; }
	.brand-name { font-size: 1.1rem; }
	.brand-sub { display: none; }
	.nav-list { gap: 1rem; }
	.nav-list a { font-size: .7rem; letter-spacing: .12em; }
	.js .stage { height: 62svh; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
