/* ==========================================================================
   Brigadoon Country & Lifestyle Estate
   ========================================================================== */

@font-face { font-family: "Ramillas"; src: url("../fonts/tt-ramillas-extrabold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-SemiBoldItalic.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-BoldItalic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --gold: #c1a866;
  --gold-light: #d9c590;
  --gold-dark: #9c8445;
  --ink: #0f1712;
  --cream: #fffaf0;
  --white: #ffffff;
  --overlay: rgba(12, 20, 28, 0.62);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--white);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .5s var(--ease-out), backdrop-filter .5s, box-shadow .5s;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  transition: height .5s var(--ease-out), border-color .5s;
}
.logo { display: block; width: 150px; flex-shrink: 0; transition: width .5s var(--ease-out); }
.logo img { width: 100%; height: auto; }
.nav { flex: 1; display: flex; justify-content: center; padding-right: 150px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 36px); }
.nav a {
  position: relative; display: inline-block; padding: 6px 0;
  font-size: 15px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.site-header.scrolled { background: rgba(12, 18, 24, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.site-header.scrolled .bar { height: 76px; border-color: transparent; }
.site-header.scrolled .logo { width: 104px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; color: var(--white); position: relative; z-index: 2;
}
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .4s var(--ease-out), opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Page backdrop (full-bleed photo with overlay) ---------- */
.scene { position: relative; isolation: isolate; overflow: hidden; }
.scene__bg { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.scene__bg img { width: 100%; height: 100%; object-fit: cover; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay); }
.scene--dark::after { background: linear-gradient(180deg, rgba(8,10,12,.78) 0%, rgba(8,10,12,.6) 50%, rgba(8,10,12,.72) 100%); }
.scene--slate::after { background: linear-gradient(180deg, rgba(34,40,58,.8) 0%, rgba(20,28,22,.62) 60%, rgba(20,24,20,.75) 100%); }

.page-top { padding-top: calc(var(--header-h) + 64px); padding-bottom: 72px; min-height: 100vh; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero .scene__bg { inset: -6% 0; }
.hero .scene__bg img { object-position: center 35%; animation: kenburns 14s var(--ease-out) both; }
.hero::after { background: linear-gradient(180deg, rgba(14,32,56,.78) 0%, rgba(16,30,44,.55) 40%, rgba(20,24,18,.65) 100%); }
.hero__content { flex: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--header-h) + 48px) var(--gutter) 56px; }
.hero__title {
  font-family: "Ramillas", "Playfair Display", Georgia, serif; font-weight: 800; text-transform: uppercase;
  line-height: .92; letter-spacing: -.035em;
  font-size: clamp(44px, 8.4vw, 124px);
  text-shadow: 0 6px 40px rgba(0,0,0,.25);
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .04em .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.3s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) > span { font-size: .8em; animation-delay: .25s; }
.hero__title .line:nth-child(2) > span { animation-delay: .42s; }
.hero__tagline { margin-top: 28px; font-size: clamp(18px, 2vw, 25px); font-weight: 400; opacity: 0; animation: fadeUp 1.1s var(--ease-out) .9s forwards; }
.hero__cta { margin-top: 36px; opacity: 0; animation: fadeUp 1.1s var(--ease-out) 1.1s forwards; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border: 1.5px solid rgba(255,255,255,.7); border-radius: 14px; opacity: 0; animation: fadeIn 1s 1.6s forwards;
}
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: cue 1.8s ease-in-out infinite; }

.btn-outline {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 300px; padding: 15px 36px; border: 1.5px solid var(--white);
  font-size: 16px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s;
}
.btn-outline::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.btn-outline:hover { color: var(--ink); border-color: var(--gold); }
.btn-outline:hover::before { transform: scaleY(1); }

/* ---------- Photo galleries ---------- */
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 38px); }
.photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3.6; background: rgba(255,255,255,.05); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.gallery--3 .photo { aspect-ratio: 1 / 1; }
.gallery--wide .photo { aspect-ratio: 16 / 10; }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 1.6s var(--ease-out); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.25)); opacity: 0; transition: opacity .5s; }
.photo:hover::after { opacity: 1; }
.photo.in img { transform: scale(1); }
.photo.in:hover img { transform: scale(1.06); transition-duration: .9s; }
.hero .gallery { padding: 0 var(--gutter) 88px; max-width: 1240px; margin: 0 auto; width: 100%; }

/* Clip reveal for photos */
/* (clip the image, not the figure: a fully clipped target never reports as intersecting) */
.js .photo[data-reveal] { opacity: 1; transform: none; background: transparent; box-shadow: none; transition: box-shadow 1s var(--ease-out); transition-delay: calc(var(--d, 0s) + .5s); }
.js .photo[data-reveal] img { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out), transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.js .photo[data-reveal].in { box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.js .photo[data-reveal].in img { clip-path: inset(0 0 0 0); }
.js .photo[data-reveal].in:hover img { transition-delay: 0s; }

/* ---------- Generic reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-48px); }
.js [data-reveal="right"] { transform: translateX(48px); }
.js [data-reveal="zoom"] { transform: scale(.86); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Section headings ---------- */
.section-title {
  text-align: center; font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
}
.section-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .05em; }
.section-title .word > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.section-title.in .word > span { transform: none; }
.rule { width: 0; height: 2px; margin: 18px auto 0; background: var(--gold); transition: width 1.2s var(--ease-out) .3s; }
.in > .rule, .in + .rule, .rule.in { width: 72px; }

/* ---------- About ---------- */
.about-copy { max-width: 1020px; margin: 28px auto 0; text-align: center; font-size: clamp(16px, 1.6vw, 20px); font-weight: 400; }
.about-copy p + p { margin-top: 1.4em; }
.about-quote { max-width: 1100px; margin: 48px auto 56px; text-align: center; color: var(--gold); font-style: italic; font-weight: 700; font-size: clamp(15px, 1.5vw, 18.5px); line-height: 1.5; }
.about-quote strong { display: block; font-size: 1.05em; }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto 64px; }
.highlight { text-align: center; padding: 26px 16px; border: 1px solid rgba(193,168,102,.45); background: rgba(10,14,12,.35); backdrop-filter: blur(4px); }
.highlight__num { font-family: "Ramillas", Georgia, serif; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--gold); }
.highlight__label { margin-top: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Documentation ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; max-width: 900px; margin: 56px auto 0; }
.doc-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.doc-card__icon { height: 130px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 22px; }
.doc-card__icon img { max-height: 130px; width: auto; transition: transform .7s var(--ease-out); filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.doc-card:hover .doc-card__icon img { transform: translateY(-6px) rotate(-3deg); }
.doc-card h3 { font-size: clamp(17px, 1.9vw, 22px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; }
.doc-card__meta { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: .04em; }

.btn-download {
  display: inline-flex; align-items: center; margin-top: 18px; border: 0; padding: 0; cursor: pointer; background: none; color: var(--cream); text-decoration: none; font: inherit;
}
.btn-download__circle {
  position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream); box-shadow: 0 0 0 3px var(--cream), 0 0 0 4.5px var(--gold); color: var(--gold);
}
.btn-download__circle svg { width: 22px; height: 22px; transition: transform .4s var(--ease-out); }
.btn-download__label {
  margin-left: -26px; padding: 12px 22px 12px 38px; border-radius: 0 999px 999px 0; background: var(--gold);
  font-weight: 700; font-size: 17px; letter-spacing: .01em; text-transform: uppercase;
  transition: background-color .3s, padding .4s var(--ease-out);
}
.btn-download:hover .btn-download__label { background: var(--gold-dark); padding-right: 28px; }
.btn-download:hover .btn-download__circle svg { animation: bob .9s ease-in-out infinite; }

/* Document list dialog */
.doc-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: 6px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.doc-dialog::backdrop { background: rgba(5, 8, 6, .65); backdrop-filter: blur(4px); }
.doc-dialog[open] { animation: dialogIn .5s var(--ease-out); }
.doc-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: var(--gold); color: var(--white); }
.doc-dialog__head h2 { font-size: 17px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.doc-dialog__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.doc-dialog__close:hover { background: rgba(255,255,255,.35); }
.doc-list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; }
.doc-list a { display: flex; align-items: center; gap: 14px; padding: 14px 24px; text-decoration: none; transition: background-color .25s; }
.doc-list a:hover { background: rgba(193,168,102,.16); }
.doc-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold-dark); }
.doc-list strong { display: block; font-weight: 600; font-size: 15px; }
.doc-list small { color: #5d6660; font-size: 13px; }
.doc-list li + li a { border-top: 1px solid rgba(15,23,18,.08); }
.doc-dialog[open] .doc-list li { animation: fadeUp .6s var(--ease-out) both; }
.doc-dialog[open] .doc-list li:nth-child(2) { animation-delay: .05s; }
.doc-dialog[open] .doc-list li:nth-child(3) { animation-delay: .1s; }
.doc-dialog[open] .doc-list li:nth-child(4) { animation-delay: .15s; }
.doc-dialog[open] .doc-list li:nth-child(5) { animation-delay: .2s; }
.doc-dialog[open] .doc-list li:nth-child(6) { animation-delay: .25s; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 56px; align-items: start; }
.contact-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; font-size: 17px; }
.contact-blocks .span-2 { grid-column: 1 / -1; }
.contact-block h2 { font-size: 20px; font-weight: 700; text-transform: uppercase; line-height: 1.3; margin-bottom: 6px; letter-spacing: -.01em; }
.contact-block h3 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.contact-block p, .contact-block li { margin: 0; }
.contact-block ul { list-style: none; padding: 0; margin: 0; }
.contact-block a { text-decoration: none; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.contact-block a:hover { color: var(--gold-light); border-color: currentColor; }
.contact-block a.email { border-color: currentColor; }
.contact-block .gap { margin-top: 1.1em; }
.contact-block b { font-weight: 700; }
.emergency { position: relative; padding: 22px 22px 22px 26px; border-left: 3px solid var(--gold); background: rgba(193,168,102,.14); }
.emergency .big { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: .02em; }

.map-frame { position: relative; overflow: hidden; aspect-ratio: 1 / .96; box-shadow: 0 24px 60px rgba(0,0,0,.4); background: #c9cfc3; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.address { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.45; }
.address svg { flex: 0 0 auto; width: 26px; height: 38px; color: var(--white); }
.contact-gallery { margin-top: 80px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gold); color: var(--white); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; right: -60px; top: -40px; width: 420px; height: 280px; opacity: .08;
  background: url("../img/logo.svg") no-repeat center / contain; filter: brightness(0) invert(1); pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 36px; padding-top: 30px; padding-bottom: 36px; align-items: start; }
.footer-contact h2 { font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.4; }
.footer-contact p, .footer-contact a { font-weight: 400; font-size: 16.5px; line-height: 1.45; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-contact a.email { text-decoration: underline; }
.footer-address { display: flex; gap: 14px; font-size: 15.5px; line-height: 1.5; }
.footer-address svg { flex: 0 0 auto; width: 32px; height: 46px; margin-top: -4px; }
.footer-map { position: relative; aspect-ratio: 1.36 / 1; overflow: hidden; box-shadow: 0 12px 30px rgba(60,45,10,.3); background: #c9cfc3; }
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.35); }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 18px; font-size: 13.5px; }
.footer-bottom nav a { text-decoration: none; margin-left: 18px; letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; }
.footer-bottom nav a:first-child { margin-left: 0; }
.footer-bottom nav a:hover { text-decoration: underline; }

/* ---------- Keyframes ---------- */
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
}

@media (max-width: 820px) {
  :root { --header-h: 88px; }
  .logo { width: 112px; }
  .site-header.scrolled .logo { width: 92px; }
  .site-header.scrolled .bar { height: 68px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1; padding: 0; align-items: center;
    background: rgba(10, 16, 14, .96); backdrop-filter: blur(10px);
    clip-path: circle(0 at calc(100% - 38px) 44px); visibility: hidden;
    transition: clip-path .8s var(--ease-out), visibility 0s .8s;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 38px) 44px); visibility: visible; transition: clip-path .8s var(--ease-out), visibility 0s; }
  .nav ul { flex-direction: column; align-items: center; gap: 28px; }
  .nav a { font-size: 22px; }
  .nav li { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
  .menu-open .nav li { opacity: 1; transform: none; }
  .menu-open .nav li:nth-child(2) { transition-delay: .06s; }
  .menu-open .nav li:nth-child(3) { transition-delay: .12s; }
  .menu-open .nav li:nth-child(4) { transition-delay: .18s; }
  .menu-open { overflow: hidden; }

  .gallery--3 { grid-template-columns: 1fr 1fr; }
  .gallery--3 .photo:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .docs-grid { grid-template-columns: 1fr; gap: 56px; }
  .highlights { grid-template-columns: 1fr; max-width: 360px; }
  .btn-outline { min-width: 0; width: 100%; max-width: 320px; }
}

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero .gallery { padding-bottom: 56px; }
  .contact-blocks { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-map { aspect-ratio: 4 / 3; }
  .footer-bottom nav a { margin-left: 12px; }
  .scroll-cue { display: none; }
  .page-top { padding-top: calc(var(--header-h) + 40px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .photo[data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .photo img, .hero__title .line > span, .section-title .word > span { transform: none; }
  .hero__tagline, .hero__cta { opacity: 1; }
}

/* ==========================================================================
   Gallery page
   ========================================================================== */
.gallery-intro { max-width: 640px; margin: 22px auto 0; text-align: center; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.88); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px auto 40px; min-height: 42px; }
.chip {
  padding: 9px 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(0,0,0,.15);
  color: var(--white); font: 500 13px/1.2 "Poppins", sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  transition: background-color .35s, border-color .35s, color .35s, transform .35s var(--ease-out);
}
.chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.masonry { columns: 3 300px; column-gap: 22px; }
.tile { break-inside: avoid; margin: 0 0 22px; position: relative; }
.tile[hidden] { display: none; }
.tile__btn { display: block; width: 100%; padding: 0; border: 0; background: rgba(255,255,255,.04); cursor: zoom-in; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.tile__btn img { width: 100%; height: auto; transform: scale(1.08); transition: transform 1.4s var(--ease-out), filter .6s; }
.tile:hover .tile__btn img { transform: scale(1.04); filter: brightness(1.06); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 12px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); font-size: 14px; letter-spacing: .02em;
  opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s var(--ease-out);
}
.tile:hover figcaption, .tile:focus-within figcaption { opacity: 1; transform: none; }
.js .tile { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .tile.in { opacity: 1; transform: none; }
.js .tile.in .tile__btn img { transform: scale(1); }
.js .tile.in:hover .tile__btn img { transform: scale(1.04); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 9, 7, .94); color: var(--white); overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { animation: fadeIn .4s forwards; opacity: 0; display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { display: grid; place-items: center; padding: 64px 80px 12px; min-height: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); opacity: 0; transform: scale(.97); transition: opacity .45s, transform .6s var(--ease-out); }
.lightbox__img.is-in { opacity: 1; transform: none; }
.lightbox__caption { text-align: center; padding: 10px 16px 26px; font-size: 15px; color: rgba(255,255,255,.85); min-height: 1.6em; }
.lightbox__count { position: absolute; top: 22px; left: 24px; font-size: 13px; letter-spacing: .18em; color: var(--gold-light); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  background: rgba(0,0,0,.35); color: var(--white); cursor: pointer; font-size: 26px; line-height: 1; transition: background-color .3s, border-color .3s;
}
.lightbox__close { top: 14px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -24px; }
.lightbox__prev svg, .lightbox__next svg { width: 22px; height: 22px; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--gold); border-color: var(--gold); }
@media (max-width: 600px) {
  .masonry { columns: 2 140px; column-gap: 12px; }
  .tile { margin-bottom: 12px; }
  .tile figcaption { display: none; }
  .lightbox__stage { padding: 64px 8px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; margin-top: 0; }
}

.doc-list__empty { padding: 18px 24px; color: #5d6660; }

/* Developer credit */
.credit { display: flex; justify-content: center; padding-bottom: 18px; }
.credit a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  font-size: 13px; text-decoration: none; letter-spacing: .03em; transition: background-color .3s, color .3s, border-color .3s;
}
.credit a strong { font-weight: 600; }
.credit a:hover { background: var(--white); color: var(--gold-dark); border-color: var(--white); }
