/* ════════════════════════════════════════════════════════
   Sample · Filipiniana Heritage (Joaquin & Carmela)
   A church wedding in Vigan: capiz pearl, narra wood,
   terracotta and gold, with woven banig-style borders.
   Cormorant Garamond + IM Fell English SC. English and
   Filipino on one site (the language switch in the nav).
════════════════════════════════════════════════════════ */

.t-heritage {
  --pearl: #F6F0E4;
  --pearl-2: #EDE3CF;
  --capiz: #FBF7EE;
  --narra: #7A4A2A;
  --narra-deep: #43281A;
  --ink-soft: #6A5140;
  --terra: #B5552F;
  --terra-deep: #923D1E;
  --gold: #C9A04E;
  --gold-deep: #8A6524;
  --green: #3E6B4A;
  --red: #A63A2B;
  --line: rgba(67, 40, 26, .18);

  --serif: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --sc: 'IM Fell English SC', 'Cormorant Garamond', Georgia, serif;
  --out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --focus: #923D1E;
  --banig:
    linear-gradient(45deg, var(--terra) 25%, transparent 25%, transparent 75%, var(--terra) 75%) 0 0 / 14px 14px,
    linear-gradient(45deg, var(--terra) 25%, transparent 25%, transparent 75%, var(--terra) 75%) 7px 7px / 14px 14px,
    var(--gold);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='d' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .26 0 0 0 0 .14 .9 0 0 0 -.46'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23d)'/%3E%3C/svg%3E");
  --card: 0 18px 44px rgba(67, 40, 26, .12);

  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--narra-deep);
  background: var(--grain) var(--pearl);
}
.t-heritage ::selection { background: var(--gold); color: var(--narra-deep); }
.t-heritage .demo-bar { background: var(--narra-deep); color: #E6D7BF; }
.t-heritage .demo-bar a { color: #F2D58E; }

/* ── Sections, each topped with a woven banig band ── */
.t-heritage section { position: relative; background: var(--grain) var(--bg, var(--pearl)); padding: clamp(100px, 12vw, 150px) 20px; text-align: center; transition: background-color .7s var(--out); }
.t-heritage section:not(.hero)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; z-index: 1;
  background: var(--banig);
  box-shadow: inset 0 3px 0 var(--narra-deep), inset 0 -3px 0 var(--narra-deep), inset 0 6px 0 var(--green), inset 0 -6px 0 var(--green);
  opacity: .9;
}

/* ── Type ── */
.t-heritage .kicker { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font: 400 16px/1.2 var(--sc); letter-spacing: .14em; color: var(--terra-deep); }
.t-heritage .kicker::after { content: ""; width: 70px; height: 8px; margin-top: 8px; background: radial-gradient(circle, var(--gold) 2px, transparent 2.5px) 0 50% / 10px 8px repeat-x; }
.t-heritage .script-title { font: italic 500 clamp(54px, 9vw, 112px)/1.05 var(--serif); margin: .18em 0 .1em; color: var(--narra-deep); }
.t-heritage .sub { font-size: 20px; font-style: italic; color: var(--ink-soft); }
.t-heritage .alt { display: block; font: italic 400 .62em/1.3 var(--serif); color: var(--ink-soft); margin-top: .2em; }

/* ── Buttons ── */
.t-heritage .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 17px/1 var(--sc); letter-spacing: .1em;
  padding: 17px 26px 15px; border-radius: 4px;
  color: var(--narra-deep); background: var(--capiz);
  border: 1.5px solid var(--narra); box-shadow: inset 0 0 0 4px var(--capiz), inset 0 0 0 5px rgba(122, 74, 42, .4);
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, transform .3s var(--out);
}
.t-heritage .btn:hover { background: var(--pearl-2); transform: translateY(-2px); }
.t-heritage .btn--solid { background: var(--terra-deep); border-color: var(--terra-deep); color: #FBEFD9; box-shadow: inset 0 0 0 4px var(--terra-deep), inset 0 0 0 5px rgba(242, 213, 142, .55); }
.t-heritage .btn--solid:hover { background: #7C3217; }
.t-heritage .btn--sm { padding: 12px 15px 10px; font-size: 14.5px; }
.t-heritage .btn--big { padding: 21px 32px 19px; font-size: 19px; }
.t-heritage .btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Progress + nav + language switch ── */
.t-heritage .progress { height: 4px; background: var(--banig); }
.t-heritage .nav { gap: 4px; padding: 6px 6px 6px 18px; background: rgba(246, 240, 228, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1.5px solid var(--narra); border-radius: 999px; box-shadow: 0 10px 28px rgba(67, 40, 26, .14); }
.t-heritage .nav-logo { font: italic 600 26px/1 var(--serif); text-decoration: none; margin-right: 8px; }
.t-heritage .nav-logo span { color: var(--terra); }
.t-heritage .nav-links a { font: 400 15px/1 var(--sc); letter-spacing: .06em; text-decoration: none; white-space: nowrap; padding: 11px 11px; border-radius: 999px; transition: background-color .2s; }
.t-heritage .nav-links a:hover { background: var(--pearl-2); }
.t-heritage .lang { display: inline-flex; padding: 3px; border: 1.5px solid var(--narra); border-radius: 999px; background: var(--capiz); margin-left: 6px; }
.t-heritage .lang button { appearance: none; border: 0; background: transparent; cursor: pointer; font: 400 13px/1 var(--sc); letter-spacing: .08em; padding: 8px 10px; border-radius: 999px; color: var(--narra-deep); }
.t-heritage .lang button[aria-pressed="true"] { background: var(--narra); color: var(--capiz); }
.t-heritage .nav .btn { margin-left: 6px; border-radius: 999px; }
@media (max-width: 1080px) { .t-heritage .lang { margin-left: auto; } }
@media (max-width: 420px) { .t-heritage .nav .btn--sm { padding: 11px 11px 9px; font-size: 13px; } .t-heritage .nav-logo { font-size: 22px; margin-right: 4px; } }
.t-heritage .nav-menu { width: 42px; height: 42px; margin-left: 6px; border: 1.5px solid var(--narra); border-radius: 50%; background: var(--pearl-2); }
.t-heritage .nav-menu span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--narra-deep); transition: transform .3s var(--out); }
.t-heritage .nav-menu span:first-child { top: 16px; }
.t-heritage .nav-menu span:last-child  { top: 23px; }
.t-heritage .nav-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.t-heritage .nav-menu[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }
.t-heritage .menu { background: var(--grain) var(--pearl-2); }
.t-heritage .menu::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: var(--banig); }
.t-heritage .menu a { font: italic 500 clamp(42px, 12vw, 58px)/1.2 var(--serif); text-decoration: none; }
.t-heritage .menu a:hover { color: var(--terra-deep); }

/* ═════════════════ OPENING: capiz shutters ═════════════════ */
.t-heritage .intro { background: radial-gradient(circle at 50% 45%, #5A3622 0%, #2E1A10 70%); }
.t-heritage .intro::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .1) 0 2px, transparent 2px 70px), var(--grain); opacity: .7; }
.t-heritage .ii-light { position: absolute; left: 50%; top: 46%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 160, .95) 0%, rgba(255, 198, 110, .55) 14%, rgba(255, 190, 100, .15) 30%, transparent 46%); opacity: .25; transform: scale(.35); transition: opacity 1.1s var(--out) .25s, transform 1.4s var(--out) .25s; }
.t-heritage .ii-rays { position: absolute; left: 50%; top: 46%; width: 140vmax; height: 140vmax; margin: -70vmax 0 0 -70vmax; pointer-events: none; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 228, 170, .22) 0 4deg, transparent 4deg 14deg); -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%); mask: radial-gradient(circle, #000 0%, transparent 62%); opacity: 0; transition: opacity 1s .5s; animation: wd-spin 90s linear infinite; }
.t-heritage .intro.s-open .ii-light { opacity: 1; transform: scale(1); }
.t-heritage .intro.s-open .ii-rays { opacity: 1; }
.t-heritage .intro-skip { font: 400 14px/1 var(--sc); letter-spacing: .1em; color: var(--capiz); background: rgba(46, 26, 16, .6); border: 1px solid rgba(242, 213, 142, .6); border-radius: 999px; padding: 11px 16px 9px; transition: opacity .3s; }
.t-heritage .intro :focus-visible { outline-color: #F2D58E; }
.t-heritage .win-float { position: relative; }
.t-heritage .window { position: relative; width: min(350px, 84vw); opacity: 0; transform: translateY(26px); transition: opacity .7s var(--out), transform 1s var(--out); }
.t-heritage .intro.is-ready .window { opacity: 1; transform: none; }
/* wooden frame around the window */
.t-heritage .window::before { content: ""; position: absolute; inset: -16px; border-radius: 180px 180px 10px 10px; background: linear-gradient(180deg, #8A5634, #5E3820); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 0 0 7px #6C4127, 0 30px 60px rgba(0, 0, 0, .45); z-index: 0; }
.t-heritage .intro-card {
  appearance: none; border: 0; margin: 0; padding: 0; display: block; width: 100%; position: relative; z-index: 1;
  font: inherit; color: var(--narra-deep); text-align: center; cursor: default;
  background: var(--grain) var(--capiz);
  border-radius: 164px 164px 4px 4px;
  box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 8px var(--capiz), inset 0 0 0 9.5px rgba(201, 160, 78, .5);
  transition: box-shadow .8s;
}
.t-heritage .intro.s-card .intro-card { cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 8px var(--capiz), inset 0 0 0 9.5px rgba(201, 160, 78, .5), 0 0 70px rgba(255, 214, 140, .55); }
.t-heritage .inv-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 66px 26px 30px; }
.t-heritage .inv-kicker { font: 400 15px/1.2 var(--sc); letter-spacing: .12em; color: var(--terra-deep); }
.t-heritage .inv-small { font-size: 16px; font-style: italic; color: var(--ink-soft); }
.t-heritage .inv-names { display: flex; flex-direction: column; align-items: center; font: italic 500 clamp(50px, min(15vw, 8vh), 70px)/.98 var(--serif); }
.t-heritage .inv-names i { font-style: normal; font-size: .55em; color: var(--terra); }
.t-heritage .inv-date { font: 600 19px/1.3 var(--serif); }
.t-heritage .inv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.t-heritage .inv-chips > span { border: 1px solid var(--narra); border-radius: 999px; padding: 6px 12px 5px; font: 400 13.5px/1.2 var(--sc); letter-spacing: .04em; white-space: nowrap; }
.t-heritage .inv-place { font-size: 16.5px; font-weight: 600; }
.t-heritage .inv-grace { font: italic 400 21px/1.2 var(--serif); color: var(--ink-soft); }
.t-heritage .inv-tap { margin-top: 6px; font: 400 14px/1 var(--sc); letter-spacing: .1em; color: #FBEFD9; background: var(--terra-deep); border-radius: 999px; padding: 13px 18px 11px; white-space: nowrap; }
html.motion .t-heritage .intro.s-card .inv-tap { animation: wd-pulse 1.5s ease-in-out .6s infinite; }
@media (max-height: 760px) { .t-heritage .inv-inner { gap: 4px; padding: 56px 22px 24px; } .t-heritage .inv-grace { font-size: 19px; } }

/* the two capiz shutters */
.t-heritage .shutter { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3; transform-style: preserve-3d; transition: transform 1.3s cubic-bezier(.45, .05, .25, 1); }
.t-heritage .shutter-l { left: 0; transform-origin: 0 50%; border-radius: 164px 0 0 4px; }
.t-heritage .shutter-r { right: 0; transform-origin: 100% 50%; border-radius: 0 164px 4px 0; }
.t-heritage .shutter > i { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.t-heritage .shutter > i.f {
  background:
    repeating-linear-gradient(0deg, #6C4127 0 5px, transparent 5px 40px),
    repeating-linear-gradient(90deg, #6C4127 0 5px, transparent 5px 40px),
    linear-gradient(135deg, rgba(255, 255, 255, .5), transparent 30%, rgba(255, 240, 210, .4) 55%, transparent 75%),
    linear-gradient(160deg, #F4ECDC 0%, #E6D8BE 45%, #F7F0E2 70%, #E2D2B5 100%);
  box-shadow: inset 0 0 0 6px #6C4127, inset 0 0 18px rgba(255, 210, 140, .55);
}
.t-heritage .shutter > i.b { transform: rotateY(180deg); background: linear-gradient(90deg, #6C4127, #8A5634); }
.t-heritage .shutter .knob { position: absolute; top: 55%; width: 10px; height: 26px; border-radius: 5px; background: linear-gradient(#E7C978, #9C7428); box-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.t-heritage .shutter-l .knob { right: 8px; }
.t-heritage .shutter-r .knob { left: 8px; }
.t-heritage .intro.s-open .shutter-l { transform: perspective(1200px) rotateY(-118deg); }
.t-heritage .intro.s-open .shutter-r { transform: perspective(1200px) rotateY(118deg); }
.t-heritage .intro.s-card .shutter { opacity: 0; transition: opacity .5s; }
.t-heritage .intro-open { position: absolute; inset: 0; z-index: 5; appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; border-radius: 164px 164px 4px 4px; }
.t-heritage .intro.s-open .intro-open { visibility: hidden; }
.t-heritage .ii-hint { position: absolute; left: 50%; bottom: -66px; transform: translateX(-50%); margin: 0; white-space: nowrap; font: 400 15px/1 var(--sc); letter-spacing: .12em; color: #F2D58E; transition: opacity .3s; }
.t-heritage .ii-hint > span { display: inline-block; animation: wd-pulse 1.6s ease-in-out infinite; }
.t-heritage .intro.s-open .ii-hint { opacity: 0; }
/* leaving: the light fills the room, then the page appears */
.t-heritage .ii-flash { position: absolute; inset: 0; z-index: 7; pointer-events: none; background: radial-gradient(circle at 50% 45%, #FFF4DA, #F6F0E4 60%); opacity: 0; transition: opacity .45s var(--out); }
.t-heritage .intro.s-leave { pointer-events: none; transition: opacity .6s .45s; opacity: 0; }
.t-heritage .intro.s-leave .ii-flash { opacity: 1; }
.t-heritage .intro.s-leave .window { transform: scale(1.12); transition: transform .6s var(--out); }

/* ═════════════════ HERO ═════════════════ */
.t-heritage .hero { padding: 118px 20px 90px; display: flex; flex-direction: column; justify-content: center; overflow: clip; background: var(--pearl); }
.t-heritage .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--grain); pointer-events: none; }
.t-heritage .aurora { position: absolute; inset: -10%; pointer-events: none; }
.t-heritage .aurora i { position: absolute; width: 58vmax; height: 58vmax; border-radius: 50%; opacity: .7; }
.t-heritage .aurora i:nth-child(1) { background: radial-gradient(circle, rgba(201, 160, 78, .45) 0%, transparent 62%); top: -20%; left: -15%; animation: wd-drift1 24s ease-in-out infinite alternate; }
.t-heritage .aurora i:nth-child(2) { background: radial-gradient(circle, rgba(181, 85, 47, .25) 0%, transparent 62%); bottom: -25%; right: -15%; animation: wd-drift2 26s ease-in-out infinite alternate; }
.t-heritage .aurora i:nth-child(3) { background: radial-gradient(circle, rgba(62, 107, 74, .18) 0%, transparent 60%); top: 30%; left: 35%; animation: wd-drift3 22s ease-in-out infinite alternate; }
.t-heritage .hero-grid { position: relative; z-index: 2; width: min(1200px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; text-align: left; }
.t-heritage .hero .kicker { align-items: flex-start; }
.t-heritage .hero-names { font: italic 500 clamp(78px, min(10.5vw, 17vh), 156px)/.95 var(--serif); margin: 16px 0 26px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .18em; }
.t-heritage .hero-names .w { display: inline-block; padding: 0 .08em .12em .02em; }
.t-heritage .hero-names .amp { color: var(--terra); font-size: .6em; font-style: normal; }
.t-heritage .hero-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.t-heritage .hero-facts li { background: var(--capiz); border: 1.5px solid var(--narra); border-radius: 6px; padding: 10px 16px 9px; display: flex; flex-direction: column; line-height: 1.15; box-shadow: inset 0 0 0 4px var(--capiz), inset 0 0 0 5px rgba(201, 160, 78, .5); }
.t-heritage .hero-facts b { font: 700 22px/1.2 var(--serif); }
.t-heritage .hero-facts li > span { font: 400 14px/1.3 var(--sc); letter-spacing: .04em; color: var(--ink-soft); }
.t-heritage .hero-place { margin-top: 22px; font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.t-heritage .hero-place svg { width: 22px; height: 22px; flex: none; fill: var(--gold); stroke: var(--narra-deep); stroke-width: 1.5; }
.t-heritage .hero-tag { margin-top: 4px; font: italic 400 26px/1.3 var(--serif); color: var(--ink-soft); }
.t-heritage .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.t-heritage .hero-art { position: relative; justify-self: center; width: min(400px, 100%); }
.t-heritage .arch-wrap { position: relative; transform: translateY(calc(var(--p, 0) * 60px)) rotate(calc(var(--p, 0) * -4deg)) scale(calc(1 + var(--p, 0) * .08)); will-change: transform; }
/* the photo sits in a church window with a woven frame, the "offset shadow" is a banig panel */
.t-heritage .arch-weave { position: absolute; inset: 0; border-radius: 999px 999px 8px 8px; background: var(--banig); transform: translate(16px, 16px) rotate(2deg); border: 2px solid var(--narra-deep); }
.t-heritage .arch { position: relative; aspect-ratio: 3 / 4; border-radius: 999px 999px 8px 8px; overflow: hidden; border: 8px solid #6C4127; box-shadow: inset 0 0 0 2px #3E2414, 0 30px 60px rgba(67, 40, 26, .25); transform: rotate(2deg); background: var(--pearl-2); }
.t-heritage .arch img { width: 100%; height: 100%; object-fit: cover; }
.t-heritage .f-sticker { top: -7%; left: -16%; width: 140px; }
.t-heritage .f-sticker svg { width: 100%; display: block; animation: wd-spin 24s linear infinite; }
.t-heritage .f-tag { bottom: 13%; right: -12%; }
.t-heritage .tag { display: inline-block; font: italic 600 28px/1 var(--serif); color: #FBEFD9; background: var(--terra-deep); border: 1.5px solid #F2D58E; border-radius: 6px; padding: 10px 18px 11px; transform: rotate(-7deg); box-shadow: 0 10px 20px rgba(67, 40, 26, .25); }
.t-heritage .f-heart { top: 28%; right: -14%; width: 76px; }
.t-heritage .f-star { bottom: -5%; left: -10%; width: 64px; }
.t-heritage .f-squiggle { bottom: 36%; left: -22%; width: 92px; }
.t-heritage .f-heart svg, .t-heritage .f-star svg, .t-heritage .f-squiggle svg { display: block; width: 100%; height: auto; }
.t-heritage .f-dot { top: 7%; right: 3%; width: 34px; height: 34px; }
.t-heritage .f-dot::before { content: ""; display: block; width: 100%; height: 100%; transform: rotate(45deg); background: linear-gradient(135deg, #FBF7EE, #E6D8BE 50%, #F7F0E2); border: 1.5px solid var(--narra); box-shadow: 0 4px 10px rgba(67, 40, 26, .2); animation: wd-bob 4s ease-in-out infinite alternate; }
.t-heritage .scroll-cue { position: absolute; left: 50%; bottom: 24px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--narra); border-radius: 20px; }
.t-heritage .scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--terra); animation: heritage-cue 1.6s var(--out) infinite; }
@keyframes heritage-cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }
@media (max-width: 860px) {
  .t-heritage .hero { padding-top: 104px; }
  .t-heritage .hero-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .t-heritage .hero .kicker { align-items: center; }
  .t-heritage .hero-names { justify-content: center; margin: 12px 0 22px; font-size: clamp(64px, 19vw, 130px); }
  .t-heritage .hero-facts, .t-heritage .hero-ctas, .t-heritage .hero-place { justify-content: center; }
  .t-heritage .hero-facts { gap: 8px; flex-wrap: nowrap; }
  .t-heritage .hero-facts li { padding: 9px 9px 8px; flex: 1 1 0; align-items: center; }
  .t-heritage .hero-facts b { font-size: 18px; }
  .t-heritage .hero-facts li > span { font-size: 12px; }
  .t-heritage .hero-place { font-size: 17.5px; }
  .t-heritage .hero-tag { font-size: 23px; }
  .t-heritage .hero-art { width: min(250px, 64vw); margin: 34px auto 24px; }
  .t-heritage .f-sticker { width: 100px; left: -22%; }
  .t-heritage .f-tag { right: -18%; }
  .t-heritage .tag { font-size: 22px; padding: 8px 14px 9px; }
  .t-heritage .f-squiggle { left: -26%; width: 70px; }
  .t-heritage .f-heart { width: 56px; right: -18%; }
  .t-heritage .f-star { width: 50px; }
  .t-heritage .scroll-cue { display: none; }
}

/* ═════════════════ COUNTDOWN (capiz tiles) ═════════════════ */
.t-heritage .count-grid { gap: 18px; width: min(900px, 100%); margin: 36px auto 0; }
.t-heritage .count-card { position: relative; padding: 26px 8px 22px; display: flex; flex-direction: column; align-items: center; border: 6px solid #6C4127; border-radius: 6px; background: linear-gradient(135deg, rgba(255, 255, 255, .6), transparent 35%, rgba(255, 240, 210, .45) 60%, transparent 80%), linear-gradient(160deg, #F7F0E2, #E8DCC4); box-shadow: inset 0 0 0 1.5px #3E2414, var(--card); }
.t-heritage .count-card .num { font: 600 clamp(54px, 9vw, 100px)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.t-heritage .count-card .lbl { margin-top: 8px; font: 400 15px/1 var(--sc); letter-spacing: .08em; color: var(--ink-soft); }
.t-heritage .count-done { grid-column: 1 / -1; font: italic 500 clamp(48px, 8vw, 90px)/1.1 var(--serif); }

/* ═════════════════ VENUES (two cards + map) ═════════════════ */
.t-heritage .venues { width: min(1060px, 100%); margin: 44px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: left; }
.t-heritage .vcard { background: var(--grain) var(--capiz); border: 1.5px solid var(--narra); border-radius: 8px; overflow: hidden; box-shadow: var(--card); }
.t-heritage .vcard-photo { position: relative; aspect-ratio: 3 / 2; border-bottom: 1.5px solid var(--narra); }
.t-heritage .vcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-heritage .vcard-photo > span { position: absolute; left: 14px; top: 14px; font: 400 15px/1 var(--sc); letter-spacing: .06em; color: #FBEFD9; background: var(--terra-deep); border-radius: 999px; padding: 9px 14px 7px; }
.t-heritage .vcard-body { padding: 22px 24px 24px; }
.t-heritage .vcard h3 { font: italic 600 32px/1.1 var(--serif); }
.t-heritage .vcard .where { font: 400 15px/1.3 var(--sc); letter-spacing: .05em; color: var(--terra-deep); margin-top: 4px; }
.t-heritage .vcard p { margin-top: 10px; font-size: 18.5px; color: var(--ink-soft); }
.t-heritage .vcard .time { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(67, 40, 26, .3); display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.t-heritage .vcard .btn { margin-top: 16px; }
.t-heritage .map-reveal { width: min(1060px, 100%); margin: 40px auto 0; border: 1.5px solid var(--narra); border-radius: 8px; background: var(--capiz); padding: 8px; box-shadow: var(--card); }
.t-heritage .map-reveal iframe { border-radius: 4px; filter: sepia(.25); }
.t-heritage .map-note { margin-top: 12px; font-size: 16px; font-style: italic; color: var(--ink-soft); }
@media (max-width: 760px) { .t-heritage .venues { grid-template-columns: 1fr; } }

/* ═════════════════ SCHEDULE ═════════════════ */
.t-heritage .tl { width: min(920px, 100%); margin: 50px auto 0; gap: 46px; padding: 10px 0; }
.t-heritage .tl-track { stroke: rgba(122, 74, 42, .3); stroke-width: 2; stroke-dasharray: 2 8; }
.t-heritage .tl-draw { stroke: var(--terra); stroke-width: 3; }
.t-heritage .tl-item { background: var(--capiz); border: 1.5px solid var(--narra); border-radius: 8px; padding: 22px 24px; box-shadow: inset 0 0 0 4px var(--capiz), inset 0 0 0 5px rgba(201, 160, 78, .45), var(--card); }
.t-heritage .tl-time { display: block; font: 400 18px/1 var(--sc); letter-spacing: .08em; color: var(--terra-deep); margin-bottom: 8px; }
.t-heritage .tl-item h3 { font: italic 600 27px/1.15 var(--serif); }
.t-heritage .tl-item p { margin-top: 4px; color: var(--ink-soft); font-size: 18px; }

/* ═════════════════ DRESS CODE (Barong + Filipiniana) ═════════════════ */
.t-heritage .dress-grid { width: min(1100px, 100%); margin: 42px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.t-heritage .dress-card { background: rgba(251, 247, 238, .85); border: 1.5px solid var(--narra); border-radius: 8px; padding: 30px 26px 32px; box-shadow: var(--card); }
.t-heritage .script-sub { font: italic 600 clamp(36px, 5vw, 48px)/1.1 var(--serif); margin-bottom: 18px; }
.t-heritage .polaroid { background: #fff; padding: 12px 12px 14px; border-radius: 4px; box-shadow: 0 12px 28px rgba(67, 40, 26, .18); transform: rotate(var(--r, 0deg)); transition: transform .45s var(--spring); max-width: 300px; margin: 0 auto; cursor: default; }
html.motion .t-heritage .polaroid[data-rv].in:hover, .t-heritage .polaroid:hover { transform: rotate(0deg) scale(1.03); }
.t-heritage .polaroid svg { display: block; width: 100%; height: auto; background: linear-gradient(160deg, #F7F0E2, #EDE3CF); }
.t-heritage .polaroid > span { display: block; margin-top: 8px; font: italic 400 18px/1.2 var(--serif); color: var(--ink-soft); }
.t-heritage .dress-note { margin-top: 22px; font-size: 20px; font-weight: 700; }
.t-heritage .dress-avoid { margin-top: 2px; font-size: 18px; font-style: italic; color: var(--ink-soft); }
.t-heritage .try { margin-top: 16px; font: 400 15px/1 var(--sc); letter-spacing: .08em; color: var(--terra-deep); }
.t-heritage .palette { display: grid; grid-template-columns: repeat(6, 48px); justify-content: center; gap: 14px; margin-top: 26px; }
.t-heritage .swatch { width: 48px; height: 48px; border: 0; transform: rotate(45deg); border-radius: 4px; background: var(--c); box-shadow: 0 0 0 3px var(--capiz), 0 0 0 4.5px var(--narra), 0 6px 14px rgba(67, 40, 26, .2); transition: transform .35s var(--spring), box-shadow .3s; }
.t-heritage .swatch:hover { transform: rotate(45deg) scale(1.1); }
.t-heritage .swatch[aria-checked="true"] { transform: rotate(45deg) scale(1.2); box-shadow: 0 0 0 3px var(--capiz), 0 0 0 6px var(--narra-deep), 0 8px 18px rgba(67, 40, 26, .25); }
.t-heritage .swatch[aria-checked="true"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 7px; border-left: 2.5px solid var(--ck, var(--narra-deep)); border-bottom: 2.5px solid var(--ck, var(--narra-deep)); transform: translate(-50%, -70%) rotate(-90deg); }
.t-heritage .picked { margin-top: 22px; }
.t-heritage .picked-name { display: inline-block; font: italic 500 clamp(36px, 5vw, 46px)/1.2 var(--serif); color: var(--ink-soft); }
.t-heritage .picked-name.is-on { color: var(--narra-deep); }
.t-heritage .checks { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.t-heritage .checks li { display: flex; gap: 14px; align-items: center; background: var(--capiz); border: 1px solid rgba(122, 74, 42, .45); border-radius: 6px; padding: 12px 14px; }
.t-heritage .checks svg { width: 32px; height: 32px; flex: none; padding: 6px; border-radius: 50%; background: var(--green); fill: none; stroke: #FBEFD9; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.t-heritage .checks b { display: block; font-size: 20px; font-weight: 700; line-height: 1.25; }
.t-heritage .checks div > span { font-size: 17px; font-style: italic; color: var(--ink-soft); }
@media (max-width: 900px) { .t-heritage .dress-grid { grid-template-columns: 1fr; max-width: 600px; } }
@media (max-width: 520px) { .t-heritage .dress-card { padding: 24px 16px 26px; } .t-heritage .palette { grid-template-columns: repeat(3, 48px); gap: 22px 28px; } .t-heritage .polaroid { max-width: 240px; } }

/* ═════════════════ NOTES (flip cards) ═════════════════ */
.t-heritage .flip-grid { width: min(1100px, 100%); margin: 42px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.t-heritage .flip { color: var(--narra-deep); transform: rotate(var(--r, 0deg)); transition: transform .45s var(--spring); }
.t-heritage .flip:hover, html.motion .t-heritage .flip[data-rv].in:hover { transform: rotate(0deg) translateY(-6px); }
.t-heritage .face { border: 1.5px solid var(--narra); border-radius: 8px; padding: 30px 24px; min-height: 300px; gap: 12px; box-shadow: var(--card); }
.t-heritage .front { background: var(--grain) var(--c); color: var(--t, var(--narra-deep)); align-items: center; justify-content: center; text-align: center; box-shadow: inset 0 0 0 5px var(--c), inset 0 0 0 6.5px rgba(242, 213, 142, .6), var(--card); }
.t-heritage .back { background: var(--grain) var(--capiz); font-size: 18px; line-height: 1.55; justify-content: center; color: var(--ink-soft); }
.t-heritage .f-icon { width: 66px; height: 66px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.t-heritage .f-title { font: italic 600 36px/1.1 var(--serif); }
.t-heritage .f-hint { font: 400 13px/1 var(--sc); letter-spacing: .1em; border: 1px solid currentColor; border-radius: 999px; padding: 7px 12px 5px; }
.t-heritage .b-title { font: italic 600 30px/1.1 var(--serif); color: var(--narra-deep); margin-bottom: 4px; }
@media (max-width: 900px) { .t-heritage .flip-grid { grid-template-columns: 1fr; max-width: 500px; } .t-heritage .face { min-height: 250px; } }

/* ═════════════════ LIVESTREAM (for family abroad) ═════════════════ */
.t-heritage .live { width: min(980px, 100%); margin: 40px auto 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border: 1.5px solid var(--narra); border-radius: 8px; overflow: hidden; background: var(--capiz); box-shadow: var(--card); text-align: left; }
.t-heritage .live-photo { position: relative; min-height: 300px; }
.t-heritage .live-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-heritage .live-photo > span { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; font: 400 14px/1 var(--sc); letter-spacing: .08em; color: #fff; background: var(--red); border-radius: 999px; padding: 9px 13px 7px; }
.t-heritage .live-photo > span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: heritage-blink 1.4s ease-in-out infinite; }
@keyframes heritage-blink { 50% { opacity: .2; } }
.t-heritage .live-body { padding: 26px 28px 28px; }
.t-heritage .live-body p { color: var(--ink-soft); }
.t-heritage .zones { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.t-heritage .zones div { border-top: 1px dashed rgba(67, 40, 26, .3); padding-top: 8px; }
.t-heritage .zones small { display: block; font: 400 14px/1.2 var(--sc); letter-spacing: .05em; color: var(--terra-deep); }
.t-heritage .zones b { font-size: 18px; }
.t-heritage .live .btn { margin-top: 20px; }
@media (max-width: 760px) { .t-heritage .live { grid-template-columns: 1fr; } .t-heritage .live-photo { min-height: 220px; } }
@media (max-width: 520px) {
  .t-heritage .live-body { padding: 22px 18px 24px; }
  .t-heritage .zones { grid-template-columns: 1fr; gap: 0; }
  .t-heritage .zones div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0 7px; }
  .t-heritage .zones b { font-size: 17px; white-space: nowrap; }
}

/* ═════════════════ ENTOURAGE ═════════════════ */
.t-heritage .tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 30px; padding: 5px; background: var(--capiz); border: 1.5px solid var(--narra); border-radius: 10px; }
.t-heritage .tabs button { appearance: none; border: 0; background: transparent; color: var(--narra-deep); font: 400 15.5px/1.1 var(--sc); letter-spacing: .04em; padding: 12px 14px 10px; border-radius: 7px; cursor: pointer; transition: background-color .25s, color .25s; }
.t-heritage .tabs button:hover { background: var(--pearl-2); }
.t-heritage .tabs button[aria-selected="true"] { background: var(--narra); color: var(--capiz); }
.t-heritage .tab-panels { width: min(980px, 100%); margin: 38px auto 0; }
.t-heritage .people { display: grid; gap: 18px; }
.t-heritage .people--2 { grid-template-columns: 1fr 1fr; }
.t-heritage .people--3 { grid-template-columns: repeat(3, 1fr); }
.t-heritage .people--4 { grid-template-columns: repeat(4, 1fr); }
.t-heritage .person { background: var(--capiz); border: 1.5px solid var(--narra); border-radius: 8px; padding: 22px 16px; box-shadow: inset 0 0 0 4px var(--capiz), inset 0 0 0 5px rgba(201, 160, 78, .45); display: flex; flex-direction: column; gap: 4px; }
.t-heritage .person small { font: 400 14px/1.25 var(--sc); letter-spacing: .05em; color: var(--terra-deep); }
.t-heritage .person b { font: italic 600 clamp(26px, 3vw, 32px)/1.15 var(--serif); }
.t-heritage .person .pair { font-size: 19px; line-height: 1.45; }
.t-heritage .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.t-heritage .col { background: var(--capiz); border: 1.5px solid var(--narra); border-radius: 8px; padding: 24px 20px 26px; box-shadow: inset 0 0 0 4px var(--capiz), inset 0 0 0 5px rgba(201, 160, 78, .45); }
.t-heritage .col-title { font: italic 600 38px/1.1 var(--serif); margin-bottom: 10px; }
.t-heritage .col li { font-size: 19.5px; padding: 7px 0; border-bottom: 1px dashed rgba(67, 40, 26, .22); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.t-heritage .col li:last-child { border-bottom: 0; }
.t-heritage .col li b { font-weight: 700; }
.t-heritage .role { font: 400 13px/1 var(--sc); letter-spacing: .05em; color: #FBEFD9; background: var(--terra-deep); border-radius: 999px; padding: 5px 10px 4px; }
@media (max-width: 860px) { .t-heritage .people--4, .t-heritage .people--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .t-heritage .cols, .t-heritage .people--2 { grid-template-columns: 1fr; } .t-heritage .tabs button { padding: 11px 10px 9px; font-size: 14.5px; } }
@media (max-width: 440px) { .t-heritage .people--4, .t-heritage .people--3 { grid-template-columns: 1fr; } }

/* ═════════════════ RSVP ═════════════════ */
.t-heritage .rsvp { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 54px; padding-inline: max(20px, calc((100% - 1140px) / 2)); text-align: left; }
.t-heritage .rsvp-art { position: relative; justify-self: center; width: min(420px, 100%); }
.t-heritage .rsvp-blob { aspect-ratio: 1; overflow: hidden; border: 7px solid #6C4127; border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; box-shadow: 0 0 0 2px #3E2414, var(--card); animation: wd-morph 10s ease-in-out infinite alternate; transform: rotate(calc(var(--p, 0) * 12deg - 6deg)); }
.t-heritage .rsvp-blob img { width: 100%; height: 100%; object-fit: cover; }
.t-heritage .rsvp-chip { position: absolute; font: italic 600 26px/1 var(--serif); background: var(--capiz); border: 1.5px solid var(--narra); border-radius: 6px; padding: 10px 16px 11px; box-shadow: var(--card); }
.t-heritage .chip-1 { top: 6%; right: -4%; transform: rotate(9deg); animation: wd-bob 3.6s ease-in-out infinite alternate; }
.t-heritage .chip-2 { bottom: 6%; left: -6%; background: var(--terra-deep); color: #FBEFD9; transform: rotate(-7deg); animation: wd-bob 4.4s ease-in-out infinite alternate-reverse; }
.t-heritage .rsvp-copy .kicker { align-items: flex-start; }
.t-heritage .rsvp-copy > p:not(.kicker) { font-size: 20px; max-width: 520px; color: var(--ink-soft); }
.t-heritage .deadline { margin-top: 12px; color: var(--narra-deep) !important; font-weight: 700; }
.t-heritage .rsvp-copy .btn--big { margin-top: 26px; }
.t-heritage .variant-note { margin-top: 24px; max-width: 520px; font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); border: 1px dashed rgba(122, 74, 42, .6); border-radius: 6px; padding: 12px 16px; }
.t-heritage .variant-note a { color: var(--terra-deep); font-weight: 700; }
.t-heritage .variant-note .solo-only { display: none; }
html.is-solo .t-heritage .variant-note .solo-only { display: inline; }
html.is-solo .t-heritage .variant-note .plus-only { display: none; }
@media (max-width: 860px) { .t-heritage .rsvp { grid-template-columns: 1fr; text-align: center; gap: 34px; } .t-heritage .rsvp-copy .kicker { align-items: center; } .t-heritage .rsvp-art { width: min(290px, 74vw); } .t-heritage .rsvp-copy > p, .t-heritage .variant-note { margin-inline: auto; } }

/* ═════════════════ CONTACT ═════════════════ */
.t-heritage .contact-grid { width: min(840px, 100%); margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; perspective: 900px; }
.t-heritage .person-card { background: var(--grain) var(--capiz); border: 1.5px solid var(--narra); border-radius: 8px; box-shadow: inset 0 0 0 5px var(--capiz), inset 0 0 0 6.5px rgba(201, 160, 78, .5), var(--card); padding: 26px 22px 28px; display: flex; flex-direction: column; align-items: center; gap: 13px; transform-style: preserve-3d; }
.t-heritage .pc-name { font: italic 600 52px/1.1 var(--serif); }
.t-heritage .person-card .btn { width: 100%; max-width: 290px; }
@media (max-width: 640px) { .t-heritage .contact-grid { grid-template-columns: 1fr; } }

/* ═════════════════ FOOTER ═════════════════ */
.t-heritage .foot { position: relative; background: var(--narra-deep); color: #F3E7D3; text-align: center; padding: 120px 20px 112px; }
.t-heritage .foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: var(--banig); box-shadow: inset 0 4px 0 #2B190F, inset 0 -4px 0 #2B190F, inset 0 7px 0 var(--green), inset 0 -7px 0 var(--green); }
.t-heritage .foot-photo { width: min(220px, 54vw); aspect-ratio: 1; margin: 0 auto 32px; padding: 7px; border-radius: 50%; background: repeating-conic-gradient(var(--terra) 0 15deg, var(--gold) 15deg 30deg, var(--green) 30deg 45deg); }
.t-heritage .foot-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--narra-deep); }
.t-heritage .foot-line { font-size: 21px; font-style: italic; opacity: .9; }
.t-heritage .foot-love { margin-top: 22px; font: italic 500 34px/1 var(--serif); color: #F2D58E; }
.t-heritage .foot-names { font: italic 500 clamp(72px, 13vw, 170px)/1.1 var(--serif); padding: 0 .1em .12em; background: linear-gradient(90deg, #F2D58E, #E58F62, #F2D58E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-heritage .foot-meta { margin-top: 4px; font: 400 16px/1.4 var(--sc); letter-spacing: .1em; color: #E6D7BF; }
.t-heritage .try-box { width: min(760px, 100%); margin: 60px auto 0; padding: 24px 22px 26px; border: 1px dashed rgba(242, 213, 142, .45); border-radius: 8px; }
.t-heritage .try-box h2 { font: 400 15px/1 var(--sc); letter-spacing: .14em; color: #F2D58E; }
.t-heritage .try-box p { margin-top: 8px; font-size: 17px; opacity: .85; }
.t-heritage .try-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.t-heritage .try-links a { font: 400 15px/1 var(--sc); letter-spacing: .06em; text-decoration: none; color: var(--narra-deep); background: var(--capiz); border-radius: 999px; padding: 12px 16px 10px; transition: background-color .25s; }
.t-heritage .try-links a:hover { background: #F2D58E; }
.t-heritage .disclaimer { max-width: 640px; margin: 30px auto 0; font-size: 15px; line-height: 1.6; color: rgba(243, 231, 211, .72); }
.t-heritage .disclaimer a { color: #F2D58E; }

/* ═════════════════ DIALOGS + TOAST ═════════════════ */
.t-heritage .dlg-card { background: var(--grain) var(--capiz); border: 1.5px solid var(--narra); border-radius: 10px; box-shadow: inset 0 0 0 6px var(--capiz), inset 0 0 0 7.5px rgba(201, 160, 78, .5), 0 40px 80px rgba(30, 18, 10, .4); padding: 46px 28px 28px; text-align: center; color: var(--narra-deep); }
.t-heritage .dlg-close { border: 1.5px solid var(--narra); background: var(--capiz); }
.t-heritage .dlg-close svg { fill: none; stroke: var(--narra-deep); stroke-width: 2; }
.t-heritage .dlg-title { font: italic 600 46px/1.05 var(--serif); }
.t-heritage .dlg-sub { font-size: 17px; font-style: italic; color: var(--ink-soft); margin: 6px 0 20px; }
.t-heritage .rsvp-form { display: flex; flex-direction: column; gap: 16px; }
.t-heritage .field > span, .t-heritage .field > legend { font: 400 15px/1.2 var(--sc); letter-spacing: .06em; color: var(--terra-deep); padding: 0; }
.t-heritage fieldset.field { border: 0; margin: 0; padding: 0; }
.t-heritage .rsvp-form input[type="text"], .t-heritage .rsvp-form textarea { border: 1.5px solid rgba(122, 74, 42, .5); background: #fff; border-radius: 6px; padding: 10px 13px; font-size: 19px; }
.t-heritage .rsvp-form textarea { min-height: 70px; resize: vertical; }
.t-heritage .rsvp-form input[type="text"]:focus, .t-heritage .rsvp-form textarea:focus { outline: none; border-color: var(--terra-deep); box-shadow: 0 0 0 3px rgba(146, 61, 30, .15); }
.t-heritage .choice label > span { display: inline-block; border: 1.5px solid var(--narra); border-radius: 999px; padding: 9px 14px 8px; font-size: 17px; background: #fff; transition: background-color .2s, color .2s; }
.t-heritage .choice input:checked + span { background: var(--narra); color: var(--capiz); }
.t-heritage .choice input:focus-visible + span { outline: 3px solid var(--terra-deep); outline-offset: 2px; }
.t-heritage .form-note { font-size: 15px; font-style: italic; color: var(--ink-soft); }
.t-heritage .rsvp-done:focus { outline: none; }
.t-heritage .rsvp-done p { color: var(--ink-soft); margin-top: 8px; }
.t-heritage .rsvp-done .sample-line { margin: 20px 0 22px; padding: 14px 16px; border-radius: 6px; border: 1px dashed rgba(122, 74, 42, .6); font-size: 17px; color: var(--narra-deep); }
.t-heritage .toast { background: var(--narra-deep); color: #F3E7D3; border-radius: 10px; border: 1px solid var(--gold); font-family: var(--serif); font-size: 17px; }
