/* ============================================
   MatchMyCourses — Premium Law-Firm Aesthetic
   Deep charcoal + brass gold, authoritative & refined
   ============================================ */

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

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* === DESIGN TOKENS === */
:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Premium Palette */
  --charcoal-950: #0d0d0f;
  --charcoal-900: #1a1a1f;
  --charcoal-800: #24242b;
  --charcoal-700: #2f2f38;
  --charcoal-600: #3d3d48;
  --charcoal-500: #55556a;
  --charcoal-400: #7a7a8f;
  --charcoal-300: #a0a0b0;
  --charcoal-200: #c8c8d2;
  --charcoal-100: #e8e8ec;
  --charcoal-50:  #f4f4f6;

  --brass-700: #8a6914;
  --brass-600: #a37d1a;
  --brass-500: #b8922a;
  --brass-400: #c9a33e;
  --brass-300: #d4b565;
  --brass-200: #e2cc96;
  --brass-100: #f0e4c6;
  --brass-50:  #faf6ec;

  --ivory-100: #faf9f6;
  --ivory-200: #f2f0eb;
  --ivory-300: #e6e3dc;
  --ivory-400: #d6d2c9;

  --color-bg: var(--ivory-100);
  --color-surface: #ffffff;
  --color-text: var(--charcoal-900);
  --color-text-secondary: var(--charcoal-500);
  --color-text-muted: var(--charcoal-400);
  --color-accent: var(--brass-400);
  --color-accent-hover: var(--brass-500);

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(13, 13, 15, 0.04);
  --shadow-md: 0 4px 20px rgba(13, 13, 15, 0.06);
  --shadow-lg: 0 12px 40px rgba(13, 13, 15, 0.1);

  --content-narrow: 640px;
  --content-default: 900px;
  --content-wide: 1140px;
}

/* === BODY === */
body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(201, 163, 62, 0.2);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }
a { text-decoration: none; color: inherit; }

a, button, [role="button"] {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              opacity var(--transition-interactive);
}

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

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-5) var(--space-8);
  background: linear-gradient(180deg, rgba(13, 13, 15, 0.6) 0%, transparent 100%);
  transition: background 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out),
              padding 0.3s var(--ease-out);
}

.header--scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(13, 13, 15, 0.05);
  padding: var(--space-3) var(--space-8);
}

.header__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header__logo-mark rect {
  fill: rgba(255, 255, 255, 0.15);
  transition: fill var(--transition-interactive);
}

.header--scrolled .header__logo-mark rect {
  fill: #1a1a1f;
}

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  transition: color var(--transition-interactive);
}

.header--scrolled .header__logo-text {
  color: var(--charcoal-900);
}

.header__logo-text em {
  font-style: normal;
  color: var(--brass-500);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav a {
  font-size: var(--text-sm);
  font-weight: 450;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
}

.header__nav a:hover {
  color: #ffffff;
}

.header--scrolled .header__nav a {
  color: var(--charcoal-500);
}

.header--scrolled .header__nav a:hover {
  color: var(--charcoal-900);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
}

.header__cta:hover {
  background: rgba(255, 255, 255, 0.25);
}

.header--scrolled .header__cta {
  background: var(--charcoal-900);
  border-color: var(--charcoal-900);
}

.header--scrolled .header__cta:hover {
  background: var(--charcoal-700);
  border-color: var(--charcoal-700);
}

/* Mobile nav */
.header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.header__mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.header--scrolled .header__mobile-toggle span {
  background: var(--charcoal-900);
}

@media (max-width: 768px) {
  .header {
    padding: var(--space-4) var(--space-5);
  }
  .header--scrolled {
    padding: var(--space-3) var(--space-5);
  }
  .header__mobile-toggle {
    display: flex;
  }
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-6) var(--space-5);
    gap: var(--space-4);
    border-bottom: 1px solid var(--ivory-300);
  }
  .header__nav.is-open {
    display: flex;
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 15, 0.65) 0%,
    rgba(26, 26, 31, 0.6) 50%,
    rgba(13, 13, 15, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: var(--space-32) var(--space-6) var(--space-16);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass-300);
  margin-bottom: var(--space-8);
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--brass-400);
  opacity: 0.5;
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  line-height: 1.08;
}

.hero__title em {
  font-style: italic;
  color: var(--brass-300);
}

.hero__subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  margin-bottom: var(--space-10);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.875rem 2rem;
  background: var(--brass-400);
  color: var(--charcoal-950);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
}

.hero__cta:hover {
  background: var(--brass-300);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 163, 62, 0.3);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.hero__cta:hover svg {
  transform: translateX(3px);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollPulse 3s ease infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* === SECTION BASE === */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
}

.section__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass-500);
  margin-bottom: var(--space-4);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--charcoal-900);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-6);
}

.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* === PROBLEM SECTION === */
.problem {
  background: var(--color-bg);
}

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: center;
}

.problem__text p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.problem__text p:last-child {
  margin-bottom: 0;
}

.problem__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.problem__image-wrap {
  position: relative;
}

.problem__image-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
  filter: saturate(0.85);
}

.problem__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ivory-300);
  pointer-events: none;
}

@media (max-width: 768px) {
  .problem__grid {
    grid-template-columns: 1fr;
  }
  .problem__image-wrap {
    order: -1;
  }
}

/* Thin decorative divider */
.divider {
  width: 60px;
  height: 1px;
  background: var(--brass-400);
  margin: 0 auto;
  opacity: 0.4;
}

/* === SOLUTION SECTION === */
.solution {
  background: var(--charcoal-900);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.solution::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 62, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.solution .section__eyebrow {
  color: var(--brass-400);
}

.solution .section__title {
  color: #ffffff;
}

.solution .section__subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.solution__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  margin-bottom: var(--space-12);
}

.step {
  padding: var(--space-8) var(--space-6);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out);
}

.step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 163, 62, 0.15);
}

.step__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brass-400);
  line-height: 1;
  margin-bottom: var(--space-5);
  opacity: 0.6;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: #ffffff;
}

.step__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

.solution__emphasis {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.solution__emphasis p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 100%;
}

.solution__emphasis strong {
  color: var(--brass-300);
  font-weight: 600;
}

@media (max-width: 768px) {
  .solution__steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* === QUOTE / ADVENTURE BREAK === */
.adventure {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.adventure__bg {
  position: absolute;
  inset: 0;
}

.adventure__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}

.adventure__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 15, 0.6) 0%,
    rgba(26, 26, 31, 0.55) 100%
  );
}

.adventure__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-16) var(--space-6);
  max-width: 640px;
}

.adventure__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  font-style: italic;
  color: #ffffff;
  line-height: 1.35;
}

.adventure__quote strong {
  font-style: normal;
  color: var(--brass-300);
  font-weight: 600;
}

/* === ABOUT SECTION === */
.about {
  background: var(--ivory-200);
}

.about__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

.about__photo-wrap {
  position: sticky;
  top: 120px;
}

.about__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ivory-300);
  filter: saturate(0.9);
}

.about__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-top: var(--space-5);
}

.about__role {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

.about__text p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__text strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__photo-wrap {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about__photo {
    width: 150px;
    height: 150px;
  }
}

/* === CTA SECTION === */
.cta-section {
  background: var(--charcoal-900);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 62, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}

.cta__price {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--brass-300);
  border-bottom: 1px solid rgba(201, 163, 62, 0.3);
  margin-bottom: var(--space-8);
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.875rem 2.5rem;
  background: var(--brass-400);
  color: var(--charcoal-950);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
}

.cta__btn:hover {
  background: var(--brass-300);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 163, 62, 0.3);
}

.cta__btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.cta__btn:hover svg {
  transform: translateX(3px);
}

.cta__note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
}

/* === FOOTER === */
.footer {
  background: var(--charcoal-950);
  color: rgba(255, 255, 255, 0.4);
  padding: var(--space-10) var(--space-8);
}

.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.25);
}

.footer__attribution {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.2);
}

.footer__attribution a {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__attribution a:hover {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer {
    padding: var(--space-8) var(--space-5);
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes revealFade {
  to { opacity: 1; }
}

.reveal--js {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal--js {
    opacity: 1;
    transform: none;
  }
}

/* === IMPRESSUM PAGE === */
.page-header {
  padding: calc(var(--space-32) + var(--space-8)) var(--space-6) var(--space-12);
  background: var(--charcoal-900);
  color: #ffffff;
  text-align: center;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.page-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-24);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--charcoal-900);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.page-content p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.page-content a {
  color: var(--brass-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--brass-500);
}

/* === PASSWORD GATE === */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal-900);
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.pw-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pw-gate__card {
  width: 100%;
  max-width: 400px;
  padding: var(--space-10) var(--space-8);
  text-align: center;
}

.pw-gate__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.pw-gate__logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.pw-gate__logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.pw-gate__logo-text em {
  font-style: normal;
  color: var(--brass-400);
}

.pw-gate__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.pw-gate__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-8);
}

.pw-gate__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pw-gate__input-wrap {
  position: relative;
}

.pw-gate__input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.pw-gate__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.pw-gate__input:focus {
  border-color: var(--brass-400);
  background: rgba(255, 255, 255, 0.08);
}

.pw-gate__input.is-error {
  border-color: #c0392b;
  animation: pwShake 0.4s ease;
}

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

.pw-gate__submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--brass-400);
  color: var(--charcoal-950);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}

.pw-gate__submit:hover {
  background: var(--brass-300);
  transform: translateY(-1px);
}

.pw-gate__error {
  font-size: var(--text-xs);
  color: #e74c3c;
  min-height: 1.2em;
  transition: opacity 0.2s;
}

.pw-gate__ornament {
  width: 40px;
  height: 1px;
  background: var(--brass-400);
  opacity: 0.25;
  margin: var(--space-10) auto 0;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
