/* ============================================
   IBKR INVESTMENTS — MASTER STYLESHEET
   Art Deco Neon Noir
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-primary: #00E5FF;
  --color-secondary: #18FFFF;
  --color-accent: #FF4081;
  --color-bg: #0A0A14;
  --color-surface: #121220;
  --color-text: #E0E8F0;
  --color-text-light: #8090A8;
  --color-gold: #c9a96e;
  --color-gold-dim: rgba(201, 169, 110, 0.3);

  --font-heading: Garamond, 'Hoefler Text', serif;
  --font-body: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;

  --radius: 0px;
  --shadow: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-chunky: 0 6px 20px rgba(0,0,0,0.4);

  --section-padding: 48px;
  --grid-gap: 16px;
  --max-width: 1100px;
  --max-width-wide: 1200px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- DOT MATRIX TEXTURE OVERLAY ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle 1px at center, rgba(224, 232, 240, 0.04) 0%, transparent 100%);
  background-size: 20px 20px;
}

/* ---------- ARCHITECTURAL GRID MOTIF ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 99px, rgba(201, 169, 110, 0.04) 99px, rgba(201, 169, 110, 0.04) 100px),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201, 169, 110, 0.04) 79px, rgba(201, 169, 110, 0.04) 80px);
}

/* Ensure content above overlays */
body > * {
  position: relative;
  z-index: 1;
}

/* ---------- TYPOGRAPHY — COMPACT EDITORIAL ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

small, .text-small {
  font-size: 0.8rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* ---------- BRACKET-FRAMING HEADINGS ---------- */
h2::before {
  content: '[ ';
  color: var(--color-gold);
  font-weight: 300;
  font-size: 1.2em;
  opacity: 0.5;
}

h2::after {
  content: ' ]';
  color: var(--color-gold);
  font-weight: 300;
  font-size: 1.2em;
  opacity: 0.5;
}

/* For headings that should NOT have brackets */
h2.no-brackets::before,
h2.no-brackets::after {
  content: none;
}

/* ---------- ART DECO DECORATIVE ELEMENTS ---------- */
.deco-line {
  width: 80px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.5rem auto;
}

.deco-line-left {
  margin: 1.5rem 0;
}

.deco-chevron {
  text-align: center;
  margin: 2rem 0;
  color: var(--color-gold);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  opacity: 0.4;
}

.deco-chevron::before {
  content: '◆ ◆ ◆';
}

/* Art Deco fan pattern for section backgrounds */
.deco-fan-bg {
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 20px,
      rgba(201, 169, 110, 0.03) 20px,
      rgba(201, 169, 110, 0.03) 21px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(201, 169, 110, 0.03) 20px,
      rgba(201, 169, 110, 0.03) 21px
    );
}

/* Stepped Art Deco border */
.deco-stepped-border {
  border: 1px solid var(--color-gold-dim);
  outline: 1px solid var(--color-gold-dim);
  outline-offset: 4px;
}

/* ---------- DIAGONAL LINES DECORATION ---------- */
.diagonal-lines {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(201, 169, 110, 0.03) 10px,
    rgba(201, 169, 110, 0.03) 11px
  );
}

.diagonal-lines-light {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.05) 40px,
    rgba(255, 255, 255, 0.05) 41px
  );
}

/* ---------- PAGE TRANSITION CURTAIN ---------- */
.page-curtain {
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.page-curtain.slide-up {
  transform: translateY(0%);
}

.page-curtain.slide-away {
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* On page load — curtain starts covering and slides away */
body.page-entering .page-curtain {
  transform: translateY(0%);
  animation: curtainSlideAway 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}

@keyframes curtainSlideAway {
  to { transform: translateY(-100%); }
}

/* ---------- SIDE PANEL NAVIGATION ---------- */
.nav-trigger {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-heading);
}

.nav-trigger-login {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dim);
  padding: 0.4rem 1rem;
  background: rgba(10, 10, 20, 0.8);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-trigger-login:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.nav-trigger-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text);
  border: 1px solid var(--color-gold-dim);
  padding: 0.5rem 1.2rem;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-trigger-label:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.nav-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 360px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-gold-dim);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.nav-panel.active {
  transform: translateX(0);
}

.nav-panel-header {
  padding: 2rem;
  border-bottom: 1px solid var(--color-gold-dim);
}

.nav-panel-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.nav-panel-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.nav-panel-close:hover {
  color: var(--color-accent);
}

.nav-panel-links {
  flex: 1;
  padding: 1rem 0;
  list-style: none;
}

.nav-panel-links a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1rem 2rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.nav-panel-links a:hover,
.nav-panel-links a.active {
  color: var(--color-primary);
  padding-left: 2.5rem;
}

.nav-panel-footer {
  padding: 2rem;
  border-top: 1px solid var(--color-gold-dim);
}

.nav-panel-desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ---------- BUTTONS — CHUNKY ---------- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: var(--shadow-chunky);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 64, 129, 0.3);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: translateY(-3px);
}

.btn-subtle {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-text-light);
  padding: 10px 24px;
  font-size: 0.8rem;
}

.btn-subtle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ---------- HERO — SPLIT TYPOGRAPHY ART ---------- */
.hero {
  min-height: 60vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding) 2rem;
  gap: 3rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background:
    linear-gradient(135deg, var(--color-primary) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, var(--color-primary) 33.33%, transparent 33.33%) 0 0;
  background-size: 20px 20px;
  background-repeat: repeat-x;
  opacity: 0.3;
}

.hero-typography {
  display: flex;
  flex-direction: column;
}

.hero-typography .word {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--color-text);
}

.hero-typography .word-xl {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
}

.hero-typography .word-lg {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

.hero-typography .word-md {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
}

.hero-typography .word-sm {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--color-text-light);
}

.hero-typography .word-accent {
  color: var(--color-accent);
}

.hero-content {
  position: relative;
}

.hero-content .deco-letter {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 20vw;
  font-weight: 900;
  opacity: 0.06;
  color: var(--color-accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.hero-content > *:not(.deco-letter) {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Hero for simple centered pages */
.hero-centered {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--section-padding) * 1.5) 2rem var(--section-padding);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-centered h1 {
  margin-bottom: 1rem;
}

.hero-centered .hero-subtitle {
  max-width: 680px;
}

/* ---------- SECTIONS — ZIGZAG ALTERNATING ---------- */
.section {
  padding: var(--section-padding) 2rem;
  position: relative;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-light);
}

/* Zigzag row */
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0;
}

.zigzag-row:nth-child(even) .zigzag-text {
  order: 2;
}

.zigzag-row:nth-child(even) .zigzag-visual {
  order: 1;
}

.zigzag-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  padding: 0.25rem 0.75rem;
  background: rgba(255, 64, 129, 0.15);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
}

/* ---------- PATTERN FILL PANELS (IMAGE PLACEHOLDERS) ---------- */
.visual-placeholder {
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-gold-dim);
}

/* Different patterns via nth-of-type */
.visual-placeholder:nth-of-type(4n+1),
.visual-placeholder.pattern-herringbone {
  background-color: rgba(0, 229, 255, 0.05);
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 5px,
      rgba(0, 229, 255, 0.08) 5px,
      rgba(0, 229, 255, 0.08) 10px,
      transparent 10px,
      transparent 15px,
      rgba(201, 169, 110, 0.08) 15px,
      rgba(201, 169, 110, 0.08) 20px
    );
}

.visual-placeholder:nth-of-type(4n+2),
.visual-placeholder.pattern-checkerboard {
  background-color: rgba(201, 169, 110, 0.04);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 20px,
      rgba(201, 169, 110, 0.06) 20px,
      rgba(201, 169, 110, 0.06) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 20px,
      rgba(201, 169, 110, 0.06) 20px,
      rgba(201, 169, 110, 0.06) 40px
    );
}

.visual-placeholder:nth-of-type(4n+3),
.visual-placeholder.pattern-dots {
  background-color: rgba(255, 64, 129, 0.04);
  background-image: radial-gradient(circle 3px, rgba(255, 64, 129, 0.12) 100%, transparent 100%);
  background-size: 24px 24px;
}

.visual-placeholder:nth-of-type(4n),
.visual-placeholder.pattern-crosshatch {
  background-color: rgba(0, 229, 255, 0.03);
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(0, 229, 255, 0.06) 8px,
      rgba(0, 229, 255, 0.06) 9px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(0, 229, 255, 0.06) 8px,
      rgba(0, 229, 255, 0.06) 9px
    );
}

/* Art Deco corner decorations on placeholders */
.visual-placeholder::before,
.visual-placeholder::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--color-gold);
  border-style: solid;
  border-width: 0;
  opacity: 0.5;
}

.visual-placeholder::before {
  top: 10px;
  left: 10px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.visual-placeholder::after {
  bottom: 10px;
  right: 10px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

/* ---------- FEATURE/SERVICE GRID ---------- */
.grid-section {
  background: var(--color-surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--grid-gap);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

/* ---------- CARDS — OUTLINE-ONLY / DASHED ---------- */
.card {
  border: 2px dashed var(--color-primary);
  background: transparent;
  padding: 2rem;
  border-radius: var(--radius);
  transition: background 0.3s ease, transform 0.4s ease-out, box-shadow 0.4s ease-out;
  position: relative;
  perspective: 1000px;
}

.card:hover {
  background: var(--color-surface);
}

/* Art Deco corner decorations on cards */
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--color-gold);
  border-style: solid;
  border-width: 0;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.card::before {
  top: 6px;
  left: 6px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.card::after {
  bottom: 6px;
  right: 6px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.card:hover::before,
.card:hover::after {
  opacity: 0.8;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  padding: 0.25rem 0.75rem;
  background: rgba(255, 64, 129, 0.15);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
}

.card h3 {
  color: var(--color-text);
}

.card p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.card-link:hover {
  color: var(--color-secondary);
}

/* Vertical rules between grid items (architectural motif) */
.feature-grid .card + .card {
  position: relative;
}

/* ---------- ASYMMETRIC SLOPE DIVIDERS ---------- */
.slope-lr {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0 calc(100% - 20px));
  padding-bottom: 80px;
}

.slope-rl {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 calc(100% - 80px));
  padding-bottom: 80px;
}

.slope-fill {
  margin-top: -60px;
  padding-top: 80px;
}

/* ---------- TESTIMONIALS — SIDE-BY-SIDE WITH AVATAR ---------- */
.testimonial {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--color-gold-dim);
  margin-bottom: var(--grid-gap);
  border-radius: var(--radius);
  position: relative;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-bg);
}

.testimonial-avatar.avatar-primary {
  background: var(--color-primary);
}

.testimonial-avatar.avatar-accent {
  background: var(--color-accent);
}

.testimonial-avatar.avatar-gold {
  background: var(--color-gold);
}

.testimonial-quote {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial-quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  opacity: 0.5;
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.2em;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.testimonial-title {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ---------- STATS — CIRCULAR PROGRESS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--grid-gap);
  text-align: center;
  margin-bottom: 3rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.stat-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.stat-suffix {
  font-size: 1rem;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-top: 0.3rem;
}

/* ---------- DARK CONTRAST FORM ---------- */
.form-dark {
  background: var(--color-surface);
  border: 1px solid var(--color-gold-dim);
  padding: 2.5rem;
  border-radius: var(--radius);
  position: relative;
}

/* Art Deco double border */
.form-dark::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--color-gold-dim);
  pointer-events: none;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-bg);
  background: var(--color-text);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238090A8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-checkbox-wrap input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.form-checkbox-wrap label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}

/* Password toggle */
.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  padding: 4px;
}

.password-toggle:hover {
  color: var(--color-primary);
}

/* ---------- ACCORDION / FAQ ---------- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--color-gold-dim);
  margin-bottom: -1px;
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 2rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--color-gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-body-inner {
  padding: 0 2rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- TABS (Services Page) ---------- */
.tabs-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-gold-dim);
  padding-bottom: 0;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  top: 1px;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-gold);
  border-color: var(--color-gold-dim);
  background: var(--color-bg);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Service FAQ within tabs */
.service-block {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.service-block:last-child {
  border-bottom: none;
}

.service-q {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.service-a {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-gold-dim);
}

/* ---------- TIMELINE ---------- */
.timeline {
  max-width: 700px;
  margin: 2rem auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-gold-dim);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--color-gold);
  transform: rotate(45deg);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ---------- TEAM PROFILES — ALTERNATING ---------- */
.team-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.team-profile:nth-child(even) .team-photo {
  order: 2;
}

.team-profile:nth-child(even) .team-bio {
  order: 1;
}

.team-photo {
  min-height: 300px;
  border: 1px solid var(--color-gold-dim);
  position: relative;
}

/* Use pattern-fill for team photos */
.team-photo::before,
.team-photo::after {
  content: '';
  position: absolute;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.team-title {
  font-size: 0.85rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.team-credentials {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.team-bio-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.team-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text);
  padding-left: 1rem;
  border-left: 2px solid var(--color-gold);
  margin-top: 1rem;
}

/* ---------- JOB BOARD ---------- */
.job-department {
  margin-bottom: 2rem;
}

.job-department-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-gold-dim);
  margin-bottom: 1rem;
}

.job-listing {
  border: 1px solid rgba(201, 169, 110, 0.15);
  margin-bottom: var(--grid-gap);
  border-radius: var(--radius);
}

.job-listing-header {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.job-listing-header:hover {
  background: rgba(0, 229, 255, 0.03);
}

.job-listing-info h3 {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.job-location {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.job-toggle-btn {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: none;
  border: 1px solid var(--color-primary);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.job-toggle-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.job-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.job-details-inner {
  padding: 0 2rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.job-details-inner h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin: 1rem 0 0.5rem;
}

.job-details-inner ul {
  list-style: none;
  padding-left: 0;
}

.job-details-inner ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}

.job-details-inner ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.5rem;
  top: 0.4em;
}

/* ---------- PULL QUOTE ---------- */
.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
  padding: 2rem 3rem;
  margin: 2rem 0;
  position: relative;
  line-height: 1.4;
}

.pull-quote::before,
.pull-quote::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin: 1rem auto;
}

/* ---------- LETTER FORMAT (About Page) ---------- */
.letter-format {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem;
}

.letter-format p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-light);
}

.letter-signature {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-top: 2rem;
}

/* ---------- LOGIN PAGE — LEFT-ALIGNED EDITORIAL ---------- */
.login-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 80vh;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--section-padding) 2rem;
  gap: 3rem;
  align-items: center;
}

.login-form-col {
  padding: 2rem 0;
}

.login-welcome-col {
  position: relative;
  overflow: hidden;
  padding: 3rem;
}

.login-welcome-col .deco-letter {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 20vw;
  font-weight: 900;
  opacity: 0.04;
  color: var(--color-gold);
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

.login-welcome-text {
  position: relative;
  z-index: 1;
}

.login-welcome-text .word {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  line-height: 1.1;
}

.login-welcome-text .word-huge {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
}

.login-welcome-text .word-lg {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--color-gold);
}

.login-subtitle {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-top: 1.5rem;
  line-height: 1.7;
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.forgot-link:hover {
  color: var(--color-primary);
}

/* ---------- DISCLOSURES SECTION ---------- */
.disclosures {
  padding: 2rem;
  border-top: 1px solid var(--color-gold-dim);
  border-bottom: 1px solid var(--color-gold-dim);
  margin: 0 auto;
  max-width: var(--max-width-wide);
}

.disclosures-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.disclosures-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 1rem;
  text-align: center;
}

.disclosures p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ---------- FOOTER — MINIMAL SINGLE-LINE ---------- */
.site-footer {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.footer-links {
  display: flex;
  gap: 0;
  align-items: center;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-links .sep {
  margin: 0 0.75rem;
  color: var(--color-text-light);
  opacity: 0.4;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-gold-dim);
  padding: 1.25rem 2rem;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
  max-width: 600px;
}

.cookie-banner .btn {
  padding: 10px 24px;
  font-size: 0.75rem;
}

/* ---------- ANIMATE ON SCROLL ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ---------- LEGAL PAGES ---------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem var(--section-padding);
}

.legal-content h2 {
  text-align: left;
  margin-top: 2.5rem;
  font-size: 1.1rem;
}

.legal-content h2::before,
.legal-content h2::after {
  content: none;
}

.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.legal-content ul {
  list-style: none;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
}

.legal-content ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.5rem;
  top: 0.4em;
}

.legal-summary {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.legal-detail {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* ---------- RESEARCH / INSIGHTS GRID ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
}

.insight-card {
  border: 2px dashed var(--color-primary);
  padding: 2rem;
  background: transparent;
  transition: background 0.3s ease;
}

.insight-card:hover {
  background: var(--color-surface);
}

.insight-meta {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}

/* ---------- GLOSSARY GRID ---------- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
}

.glossary-item {
  padding: 1rem;
  border: 1px solid var(--color-gold-dim);
}

.glossary-term {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.glossary-def {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* ---------- EMAIL CAPTURE ---------- */
.email-capture {
  display: flex;
  gap: 0;
  max-width: 500px;
  margin: 1rem auto 0;
}

.email-capture .form-input {
  border-right: none;
  flex: 1;
}

.email-capture .btn {
  white-space: nowrap;
  padding: 12px 24px;
}

/* ---------- CONTACT DETAILS ---------- */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
  margin-top: 2rem;
}

.contact-detail-item {
  padding: 1rem;
  border-left: 2px solid var(--color-gold);
}

.contact-detail-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.contact-detail-value {
  font-size: 0.9rem;
  color: var(--color-text);
}

.contact-detail-value a {
  color: var(--color-text);
}

.contact-detail-value a:hover {
  color: var(--color-primary);
}

/* ---------- SECTION BACKGROUNDS ---------- */
.bg-surface {
  background-color: var(--color-surface);
}

.bg-dark {
  background-color: var(--color-bg);
}

.bg-tinted {
  background-color: rgba(0, 229, 255, 0.03);
}

/* Horizontal rules flanking headings (architectural motif) */
.ruled-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ruled-heading::before,
.ruled-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gold-dim);
}

.ruled-heading h2 {
  flex-shrink: 0;
  margin-bottom: 0;
}

/* ---------- UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--color-gold); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-narrow { max-width: 700px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: calc(var(--section-padding) * 1.5) 1.5rem var(--section-padding);
  }

  .hero-typography {
    align-items: center;
  }

  .hero-content .deco-letter {
    font-size: 40vw;
  }

  .zigzag-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .zigzag-row:nth-child(even) .zigzag-text,
  .zigzag-row:nth-child(even) .zigzag-visual {
    order: unset;
  }

  .zigzag-text {
    order: 1 !important;
  }

  .zigzag-visual {
    order: 2 !important;
  }

  .team-profile {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-profile:nth-child(even) .team-photo,
  .team-profile:nth-child(even) .team-bio {
    order: unset;
  }

  .team-photo {
    min-height: 200px;
  }

  .login-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .login-welcome-col {
    text-align: center;
    padding: 2rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-circle {
    width: 110px;
    height: 110px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .nav-panel {
    width: 100%;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tab-btn {
    text-align: left;
    border-bottom: 1px solid var(--color-gold-dim);
    border-right: none;
  }

  .tab-btn.active {
    border-left: 3px solid var(--color-gold);
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: 36px;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .testimonial {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .visual-placeholder {
    min-height: 180px;
  }

  .pull-quote {
    padding: 1.5rem;
    font-size: 1.1rem;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .email-capture {
    flex-direction: column;
  }

  .email-capture .form-input {
    border-right: 1px solid rgba(201, 169, 110, 0.3);
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .slope-lr, .slope-rl {
    clip-path: none;
    padding-bottom: 0;
  }

  .slope-fill {
    margin-top: 0;
    padding-top: var(--section-padding);
  }

  .hero-typography .word-xl {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-typography .word-lg {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-typography .word-md {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
}

/* ---------- PRINT STYLES ---------- */
@media print {
  .nav-trigger, .nav-panel, .nav-backdrop, .cookie-banner, .page-curtain {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .card {
    border-color: #ccc;
  }
}