/* Wayang.AI public site v3 — modelled on the approved mockup:
   deep maroon + warm cream + gold, serif display, cultural ornaments. */
:root {
  --maroon: #4a0d0c;
  --maroon-2: #5c1310;
  --maroon-deep: #360909;
  --cream: #f6efe0;
  --cream-card: #fffdf4;
  --cream-line: #e6d9bd;
  --ink: #33231a;
  --dim: #7d6a56;
  --dim-2: #a08b6f;
  --gold: #c9a24b;
  --gold-soft: #e8c87a;
  --gold-dark: #9c7a24;
  --red: #cf3527;
  --red-hi: #e84a38;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 15.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* ---------- Header (maroon) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, var(--maroon-2), var(--maroon));
  border-bottom: 1px solid rgba(232, 200, 122, 0.22);
  box-shadow: 0 10px 30px rgba(54, 9, 9, 0.25);
}
.site-header .wrap {
  max-width: 1220px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; color: #f7efe0; font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 0.01em; }
.brand img { height: 38px; width: auto; display: block; }
.brand .ai { color: var(--gold-soft); }
.brand:hover { color: #f7efe0; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.main-nav a { color: #e9dcc3; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; transition: all 0.15s; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav a.on { color: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 4px; }
.main-nav a.cta { background: var(--red); color: #fff; font-weight: 600; margin-left: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); border-radius: 999px; }
.main-nav a.cta:hover { background: var(--red-hi); color: #fff; }
.header-search {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(232, 200, 122, 0.3);
  border-radius: 999px; padding: 5px 6px 5px 14px;
}
.header-search input {
  background: none; border: 0; color: #f7efe0; font: 13px var(--sans); width: 168px; outline: none;
}
.header-search input::placeholder { color: rgba(247, 239, 224, 0.55); }
.header-search button {
  width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--maroon-deep); font-size: 13px; line-height: 1;
  display: grid; place-items: center;
}
@media (max-width: 900px) { .header-search { display: none; } }

/* ---------- Layout & type ---------- */
.wrap-main { max-width: 1220px; margin: 0 auto; padding: 0 22px; position: relative; }
section.block { padding: 84px 0 12px; }
.band { position: relative; }
.band-dark {
  background:
    radial-gradient(760px 420px at 12% -8%, rgba(207, 53, 39, 0.28), transparent 60%),
    radial-gradient(680px 420px at 90% 0%, rgba(201, 162, 75, 0.14), transparent 58%),
    linear-gradient(180deg, var(--maroon-2), var(--maroon) 55%, var(--maroon-deep));
  color: #f3e9d2;
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fdf6e3; }
.band-dark .lede, .band-dark p { color: #d9c9a8; }
.band-cream { background: var(--cream); }
.eyebrow {
  margin: 0 0 10px; color: var(--red); font-size: 12px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
}
.band-dark .eyebrow { color: var(--gold-soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-head .more { font-weight: 600; font-size: 14px; color: var(--red); white-space: nowrap; padding-bottom: 6px; }
.sec-head .more:hover { color: var(--red-hi); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0 0 14px; color: var(--ink); }
h1 { font-size: clamp(44px, 6.8vw, 80px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h2 em, h1 em { font-style: italic; color: var(--gold-dark); }
.band-dark h2 em, .band-dark h1 em { color: var(--gold-soft); }
h3 { margin: 0 0 8px; font-size: 17px; }
.lede { color: var(--dim); font-size: 17px; max-width: 640px; margin: 0 0 22px; }
p { margin: 0 0 14px; }
.muted { color: var(--dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-card); color: var(--ink);
  border: 1px solid var(--cream-line); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 14px rgba(90, 60, 20, 0.08);
}
.btn:hover { transform: translateY(-1px); color: var(--ink); box-shadow: 0 8px 22px rgba(90, 60, 20, 0.14); }
.btn.primary {
  background: linear-gradient(180deg, var(--red-hi), var(--red)); border-color: rgba(0,0,0,0.08); color: #fff;
  box-shadow: 0 10px 26px rgba(207, 53, 39, 0.35);
}
.btn.primary:hover { color: #fff; }
.btn.gold {
  background: linear-gradient(180deg, #e8c87a, var(--gold)); color: #3a2a05; border-color: rgba(0,0,0,0.1);
  box-shadow: 0 10px 26px rgba(201, 162, 75, 0.35);
}
.btn.gold:hover { color: #3a2a05; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-clouds {
  position: absolute; width: 460px; height: 240px; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(circle at 30px 30px, rgba(232, 200, 122, 0.16) 26px, transparent 27px),
    radial-gradient(circle at 90px 30px, rgba(232, 200, 122, 0.12) 26px, transparent 27px),
    radial-gradient(circle at 60px 62px, rgba(232, 200, 122, 0.1) 26px, transparent 27px);
  background-size: 120px 92px;
}
.hero-clouds.tl { top: 6px; left: -60px; }
.hero-clouds.br { bottom: -30px; right: -70px; transform: rotate(180deg); }
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px;
  align-items: center; padding: 74px 0 84px;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; padding: 54px 0 64px; } }
.hero h1 { color: #fdf6e3; margin-bottom: 18px; }
.hero h1 .ai { color: var(--gold-soft); font-style: italic; }
.hero .lede { color: #e2d2ab; max-width: 520px; }
.hero-search {
  display: flex; align-items: center; gap: 8px; max-width: 520px;
  background: #fffdf4; border-radius: 999px; padding: 7px 7px 7px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.hero-search span { color: #a08b6f; font-size: 16px; }
.hero-search input { flex: 1; border: 0; outline: none; background: none; font: 15px var(--sans); color: var(--ink); min-width: 0; }
.hero-search button {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--red); color: #fff; font-size: 19px; display: grid; place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.hero-search button:hover { background: var(--red-hi); transform: translateX(2px); }
.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(232, 200, 122, 0.35);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.hero-visual .frame img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.1; }
.hero-visual .mini-panel {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; gap: 10px; align-items: center;
  background: rgba(30, 8, 6, 0.86); border: 1px solid rgba(232, 200, 122, 0.3);
  border-radius: 14px; padding: 12px 16px; color: #f3e9d2; backdrop-filter: blur(6px);
  font-size: 13px;
}
.hero-visual .mini-panel b { color: var(--gold-soft); }
.hero-visual .mini-panel .live { width: 8px; height: 8px; border-radius: 50%; background: #7ed957; box-shadow: 0 0 10px #7ed957; flex: 0 0 auto; }

/* ---------- Directory icon cards ---------- */
.dir-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 1080px) { .dir-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .dir-cards { grid-template-columns: repeat(2, 1fr); } }
.dir-card {
  position: relative; background: var(--cream-card); border: 1px solid var(--cream-line);
  border-radius: 18px; padding: 22px 18px 20px; color: var(--ink);
  box-shadow: 0 6px 18px rgba(90, 60, 20, 0.06);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex; flex-direction: column; min-height: 196px;
}
.dir-card:hover { transform: translateY(-4px); border-color: #d9c48d; box-shadow: 0 16px 34px rgba(90, 60, 20, 0.13); color: var(--ink); }
.dir-card .ic {
  width: 62px; height: 62px; border-radius: 50%; margin-bottom: 14px;
  background: radial-gradient(circle at 32% 28%, var(--maroon-2), var(--maroon-deep));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(232, 200, 122, 0.35), 0 8px 18px rgba(74, 13, 12, 0.3);
}
.dir-card .ic svg { width: 30px; height: 30px; }
.dir-card .ic i { font-size: 25px; color: var(--gold-soft); }
.dir-card h3 { font-size: 16.5px; margin-bottom: 5px; }
.dir-card p { font-size: 13px; color: var(--dim); margin: 0; line-height: 1.5; }
.dir-card .arr {
  position: absolute; right: 14px; bottom: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 6px 14px rgba(207, 53, 39, 0.35);
}

/* ---------- CV showcase ---------- */
.cv-grid { display: grid; grid-template-columns: 0.92fr 1.35fr; gap: 44px; align-items: center; padding: 20px 0 84px; }
@media (max-width: 920px) { .cv-grid { grid-template-columns: 1fr; } }
.cv-visual { position: relative; border-radius: 18px; }
.cv-visual .shot {
  display: block; width: 100%; border-radius: 18px; border: 1px solid rgba(232, 200, 122, 0.3);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
}
.bbox { position: absolute; border: 2px solid; border-radius: 8px; pointer-events: none; }
.bbox .lbl {
  position: absolute; top: -25px; left: -2px; padding: 2px 9px; border-radius: 5px;
  font: 600 11.5px var(--sans); color: #fff; white-space: nowrap;
}
.bbox.g { border-color: #35c759; } .bbox.g .lbl { background: #1d9e46; }
.bbox.r { border-color: #ff5147; } .bbox.r .lbl { background: #d63a2c; }
.bbox.b { border-color: #45a2ff; } .bbox.b .lbl { background: #1f74d6; }
.cv-panel {
  margin-top: 16px; background: rgba(24, 6, 5, 0.88); border: 1px solid rgba(232, 200, 122, 0.28);
  border-radius: 16px; padding: 18px 20px; color: #f3e9d2;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center;
}
.cv-panel h3 { grid-column: 1 / -1; font-family: var(--serif); font-size: 21px; color: #fdf6e3; margin-bottom: 6px; }
.cv-panel .row { display: contents; }
.cv-panel .row span { font-size: 13.5px; color: #d9c9a8; padding: 5px 0; }
.cv-panel .row b { font-size: 13.5px; color: var(--gold-soft); font-weight: 600; text-align: right; }

/* ---------- Generic cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--cream-card); border: 1px solid var(--cream-line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 6px 18px rgba(90, 60, 20, 0.05);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card .icon i { color: var(--red); }
.card .icon {
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 21px;
  background: rgba(207, 53, 39, 0.09); border: 1px solid rgba(207, 53, 39, 0.2); border-radius: 12px;
}
.card p { color: var(--dim); margin: 0; font-size: 14.5px; }
.card .tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--red);
  border: 1px solid rgba(207, 53, 39, 0.3); border-radius: 999px; padding: 3px 10px; background: rgba(207, 53, 39, 0.05);
}
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento .card.wide { grid-column: span 2; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .card.wide { grid-column: span 1; } }
.entry-card { cursor: pointer; }
.entry-card:hover { transform: translateY(-3px); border-color: #d9c48d; box-shadow: 0 18px 38px rgba(90, 60, 20, 0.14); }
.entry-card h3 { color: var(--ink); font-size: 18px; }
.entry-card .go { margin-top: auto; font-weight: 600; font-size: 13px; color: var(--gold-dark); }
.entry-card img.thumb { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--cream-line); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step-card .num {
  font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.2px rgba(156, 122, 36, 0.6);
}

/* Split */
.split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split figure { margin: 0; position: relative; }
.split figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--cream-line); display: block; box-shadow: 0 26px 50px rgba(90, 60, 20, 0.18); }
.split figcaption {
  margin-top: 12px;
  background: rgba(43, 16, 8, 0.92); border: 1px solid rgba(232, 200, 122, 0.3); border-radius: 12px;
  padding: 10px 14px; color: #e8dcc0; font-size: 12.5px;
}
.spec-list { list-style: none; margin: 22px 0 0; padding: 0; }
.spec-list li { display: grid; grid-template-columns: 138px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--cream-line); font-size: 14.5px; color: var(--dim); }
.spec-list .k { color: var(--ink); font-weight: 600; font-size: 13px; padding-top: 2px; }
@media (max-width: 520px) { .spec-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Quote */
.quote-band { text-align: center; padding: 26px 0 4px; }
.quote-band blockquote {
  margin: 0 auto; max-width: 820px; font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 38px); font-style: italic; line-height: 1.3; color: var(--ink); font-weight: 500;
}
.quote-band .who { margin-top: 16px; color: var(--dim-2); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.quote-band img { width: 34px; margin-bottom: 18px; }

/* Carousel (highlights) */
.carousel-wrap { position: relative; }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(318px, 85%);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { scroll-snap-align: start; }
.hl-thumb {
  height: 148px; border-radius: 12px; position: relative; overflow: hidden;
  background:
    radial-gradient(300px 160px at 85% -10%, rgba(232, 200, 122, 0.25), transparent 60%),
    linear-gradient(140deg, var(--maroon-2), var(--maroon-deep));
  display: grid; place-items: center; margin: -24px -24px 6px; border-radius: var(--radius) var(--radius) 0 0;
}
.hl-thumb .glyph { font-family: var(--serif); font-size: 74px; font-weight: 700; color: rgba(253, 246, 227, 0.9); line-height: 1; }
.hl-thumb img.mark { position: absolute; right: 6px; bottom: -16px; width: 50px; opacity: 0.25; transform: rotate(8deg); }
.hl-thumb .kind-tag {
  position: absolute; left: 12px; bottom: 12px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 6px; padding: 3px 9px;
}
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--cream-line); background: var(--cream-card); color: var(--ink); font-size: 16px;
  display: grid; place-items: center; transition: all 0.15s;
}
.carousel-nav button:hover { background: var(--maroon); color: #f7efe0; border-color: var(--maroon); }

/* Directory pages */
.page-hero { position: relative; padding: 64px 0 6px; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(156, 122, 36, 0.13) 1px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero > * { position: relative; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 26px 0 20px; }
.toolbar input[type="search"] {
  flex: 1 1 240px; background: var(--cream-card); border: 1px solid var(--cream-line);
  border-radius: 999px; color: var(--ink); padding: 12px 18px; font: 14.5px var(--sans);
  box-shadow: 0 4px 12px rgba(90, 60, 20, 0.05);
}
.toolbar input[type="search"]:focus { outline: 2px solid rgba(207, 53, 39, 0.5); }
.tab-btn {
  background: var(--cream-card); border: 1px solid var(--cream-line); color: var(--dim);
  border-radius: 999px; padding: 11px 18px; font: 600 13.5px var(--sans); cursor: pointer; transition: all 0.15s;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(207, 53, 39, 0.3); }
.count-note { color: var(--dim-2); font-size: 13px; }

/* Events */
.event-card { flex-direction: row; gap: 20px; align-items: flex-start; }
.date-badge {
  flex: 0 0 76px; text-align: center; background: linear-gradient(180deg, var(--maroon-2), var(--maroon-deep));
  border: 1px solid rgba(232, 200, 122, 0.3); border-radius: 14px; padding: 12px 4px; color: #f3e9d2;
}
.date-badge .d { display: block; font-family: var(--serif); font-size: 27px; font-weight: 700; color: #fdf6e3; line-height: 1; }
.date-badge .m { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold-soft); text-transform: uppercase; margin-top: 5px; }
.date-badge .y { display: block; font-size: 11px; color: #c9b48a; margin-top: 2px; }
.event-card.past { opacity: 0.55; }
.event-meta { color: var(--dim); font-size: 13px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 22px;
  background: linear-gradient(135deg, var(--maroon-deep), var(--red) 60%, #a02318);
  padding: 54px 40px; text-align: center; margin-top: 92px; color: #ffe9e2;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 0 auto 26px; }
.cta-band img.mark { position: absolute; right: -6px; bottom: -40px; width: 118px; opacity: 0.18; transform: rotate(8deg); }
.cta-band .btn { background: #fff; color: #8f1f16; border-color: #fff; position: relative; box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.cta-band .btn:hover { color: #8f1f16; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); box-shadow: none; }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Footer (maroon) */
.site-footer {
  margin-top: 96px; color: #e9dcc3; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 360px at 8% 0%, rgba(207, 53, 39, 0.2), transparent 60%),
    linear-gradient(180deg, var(--maroon), var(--maroon-deep));
  border-top: 1px solid rgba(232, 200, 122, 0.22);
}
.site-footer .wrap { max-width: 1220px; margin: 0 auto; padding: 54px 22px 30px; display: flex; gap: 34px; flex-wrap: wrap; align-items: flex-start; position: relative; }
.site-footer .col { flex: 1 1 220px; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
.site-footer a { display: block; color: #d9c9a8; font-size: 14.5px; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer a.brand { display: flex; padding: 0; }
.site-footer .tagline { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 15px; margin-top: 8px; }
.site-footer .socials { display: flex; gap: 9px; margin: 4px 0 18px; }
.site-footer .socials a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(232, 200, 122, 0.25);
  font-size: 15px; color: #f3e9d2;
}
.site-footer .socials a:hover { background: var(--red); color: #fff; }
.newsletter { display: flex; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(232, 200, 122, 0.3); border-radius: 999px; padding: 4px; max-width: 320px; }
.newsletter input { flex: 1; background: none; border: 0; outline: none; color: #f7efe0; font: 13px var(--sans); padding: 0 12px; min-width: 0; }
.newsletter input::placeholder { color: rgba(247, 239, 224, 0.5); }
.newsletter button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; font-size: 14px; }
.site-footer .fine { width: 100%; color: #b39d77; font-size: 12.5px; border-top: 1px solid rgba(232, 200, 122, 0.18); padding-top: 20px; margin-top: 12px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer .orn { position: absolute; bottom: 84px; width: 58px; opacity: 0.1; pointer-events: none; }
.site-footer .orn.l { left: -30px; transform: scaleX(-1); }
.site-footer .orn.r { right: -30px; }

/* Modal (dark maroon over any page) */
.modal-veil {
  position: fixed; inset: 0; z-index: 90; background: rgba(24, 5, 4, 0.78);
  display: none; align-items: flex-start; justify-content: center; padding: 26px 16px; overflow-y: auto;
  backdrop-filter: blur(4px);
}
.modal-veil.open { display: flex; }
.modal-box {
  background: #fffdf4; border: 1px solid var(--cream-line); border-radius: 18px;
  width: min(760px, 100%); padding: 30px; margin: auto 0; color: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
.modal-box h2 { margin-right: 90px; color: var(--ink); }
.modal-box .body p { color: #574433; }
.modal-box .eyebrow { color: var(--red); }
.modal-close { float: right; }
.field { display: grid; gap: 5px; margin-bottom: 12px; font-size: 12px; color: var(--dim); }
.field input, .field textarea, .field select {
  background: #fff; border: 1px solid var(--cream-line); border-radius: 10px;
  color: var(--ink); padding: 11px 13px; font: 14.5px var(--sans); width: 100%;
}
.form-msg { min-height: 1.3em; font-size: 13px; color: var(--dim); margin-top: 10px; }
.form-msg.err { color: #b3352a; }
.form-msg.ok { color: var(--gold-dark); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
