@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --void: #3a1810;
  --obsidian: #4a2016;
  --char: #6a321f;
  --ember: #c2410c;
  --flame: #e25a12;
  --gold: #a16207;
  --blood: #9b1c12;
  --ash: #6b4336;
  --paper: #fff6ec;
  --ink: #2a1610;
  --muted: #6a4336;
  --bg: #f3e4d0;
  --cream: #fff9f2;
  --line: rgba(122, 48, 20, 0.16);
  --glass: rgba(255, 248, 240, 0.82);
  --shadow: 0 22px 50px rgba(90, 32, 14, 0.12);
  --radius: 22px;
  --nav-h: 88px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 18px;
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  font: inherit;
  cursor: pointer;
}

.grain,
.embers,
.fire-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 8;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.embers,
.fire-layer {
  z-index: 6;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(62, 24, 16, 0.94), rgba(62, 24, 16, 0.72) 70%, rgba(62, 24, 16, 0.08));
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dragon-btn {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 77, 24, 0.4), transparent 62%),
    #090403;
  padding: 4px;
  position: relative;
  overflow: visible;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0 0 1px rgba(255, 77, 24, 0.15), 0 0 24px rgba(255, 77, 24, 0.18);
}

.dragon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(1.15) contrast(1.05);
}

.dragon-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 179, 71, 0.25);
  animation: pulse-ring 2.8s ease-out infinite;
}

.dragon-btn:hover,
.dragon-btn.is-roaring {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 0 0 1px rgba(255, 179, 71, 0.5), 0 0 42px rgba(255, 77, 24, 0.65);
}

.dragon-btn.is-roaring::before,
.hot-dragon.is-roaring::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 58%;
  width: 120px;
  height: 36px;
  background: radial-gradient(ellipse at right, #fff4c4 0%, #ff6a1a 42%, transparent 72%);
  transform: translate(-100%, -50%);
  filter: blur(1.5px);
  pointer-events: none;
  z-index: 2;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f3c989;
}

.brand-name {
  font-family: Cinzel, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4d7b8;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--paper);
  background: rgba(255, 77, 24, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 77, 24, 0.25);
}

.menu-toggle,
.nav-close {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(232, 195, 122, 0.55);
  border-radius: 50%;
  display: none;
  background: rgba(12, 7, 5, 0.85);
  place-items: center;
  gap: 5px;
  padding: 0;
  z-index: 95;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 28px) 28px 72px;
  display: grid;
  place-items: center start;
  overflow: hidden;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 22, 16, 0.58) 2%, rgba(42, 22, 16, 0.2) 40%, rgba(42, 22, 16, 0.04) 68%),
    linear-gradient(180deg, rgba(42, 22, 16, 0.06), rgba(243, 228, 208, 0.9)),
    url("../images/brand/hero-dragon.png") center/cover no-repeat;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(transparent, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero .kicker {
  color: #f3c989;
}

h1, h2, .display {
  font-family: Cinzel, serif;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.motto {
  margin: 22px 0 18px;
  color: #ffd27a;
  font-family: Cinzel, serif;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-size: 16px;
}

.lede {
  color: var(--muted);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.7;
  max-width: 52ch;
  overflow-wrap: break-word;
}

.hero .lede {
  color: #f3e0cc;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}

.btn-fire {
  color: #1a0804;
  background: linear-gradient(180deg, #ffd27a, #ff5a1f 55%, #c41e12);
  box-shadow: 0 10px 30px rgba(255, 77, 24, 0.35);
}

.btn-ghost {
  color: #fff6ec;
  background: rgba(42, 22, 16, 0.28);
  box-shadow: inset 0 0 0 1.5px rgba(255, 246, 236, 0.9);
}

.btn:hover {
  transform: translateY(-2px);
}

.hint {
  margin-top: 28px;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 246, 236, 0.78);
}

.hint b {
  color: var(--flame);
  font-weight: 600;
}

.hot-dragon {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: min(34vw, 340px);
  height: min(34vw, 340px);
  z-index: 3;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 20px 50px rgba(255, 77, 24, 0.35));
  animation: floaty 5.5s ease-in-out infinite;
  background: #090403;
  border: 1px solid var(--line);
  padding: 0;
}

.hot-dragon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 42px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(38px, 5vw, 64px);
}

.muted {
  color: var(--muted);
  line-height: 1.75;
  font-weight: 400;
  font-size: 18px;
}

.about-grid,
.contact-grid,
.hour-grid,
.team-grid,
.wing-grid {
  display: grid;
  gap: 22px;
}

.about-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.about-copy p + p {
  margin-top: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.stat,
.card,
.contact-card,
.hour-card,
.person-card,
.wing-card,
.menu-frame {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  padding: 22px 18px;
}

.stat b {
  display: block;
  font-family: Cinzel, serif;
  font-size: 34px;
  color: var(--ember);
}

.stat span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-card {
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: url("../images/jwala_pic.jpg") center/cover no-repeat;
  position: relative;
}

.photo-card::after {
  content: "Gate No. 6 · Hauz Khas";
  position: absolute;
  left: 18px;
  bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd27a;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  padding: 26px 22px;
  min-height: 210px;
}

.card h3 {
  font-family: Cinzel, serif;
  font-size: 26px;
  margin: 12px 0 10px;
}

.card p {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--flame), var(--ember) 55%, #5a0d08);
  color: #1a0804;
  font-family: Cinzel, serif;
  font-weight: 700;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery a:first-child {
  grid-row: 1 / span 2;
}

.gallery a:hover img {
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.1);
}

.contact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.contact-card,
.hour-card {
  padding: 24px;
}

.contact-card span,
.hour-card span {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
}

.contact-card h3,
.hour-card h3 {
  font-family: Cinzel, serif;
  margin: 12px 0 8px;
  font-size: 24px;
}

.contact-card p,
.hour-card p {
  color: var(--muted);
  font-size: 17px;
}

.page-hero {
  min-height: 48vh;
  padding: calc(var(--nav-h) + 60px) 28px 40px;
  display: grid;
  place-items: end start;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

.page-hero.team {
  background:
    linear-gradient(180deg, rgba(42, 22, 16, 0.28), rgba(243, 228, 208, 0.94)),
    url("../images/brand/dragon-fire.png") center 30%/cover no-repeat;
}

.page-hero.mess {
  background:
    linear-gradient(180deg, rgba(42, 22, 16, 0.28), rgba(243, 228, 208, 0.94)),
    url("../images/main_page_image.jpg") center/cover no-repeat;
}

.page-hero h1,
.page-hero .display {
  font-size: clamp(42px, 7vw, 84px);
  max-width: 14ch;
}

.page-hero .lede {
  margin-top: 16px;
  color: var(--muted);
}

.wing-grid {
  grid-template-columns: 1fr 1fr;
}

.year-switch {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  margin: 8px 0 28px;
}

.year-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 20px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
}

.year-switch button.is-active {
  color: #1a0804;
  background: linear-gradient(180deg, #ffd27a, #ff5a1f);
}

.team-grid {
  grid-template-columns: repeat(4, 1fr);
}

.person-card {
  padding: 22px 18px 20px;
  text-align: center;
  min-height: 280px;
}

.avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Cinzel, serif;
  font-size: 28px;
  color: var(--ember);
  background:
    radial-gradient(circle at 50% 30%, rgba(226, 90, 18, 0.16), transparent 55%),
    #fff1e4;
  border: 1px solid var(--line);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.person-card h3 {
  font-family: Cinzel, serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.person-card .role {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.person-card .meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.pending-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid rgba(194, 65, 12, 0.28);
}

.wing-card {
  padding: 26px;
}

.wing-card h3 {
  font-family: Cinzel, serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.rep-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.rep-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

.hour-grid {
  grid-template-columns: repeat(4, 1fr);
}

.menu-frame {
  padding: 16px;
  overflow: hidden;
}

.menu-frame img {
  width: 100%;
  border-radius: 14px;
}

.notice {
  margin-top: 16px;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 48px 28px 36px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: #f3dcc6;
  background: #3e1810;
  font-size: 16px;
}

.site-footer .brand-name {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
}

.site-footer a {
  color: #ffd27a;
}

.blast {
  position: fixed;
  pointer-events: none;
  z-index: 90;
  width: 340px;
  opacity: 0;
  transform: translate(-92%, -48%) scaleX(-1) scale(0.72);
  mix-blend-mode: screen;
  transition: opacity 0.12s linear;
}

.blast.show {
  opacity: 0.95;
}

@keyframes pulse-ring {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@media (max-width: 980px) {
  .about-grid,
  .pillars,
  .contact-grid,
  .team-grid,
  .hour-grid,
  .wing-grid,
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .hot-dragon {
    width: 46vw;
    right: -4%;
    opacity: 0.7;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }

  .gallery a:first-child {
    grid-row: auto;
    grid-column: 1 / span 2;
    min-height: 240px;
  }
}

body.is-compact .menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 20px;
}

body.is-compact .nav-links {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(80vw, 340px);
  background: #4a2016;
  flex-direction: column;
  align-items: stretch;
  padding: 88px 24px 24px;
  transform: translateX(100%);
  border-left: 1px solid var(--line);
  z-index: 90;
}

body.is-compact .nav-links.is-open {
  transform: none;
}

body.is-compact .hot-dragon {
  display: none;
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 16px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 20px;
  }

  .nav-close {
    display: grid;
    place-items: center;
    width: auto;
    height: 42px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    text-align: left;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 340px);
    background: #4a2016;
    flex-direction: column;
    align-items: stretch;
    padding: 88px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--line);
    z-index: 90;
  }

  .nav-links.is-open {
    transform: none;
  }

  .section {
    width: calc(100% - 32px);
  }

  .hero {
    width: auto;
    padding: calc(var(--nav-h) + 24px) 16px 64px;
  }

  .hero h1 {
    font-size: calc((100vw - 48px) / 10.2);
    letter-spacing: 0.02em;
  }

  .page-hero h1,
  .page-hero .display {
    font-size: clamp(30px, 10vw, 44px);
    max-width: none;
  }

  .lede {
    font-size: 16px;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .page-hero {
    width: auto;
    padding: calc(var(--nav-h) + 48px) 16px 36px;
  }

  .about-grid,
  .pillars,
  .contact-grid,
  .team-grid,
  .hour-grid,
  .wing-grid,
  .stat-row,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery a:first-child {
    grid-column: auto;
  }

  .hot-dragon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
