:root {
  --ink: #2a1c14;
  --dark: #21140d;
  --paper: #efe1bb;
  --cream: #fbf4df;
  --saffron: #d79b2d;
  --turmeric: #f0cc69;
  --terracotta: #a64a31;
  --indigo: #29364d;
  --leaf: #38513c;
  --muted: #6f5d4d;
  --line: rgba(66, 44, 29, 0.22);
  --display: "Eczar", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --hand: "Kalam", cursive;
  --shadow: 0 18px 45px rgba(52, 31, 18, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 var(--serif);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.52), transparent 24%),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(65, 36, 18, 0.018) 5px);
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--turmeric);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: var(--cream);
}

.skip:focus {
  top: 1rem;
}

.progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 4px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.12);
}

.progress span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--turmeric);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--terracotta);
  font: 700 0.72rem/1.35 var(--serif);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: var(--display);
  line-height: 1.08;
}

/* Header */
.topbar {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem clamp(1rem, 4vw, 4rem);
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--turmeric);
  border: 1px solid var(--turmeric);
  border-radius: 50%;
  font: 700 1rem var(--display);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font: 600 1.1rem var(--display);
}

.brand-copy small {
  margin-top: 0.2rem;
  color: #ecdcae;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.topbar nav a {
  font-size: 0.82rem;
  text-decoration: none;
}

.topbar nav a:hover {
  color: var(--turmeric);
}

.nav-home {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(239, 207, 115, 0.6);
}

.menu {
  display: none;
  padding: 0.5rem 0.7rem;
  color: #fff;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Entrance */
.entry {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  background: var(--dark);
}

.entry-bg {
  position: absolute;
  inset: 0;
  background: url("https://cdn.jeecounselling.in/images/colleges/coep-pune/img16.webp") center / cover no-repeat;
  filter: saturate(0.62) sepia(0.2);
  transform: scale(1.03);
}

.entry-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 13, 8, 0.94), rgba(27, 16, 10, 0.57) 56%, rgba(20, 12, 8, 0.76)),
    linear-gradient(0deg, rgba(26, 14, 8, 0.92), transparent 54%);
}

.threshold {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, calc(100% - 2rem));
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 8.5rem clamp(1rem, 5vw, 4rem) 4rem;
}

.entry .eyebrow,
.dark .eyebrow {
  color: var(--turmeric);
}

h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(3.7rem, 8vw, 7.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h1 em {
  color: var(--turmeric);
  font-style: normal;
}

.roman {
  margin: 0;
  color: #f0d98d;
  font: 1.3rem var(--hand);
}

.tagline {
  margin: 0.3rem 0;
  font-size: 1.1rem;
  font-style: italic;
}

.entry-lede {
  max-width: 610px;
  margin: 0.8rem 0 0;
  color: #eadfc6;
  font-size: 1rem;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.primary,
.secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--saffron);
  cursor: pointer;
  text-decoration: none;
}

.primary {
  color: var(--dark);
  background: var(--saffron);
  font-weight: 700;
}

.primary:hover {
  background: var(--turmeric);
}

.secondary {
  color: var(--cream);
  background: rgba(20, 9, 5, 0.3);
}

.entry-sign {
  position: relative;
  padding: 1.15rem 1.35rem;
  color: var(--ink);
  background: #ead8a5;
  border: 2px solid #6e492c;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  transform: rotate(1.2deg);
}

.entry-sign::before,
.entry-sign::after {
  position: absolute;
  top: -36px;
  width: 2px;
  height: 36px;
  content: "";
  background: #8c6a3d;
}

.entry-sign::before { left: 22%; }
.entry-sign::after { right: 22%; }

.entry-sign small {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.entry-sign h2 {
  margin: 0.45rem 0;
  color: var(--terracotta);
  font-size: 1.9rem;
}

.entry-sign p {
  margin: 0.35rem 0;
  font-size: 0.86rem;
}

.entry-sign .chalk {
  color: var(--leaf);
  font: 1.08rem var(--hand);
}

.down {
  position: absolute;
  z-index: 2;
  bottom: 1.2rem;
  left: 50%;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.down span {
  display: block;
  color: var(--turmeric);
  text-align: center;
  animation: bob 1.5s infinite;
}

@keyframes bob {
  50% { transform: translateY(5px); }
}

/* Shared section spacing */
.opening,
.world-school,
.water-section,
.carry-section,
.paths,
.teacher-section,
.library-section,
.rules,
.sources {
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.2rem, 6vw, 6rem);
}

.opening h2,
.section-heading h2,
.water-copy h2,
.teacher-copy h2,
.library-copy h2,
.rules h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  letter-spacing: -0.035em;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.section-heading > p {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 410px;
}

/* Courtyard note */
.opening {
  display: grid;
  grid-template-columns: 0.38fr 2fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.folio {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.opening p {
  max-width: 720px;
}

.opening blockquote {
  align-self: center;
  margin: 1rem 0 0;
  color: var(--terracotta);
  font: 1.25rem/1.4 var(--hand);
  transform: rotate(-2deg);
}

/* Field notes */
.world-school {
  background: var(--cream);
}

.tradition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.tradition-card {
  position: relative;
  padding: 1.35rem;
  background: #f1e3c2;
  border: 1px solid var(--line);
}

.tradition-card:nth-child(2n) {
  background: #ead7a7;
}

.tradition-card .place {
  color: var(--terracotta);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.tradition-card h3 {
  margin: 0.5rem 0;
  font-size: 1.35rem;
}

.tradition-card p {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
}

.tradition-card button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0 0;
  color: var(--leaf);
  background: none;
  border: 0;
  border-top: 1px dashed var(--line);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
}

.tradition-more {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
}

.truth-ribbon {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  color: var(--cream);
  background: var(--terracotta);
}

.truth-ribbon b {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 2px solid var(--turmeric);
  border-radius: 50%;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-align: center;
  transform: rotate(-7deg);
}

.truth-ribbon p {
  margin: 0;
  font-size: 0.9rem;
}

/* Knowledge river */
.water-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  color: var(--cream);
  background: var(--indigo);
}

.water-copy p {
  max-width: 600px;
  color: #dce3ee;
}

.water-well {
  position: relative;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 2.3rem);
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.flow-lines {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background: repeating-radial-gradient(ellipse at 0 50%, transparent 0 18px, var(--turmeric) 19px 20px, transparent 21px 35px);
}

.vessel-choices {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.vessel-choices button {
  min-height: 112px;
  padding: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  text-align: left;
}

.vessel-choices button:hover,
.vessel-choices button.active {
  background: rgba(237, 199, 93, 0.12);
  border-color: var(--turmeric);
}

.vessel-choices b {
  display: block;
  color: var(--turmeric);
  font: 1.3rem var(--display);
}

.vessel-choices span {
  font-size: 0.76rem;
}

.water-result {
  position: relative;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.17);
  border-left: 3px solid var(--turmeric);
}

.water-result h3 {
  margin: 0.15rem 0;
  font-size: 1.3rem;
}

.water-result p {
  margin: 0;
  color: #dbe2ee;
  font-size: 0.86rem;
}

/* Carry / leave */
.carry-section {
  background: #d8bb78;
}

.carry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 4vw, 4rem);
}

.carry-column {
  padding-top: 0.9rem;
  border-top: 4px double var(--ink);
}

.carry-column h3 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.carry-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.carry-card span {
  color: var(--terracotta);
  font: 1.35rem var(--display);
}

.carry-card h4 {
  margin: 0 0 0.15rem;
  font-size: 1.08rem;
}

.carry-card p {
  margin: 0;
  font-size: 0.82rem;
}

.leave {
  padding: 1.25rem;
  color: var(--cream);
  background: #2c1b13;
  border-top-color: var(--turmeric);
}

.leave .carry-card {
  border-color: rgba(255, 255, 255, 0.18);
}

.leave .carry-card p {
  color: #d9cab5;
}

.leave .carry-card span {
  color: #e58a69;
}

/* Promise */
.community-manifesto {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.2rem, 9vw, 9rem);
  color: var(--cream);
  background: var(--leaf);
  text-align: center;
}

.community-manifesto .eyebrow {
  color: var(--turmeric);
}

.community-manifesto h2 {
  max-width: 980px;
  margin: 0 auto 0.9rem;
  font-size: clamp(2.8rem, 6.5vw, 6rem);
}

.community-manifesto h2 span {
  color: var(--turmeric);
}

.community-manifesto > p {
  max-width: 650px;
  margin: 0 auto;
  color: #d5dfd4;
  font-size: 1rem;
}

.manifesto-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.manifesto-notes span {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
}

/* Teacher */
.teacher-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 7vw, 7rem);
  background: var(--paper);
}

.teacher-note {
  position: relative;
  padding: 1.7rem;
  background: #f8efd8;
  border: 1px solid #96764b;
  box-shadow: 10px 12px 0 rgba(67, 39, 20, 0.1);
  transform: rotate(0.7deg);
}

.teacher-note::before {
  position: absolute;
  top: -12px;
  left: 38%;
  width: 90px;
  height: 28px;
  content: "";
  background: rgba(226, 206, 154, 0.7);
  transform: rotate(-3deg);
}

.teacher-note p {
  margin: 0.7rem 0;
  font: 1.2rem/1.5 var(--hand);
}

.teacher-note strong {
  color: var(--terracotta);
}

/* Three exploration courtyards */
.paths {
  overflow: hidden;
  background: var(--cream);
}

.courtyard-chooser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.courtyard-door {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  overflow: hidden;
  color: var(--ink);
  background: #eadbb7;
  border: 1px solid #9a7b50;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.courtyard-door::before {
  position: absolute;
  top: -26px;
  right: -18px;
  width: 110px;
  height: 110px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.12;
}

.courtyard-door:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.courtyard-door[aria-selected="true"] {
  color: var(--cream);
  border-color: transparent;
  box-shadow: 0 10px 0 rgba(42, 28, 20, 0.12);
}

.courtyard-door--saffron[aria-selected="true"] {
  color: var(--dark);
  background: var(--saffron);
}

.courtyard-door--indigo[aria-selected="true"] {
  background: var(--indigo);
}

.courtyard-door--leaf[aria-selected="true"] {
  background: var(--leaf);
}

.door-number {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.door-name {
  margin-top: auto;
  font: 600 clamp(1.75rem, 3vw, 2.8rem)/1 var(--display);
}

.door-hindi {
  margin-top: 0.18rem;
  font: 1rem var(--hand);
  opacity: 0.78;
}

.door-description {
  max-width: 28ch;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.door-action {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.door-action b,
.path-link b {
  display: inline-block;
  transition: transform 160ms ease;
}

.courtyard-door:hover .door-action b,
.path-card:hover .path-link b {
  transform: translateX(4px);
}

.courtyard-panels {
  position: relative;
}

.courtyard-panel {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid #9a7b50;
}

.courtyard-panel--saffron { background: #f2dfaa; }
.courtyard-panel--indigo { background: #d9dce4; }
.courtyard-panel--leaf { background: #d9e1d3; }

.courtyard-intro {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.6fr);
  align-items: end;
  gap: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.courtyard-intro h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.courtyard-intro > p {
  margin: 0;
  font-size: 0.9rem;
}

.courtyard-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding-top: 1.2rem;
}

.path-card {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  padding: 1.15rem;
  color: var(--ink);
  background: rgba(255, 250, 235, 0.72);
  border: 1px solid rgba(81, 57, 37, 0.28);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.path-card:hover {
  background: var(--cream);
  box-shadow: 0 10px 0 rgba(45, 29, 19, 0.09);
  transform: translateY(-4px);
}

.path-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.path-number {
  color: var(--terracotta);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.path-icon {
  font-size: 1.05rem;
}

.path-card h4 {
  margin: auto 0 0.35rem;
  font-size: 1.35rem;
}

.path-card p {
  margin: 0;
  font-size: 0.8rem;
}

.path-link {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Library */
.library-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  color: var(--cream);
  background: var(--terracotta);
}

.book-courtyard {
  display: grid;
  min-height: 340px;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 0.4rem;
  padding: 1rem;
  background: #6f2d1e;
  border: 7px double #edd08b;
  box-shadow: 16px 18px 0 rgba(48, 18, 10, 0.16);
}

.book-courtyard span {
  display: block;
  height: var(--h);
  padding: 0.5rem 0.2rem;
  color: var(--dark);
  background: #d9b75f;
  border: 1px solid #3f2217;
  font-size: 0.62rem;
  writing-mode: vertical-rl;
}

.library-copy .eyebrow {
  color: var(--turmeric);
}

.library-copy p {
  color: #f0dfc9;
}

.library-link {
  display: inline-flex;
  padding: 0.45rem 0;
  color: var(--turmeric);
  border-bottom: 1px solid var(--turmeric);
  font-weight: 700;
  text-decoration: none;
}

/* Admissions */
.rules {
  background: var(--paper);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.rules-grid article {
  padding: 1.35rem;
  background: var(--paper);
}

.rules-grid span {
  color: var(--terracotta);
  font: 1.8rem var(--display);
}

.rules-grid h3 {
  margin: 0.5rem 0;
  font-size: 1.35rem;
}

.rules-grid p {
  margin: 0;
  font-size: 0.84rem;
}

.not-needed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.9rem;
  border: 2px dashed #8c6842;
  font-size: 0.82rem;
}

.not-needed strong {
  color: var(--terracotta);
}

.not-needed span::before {
  color: var(--terracotta);
  content: "× ";
}

/* Sources */
.sources {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background: #c4a566;
}

.source-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  background: none;
  border: 0;
  border-block: 3px double var(--ink);
  cursor: pointer;
  text-align: left;
}

.source-toggle span {
  display: grid;
}

.source-toggle small {
  font-size: 0.64rem;
  letter-spacing: 0.15em;
}

.source-toggle strong {
  font: 1.45rem var(--display);
}

.source-toggle b {
  font-size: 1.8rem;
}

.source-list {
  max-width: 980px;
  padding: 1.2rem 0 0;
  font-size: 0.86rem;
}

.source-list ul {
  columns: 2;
  column-gap: 3rem;
}

.source-list li {
  margin-bottom: 0.6rem;
  break-inside: avoid;
}

.source-list a {
  text-underline-offset: 3px;
}

.source-list .note {
  padding-left: 1rem;
  border-left: 3px solid var(--terracotta);
}

/* Footer and dialog */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.2rem, 6vw, 6rem);
  color: #d8c8a9;
  background: #170d08;
}

footer p {
  margin: 0;
  font-size: 0.76rem;
}

footer > p {
  color: var(--turmeric);
  font-family: var(--display);
}

.entry-dialog {
  width: calc(100% - 2rem);
  max-width: 650px;
  padding: clamp(1.5rem, 5vw, 3.2rem);
  background: var(--paper);
  border: 1px solid var(--saffron);
  box-shadow: 0 30px 100px #000;
}

.entry-dialog::backdrop {
  background: rgba(18, 9, 5, 0.85);
  backdrop-filter: blur(4px);
}

.entry-dialog h2 {
  margin-bottom: 0.15rem;
  color: var(--terracotta);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.entry-dialog .close {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 2rem;
}

.entry-dialog blockquote {
  margin: 1.3rem 0;
  padding: 0.9rem 0;
  border-block: 3px double var(--line);
  font: 1.25rem/1.5 var(--hand);
}

/* Responsive */
@media (max-width: 1000px) {
  .topbar nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--dark);
  }

  .topbar nav.open { display: flex; }
  .menu { display: block; }

  .threshold { grid-template-columns: 1fr; }
  .entry-sign { max-width: 400px; }

  .opening {
    grid-template-columns: 0.42fr 2fr;
  }

  .opening blockquote { grid-column: 2; }

  .tradition-grid,
  .courtyard-paths {
    grid-template-columns: 1fr 1fr;
  }

  .water-section,
  .teacher-section,
  .library-section {
    grid-template-columns: 1fr;
  }

  .courtyard-door {
    min-height: 225px;
  }
}

@media (max-width: 760px) {
  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 0.65rem;
  }

  .courtyard-chooser {
    grid-template-columns: 1fr;
  }

  .courtyard-door {
    min-height: 0;
    padding: 1rem;
  }

  .door-name {
    margin-top: 1.1rem;
  }

  .door-description {
    max-width: none;
  }

  .courtyard-intro {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 680px) {
  .brand-copy small,
  .entry-sign,
  .down {
    display: none;
  }

  .threshold {
    padding-top: 7rem;
  }

  .opening,
  .tradition-grid,
  .vessel-choices,
  .carry-grid,
  .courtyard-paths,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .opening blockquote {
    grid-column: auto;
  }

  .truth-ribbon {
    grid-template-columns: 1fr;
  }

  .truth-ribbon b {
    width: 62px;
    height: 62px;
  }

  .path-card {
    min-height: 185px;
  }

  .source-list ul {
    columns: 1;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .down span { animation: none; }
  * { transition: none !important; }
}
/* =========================================
   JIGYASA VERSE HEADER LOGO
========================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;

  filter:
    drop-shadow(0 0 8px rgba(240, 204, 105, 0.35))
    drop-shadow(0 5px 10px rgba(0, 0, 0, 0.25));

  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.brand:hover .brand-logo {
  transform: rotate(-5deg) scale(1.06);

  filter:
    drop-shadow(0 0 13px rgba(240, 204, 105, 0.55))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: #fff4d8;
  font-family: "Eczar", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.brand-text small {
  margin-top: 5px;
  color: #f0cc69;
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .brand-text small {
    display: none;
  }
}
/* Force the header logo to stay small */
.topbar .brand > img.brand-logo,
.site-header .brand > img.brand-logo {
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  flex: 0 0 52px !important;
}

