/* Sevenwell — shared system for every page.
   One glass material, one grid, one nav. Each division only changes its accent:
   Engineering = teal, Games = terracotta. */

:root {
  --ink: #17110e;
  --smoke: #241a15;
  --cream: #f3e6cf;
  --sand: #d9c3a0;
  --muted: rgba(243, 230, 207, 0.68);
  --bronze: #b98b57;
  --terracotta: #c8643b;
  --teal: #3f9b94;
  --accent: var(--terracotta);

  --glass: rgba(255, 244, 228, 0.07);
  --glass-strong: rgba(255, 244, 228, 0.12);
  --glass-line: rgba(243, 230, 207, 0.16);
  --radius: 22px;
  --blur: blur(20px) saturate(140%);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

body.theme-engineering { --accent: var(--teal); }
body.theme-games { --accent: var(--terracotta); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  background-image:
    radial-gradient(60vw 60vw at 10% -10%, rgba(200, 100, 59, 0.35), transparent 60%),
    radial-gradient(55vw 55vw at 110% 20%, rgba(63, 155, 148, 0.28), transparent 60%),
    radial-gradient(50vw 50vw at 40% 110%, rgba(185, 139, 87, 0.22), transparent 60%);
  background-attachment: fixed;
}

/* Floating glow orbs behind the glass */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.orb.a { width: 38vw; height: 38vw; background: var(--terracotta); top: -10vw; left: -8vw; }
.orb.b { width: 32vw; height: 32vw; background: var(--teal); bottom: -6vw; right: -6vw; animation-duration: 32s; }
.orb.c { width: 22vw; height: 22vw; background: var(--bronze); top: 40%; left: 55%; animation-duration: 40s; opacity: 0.25; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vw, 3vw) scale(1.1); }
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Glass primitives */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 244, 228, 0.18); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--bronze));
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* Navigation — shared on every page */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  width: min(1180px, 100% - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.7rem 0.7rem 1.2rem;
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); background: var(--glass-strong); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--accent); }

/* Hero — shared structure: visual left/right, short line, one action */
.hero {
  min-height: 86vh;
  display: grid;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 3rem;
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.hero-art svg { width: 100%; height: 100%; }
.hero .lede { font-size: 1.2rem; max-width: 34ch; margin: 1.4rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Section scaffolding */
section { padding: 5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { margin-top: 1rem; font-size: 1.05rem; }

.grid-3 { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }

.card { padding: 1.8rem; transition: transform 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.card .icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  border: 1px solid var(--glass-line);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.97rem; }

/* Stat / chip strip */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.85rem;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--cream);
}

/* Footer */
footer { padding: 3rem 0 2.5rem; margin-top: 3rem; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; padding: 2.2rem; border-radius: var(--radius); }
.footer-grid nav { display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: center; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--cream); }
.fine { font-size: 0.82rem; margin-top: 2rem; text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Forms */
.form { display: grid; gap: 0.9rem; padding: 2rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.9rem 1rem; font: inherit; color: var(--cream);
  background: rgba(255, 244, 228, 0.06); border: 1px solid var(--glass-line); border-radius: 14px; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form select option { background: var(--smoke); }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.9rem; color: var(--accent); min-height: 1.2em; }

/* Responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: left; min-height: auto; padding-top: 2rem; }
  .hero-art { max-width: 380px; order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 1rem; border-radius: var(--radius); background: var(--smoke); border: 1px solid var(--glass-line); }
  .menu-btn { display: inline-grid; }
}
@media (min-width: 881px) {
  .menu-btn { display: none; }
}
.menu-btn {
  place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--cream); cursor: pointer;
}
.nav { position: sticky; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Added for the game site: cues from the trailer ---------- */
@font-face { font-family: "Yatra One"; src: url(fonts/yatraone-latin.woff2) format("woff2"); font-display: swap; }
:root { --rope: #e7cf9b; --lantern: #ffb85c; }
.word { font-family: "Yatra One", var(--font-display); font-weight: 400; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px 14px; z-index: 99; }
section { scroll-margin-top: 70px; }
.hero .chips { margin-top: 1.6rem; }
.actions { margin-top: 0; }

/* The dusk sun replaces the third orb */
.orb.c { background: #ff9a3d; width: 26vw; height: 26vw; top: 34%; left: 48%; opacity: 0.22; }

/* Paper grain over the glass, as in the pop-up book */
.card, .floor, .read { position: relative; }
.card::after, .floor::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay; background: url(img/grain.svg); }

.frame { padding: 0.9rem; border-radius: 28px; }
.frame > * { border-radius: 18px; overflow: hidden; }
.frame img { width: 100%; height: auto; }
.hero-art.frame { aspect-ratio: auto; }
.wide { position: relative; z-index: 1; }

/* The rope */
.rope { position: absolute; left: calc(50% - 3px); top: 0; bottom: 0; width: 6px; border-radius: 3px; background: repeating-linear-gradient(155deg, var(--rope) 0 5px, #a77a42 5px 8px); box-shadow: 0 0 14px rgba(255, 184, 92, 0.25); }
.beats { position: relative; padding: 3.5rem 0 2rem; display: grid; gap: 2.2rem; }
.beats > .rope { top: -2px; }
.beat { width: calc(50% - 44px); padding: 2rem 2.2rem; }
.beat.right { justify-self: end; }
.beat h3 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); line-height: 1.15; }
.beat h3 + p { margin-top: 0.8rem; }
/* a lantern where each card meets the rope */
.beat::before { content: ""; position: absolute; top: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 22px 8px rgba(255, 184, 92, 0.45); }
.beat.left::before { right: -51px; }
.beat.right::before { left: -51px; }
.card.beat:hover { transform: none; }
.chalk { font: 400 clamp(2.8rem, 6vw, 5rem)/1.2 "Yatra One", cursive; color: #fff; transform: rotate(-4deg); filter: url(#chalk); margin-top: 0.4rem; }

/* Seven glass floors, each narrower and darker */
.floors { display: grid; justify-items: center; gap: 10px; }
.floor { width: calc(100% - var(--n) * 8%); text-align: center; padding: 6.2rem 1.6rem 2.6rem; overflow: hidden;
  background: linear-gradient(rgba(23, 17, 14, calc(var(--n) * 0.1)), rgba(23, 17, 14, calc(var(--n) * 0.1))), linear-gradient(160deg, rgba(200, 100, 59, calc(0.42 - var(--n) * 0.045)), rgba(255, 184, 92, calc(0.16 - var(--n) * 0.02)) 70%, rgba(63, 155, 148, 0.1)); }
.floor > .rope { bottom: auto; top: 0; height: 74px; z-index: 1; }
.floor::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 46px; background: url(img/arch.svg) 50% 0 repeat-x; opacity: calc(0.95 - var(--n) * 0.12); }
.floor h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; max-width: 22em; margin: 0 auto; text-wrap: balance; }
.floor p { margin: 0.7rem 0 1.2rem; }
.num { display: block; font: 600 0.85rem var(--font-body); color: var(--rope); margin-bottom: 0.6rem; }
.fray { position: absolute; left: calc(50% - 22px); top: 0; width: 44px; height: 64px; z-index: 1; }
.eye { width: min(300px, 80%); margin: 1.4rem auto 0; }
.lid { transition: transform 2.4s cubic-bezier(0.6, 0, 0.2, 1); }
.lid-t { transform: translateY(-46px); }
.lid-b { transform: translateY(46px); }
.js .eye:not(.open) .lid { transform: none; }

.launch { aspect-ratio: 16/9; display: grid; place-items: center; align-items: end; padding: 0 1rem 8%; border: 1px solid var(--glass-line); background: linear-gradient(#17110e00 45%, #17110ecc), url(img/pool.jpg) 50% 40%/cover; }
.shots { margin-top: 1.2rem; }
.shots figure { margin: 0; padding: 0.9rem; }
.shots img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.shots figcaption { padding: 1.1rem 0.6rem 0.4rem; }
.note { margin-top: 1.4rem; }
.contact { align-items: center; }
.contact p { margin: 1rem 0 1.4rem; overflow-wrap: anywhere; }
.footer-grid { align-items: center; }
.footer-grid nav { gap: 0.2rem 1.3rem; }
.footer-grid nav a { min-height: 44px; display: inline-flex; align-items: center; }
.fine { max-width: 70ch; margin-left: auto; margin-right: auto; }
.nav-links a { min-height: 40px; display: inline-flex; align-items: center; }

/* Reveal only hides things when the script is running */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; }

/* Reading pages */
.read { max-width: 820px; margin: 3rem auto 0; padding: clamp(1.4rem, 5vw, 3.5rem); background: rgba(36, 26, 21, 0.78); }
.read h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin-bottom: 0.6rem; }
.read h2 { font-size: 2rem; margin: 2.2rem 0 0.7rem; scroll-margin-top: 90px; }
.read p, .read li, .read td { color: rgba(243, 230, 207, 0.86); }
.read p { margin-bottom: 1rem; }
.read strong, .read th { color: var(--cream); }
.read a { color: #7cc9c1; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.read li { margin-bottom: 0.4rem; }
.read table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 0.95rem; }
.read th, .read td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem 0.6rem 0; border-bottom: 1px solid var(--glass-line); }
.scroll { overflow-x: auto; }
.toc { columns: 2; padding-left: 1.4rem; }

@media (max-width: 880px) {
  .nav { border-radius: 30px; }
  .hero-art { max-width: 460px; width: 100%; }
  .beat, .beat.right { width: 100%; background: rgba(46, 32, 25, 0.9); }
  .beats { gap: 3.4rem; }
  .beat.left::before, .beat.right::before { left: calc(50% - 7px); right: auto; top: -34px; }
  .floor { width: calc(100% - var(--n) * 4%); padding-left: 1rem; padding-right: 1rem; }
  .launch { aspect-ratio: 4/5; }
  .toc { columns: 1; }
  section { padding: 3.5rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .eye:not(.open) .lid-t { transform: translateY(-46px); }
  .js .eye:not(.open) .lid-b { transform: translateY(46px); }
}

/* Same look, far less work: soft glows drawn as gradients; live blur only where
   something passes behind the glass (the menu bar). */
.orb { filter: none; }
.orb.a { background: radial-gradient(closest-side, var(--terracotta), transparent); width: 56vw; height: 56vw; top: -18vw; left: -16vw; }
.orb.b { background: radial-gradient(closest-side, var(--teal), transparent); width: 50vw; height: 50vw; bottom: -14vw; right: -14vw; }
.orb.c { background: radial-gradient(closest-side, #ff9a3d, transparent); width: 42vw; height: 42vw; top: 26%; left: 40%; opacity: 0.2; }
main .glass, footer .glass, main .btn { backdrop-filter: none; -webkit-backdrop-filter: none; }
.card::after, .floor::after { mix-blend-mode: normal; opacity: 0.045; }
.beat p.chalk { font: 400 clamp(2.8rem, 6vw, 5rem)/1.2 "Yatra One", cursive; color: #fff; margin-top: 0.6rem; }
.section-head { max-width: 860px; }
h2 { text-wrap: balance; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); text-wrap: balance; }
.launch .btn { text-align: center; justify-content: center; }
@media (max-width: 880px) { .beat, .beat.right { background: #2b1e18; z-index: 1; } }
