/* ==========================================================================
   CCW SOCIETY — Production Stylesheet
   The Civil Construction Wing AIR & Doordarshan & NFDC Employees
   Cooperative Thrift & Credit Society Ltd., Chennai (Est. 15 May 1992)
   Reg: MSCS/CR/25/1992
   Universal Compatibility: Zero runtime/build dependencies
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  --viewport: #fdf8f3;
  --shell: #fdf8f3;
  --background: #fdf8f3;
  --foreground: #262626;
  --ink: #262626;
  --ink-deep: #1d1d1d;
  --primary: #1d1d1d;
  --primary-foreground: #fdf8f3;
  --surface: #f5f0eb;
  --secondary: #f5f0eb;
  --secondary-foreground: #262626;
  --card: #ffffff;
  --card-foreground: #262626;
  --subtle: #55504c;
  --muted: #f5f0eb;
  --muted-foreground: #6b645e;
  
  /* Institutional Royal Navy & Gold Theme */
  --accent: #153364;
  --accent-foreground: #ffffff;
  --rose: #153364;
  --rose-foreground: #ffffff;
  --rose-tint: #eaf0f8;
  --emerald: #153364;
  --brass: #D4AF37;
  
  --aurora-start: #D4AF37;
  --aurora-mid: #F5C842;
  --aurora-end: #8C5817;
  
  --destructive: #a2261e;
  --destructive-foreground: #ffffff;
  --border: rgba(38, 38, 38, 0.12);
  --rule: #e5dcd3;
  --inverse-rule: rgba(253, 248, 243, 0.18);
  --inverse-muted: #cfc6bd;
  --input: #8c847d;
  --ring: #153364;
  --glass: #ffffff;
  --glass-hover: rgba(38, 38, 38, 0.05);
  --chapter: #1d1d1d;
  --chapter-foreground: #fdf8f3;
  
  --shadow-neon: 0 10px 30px -12px rgba(21, 51, 100, 0.45);
  --shadow-emblem: 0 8px 22px rgba(21, 51, 100, 0.15);
  --emblem-background: #ffffff;
  --nav-scrim: rgba(21, 51, 100, 0.4);
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --t-micro: 160ms;
  --t-std: 240ms;
  --t-reveal: 1000ms;

  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Dark inverse editorial sections (e.g. Registered Seat, Footer) */
.inverse {
  --background: #1d1d1d;
  --foreground: #fdf8f3;
  --surface: #262626;
  --card: #222222;
  --card-foreground: #fdf8f3;
  --subtle: #d6cdc4;
  --muted-foreground: #b3aaa2;
  --accent: #60a5fa;
  --border: rgba(253, 248, 243, 0.16);
  --rule: rgba(253, 248, 243, 0.16);
  --ring: #60a5fa;
  --glass: rgba(253, 248, 243, 0.05);
  --glass-hover: rgba(253, 248, 243, 0.1);
  --input: #b3aaa2;
  background-color: var(--background);
  color: var(--foreground);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: inherit;
}

p, ul, ol, dl, table, blockquote {
  margin-bottom: 0;
}

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

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-foreground);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

/* Screen reader accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Typography & Utility Classes
   ========================================================================== */

.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.label-mono {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.5;
}

.micro-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.mega-number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.outline-text {
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent;
}

.tabular-nums { font-variant-numeric: tabular-nums; }
.break-words { overflow-wrap: break-word; }
.break-all { word-break: break-all; }

/* Colors */
.text-foreground { color: var(--foreground); }
.text-subtle { color: var(--subtle); }
.text-accent { color: var(--accent); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-destructive { color: var(--destructive); }
.text-inverse-muted { color: var(--inverse-muted); }
.text-primary-foreground { color: var(--primary-foreground); }

.bg-surface { background-color: var(--surface); }
.bg-card { background-color: var(--card); }
.bg-ink { background-color: var(--ink); }
.bg-ink-deep { background-color: var(--ink-deep); }
.bg-rose { background-color: var(--rose); }
.bg-rose-tint { background-color: var(--rose-tint); }
.bg-primary { background-color: var(--primary); }

.border-border { border-color: var(--border); }
.border-rule { border-color: var(--rule); }
.border-accent { border-color: var(--accent); }
.border-foreground { border-color: var(--foreground); }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.container-wide {
  width: 100%;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container-wide {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Drafting Grid Background */
.drafting-grid {
  background-image: 
    linear-gradient(to right, rgba(38, 38, 38, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 38, 38, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.inverse .drafting-grid {
  background-image: 
    linear-gradient(to right, rgba(253, 248, 243, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(253, 248, 243, 0.05) 1px, transparent 1px);
}

/* Glass Panels */
.glass-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: transform var(--t-std) var(--ease-out), box-shadow var(--t-std) var(--ease-out);
}
.glass-panel:hover {
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.08);
}

/* Link Draw Animation */
.link-draw {
  position: relative;
  display: inline-block;
}
.link-draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
.link-draw:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Arrow Links */
.arrow-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  font-weight: 600;
  color: var(--foreground);
  transition: border-color var(--t-std) var(--ease-out), color var(--t-std) var(--ease-out);
}
.arrow-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.arrow-link span.arrow {
  display: inline-block;
  transition: transform var(--t-std) var(--ease-out);
}
.arrow-link:hover span.arrow {
  transform: translateX(6px);
}
.inverse .arrow-link {
  border-bottom-color: var(--inverse-muted);
  color: var(--foreground);
}
.inverse .arrow-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-std) var(--ease-out);
  text-align: center;
  border: 1px solid transparent;
}
.btn:active {
  transform: scale(0.98);
}
.btn-neon {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
  box-shadow: var(--shadow-neon);
}
.btn-neon:hover {
  background-color: #0e2346;
  border-color: #0e2346;
  box-shadow: 0 12px 36px -10px rgba(21, 51, 100, 0.6);
}
.btn-glass {
  background-color: #ffffff;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-glass:hover {
  background-color: var(--surface);
  border-color: var(--foreground);
}
.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Status Stamp */
.status-stamp {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  color: var(--accent);
}

/* Floating Credential Badge */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.est-badge {
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  animation: bounce-slow 4s ease-in-out infinite;
  box-shadow: 0 18px 40px -18px rgba(21, 51, 100, 0.5);
}
@media (min-width: 768px) {
  .est-badge {
    width: 160px;
    height: 160px;
  }
}

/* Community Emblems */
.emblem-frame {
  background: var(--emblem-background);
  padding: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--rule);
  flex-shrink: 0;
  transition: box-shadow var(--t-std) var(--ease-out), transform var(--t-std) var(--ease-out);
}
.emblem-frame.size-sm {
  width: 3.5rem;
  height: 3.5rem;
}
.emblem-frame.size-md {
  width: 7rem;
  height: 7rem;
}
@media (min-width: 768px) {
  .emblem-frame.size-md {
    width: 8rem;
    height: 8rem;
  }
}
.emblem-frame img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}
.group:hover .emblem-frame,
.group:focus-within .emblem-frame {
  transform: translateY(-3px);
  box-shadow: var(--shadow-emblem);
}

/* Section Headings */
.section-head {
  margin-bottom: 3rem;
  border-top: 1px solid var(--foreground);
  padding-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .section-head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .section-head-label { grid-column: span 3; }
  .section-head-content { grid-column: span 9; }
}

/* ==========================================================================
   Header & Pill Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--t-std) var(--ease-out);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.wordmark-badge {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.wordmark-title {
  display: block;
  white-space: nowrap;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.wordmark-sub {
  margin-top: 0.25rem;
  display: none;
  max-width: 34rem;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--subtle);
}
@media (min-width: 768px) {
  .wordmark-sub {
    display: block;
  }
}

/* Pill Navigation Desktop */
.pill-nav {
  display: flex;
  align-items: center;
}
.pill-desktop {
  display: none;
}
@media (min-width: 1120px) {
  .pill-desktop {
    display: block;
  }
  .pill-toggle {
    display: none !important;
  }
}
.pill-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  background: var(--surface);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}
.pill-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--subtle);
  transition: color var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out);
}
.pill-link:hover {
  color: var(--foreground);
  background-color: rgba(38, 38, 38, 0.06);
}
.pill-link[aria-current="page"] {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* Mobile Toggle & Drawer */
.pill-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 6px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border: none;
  cursor: pointer;
}
.pill-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(21, 51, 100, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pill-mobile-overlay.active {
  display: block;
}
.pill-mobile-panel {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  background-color: var(--background);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: panel-in 240ms var(--ease-out) both;
}
.pill-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}
.pill-mobile-link[aria-current="page"] {
  color: var(--accent);
}

/* ==========================================================================
   Hero & Atmosphere
   ========================================================================== */

.hero-atmosphere {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.aurora-canvas-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.aurora-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-watermark {
  font-size: clamp(2.6rem, 10vw, 9.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  opacity: 0.18;
  overflow-wrap: anywhere;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */

.enquiry-input {
  width: 100%;
  border: 1px solid var(--input);
  background: #ffffff;
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out);
}
.enquiry-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 51, 100, 0.15);
}
.inverse .enquiry-input {
  background: var(--surface);
  color: var(--foreground);
  border-color: var(--border);
}

/* ==========================================================================
   Accordion & Interactive Elements
   ========================================================================== */

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease-out);
}
.acc-body[data-open="true"] {
  grid-template-rows: 1fr;
}
.acc-body > div {
  overflow: hidden;
}

/* Notice Box */
.notice-box {
  display: grid;
  gap: 0.75rem;
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
@media (min-width: 640px) {
  .notice-box {
    grid-template-columns: 10rem 1fr;
  }
}

/* Fact Lists */
.fact-list {
  border-top: 1px solid var(--border);
}
.fact-item {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
@media (min-width: 640px) {
  .fact-item {
    grid-template-columns: 12rem 1fr;
    gap: 1.5rem;
  }
}
.fact-label {
  padding-top: 0.25rem;
  color: var(--subtle);
}
.fact-value {
  font-size: 1.125rem;
  color: var(--foreground);
  word-break: break-word;
}

/* ==========================================================================
   Scroll Reveal System (Progressive Enhancement)
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal[data-in="true"] {
  opacity: 1;
  transform: none;
}

.js .reveal-mask {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1000ms var(--ease-inout);
  transition-delay: var(--d, 0ms);
}
.js .reveal-mask[data-in="true"] {
  clip-path: inset(0 0 0 0);
}

.js .reveal-rule {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal-rule[data-in="true"] {
  transform: none;
}

/* SVG Line Drawing */
.js .draw path,
.js .draw line,
.js .draw polyline,
.js .draw rect,
.js .draw circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1200ms var(--ease-inout);
  transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 45ms);
}
.js .draw[data-in="true"] path,
.js .draw[data-in="true"] line,
.js .draw[data-in="true"] polyline,
.js .draw[data-in="true"] rect,
.js .draw[data-in="true"] circle {
  stroke-dashoffset: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal, .js .reveal-mask, .js .reveal-rule {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .js .draw * {
    stroke-dashoffset: 0 !important;
  }
  .est-badge {
    animation: none;
  }
}


/* Filter Buttons for Records Catalogue */
.filter-btn {
  min-height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(38, 38, 38, 0.25);
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all var(--t-micro) var(--ease-out);
}
.filter-btn:hover {
  background-color: var(--glass-hover);
}
.filter-btn[aria-pressed="true"], .filter-btn.active {
  border-color: var(--foreground);
  background-color: var(--ink);
  color: var(--primary-foreground);
}

/* FAQ Icon rotation */
.faq-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 300ms var(--ease-out), background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.faq-icon.rotate-45 {
  transform: rotate(45deg);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Table styles */
.table-responsive {
  width: 100%;
  border-collapse: collapse;
}
.table-responsive th, .table-responsive td {
  text-align: left;
}


/* Hero layout responsive positioning */
@media (min-width: 1024px) {
  .hero-content-col {
    grid-column: span 9 !important;
  }
  .hero-badge-col {
    grid-column: span 3 !important;
    padding-top: 1.5rem;
  }
}

/* Ensure Aurora canvas is visible and fills hero properly */
.hero-atmosphere {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  min-height: 520px;
}
.aurora-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}
.aurora-canvas {
  width: 100%;
  height: 100%;
  display: block;
}


/* ==========================================================================
   Editorial 12-Column Layout & Sticky Side Details
   ========================================================================== */

.editorial-grid {
  display: grid;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .editorial-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2.5rem;
  }
  .grid-col-left {
    grid-column: span 4;
  }
  .grid-col-right {
    grid-column: 5 / span 8;
  }
  .grid-col-left-3 {
    grid-column: span 3;
  }
  .grid-col-right-9 {
    grid-column: 5 / span 8;
  }
  .grid-col-6-left {
    grid-column: span 6;
  }
  .grid-col-6-right {
    grid-column: 7 / span 6;
  }
  .grid-col-7-left {
    grid-column: span 7;
  }
  .grid-col-5-right {
    grid-column: 8 / span 5;
  }
  .sticky-side {
    position: sticky;
    top: 7rem;
  }
}

/* Contents Sticky Sidebar (About Page) */
.contents-nav {
  position: sticky;
  top: 7rem;
}
.contents-list {
  list-style: none;
  margin-top: 1rem;
  border-left: 1px solid var(--border);
  padding-left: 0;
}
.contents-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--subtle);
  border-left: 2px solid transparent;
  margin-left: -1px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.contents-item:hover {
  color: var(--foreground);
}
.contents-item.active,
.contents-item[aria-current="true"] {
  border-left-color: var(--accent);
  color: var(--foreground);
  font-weight: 700;
}

/* ==========================================================================
   PillNav Motion UI & Liquid Hover Physics
   ========================================================================== */

.pill-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  background: var(--surface);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
}

.pill-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--subtle);
  text-decoration: none;
  cursor: pointer;
  transform: translateZ(0);
}

.pill-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.pill-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-label-hover {
  position: absolute;
  z-index: 2;
  display: inline-block;
  color: #ffffff !important;
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.pill-link:hover .pill-circle,
.pill-link:focus-visible .pill-circle {
  transform: scale(1.25) !important;
}

.pill-link:hover .pill-label,
.pill-link:focus-visible .pill-label {
  transform: translateY(-24px);
}

.pill-link:hover .pill-label-hover,
.pill-link:focus-visible .pill-label-hover {
  transform: translateY(0);
  opacity: 1;
}

/* Active navigation state */
.pill-link[aria-current="page"] {
  background-color: var(--accent);
}
.pill-link[aria-current="page"] .pill-label {
  color: #ffffff !important;
}
.pill-link[aria-current="page"] .pill-circle {
  display: none;
}

/* Wordmark Badge 360 Elastic Spin */
.wordmark-badge {
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header-wordmark:hover .wordmark-badge {
  transform: rotate(360deg);
}

/* Hero Button Motion UI */
.btn-neon {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(21, 51, 100, 0.55);
}
.btn-glass {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glass:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
