@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,800;1,400&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+Devanagari:wght@300;400;500;700&display=swap');

:root {
  /* The Modern Gallery Palette */
  --c-bg-canvas: #fcfcfc;
  /* Primary soothing canvas */
  --c-bg-room: #f4f4f0;
  /* Secondary structural block */
  --c-text-deep: #222222;
  /* High legibility charcoal */
  --c-text-muted: #888888;
  /* Archival metadata */
  --c-accent-blue: #1A365D;
  /* Institutional anchor */
  --c-accent-red: #C53030;
  /* Exhibition highlight */
  --c-border: #E2E2E2;
  /* Razor-thin structural grid lines */

  /* The 3-Font System */
  --font-exhibition: 'Playfair Display', serif;
  /* Massive, emotional headings */
  --font-plaque: 'Noto Sans Devanagari', sans-serif;
  /* Clean, clinical body text */
  --font-metadata: 'JetBrains Mono', monospace;
  /* Bespoke technical structure */

  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}





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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-plaque);
  background-color: var(--c-bg-canvas);
  color: var(--c-text-deep);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4 {
  font-family: var(--font-exhibition);
  color: var(--c-text-deep);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 2rem;
  color: #444;
  font-weight: 300;
}

a {
  color: var(--c-accent-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--c-accent-red);
  border-bottom-color: var(--c-accent-red);
}

/* The Guided Tour Wayfinding Elements */
.meta-label {
  font-family: var(--font-metadata);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  display: inline-block;
}

.meta-pill {
  font-family: var(--font-metadata);
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--c-border);
  border-radius: 50px;
  /* Slight nod to UI perfection without off-the-shelf rounding */
  color: var(--c-text-deep);
}



/* Structural Grids & Magazine Spreads */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* The Header - Pure Structural Line */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(252, 252, 252, 0.98);
  border-bottom: 1px solid var(--c-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 65px;
  max-width: 100%;
  padding: 0 4rem;
}

/* The Site Title (Exhibition Name) */
.site-title {
  font-family: var(--font-plaque);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-text-deep);
  border: none;
  letter-spacing: -0.02em;
}

.site-title span {
  color: var(--c-accent-red);
  font-weight: 800;
}

.site-title:hover {
  color: var(--c-accent-blue);
  opacity: 1;
  border: none;
}

/* Museum Plaque Navigation */
nav {
  justify-self: end;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  font-family: var(--font-plaque);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  transition: color 0.4s ease;
  padding: 0.5rem;
}

nav a:hover,
nav a.active {
  color: var(--c-text-deep);
  border: none;
}

/* Prevent Hindi ligatures (Shirekha) from breaking due to letter-spacing */
nav a[href*="xn--"] {
  letter-spacing: normal !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--c-text-deep);
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
  z-index: 1002;
}

.mobile-menu-btn:hover,
.mobile-menu-btn.active {
  background: rgba(0, 0, 0, 0.05);
}

/* Hero Section (The Foyer) */
main {
  padding: 0;
  min-height: 100vh;
}

.hero {
  position: relative;
  padding: 180px 4rem 100px 4rem;
  background-color: var(--c-bg);
  border-bottom: 2px solid var(--c-border);
  min-height: 90vh;
  display: flex;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 20;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  font-family: var(--font-plaque);
}

.hero-subtitle::before {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.5rem;
  background-color: var(--c-accent-blue);
  margin-right: 1.5rem;
}

.hero p {
  font-size: 1.4rem;
  max-width: 700px;
  line-height: 1.6;
  color: var(--c-text-deep);
  font-family: var(--font-exhibition);
  font-style: italic;
}

/* The Transparent Cinematic Portrait Overlay in Hero */
.hero-portrait-wrapper {
  position: absolute;
  right: 0;
  bottom: -15px;
  height: 85vh;
  width: 50%;
  opacity: 0.95;
  pointer-events: none;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
}

.hero-portrait-wrapper img {
  height: 100%;
  object-fit: contain;
  object-position: right;
  filter: contrast(1.05) drop-shadow(-100px 0 30px rgba(0, 0, 0, 0.05));
  padding-top: 4rem;
}

/* Magazine Guided Section Spread */
.guided-section {
  margin-top: 5rem;
  margin-bottom: 5rem;
  scroll-margin-top: 150px;
}

.spread-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 6rem;
  position: relative;
}

/* Wayfinding Axis */
.tour-axis {
  position: relative;
}

.tour-axis::before {
  content: '';
  position: absolute;
  right: -3rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--c-border);
}

.sticky-label {
  position: sticky;
  top: 150px;
}

/* Unboxed Naked Content */
.gallery-list {
  list-style: none;
}

.gallery-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.gallery-item .btn {
  align-self: flex-end;
  margin-top: 1rem;
}

.gallery-list.compact .gallery-item {
  padding: 1.5rem 0;
}

.gallery-item:first-child {
  padding-top: 0;
}

.gallery-item:hover {
  transform: translateX(10px);
}

.gallery-meta {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-title {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.gallery-item:hover .gallery-title {
  color: var(--c-accent-red);
}

.gallery-item p {
  font-size: 1.15rem;
  max-width: 650px;
}

/* The Framed Artwork (Images) */
.artwork-frame {
  margin: 6rem 0;
  width: 100%;
  overflow: hidden;
  background: var(--c-bg-room);
  padding: 4rem;
  text-align: center;
}

.artwork-frame img {
  max-width: 100%;
  max-height: 70VH;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  display: inline-block;
}

.artwork-caption {
  font-family: var(--font-metadata);
  font-size: 0.9rem;
  color: var(--c-text-muted);
  margin-top: 1rem;
  display: block;
}

.artwork-credit {
  font-family: var(--font-exhibition);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  font-style: italic;
  margin-top: 0rem;
  display: block;
}

.artwork-credit a {
  color: var(--c-text-muted);
}

/* Buttons as Typographic Links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--font-metadata);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .45em;
  font-size: 0.85rem;
  border: none;
  color: var(--c-text-deep);
  cursor: pointer;
  border-bottom: 1px solid var(--c-text-deep);
}

.btn svg {
  transition: transform 0.4s ease;
}

.btn:hover {
  color: var(--c-accent-red);
  border-bottom-color: var(--c-accent-red);
}

.btn:hover svg {
  transform: translateX(8px);
}

/* Interests Grid Layout */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.interest-card {
  background: var(--c-bg-room);
  padding: 1rem 1.2rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.interest-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent-red);
}

.interest-card .meta-pill {
  margin-bottom: 0.5rem;
}

.interest-card .gallery-title {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.interest-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.interest-card .btn {
  margin-top: auto;
  align-self: flex-start;
}


/* Only override what you need */
.btn-url {
  text-transform: lowercase;
  letter-spacing: 0.05em;
  gap: 0;
  padding: 0.4rem 0;
  align-self: flex-end;

}

.btn-url .ext-icon {
  opacity: 0;
  transform: translateX(-6px);
  margin-left: 0;
  transition: all 0.2s ease;
}

.btn-url:hover .ext-icon {
  opacity: 1;
  transform: translateX(0);
  margin-left: 6px;
  visibility: visible;
}

/* Minimal Contact */
.contact-room {
  background: var(--c-bg-room);
  padding: 12rem 0;
  text-align: center;
  border-top: 1px solid var(--c-border);
}

.email-massive {
  font-family: var(--font-metadata);
  font-size: clamp(1rem, 4vw, 4rem);
  font-style: italic;
  color: var(--c-text-deep);
  border: none;
  letter-spacing: -0.03em;
}

.email-massive:hover {
  color: var(--c-accent-red);
  border: none;
}

.email-other {
  font-family: var(--font-plaque);
  /* font-size: clamp(2rem, 4vw, 4rem); */
  font-style: normal;
  color: var(--c-text-deep);
  border: none;
  letter-spacing: -0.03em;
}

.email-other:hover {
  color: var(--c-accent-red);
  border: lch(from color lightness chrome hue alpha);
}

/* Scroll Nudge */
.scroll-nudge {
  position: absolute;
  bottom: 40px;
  right: 4rem;
  font-family: var(--font-metadata);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-text-deep);
  text-transform: uppercase;
  display: flex;
  z-index: 10 !important;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  border-bottom: none;
  animation: bounce 2.5s infinite cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.6));
}

.scroll-nudge:hover {
  border-bottom: none;
  color: var(--c-accent-red);
}

.scroll-nudge i {
  font-size: 0.9rem;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-8px);
  }

  60% {
    transform: translateY(-4px);
  }
}


/* Footer */
footer {
  background: var(--c-bg-canvas);
  color: var(--c-text-deep);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--c-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-text {
  font-family: var(--font-plaque);
  font-size: 1.1rem;
  color: var(--c-text-muted);
  max-width: 400px;
}

.footer-bottom {
  font-family: var(--font-metadata);
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom ul a {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
}

.footer-bottom ul a:hover {
  color: var(--c-accent-red);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .spread-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tour-axis::before {
    display: none;
  }

  .sticky-label {
    position: static;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 1rem;
  }

  .hero-portrait-wrapper {
    width: 70%;
    right: 0;
    opacity: 0.4;
  }

  /* Fade out on smaller screens so text is readable */
}

@media (max-width: 768px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    height: 60px;
    position: relative;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  nav {
    position: static;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(252, 252, 252, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem 1.25rem 4rem 1.25rem;
    gap: 0.25rem;
    border-top: 1px solid var(--c-border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }

  nav ul.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav a {
    font-size: 1.05rem;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--c-border);
    display: block;
    width: 100%;
    color: var(--c-text-deep);
  }

  nav a.active {
    color: var(--c-accent-red);
    font-weight: 700;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 110px 1.25rem 40px 1.25rem;
    min-height: auto;
  }

  /* Hide hero portrait image on mobile view for Home Page ONLY */
  .hero-home .hero-portrait-wrapper {
    display: none !important;
  }

  /* Mobile portrait framing for About page: from top of head down to 3rd button, slightly bigger */
  .hero-portrait-wrapper {
    position: absolute !important;
    width: 58% !important;
    max-width: 240px !important;
    height: 70% !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    opacity: 0.35 !important;
    display: flex !important;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
  }

  .hero-portrait-wrapper img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: top right !important;
    padding-top: 0 !important;
  }

  /* Scoped Homepage Mobile Hero Refactor */
  .hero-home {
    padding: 110px 1.25rem 55px 1.25rem;
    min-height: auto;
    background: radial-gradient(circle at 80% 20%, rgba(240, 240, 240, 0.5) 0%, transparent 60%);
    border-bottom: 1px solid var(--c-border);
  }

  .hero-home .hero-content {
    width: 100%;
    max-width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-home .hero-subtitle {
    justify-content: flex-start;
    margin-bottom: 1rem;
  }

  .hero-home h1 {
    font-size: clamp(2.4rem, 9.5vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
  }

  .hero-home p {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #333;
    margin-bottom: 2rem;
  }

  .hero-home .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem !important;
    width: 100%;
  }

  .hero-home .btn-group .btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.85rem;
  }

  .hero-home .btn-group .btn:first-child {
    background: var(--c-text-deep);
    color: #ffffff;
    border-color: var(--c-text-deep);
  }

  .hero-home .btn-group .btn:first-child svg {
    stroke: #ffffff;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
    z-index: 2;
  }

  .hero-subtitle {
    justify-content: center;
  }

  h1 {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    margin-bottom: 1.5rem;
    word-break: break-word;
  }

  h2 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    margin-bottom: 1.5rem;
  }

  .btn-group {
    flex-direction: column;
    gap: 1rem !important;
    align-items: stretch;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: space-between;
  }

  .interests-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .interest-card {
    padding: 1.25rem;
  }

  .spread-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .tour-axis::before {
    display: none;
  }

  .sticky-label {
    position: static;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 1rem;
  }

  .artwork-frame {
    padding: 1rem;
    margin: 3rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-bottom ul {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .scroll-nudge {
    right: 1.25rem;
    bottom: 15px;
    text-shadow: none !important;
    filter: none !important;
  }

  .desktop-only {
    display: none !important;
  }

  .email-massive,
  .email-other {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .focus-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .focus-nav-card {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.15rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .btn {
    letter-spacing: 0.2em;
    font-size: 0.8rem;
  }
}

/* Realistic Hand-Drawn Highlighter (Preset A: Organic Jagged Chisel-Tip Sweep) */
.highlight-raw,
.highlight-raw-inline {
  display: inline;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cpath fill='%23Fbf719' fill-opacity='0.88' d='M1,35 Q20,10 50,30 T96,15 L98,82 Q70,95 40,80 T1,88 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0.12em 0.35em;
  margin: 0 -0.35em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.highlight-raw-inline {
  padding: 0.15em 0.35em;
}

/* Outer container when child .hl-seq-line spans exist must NOT draw background */
.highlight-raw.has-seq,
.highlight-raw-inline.has-seq {
  background-image: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Once-Only Scroll-Triggered Highlight & Hover State for Single-Span Highlighters */
.highlight-raw:not(.has-seq).highlighted,
.highlight-raw-inline:not(.has-seq).highlighted,
.highlight-raw:not(.has-seq):hover,
.highlight-raw-inline:not(.has-seq):hover {
  background-size: 100% 100%;
}

/* Multi-Line Sequential Child Delays (Preset A: 0.45s stroke + 0.25s end gap) */
.hl-seq-line {
  display: inline;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 100 100'%3E%3Cpath fill='%23Fbf719' fill-opacity='0.88' d='M1,35 Q20,10 50,30 T96,15 L98,82 Q70,95 40,80 T1,88 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 0.15em 0.35em;
  margin: 0 -0.35em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.highlight-raw.highlighted .hl-seq-line:nth-child(1),
.highlight-raw-inline.highlighted .hl-seq-line:nth-child(1) {
  transition-delay: 0s;
  background-size: 100% 100%;
}

.highlight-raw.highlighted .hl-seq-line:nth-child(2),
.highlight-raw-inline.highlighted .hl-seq-line:nth-child(2) {
  transition-delay: 0.70s;
  background-size: 100% 100%;
}

.highlight-raw.highlighted .hl-seq-line:nth-child(3),
.highlight-raw-inline.highlighted .hl-seq-line:nth-child(3) {
  transition-delay: 1.40s;
  background-size: 100% 100%;
}

.highlight-raw.highlighted .hl-seq-line:nth-child(4),
.highlight-raw-inline.highlighted .hl-seq-line:nth-child(4) {
  transition-delay: 2.10s;
  background-size: 100% 100%;
}

/* CV Mockup Stack in Hero */
.cv-mockup-wrapper {
  position: absolute;
  right: 4rem;
  bottom: -40px;
  top: 40%;
  /* Align to the bottom of the hero section, slightly overflowing */
  height: 100%;
  width: 45%;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  /* Align the stack to the bottom */
  pointer-events: none;
  /* Let clicks pass through */
}

.cv-mockup-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.cv-mockup-page {
  width: 100%;
  height: auto;
  box-shadow: -15px 20px 40px rgba(0, 0, 0, 0.12), -2px 5px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
  border-radius: 2px;
  transform-origin: center bottom;
  background-color: #fff;
}

/* Stacking order and natural messy spread */
/* Bottom-most page (CV 3) */
.cv-mockup-page:nth-child(1) {
  position: relative;
  z-index: 1;
  transform: rotate(4deg) translate(20px, 0px);
}

/* Middle page (CV 2) */
.cv-mockup-page:nth-child(2) {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  transform: rotate(0deg) translate(-5px, -20px);
}

/* Top-most page (CV 1) */
.cv-mockup-page:nth-child(3) {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  transform: rotate(-3deg) translate(-30px, -40px);
}

@media (max-width: 1024px) {
  .cv-mockup-wrapper {
    width: 60%;
    right: 2rem;
    opacity: 0.8;
  }

  .cv-mockup-stack {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .cv-mockup-wrapper {
    display: none;
    /* Hide on mobile to keep it clean */
  }
}

/* CV Instructions Grid */
.cv-instructions-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 5rem 0;
}

.instruction-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

.instruction-text p {
  font-size: 1.25rem;
  line-height: 1.8;
}

.instruction-image-container {
  position: relative;
  width: 100%;
}

.cv-page-demo {
  width: 100%;
  aspect-ratio: 1117 / 450;
  object-fit: cover;
  object-position: top;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--c-border);
  border-radius: 4px;
}

/* Pulsing Targets */
.cv-target-point {
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(197, 48, 48, 0.1);
  border: 2px solid var(--c-accent-red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulsePoint 2s infinite;
  z-index: 5;
}

.qr-target {
  top: 33.3%;
  left: 13.5%;
}

.link-target {
  top: 46.5%;
  left: 16.5%;
  width: 100px;
  height: 15px;
  border-radius: 4px;
}

/* Hover Interactivity for CV Instructions */
.cv-instruction-overlay,
.cv-target-point {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cv-instructions-grid:hover .cv-instruction-overlay,
.cv-instructions-grid:hover .cv-target-point {
  opacity: 1;
}

@keyframes pulsePoint {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 48, 48, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(197, 48, 48, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(197, 48, 48, 0);
  }
}

@media (max-width: 1024px) {
  .cv-instructions-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
}

/* Focus Navigation (Bottom of Focus Area Pages) */
.focus-nav-section {
  margin-top: 6rem;
  border-top: 1px solid var(--c-border);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.focus-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.focus-nav-card {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  background-size: cover;
  background-position: center;
}

.focus-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background 0.4s ease;
}

.focus-nav-card:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

.focus-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-bottom: none;
}

.focus-nav-title {
  position: relative;
  z-index: 2;
  color: white;
  font-family: var(--font-exhibition);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Unique Directory Catalog Layout */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem 3.5rem;
  margin-top: 1.5rem;
}

.directory-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.directory-item:hover {
  transform: translateX(6px);
  border-bottom-color: var(--c-text-deep);
}

.directory-num {
  font-family: var(--font-metadata);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text-muted);
  line-height: 1.2;
}

.directory-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.directory-body .meta-label {
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}

.directory-body h3 {
  font-family: var(--font-exhibition);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--c-text-deep);
}

.directory-body p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.directory-link {
  font-family: var(--font-metadata);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-text-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  border-bottom: none;
}

.directory-link:hover {
  color: var(--c-accent-red);
  border-bottom: none;
}

.directory-link i {
  transition: transform 0.3s ease;
}

.directory-link:hover i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .directory-item {
    gap: 1rem;
    padding: 1.25rem 0;
  }

  .directory-num {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   UI Kit Expanded Components
   ========================================================================== */

/* 11. Hero CTA Row */
.hero-cta-row {
  background: var(--c-bg-room);
  padding: 6rem 4rem;
  text-align: center;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-cta-row h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-cta-row p {
  font-size: 1.25rem;
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.hero-cta-row .btn-group {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

/* 12. TOC Rail / Sticky Index */
.toc-container {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.toc-rail {
  position: sticky;
  top: 120px;
  min-width: 200px;
  border-left: 1px solid var(--c-border);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toc-rail-title {
  font-family: var(--font-metadata);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-text-deep);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.toc-link {
  font-family: var(--font-metadata);
  font-size: 0.8rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: none;
  transition: all 0.3s ease;
  position: relative;
}

.toc-link::before {
  content: '';
  position: absolute;
  left: -1.5rem; /* align with border */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--c-accent-red);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: top;
}

.toc-link:hover, .toc-link.active {
  color: var(--c-text-deep);
  border-bottom: none;
}

.toc-link.active::before {
  transform: scaleY(1);
}

.toc-content-area {
  flex: 1;
}

/* 13. Form Elements */
.form-group {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-metadata);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-text-deep);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.input-minimal,
.textarea-minimal,
.select-minimal {
  width: 100%;
  padding: 0.75rem 0;
  font-family: var(--font-plaque);
  font-size: 1.1rem;
  color: var(--c-text-deep);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-border);
  border-radius: 0;
  transition: border-color 0.3s ease;
  outline: none;
}

.input-minimal::placeholder,
.textarea-minimal::placeholder {
  color: var(--c-text-muted);
}

.input-minimal:focus,
.textarea-minimal:focus,
.select-minimal:focus {
  border-bottom-color: var(--c-accent-red);
}

.textarea-minimal {
  resize: vertical;
  min-height: 100px;
}

.select-minimal {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}

.checkbox-radio-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.checkbox-radio-group input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--c-border);
  display: grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.checkbox-radio-group input[type="radio"] {
  border-radius: 50%;
}

.checkbox-radio-group input::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--c-accent-red);
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
}

.checkbox-radio-group input[type="radio"]::before {
  border-radius: 50%;
}

.checkbox-radio-group input[type="checkbox"]::before {
  background-color: var(--c-accent-red);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-radio-group input:checked::before {
  transform: scale(1);
}

.checkbox-radio-group input:checked {
  border-color: var(--c-accent-red);
}

.checkbox-radio-label {
  font-family: var(--font-plaque);
  font-size: 1rem;
  color: #444;
}

/* 14. Content Cards */
.content-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.content-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.content-card:hover {
  transform: translateY(-5px);
}

.content-card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--c-bg-room);
  border: 1px solid var(--c-border);
}

.content-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.content-card:hover .content-card-img-wrap img {
  transform: scale(1.05);
}

.content-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.content-card-meta .meta-date {
  font-family: var(--font-metadata);
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.content-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.content-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.content-card .btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.5rem 0;
  font-size: 0.75rem;
}

/* 15. Trust / Credibility Blocks */
.credibility-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
  justify-content: center;
  margin: 3rem 0;
}

.credibility-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: all 0.4s ease;
}

.credibility-logos img:hover {
  filter: grayscale(0%) opacity(1);
}

.affiliation-list {
  list-style: none;
  border-top: 1px solid var(--c-border);
}

.affiliation-list li {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--c-border);
}

.affiliation-year {
  font-family: var(--font-metadata);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  min-width: 80px;
}

.affiliation-details h4 {
  font-family: var(--font-exhibition);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: var(--c-text-deep);
}

.affiliation-details p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #555;
}

/* 16. Footer Utility Strip */
.footer-utility {
  background: var(--c-bg-room);
  padding: 1rem 0;
  border-top: 1px solid var(--c-border);
}

.footer-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-metadata);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.footer-utility-links {
  display: flex;
  gap: 2rem;
}

.footer-utility-links a {
  color: var(--c-text-muted);
  border: none;
}

.footer-utility-links a:hover {
  color: var(--c-accent-red);
}

/* 17. Accessibility Showcase */
.a11y-focus-demo {
  padding: 2rem;
  background: #fff;
  border: 1px dashed var(--c-border);
  border-radius: 4px;
}

/* Global Focus Styles for entire site - explicitly defined for A11y */
:focus-visible {
  outline: 2px solid var(--c-accent-red);
  outline-offset: 4px;
}

@media (max-width: 768px) {
  .hero-cta-row {
    padding: 4rem 1.5rem;
  }
  
  .toc-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .toc-rail {
    position: static;
    width: 100%;
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 1.5rem;
  }

  .toc-link::before {
    display: none;
  }

  .credibility-logos {
    gap: 2rem;
  }
  
  .affiliation-list li {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-utility-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}