﻿/* ============================================================
   CEPLE — Design System v3  |  Brand Wine & Ivory Identity
   Palette derived from the CEPLE hexagon logo (#8e1c16 + white)
   ============================================================ */
:root {
  --navy-900: #120b0a;
  --navy-800: #1a100e;
  --navy-700: #221513;
  --navy-600: #2e1c19;
  --navy-500: #3f2723;
  --gold: #c96a54;
  --gold-light: #db8a70;
  --gold-pale: #f0c3ae;
  --gold-glow: rgba(201,106,84,.18);
  --gold-border: rgba(201,106,84,.28);
  --gold-bg: rgba(201,106,84,.08);
  --crimson: #8e1c16;
  --text-primary: #f0ede6;
  --text-secondary: rgba(240,237,230,.72);
  --text-muted: rgba(240,237,230,.45);
  --text-dark: #221513;
  --text-dark-muted: #5c4a44;
  --glass: rgba(255,255,255,.04);
  --glass-strong: rgba(255,255,255,.08);
  --glass-border: rgba(255,255,255,.1);
  --light-bg: #f5f2ed;
  --light-paper: #faf8f4;
  --light-border: rgba(0,0,0,.08);
  --shadow-gold: 0 20px 60px rgba(201,106,84,.15);
  --shadow-dark: 0 24px 64px rgba(0,0,0,.5);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 10px;
  --container: 1260px;
  --ease: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--navy-800);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
main { position: relative; overflow: clip; }
section[id] { scroll-margin-top: 110px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  padding: 14px 20px; border-radius: 12px;
  background: var(--crimson); color: #fdf7f2;
  font-weight: 700; transition: top 160ms var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---- Layout ---- */
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 128px 0; }
.section-light { background: var(--light-bg); color: var(--text-dark); }
.section-dark { background: var(--navy-900); }
.section-navy { background: var(--navy-700); }

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.display { font-size: clamp(3.4rem,7vw,7rem); line-height: .92; letter-spacing: -.05em; }
.display-md { font-size: clamp(2.4rem,5vw,4.2rem); line-height: .94; letter-spacing: -.04em; }
.display-sm { font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.05; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--gold-border); background: var(--gold-bg);
  color: var(--gold); font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201,106,84,.2); flex-shrink: 0;
}
.section-light .eyebrow { color: #8e1c16; border-color: rgba(142,28,22,.3); background: rgba(142,28,22,.07); }
.section-light .eyebrow::before { background: #8e1c16; box-shadow: none; }

.section-header { max-width: 780px; display: grid; gap: 18px; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(2rem,4.5vw,3.6rem); }
.section-header p { font-size: 1.08rem; color: var(--text-secondary); line-height: 1.72; max-width: 640px; }
.section-light .section-header h2 { color: var(--text-dark); }
.section-light .section-header p { color: var(--text-dark-muted); }

.kicker-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.kicker-row .section-header { margin-bottom: 0; }
.gold-text { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: none;
  font-weight: 700; font-size: .93rem; cursor: pointer; white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px); }
.btn-gold { background: linear-gradient(135deg,#a3271e,var(--crimson)); color: #fdf7f2; box-shadow: 0 8px 28px rgba(142,28,22,.4); }
.btn-gold:hover { box-shadow: 0 16px 44px rgba(142,28,22,.5); }
.btn-ghost { background: transparent; border: 1.5px solid var(--gold-border); color: var(--gold-light); }
.btn-ghost:hover { background: var(--gold-bg); border-color: var(--gold); }
.btn-dark { background: var(--navy-900); color: var(--text-primary); border: 1.5px solid var(--glass-border); }
.btn-light { background: var(--light-paper); color: var(--navy-900); border: 1.5px solid var(--light-border); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .86rem; }
.btn-xs { height: 34px; padding: 0 14px; font-size: .8rem; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--gold-light); transition: gap 180ms ease; }
.arrow-link:hover { gap: 14px; }
.arrow-link::after { content: '→'; }
.section-light .arrow-link { color: #8e1c16; }
button.arrow-link { background: none; border: none; cursor: pointer; padding: 0; font: inherit; }

/* ---- Cards ---- */
.glass-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-xl);
  backdrop-filter: blur(12px); padding: 32px;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}
.glass-card:hover { border-color: var(--gold-border); box-shadow: var(--shadow-gold); transform: translateY(-4px); }
.section-light .glass-card {
  background: #ffffff; border-color: rgba(35,26,23,.09);
  box-shadow: 0 6px 28px rgba(35,26,23,.07); backdrop-filter: none;
  --text-primary: #231a17;
  --text-secondary: rgba(35,26,23,.72);
  --text-muted: rgba(35,26,23,.5);
  --glass-strong: rgba(35,26,23,.05);
  --glass-border: rgba(35,26,23,.12);
}
.gold-card {
  background: linear-gradient(135deg,rgba(201,106,84,.12),rgba(201,106,84,.04));
  border: 1px solid var(--gold-border); border-radius: var(--r-xl); padding: 32px;
  transition: box-shadow 220ms ease, transform 220ms var(--ease);
}
.gold-card:hover { box-shadow: var(--shadow-gold); transform: translateY(-4px); }
.light-card {
  background: var(--light-paper); border: 1px solid var(--light-border);
  border-radius: var(--r-xl); padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: box-shadow 220ms ease, transform 220ms var(--ease);
}
.light-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,.12); transform: translateY(-4px); }
.dark-panel {
  background: linear-gradient(135deg,var(--navy-900),var(--navy-600));
  border: 1px solid var(--glass-border); border-radius: var(--r-xl); padding: 32px; color: var(--text-primary);
}

/* ---- Num badge ---- */
.num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg,rgba(201,106,84,.22),rgba(201,106,84,.06));
  border: 1px solid var(--gold-border); color: var(--gold); font-weight: 800; font-size: .88rem;
  margin-bottom: 18px;
}
.section-light .num-badge { background: rgba(142,28,22,.1); color: #8e1c16; border-color: rgba(142,28,22,.25); }

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

/* ---- Divider ---- */
.divider { height: 1px; background: linear-gradient(90deg,transparent,var(--gold-border),transparent); }

/* ---- Pill / Tag ---- */
.tag-pill {
  display: inline-flex; align-items: center; padding: 5px 13px;
  border-radius: 999px; background: var(--gold-bg); border: 1px solid var(--gold-border);
  color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* ---- Check list ---- */
.check-list { display: grid; gap: 13px; list-style: none; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .93rem; color: var(--text-secondary); line-height: 1.55; }
.check-list li::before {
  content: ''; width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0; margin-top: 1px;
  background: var(--gold-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23c96a54' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid var(--gold-border);
}
.section-light .check-list li { color: var(--text-dark-muted); }
.section-light .check-list li::before { background-color: rgba(142,28,22,.08); border-color: rgba(142,28,22,.22); }

/* ======== HEADER & NAV ======== */
.site-header { position: sticky; top: 0; z-index: 100; padding: 14px 0 0; }
.topbar { margin-bottom: 10px; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(18,11,10,.92); border: 1px solid rgba(201,106,84,.15);
  color: var(--text-secondary); font-size: .82rem; backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.topbar-items { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-items span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-items span::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--gold); flex-shrink: 0; }
.topbar-cta { color: var(--gold-light); font-weight: 700; white-space: nowrap; transition: color 160ms ease; }
.topbar-cta:hover { color: var(--gold-pale); }
.nav-shell {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 22px; background: rgba(28,17,15,.9);
  border: 1px solid rgba(201,106,84,.12); border-radius: var(--r-lg);
  backdrop-filter: blur(24px); box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: 50px; height: 50px; display: grid; place-items: center; flex-shrink: 0;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: linear-gradient(160deg,#a3271e,var(--crimson) 70%);
  color: #fdf7f2; font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem; font-weight: 700;
  filter: drop-shadow(0 6px 16px rgba(142,28,22,.35));
}
.brand-copy { display: grid; gap: 2px; min-width: 0; }
.brand-copy strong { color: var(--text-primary); font-size: .92rem; letter-spacing: .14em; white-space: nowrap; }
.brand-copy span { color: var(--text-muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  color: var(--text-primary); cursor: pointer; flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 15px; border-radius: 999px; color: var(--text-secondary);
  font-weight: 600; font-size: .88rem; transition: background 160ms ease, color 160ms ease;
}
.site-nav a:hover, .site-nav a[aria-current='page'] { background: var(--glass-strong); color: var(--text-primary); }
.site-nav a[aria-current='page'] { border: 1px solid var(--gold-border); color: var(--gold-light); }
.site-nav .nav-cta { margin-left: 10px; }
/* Preserve btn-gold appearance for nav CTA even when aria-current="page" */
.site-nav .btn-gold[aria-current='page'],
.site-nav .btn-gold:hover {
  background: linear-gradient(135deg,#a3271e,var(--crimson));
  color: #fdf7f2;
  border: none;
}

/* ======== HERO (Homepage) ======== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(18,11,10,.78) 0%,rgba(18,11,10,.5) 40%,rgba(18,11,10,.92) 100%),
              linear-gradient(90deg,rgba(18,11,10,.55),transparent 65%);
}
.hero-content { position: relative; z-index: 1; padding: 130px 0 100px; }
.hero-inner { display: grid; gap: 36px; max-width: 860px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid var(--gold-border); background: rgba(201,106,84,.08);
  color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; width: fit-content;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,106,84,.2); }
.hero-headline { font-family: 'Cormorant Garamond',serif; font-size: clamp(3.2rem,8.5vw,7.4rem); font-weight: 600; letter-spacing: -.05em; line-height: .88; color: var(--text-primary); }
.hero-headline em { font-style: normal; color: var(--gold); display: block; }
.hero-sub { font-size: clamp(.98rem,1.6vw,1.18rem); color: var(--text-secondary); line-height: 1.72; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats {
  display: flex; gap: 44px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid rgba(201,106,84,.2);
}
.hero-stat strong { display: block; font-family: 'Cormorant Garamond',serif; font-size: 2.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.hero-stat span { font-size: .82rem; color: var(--text-muted); margin-top: 4px; display: block; text-transform: uppercase; letter-spacing: .06em; }
.scroll-ind {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  animation: scrollbounce 2.4s ease infinite;
}
.scroll-ind::after { content: ''; width: 1px; height: 44px; background: linear-gradient(to bottom,var(--gold),transparent); }
@keyframes scrollbounce { 0%,100% { transform: translateX(-50%) translateY(0); } 55% { transform: translateX(-50%) translateY(9px); } }

/* ======== STATS STRIP ======== */
.stats-strip { background: linear-gradient(135deg,rgba(201,106,84,.1),rgba(201,106,84,.03)); border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; text-align: center; }
.stat-item { padding: 20px 16px; position: relative; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: var(--gold-border); }
.stat-number { font-family: 'Cormorant Garamond',serif; font-size: clamp(2.2rem,5vw,3.6rem); font-weight: 700; color: var(--gold); line-height: 1; display: block; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 8px; letter-spacing: .07em; text-transform: uppercase; display: block; }

/* ======== INTRO SPLIT ======== */
.intro-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.intro-grid.intro-grid-team { grid-template-columns: 1.18fr .92fr; align-items: start; }
.intro-visual { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5; }
.intro-visual img { width: 100%; height: 100%; object-fit: cover; }
.intro-visual.is-wide-shot { aspect-ratio: 16/10; }
.intro-visual.is-wide-shot img { object-position: center 30%; }
.intro-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(18,11,10,.6),transparent 55%); }
.intro-badge {
  position: absolute; bottom: 28px; left: 28px; z-index: 2;
  padding: 18px 22px; background: rgba(28,17,15,.88); border: 1px solid var(--gold-border);
  border-radius: var(--r-md); backdrop-filter: blur(16px);
}
.intro-badge strong { display: block; font-size: 1.4rem; color: var(--gold); font-family: 'Cormorant Garamond',serif; line-height: 1; }
.intro-badge span { font-size: .8rem; color: var(--text-muted); margin-top: 4px; display: block; }
.intro-copy { display: grid; gap: 26px; }
.intro-copy h2 { font-size: clamp(2rem,4vw,3.2rem); color: var(--text-primary); }
.intro-copy p { color: var(--text-secondary); line-height: 1.77; font-size: 1.02rem; }
.section-light .intro-copy h2 { color: var(--text-dark); }
.section-light .intro-copy p { color: var(--text-dark-muted); }

/* ======== BENTO GRID (Services) ======== */
.bento-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.bento-cell { border-radius: var(--r-xl); padding: 32px; overflow: hidden; position: relative; transition: transform 260ms var(--ease), box-shadow 260ms ease; }
.bento-cell:hover { transform: translateY(-5px); }
.bc-4 { grid-column: span 4; } .bc-5 { grid-column: span 5; } .bc-7 { grid-column: span 7; } .bc-6 { grid-column: span 6; } .bc-3 { grid-column: span 3; }
.bento-grid-uniform {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.bento-grid-uniform > .bento-cell {
  grid-column: auto !important;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.bento-grid-uniform > .area-card-click { cursor: pointer; }
.bento-grid-uniform > .area-card-click:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.bento-dark { background: linear-gradient(145deg,var(--navy-700),var(--navy-900)); border: 1px solid var(--glass-border); }
.bento-dark:hover { border-color: var(--gold-border); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.bento-gold { background: linear-gradient(145deg,rgba(201,106,84,.16),rgba(201,106,84,.04)); border: 1px solid var(--gold-border); }
.bento-gold:hover { box-shadow: 0 20px 60px rgba(201,106,84,.14); }
.bento-mid { background: var(--navy-600); border: 1px solid rgba(255,255,255,.06); }
.bento-mid:hover { border-color: var(--gold-border); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.bento-cell h3 { font-size: clamp(1.15rem,1.8vw,1.45rem); margin: 14px 0 10px; line-height: 1.1; }
.bento-cell p { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.bento-dark h3, .bento-mid h3 { color: var(--text-primary); } .bento-gold h3 { color: var(--gold-pale); }
.bento-dark p, .bento-mid p { color: rgba(240,237,230,.5); } .bento-gold p { color: rgba(240,195,174,.7); }
.area-card-media {
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  margin: -32px -32px 18px;
  height: 208px;
  border: 0;
  background: transparent;
}
.area-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 300ms ease;
}
.bento-cell:hover .area-card-media img { transform: scale(1.03); }

/* ======== PROCESS STEPS ======== */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 35px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg,transparent,var(--gold-border),var(--gold),var(--gold-border),transparent); z-index: 0; }
.step-item { padding: 0 18px; text-align: center; position: relative; z-index: 1; }
.step-num { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 999px; background: linear-gradient(135deg,#a3271e,var(--crimson)); color: #fdf7f2; font-family: 'Cormorant Garamond',serif; font-size: 1.5rem; font-weight: 700; margin: 0 auto 20px; box-shadow: 0 8px 28px rgba(142,28,22,.35); }
.step-item h3 { font-size: 1.12rem; margin-bottom: 10px; color: var(--text-primary); }
.step-item p { font-size: .86rem; color: var(--text-muted); line-height: 1.65; }
.section-light .step-item h3 { color: var(--text-dark); } .section-light .step-item p { color: var(--text-dark-muted); }
.section-light .steps-grid::before { background: linear-gradient(90deg,transparent,rgba(142,28,22,.3),rgba(142,28,22,.5),rgba(142,28,22,.3),transparent); }
.section-light .step-num { box-shadow: 0 8px 24px rgba(142,28,22,.25); }

/* ======== TEAM CARDS ======== */
.team-grid-main { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.team-card { border-radius: var(--r-xl); overflow: hidden; background: var(--navy-700); border: 1px solid var(--glass-border); transition: transform 250ms var(--ease), border-color 250ms ease, box-shadow 250ms ease; }
.team-card:hover { transform: translateY(-6px); border-color: var(--gold-border); box-shadow: var(--shadow-gold); }
.team-card-visual { height: 200px; display: grid; place-items: center; position: relative; overflow: hidden; background: linear-gradient(135deg,var(--navy-900),var(--navy-600)); }
.team-card-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 40% 40%, rgba(201,106,84,.12), transparent 60%); }
.team-avatar { width: 88px; height: 88px; border-radius: 999px; display: grid; place-items: center; font-family: 'Cormorant Garamond',serif; font-size: 2.2rem; font-weight: 700; color: var(--navy-900); position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.av-f { background: linear-gradient(135deg,#c96a54,#eaa88f); } .av-s { background: linear-gradient(135deg,#96687a,#c9a3b4); } .av-d { background: linear-gradient(135deg,#5c7d96,#a3c2d6); }
.av-v { background: linear-gradient(135deg,#6f8a5e,#a8c491); } .av-m { background: linear-gradient(135deg,#b08b5b,#d4b489); } .av-e { background: linear-gradient(135deg,#b05b5b,#d48989); }
.av-g { background: linear-gradient(135deg,#6b8b5b,#a4c48d); } .av-plus { background: linear-gradient(135deg,rgba(201,106,84,.3),rgba(201,106,84,.1)); border: 2px dashed var(--gold-border); color: var(--gold); font-size: 1.8rem; }
.team-card-info { padding: 24px; }
.team-card-info h3 { font-size: 1.08rem; color: var(--text-primary); margin-bottom: 8px; line-height: 1.2; }
.team-card-info p { font-size: .84rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.role-badge { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--gold-bg); border: 1px solid var(--gold-border); color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.av-w { background: linear-gradient(135deg,#84708f,#b7a4c2); }

/* ---- Team photo cards ---- */
.team-photo-wrap { height: 240px; position: relative; overflow: hidden; background: var(--navy-900); }
.team-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 400ms ease; display: block; }
.team-card:hover .team-photo-img { transform: scale(1.04); }
.team-photo-wrap .role-badge { position: absolute; bottom: 12px; left: 14px; z-index: 2; }
.team-photo-wrap.is-compact { height: 210px; }
.team-meta { list-style: none; padding: 0; margin: 14px 0 16px; display: flex; flex-direction: column; gap: 7px; }
.team-meta-item { display: flex; align-items: flex-start; gap: 8px; font-size: .78rem; color: var(--text-muted); line-height: 1.45; }
.team-meta-icon { flex-shrink: 0; width: 14px; height: 14px; margin-top: 1px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.team-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.team-linkedin { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(10,102,194,.15); border: 1px solid rgba(10,102,194,.3); color: #7ab4f0; font-size: .78rem; font-weight: 700; transition: background 160ms ease; text-decoration: none; }
.team-linkedin:hover { background: rgba(10,102,194,.25); }
.team-linkedin svg { width: 13px; height: 13px; fill: #7ab4f0; flex-shrink: 0; }

.profile-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.profile-detail-card { background: var(--light-paper); border: 1px solid var(--light-border); border-radius: var(--r-xl); padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.profile-detail-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.profile-detail-top img { width: 88px; height: 88px; object-fit: cover; border-radius: 20px; border: 1px solid rgba(0,0,0,.08); }
.profile-detail-card h3 { font-size: 1.4rem; color: var(--text-dark); margin-top: 10px; line-height: 1.05; }
.profile-detail-card p { color: var(--text-dark-muted); line-height: 1.72; font-size: .94rem; }
.profile-detail-card ul { margin-top: 14px; padding-left: 18px; color: var(--text-dark-muted); display: grid; gap: 8px; }
.profile-detail-card li { line-height: 1.55; font-size: .9rem; }

/* ---- News/article media ---- */
.news-media {
  border-radius: var(--r-md);
  overflow: hidden;
  background: #d7d2c7;
  border: 1px solid var(--light-border);
  aspect-ratio: 16/9;
}
.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.feature-news {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}
.news-card {
  display: grid;
  gap: 16px;
}
.news-card.is-integrated {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.news-card-media {
  display: block;
  height: 208px;
  overflow: hidden;
  background: #d7d2c7;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 320ms ease;
}
.news-card.is-integrated:hover .news-card-media img { transform: scale(1.03); }
.news-card-body {
  display: grid;
  gap: 12px;
  padding: 22px 24px 24px;
}
.news-source {
  font-size: .78rem;
  color: var(--text-dark-muted);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ======== CAROUSEL ======== */
.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex-shrink: 0; width: 340px; }
.carousel-item.team-card .team-photo-wrap.is-compact { height: 160px; }
.carousel-item.team-card .team-card-info { padding: 20px; }
.carousel-controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.carousel-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--text-primary); cursor: pointer; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.carousel-btn:hover { background: var(--gold-bg); border-color: var(--gold-border); transform: scale(1.07); }
.carousel-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-dots { display: flex; gap: 6px; margin-left: 8px; }
.carousel-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--glass-border); transition: width 220ms ease, background 220ms ease; }
.carousel-dot.active { width: 22px; background: var(--gold); }

/* ======== QUOTE SECTION ======== */
.quote-wrap { text-align: center; padding: 0 24px; position: relative; }
.quote-mark { font-family: 'Cormorant Garamond',serif; font-size: 10rem; line-height: .5; color: rgba(201,106,84,.12); position: absolute; top: -10px; left: 50%; transform: translateX(-50%); pointer-events: none; user-select: none; }
.quote-text { font-family: 'Cormorant Garamond',serif; font-size: clamp(1.5rem,3vw,2.6rem); font-weight: 600; color: var(--text-primary); line-height: 1.35; max-width: 760px; margin: 36px auto 24px; position: relative; }
.quote-source { font-size: .88rem; color: var(--gold); font-weight: 700; letter-spacing: .08em; }

/* ======== CTA BANNER ======== */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 72px 56px; background: linear-gradient(135deg,var(--navy-900) 0%,#2a1815 60%,var(--navy-600) 100%); border: 1px solid var(--gold-border); }
.cta-banner::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 999px; background: radial-gradient(circle,rgba(201,106,84,.15),transparent 70%); pointer-events: none; }
.cta-banner::after { content: ''; position: absolute; bottom: -80px; left: 20%; width: 300px; height: 300px; border-radius: 999px; background: radial-gradient(circle,rgba(184,56,50,.1),transparent 70%); pointer-events: none; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; z-index: 1; }
.cta-copy h2 { font-size: clamp(1.8rem,4vw,3.2rem); color: var(--text-primary); margin-bottom: 12px; }
.cta-copy p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 14px; flex-direction: column; }

/* ======== OFFICES ======== */
.offices-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.office-card { border-radius: var(--r-xl); padding: 32px; position: relative; overflow: hidden; transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease; }
.office-card-dark { background: linear-gradient(145deg,var(--navy-700),var(--navy-900)); border: 1px solid var(--glass-border); color: var(--text-primary); }
.office-card-dark:hover { transform: translateY(-5px); box-shadow: var(--shadow-dark); border-color: var(--gold-border); }
.office-media {
  margin: -32px -32px 20px;
  height: 170px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.office-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.office-pin { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--gold-bg); border: 1px solid var(--gold-border); color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.office-pin svg { width: 12px; height: 12px; stroke: var(--gold); fill: none; }
.office-card h3 { font-size: 1.35rem; color: var(--text-primary); margin-bottom: 10px; }
.office-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.office-card address { font-style: normal; font-size: .86rem; color: var(--gold-light); border-top: 1px solid var(--glass-border); padding-top: 14px; }

/* ======== FAQ ======== */
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--r-md); border: 1px solid var(--glass-border); overflow: hidden; transition: border-color 200ms ease; background: var(--glass); }
.faq-item[open], .faq-item:hover { border-color: var(--gold-border); }
.faq-item summary { padding: 22px 26px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: .96rem; color: var(--text-primary); user-select: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--gold); flex-shrink: 0; transition: transform 200ms ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 26px 22px; font-size: .9rem; color: var(--text-secondary); line-height: 1.78; }
.section-light .faq-item { background: var(--light-paper); border-color: var(--light-border); }
.section-light .faq-item summary { color: var(--text-dark); }
.section-light .faq-item[open], .section-light .faq-item:hover { border-color: rgba(142,28,22,.35); }
.section-light .faq-body { color: var(--text-dark-muted); }

/* ======== CONTACT FORM ======== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 24px; }
.contact-highlight { background: linear-gradient(145deg,var(--navy-700),var(--navy-900)); border: 1px solid var(--glass-border); border-radius: var(--r-xl); padding: 38px; }
.contact-highlight h2 { font-size: clamp(1.5rem,2.5vw,2.2rem); color: var(--text-primary); margin: 16px 0 12px; }
.contact-highlight p { color: var(--text-secondary); line-height: 1.77; font-size: .93rem; margin-bottom: 24px; }
.form-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--r-xl); padding: 40px; backdrop-filter: blur(12px); }
.form-card h3 { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 26px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-full { grid-column: span 2; }
.field { display: grid; gap: 7px; }
.field label { font-size: .78rem; font-weight: 700; color: var(--text-secondary); letter-spacing: .07em; text-transform: uppercase; }
.field input, .field select, .field textarea { background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: var(--r-sm); padding: 13px 16px; color: var(--text-primary); transition: border-color 160ms ease, box-shadow 160ms ease; appearance: none; -webkit-appearance: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,106,84,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field select option { background: var(--navy-800); color: var(--text-primary); }
.form-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* ---- Service picker (agendamiento) ---- */
.service-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.service-option { display: block; cursor: pointer; }
.service-option input { position: absolute; opacity: 0; pointer-events: none; }
.service-option-body {
  position: relative; display: grid; gap: 4px; padding: 16px 44px 16px 18px;
  border-radius: var(--r-md); background: var(--glass-strong);
  border: 1.5px solid var(--glass-border);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.service-option-body strong { font-size: .95rem; color: var(--text-primary); }
.service-option-body > span { font-size: .82rem; color: var(--text-muted); line-height: 1.4; }
.service-option-body em { font-style: normal; font-weight: 800; color: var(--gold); font-size: .9rem; }
.service-option-body::after {
  content: ''; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px;
  border-radius: 999px; border: 1.5px solid var(--glass-border);
  transition: border-color 160ms ease, background 160ms ease;
}
.service-option:hover .service-option-body { border-color: var(--gold-border); }
.service-option input:checked + .service-option-body {
  border-color: var(--gold); background: var(--gold-bg);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.service-option input:checked + .service-option-body::after {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 0 4.5px, transparent 5.5px);
}
.service-option input:focus-visible + .service-option-body {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.form-status-msg { font-size: .86rem; font-weight: 600; padding: 10px 16px; border-radius: var(--r-sm); flex: 1; }
.form-status-msg.is-error { background: rgba(184,56,50,.12); border: 1px solid rgba(184,56,50,.3); color: #ff8a80; }
.form-status-msg.is-success { background: rgba(90,190,120,.1); border: 1px solid rgba(90,190,120,.25); color: #7ae09b; }

/* ======== PAGE HERO (inner pages) ======== */
.page-hero { position: relative; padding: 52px 0 64px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; right: -200px; width: 600px; height: 600px; border-radius: 999px; background: radial-gradient(circle,rgba(201,106,84,.07),transparent 70%); pointer-events: none; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.page-hero-grid.is-single { grid-template-columns: 1fr; }
.page-hero-copy { display: grid; gap: 20px; padding: 40px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--glass-border); }
.page-hero-copy.compact { max-width: 900px; }
.page-hero-copy h1 { font-size: clamp(2rem,4.5vw,3.5rem); color: var(--text-primary); }
.page-hero-copy h1 em { font-style: normal; color: var(--gold); }
.page-hero-copy p { color: var(--text-secondary); line-height: 1.75; font-size: 1.02rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero-visual { border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(145deg,var(--navy-700),var(--navy-900)); border: 1px solid var(--glass-border); padding: 28px; display: grid; gap: 20px; }
.page-hero-visual img { width: 100%; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.06); }
.branch-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.branch-tab {
  appearance: none;
  border: 1px solid var(--gold-border);
  background: rgba(255,255,255,.03);
  color: var(--text-primary);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  display: grid;
  gap: 4px;
}
.branch-tab:hover, .branch-tab:focus-visible { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 20px rgba(201,106,84,.14); outline: none; }
.branch-tab.is-active { background: linear-gradient(135deg, rgba(201,106,84,.18), rgba(201,106,84,.06)); border-color: var(--gold); box-shadow: 0 10px 28px rgba(201,106,84,.18); }
.branch-name { font-size: .88rem; font-weight: 800; letter-spacing: .02em; }
.branch-meta { font-size: .74rem; color: var(--text-muted); }
.branch-tab.is-active .branch-meta { color: var(--gold-pale); }
.academy-logos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 4px; }
.academy-logo {
  min-height: 84px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(0,0,0,.06);
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: transform 220ms var(--ease), box-shadow 220ms ease;
}
.academy-logo:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.24); }
.academy-logo img { width: 100%; max-width: 150px; max-height: 52px; object-fit: contain; }

/* ======== COURSES ======== */
.align-start { align-items: start; }
.course-benefits-grid { margin-top: 12px; }
.course-tile h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--text-primary); }
.course-tile p { color: var(--text-secondary); font-size: .92rem; line-height: 1.7; }
.course-programs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.course-program-card {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--light-paper);
  border: 1px solid var(--light-border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}
.course-program-card:hover { transform: translateY(-5px); box-shadow: 0 18px 54px rgba(0,0,0,.14); border-color: rgba(142,28,22,.28); }
.course-program-media { min-height: 180px; background-size: cover; background-position: center; position: relative; }
.course-program-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.34)); }
.course-program-body { padding: 24px; display: grid; gap: 12px; }
.course-program-topline { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8e1c16; }
.course-program-body h3 { font-size: 1.5rem; color: var(--text-dark); line-height: 1.05; }
.course-program-body p { color: var(--text-dark-muted); font-size: .92rem; line-height: 1.7; }
.course-points { list-style: none; padding: 0; display: grid; gap: 10px; }
.course-points li { color: var(--text-dark-muted); font-size: .88rem; line-height: 1.55; display: flex; gap: 10px; }
.course-points li::before { content: ''; width: 18px; height: 18px; border-radius: 999px; background: rgba(142,28,22,.1); border: 1px solid rgba(142,28,22,.24); flex-shrink: 0; margin-top: 2px; }


/* ======== FOOTER ======== */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(201,106,84,.15); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 32px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: .88rem; line-height: 1.72; max-width: 380px; margin-bottom: 22px; }
.footer-col h4 { font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; font-family: 'Manrope',sans-serif; font-weight: 700; }
.footer-col a { display: block; color: var(--text-secondary); font-size: .88rem; padding: 5px 0; transition: color 160ms ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-note { font-size: .8rem; color: var(--text-muted); }
.footer-locs { font-size: .8rem; color: var(--text-muted); display: flex; gap: 16px; }

/* ======== REVEAL ANIMATIONS ======== */
.reveal, .reveal-l, .reveal-s {
  opacity: 0;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal { transform: translateY(28px); }
.reveal-l { transform: translateX(-24px); }
.reveal-s { transform: scale(.95); }
.reveal.in, .reveal-l.in, .reveal-s.in { opacity: 1; transform: none; }

/* stagger delays */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ======== TRUST STRIP ======== */
.trust-row { display: flex; gap: 36px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 40px 0; border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .65; transition: opacity 200ms ease; }
.trust-item:hover { opacity: 1; }
.trust-icon { width: 54px; height: 54px; border-radius: 13px; background: var(--glass); border: 1px solid var(--glass-border); display: grid; place-items: center; }
.trust-icon svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.trust-label { font-size: .76rem; color: var(--text-muted); text-align: center; max-width: 74px; line-height: 1.3; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1100px) {
  .bento-grid { grid-template-columns: repeat(6,1fr); }
  .bc-4 { grid-column: span 3; } .bc-5 { grid-column: span 3; } .bc-7 { grid-column: span 3; } .bc-6 { grid-column: span 3; } .bc-3 { grid-column: span 3; }
  .bento-grid-uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-grid { gap: 40px; }
  .steps-grid::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .team-grid-main { grid-template-columns: 1fr 1fr; }
  .feature-news { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2)::after { display: none; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid.intro-grid-team { grid-template-columns: 1fr; }
  .intro-visual { aspect-ratio: 16/9; }
  .contact-layout { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-actions { flex-direction: row; justify-content: center; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-visual { display: none; }
  .academy-logos { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .course-programs-grid { grid-template-columns: 1fr; }
  .profile-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .topbar-items span:nth-child(n+2) { display: none; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 14px; background: rgba(28,17,15,.97); border: 1px solid var(--gold-border); border-radius: var(--r-lg); backdrop-filter: blur(24px); box-shadow: 0 20px 60px rgba(0,0,0,.5); gap: 4px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 16px; border-radius: var(--r-sm); color: var(--text-primary); }
  .site-nav .nav-cta { margin-left: 0; text-align: center; justify-content: center; margin-top: 8px; }
  .nav-shell { position: relative; }
  .hero-headline { font-size: clamp(2.7rem,9vw,4rem); }
  .hero-stats { gap: 24px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .team-grid-main { grid-template-columns: 1fr; }
  .team-photo-wrap.is-compact { height: 230px; }
  .offices-grid { grid-template-columns: 1fr; }
  .bento-grid { display: flex; flex-direction: column; }
  .bento-grid-uniform { display: grid; grid-template-columns: 1fr; }
  .area-card-media { height: 180px; }
  .news-card-media { height: 190px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: span 1; }
  .cta-banner { padding: 40px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .kicker-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .academy-logos { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }
  .container { width: calc(100% - 32px); }
  .academy-logos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ============================================================
   LIGHT THEME  (toggled via <html data-theme="light">)
   Comprehensive token remapping + component-level overrides.
   ============================================================ */
html[data-theme='light'] {
  /* Surface scale — light to medium */
  --navy-900: #f7f4ef;   /* darkest surface → soft parchment */
  --navy-800: #f0ece4;   /* body bg */
  --navy-700: #faf8f4;   /* section-navy, card bg */
  --navy-600: #e8e2d8;
  --navy-500: #ddd6c8;
  /* Gold — deeper for readability on light bg */
  --gold: #8e1c16;
  --gold-light: #a3271e;
  --gold-pale: #6f1410;
  --gold-glow: rgba(142,28,22,.14);
  --gold-border: rgba(142,28,22,.28);
  --gold-bg: rgba(142,28,22,.07);
  /* Text — dark */
  --text-primary: #231a17;
  --text-secondary: rgba(35,26,23,.72);
  --text-muted: rgba(35,26,23,.50);
  /* Glass/surfaces — subtle on light bg */
  --glass: rgba(255,255,255,.72);
  --glass-strong: rgba(255,255,255,.88);
  --glass-border: rgba(35,26,23,.1);
  /* Shadows */
  --shadow-gold: 0 20px 60px rgba(142,28,22,.13);
  --shadow-dark: 0 24px 64px rgba(35,26,23,.12);
}
html[data-theme='light'] body { background: var(--navy-800); }

/* ---- Header surfaces (hardcoded bg overrides) ---- */
html[data-theme='light'] .topbar-inner {
  background: rgba(255,255,255,.95);
  border-color: rgba(142,28,22,.18);
  color: var(--text-secondary);
  box-shadow: 0 6px 24px rgba(35,26,23,.08);
}
html[data-theme='light'] .nav-shell {
  background: rgba(255,255,255,.96);
  border-color: rgba(142,28,22,.14);
  box-shadow: 0 8px 32px rgba(35,26,23,.08);
}
/* Mobile nav open state */
html[data-theme='light'] .site-nav.is-open {
  background: rgba(255,255,255,.99);
  border-color: var(--gold-border);
  box-shadow: 0 20px 60px rgba(35,26,23,.18);
}
html[data-theme='light'] .site-nav.is-open a { color: var(--text-primary); }
html[data-theme='light'] .brand-mark { filter: drop-shadow(0 6px 14px rgba(142,28,22,.28)); }

/* ---- Hero (index) — keep text legible on dark photo overlay ---- */
html[data-theme='light'] .hero { color: #f0ede6; }
html[data-theme='light'] .hero-headline { color: #f0ede6; }
html[data-theme='light'] .hero-sub { color: rgba(240,237,230,.82); }
html[data-theme='light'] .hero-tag { color: #f0c3ae; border-color: rgba(201,106,84,.4); background: rgba(201,106,84,.12); }
html[data-theme='light'] .hero-tag::before { background: #c96a54; }
html[data-theme='light'] .hero-stat strong { color: #c96a54; }
html[data-theme='light'] .hero-stat span { color: rgba(240,237,230,.55); }
html[data-theme='light'] .scroll-ind { color: rgba(240,237,230,.5); }
html[data-theme='light'] .hero-actions .btn-ghost { border-color: rgba(255,255,255,.35); color: #f0ede6; }

/* ---- Sections — visual hierarchy between section types ---- */
html[data-theme='light'] .section-dark { background: #eeeae2; }   /* slightly muted */
html[data-theme='light'] .section-navy { background: #f4f1eb; }   /* middle tone */
/* section-light (.section-light) stays as-is: --light-bg = #f5f2ed → fine */

/* ---- Glass cards → give them body + shadow ---- */
html[data-theme='light'] .glass-card {
  background: #ffffff;
  border-color: rgba(35,26,23,.09);
  box-shadow: 0 6px 28px rgba(35,26,23,.07);
  backdrop-filter: none;
}
html[data-theme='light'] .glass-card:hover { box-shadow: var(--shadow-gold); }

/* ---- Gold cards — keep warm tinted look ---- */
html[data-theme='light'] .gold-card {
  background: linear-gradient(135deg, rgba(142,28,22,.1), rgba(142,28,22,.04));
}
html[data-theme='light'] .gold-card h3 { color: var(--gold-pale) !important; }
html[data-theme='light'] .gold-card p,
html[data-theme='light'] .gold-card li,
html[data-theme='light'] .gold-card .check-list li { color: var(--text-secondary) !important; }

/* ---- Team cards ---- */
html[data-theme='light'] .team-card {
  background: #ffffff;
  border-color: rgba(35,26,23,.09);
  box-shadow: 0 4px 18px rgba(35,26,23,.06);
}
html[data-theme='light'] .team-card:hover { box-shadow: var(--shadow-gold); }
html[data-theme='light'] .team-photo-wrap { background: #e8e4dc; }

/* ---- Bento grid cells ---- */
html[data-theme='light'] .bento-dark {
  background: linear-gradient(145deg, #e8e4dc, #f0ece4);
  border-color: rgba(35,26,23,.09);
}
html[data-theme='light'] .bento-dark h3,
html[data-theme='light'] .bento-mid h3 { color: var(--text-primary); }
html[data-theme='light'] .bento-dark p,
html[data-theme='light'] .bento-mid p { color: var(--text-secondary); }
html[data-theme='light'] .bento-gold p { color: var(--text-secondary); }
html[data-theme='light'] .bento-mid { background: #e2ddd5; border-color: rgba(35,26,23,.1); }

/* ---- Form card ---- */
html[data-theme='light'] .form-card {
  background: #ffffff;
  border-color: rgba(35,26,23,.1);
  backdrop-filter: none;
  box-shadow: 0 6px 28px rgba(35,26,23,.07);
}
html[data-theme='light'] .form-card h3 { color: var(--text-primary); }
html[data-theme='light'] .field label { color: var(--text-secondary); }
html[data-theme='light'] .field input,
html[data-theme='light'] .field select,
html[data-theme='light'] .field textarea {
  background: #f8f6f2;
  border-color: rgba(35,26,23,.14);
  color: var(--text-primary);
}
html[data-theme='light'] .field input::placeholder,
html[data-theme='light'] .field textarea::placeholder { color: var(--text-muted); }
html[data-theme='light'] .field select option { background: #ffffff; color: var(--text-primary); }
html[data-theme='light'] .service-option-body { background: #f8f6f2; border-color: rgba(35,26,23,.14); }
html[data-theme='light'] .service-option input:checked + .service-option-body { background: var(--gold-bg); }

/* ---- Page-hero copy panel ---- */
html[data-theme='light'] .page-hero-copy {
  background: rgba(255,255,255,.88);
  border-color: rgba(35,26,23,.08);
  box-shadow: 0 6px 28px rgba(35,26,23,.06);
  backdrop-filter: blur(8px);
}

/* ---- Page-hero visual panel ---- */
html[data-theme='light'] .page-hero-visual {
  background: linear-gradient(145deg, #e8e4dc, #f0ece4);
  border-color: rgba(35,26,23,.08);
}

/* ---- Contact highlight panel ---- */
html[data-theme='light'] .contact-highlight {
  background: linear-gradient(145deg, #ffffff, #f0ece4);
  border-color: rgba(35,26,23,.09);
}

/* ---- CTA Banner ---- */
html[data-theme='light'] .cta-banner {
  background: linear-gradient(135deg, #eeeae2 0%, #e8e2d8 60%, #ddd6c8 100%);
  border-color: rgba(142,28,22,.28);
}
html[data-theme='light'] .cta-copy h2 { color: var(--text-primary); }
html[data-theme='light'] .cta-copy p { color: var(--text-secondary); }

/* ---- Office cards ---- */
html[data-theme='light'] .office-card-dark {
  background: linear-gradient(145deg, #e8e4dc, #f0ece4);
  border-color: rgba(35,26,23,.09);
  color: var(--text-primary);
}
html[data-theme='light'] .office-card h3,
html[data-theme='light'] .office-card p,
html[data-theme='light'] .office-card address { color: var(--text-primary); }
html[data-theme='light'] .office-card p { color: var(--text-secondary); }
html[data-theme='light'] .office-media { border-color: rgba(35,26,23,.06); }

/* ---- Stats strip ---- */
html[data-theme='light'] .stats-strip {
  background: linear-gradient(135deg, rgba(142,28,22,.07), rgba(142,28,22,.02));
  border-color: rgba(142,28,22,.2);
}

/* ---- FAQ items ---- */
html[data-theme='light'] .faq-item {
  background: #ffffff;
  border-color: rgba(35,26,23,.1);
}
html[data-theme='light'] .faq-item summary { color: var(--text-primary); }
html[data-theme='light'] .faq-body { color: var(--text-secondary); }

/* ---- Intro badge (hardcoded dark bg) ---- */
html[data-theme='light'] .intro-badge {
  background: rgba(255,255,255,.92);
  border-color: rgba(142,28,22,.28);
  backdrop-filter: blur(10px);
}
html[data-theme='light'] .intro-badge span { color: var(--text-muted); }

/* ---- Footer divider lines (hardcoded rgba white) ---- */
html[data-theme='light'] .footer-top {
  border-bottom-color: rgba(35,26,23,.1);
}
html[data-theme='light'] .trust-row {
  border-top-color: rgba(35,26,23,.08);
  border-bottom-color: rgba(35,26,23,.08);
}

/* ---- Carousel buttons ---- */
html[data-theme='light'] .carousel-btn {
  background: rgba(255,255,255,.8);
  border-color: rgba(35,26,23,.12);
  color: var(--text-primary);
}

/* ---- Quote section ---- */
html[data-theme='light'] .quote-text { color: var(--text-primary); }

/* ---- Buttons ---- */
html[data-theme='light'] .btn-dark { background: #241713; color: #f5f2ed; border-color: transparent; }
html[data-theme='light'] .btn-gold { color: #fffaf0; }
html[data-theme='light'] .btn-light { background: #241713; color: #f5f2ed; border-color: transparent; }
html[data-theme='light'] .team-avatar { color: #241713; }
html[data-theme='light'] .form-status-msg.is-error { color: #8e1c16; }
html[data-theme='light'] .btn-ghost { border-color: var(--gold-border); color: var(--gold); }
html[data-theme='light'] .btn-ghost:hover { background: var(--gold-bg); }

/* ---- Arrow links ---- */
html[data-theme='light'] .arrow-link { color: var(--gold); }

/* ---- Branch tabs ---- */
html[data-theme='light'] .branch-tab {
  background: rgba(255,255,255,.6);
  color: var(--text-primary);
}
html[data-theme='light'] .branch-tab.is-active { background: rgba(142,28,22,.1); }

/* ---- LinkedIn badge ---- */
html[data-theme='light'] .team-linkedin {
  background: rgba(10,102,194,.1);
  border-color: rgba(10,102,194,.22);
  color: #1a6fb5;
}
html[data-theme='light'] .team-linkedin svg { fill: #1a6fb5; }

/* ============================================================
   THEME TOGGLE BUTTON  (discreet, fixed lower-left)
   ============================================================ */
.theme-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--gold-light);
  background: rgba(28,17,15,.55);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(10px);
  opacity: .55;
  transition: opacity 200ms ease, transform 200ms var(--ease), background 200ms ease, box-shadow 200ms ease;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  outline: none;
}
html[data-theme='light'] .theme-toggle {
  background: rgba(255,255,255,.7);
  color: var(--gold);
  box-shadow: 0 6px 18px rgba(15,20,30,.12);
}
.theme-toggle-icon { width: 20px; height: 20px; }
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: block; }
html[data-theme='light'] .theme-toggle .theme-icon-sun { display: block; }
html[data-theme='light'] .theme-toggle .theme-icon-moon { display: none; }
@media (max-width: 768px) {
  .theme-toggle { width: 42px; height: 42px; left: 14px; bottom: 14px; }
}

/* ============================================================
   PROFILE MODAL  (individual lawyer view)
   ============================================================ */
body.modal-open { overflow: hidden; }
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.profile-modal.is-open { display: flex; }
.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,8,7,.72);
  backdrop-filter: blur(6px);
  animation: modalFade 220ms var(--ease);
}
.profile-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--navy-700);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
  animation: modalRise 280ms var(--ease);
}
html[data-theme='light'] .profile-modal-dialog {
  background: #ffffff;
  border-color: rgba(142,28,22,.24);
  box-shadow: 0 40px 100px rgba(35,26,23,.2);
}
html[data-theme='light'] .profile-modal-backdrop { background: rgba(30,30,35,.55); }
html[data-theme='light'] .profile-modal-info h3 { color: var(--text-primary); }
html[data-theme='light'] .profile-modal-info p { color: var(--text-secondary); }
html[data-theme='light'] .profile-modal-media { background: #e8e4dc; }
html[data-theme='light'] .profile-modal-close {
  background: rgba(35,26,23,.06);
  border-color: rgba(35,26,23,.1);
  color: var(--text-primary);
}
.profile-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-primary);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  transition: background 160ms ease, transform 160ms ease;
}
.profile-modal-close:hover { background: var(--gold-bg); transform: rotate(90deg); }
.profile-modal-close svg { width: 18px; height: 18px; }
.profile-modal-grid { display: grid; grid-template-columns: .85fr 1.15fr; }
.profile-modal-media {
  position: relative;
  min-height: 320px;
  background: var(--navy-900);
  overflow: hidden;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.profile-modal-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.profile-modal-info { padding: 40px 38px; display: grid; gap: 14px; align-content: start; }
.profile-modal-info h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--text-primary); line-height: 1.05; }
.profile-modal-info .role-badge { justify-self: start; }
.profile-modal-meta { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; gap: 10px; }
.profile-modal-meta .team-meta-item { font-size: .86rem; }
.profile-modal-meta .team-meta-icon { width: 16px; height: 16px; }
.profile-modal-info p { color: var(--text-secondary); font-size: .94rem; line-height: 1.74; }
.profile-modal-links { margin-top: 6px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .profile-modal { padding: 0; align-items: stretch; }
  .profile-modal-dialog { width: 100%; max-height: 100vh; border-radius: 0; border: none; }
  .profile-modal-grid { grid-template-columns: 1fr; }
  .profile-modal-media { min-height: 260px; border-radius: 0; }
  .profile-modal-info { padding: 28px 22px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-modal-backdrop, .profile-modal-dialog { animation: none; }
  .profile-modal-close:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 600px) {
  h1, .display, .display-md { word-break: break-word; }
  .service-picker { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .page-hero-actions .btn, .hero-actions .btn, .form-footer .btn { width: 100%; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-status-msg { width: 100%; text-align: center; }
  .form-card { padding: 24px 18px; }
  .gold-card, .glass-card, .light-card { padding: 24px 20px; }
  .footer-locs { justify-content: center; flex-wrap: wrap; }
  .team-links { gap: 8px; }
}
@media (max-width: 380px) {
  .brand-copy span { display: none; }
  .topbar-items span { font-size: .76rem; }
}