/* Tarini palette, taken from the medallion logo */
:root {
  --forest: #0b2a1a;      /* page background */
  --green: #14532d;       /* logo green */
  --green-soft: #1d6b3c;
  --gold: #e3b93f;        /* logo gold */
  --cream: #f8f1d6;       /* logo cream */
  --navy: #1a2a6c;        /* logo lettering */
  --ink: #f8f1d6;
  --muted: #c9d3c4;
  --panel: rgba(9, 34, 21, 0.78);
  --line: rgba(248, 241, 214, 0.22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Marcellus", Georgia, serif;
  --ui: "Manrope", system-ui, sans-serif;
  color-scheme: dark; /* one deliberate dark-green look in both themes */
}
.wa-link { color: inherit; font-weight: 700; text-decoration: underline; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--forest); color: var(--ink); font-family: var(--ui); line-height: 1.55; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 99; background: var(--cream); color: var(--forest); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

#stage { position: fixed; inset: 0; z-index: 0; }
#gl { width: 100%; height: 100%; display: block; }
#vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(4, 18, 11, .82) 100%); }

/* Pills and roll hover */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(10px); transition: border-color .3s, background .3s, color .3s; }
.pill:hover { border-color: var(--gold); }
.pill.gold { background: var(--gold); color: #1c1503; border-color: var(--gold); font-weight: 700; }
.pill.gold:hover { background: var(--cream); border-color: var(--cream); }
.pill.ghost { background: transparent; }
.pill svg, .socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
[data-roll] { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; }
[data-roll] i { display: block; font-style: normal; transition: transform .5s var(--ease); }
.pill:hover [data-roll] i, button:hover > [data-roll] i { transform: translateY(-100%); }

/* Gate */
#gate { position: fixed; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 96px 16px 40px; text-align: center; transition: opacity .9s var(--ease), visibility .9s; }
.gate-kicker, .gate-foot, .count { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.gate-space { flex: 1; }
.gate-hindi { font-size: clamp(18px, 2.6vw, 26px); color: var(--cream); margin-bottom: 22px; }
.gate-foot { margin-top: 26px; color: var(--muted); }
body:not(.at-gate) #gate { opacity: 0; visibility: hidden; pointer-events: none; }

/* Chrome */
#chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; gap: 14px; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; line-height: 1; }
.brand img { border-radius: 50%; }
.brand small { display: block; font-family: var(--ui); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.rail { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pill.phone { text-transform: none; letter-spacing: .02em; font-size: 16px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.at-gate #chrome .brand, .at-gate .socials, .at-gate .socials a, .at-gate #menu-open { opacity: 0; pointer-events: none; }
#chrome .brand, .socials, #menu-open { transition: opacity .8s .3s; }

/* Desk */
#desk { position: fixed; inset: 0; z-index: 4; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.25fr) minmax(160px, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; gap: 12px 24px; padding: 104px 24px 12px; transition: opacity .9s .25s var(--ease), transform 1.1s .25s var(--ease); }
.at-gate #desk { opacity: 0; transform: scale(1.04); pointer-events: none; }
.story { align-self: center; }
h1 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, min(4.2vw, 7.4vh), 64px); line-height: 1.04; letter-spacing: -.02em; margin: 10px 0 12px; }
h1 .ch { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(16px); transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); }
.in h1 .ch { opacity: 1; filter: none; transform: none; }
.tag { color: var(--muted); max-width: 34ch; }
.facts { list-style: none; margin-top: 20px; display: grid; gap: 8px; }
.facts li { padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; max-width: 300px; }
.facts b { display: block; color: var(--cream); }
.facts span { color: var(--muted); }

/* Image placeholders */
.ph { position: relative; border: 1.5px dashed rgba(227, 185, 63, .6); border-radius: 18px; background: repeating-linear-gradient(135deg, rgba(248, 241, 214, .05) 0 14px, rgba(248, 241, 214, .1) 14px 28px); min-height: 150px; display: grid; place-items: center; }
.ph::before { content: attr(data-ph); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); text-align: center; padding: 12px; max-width: 26ch; }
.portrait { align-self: stretch; min-height: 0; }
#caption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 12px; background: var(--panel); font-family: var(--display); font-size: 17px; text-align: center; }

.creed { align-self: center; text-align: right; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.creed ul { list-style: none; border-right: 1px solid var(--gold); padding-right: 12px; display: grid; gap: 4px; }
.creed p { color: var(--muted); margin-top: 16px; padding-right: 13px; }

#hud { grid-column: 1 / -1; width: min(760px, 100%); margin: 0 auto; display: grid; gap: 8px; }
.story { min-height: 0; }
@media (max-height: 800px) and (min-width: 861px) { .paths button { padding: 8px 16px; } .pill { padding: 8px 18px; } .facts li { padding: 7px 12px; } }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paths button { text-align: left; padding: 12px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: border-color .3s, transform .5s var(--ease), background .3s; }
.paths button:hover { border-color: var(--gold); transform: translateY(-3px); background: rgba(20, 83, 45, .85); }
.paths b { display: block; font-weight: 500; font-size: 16px; }
.paths span { font-size: 12px; color: var(--muted); }
.tele { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tele .pill { justify-content: center; }
.ask { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 20px; backdrop-filter: blur(10px); }
.ask:focus-within { border-color: var(--gold); }
.ask input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 8px 0; }
.ask input::placeholder { color: var(--muted); }
.ask button { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #1c1503; display: grid; place-items: center; transition: transform .4s var(--ease); }
.ask button:hover { transform: rotate(45deg); }
.ask svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.floor { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* Sheets */
.sheet { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; padding: 16px; background: rgba(4, 18, 11, .6); backdrop-filter: blur(6px); }
.sheet[hidden], #menu[hidden] { display: none; }
.sheet-card { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cream); color: #10241a; border-radius: 22px; padding: 26px 28px 30px; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.98); filter: blur(8px); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet .count { color: var(--green); }
.sheet .pill.ghost { color: #10241a; border-color: rgba(16, 36, 26, .3); }
.sheet h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 8px 0 14px; color: var(--green); }
.sheet p { margin-bottom: 12px; max-width: 68ch; }
.sheet .fine { font-size: 12px; color: #4b5a50; }
.sheet .ph { border-color: rgba(20, 83, 45, .5); background: repeating-linear-gradient(135deg, rgba(20, 83, 45, .05) 0 14px, rgba(20, 83, 45, .11) 14px 28px); }
.sheet .ph::before { color: var(--green); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(20, 83, 45, .35); font-size: 13px; transition: background .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--green); color: var(--cream); border-color: var(--green); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.ticks { list-style: none; display: grid; gap: 8px; margin-bottom: 14px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--green); font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fields label { display: grid; gap: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.fields input, .fields select { padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(20, 83, 45, .35); background: #fffdf2; color: #10241a; font: inherit; text-transform: none; letter-spacing: 0; }
.sheet .pill.solid { background: var(--green); color: var(--cream); border-color: var(--green); }
.sheet .pill.solid:hover { background: var(--navy); border-color: var(--navy); }
.sheet .pill { background: transparent; color: var(--green); border-color: rgba(20, 83, 45, .4); backdrop-filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.grid3 .ph { aspect-ratio: 9 / 13; min-height: 0; }
.grid3 figcaption { font-size: 13px; margin-top: 6px; color: #10241a; }
.quals { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.quals span { padding: 5px 12px; border-radius: 999px; background: var(--green); color: var(--cream); font-size: 12px; }
address { font-style: normal; margin-bottom: 12px; }

/* Menu */
#menu { position: fixed; inset: 0; z-index: 14; background: var(--green); animation: wipe .6s var(--ease); }
@keyframes wipe { from { clip-path: inset(0 0 100% 100% round 14px); } to { clip-path: inset(0 round 0); } }
.menu-inner { height: 100%; overflow: auto; padding: 22px 24px 40px; display: flex; flex-direction: column; }
.menu-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 22px; }
.menu-cols { margin: auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 30px 0; }
.menu-cols section { display: grid; gap: 4px; align-content: start; overflow: hidden; }
.menu-cols button, .menu-cols a { text-align: left; font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.8vw, 38px); line-height: 1.25; text-decoration: none; animation: up .7s var(--ease) backwards; transition: color .3s, transform .4s var(--ease); }
.menu-cols button:hover, .menu-cols a:hover { color: var(--gold); transform: translateX(8px); }
.menu-cols :nth-child(2) { animation-delay: .08s; } .menu-cols :nth-child(3) { animation-delay: .13s; } .menu-cols :nth-child(4) { animation-delay: .18s; } .menu-cols :nth-child(5) { animation-delay: .23s; } .menu-cols :nth-child(6) { animation-delay: .28s; }
@keyframes up { from { transform: translateY(115%); opacity: 0; } }

@media (max-width: 860px) {
  body { overflow: auto; }
  #chrome { padding: 12px 16px; flex-wrap: wrap; }
  .brand { font-size: 26px; gap: 12px; }
  .brand img { width: 58px; height: 58px; }
  .brand small { font-size: 12px; margin-top: 6px; }
  #menu-open { padding: 14px 24px; font-size: 15px; }
  .rail svg { width: 23px; height: 23px; }
  /* Header: logo left, Menu right; second row is five equal buttons across the full width */
  #menu-open { margin-left: auto; }
  .pill.phone span { display: none; }
  .rail { margin-left: 0; width: 100%; flex-direction: row; align-items: stretch; gap: 8px; }
  .socials { display: contents; }
  .at-gate .rail { display: none; }
  .pill.phone, .socials a { flex: 1; width: auto; height: 52px; border-radius: 999px; padding: 0; justify-content: center; }
  #desk { position: relative; grid-template-columns: 1fr; padding: 170px 16px 16px; min-height: 100%; }
  .at-gate #desk { display: none; }
  .portrait { min-height: 300px; }
  .creed { display: none; }
  .floor { flex-direction: column; align-items: center; text-align: center; }
  .split, .fields, .menu-cols { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .sheet-card { padding: 20px 16px 24px; }
}
/* Short screens (phone held sideways): keep only the kicker and the button around the coin */
@media (max-height: 519px) {
  #gate { padding: 34px 16px 18px; }
  .gate-hindi, .gate-foot { display: none; }
  body { overflow: auto; }
  #desk { position: relative; min-height: 100%; grid-template-rows: auto auto auto; }
  .at-gate #desk { display: none; }
  .portrait { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .ch { opacity: 1; filter: none; transform: none; }
}
