/* Jallikattu Veeran website: a copy of the approved design design/web/c1-vilayo-cream.png (cream watercolour, owner
   2026-11-26: "go with C1 exactly; no Free/Pro section; features before the venues"). Hand-written, no build step.
   Art: art-src/web-c1/gen.sh (gpt-image), cut by Tools/web/c1_art.py. Motion: transform and opacity only, off for reduced motion. */
@font-face { font-family: "Baloo Thambi 2"; font-weight: 400 800; font-display: swap; src: url(fonts/baloo-thambi-2-tamil-2.woff2) format("woff2"); unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Baloo Thambi 2"; font-weight: 400 800; font-display: swap; src: url(fonts/baloo-thambi-2-latin-3.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212; }
@font-face { font-family: "Mukta Malar"; font-weight: 400; font-display: swap; src: url(fonts/mukta-malar-tamil-10.woff2) format("woff2"); unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Mukta Malar"; font-weight: 400; font-display: swap; src: url(fonts/mukta-malar-latin-11.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212; }
@font-face { font-family: "Mukta Malar"; font-weight: 700; font-display: swap; src: url(fonts/mukta-malar-tamil-14.woff2) format("woff2"); unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+20B9, U+25CC; }
@font-face { font-family: "Mukta Malar"; font-weight: 700; font-display: swap; src: url(fonts/mukta-malar-latin-15.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212; }

:root {
  --cream: #fbf3e2; --cream-lo: #f3e4c4; --maroon: #7a1020; --maroon-lo: #5a0a16; --gold: #e3a52a; --gold-hi: #f4c95d; --ink: #3a2416; --muted: #6d5541;
  --serif: "Rozha One", "Baloo Thambi 2", Georgia, serif; --body: "Mukta Malar", "Noto Sans Tamil", system-ui, sans-serif; --script: "Kaushan Script", cursive;
  --page: 1180px; --ease: cubic-bezier(.2, .8, .2, 1);
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath fill='%23e3a52a' d='M2 12 Q14 2 26 8 L38 12 L26 16 Q14 22 2 12Z M10 12 Q18 7 26 12 Q18 17 10 12Z' fill-rule='evenodd'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--cream); }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.45; color: var(--ink); overflow-x: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, #fff8ea, transparent 70%), var(--cream); }
img, video { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
section[id], .foot { scroll-margin-top: 80px; }

/* ---------- navigation: the Tamil title left, links and the language pill right ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; max-width: var(--page); margin: 0 auto; padding: 8px 24px;
  background: rgba(251, 243, 226, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { margin-right: auto; display: block; }
.brand img { height: 56px; width: auto; transition: transform .3s var(--ease); }
.brand:hover img { transform: rotate(-2deg) scale(1.04); }
.menu { display: flex; gap: 30px; font-weight: 700; font-size: 15px; color: var(--maroon-lo); }
.menu a { position: relative; text-decoration: none; padding: 6px 2px; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.menu a:hover::after, .menu a.on::after { transform: scaleX(1); }
.lang { display: flex; border-radius: 999px; overflow: hidden; background: var(--maroon); font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(90, 10, 22, .25); }
.lang a { padding: 6px 14px; text-decoration: none; color: #fff; }
.lang a[aria-current] { background: var(--gold-hi); color: var(--maroon-lo); border-radius: 999px; }
.burger { display: none; width: 46px; height: 46px; background: none; border: 0; cursor: pointer; padding: 11px 10px; }
.burger span { display: block; height: 3px; margin: 5px 0; background: var(--maroon); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: 8px; max-width: 1280px; margin: 0 auto; padding: 0 24px 10px; }
.hero-art { position: relative; }
.hero-art .bull { width: 100%; animation: rise 1s var(--ease) both; }
.phone { position: absolute; right: 2%; bottom: 7%; width: 44%; aspect-ratio: 16 / 9; border: 7px solid #17110d; border-radius: 22px; overflow: hidden; background: #17110d;
  transform: rotate(-6deg); box-shadow: 0 18px 34px rgba(40, 20, 5, .45), inset 0 0 0 1px #3b2f26; animation: phone 1.1s .25s var(--ease) both; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.hero-words { text-align: center; animation: rise .9s .15s var(--ease) both; }
h1 { font-family: var(--serif); font-weight: 400; color: var(--maroon); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; }
h1 > span { display: block; }
.h1-2 { display: flex !important; align-items: center; justify-content: center; gap: 10px; }
.leaf { display: inline-block; width: 34px; height: 20px; flex: none; background: var(--leaf) center / contain no-repeat; }
.leaf.flip { transform: scaleX(-1); }
.swash { display: block; width: 90px; height: 12px; margin: 10px auto 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 12'%3E%3Cpath d='M2 8 Q24 0 45 6 Q66 12 88 4' fill='none' stroke='%23e3a52a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.lead { font-weight: 700; font-size: 19px; color: var(--ink); }
.sub { font-size: 18px; color: var(--muted); max-width: 300px; margin: 4px auto 22px; }
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; text-align: left;
  border: 1px solid #555; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); transition: transform .25s var(--ease), box-shadow .25s; }
.badge:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(0, 0, 0, .3); }
.badge:active { transform: translateY(0) scale(.97); }
.badge svg { width: 32px; height: 32px; color: #3ddc84; }
.badge-words small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.badge-words b { display: block; font-size: 24px; line-height: 1.05; font-weight: 700; }
.btn { display: inline-block; margin-top: 16px; padding: 10px 24px; border-radius: 999px; background: var(--maroon); color: #fff; font-weight: 700; text-decoration: none; transition: transform .25s var(--ease); }   /* privacy, support, 404 */
.btn:hover { transform: translateY(-2px); }
.btn { display: inline-block; margin-top: 16px; padding: 10px 24px; border-radius: 999px; background: var(--maroon); color: #fff; font-weight: 700; text-decoration: none; transition: transform .25s var(--ease); }   /* privacy, support, 404 */
.btn:hover { transform: translateY(-2px); }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- the gold rule with a diamond ---------- */
.rule { position: relative; max-width: 1060px; height: 1px; margin: 12px auto 6px; background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
.rule i { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }

/* ---------- sections ---------- */
.sec { max-width: var(--page); margin: 0 auto; padding: 26px 24px 18px; }
.title { display: flex; align-items: center; justify-content: center; gap: 14px; font-family: var(--serif); font-weight: 400; color: var(--maroon); font-size: clamp(30px, 3.3vw, 42px); line-height: 1.1; text-align: center; }
.intro { text-align: center; color: var(--muted); font-size: 17px; margin: 6px 0 22px; }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); gap: 28px; } .g6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card { text-align: center; cursor: pointer; outline-offset: 6px; }
.media { position: relative; transition: transform .45s var(--ease); }
.media img { width: 100%; filter: drop-shadow(0 6px 10px rgba(110, 70, 20, .12)); }
.media video { position: absolute; left: 9%; right: 9%; top: 12%; width: 82%; height: 72%; object-fit: cover; border-radius: 14px; opacity: 0; transform: scale(.94);
  transition: opacity .35s, transform .45s var(--ease); box-shadow: 0 10px 24px rgba(40, 20, 5, .35); pointer-events: none; }
.card:hover .media, .card:focus-visible .media { transform: translateY(-6px); }
.card.playing video { opacity: 1; transform: none; }
.ribbon { position: relative; z-index: 1; display: inline-block; margin-top: -18px; padding: 6px 26px 7px; font-family: var(--serif); font-weight: 400; font-size: 19px; color: #fff; line-height: 1.2;
  background: linear-gradient(var(--maroon), var(--maroon-lo)); clip-path: polygon(0 8%, 6% 0, 50% 6%, 94% 0, 100% 10%, 96% 50%, 100% 92%, 93% 100%, 50% 94%, 6% 100%, 0 90%, 4% 50%);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.arena .ribbon { font-size: 15px; padding: 5px 16px 6px; margin-top: -14px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.arena p { font-size: 13px; margin-top: 6px; }
.care p { max-width: 190px; margin-left: auto; margin-right: auto; }

/* ---------- questions ---------- */
.faq { max-width: 720px; margin: 18px auto 0; display: grid; gap: 10px; }
.qa { background: #fffaf0; border: 1px solid var(--cream-lo); border-radius: 12px; box-shadow: 0 2px 8px rgba(110, 70, 20, .07); transition: box-shadow .3s; }
.qa[open] { box-shadow: 0 8px 20px rgba(110, 70, 20, .12); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; font-weight: 700; color: var(--maroon-lo); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-lo); color: var(--maroon); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 18px 14px; color: var(--muted); }

/* ---------- footer: the village under the sign ---------- */
.foot { position: relative; margin-top: 30px; text-align: center; padding-top: 10px; }
.sign { display: flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--script); color: var(--maroon); font-size: clamp(30px, 3vw, 40px); }
.motto { color: var(--ink); font-size: 16px; margin-top: 2px; }
.foot-links { display: flex; justify-content: center; gap: 24px; margin: 14px 0 6px; font-weight: 700; color: var(--maroon-lo); }
.foot .small { font-size: 13px; color: var(--muted); }
.village { width: 100%; max-width: 1600px; margin: -40px auto 0; pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 26px; border-radius: 999px;
  background: var(--maroon-lo); color: var(--gold-hi); border: 2px solid var(--gold); font-weight: 700; font-size: 17px; transition: transform .35s var(--ease), opacity .3s; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes phone { from { opacity: 0; transform: rotate(-14deg) translate(30px, 40px); } }

/* ---------- Tamil ---------- */
html[lang="ta"] h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.25; }
html[lang="ta"] .title { font-size: clamp(26px, 2.8vw, 36px); }
html[lang="ta"] .ribbon { font-size: 16px; } html[lang="ta"] .arena .ribbon { font-size: 13px; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1000px) {
  .g6 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav { gap: 12px; padding: 6px 16px; }
  .brand img { height: 46px; }
  .burger { display: block; order: 3; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 6px 18px 14px; background: var(--cream); font-size: 18px;
    box-shadow: 0 16px 26px rgba(90, 60, 20, .18); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s; }
  .menu.open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s; }
  .menu a { padding: 13px 4px; border-bottom: 1px solid var(--cream-lo); }
  .hero { grid-template-columns: 1fr; padding: 0 16px; }
  .hero-words { order: -1; padding-top: 18px; }
  .sec { padding: 22px 16px 12px; }
  .g3 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .g6 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .g4 { gap: 18px; }
  .leaf { width: 26px; height: 16px; }
  .village { margin-top: -16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
