/* RM Custom Hardwood Flooring */
:root {
  --ivory: #f7f3ec;
  --linen: #eee7dc;
  --sand: #d9cdbb;
  --ink: #1d1814;
  --ink-2: #2a221c;
  --text: #3a322b;
  --muted: #7a6e62;
  --line: rgba(29, 24, 20, .14);
  --line-light: rgba(255, 255, 255, .22);
  --oxblood: #7d1d1f;
  --oxblood-2: #a3282a;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font: 300 17px/1.75 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 10px 16px; }
:focus-visible { outline: 2px solid var(--oxblood-2); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type */
.eyebrow {
  font: 500 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--oxblood); margin: 0 0 22px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.center .eyebrow, .reviews .eyebrow, .cta .eyebrow { justify-content: center; }
.center .eyebrow::after, .reviews .eyebrow::after, .cta .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.display { font: 300 clamp(46px, 7.4vw, 108px)/.98 var(--serif); letter-spacing: -.015em; }
.display em, .h2 em { font-style: italic; font-weight: 300; }
.h2 { font: 300 clamp(36px, 4.6vw, 64px)/1.04 var(--serif); letter-spacing: -.01em; margin-bottom: 28px; }
.h2 em { color: var(--oxblood); }
.h3 { font: 400 clamp(28px, 2.8vw, 38px)/1.1 var(--serif); margin-bottom: 14px; }
.h4 { font: 500 12px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.lede { font: 400 clamp(21px, 1.9vw, 26px)/1.5 var(--serif); color: var(--ink); }
.lede.big { font-size: clamp(25px, 2.4vw, 33px); line-height: 1.35; margin-bottom: 1.2em; }
.num { font: 400 15px/1 var(--serif); font-style: italic; color: var(--oxblood); letter-spacing: .05em; }

/* ---------- buttons & links */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px; min-height: 52px; border: 1px solid transparent; border-radius: 0;
  font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--oxblood); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--line); transition: gap .35s var(--ease), border-color .35s;
}
.arrow-link::after { content: "\2192"; font-size: 15px; letter-spacing: 0; }
.arrow-link:hover { gap: 22px; border-color: var(--oxblood); }
.as-btn { background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }

/* ---------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: #fff;
  transition: background .4s var(--ease), color .4s, height .4s var(--ease), box-shadow .4s;
}
.site-header.is-solid { background: rgba(247, 243, 236, .96); color: var(--ink); height: 72px; box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; position: relative; z-index: 2; }
.mono { width: 54px; height: auto; transition: opacity .4s; }
.mono-dark { position: absolute; left: 0; opacity: 0; }
.is-solid .mono-light { opacity: 0; }
.is-solid .mono-dark { opacity: 1; }
.wordmark { display: flex; flex-direction: column; font: 500 10.5px/1.45 var(--sans); letter-spacing: .3em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid currentColor; border-color: rgba(255,255,255,.4); }
.is-solid .wordmark { border-color: var(--line); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav a { font: 400 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; position: relative; padding: 8px 0; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-cta { border: 1px solid currentColor; padding: 12px 18px !important; letter-spacing: .12em !important; margin-left: 6px; }
.nav-cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.site-header:not(.is-solid) .nav-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1140px) {
  .nav-toggle { display: flex; flex-direction: column; gap: 7px; background: none; border: 0; padding: 12px 4px; cursor: pointer; color: inherit; position: relative; z-index: 2; }
  .nav-toggle span:not(.sr) { width: 28px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; background: var(--ink); color: var(--ivory);
    flex-direction: column; justify-content: center; gap: 22px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a { font: 300 34px/1.1 var(--serif); letter-spacing: 0; text-transform: none; }
  .nav-cta { font: 500 13px/1 var(--sans) !important; letter-spacing: .18em !important; margin: 18px 0 0; }
  .nav.is-open { opacity: 1; visibility: visible; }
  body.nav-open .site-header { color: var(--ivory); background: transparent; box-shadow: none; backdrop-filter: none; }
  body.nav-open .mono-light { opacity: 1; } body.nav-open .mono-dark { opacity: 0; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) { .wordmark { display: none; } }

/* ---------- hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; background: var(--ink); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-slide.is-active img { animation: drift 9s ease-out forwards; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,15,12,.55) 0%, rgba(20,15,12,0) 60%), linear-gradient(180deg, rgba(20,15,12,.55) 0%, rgba(20,15,12,.05) 30%, rgba(20,15,12,.25) 55%, rgba(20,15,12,.85) 100%); }
.hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(70px, 12vh, 130px); }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero-title { color: #fff; max-width: 14ch; margin-bottom: 26px; }
.hero-title em { color: #f1e6d6; }
.hero-sub { max-width: 520px; font-size: 18px; color: rgba(255,255,255,.86); margin-bottom: 36px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; width: 1px; height: 70px; background: rgba(255,255,255,.3); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -30px; width: 1px; height: 30px; background: #fff; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ---------- page hero */
.page-hero { position: relative; height: 72vh; min-height: 480px; max-height: 760px; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero-bg, .page-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,15,12,.6) 0%, rgba(20,15,12,0) 65%), linear-gradient(180deg, rgba(20,15,12,.6) 0%, rgba(20,15,12,.12) 35%, rgba(20,15,12,.8) 100%); }
.page-hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(48px, 9vh, 90px); }
.page-hero .eyebrow { color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(46px, 7vw, 96px); }
.page-hero-sub { margin: 18px 0 0; max-width: 520px; color: rgba(255,255,255,.85); }

/* ---------- sections */
section { position: relative; }
.intro, .services, .promise, .svc-intro, .svc-gallery, .castle, .portfolio, .contact, .subs, .ba { padding: clamp(80px, 11vw, 160px) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 760px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; }
.section-head.split .eyebrow { grid-column: 1 / -1; }
.section-head.split .h2 { margin: 0; }
.section-head.center .h2 { margin-bottom: 0; }

/* intro */
.intro-grid { display: grid; grid-template-columns: 1.05fr .75fr .45fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.intro-text { align-self: center; padding-right: clamp(0px, 2vw, 32px); }
.intro-photo img { aspect-ratio: 3 / 4.2; object-fit: cover; width: 100%; }
.intro-photo-sm { margin-bottom: 18%; }
.intro-photo-sm img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
figure { margin: 0; }
.sig { display: flex; align-items: center; gap: 16px; margin-top: 34px; font: 400 italic 20px var(--serif); color: var(--ink); }
.sig img { width: 58px; }
@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .intro-text { grid-column: 1 / -1; padding: 0; }
  .intro-photo-sm { margin: 0; }
  .intro-photo-sm img, .intro-photo img { aspect-ratio: 3 / 4; }
}

/* zoom on photo links */
a[data-gallery] { display: block; overflow: hidden; position: relative; cursor: zoom-in; }
a[data-gallery] img { transition: transform 1.1s var(--ease), opacity .6s; }
a[data-gallery]:hover img { transform: scale(1.035); }

/* services */
.services { background: var(--linen); }
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.svc-card { text-decoration: none; position: relative; display: block; color: #fff; overflow: hidden; background: var(--ink); }
.svc-0 { grid-column: 1 / 8; } .svc-1 { grid-column: 8 / 13; } .svc-2 { grid-column: 1 / 6; } .svc-3 { grid-column: 6 / 13; }
.svc-img { height: clamp(380px, 46vw, 640px); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.04); }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,12,0) 40%, rgba(20,15,12,.8) 100%); }
.svc-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 3vw, 44px); }
.svc-text .num { color: #e8d9c4; }
.svc-text h3 { color: #fff; font: 300 clamp(32px, 3.2vw, 46px)/1.05 var(--serif); margin: 10px 0 6px; }
.svc-text p { color: rgba(255,255,255,.8); margin-bottom: 14px; }
.svc-text .arrow-link { color: #fff; border-color: rgba(255,255,255,.35); }
.svc-card:hover .arrow-link { gap: 22px; border-color: #fff; }
.also { margin: 44px 0 0; text-align: center; color: var(--muted); }
.also strong { font-weight: 500; color: var(--ink); }
@media (max-width: 820px) { .svc-0, .svc-1, .svc-2, .svc-3 { grid-column: 1 / -1; } .svc-img { height: 440px; } }

/* featured castle on home */
.feature { padding-bottom: clamp(80px, 10vw, 140px); background: var(--ivory); }
.feature-hero { position: relative; }
.feature-hero > a img { width: 100%; height: clamp(520px, 88vh, 920px); object-fit: cover; }
.feature-card {
  position: absolute; right: var(--gutter); bottom: calc(-1 * clamp(40px, 6vw, 90px)); width: min(520px, 90vw);
  background: var(--ivory); padding: clamp(32px, 4vw, 56px); box-shadow: 0 30px 60px -30px rgba(20,15,12,.35);
}
.feature-card .h2 { margin-bottom: 4px; }
.feature-loc { font: italic 400 20px var(--serif); color: var(--muted); margin-bottom: 18px; }
.castle-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(120px, 12vw, 170px); }
.castle-strip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 820px) {
  .feature-card { position: relative; right: auto; bottom: auto; margin: -80px auto 0; width: calc(100% - 2 * var(--gutter)); }
  .castle-strip { margin-top: 40px; grid-template-columns: 1fr 1fr; }
  .castle-strip a:first-child { grid-column: 1 / -1; }
}

/* stairs strip */
.stairs-band { background: var(--ink); color: rgba(247,243,236,.78); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.stairs-band .h2 { color: var(--ivory); }
.stairs-band .h2 em, .stairs-band .eyebrow { color: #d6a99a; }
.stairs-head { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 40px; align-items: end; margin-bottom: 56px; }
.stairs-head .h2 { margin: 0; }
.stairs-head p { margin: 0; max-width: 420px; }
.stairs-band .arrow-link { color: var(--ivory); border-color: var(--line-light); }
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 0 var(--gutter) 10px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.strip.is-drag a { pointer-events: none; }
.strip-item { flex: 0 0 auto; width: clamp(240px, 24vw, 360px); scroll-snap-align: start; }
.strip-item img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; -webkit-user-drag: none; }
@media (max-width: 900px) { .stairs-head { grid-template-columns: 1fr; gap: 20px; } }

/* promise */
.promise-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.promise-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.promise-list, .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; }
.promise-list li, .steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.promise-list h3, .steps h3 { font: 400 26px/1.2 var(--serif); margin: 10px 0 8px; }
.promise-list p, .steps p { margin: 0; font-size: 15.5px; color: var(--muted); }
@media (max-width: 900px) { .promise-grid { grid-template-columns: 1fr; } .promise-photo img { aspect-ratio: 16 / 11; } }
@media (max-width: 560px) { .promise-list, .steps { grid-template-columns: 1fr; } }

/* reviews */
.reviews { background: var(--linen); padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.stars { color: var(--oxblood); letter-spacing: .35em; font-size: 14px; margin-bottom: 26px; }
.review-stage { display: grid; }
.review { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.review.is-active { opacity: 1; transform: none; pointer-events: auto; }
.review blockquote { margin: 0 0 26px; font: 300 clamp(25px, 2.9vw, 38px)/1.32 var(--serif); color: var(--ink); }
.review blockquote::before { content: "\201C"; } .review blockquote::after { content: "\201D"; }
.review figcaption { font: 500 12px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 38px; }
.dots button { width: 34px; height: 24px; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 1.5px; background: var(--sand); transition: background .3s; }
.dots button[aria-current]::after { background: var(--oxblood); }

/* CTA */
.cta { position: relative; color: #fff; text-align: center; padding: clamp(110px, 14vw, 200px) 0; overflow: hidden; background: var(--ink); }
.cta-bg, .cta-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(20,15,12,.66); }
.cta-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.cta .eyebrow { color: #fff; }
.cta h2 { color: #fff; font-size: clamp(42px, 5.6vw, 80px); margin-bottom: 22px; }
.cta p { color: rgba(255,255,255,.84); max-width: 560px; margin: 0 auto 38px; }
.cta .actions { justify-content: center; }

/* footer */
.site-footer { background: #15110e; color: rgba(247,243,236,.62); padding: 90px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 64px; }
.footer-brand img { width: 84px; margin-bottom: 22px; }
.footer-brand p { max-width: 340px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font: 500 11.5px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ivory); margin-bottom: 10px; }
.footer-col a { text-decoration: none; transition: color .3s; }
.footer-col a:hover { color: #fff; }
.footer-phone { font: 300 30px/1.1 var(--serif); color: var(--ivory); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; padding-bottom: 32px; font-size: 13px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- service pages */
.svc-intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.svc-intro-grid .btn { margin-top: 14px; }
.svc-side figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.spec { margin-top: 44px; }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.spec-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.steps { grid-template-columns: 1fr; gap: 22px; }
@media (max-width: 900px) { .svc-intro-grid { grid-template-columns: 1fr; } }

.subs { background: var(--linen); }
.sub-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.sub-row + .sub-row { margin-top: clamp(60px, 8vw, 120px); }
.sub-row:nth-child(even) figure { order: 2; }
.sub-row figure img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.sub-row .h3 { margin-top: 12px; }
@media (max-width: 820px) { .sub-row { grid-template-columns: 1fr; } .sub-row:nth-child(even) figure { order: 0; } }

.ba { background: var(--ink); }
.ba .h2 { color: var(--ivory); } .ba .h2 em, .ba .eyebrow { color: #d6a99a; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); max-width: 1000px; margin: 0 auto; }
.ba-pair figure { position: relative; }
.ba-pair img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.ba-pair figcaption { position: absolute; left: 18px; top: 18px; background: var(--ivory); color: var(--ink); padding: 8px 14px; font: 500 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; pointer-events: none; }

/* masonry */
.masonry { columns: 4 260px; column-gap: clamp(10px, 1.4vw, 18px); }
.m-item { break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 18px); background: var(--linen); }
.m-item img { width: 100%; }
.m-item.is-hidden { display: none; }
@media (max-width: 600px) { .masonry { columns: 2; } }

/* gallery page */
.castle { background: var(--ivory); }
.castle-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.castle-photos { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 9vw, 140px); gap: clamp(8px, 1vw, 14px); }
.castle-photos img { width: 100%; height: 100%; object-fit: cover; }
.cg { height: 100%; }
.cg-0 { grid-column: 1 / 5; grid-row: 1 / 4; } .cg-1 { grid-column: 5 / 7; grid-row: 1 / 3; }
.cg-4 { grid-column: 5 / 7; grid-row: 3 / 6; } .cg-2 { grid-column: 1 / 3; grid-row: 4 / 6; } .cg-3 { grid-column: 3 / 5; grid-row: 4 / 6; }
.facts { display: flex; gap: 36px; margin: 32px 0 34px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; }
.facts dt { font: 300 44px/1 var(--serif); color: var(--ink); }
.facts dd { margin: 6px 0 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .castle-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .castle-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .castle-photos .cg { grid-column: auto; grid-row: auto; }
  .castle-photos .cg-0 { grid-column: 1 / -1; grid-row: span 2; }
}
.portfolio { background: var(--linen); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.chips button { font: 400 12.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 12px 20px; background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: all .3s var(--ease); }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-info dl { margin: 32px 0; }
.contact-info dt { font: 500 11.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--oxblood); margin-top: 22px; }
.contact-info dd { margin: 6px 0 0; color: var(--ink); }
.contact-info dd a { text-decoration: none; }
.big-link { font: 300 36px/1.1 var(--serif); }
.contact-info figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-top: 12px; }
.form { background: #fff; padding: clamp(28px, 4vw, 56px); box-shadow: 0 30px 60px -40px rgba(20,15,12,.3); display: flex; flex-direction: column; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: flex; flex-direction: column; gap: 8px; font: 500 11.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.form input, .form select, .form textarea {
  font: 300 17px/1.5 var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--sand); background: transparent; padding: 10px 0; border-radius: 0; width: 100%;
}
.form textarea { border: 1px solid var(--sand); padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .btn { align-self: flex-start; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; color: var(--muted); }
.form-status:empty { display: none; }
.form-status[data-kind="ok"] { color: #2f5d3a; font-weight: 500; }
.form-status[data-kind="error"] { color: var(--oxblood); font-weight: 500; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* full-screen message pages (404, thank you) */
.page-hero.is-full { height: 100vh; height: 100svh; max-height: none; }
.page-hero .actions { margin-top: 30px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15, 12, 10, .96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 14px; text-align: center; letter-spacing: .03em; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 46px/1 var(--serif); padding: 16px 20px; opacity: .75; transition: opacity .2s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; } .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); } .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s 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; }
}
