:root {
  --ink: #10222b;
  --ink-deep: #09161c;
  --stone: #f1eee8;
  --paper: #fbfaf7;
  --white: #ffffff;
  --brass: #d8b779;
  --brass-dark: #a37a3d;
  --line: rgba(16, 34, 43, 0.18);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: clamp(5rem, 9vw, 9rem); }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: var(--wrap);
  margin-inline: auto;
  padding-block: 1.4rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.brand { display: flex; align-items: center; width: max-content; line-height: 1; }
.brand-number {
  padding-right: 0.65rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.brand-street {
  padding-left: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,.55);
}
.desktop-nav { display: flex; gap: 2rem; font-size: 0.82rem; }
.desktop-nav a { position: relative; padding: 0.35rem 0; }
.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  justify-self: end;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,.65);
  transition: color .2s ease, background .2s ease;
}
.header-cta:hover, .header-cta:focus-visible { color: var(--ink); background: var(--white); }

.hero {
  position: relative;
  min-height: 780px;
  height: 100svh;
  color: var(--white);
  background: var(--ink-deep);
  overflow: hidden;
}
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 52%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,18,24,.84) 0%, rgba(6,18,24,.5) 42%, rgba(6,18,24,.06) 72%), linear-gradient(0deg, rgba(6,18,24,.54) 0%, transparent 40%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-bottom: 5rem;
}
.eyebrow, .section-kicker {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.84); }
.eyebrow span { display: inline-block; width: 2.4rem; height: 1px; background: var(--brass); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -0.035em; }
h1 { max-width: 12ch; font-size: clamp(4rem, 8vw, 8.2rem); }
h1 em, h2 em { color: var(--brass); font-weight: 400; }
.hero-address { margin: 1.65rem 0 0; font-size: 1rem; letter-spacing: .06em; }
.hero-actions, .contact-actions { display: flex; align-items: center; gap: 1.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: .85rem 1.4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .035em;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-light { color: var(--ink); background: var(--white); }
.button-light:hover, .button-light:focus-visible { background: var(--brass); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover, .button-dark:focus-visible { background: var(--brass-dark); }
.button-outline { color: var(--white); border: 1px solid rgba(255,255,255,.6); }
.button-outline:hover, .button-outline:focus-visible { color: var(--ink); background: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: .55rem; padding-block: .25rem; font-size: .84rem; font-weight: 600; border-bottom: 1px solid rgba(16,34,43,.36); }
.text-link.light { border-color: rgba(255,255,255,.46); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translate(3px,-3px); }
.hero-facts {
  position: absolute;
  right: max(24px, calc((100vw - 1240px)/2));
  bottom: 2rem;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(95px, 1fr));
  min-width: min(52vw, 650px);
  border-top: 1px solid rgba(255,255,255,.35);
}
.hero-facts div { display: flex; flex-direction: column; padding: 1rem 1rem 0; border-left: 1px solid rgba(255,255,255,.25); }
.fact-value { font-family: var(--serif); font-size: clamp(1.5rem, 2vw, 2.2rem); line-height: 1; }
.fact-label { margin-top: .35rem; color: rgba(255,255,255,.68); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.scroll-cue {
  position: absolute;
  bottom: 1.7rem;
  left: max(24px, calc((100vw - 1240px)/2));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(255,255,255,.75);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.scroll-cue span { position: relative; width: 1px; height: 2.4rem; background: rgba(255,255,255,.45); overflow: hidden; }
.scroll-cue span::after { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; content: ""; background: var(--white); animation: scrollLine 2.2s infinite ease-in-out; }
@keyframes scrollLine { 0%{transform:translateY(0)} 65%,100%{transform:translateY(200%)} }

.section-kicker { color: var(--brass-dark); }
.intro-copy { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.intro h2, .details h2, .gallery h2, .tour h2 { font-size: clamp(3.2rem, 5.6vw, 6.2rem); }
.intro-copy > div { padding-top: .75rem; }
.intro-copy p { margin: 0 0 1.25rem; color: #40525a; }
.feature-photo { margin: clamp(3.5rem, 7vw, 7rem) 0 0; }
.feature-photo img { aspect-ratio: 16/8.5; object-fit: cover; }
.feature-photo figcaption { margin-top: .75rem; color: #66757b; font-size: .78rem; }

.kitchen { display: grid; grid-template-columns: 58% 42%; padding: 0; background: var(--stone); }
.kitchen-photo { min-height: 680px; }
.kitchen-photo img { height: 100%; object-fit: cover; }
.kitchen-copy { align-self: center; max-width: 34rem; padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 6rem); }
.kitchen-copy h2 { font-size: clamp(3rem, 4.6vw, 5.2rem); }
.kitchen-copy > p:not(.section-kicker) { margin: 2rem 0; color: #42545c; }
.quiet-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 2rem; margin: 2.2rem 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.quiet-list li { position: relative; padding-left: 1.1rem; font-size: .84rem; font-weight: 500; }
.quiet-list li::before { position: absolute; top: .67rem; left: 0; width: 4px; height: 4px; content: ""; background: var(--brass-dark); border-radius: 50%; }

.details { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(4rem, 9vw, 9rem); }
.details-title { position: sticky; top: 4rem; align-self: start; }
.details h2 { font-size: clamp(3.2rem, 5vw, 5.8rem); }
.detail-grid article { position: relative; padding: 2.2rem 0 2.2rem 4.2rem; border-top: 1px solid var(--line); }
.detail-grid article:last-child { border-bottom: 1px solid var(--line); }
.detail-number { position: absolute; top: 2.45rem; left: 0; color: var(--brass-dark); font-family: var(--serif); font-size: .95rem; }
.detail-grid h3 { margin: 0 0 .45rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; }
.detail-grid p { max-width: 48ch; margin: 0; color: #52636a; }

.gallery { background: var(--stone); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.gallery-heading h2 { max-width: 10ch; }
.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr 1fr; grid-auto-rows: 285px; gap: 1rem; }
.gallery-item { position: relative; margin: 0; padding: 0; color: var(--white); background: var(--ink); border: 0; cursor: zoom-in; overflow: hidden; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); opacity: .87; }
.gallery-item:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.gallery-item span { position: absolute; bottom: 1rem; left: 1rem; padding: .35rem .6rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(7,20,26,.76); }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

.location { color: var(--white); background: var(--ink); }
.location-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(4rem, 10vw, 10rem); align-items: end; }
.light-kicker { color: var(--brass); }
.location h2, .contact h2 { color: var(--white); font-size: clamp(3.5rem, 6vw, 6.8rem); }
.location > .wrap > div > p:not(.section-kicker) { max-width: 55ch; margin: 2rem 0; color: rgba(255,255,255,.7); }
.location-list { margin: 0; }
.location-list div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.location-list div:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.location-list dt { color: var(--brass); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.location-list dd { margin: 0; color: rgba(255,255,255,.85); }

.tour { display: grid; grid-template-columns: .8fr 1.2fr; align-items: stretch; }
.tour-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(3rem, 6vw, 6rem); background: var(--stone); }
.tour-card h2 { max-width: 9ch; margin-bottom: 2rem; font-size: clamp(3rem, 4.7vw, 5.3rem); }
.tour-image { min-height: 540px; }
.tour-image img { height: 100%; object-fit: cover; }

.contact { color: var(--white); background: var(--ink-deep); }
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(4rem, 10vw, 10rem); align-items: end; }
.contact-copy > p:first-child { max-width: 46ch; margin: 0; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.agent-line { margin: 2.5rem 0 0; color: rgba(255,255,255,.56); font-size: .79rem; letter-spacing: .04em; }

.footer { padding-block: 3rem; color: rgba(255,255,255,.7); background: #050d11; }
.footer-inner { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 3rem; align-items: start; }
.footer p { margin: 0; }
.footer-address { color: var(--white); font-family: var(--serif); font-size: 1.4rem; }
.footer-meta { font-size: .78rem; }
.legal { font-size: .7rem; line-height: 1.7; }

.lightbox {
  width: min(92vw, 1200px);
  max-width: none;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(3,10,13,.94); backdrop-filter: blur(5px); }
.lightbox img { max-height: 82vh; object-fit: contain; }
.lightbox p { margin: .65rem 0 0; font-size: .8rem; letter-spacing: .04em; }
.lightbox-close { position: absolute; top: -2.8rem; right: 0; width: 2.5rem; height: 2.5rem; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.6); cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --wrap: min(100% - 32px, 760px); }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { min-height: 720px; }
  .hero-content { padding-bottom: 9rem; }
  .hero-facts { right: 1rem; bottom: 1.2rem; left: 1rem; min-width: 0; }
  .scroll-cue { display: none; }
  .intro-copy, .details, .location-grid, .contact-inner { grid-template-columns: 1fr; }
  .details-title { position: static; }
  .kitchen { grid-template-columns: 1fr; }
  .kitchen-photo { min-height: 500px; }
  .kitchen-copy { max-width: 760px; margin-inline: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .gallery-tall { grid-row: auto; }
  .gallery-item:last-child { grid-column: span 2; }
  .tour { grid-template-columns: 1fr; }
  .tour-image { min-height: 460px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .legal { grid-column: span 2; }
}

@media (max-width: 620px) {
  :root { --wrap: calc(100% - 32px); }
  .section { padding-block: 4.5rem; }
  .site-header { gap: 1rem; padding-block: 1rem; }
  .brand-street { display: none; }
  .header-cta { padding: .6rem .8rem; font-size: .7rem; }
  .hero { min-height: 700px; }
  .hero-image { object-position: 60% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(6,18,24,.9) 0%, rgba(6,18,24,.36) 70%, rgba(6,18,24,.35) 100%); }
  .hero-content { justify-content: flex-end; padding-bottom: 12.5rem; }
  h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .hero-address { font-size: .85rem; }
  .hero-actions, .contact-actions { align-items: flex-start; flex-direction: column; gap: 1.1rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts div { padding: .75rem .75rem .2rem; }
  .fact-value { font-size: 1.45rem; }
  .intro-copy { gap: 2rem; }
  .feature-photo img { aspect-ratio: 4/3; }
  .kitchen-photo { min-height: 390px; }
  .kitchen-copy { padding-inline: 1rem; }
  .quiet-list { grid-template-columns: 1fr; }
  .detail-grid article { padding-left: 3rem; }
  .gallery-heading { align-items: flex-start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-wide, .gallery-item:last-child { grid-column: auto; }
  .location-list div { grid-template-columns: 1fr; gap: .25rem; }
  .tour-card { padding: 2.2rem; }
  .tour-image { min-height: 340px; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .legal { grid-column: auto; }
}

@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; }
}
