/* ===================================================
   Justice N.V. Anjaria – Official Website
   Design System: "Living Legal Mind"
   =================================================== */

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

/* ----- CSS Custom Properties ----- */
:root {
  /* Core Palette */
  --charcoal: #0e0e10;
  --charcoal-light: #1a1a1f;
  --charcoal-mid: #252530;
  --ivory: #f5f0e8;
  --ivory-soft: #ebe5d9;
  --ivory-muted: #d4cfc6;
  --gold: #b8943e;
  --gold-muted: #9a7d3a;
  --gold-light: #d4b058;
  --gold-glow: rgba(184, 148, 62, 0.15);
  --blue-grey: #7a8a9e;
  --blue-grey-light: #9baab8;
  --blue-grey-dark: #5a6a7e;
  --node-line: rgba(184, 148, 62, 0.12);
  --glass-bg: rgba(14, 14, 16, 0.75);
  --glass-border: rgba(184, 148, 62, 0.12);
  --glass-bg-light: rgba(245, 240, 232, 0.04);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --container-max: 1280px;
  --container-narrow: 960px;
  --nav-height: 72px;
  --section-gap: 120px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s var(--ease-in-out);
  --transition-slow: 0.6s var(--ease-out-expo);
  --transition-reveal: 0.8s var(--ease-out-expo);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--charcoal);
  color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-base);
}
a:hover { color: var(--gold-light); }

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

.img-isolated {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.section-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--charcoal-mid);
  margin-top: 40px;
  position: relative;
}

.section-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.1);
  transition: var(--transition-slow);
}

.section-visual:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 14, 16, 0.4) 100%);
  pointer-events: none;
}

ul, ol { list-style: none; }

button {
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

/* ----- Utility ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--blue-grey-light);
  max-width: 640px;
  line-height: 1.8;
}

/* ----- Reveal Animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ----- Glass Panel ----- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.glass-panel:hover {
  border-color: rgba(184, 148, 62, 0.25);
  transform: translateY(-2px);
}

/* ----- Node Background Canvas ----- */
#node-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.nav.scrolled {
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav__brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: 1px;
  line-height: 1.2;
}
.nav__brand-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--blue-grey-light);
  transition: color var(--transition-base);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition-base);
}
.nav__link:hover,
.nav__link.active {
  color: var(--ivory);
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  transition: var(--transition-base);
}
.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* =============================================
   HERO SECTIONS
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14,14,16,0.4) 0%,
    rgba(14,14,16,0.7) 50%,
    var(--charcoal) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 24px;
  max-width: 800px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__description {
  font-size: 1.1rem;
  color: var(--blue-grey-light);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-base);
  border-radius: 4px;
}
.hero__cta:hover {
  background: var(--gold);
  color: var(--charcoal);
}
.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}
.hero__cta:hover svg { transform: translateX(4px); }

/* ----- Page Hero (Inner Pages) ----- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 80px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,16,0.5) 0%, var(--charcoal) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
}

/* =============================================
   SECTION LAYOUTS
   ============================================= */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-gap) 0;
}
.section--alt {
  background: var(--charcoal-light);
}
.section__header {
  margin-bottom: 60px;
}

/* ----- Grid Systems ----- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* =============================================
   CARD COMPONENTS
   ============================================= */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.card:hover {
  border-color: rgba(184, 148, 62, 0.3);
  transform: translateY(-4px);
}

.card__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: 28px;
}
.card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.3;
}
.card__text {
  font-size: 0.9rem;
  color: var(--blue-grey-light);
  line-height: 1.7;
}

/* =============================================
   STAT / HIGHLIGHT BLOCKS
   ============================================= */
.stat-block {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
}
.stat-block__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-block__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-grey-light);
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-muted), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 48px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__node {
  position: absolute;
  left: -44px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}
.timeline__node::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold-muted);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}
.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.timeline__text {
  font-size: 0.92rem;
  color: var(--blue-grey-light);
  line-height: 1.8;
}

/* =============================================
   ACCORDION / EXPANDABLE
   ============================================= */
.accordion__item {
  border-bottom: 1px solid var(--glass-border);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ivory);
  text-align: left;
  transition: color var(--transition-base);
}
.accordion__trigger:hover { color: var(--gold); }
.accordion__icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--ivory);
  transition: transform var(--transition-base);
}
.accordion__icon::before {
  width: 14px; height: 1px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion__icon::after {
  width: 1px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion__item.active .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-in-out);
}
.accordion__content-inner {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--blue-grey-light);
  line-height: 1.8;
}

/* =============================================
   QUOTE BLOCK
   ============================================= */
.quote-block {
  position: relative;
  padding: 48px 0 48px 32px;
  border-left: 2px solid var(--gold);
}
.quote-block__text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.6;
  margin-bottom: 16px;
}
.quote-block__author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* =============================================
   CONTACT FORM
   ============================================= */
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-grey-light);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--charcoal-mid);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-base);
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: var(--transition-base);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 1;
  background: var(--charcoal-light);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 12px;
}
.footer__brand-text {
  font-size: 0.88rem;
  color: var(--blue-grey);
  line-height: 1.7;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer__link {
  display: block;
  font-size: 0.88rem;
  color: var(--blue-grey-light);
  margin-bottom: 10px;
  transition: color var(--transition-base);
}
.footer__link:hover { color: var(--ivory); }

.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-grey-light);
  transition: var(--transition-base);
}
.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--blue-grey);
}
.footer__credit a {
  color: var(--gold);
}

/* =============================================
   GATEWAY PAGE
   ============================================= */
.gateway {
  position: fixed;
  inset: 0;
  background: var(--charcoal) url('images/gateway/gateway-entry.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
}

.gateway__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 2px;
  opacity: 0.08;
  pointer-events: none;
}
.gateway__grid-cell {
  border: 1px solid var(--gold-muted);
  transition: all 1.2s var(--ease-out-expo);
}
.gateway--error .gateway__grid-cell {
  transform: rotate(var(--r, 0deg)) translate(var(--tx, 0), var(--ty, 0));
  opacity: 0.3;
  border-color: #8b3a3a;
}
.gateway--success .gateway__grid-cell {
  border-color: var(--gold);
  opacity: 0.2;
}

.gateway__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  padding: 0 24px;
}

.gateway__emblem {
  width: 64px;
  height: 64px;
  margin: 0 auto 32px;
  position: relative;
}
.gateway__emblem svg {
  width: 100%;
  height: 100%;
  color: var(--gold);
}

.gateway__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 8px;
}
.gateway__subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-grey);
  margin-bottom: 48px;
}

.gateway__input-wrap {
  position: relative;
  margin-bottom: 24px;
}
.gateway__input {
  width: 100%;
  padding: 18px 24px;
  background: var(--charcoal-light);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
  transition: border-color var(--transition-base);
}
.gateway__input:focus {
  outline: none;
  border-color: var(--gold);
}
.gateway__input::placeholder {
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--blue-grey);
  text-transform: none;
}
.gateway--error .gateway__input {
  border-color: #8b3a3a;
  animation: shake 0.5s ease;
}
.gateway--success .gateway__input {
  border-color: var(--gold);
}

.gateway__btn {
  padding: 14px 48px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: var(--transition-base);
  border-radius: 4px;
}
.gateway__btn:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.gateway__error-msg {
  font-size: 0.8rem;
  color: #c75050;
  margin-top: 16px;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.gateway--error .gateway__error-msg { opacity: 1; }

.gateway__fragments {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.gateway__fragment {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--ivory);
  opacity: 0.04;
  white-space: nowrap;
  transition: all 1.2s var(--ease-out-expo);
}
.gateway--error .gateway__fragment {
  opacity: 0.08;
  transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--fr, 0deg));
}
.gateway--success .gateway__fragment {
  opacity: 0.12;
  transform: translate(0) rotate(0);
}

/* Transition overlay */
.gateway__transition {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 20000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.gateway__transition.active {
  opacity: 1;
  pointer-events: all;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* =============================================
   HOMEPAGE SPECIFIC
   ============================================= */
.home-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.highlight-card {
  padding: 32px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  transition: var(--transition-base);
}
.highlight-card:hover {
  border-color: rgba(184, 148, 62, 0.3);
  transform: translateY(-2px);
}
.highlight-card__icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 20px;
}
.highlight-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.highlight-card__text {
  font-size: 0.88rem;
  color: var(--blue-grey-light);
  line-height: 1.7;
}

/* =============================================
   COURTS PAGE – Hierarchy
   ============================================= */
.court-hierarchy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px 0;
}
.court-node {
  padding: 28px 40px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  text-align: center;
  min-width: 300px;
  transition: var(--transition-base);
  position: relative;
}
.court-node.active {
  border-color: var(--gold);
  box-shadow: 0 0 40px var(--gold-glow);
}
.court-node__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.court-node__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.court-connector {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--gold-muted), transparent);
}

/* =============================================
   PRACTICE AREAS – Modules
   ============================================= */
.practice-module {
  padding: 40px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  transition: var(--transition-base);
  cursor: pointer;
}
.practice-module:hover {
  border-color: rgba(184, 148, 62, 0.3);
}
.practice-module__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}
.practice-module__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.practice-module__desc {
  font-size: 0.92rem;
  color: var(--blue-grey-light);
  line-height: 1.8;
  margin-bottom: 20px;
}
.practice-module__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.practice-module__tag {
  padding: 4px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--blue-grey-light);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* =============================================
   CASES – Logic Explorer
   ============================================= */
.case-explorer {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  overflow: hidden;
  margin-bottom: 24px;
}
.case-explorer__header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background var(--transition-base);
}
.case-explorer__header:hover {
  background: var(--glass-bg-light);
}
.case-explorer__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}
.case-explorer__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold);
}
.case-explorer__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-in-out);
}
.case-explorer__body-inner {
  padding: 32px;
}
.case-explorer.active .case-explorer__body {
  max-height: 600px;
}

.case-layer {
  padding: 20px 24px;
  border-left: 2px solid var(--glass-border);
  margin-bottom: 16px;
  transition: border-color var(--transition-base);
}
.case-layer:hover {
  border-left-color: var(--gold);
}
.case-layer__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.case-layer__text {
  font-size: 0.92rem;
  color: var(--blue-grey-light);
  line-height: 1.8;
}

/* =============================================
   RESOURCES – Knowledge Matrix
   ============================================= */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.knowledge-card {
  padding: 32px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  transition: var(--transition-base);
}
.knowledge-card:hover {
  border-color: rgba(184, 148, 62, 0.25);
  transform: translateY(-2px);
}
.knowledge-card__type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.knowledge-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.3;
}
.knowledge-card__excerpt {
  font-size: 0.88rem;
  color: var(--blue-grey-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.knowledge-card__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
   MEDIA PAGE – Stream
   ============================================= */
.media-stream__item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-base);
}
.media-stream__item:hover {
  transform: translateX(8px);
}
.media-stream__image {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
}
.media-stream__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-stream__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}
.media-stream__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.3;
}
.media-stream__text {
  font-size: 0.9rem;
  color: var(--blue-grey-light);
  line-height: 1.7;
}

/* =============================================
   CONTACT INFO
   ============================================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-info__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-grey);
  margin-bottom: 4px;
}
.contact-info__value {
  font-size: 0.95rem;
  color: var(--ivory);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  :root { --section-gap: 80px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .home-highlights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; --nav-height: 64px; }

  .container { padding: 0 20px; }

  /* Nav */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 14, 16, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav__link { font-size: 1.1rem; }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .home-highlights { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }

  /* Media stream */
  .media-stream__item {
    grid-template-columns: 1fr;
  }
  .media-stream__image { height: 200px; }

  /* Page hero */
  .page-hero { min-height: 320px; }
  .glass-panel { padding: 24px; }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .gateway__title { font-size: 1.4rem; }
  .stat-block__number { font-size: 2.2rem; }
}
