@font-face {
  font-family: "Cairo";
  src: url("./fonts/Cairo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("./fonts/Cairo-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("./fonts/Cairo-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("./fonts/Cairo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aref Ruqaa";
  src: url("./fonts/ArefRuqaa-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aref Ruqaa";
  src: url("./fonts/ArefRuqaa-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Cairo", Arial, sans-serif;
  --font-display: "Aref Ruqaa", Georgia, serif;
  --ink: #211b18;
  --ink-soft: #4a3b32;
  --night: #171412;
  --night-soft: #2b231f;
  --paper: #eee5d5;
  --paper-light: #f6f0e5;
  --sand: #d8c6a8;
  --copper: #bd6d3a;
  --copper-light: #d7925a;
  --olive: #5b6040;
  --line: rgba(33, 27, 24, 0.18);
  --line-light: rgba(246, 240, 229, 0.2);
}

/* Static demo page additions */
.demo-page .site-header { position: relative; color: var(--ink); background: var(--paper-light); }
.demo-page .header-inner { border-bottom-color: var(--line); }
.demo-page .brand-lockup { color: var(--ink); }
.demo-page .brand-lockup small { color: var(--olive); }
.demo-page .main-nav { color: var(--ink-soft); }
.demo-page .main-nav a:hover, .demo-page .main-nav a.active { color: var(--copper); }
.demo-page .header-cta { color: var(--copper); }
.demo-page .brand-mark { color: var(--copper); }
.demo-page .hero { min-height: 520px; }
.demo-page .hero-grid { min-height: 520px; padding-top: 30px; }
.demo-page .hero-copy { padding-bottom: 0; }
.demo-page .hero h1 { font-size: clamp(47px, 6vw, 76px); }
.demo-page .hero-emblem-wrap { min-height: 400px; }
.demo-page .hero-emblem-frame { width: min(100%, 390px); }
.demo-page .hero-stamp { bottom: 34px; }
.demo-page .scroll-hint { display: none; }
.page-masthead { padding: 88px 0 70px; background: var(--night-soft); color: var(--paper-light); }
.page-masthead h1 { margin: 0; font-size: clamp(45px, 6vw, 78px); font-weight: 400; letter-spacing: -.08em; line-height: 1.15; }
.page-masthead h1 em { color: var(--copper-light); }
.page-masthead p:not(.eyebrow) { max-width: 600px; margin: 20px 0 0; color: #b8aa9a; font-size: 15px; line-height: 2; }
.content-section { padding: 100px 0; background: var(--paper-light); }
.content-section.alt { background: var(--sand); }
.detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.detail-grid.reverse { grid-template-columns: 1.2fr .8fr; }
.detail-copy h2 { margin: 0 0 26px; font-size: clamp(36px, 4vw, 55px); font-weight: 400; letter-spacing: -.08em; line-height: 1.35; }
.detail-copy h2 em { color: var(--copper); }
.detail-copy p { max-width: 650px; margin: 0 0 18px; color: #75675a; font-size: 15px; line-height: 2.1; }
.detail-copy .lead { color: var(--ink-soft); font-size: 19px; }
.detail-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--olive); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.detail-kicker::before { content: ""; width: 38px; height: 1px; background: currentColor; }
.detail-card { position: relative; min-height: 290px; padding: 33px; border: 1px solid rgba(33,27,24,.2); background: rgba(246,240,229,.65); }
.detail-card.dark { background: var(--night); color: var(--paper-light); border-color: rgba(216,198,168,.25); }
.detail-card h3 { margin: 0 0 14px; font-size: 20px; font-weight: 500; }
.detail-card p { margin: 0; color: #75675a; font-size: 13px; line-height: 2; }
.detail-card.dark p { color: #b8aa9a; }
.detail-card .value-icon { margin-bottom: 32px; }
.facts-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 35px; }
.fact-item { padding: 16px; border-right: 2px solid var(--copper); background: rgba(189,109,58,.08); }
.fact-item strong, .fact-item small { display: block; }
.fact-item strong { color: var(--copper); font-size: 13px; }
.fact-item small { margin-top: 3px; color: #817263; font-size: 10px; }
.mini-timeline { border-top: 1px solid var(--line); }
.mini-timeline .timeline-item { grid-template-columns: 46px 1fr; }
.heritage-visual { display: grid; place-items: center; min-height: 360px; border: 1px solid rgba(216,198,168,.3); background: radial-gradient(circle, rgba(189,109,58,.25), transparent 54%), var(--night); }
.heritage-visual .visual-arch { width: 73%; min-width: 250px; max-width: 300px; }
.demo-notice { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; padding: 8px 12px; border: 1px solid rgba(189,109,58,.4); color: var(--copper); font-size: 10px; }
.demo-notice::before { content: "✦"; }
.static-form-card { max-width: 750px; padding: 36px; background: var(--paper-light); border: 1px solid var(--line); box-shadow: 12px 12px 0 rgba(189,109,58,.12); }
.static-form-card h2 { margin: 0 0 24px; font-size: 32px; font-weight: 400; letter-spacing: -.07em; }
.static-form-card .form-grid { margin-bottom: 20px; }
.static-form-card .form-success { display: none; }
.static-form-card.is-sent .form-success { display: block; }
.static-form-card.is-sent .form-submit { background: var(--olive); }
.static-form-card.is-sent .form-submit span { display: none; }
.gallery-page-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 18px; }
.gallery-page-grid .gallery-main-card .gallery-art { height: 430px; }
.gallery-page-grid .gallery-art { height: 300px; }
.tree-page-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.tree-page-grid .family-tree { min-height: 410px; }
.footer-link-row { display: flex; flex-wrap: wrap; gap: 20px; color: #9e9183; font-size: 11px; }
.footer-link-row a:hover { color: var(--copper-light); }
.page-footer-note { padding: 15px 0 0; color: #71665b; font-size: 10px; }

@media (max-width: 900px) {
  .detail-grid, .detail-grid.reverse, .tree-page-grid { grid-template-columns: 1fr; gap: 45px; }
  .detail-card, .heritage-visual { max-width: 700px; }
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-page-grid .gallery-main-card { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .demo-page .hero { min-height: 700px; }
  .demo-page .hero-grid { min-height: 700px; padding-top: 38px; }
  .demo-page .hero-emblem-wrap { min-height: 300px; }
  .page-masthead { padding: 65px 0 55px; }
  .content-section { padding: 70px 0; }
  .static-form-card { padding: 23px 18px; }
  .facts-list { grid-template-columns: 1fr; }
  .gallery-page-grid { grid-template-columns: 1fr; }
  .gallery-page-grid .gallery-main-card { grid-column: auto; }
  .gallery-page-grid .gallery-main-card .gallery-art, .gallery-page-grid .gallery-art { height: 250px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.page-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  color: var(--paper-light);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; border-bottom: 1px solid var(--line-light); }
.brand-lockup, .footer-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; color: var(--copper-light); font-family: Georgia, serif; font-size: 23px; line-height: 1; transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-lockup strong, .footer-brand strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.brand-lockup small, .footer-brand small { display: block; color: var(--sand); font-size: 10px; letter-spacing: 0.11em; }
.main-nav { display: flex; align-items: center; gap: 30px; color: #d9cdbd; font-size: 12px; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--copper-light); }
.header-cta { display: flex; align-items: center; gap: 13px; color: var(--copper-light); font-size: 12px; font-weight: 700; }
.header-cta span:last-child { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-size: 17px; }

.hero { position: relative; min-height: 790px; overflow: hidden; background: var(--night); color: var(--paper-light); }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; top: -270px; left: -160px; border: 1px solid rgba(189, 109, 58, .25); border-radius: 50%; box-shadow: 0 0 0 16px rgba(189, 109, 58, .05), 0 0 0 45px rgba(189, 109, 58, .03); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(180deg, transparent, rgba(5, 4, 3, .5)); pointer-events: none; }
.hero-pattern { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(45deg, transparent 46%, var(--copper) 47%, var(--copper) 53%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--copper) 47%, var(--copper) 53%, transparent 54%); background-size: 66px 66px; mask-image: linear-gradient(90deg, transparent 0%, black 40%, transparent 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); align-items: center; gap: 60px; min-height: 790px; padding-top: 72px; }
.hero-copy { max-width: 600px; padding-bottom: 45px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--olive); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.light-eyebrow { color: var(--copper-light); }
.eyebrow-rule { display: inline-block; width: 38px; height: 1px; background: currentColor; }
.hero h1 { max-width: 560px; margin: 0; font-size: clamp(52px, 7vw, 94px); font-weight: 400; letter-spacing: -.09em; line-height: 1.03; }
h1, h2, h3, .hero-stamp, .stat-item strong, .signature, .portrait-monogram, .gallery-art span { font-family: var(--font-display); }
h1 em, h2 em { display: inline-block; color: var(--copper-light); font-family: var(--font-display); font-style: normal; font-weight: 400; letter-spacing: -.06em; }
.hero h1 em { margin-right: 15px; }
.hero-lede { max-width: 455px; margin: 30px 0 0; color: #c5b8a6; font-size: 17px; line-height: 2.1; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 53px; padding: 0 24px; border: 0; font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-copper { background: var(--copper); color: #fff8ef; box-shadow: 8px 8px 0 rgba(189, 109, 58, .12); }
.button-copper:hover { background: var(--copper-light); }
.button-copper span { font-size: 19px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 17px; font-size: 13px; font-weight: 700; }
.text-link span { font-size: 19px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-4px); }
.light-link { color: #d8c6a8; }
.dark-link { color: var(--copper); }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 85px; color: #9d9183; font-size: 11px; }
.note-seal { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(189,109,58,.7); border-radius: 50%; color: var(--copper-light); }

.hero-emblem-wrap { position: relative; display: flex; align-items: center; justify-content: center; min-height: 590px; }
.hero-emblem-glow { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(189,109,58,.2), transparent 68%); filter: blur(5px); }
.hero-emblem-frame { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 500px); aspect-ratio: 1; border: 1px solid rgba(216,198,168,.4); outline: 1px solid rgba(216,198,168,.16); outline-offset: 11px; border-radius: 50%; background: radial-gradient(circle at 50% 43%, rgba(192, 147, 88, .17), transparent 53%), rgba(20,17,15,.4); }
.hero-emblem-frame::before, .hero-emblem-frame::after { content: ""; position: absolute; width: 82%; height: 82%; border: 1px solid rgba(189,109,58,.25); border-radius: 50%; }
.hero-emblem-frame::after { width: 89%; height: 89%; border-color: rgba(216,198,168,.13); }
.hero-logo { position: relative; z-index: 1; width: 77%; height: auto; opacity: .96; filter: brightness(1.38) saturate(.88) contrast(1.05); }
.corner { position: absolute; z-index: 3; width: 21px; height: 21px; border-color: var(--copper-light); border-style: solid; }
.corner-top-right { top: 30px; right: 30px; border-width: 1px 1px 0 0; }
.corner-top-left { top: 30px; left: 30px; border-width: 1px 0 0 1px; }
.corner-bottom-right { right: 30px; bottom: 30px; border-width: 0 1px 1px 0; }
.corner-bottom-left { bottom: 30px; left: 30px; border-width: 0 0 1px 1px; }
.emblem-caption { position: absolute; z-index: 4; color: #c4b398; font-size: 9px; letter-spacing: .24em; }
.top-caption { top: 75px; }
.bottom-caption { bottom: 74px; }
.hero-stamp { position: absolute; right: -7px; bottom: 78px; display: grid; place-items: center; width: 97px; height: 97px; border: 1px solid var(--copper); border-radius: 50%; outline: 1px solid rgba(189,109,58,.5); outline-offset: 5px; color: var(--copper-light); font-family: Georgia, serif; font-size: 28px; line-height: 1; transform: rotate(-13deg); }
.hero-stamp span { display: block; margin-top: -15px; font-family: Tahoma, sans-serif; font-size: 10px; letter-spacing: .08em; }
.scroll-hint { position: absolute; z-index: 2; bottom: 32px; left: 50%; display: flex; align-items: center; gap: 14px; color: #8e8174; font-size: 10px; transform: translateX(-50%); }
.scroll-hint i { position: relative; width: 1px; height: 38px; background: var(--copper); }

.stat-strip { background: var(--copper); color: #fff4e7; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; min-height: 138px; }
.stat-item { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 22px 30px; border-left: 1px solid rgba(255,245,233,.25); }
.stat-item strong { font-family: Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1; }
.stat-item strong span { font-family: Tahoma, sans-serif; font-size: 17px; }
.stat-item > span { color: #f4d9bf; font-size: 11px; }
.stat-quote { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 25px; }
.quote-mark { color: #e5b38e; font-family: Georgia, serif; font-size: 58px; line-height: .5; }
.stat-quote p { max-width: 180px; color: #fff5e8; font-family: Georgia, serif; font-size: 17px; line-height: 1.6; }

.section { padding: 125px 0; }
.story-section { background: var(--paper-light); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 115px; }
.section-intro h2, .head-copy h2, .tree-copy h2, .guestbook-copy h2 { margin: 0; color: var(--ink); font-size: clamp(38px, 4vw, 58px); font-weight: 400; letter-spacing: -.08em; line-height: 1.35; }
.section-intro h2 em, .head-copy h2 em, .tree-copy h2 em, .guestbook-copy h2 em { color: var(--copper); }
.story-copy { padding-top: 55px; }
.story-copy p { max-width: 460px; margin: 0 0 24px; color: #75675a; font-size: 15px; line-height: 2.1; }
.story-copy .lead-paragraph, .tree-copy .lead-paragraph { color: var(--ink-soft); font-size: 19px; line-height: 2; }
.story-copy .text-link { margin-top: 22px; }

.legacy-section { position: relative; overflow: hidden; background: var(--night-soft); color: var(--paper-light); }
.legacy-section::after { content: "دار"; position: absolute; left: -55px; bottom: -105px; color: rgba(216,198,168,.035); font-family: Georgia, serif; font-size: 320px; line-height: 1; }
.legacy-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 110px; min-height: 780px; padding-top: 100px; padding-bottom: 100px; }
.legacy-visual { position: relative; }
.visual-arch { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 410px; aspect-ratio: .83; border: 1px solid rgba(216,198,168,.33); border-bottom: 0; border-radius: 210px 210px 0 0; background: radial-gradient(circle at 50% 38%, rgba(189,109,58,.3), transparent 55%), rgba(16,13,12,.3); }
.visual-arch::before { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(189,109,58,.34); border-bottom: 0; border-radius: 195px 195px 0 0; }
.visual-arch::after { content: ""; position: absolute; top: 95px; bottom: 0; width: 1px; background: rgba(216,198,168,.23); }
.arch-sun { position: absolute; top: 65px; color: var(--copper-light); font-size: 36px; }
.arch-door { position: absolute; bottom: 0; width: 51%; height: 60%; border: 1px solid rgba(216,198,168,.33); border-bottom: 0; background: linear-gradient(90deg, rgba(189,109,58,.1), rgba(41,34,30,.85), rgba(189,109,58,.1)); }
.door-pattern { position: absolute; inset: 16px; opacity: .48; background: repeating-linear-gradient(45deg, transparent 0 16px, var(--copper) 17px 18px, transparent 19px 34px), repeating-linear-gradient(-45deg, transparent 0 16px, var(--copper) 17px 18px, transparent 19px 34px); }
.door-knocker { position: absolute; top: 49%; left: 50%; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--copper-light); border-radius: 50%; color: var(--copper-light); font-size: 10px; transform: translate(-50%, -50%); }
.visual-label { position: absolute; bottom: 23px; color: var(--sand); font-size: 10px; letter-spacing: .18em; }
.visual-caption { display: flex; align-items: center; gap: 18px; width: min(100%, 410px); padding-top: 20px; border-top: 1px solid rgba(216,198,168,.23); }
.visual-caption > span { color: var(--copper-light); font-family: Georgia, serif; font-size: 24px; }
.visual-caption p { margin: 0; color: #9e9183; font-size: 11px; line-height: 1.6; }
.legacy-content { position: relative; z-index: 1; }
.legacy-content h2 { margin: 0 0 60px; font-size: clamp(42px, 4.5vw, 68px); font-weight: 400; letter-spacing: -.09em; line-height: 1.23; }
.legacy-content h2 em { color: var(--copper-light); }
.timeline { border-top: 1px solid rgba(216,198,168,.23); }
.timeline-item { display: grid; grid-template-columns: 46px 1fr; gap: 19px; padding: 24px 0; border-bottom: 1px solid rgba(216,198,168,.23); }
.timeline-number { color: var(--copper-light); font-family: Georgia, serif; font-size: 17px; }
.timeline-item h3 { margin: 0 0 4px; color: var(--paper-light); font-size: 16px; }
.timeline-item p { max-width: 465px; margin: 0; color: #b6aa9c; font-size: 13px; line-height: 1.9; }
.editor-note { margin: 27px 0 0; color: #8e8175; font-size: 10px; }

.values-section { background: var(--sand); }
.section-heading { margin-bottom: 55px; }
.centered-heading { text-align: center; }
.centered-heading .eyebrow { justify-content: center; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 4vw, 57px); font-weight: 400; letter-spacing: -.08em; line-height: 1.2; }
.section-heading > p:last-child { margin: 15px 0 0; color: #75675a; font-size: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { position: relative; min-height: 330px; padding: 34px; background: rgba(246,240,229,.52); border: 1px solid rgba(33,27,24,.15); transition: transform .2s ease, background .2s ease; }
.value-card:hover { transform: translateY(-6px); background: var(--paper-light); }
.featured-card { background: var(--night); color: var(--paper-light); }
.featured-card:hover { background: var(--night-soft); }
.value-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--copper); color: var(--copper); font-size: 24px; }
.featured-card .value-icon { color: var(--copper-light); }
.card-index { position: absolute; top: 36px; left: 35px; color: #8d7e70; font-family: Georgia, serif; font-size: 14px; }
.value-card h3 { margin: 66px 0 10px; font-size: 22px; font-weight: 500; }
.value-card p { min-height: 73px; margin: 0; color: #76675a; font-size: 13px; line-height: 1.9; }
.featured-card p { color: #bdb1a0; }
.value-card a { position: absolute; bottom: 28px; display: flex; align-items: center; gap: 9px; color: var(--copper); font-size: 12px; font-weight: 700; }
.featured-card a { color: var(--copper-light); }

.head-section { background: var(--paper-light); }
.head-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 115px; }
.head-portrait { display: flex; flex-direction: column; align-items: center; }
.portrait-frame { position: relative; display: grid; place-items: center; width: min(100%, 330px); aspect-ratio: .83; border: 1px solid var(--copper); background: repeating-linear-gradient(45deg, rgba(189,109,58,.04) 0 2px, transparent 2px 9px), var(--sand); }
.portrait-frame::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(33,27,24,.28); }
.portrait-monogram { color: var(--copper); font-family: Georgia, serif; font-size: 150px; line-height: 1; }
.portrait-frame span { position: absolute; bottom: 35px; color: #746354; font-size: 11px; }
.head-portrait > p { margin: 13px 0 0; color: #9a8b7b; font-size: 10px; }
.head-copy h2 { margin-bottom: 33px; }
.head-copy blockquote { max-width: 600px; margin: 0 0 33px; padding: 0 22px 0 0; border-right: 2px solid var(--copper); color: #695b4f; font-size: 16px; line-height: 2.1; }
.signature-line { display: flex; align-items: flex-end; justify-content: space-between; max-width: 600px; padding-top: 19px; border-top: 1px solid var(--line); color: #887969; font-size: 11px; }
.signature { color: var(--copper); font-family: Georgia, serif; font-size: 20px; font-style: italic; }

.gallery-section { padding: 115px 0 130px; background: var(--night); color: var(--paper-light); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.gallery-heading h2 { max-width: 610px; font-size: clamp(40px, 4vw, 60px); color: var(--paper-light); }
.gallery-heading > p { max-width: 270px; margin: 0 0 5px; color: #a89989; font-size: 12px; line-height: 1.9; }
.gallery-grid { display: grid; grid-template-columns: 1.25fr .87fr .87fr; gap: 18px; }
.gallery-card { min-width: 0; background: var(--night-soft); }
.gallery-art { position: relative; display: grid; place-items: center; height: 260px; overflow: hidden; }
.gallery-main-card .gallery-art { height: 390px; }
.gallery-art::before, .gallery-art::after { content: ""; position: absolute; border: 1px solid rgba(216,198,168,.22); transform: rotate(45deg); }
.gallery-art::before { width: 230px; height: 230px; }
.gallery-art::after { width: 175px; height: 175px; }
.gallery-art span { position: relative; z-index: 1; color: var(--copper-light); font-family: Georgia, serif; font-size: 72px; }
.gallery-art-door { background: radial-gradient(circle at 50% 50%, rgba(189,109,58,.43), transparent 47%), linear-gradient(145deg, #5b4436, #211a17 62%); }
.gallery-art-door::before { width: 285px; height: 285px; border-radius: 50%; }
.gallery-art-pattern { background: repeating-linear-gradient(45deg, rgba(189,109,58,.25) 0 2px, transparent 2px 24px), repeating-linear-gradient(-45deg, rgba(216,198,168,.12) 0 2px, transparent 2px 24px), #27201c; }
.gallery-art-courtyard { background: radial-gradient(ellipse at 50% 20%, rgba(216,198,168,.25), transparent 48%), linear-gradient(155deg, #596048, #2c2f24 70%); }
.gallery-meta { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; padding: 18px 19px 21px; border-top: 1px solid rgba(216,198,168,.15); }
.gallery-meta span { grid-row: span 2; color: var(--copper-light); font-family: Georgia, serif; font-size: 18px; }
.gallery-meta strong { color: #e7d8c2; font-size: 12px; font-weight: 500; }
.gallery-meta small { color: #928477; font-size: 10px; }

.tree-section { background: var(--paper); }
.tree-grid { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 100px; }
.tree-copy > p:not(.eyebrow) { max-width: 500px; color: #75675a; font-size: 15px; line-height: 2; }
.privacy-note { display: flex; align-items: center; gap: 14px; max-width: 500px; margin-top: 28px; padding: 14px 17px; border: 1px solid rgba(91,96,64,.28); background: rgba(91,96,64,.07); }
.privacy-note > span { color: var(--olive); font-size: 24px; }
.privacy-note p { margin: 0; color: #695c4e; font-size: 11px; line-height: 1.7; }
.privacy-note strong { color: var(--olive); }
.family-tree { position: relative; min-height: 390px; padding: 39px 35px 24px; border: 1px solid rgba(91,96,64,.35); background: rgba(246,240,229,.56); }
.tree-top-ornament { position: absolute; top: 8px; right: 50%; color: var(--olive); font-family: Georgia, serif; font-size: 24px; transform: translateX(50%); }
.tree-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 67px; padding: 10px 20px; border: 1px solid rgba(33,27,24,.26); background: var(--paper-light); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; }
.tree-node small { color: #8b7967; font-size: 9px; font-weight: 400; }
.root-node { width: 190px; margin: 0 auto; border-color: var(--copper); background: var(--night); color: var(--paper-light); }
.root-node small { color: var(--copper-light); }
.tree-connector { width: 1px; height: 39px; margin: 0 auto; background: var(--olive); }
.tree-branches { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; padding-top: 39px; }
.tree-branches::before { content: ""; position: absolute; top: 0; right: 16.66%; left: 16.66%; height: 1px; background: var(--olive); }
.tree-branch { position: relative; }
.branch-line { position: absolute; top: -39px; right: 50%; width: 1px; height: 39px; background: var(--olive); }
.current-node { border-color: var(--copper); }
.tree-caption { margin: 29px 0 0; color: #8c7d6d; font-size: 10px; text-align: center; }

.visit-section { position: relative; overflow: hidden; background: var(--night-soft); color: var(--paper-light); }
.visit-section::before { content: "✦"; position: absolute; right: -30px; top: -100px; color: rgba(189,109,58,.12); font-size: 400px; line-height: 1; }
.visit-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 100px; padding-top: 112px; padding-bottom: 112px; }
.visit-copy h2 { margin: 0; color: var(--paper-light); font-size: clamp(46px, 5vw, 75px); font-weight: 400; letter-spacing: -.09em; line-height: 1.13; }
.visit-copy h2 em { color: var(--copper-light); }
.visit-copy > p:not(.eyebrow) { max-width: 380px; margin: 25px 0 39px; color: #b6aa9d; font-size: 14px; line-height: 2; }
.visit-details { display: flex; gap: 14px; margin-top: 20px; color: var(--copper-light); }
.visit-details > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(189,109,58,.7); border-radius: 50%; font-size: 15px; }
.visit-details strong, .visit-details small { display: block; }
.visit-details strong { color: var(--paper-light); font-size: 12px; }
.visit-details small { color: #8f8274; font-size: 10px; }
.booking-card { padding: 35px 38px 30px; background: var(--paper-light); color: var(--ink); box-shadow: 13px 13px 0 rgba(189,109,58,.15); }
.form-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--copper); font-size: 12px; font-weight: 700; }
.form-icon { font-size: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 15px; }
.form-grid label, .guestbook-form label { display: flex; flex-direction: column; gap: 6px; color: #776756; font-size: 10px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea, .guestbook-form input, .guestbook-form textarea { width: 100%; padding: 10px 11px; border: 1px solid rgba(33,27,24,.2); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 400; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .guestbook-form input:focus, .guestbook-form textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 2px rgba(189,109,58,.12); }
.form-grid textarea, .guestbook-form textarea { resize: vertical; }
.full-field { grid-column: 1 / -1; }
.form-submit { width: 100%; margin-top: 24px; }
.form-success { margin: 14px 0 0; color: var(--olive); font-size: 11px; text-align: center; }

.guestbook-section { background: var(--paper-light); }
.guestbook-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 105px; align-items: start; }
.guestbook-copy > p:last-child { max-width: 360px; margin-top: 28px; color: #75675a; font-size: 13px; line-height: 2; }
.guestbook-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; padding-top: 17px; border-top: 1px solid var(--line); }
.guestbook-form { display: flex; flex-direction: column; gap: 17px; }
.guestbook-form .text-link { align-self: flex-start; margin-top: 4px; padding: 0; border: 0; background: none; }
.dark-success { margin: 0; text-align: right; }
.guestbook-entries { display: flex; flex-direction: column; gap: 13px; }
.guest-entry { position: relative; padding: 17px 20px 14px 15px; border-right: 2px solid var(--copper); background: var(--sand); }
.entry-mark { position: absolute; top: 7px; left: 13px; color: rgba(189,109,58,.45); font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.guest-entry p { margin: 0 0 9px; color: #5d5044; font-family: Georgia, serif; font-size: 14px; line-height: 1.65; }
.guest-entry small { color: #8a7968; font-size: 10px; }

.site-footer { background: var(--night); color: #d9cdbd; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 120px; }
.footer-middle { display: flex; justify-content: center; gap: 18px; color: #8f8276; font-size: 10px; }
.footer-middle span + span::before { content: "·"; margin-left: 18px; color: var(--copper); }
.back-top { justify-self: end; display: flex; align-items: center; gap: 13px; color: var(--copper-light); font-size: 11px; }
.back-top span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--copper); border-radius: 50%; font-size: 17px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 16px 0 23px; border-top: 1px solid var(--line-light); color: #71665b; font-size: 10px; }

@media (max-width: 900px) {
  .main-nav { gap: 15px; }
  .header-cta { display: none; }
  .hero-grid, .story-grid, .legacy-grid, .head-grid, .tree-grid, .visit-grid, .guestbook-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-grid { padding-top: 125px; }
  .hero-copy { max-width: 650px; padding-bottom: 0; }
  .hero-emblem-wrap { min-height: 450px; }
  .hero-emblem-frame { width: min(82vw, 450px); }
  .hero-stamp { right: calc(50% - 215px); bottom: 35px; }
  .scroll-hint { display: none; }
  .story-copy { padding-top: 0; }
  .legacy-visual { width: min(100%, 440px); margin-inline: auto; }
  .legacy-content { max-width: 680px; }
  .head-portrait { order: 2; }
  .head-copy { order: 1; }
  .tree-copy { max-width: 650px; }
  .family-tree { max-width: 650px; margin-inline: auto; width: 100%; }
  .visit-copy { max-width: 620px; }
  .guestbook-copy { max-width: 650px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-quote { display: none; }
}

@media (max-width: 650px) {
  .page-shell { width: min(100% - 36px, 520px); }
  .site-header { position: absolute; }
  .header-inner { min-height: 74px; }
  .main-nav { display: none; }
  .brand-lockup strong { font-size: 12px; }
  .hero { min-height: 760px; }
  .hero-grid { min-height: 760px; gap: 20px; padding-top: 118px; }
  .hero h1 { font-size: clamp(49px, 15vw, 76px); }
  .hero-lede { margin-top: 22px; font-size: 14px; line-height: 1.9; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 28px; }
  .hero-note { margin-top: 38px; }
  .hero-emblem-wrap { min-height: 305px; }
  .hero-emblem-frame { width: min(76vw, 300px); }
  .hero-stamp { right: calc(50% - 145px); bottom: 6px; width: 72px; height: 72px; font-size: 20px; }
  .hero-stamp span { margin-top: -9px; font-size: 8px; }
  .top-caption { top: 39px; }
  .bottom-caption { bottom: 39px; }
  .hero-emblem-frame .corner { width: 13px; height: 13px; }
  .corner-top-right, .corner-top-left { top: 18px; }
  .corner-bottom-right, .corner-bottom-left { bottom: 18px; }
  .corner-top-right, .corner-bottom-right { right: 18px; }
  .corner-top-left, .corner-bottom-left { left: 18px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item { padding: 20px 8px; text-align: center; }
  .stat-item strong { font-size: 25px; }
  .stat-item > span { font-size: 9px; line-height: 1.4; }
  .section { padding: 80px 0; }
  .section-intro h2, .head-copy h2, .tree-copy h2, .guestbook-copy h2 { font-size: 41px; }
  .story-copy .lead-paragraph, .tree-copy .lead-paragraph { font-size: 16px; }
  .legacy-grid { padding-top: 80px; padding-bottom: 80px; }
  .legacy-content h2 { margin-bottom: 38px; font-size: 45px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 280px; }
  .head-grid, .tree-grid, .visit-grid, .guestbook-grid { gap: 45px; }
  .gallery-section { padding: 80px 0; }
  .gallery-heading { display: block; }
  .gallery-heading > p { margin-top: 20px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-main-card .gallery-art, .gallery-art { height: 250px; }
  .family-tree { padding-inline: 14px; }
  .tree-branches { gap: 7px; }
  .tree-node { padding-inline: 7px; font-size: 10px; }
  .tree-node small { font-size: 8px; }
  .visit-grid { padding-top: 80px; padding-bottom: 80px; }
  .visit-copy h2 { font-size: 55px; }
  .booking-card { padding: 25px 18px 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .guestbook-panel { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid { grid-template-columns: 1fr; gap: 23px; padding-top: 30px; padding-bottom: 30px; }
  .footer-middle { justify-content: flex-start; }
  .back-top { justify-self: start; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; }
  .footer-bottom span + span { margin-top: 4px; }
}
