:root {
  --paper: #FBF5EA;
  --paper-2: #F4EAD7;
  --ink: #1C2620;
  --ink-soft: #4A564E;
  --green: #1E5B3E;
  --green-deep: #133D2A;
  --marigold: #F2A93B;
  --marigold-deep: #D9861A;
  --vermilion: #D9412B;
  --pink: #E0559A;
  --sea: #2C6E8C;
  --sea-pale: #CFE3EA;
  --line: rgba(28, 38, 32, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --radius: 22px;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
p { margin: 0 0 1em; }

/* ---------- Toran (festive garland) ---------- */
.toran {
  height: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='46' viewBox='0 0 80 46'%3E%3Cpath d='M0 5 Q20 12 40 5 T80 5' fill='none' stroke='%23A0652A' stroke-width='1.5'/%3E%3Cpath d='M20 9 C13 18 14 32 20 40 C26 32 27 18 20 9 Z' fill='%232E7D4F'/%3E%3Cpath d='M20 11 L20 38' stroke='%23195234' stroke-width='1'/%3E%3Cg transform='translate(60 16)'%3E%3Ccircle r='10' fill='%23F2A93B'/%3E%3Ccircle r='7' fill='%23E8901F'/%3E%3Ccircle r='3.5' fill='%23D9741A'/%3E%3C/g%3E%3Cline x1='60' y1='5' x2='60' y2='6' stroke='%23A0652A'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 80px 46px;
  position: relative;
  z-index: 3;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(251, 245, 234, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  font-family: var(--serif); font-weight: 800; font-size: 26px; text-decoration: none; color: var(--green);
  letter-spacing: -.02em;
}
.nav__logo span { color: var(--marigold-deep); font-style: italic; font-weight: 600; }
.nav__links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; }
.nav__links a { text-decoration: none; color: var(--ink-soft); position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--marigold);
  transition: right .3s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vermilion); margin-bottom: 14px;
}
.eyebrow--light { color: var(--marigold); }
.h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.04;
  letter-spacing: -.025em; margin: 0 0 22px; font-variation-settings: "opsz" 144;
}
.handwritten { font-family: var(--hand); font-size: 30px; color: var(--green); line-height: 1.2; transform: rotate(-2deg); display: inline-block; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head__sub { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s;
  user-select: none; -webkit-user-select: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--paper); box-shadow: 0 6px 0 var(--green-deep); }
.btn--primary:hover { box-shadow: 0 8px 0 var(--green-deep); }
.btn--ghost { border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--marigold { background: var(--marigold); color: var(--ink); box-shadow: 0 6px 0 var(--marigold-deep); font-size: 17px; padding: 18px 32px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(24px, 5vh, 64px) var(--gutter) clamp(56px, 8vw, 110px);
  max-width: 1320px; margin: 0 auto;
}
.hero__title { margin: 0 0 26px; font-family: var(--serif); font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.hero__name {
  display: block; font-size: clamp(72px, min(14vw, 17vh), 180px); color: var(--green);
  font-variation-settings: "opsz" 144;
  animation: rise 1s cubic-bezier(.2,.8,.2,1) both;
}
.hero__turns {
  display: block; font-size: clamp(34px, 5vw, 62px); font-weight: 400; letter-spacing: -.02em; margin-top: 12px;
  animation: rise 1s .15s cubic-bezier(.2,.8,.2,1) both;
}
.hero__turns em { font-style: italic; color: var(--vermilion); font-weight: 600; }
.hero__lede { font-size: clamp(17px, 1.5vw, 20px); max-width: 540px; color: var(--ink-soft); animation: rise 1s .3s both; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; animation: rise 1s .45s both; }

.hero__art { position: relative; justify-self: center; width: min(100%, 460px, calc((100svh - 190px) * .78)); animation: rise 1.1s .2s both; }
.arch {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden;
  border: 10px solid var(--paper); box-shadow: 0 0 0 2px var(--green), 0 30px 60px -20px rgba(19, 61, 42, .45);
  background: var(--paper-2);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 30%; }
.polaroid--hero {
  position: absolute; left: -16%; bottom: -8%; width: 46%; transform: rotate(-8deg);
  animation: wobble 6s ease-in-out infinite;
}
.stamp { position: absolute; right: -8%; top: -6%; width: 34%; animation: spin 26s linear infinite; }
.stamp__bg { fill: var(--marigold); }
.stamp__text { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .12em; fill: var(--ink); }
.stamp__num { font-family: var(--serif); font-weight: 800; font-size: 58px; fill: var(--green); }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wobble { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(-4deg) translateY(-6px); } }

/* ---------- Polaroid ---------- */
.polaroid {
  margin: 0; background: #fff; padding: 10px 10px 0; border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 34px -14px rgba(0,0,0,.35);
}
.polaroid img { aspect-ratio: 1; object-fit: cover; object-position: 50% 8%; width: 100%; border-radius: 2px; }
.polaroid figcaption { font-family: var(--hand); font-size: 22px; text-align: center; padding: 6px 4px 10px; line-height: 1.15; color: var(--ink); }

/* ---------- Marquee ---------- */
.marquee { background: var(--green); color: var(--paper); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -10px; }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); font-style: italic; white-space: nowrap; }
.marquee__track span:nth-child(even) { color: var(--marigold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: 1240px; margin: 0 auto;
}
.intro__photo { position: relative; }
.intro__photo img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -28px rgba(0,0,0,.4); }
.tag { position: absolute; top: 22px; right: -18px; padding: 8px 16px; border-radius: 999px; font-family: var(--hand); font-size: 24px; transform: rotate(6deg); }
.tag--marigold { background: var(--marigold); }
.intro__text > p:not(.eyebrow) { color: var(--ink-soft); font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px; text-align: center; }
.stat dt { font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 4vw, 46px); line-height: 1; color: var(--green); }
.stat dd { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
.stat:nth-child(2) dt { color: var(--vermilion); }
.stat:nth-child(3) dt { color: var(--marigold-deep); }
.stat:nth-child(4) dt { color: var(--sea); }

/* ---------- Timeline ---------- */
.timeline {
  background: var(--green-deep); color: var(--paper);
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  position: relative; overflow: hidden;
}
.timeline::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--paper) 1.2px, transparent 0);
  background-size: 26px 26px;
}
.timeline .section-head__sub { color: rgba(251,245,234,.7); }
.tl { max-width: 1080px; margin: 0 auto; position: relative; }
.tl__rail {
  position: relative; display: flex; justify-content: space-between; padding: 12px 10px 28px;
  overflow-x: auto; scrollbar-width: none; gap: 8px;
}
.tl__rail::-webkit-scrollbar { display: none; }
.tl__line { position: absolute; left: 40px; right: 40px; top: 37px; height: 4px; background: rgba(251,245,234,.18); border-radius: 4px; }
.tl__fill { height: 100%; width: 0; background: var(--marigold); border-radius: 4px; transition: width .6s cubic-bezier(.6,0,.2,1); }
.tl__stop {
  position: relative; z-index: 1; flex: 0 0 auto; width: 92px; background: none; border: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(251,245,234,.6);
}
.tl__dot {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-deep); border: 3px solid rgba(251,245,234,.3);
  font-size: 22px; transition: all .35s cubic-bezier(.3,1.5,.5,1);
}
.tl__stop small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.25; }
.tl__stop.is-done .tl__dot { border-color: var(--marigold); }
.tl__stop.is-active { color: var(--paper); }
.tl__stop.is-active .tl__dot { background: var(--marigold); border-color: var(--marigold); transform: scale(1.18); box-shadow: 0 0 0 8px rgba(242,169,59,.2); }
.tl__stop:hover .tl__dot { border-color: var(--marigold); }

.tl__stage { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 18px; }
.tl__arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(251,245,234,.35); background: transparent; color: var(--paper);
  font-size: 22px; transition: all .2s;
}
.tl__arrow:hover { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.tl__arrow:disabled { opacity: .25; pointer-events: none; }
.tl__card {
  background: var(--paper); color: var(--ink); border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.15fr; min-height: 380px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
  touch-action: pan-y;
}
.tl__card.is-swapping .tl__body, .tl__card.is-swapping .tl__art > * { opacity: 0; transform: translateY(14px); }
.tl__body, .tl__art > * { transition: opacity .35s ease, transform .35s ease; }
.tl__art { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--marigold); }
.tl__art svg { width: 70%; max-width: 260px; height: auto; }
.tl__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); }
.tl__body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.tl__era { font-family: var(--hand); font-size: 28px; color: var(--vermilion); margin: 0 0 4px; line-height: 1; }
.tl__title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 16px; }
.tl__text { color: var(--ink-soft); }
.tl__secret {
  align-self: flex-start; background: none; border: 0; padding: 0; font-weight: 700; font-size: 14px; color: var(--green);
  border-bottom: 2px dotted var(--green);
}
.tl__secret-text { margin: 14px 0 0; padding: 14px 18px; background: var(--paper-2); border-radius: 14px; font-size: 15px; animation: rise .4s both; }
.tl__count { text-align: center; margin: 22px 0 0; font-size: 14px; color: rgba(251,245,234,.6); letter-spacing: .08em; }

/* ---------- Champion / game ---------- */
.champion {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: 1280px; margin: 0 auto;
}
.champion__text > p:not(.eyebrow):not(.handwritten) { color: var(--ink-soft); font-size: 18px; }
.game { background: #fff; border-radius: 28px; padding: 24px; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(0,0,0,.35); }
.game__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.game__head h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.game__best { margin: 0; font-size: 14px; color: var(--ink-soft); }
.game__best strong { color: var(--vermilion); font-size: 18px; }
.game__field { width: 100%; height: auto; border-radius: 16px; display: block; }
.field__sky { fill: #FCEFD6; }
.field__grass { fill: #5E9E5A; }
.field__marks line { stroke: rgba(255,255,255,.75); stroke-width: 2; }
.field__marks text { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: #fff; }
.field__circle { fill: #C9BBA0; stroke: #fff; stroke-width: 2; }
.fig { fill: var(--green); }
.fig-line { stroke: var(--green); stroke-width: 5; stroke-linecap: round; }
.arm { transform-origin: 40px 153px; transition: transform .15s; }
.game.is-charging .arm { transform: rotate(40deg); }
.field__ball { fill: #3B3B3B; }
.flag-pole { stroke: var(--ink); stroke-width: 2; }
.flag-cloth { fill: var(--vermilion); }
.flag-text { font-family: var(--serif); font-weight: 800; font-size: 16px; fill: var(--ink); }
.best-pole { stroke: var(--marigold-deep); stroke-width: 2; stroke-dasharray: 3 3; }
.best-text { font-family: var(--hand); font-size: 16px; fill: var(--marigold-deep); }
.game__power { height: 14px; background: var(--paper-2); border-radius: 999px; margin: 16px 0; overflow: hidden; }
.game__power-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--marigold), var(--vermilion)); border-radius: 999px; }
.game__controls { display: flex; justify-content: center; }
.game__btn { width: 100%; touch-action: none; }
.game.is-charging .game__btn { background: var(--vermilion); box-shadow: 0 3px 0 #9E2B1B; transform: translateY(3px); }
.game__msg { text-align: center; margin: 16px 0 0; font-weight: 600; min-height: 1.6em; }

/* ---------- Cochin ---------- */
.cochin {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  background: var(--sea-pale);
}
.cochin > * { max-width: 620px; }
.cochin__map { justify-self: end; width: 100%; max-width: 420px; position: sticky; top: 100px; align-self: start; }
.map { width: 100%; height: auto; border-radius: 28px; display: block; box-shadow: 0 30px 60px -30px rgba(20,60,80,.5); }
.map__sea { fill: #8EC1D3; }
.wave { stroke: #fff; stroke-width: 1.4; }
.map__land { fill: var(--paper); }
.map__route { fill: none; stroke: var(--vermilion); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 9; }
.map__place text { font-family: var(--serif); font-weight: 800; font-size: 22px; fill: var(--ink); }
.map__place--small text { font-family: var(--sans); font-weight: 600; font-size: 13px; fill: var(--ink-soft); }
.map__place--small circle { fill: var(--ink-soft); }
.dot--start { fill: var(--green); stroke: #fff; stroke-width: 3; }
.dot--end { fill: var(--vermilion); stroke: #fff; stroke-width: 3; }
.map__sea-label { font-family: var(--serif); font-style: italic; font-size: 22px; fill: #fff; opacity: .9; transform: rotate(-80deg); transform-box: fill-box; transform-origin: center; }
.ship__hull { fill: var(--ink); }
.ship__mast { stroke: var(--ink); stroke-width: 2; }
.ship__sail { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.map__compass circle { fill: rgba(255,255,255,.4); stroke: #fff; stroke-width: 2; }
.map__compass path { fill: #fff; }
.map__compass text { font-family: var(--sans); font-weight: 700; font-size: 12px; fill: #fff; }
.map__note { font-family: var(--hand); font-size: 22px; text-align: center; margin-top: 12px; color: var(--sea); }
.cochin__text > p:not(.eyebrow) { font-size: 18px; color: var(--ink-soft); }
.cochin__text strong { color: var(--ink); }
.captain { display: flex; gap: 18px; align-items: center; margin-top: 30px; padding: 20px 24px; background: #fff; border-radius: 20px; border: 1px solid rgba(44,110,140,.2); }
.captain__badge { display: none; }
.captain__avatar { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; overflow: hidden; border: 3px solid var(--sea); }
.captain__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 26% 22%; transform: scale(2.1); transform-origin: 26% 26%; }
.couple { margin: 30px 0 0; background: #fff; padding: 12px 12px 0; border-radius: 6px; transform: rotate(-1.5deg); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 40px -18px rgba(20,60,80,.45); }
.couple img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.couple figcaption { font-family: var(--hand); font-size: 24px; text-align: center; padding: 8px 0 12px; }
.captain__label { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0; }
.captain__role { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Family ---------- */
.family { padding: clamp(72px, 10vw, 130px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.gens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.gen {
  background: #fff; border: 2px solid var(--line); border-radius: 26px; padding: 24px 18px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.gen:hover, .gen.is-active { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 24px 40px -24px rgba(19,61,42,.5); }
.gen__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.gen__dots { min-height: 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.gen__me { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 4px solid var(--marigold); }
.gen__me img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.6); transform-origin: 50% 20%; }
.dotp {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--paper); font-family: var(--serif); font-weight: 800; font-size: 18px;
  transition: transform .4s cubic-bezier(.3,1.6,.5,1) calc(var(--i) * 60ms);
}
.dotp:nth-child(1) { background: var(--sea); }
.dotp:nth-child(2) { background: var(--vermilion); }
.gen--2:hover .dotp, .gen--2.is-active .dotp { transform: translateY(-6px) rotate(-6deg); }
.gen__dots--cloud { max-width: 170px; gap: 6px; }
.gen__dots--cloud i { width: 18px; height: 18px; border-radius: 50%; background: var(--marigold); display: block; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.gen__dots--cloud i:nth-child(3n) { background: var(--pink); }
.gen__dots--cloud i:nth-child(4n) { background: var(--green); }
.gen__dots--cloud i:nth-child(5n) { background: var(--sea); }
.gen--3:hover i, .gen--3.is-active i { transform: scale(1.25); }
.baby { width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: 15px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,85,154,.45); } 50% { box-shadow: 0 0 0 16px rgba(224,85,154,0); } }
.gen__name { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.15; }
.gens__info {
  max-width: 640px; margin: 34px auto 0; text-align: center; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic; line-height: 1.35; min-height: 3em; color: var(--green);
}

/* ---------- Gallery ---------- */
.gallery { padding: clamp(72px, 10vw, 130px) var(--gutter); background: var(--paper-2); overflow: hidden; }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 36px); max-width: 1180px; margin: 0 auto; }
.wall .polaroid { transform: rotate(var(--r)); cursor: zoom-in; transition: transform .35s cubic-bezier(.3,1.4,.5,1), box-shadow .35s; }
.wall .polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; box-shadow: 0 30px 50px -20px rgba(0,0,0,.45); }
.wall .polaroid:nth-child(even) { margin-top: 28px; }

/* ---------- Quiz ---------- */
.quiz { background: var(--green); color: var(--paper); padding: clamp(72px, 10vw, 130px) var(--gutter); }
.quiz .section-head__sub { color: rgba(251,245,234,.75); }
.quiz__card { max-width: 680px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.quiz__progress { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.quiz__bar { height: 100%; width: 0; background: var(--marigold); transition: width .4s; }
.quiz__step { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.quiz__q { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 22px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt {
  text-align: left; padding: 15px 20px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s;
}
.quiz__opt:hover:not(:disabled) { border-color: var(--green); transform: translateX(4px); }
.quiz__opt.is-right { background: #DFF0E3; border-color: var(--green); }
.quiz__opt.is-wrong { background: #FBE1DC; border-color: var(--vermilion); animation: shake .4s; }
.quiz__opt:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz__feedback { margin: 18px 0 0; font-weight: 600; min-height: 1.6em; }
.quiz__next { margin-top: 8px; }
.quiz__result { text-align: center; }
.quiz__score { font-family: var(--serif); font-weight: 800; font-size: 96px; line-height: 1; color: var(--green); margin: 0; }
.quiz__score span { font-size: 40px; color: var(--ink-soft); }

/* ---------- Ask cards ---------- */
.ask { padding: clamp(72px, 10vw, 130px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flip { background: none; border: 0; padding: 0; perspective: 1000px; height: 200px; }
.flip__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.4,1.4,.5,1); }
.flip.is-flipped .flip__in { transform: rotateY(180deg); }
.flip__front, .flip__back {
  position: absolute; inset: 0; border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; place-items: center; padding: 24px; text-align: center;
}
.flip__front { background: var(--marigold); font-family: var(--serif); font-weight: 800; font-size: 64px; color: var(--ink);
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35) 0 18%, transparent 19%); }
.flip:nth-child(3n+2) .flip__front { background-color: var(--pink); color: #fff; }
.flip:nth-child(3n) .flip__front { background-color: var(--sea); color: #fff; }
.flip__front::after { content: "tap me"; position: absolute; bottom: 16px; font-family: var(--hand); font-size: 20px; font-weight: 500; opacity: .8; }
.flip__back { background: #fff; border: 2px solid var(--ink); transform: rotateY(180deg); font-family: var(--serif); font-size: 22px; line-height: 1.3; }

/* ---------- Party ---------- */
.party { padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(72px, 10vw, 130px); }
.party__card {
  max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
  background: #fff; border-radius: 32px; border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--marigold);
}
.party__info { padding: clamp(28px, 4vw, 56px); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 26px; }
.countdown div { background: var(--green); color: var(--paper); border-radius: 16px; padding: 14px 6px 10px; text-align: center; }
.countdown span { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--marigold); }
.countdown__done { font-family: var(--hand); font-size: 32px; color: var(--vermilion); line-height: 1.2; }
.party__facts { margin: 0 0 28px; display: grid; gap: 0; }
.party__facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.party__facts div:last-child { border-bottom: 1px solid var(--line); }
.party__facts dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
.party__facts dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; }
.party__note { display: block; font-family: var(--hand); font-weight: 500; font-size: 21px; color: var(--sea); margin-top: 4px; }
.party__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.party__map { min-height: 360px; background: var(--sea-pale); border-left: 2px solid var(--ink); }
.party__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.nav__links a.nav__cta { color: var(--vermilion); }
@media (max-width: 860px) {
  .party__card { grid-template-columns: 1fr; box-shadow: 8px 8px 0 var(--marigold); }
  .party__map { border-left: 0; border-top: 2px solid var(--ink); }
}

/* ---------- Closer ---------- */
.closer { background: var(--vermilion); color: var(--paper); padding: clamp(80px, 12vw, 160px) var(--gutter); text-align: center; position: relative; overflow: hidden; }
.closer::before, .closer::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(242,169,59,.25);
}
.closer::before { left: -180px; top: -180px; }
.closer::after { right: -200px; bottom: -220px; }
.closer__inner { position: relative; max-width: 760px; margin: 0 auto; }
.closer__title { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 7vw, 88px); line-height: 1; letter-spacing: -.03em; margin: 0 0 24px; }
.closer__title em { color: var(--marigold); }
.closer p { font-size: 19px; opacity: .92; margin-bottom: 34px; }
.closer .eyebrow { opacity: 1; }

.footer { background: var(--ink); color: rgba(251,245,234,.7); text-align: center; padding: 28px var(--gutter); font-size: 14px; }
.footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,26,22,.92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: min(92vw, 900px); width: auto; border-radius: 10px; border: 8px solid #fff; animation: rise .35s both; }
.lightbox__cap { color: var(--paper); font-family: var(--hand); font-size: 28px; margin: 14px 0 0; text-align: center; }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100%; height: 100%; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero, .intro, .champion, .cochin { grid-template-columns: 1fr; }
  .hero { gap: 0; padding-top: 28px; }
  .hero__text { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero__title { order: 2; margin-bottom: 28px; }
  .hero__art { order: 3; width: min(80%, 400px); margin: 4px auto 44px; justify-self: center; }
  .hero__lede { order: 4; }
  .hero__ctas { order: 5; margin-top: 18px; }
  .intro__photo .tag { top: auto; bottom: 22px; right: 14px; transform: rotate(-4deg); }
  .cochin__map { justify-self: center; position: static; }
  .cochin > * { max-width: 680px; margin: 0 auto; }
  .intro__photo { max-width: 420px; margin: 0 auto; width: 100%; }
  .gens { grid-template-columns: repeat(2, 1fr); }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tl__card { grid-template-columns: 1fr; }
  .tl__art { min-height: 220px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tl__stage { grid-template-columns: 1fr; }
  .tl__arrow { display: none; }
  .tl__rail { justify-content: flex-start; }
  .tl__line { left: 46px; right: auto; width: calc(8 * 100px - 92px); }
  .gens { grid-template-columns: 1fr; }
  .gen { flex-direction: row; text-align: left; padding: 18px; }
  .gen__label { display: none; }
  .gen__dots { min-height: 0; flex: 0 0 150px; }
  .gen__me { width: 80px; height: 80px; }
  .dotp { width: 34px; height: 34px; font-size: 15px; }
  .gen__dots--cloud { max-width: 150px; }
  .cards { grid-template-columns: 1fr; }
  .flip { height: 170px; }
  .tag { right: 10px; }
  .polaroid--hero { left: -10%; }
  .stamp { right: -6%; }
  .wall .polaroid:nth-child(even) { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: 0 0; }
}
