/* =========================================
   SANGRAM — ORIGINAL DESIGN
   Cream / Black / Burnt Orange
========================================= */

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

:root {
  --paper: #f5f1e9;
  --ink: #211f1d;
  --orange: #e94b1b;
  --muted: #77716a;
  --rule: #d8cfc2;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
}

.site-shell {
  width: min(1080px, calc(100% - 64px));
  margin: auto;
}

/* HEADER */

.masthead {
  height: 72px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark,
.footer-logo {
  font: 700 22px "Playfair Display", Georgia, serif;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark span,
.footer-logo span {
  color: var(--orange);
}

.masthead-right {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 8px;
  letter-spacing: .17em;
  font-weight: 800;
  color: var(--muted);
}

.masthead-right .edition {
  color: var(--orange);
}

/* TOP AREA */

.top-area {
  padding: 35px 0 0;
}

.identity {
  text-align: center;
  padding: 8px 0 24px;
}

.logo {
  display: block;
  width: min(340px, 78%);
  max-height: 150px;
  object-fit: contain;
  margin: 0 auto 13px;
}

.overline,
.eyebrow {
  font-size: 9px;
  letter-spacing: .2em;
  font-weight: 800;
  color: var(--orange);
}

/* QUICK LINKS */

.quick-links {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.quick-link {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 17px;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--rule);
  transition: background .2s, color .2s;
}

.quick-link:last-child {
  border-right: 0;
}

.quick-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.quick-index {
  font: italic 16px "Playfair Display", serif;
  color: var(--orange);
}

.quick-label {
  font-size: 9px;
  letter-spacing: .13em;
  font-weight: 800;
  flex: 1;
}

.quick-arrow {
  font-size: 17px;
  color: var(--orange);
}

.register-link {
  background: var(--orange);
  color: white;
}

.register-link .quick-index,
.register-link .quick-arrow {
  color: white;
}

.register-link:hover {
  background: #c83b13;
  color: white;
}

/* EVENT LINE */

.event-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 8px;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--muted);
}

.event-line b {
  color: var(--orange);
  padding: 0 5px;
}

/* COUNTDOWN */

.countdown-section {
  text-align: center;
  padding: 28px 15px 32px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}

.countdown-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--orange);
  margin-bottom: 17px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 30px);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 55px;
}

.countdown-unit span {
  font: 600 clamp(30px, 5vw, 48px)/1 "Playfair Display", Georgia, serif;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.countdown-unit small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--muted);
}

.countdown-separator {
  font: 600 30px "Playfair Display", Georgia, serif;
  color: var(--orange);
  transform: translateY(-8px);
}

.countdown-status {
  font-size: 8px;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--muted);
  margin-top: 18px;
}

/* DESCRIPTION */

.description-section {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 55px;
  padding: 72px 0 82px;
  border-bottom: 1px solid var(--ink);
}

.section-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 8px;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--orange);
}

.section-rail span + span {
  color: #999087;
}

.description-main {
  max-width: 720px;
}

.description-main h1,
.section-heading h2,
.awards-heading h2,
.why-layout h2,
.registration-inner h2 {
  font: 600 clamp(54px, 8vw, 96px)/.92 "Playfair Display", Georgia, serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin: 14px 0 27px;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--orange);
}

.description-copy {
  max-width: 680px;
  border-left: 2px solid var(--orange);
  padding-left: 22px;
}

.description-copy p {
  font-size: 14px;
  line-height: 1.9;
  color: #57514b;
  margin: 0 0 15px;
}

.description-copy .lead {
  font: 600 21px/1.5 "Playfair Display", Georgia, serif;
  color: var(--ink);
  margin-bottom: 19px;
}

.event-facts {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.2fr;
  gap: 15px;
  margin-top: 32px;
  padding-top: 19px;
  border-top: 1px solid var(--rule);
}

.event-facts div {
  display: grid;
  gap: 7px;
}

.event-facts small {
  font-size: 8px;
  letter-spacing: .15em;
  color: var(--orange);
  font-weight: 800;
}

.event-facts strong {
  font-size: 11px;
  line-height: 1.5;
}

/* SECTION COMMON */

.rooms-section,
.awards-section,
.why-section {
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--ink);
}

.section-heading {
  margin: 32px 0 28px;
}

.section-heading h2,
.awards-heading h2,
.why-layout h2 {
  font-size: clamp(48px, 7vw, 78px);
  margin: 12px 0;
}

/* COMMITTEE CARDS */

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.room-card {
  border: 1px solid var(--ink);
  padding: 17px 17px 19px;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
}

.room-number {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: .16em;
  font-weight: 800;
}

.room-number span {
  color: var(--orange);
}

.room-card h3 {
  font: 600 25px/1.1 "Playfair Display", Georgia, serif;
  margin-bottom: 12px;
}

.room-card p {
  font-size: 11px;
  line-height: 1.8;
  color: #625b54;
  margin-top: auto;
}

/* COMMITTEE DOORS */

.door-graphic {
  height: 190px;
  margin: 19px 0 20px;
  position: relative;
  display: block;
  overflow: hidden;
  perspective: 1100px;
  isolation: isolate;
  border: 1px solid #8b7658;
  background: #e9dfcc;
  box-shadow: inset 0 0 28px rgba(55, 38, 20, .12);
}

.committee-emblem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(.88);
  transition:
    opacity .7s ease .16s,
    transform .9s cubic-bezier(.2, .75, .2, 1) .12s;
  z-index: 0;
}

.door-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), transparent 22%, rgba(0,0,0,.13) 100%),
    repeating-linear-gradient(
      90deg,
      #30261e 0 5px,
      #59432e 5px 8px,
      #382b20 8px 13px
    );
  border: 2px solid #b18a52;
  box-shadow:
    inset 0 0 0 5px rgba(225,197,145,.22),
    inset 0 0 18px rgba(0,0,0,.45);
  transition:
    transform .95s cubic-bezier(.2, .78, .2, 1),
    filter .7s ease;
  backface-visibility: hidden;
}

.door-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid #d3b47d;
}

.door-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid #d3b47d;
}

.door-leaf::after {
  content: "";
  position: absolute;
  top: 48%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7b16f;
  box-shadow: 0 0 7px rgba(255,220,160,.8);
}

.door-left::after {
  right: 9px;
}

.door-right::after {
  left: 9px;
}

.door-graphic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255,211,137,.4),
    transparent 65%
  );
  opacity: 0;
  transition: opacity .7s ease;
}

.room-card:hover .door-left,
.room-card:focus-within .door-left,
.room-card.door-open .door-left {
  transform: rotateY(-105deg);
  filter: brightness(.8);
}

.room-card:hover .door-right,
.room-card:focus-within .door-right,
.room-card.door-open .door-right {
  transform: rotateY(105deg);
  filter: brightness(.8);
}

.room-card:hover .committee-emblem,
.room-card:focus-within .committee-emblem,
.room-card.door-open .committee-emblem {
  opacity: 1;
  transform: scale(1);
}

.room-card:hover .door-graphic::after,
.room-card:focus-within .door-graphic::after,
.room-card.door-open .door-graphic::after {
  opacity: 1;
}

/* CASH AWARDS */

.awards-section {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 40px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.awards-section > *:not(.money-effects) {
  position: relative;
  z-index: 1;
}

.awards-heading h2 {
  margin-top: 20px;
}

.awards-note {
  font: italic 15px "Playfair Display", Georgia, serif;
  color: var(--orange);
  margin-top: 10px;
}

.award-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.award-group {
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}

.award-group:first-child {
  padding-top: 0;
}

.award-group h3 {
  font: 600 18px "Playfair Display", Georgia, serif;
  margin-bottom: 8px;
}

.award {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 11px;
  color: #5f5851;
}

.award strong {
  font: 700 22px "Playfair Display", Georgia, serif;
  color: var(--orange);
}

/* FLYING NOTES AND COINS */

.money-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.money-note {
  position: absolute;
  top: -90px;
  left: var(--x);
  width: 46px;
  height: 25px;
  border: 1px solid rgba(105,72,43,.48);
  border-radius: 2px;
  background: linear-gradient(135deg, #e8d7ad, #c7a875 55%, #eadbb9);
  box-shadow: 0 3px 8px rgba(45,31,20,.12);
  opacity: 0;
  transform: rotate(var(--tilt));
  animation: note-drift var(--duration) linear var(--delay) infinite;
}

.money-note::before {
  content: "";
  position: absolute;
  inset: 4px 7px;
  border: 1px solid rgba(103,65,35,.45);
  border-radius: 50%;
}

.money-note::after {
  content: "₹";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #77552e;
  font: 700 12px Georgia, serif;
}

.money-coin {
  position: absolute;
  top: -55px;
  left: var(--x);
  width: 25px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #9c7135;
  border-radius: 50%;
  color: #76501e;
  background: radial-gradient(
    circle at 35% 30%,
    #fff0b9,
    #d7ad58 58%,
    #a87931
  );
  box-shadow:
    0 2px 7px rgba(45,31,20,.18),
    inset 0 0 0 2px rgba(255,244,201,.55);
  font: 700 12px Georgia, serif;
  opacity: 0;
  animation: coin-drift var(--duration) linear var(--delay) infinite;
}

@keyframes note-drift {
  0% {
    transform: translate3d(0, -25px, 0) rotate(var(--tilt));
    opacity: 0;
  }
  10% {
    opacity: .72;
  }
  85% {
    opacity: .58;
  }
  100% {
    transform: translate3d(var(--drift), 560px, 0) rotate(calc(var(--tilt) + 300deg));
    opacity: 0;
  }
}

@keyframes coin-drift {
  0% {
    transform: translate3d(0, -20px, 0) rotateY(0deg) rotateZ(0deg);
    opacity: 0;
  }
  12% {
    opacity: .78;
  }
  85% {
    opacity: .65;
  }
  100% {
    transform: translate3d(var(--drift), 560px, 0) rotateY(900deg) rotateZ(250deg);
    opacity: 0;
  }
}

/* WHY SANGRAM */

.why-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 45px;
  margin-top: 32px;
}

.why-layout h2 {
  margin-top: 14px;
}

.why-list {
  list-style: none;
}

.why-list li {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.7;
  color: #5c554e;
}

.why-list li span {
  font: italic 16px "Playfair Display", Georgia, serif;
  color: var(--orange);
}

.why-list strong {
  color: var(--ink);
}

/* REGISTRATION */

.registration-section {
  padding: 76px 0;
}

.registration-inner {
  position: relative;
  text-align: center;
  padding: 52px 24px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.registration-inner::before,
.registration-inner::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(233,75,27,.38);
  border-radius: 50%;
  top: -150px;
  left: -90px;
  pointer-events: none;
}

.registration-inner::after {
  left: auto;
  right: -90px;
  top: auto;
  bottom: -160px;
}

.registration-inner .eyebrow {
  color: #ff815b;
}

.limited {
  font-size: 9px;
  letter-spacing: .2em;
  font-weight: 800;
  color: #c8bfb4;
  margin: 28px 0 2px;
}

.price {
  font: 600 clamp(76px, 12vw, 126px)/1 "Playfair Display", Georgia, serif;
  color: var(--orange);
}

.registration-inner h2 {
  font-size: clamp(38px, 6vw, 62px);
  margin: 18px 0;
}

.registration-inner h2 em {
  color: #ff7047;
}

.big-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(370px, 100%);
  margin: 28px auto 0;
  padding: 17px 19px;
  background: var(--orange);
  color: white;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .13em;
  font-weight: 800;
  transition: background .2s, transform .2s;
}

.big-cta:hover {
  background: #c93b14;
  transform: translateY(-2px);
}

.big-cta span {
  font-size: 20px;
}

.initiative {
  font-size: 8px;
  line-height: 2;
  letter-spacing: .15em;
  color: #aaa198;
  margin-top: 30px;
}

.initiative strong {
  color: white;
}

/* FOOTER */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--ink);
  padding: 22px 0 28px;
}

.footer-logo {
  font-size: 20px;
}

footer p {
  text-align: center;
  font-size: 8px;
  line-height: 1.9;
  letter-spacing: .12em;
  color: var(--muted);
}

footer > a:last-child {
  font-size: 8px;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
}

/* =========================================
   ANIMATIONS
========================================= */

/* Hero title entrance */

.hero-title {
  opacity: 0;
  transform: translateY(35px);
  clip-path: inset(0 0 100% 0);
}

html.loaded .hero-title {
  animation: hero-enter 1.2s cubic-bezier(.2, .75, .25, 1) .2s forwards;
}

@keyframes hero-enter {
  0% {
    opacity: 0;
    transform: translateY(35px);
    clip-path: inset(0 0 100% 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

html.loaded .logo {
  animation: logo-enter 1s ease both;
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scroll reveal */

.js-motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.2, .7, .2, 1);
}

.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-motion .room-card:nth-child(2),
.js-motion .award-group:nth-child(2),
.js-motion .why-list li:nth-child(2) {
  transition-delay: .12s;
}

.js-motion .room-card:nth-child(3),
.js-motion .award-group:nth-child(3),
.js-motion .why-list li:nth-child(3) {
  transition-delay: .22s;
}

.js-motion .why-list li:nth-child(4) {
  transition-delay: .30s;
}

.js-motion .why-list li:nth-child(5) {
  transition-delay: .38s;
}

/* Door interaction polish */

.room-card {
  transition: transform .35s ease, box-shadow .35s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(33,31,29,.08);
}

/* Countdown subtle entrance */

html.loaded .countdown-section {
  animation: countdown-enter .8s ease .4s both;
}

@keyframes countdown-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 700px) {
  .site-shell {
    width: calc(100% - 30px);
  }

  .masthead {
    height: 60px;
  }

  .masthead-right {
    font-size: 7px;
    gap: 10px;
  }

  .wordmark {
    font-size: 18px;
  }

  .top-area {
    padding-top: 24px;
  }

  .logo {
    width: min(290px, 82%);
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .quick-link {
    min-height: 53px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 13px;
  }

  .quick-link:last-child {
    border-bottom: 0;
  }

  .event-line {
    font-size: 7px;
    gap: 10px;
    line-height: 1.6;
  }

  .countdown-section {
    padding: 24px 5px 27px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-unit {
    min-width: 48px;
  }

  .countdown-unit span {
    font-size: 30px;
  }

  .countdown-unit small {
    font-size: 7px;
  }

  .countdown-separator {
    font-size: 23px;
  }

  .countdown-status {
    font-size: 7px;
    line-height: 1.6;
  }

  .description-section,
  .awards-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 48px 0 55px;
  }

  .description-main h1 {
    font-size: 62px;
  }

  .description-copy {
    padding-left: 15px;
  }

  .description-copy .lead {
    font-size: 18px;
  }

  .description-copy p {
    font-size: 12px;
  }

  .event-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rooms-section,
  .awards-section,
  .why-section {
    padding: 48px 0 55px;
  }

  .section-heading {
    margin: 25px 0 20px;
  }

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

  .room-card {
    min-height: 0;
  }

  .door-graphic {
    height: 190px;
    margin: 14px 0;
  }

  .room-card h3 {
    font-size: 23px;
  }

  .room-card p {
    margin-top: 0;
  }

  .awards-heading h2,
  .why-layout h2 {
    font-size: 58px;
  }

  .why-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 25px;
  }

  .why-list li {
    font-size: 12px;
  }

  .registration-section {
    padding: 48px 0;
  }

  .registration-inner {
    padding: 40px 17px;
  }

  .registration-inner h2 {
    font-size: 39px;
  }

  .money-note {
    width: 36px;
    height: 20px;
  }

  .money-coin {
    width: 21px;
  }

  footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  footer p {
    order: 3;
    width: 100%;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .hero-title,
  .js-motion .reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .money-note,
  .money-coin {
    display: none !important;
  }
}