/* Sullivan Signature Homes */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/figtree.woff2) format('woff2');
}

:root {
  --ink: #1d1b18;
  --ink-2: #4b463f;
  --ink-3: #7a7369;
  --paper: #faf7f2;
  --paper-2: #f1ebe1;
  --line: #e2d9cb;
  --maroon: #6e1b22;
  --maroon-2: #8a2a31;
  --brass: #b4925f;
  --brass-light: #d9bf94;
  --white: #fff;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); font-weight: 500; }
h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 500; }
h3 { font-size: 1.6rem; }
h1 em, h2 em { font-style: italic; color: var(--brass-light); }
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .85rem;
}
.eyebrow::before { content: ''; width: 2rem; height: 1px; background: currentColor; opacity: .7; }
.center .eyebrow, .section-head .eyebrow { justify-content: center; }
.eyebrow-light { color: var(--brass-light); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 600 .95rem/1 var(--sans);
  letter-spacing: .02em;
  padding: 1.05rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--maroon);
  background: var(--maroon);
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--maroon-2); border-color: var(--maroon-2); }
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-small { padding: .75rem 1.15rem; font-size: .88rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-3); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }
.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--maroon); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: .2rem;
}
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .2s var(--ease); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background .3s, border-color .3s, color .3s;
}
.site-header.is-overlay { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; color: var(--white); }
.site-header.is-overlay::before {
  content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(10,9,8,.55), transparent);
  transition: opacity .3s;
}
.site-header.is-overlay.is-scrolled { background: rgba(250, 247, 242, .96); border-color: var(--line); color: var(--ink); }
.site-header.is-overlay.is-scrolled::before { opacity: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; }
.brand { display: block; color: inherit; flex: none; }
.logo {
  display: block;
  height: 46px;
  aspect-ratio: 3228 / 642;
  background: currentColor;
  -webkit-mask: url(/assets/img/logo.svg) center / contain no-repeat;
  mask: url(/assets/img/logo.svg) center / contain no-repeat;
}
.main-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav-menu ul a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .4rem 0; position: relative; }
.nav-menu ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-menu ul a:hover::after, .nav-menu ul a[aria-current]::after { transform: scaleX(1); }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-toggle { display: none; }
.is-overlay:not(.is-scrolled) .btn-small { background: transparent; border-color: rgba(255,255,255,.6); }
.is-overlay:not(.is-scrolled) .btn-small:hover { background: var(--white); color: var(--ink); }

@media (max-width: 1120px) {
  .nav-phone { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .logo { height: 38px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid currentColor; border-radius: var(--radius);
    color: inherit; font: 600 .9rem var(--sans); padding: .55rem .85rem; cursor: pointer;
  }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto; max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    background: var(--paper); color: var(--ink);
    padding: 1.25rem var(--gutter) 2rem;
    border-top: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .nav-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav-menu ul { flex-direction: column; gap: 0; }
  .nav-menu ul a { display: block; padding: .9rem 0; font-family: var(--serif); font-size: 1.6rem; border-bottom: 1px solid var(--line); }
  .nav-menu ul a::after { display: none; }
  .nav-menu ul a[aria-current] { color: var(--maroon); }
  .nav-phone { display: inline-flex; font-size: 1.1rem; }
  .is-overlay:not(.is-scrolled) .nav-menu .btn-small { background: var(--maroon); border-color: var(--maroon); }
  .nav-menu .btn-small { padding: 1rem; font-size: 1rem; }
  .site-header.nav-open { background: var(--paper); color: var(--ink); border-color: var(--line); }
  .site-header.nav-open::before { opacity: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,12,10,.78) 0%, rgba(14,12,10,.45) 45%, rgba(14,12,10,.05) 80%), linear-gradient(0deg, rgba(14,12,10,.55), transparent 45%); }
.hero-content { position: relative; width: 100%; padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(4rem, 10vh, 7rem); }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 38rem; color: rgba(255,255,255,.88); margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- facts ---------- */
.facts { background: var(--ink); color: rgba(255,255,255,.72); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid > div { padding: 2.25rem 1.75rem; border-left: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: .35rem; }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; line-height: 1; color: var(--brass-light); }
.facts span { font-size: .92rem; line-height: 1.45; }
@media (max-width: 860px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div { padding: 1.75rem 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
  .facts-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-grid > div:nth-child(-n+2) { border-top: 0; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-flush { padding-top: 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: #23201c; color: rgba(255,255,255,.78); }
.section-dark h2 { color: var(--white); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 40rem; margin-inline: auto; }
.page-head .section-lede { margin-inline: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { display: flex; flex-direction: column; background: var(--white); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(40,30,20,.35); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--maroon); font-size: .95rem; }
.card:hover .card-link .icon { transform: translateX(3px); }
.card-link .icon { transition: transform .2s var(--ease); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
.split-section .split-media::after { content: ''; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1px solid rgba(217,191,148,.4); border-radius: var(--radius); z-index: -1; }
.split-section .split-media { z-index: 0; }
.split-reverse .split-media { order: 2; }
.split-text h2 { margin-bottom: .75em; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-section .split-media::after { display: none; }
}

.ticks { list-style: none; padding: 0; margin: 1.75rem 0 2.25rem; display: grid; gap: 1.1rem; }
.ticks li { display: flex; gap: .9rem; align-items: flex-start; }
.ticks .icon { color: var(--brass-light); margin-top: .25rem; }
.ticks strong { color: var(--white); font-weight: 600; }
.ticks-dark .icon { color: var(--maroon); }

/* phases */
.phases { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: p; }
.phase { padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.phase-num { font-family: var(--serif); font-size: 1.1rem; color: var(--maroon); font-weight: 600; letter-spacing: .05em; display: block; margin-bottom: .75rem; }
.phase h3 { font-size: 1.75rem; margin-bottom: .4rem; }
.phase p { font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; } }
@media (max-width: 520px) { .phases { grid-template-columns: 1fr; } }

/* mosaic */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(200px, 22vw, 340px)); gap: 4px; background: var(--paper); }
.mosaic-item { overflow: hidden; display: block; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic-item:hover img { transform: scale(1.05); }
.m1 { grid-row: span 2; }
.mosaic-cta { display: none; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 60vw 40vw 40vw auto; }
  .m1 { grid-column: span 2; grid-row: auto; }
  .mosaic-cta { display: flex; grid-column: span 2; justify-content: center; padding: 1.5rem; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 600; }
  .mosaic-cta span { display: inline-flex; gap: .5rem; align-items: center; }
}

/* quotes */
.quote { margin: 0; position: relative; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; }
.quote::before {
  content: '“';
  font-family: var(--serif);
  font-size: 5rem; line-height: .7;
  color: var(--brass);
  display: block; height: 2.5rem;
}
.quote figcaption { margin-top: 1.25rem; font-weight: 600; color: var(--ink); font-size: .95rem; display: flex; flex-direction: column; }
.quote figcaption span { font-weight: 400; color: var(--ink-3); font-size: .88rem; }
.quote-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-bottom: 3rem; }
.quote-large blockquote p { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.3; color: var(--ink); font-weight: 500; }
.quote-large::before { font-size: 8rem; height: 4rem; }
.quote-side { display: grid; gap: 2rem; }
.quote-side .quote { padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.quote-side .quote::before { font-size: 3.5rem; height: 1.75rem; }
.quote-side blockquote p { font-size: 1rem; }
@media (max-width: 900px) { .quote-feature { grid-template-columns: 1fr; } }

.reviews { columns: 2 340px; column-gap: 1.5rem; }
.review { break-inside: avoid; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2rem 2.25rem; margin-bottom: 1.5rem; }
.review blockquote p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; color: var(--ink); font-weight: 500; }

/* areas */
.areas { background: var(--white); border-top: 1px solid var(--line); }
.areas-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.areas h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
.area-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.area-list li { display: flex; gap: .65rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.area-list .icon { color: var(--maroon); }
@media (max-width: 900px) { .areas-inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .area-list { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-hero { position: relative; min-height: clamp(380px, 52vh, 560px); display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,12,10,.8), rgba(14,12,10,.25) 70%), linear-gradient(90deg, rgba(14,12,10,.5), transparent 70%); }
.page-hero-content { position: relative; width: 100%; padding-block: 5rem 3.5rem; }
.page-hero h1 { color: var(--white); max-width: 16ch; font-size: clamp(2.5rem, 5.2vw, 4.4rem); }
.page-hero-lede { font-size: 1.15rem; max-width: 36rem; color: rgba(255,255,255,.85); margin: 0; }

.page-head { padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); max-width: 18ch; }
.page-404 { min-height: 60vh; display: grid; place-items: center; }

.prose p { max-width: 62ch; }
.intro { text-align: left; }
.intro p { font-size: 1.15rem; }

/* about */
.bio { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.bio-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.bio-photo img { border-radius: var(--radius); width: 100%; }
.bio-photo figcaption { font-size: .88rem; color: var(--ink-3); margin-top: .75rem; }
.bio-text h2 { font-size: clamp(2rem, 3.5vw, 2.9rem); }
@media (max-width: 900px) { .bio { grid-template-columns: 1fr; } .bio-photo { position: static; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem 2rem; }
.value-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--paper-2); color: var(--maroon); margin-bottom: 1.25rem; }
.value-icon .icon { width: 1.4rem; height: 1.4rem; }
.value p { margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* services */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 2.5rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: .55rem; padding: 1.1rem 0; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--ink-2); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--maroon); border-color: var(--maroon); }
.subnav .icon { color: var(--maroon); }
.service { scroll-margin-top: calc(var(--header-h) + 60px); }

/* process timeline */
.timeline { display: grid; gap: 1.5rem; }
.tl-phase { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(1.5rem, 5vw, 5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); }
.tl-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: .5rem; }
.tl-head p { margin: 0; }
.tl-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tl-steps li { display: flex; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.tl-steps li:first-child { padding-top: 0; }
.tl-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-n { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--brass); color: var(--maroon); display: grid; place-items: center; font-weight: 600; font-size: .88rem; font-variant-numeric: tabular-nums; }
.tl-steps h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: .3rem 0 .2rem; letter-spacing: 0; }
.tl-steps p { margin: 0; font-size: .98rem; }
@media (max-width: 800px) { .tl-phase { grid-template-columns: 1fr; } }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  font: 500 .92rem var(--sans); color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .6rem 1.1rem; cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.filters button:hover { border-color: var(--ink-3); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters .count { font-size: .78rem; opacity: .6; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.gallery li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery li[hidden] { display: none; }
.gallery a { display: block; height: 100%; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 1100px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(12,11,10,.96); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox::backdrop { background: rgba(12,11,10,.9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 4rem 5rem 2rem; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: 2px; }
.lightbox figcaption { font-size: .95rem; color: rgba(255,255,255,.75); text-align: center; max-width: 60ch; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.3); color: var(--white); cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.15); }
.lb-btn .icon { width: 1.4rem; height: 1.4rem; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox figure { padding: 4rem 1rem 5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; }
  .lb-prev { left: calc(50% - 3.5rem); }
  .lb-next { right: calc(50% - 3.5rem); }
}

/* contact */
.contact { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.form-title { font-size: 2rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-3); font-size: .82rem; margin-left: .25rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7369' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: var(--white); box-shadow: 0 0 0 3px rgba(180,146,95,.2); }
.field textarea { resize: vertical; min-height: 8rem; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--maroon-2); }
.field-error { color: var(--maroon-2); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.75rem; }
.form-note { margin: 0; font-size: .88rem; color: var(--ink-3); }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #2f6b3a; }
.form-status.is-error { color: var(--maroon-2); }
.contact-side { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.contact-card { background: var(--ink); color: rgba(255,255,255,.8); border-radius: var(--radius); padding: 2rem; }
.contact-card h2 { color: var(--white); font-size: 1.9rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: .9rem; }
.contact-list .icon { color: var(--brass-light); margin-top: .3rem; }
.contact-list .label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .1rem; }
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-card .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.contact-card .btn-ghost:hover { background: var(--white); color: var(--ink); }
.contact-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact-side { position: static; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: #181613; color: rgba(255,255,255,.62); font-size: .95rem; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta-text { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); color: var(--white); margin: 0; line-height: 1.1; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: 3.5rem; }
.logo-light { color: var(--white); height: 40px; margin-bottom: 1.25rem; }
.footer-about p { max-width: 34ch; margin: 0; }
.footer-h { font-family: var(--sans); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); font-weight: 600; margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }
.footer-links .icon { width: .9em; height: .9em; opacity: .6; }
.footer-contact li { display: flex; gap: .7rem; }
.footer-contact .icon { margin-top: .25rem; color: var(--brass-light); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; margin: 0; font-size: .85rem; color: rgba(255,255,255,.4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
