:root {
  --blue-950: #0a1830;
  --blue-900: #0e2c54;
  --blue-800: #16356a;
  --blue-700: #20438a;
  --blue-600: #2f569f;
  --blue-500: #3f68b2;
  --blue-400: #6484c6;
  --blue-300: #90a9d8;
  --blue-200: #dbe8f5;
  --blue-100: #eaf1fa;
  --cyan: #4f7fc4;
  --ice: #f5f8fc;
  --ink: #0e2c54;
  --muted: #2e4a7a;
  --white: #ffffff;
  --serif: 'Avenir Next', 'Avenir', 'Outfit', 'Segoe UI', sans-serif;
  --sans: 'Avenir Next', 'Avenir', 'Outfit', 'Segoe UI', sans-serif;
  --shadow-lg: 0 34px 70px -20px rgba(14, 44, 84, 0.32);
  --shadow-md: 0 18px 44px -18px rgba(14, 44, 84, 0.25);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.page-fade {
  position: fixed; inset: 0; z-index: 4000;
  background: linear-gradient(160deg, #0a1a34, #12275c);
  opacity: 0;
  pointer-events: none;
  transition: opacity .34s ease;;
  will-change: transform
}
.page-fade.active { opacity: 1; pointer-events: auto; }

html { background: #040c1f; }

body {
  font-family: var(--sans);
  background: var(--ice);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { width: 1.1em; height: 1.1em; vertical-align: middle; }

.container { width: min(1180px, 92%); margin-inline: auto; }

::selection { background: var(--blue-500); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--blue-950); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue-400), var(--blue-600)); border-radius: 99px; border: 3px solid var(--blue-950); }

section[id] { scroll-margin-top: 104px; }

.preloader {
  position: fixed; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--blue-800), var(--blue-950));
  z-index: 10000;
  display: grid;
  place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-orbit {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  position: relative;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.preloader-orbit::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #8ee8fa;
  border-right-color: #9fb8ec;
  filter: drop-shadow(0 0 6px rgba(142, 232, 250, 0.55));
  animation: spinOrbit 1s linear infinite;
}
.preloader-orbit span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(142, 232, 250, 0.8);
  animation: orbitDot 1s linear infinite;
}
.preloader-orbit span:nth-child(1) { top: -4px; left: 50%; transform: translateX(-50%); }
.preloader-orbit span:nth-child(2) { bottom: -4px; left: 50%; transform: translateX(-50%); animation-delay: .55s; }
.preloader-orbit span:nth-child(3) { right: -4px; top: 50%; transform: translateY(-50%); animation-delay: .275s; }
@keyframes spinOrbit { to { transform: rotate(360deg); } }
@keyframes orbitDot {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}
.preloader p {
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: .35em;
  font-size: .76rem;
  font-weight: 600;
}

.navbar {
  position: relative;
  z-index: 1000;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 60%, rgba(247, 251, 255, 0) 100%);
  transition: box-shadow .3s ease;
}
.navbar.scrolled {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 12px 32px -20px rgba(10, 24, 48, 0.28);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: .55rem 1.4rem;
  background: transparent;
}

.nav-links a:not(.nav-cta) {
  position: relative;
  font-size: .86rem;
  font-weight: 600;
  padding: .35rem .2rem;
  color: var(--blue-900);
  text-shadow: none;
  transition: color .3s;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-300), var(--cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:not(.nav-cta):hover { color: var(--cyan); }
.nav-links a.active:not(.nav-cta) { color: var(--cyan); }
.nav-links a.active:not(.nav-cta)::after { transform: scaleX(1); }
.nav-links .nav-cta {
  background: linear-gradient(120deg, var(--blue-500), var(--blue-700));
  color: #fff;
  padding: .68rem 1.4rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: 0 8px 26px rgba(22, 59, 133, .4);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.nav-links .nav-cta:hover {
  box-shadow:
    0 0 0 1px rgba(95, 196, 224, 0.7),
    0 0 18px 2px rgba(95, 196, 224, 0.8),
    0 0 45px 10px rgba(22, 59, 133, 0.55);
  transform: translateY(-2px);
}

.nav-phone { display: none; }

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: -50px;
  margin-bottom: -21px;
}
.brand-img {
  height: 175px;
  width: auto;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.5rem); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--blue-900);
  border-radius: 99px;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-toggle.open span { background: #fff; }
.nav-toggle.open { background: rgba(13, 30, 74, 0.5); border-radius: 50%; }

.hero {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #040c1f;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.92), transparent);
  z-index: 1;
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #040c1f 0%, var(--blue-900) 45%, var(--blue-700) 100%);
}
.hero-photo-bg {
  position: absolute; inset: 0;
  background-image: url('../images/desk.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 58%, transparent 98%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 58%, transparent 98%);
}
.hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(95, 196, 224, 0.22), transparent 42%),
    radial-gradient(circle at 18% 78%, rgba(42, 85, 171, 0.35), transparent 50%),
    radial-gradient(circle at 55% 45%, rgba(93, 127, 196, 0.12), transparent 55%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 60% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000, transparent 78%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
}
.hero-blob-1 {
  width: 380px; height: 380px;
  right: 6%; top: 16%;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
}
.hero-blob-2 {
  width: 320px; height: 320px;
  left: -60px; bottom: 8%;
  background: radial-gradient(circle, var(--blue-400), transparent 70%);
  animation-delay: -4s;
}
.hero-blob-3 {
  width: 240px; height: 240px;
  left: 42%; top: 60%;
  background: radial-gradient(circle, rgba(22, 59, 133, .8), transparent 70%);
  animation-delay: -8s;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 180px 0 120px;
}
.hero-content { max-width: 760px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--cyan);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(95, 196, 224, 0.4);
  border-radius: 99px;
  background: rgba(95, 196, 224, 0.08);
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(95, 196, 224, .2);
}

.hero-title {
  font-family: var(--serif);
  color: #fff;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.1;
}
.hero-title .line1 { display: block; }
.hero-title .line2 { display: block; }
.hero-title .line3 { display: block; }
.hero-title em {
  font-style: italic;
  color: var(--cyan);
  font-family: var(--serif);
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 300;
}
@media (max-width: 860px) {
  .hero-sub { min-height: 118px; }
}
.type-wrap {
  display: inline-block;
  width: 320px;
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: baseline;
}
@media (max-width: 480px) {
  .type-wrap { width: 100%; }
}
.caret {
  display: inline-block;
  width: 2.5px; height: 1.05em;
  background: var(--cyan);
  margin-left: 3px;
  vertical-align: -0.12em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 2.1rem;
  border-radius: 99px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .94rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s, border-color .35s;
  white-space: nowrap;
}
.btn svg { width: 1em; height: 1em; }
.btn-primary {
  background: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  color: #fff;
  box-shadow: 0 14px 34px rgba(22, 59, 133, .45);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5), transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(22, 59, 133, .6); }
.btn-glass {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--cyan); transform: translateY(-3px); color: #fff; }
.btn-outline {
  border: 2px solid var(--blue-600);
  color: var(--blue-700);
}
.btn-outline:hover { background: var(--blue-600); color: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22, 59, 133, .4); }

.hero-tagline {
  margin-top: 2.2rem;
  max-width: 560px;
  font-size: 1.5rem;
}
.hero-tagline strong { color: #fff; }
.hero-tagline em { color: var(--cyan); }

.services {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 90% 8%, rgba(22, 59, 133, 0.07), transparent 40%),
    var(--ice);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.services-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url('../images/practice-backdrop.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  pointer-events: none;
}
.section-head {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.4rem;
  padding-top: 1.6rem;
}
.section-head::before {
  content: attr(data-num);
  position: absolute;
  top: -42px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 7.5rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(22, 59, 133, 0.06);
  pointer-events: none;
  user-select: none;
}
.section-head-left { text-align: left; margin: 0 0 1.6rem; padding-top: 1.6rem; }
.section-head-left::before { left: 0; transform: none; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--blue-600);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan));
  border-radius: 99px;
}
.kicker-light { color: var(--cyan); }
.section-title {
  font-family: var(--serif);
  color: var(--blue-950);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.18;
}
.section-title em { font-style: italic; color: var(--blue-500); }
.section-sub { color: var(--muted); margin-top: 1rem; font-weight: 400; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.service-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px -20px rgba(14, 43, 107, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: 0 24px 50px -20px rgba(22, 59, 133, 0.35);
  border-color: rgba(22, 59, 133, 0.22);
  transform: translateY(-6px);
}
.service-body { padding: 1.8rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 {
  font-family: var(--serif);
  color: var(--blue-900);
  font-size: 1.22rem;
  line-height: 1.3;
  margin-bottom: .8rem;
}
.service-body p {
  color: var(--blue-800);
  font-size: .92rem;
  font-weight: 400;
  margin-bottom: .7rem;
}
.service-body ul {
  list-style: none;
  margin: 0 0 .7rem;
  padding: 0;
  display: grid;
  gap: .4rem;
}
.service-body li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--blue-800);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.5;
}
.service-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
}

.about { position: relative; padding: clamp(4.5rem, 8vw, 7rem) 0; overflow: hidden; }
.about::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 59, 133, 0.25), transparent);
}
.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-img-main {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-left: clamp(1rem, 5vw, 3rem);
  position: relative;
  z-index: 2;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(130% 130% at 50% 45%, #000 52%, transparent 96%); mask-image: radial-gradient(130% 130% at 50% 45%, #000 52%, transparent 96%); }

.about-lede {
  margin-top: 1.2rem;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--blue-800);
}
.about-content .section-head > p { color: var(--muted); margin-top: 1rem; font-weight: 400; }
.about-values { margin: 2rem 0 2.2rem; display: grid; gap: 1.2rem; }
.about-values li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid rgba(14,43,107,.08); border-radius: 16px; padding: 1.1rem 1.2rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.about-values li:hover { transform: translateX(8px); box-shadow: var(--shadow-md); border-color: rgba(22, 59, 133, .25); }
.value-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  transition: background .4s var(--ease);
}
.about-values li:hover .value-icon { background: linear-gradient(135deg, var(--cyan), var(--blue-500)); }
.value-icon svg { width: 1.35em; height: 1.35em; }
.about-values h4 { font-family: var(--serif); color: var(--blue-950); font-size: 1.12rem; }
.about-values p { color: var(--muted); font-size: .88rem; font-weight: 400; margin-top: .1rem; }

.team {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background: linear-gradient(180deg, var(--blue-950), var(--blue-900) 120%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.team-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url('../images/team-backdrop.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
}
.team::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 196, 224, 0.14), transparent 70%);
}
.team .section-head .section-title { color: #fff; }
.team .section-head .section-title em { color: var(--cyan); }
.team .section-head .kicker { color: var(--cyan); font-size: .9rem; }
.team .section-head .section-title { font-size: clamp(2.7rem, 5vw, 4rem); }
.team .section-head .section-sub { color: rgba(255, 255, 255, 0.78); font-size: .95rem; }
.team .section-head::before { color: rgba(147, 174, 222, 0.08); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  position: relative;
}
.team-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
}
.team-card:hover { transform: translateY(-10px); border-color: rgba(95, 196, 224, 0.55); box-shadow: 0 34px 70px -20px rgba(0, 0, 0, 0.65); }
.team-top {
  height: 6px;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan), var(--blue-600));
}
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
    linear-gradient(135deg, hsl(calc(var(--i) * 42 + 205), 60%, 42%), hsl(calc(var(--i) * 42 + 205), 65%, 16%));
  overflow: hidden;
}
.photo-letters {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 2;
  transition: transform .5s var(--ease);
  letter-spacing: .04em;
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 1; }
.team-photo img ~ .photo-letters, .team-photo:has(> img) .photo-letters { display: none; }
.team-photo::before {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  border: 1.5px solid rgba(95, 196, 224, 0.6);
  border-radius: 50%;
  transition: transform .55s var(--ease);
}
.team-card:hover .team-photo::before { transform: scale(1.3); }
.team-social {
  position: absolute;
  bottom: 1.1rem; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: .6rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  z-index: 3;
}
.team-card:hover .team-social { opacity: 1; transform: translateY(0); }
.team-social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-700);
  transition: background .3s, color .3s, transform .3s;
}
.team-social a svg { width: 15px; height: 15px; }
.team-social a:hover { background: var(--cyan); color: var(--blue-950); transform: translateY(-3px); }
.team-body { padding: 1.5rem 1.5rem 1.9rem; }
.team-role {
  display: inline-block;
  color: var(--cyan);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .45rem;
}
.team-body h3 { font-family: var(--serif); color: #fff; font-size: 1.3rem; }
.team-body p { color: rgba(255, 255, 255, 0.78); font-size: .88rem; font-weight: 300; margin-top: .6rem; }
.team-bar-admissions {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.team-bar-admissions h4 {
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.team-bar-admissions p {
  color: rgba(255, 255, 255, 0.92);
  font-size: .86rem;
  font-weight: 400;
  margin-top: 0;
  padding-left: 14px;
  position: relative;
}
.team-bar-admissions p::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(80, 200, 255, 0.6);
}

.admin-team {
  margin-top: 3.5rem;
  text-align: center;
  position: relative;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 900px;
  margin: 2.4rem auto 0;
  text-align: left;
}
.admin-grid .team-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.admin-team .kicker { color: var(--cyan); }
@media (max-width: 560px) {
  .admin-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ---- Team flip cards ---- */
.team-card-inner { position: relative; }
.team-flip-hint { display: none; }
.team-back-head { display: none; }
@media (min-width: 641px) {
  .team-card-back .team-body { padding-top: 0; }
}
@media (max-width: 640px) {
  .team-grid { perspective: 1600px; }
  .team-grid .team-card {
    position: relative;
    overflow: visible;
    box-shadow: none;
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.4, .1, .2, 1);
  }
  .team-grid .team-card:hover { transform: none; box-shadow: none; }
  .team-card-inner { transform-style: preserve-3d; height: 100%; }
  .team-card-face {
    border-radius: var(--radius);
    overflow: hidden;
  }
  .team-card-front {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    opacity: 1;
    transition: opacity .45s ease;
  }
  .team-card-back {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(165deg, #3b66b5 0%, #28478f 55%, #1b3468 100%);
    transform: rotateY(180deg);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(190, 225, 255, 0.9) transparent;
    transition: opacity .45s ease;
  }
  .team-card-back::-webkit-scrollbar { width: 3px; }
  .team-card-back::-webkit-scrollbar-track { background: transparent; }
  .team-card-back::-webkit-scrollbar-thumb { background: rgba(190, 225, 255, 0.85); border-radius: 99px; }
  .team-card-back::-webkit-scrollbar-thumb:hover { background: rgba(220, 240, 255, 1); }
  .team-grid .team-card.is-flipped { transform: rotateY(180deg); }
  .team-grid .team-card.is-flipped .team-card-front { opacity: 0; }
  .team-grid .team-card.is-flipped .team-card-back { opacity: 1; pointer-events: auto; }
  .team-card-back .team-body { margin: 0; padding: 1.1rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; gap: .6rem; }
  .team-card-back .team-role { color: rgba(255, 255, 255, 0.85); font-size: .95rem; }
  .team-card-back .team-body h3 { color: #fff; font-size: 1.42rem; line-height: 1.25; }
  .team-card-back .team-body p { color: rgba(255, 255, 255, 0.9); font-size: .98rem; line-height: 1.78; overflow-wrap: break-word; word-break: break-word; }
  .team-card-back .team-bar-admissions { border-top-color: rgba(255, 255, 255, 0.18); }
  .team-card-back .team-bar-admissions h4 { color: #cfeeff; font-size: .9rem; }
  .team-card-back .team-bar-admissions p { font-size: .95rem; }
  .team-back-head { display: block; }
  .team-flip-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto auto 1.15rem;
    padding: .55rem 1.1rem;
    border-radius: 99px;
    background: rgba(95, 196, 224, 0.14);
    border: none;
    color: var(--blue-700);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    animation: hintPulse 1.7s ease-in-out infinite;
  }
}

@keyframes hintPulse {
  0%, 100% { opacity: .8; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.team-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 5vw, 4rem) 0;
  background: linear-gradient(160deg, var(--blue-950), var(--blue-800) 62%, #16356a);
  color: #fff;
}
.team-banner-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(95, 196, 224, 0.14), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(42, 85, 171, 0.45), transparent 52%);
}
.team-banner-backdrop {
  position: absolute; inset: 0;
  background-image: url('../images/team-backdrop.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.team-banner-shape {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(95, 196, 224, 0.35);
  pointer-events: none;
}
.team-banner-shape-1 { width: 300px; height: 300px; right: -110px; top: -90px; }
.team-banner-shape-2 { width: 200px; height: 200px; left: -60px; bottom: -80px; border-style: dashed; }
.team-banner-head {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 3rem;
}
.team-banner-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.2;
}
.team-banner-head h2 em { color: var(--cyan); font-style: italic; }
.team-banner-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1000px;
}
.team-banner-track-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: .4rem 0 1.4rem;
}
.team-banner-fade {
  position: absolute;
  top: .4rem; bottom: 1.4rem;
  width: clamp(2.6rem, 7vw, 6rem);
  z-index: 3;
  pointer-events: none;
}
.team-banner-fade.left { left: 0; background: linear-gradient(90deg, rgba(5, 14, 33, 0.55) 0%, rgba(5, 14, 33, 0.28) 40%, rgba(5, 14, 33, 0) 100%); }
.team-banner-fade.right { right: 0; background: linear-gradient(-90deg, rgba(5, 14, 33, 0.55) 0%, rgba(5, 14, 33, 0.28) 40%, rgba(5, 14, 33, 0) 100%); }
.team-banner-track {
  display: flex;
  width: max-content;
  margin-inline: auto;
  will-change: transform;
}
.practice-banner-card .practice-banner-media {
  aspect-ratio: 1 / 0.95;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
}
.practice-banner-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s var(--ease);
}
.practice-banner-card:hover .practice-banner-media img { transform: scale(1.07); }
.practice-banner-card h3 { padding: 1.1rem 1rem 1.4rem; }
.team-banner-row {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
}
.team-banner-card {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 280px);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 22px 48px -24px rgba(4, 11, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: translateZ(0);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.team-banner-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -26px rgba(4, 11, 24, 0.6); }
.team-banner-photo {
  aspect-ratio: 1 / 0.95;
  display: grid;
  place-items: center;
  position: relative;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, var(--blue-500), var(--blue-800));
  color: #fff;
  text-shadow: 0 6px 18px rgba(4, 11, 24, 0.35);
  overflow: hidden;
}
.team-banner-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-banner-photo img ~ span,
.team-banner-photo:has(> img) span { display: none; }
.team-banner-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--blue-900);
  font-size: 1.18rem;
  line-height: 1.3;
  margin-bottom: .3rem;
  padding: 1.1rem 1rem 0;
}
.team-banner-role {
  display: block;
  padding: 0 1rem .7rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.team-banner-contact {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 0 .85rem 1.1rem;
  border-top: 1px solid rgba(14, 44, 84, 0.1);
  padding-top: .8rem;
  font-size: .9rem;
}
.team-banner-contact a {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue-800);
  text-decoration: none;
  white-space: nowrap;
}
.team-banner-contact svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--blue-600);
}
.team-banner-contact a:hover { color: var(--blue-500); }
.team-banner-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 3rem;
}
@media (max-width: 480px) {
  .team-banner-card { width: 70vw; }
  .team-banner-photo { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .team-banner-track { animation: none !important; }
}

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(4, 11, 24, 0.72), rgba(7, 20, 48, 0.66));
}
.cta-band.cta-law .cta-overlay {
  background: linear-gradient(160deg, rgba(4, 11, 24, 0.52), rgba(7, 20, 48, 0.38));
}
.cta-band.cta-law .cta-bg {
  transform: scale(1.05);
}
.cta-band.cta-law .cta-content h2 em { color: #d9e9ff; }
.cta-band.cta-law .cta-content .kicker { color: #eaf2ff; }
.cta-band.cta-law .cta-content p { color: #ffffff; }
.cta-shape {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(95, 196, 224, 0.4);
}
.cta-shape-1 { width: 420px; height: 420px; left: -120px; top: 50%; margin-top: -210px; }
.cta-shape-1::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  top: 14%; left: 12%;
}
.cta-shape-2 { width: 300px; height: 300px; right: -80px; bottom: -60px; border-style: dashed; }
.cta-content {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  color: #fff;
}
.cta-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.18;
  color: #fff;
  font-weight: 600;
}
.cta-content h2 em { font-style: italic; color: var(--cyan); }
.cta-content p {
  max-width: 620px;
  margin: 1.4rem auto 2.2rem;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 400;
}
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.contact {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(22, 59, 133, 0.07), transparent 40%),
    var(--ice);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-form-wrap, .contact-info { padding: 2.4rem; border-radius: var(--radius); }
.contact-form-wrap {
  background: #fff;
  border: 1px solid rgba(14, 43, 107, 0.08);
  box-shadow: var(--shadow-lg);
}
.contact-form { display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  color: var(--blue-950);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.form-group input, .form-group textarea {
  background: var(--ice);
  border: 1.5px solid rgba(14, 43, 107, 0.14);
  border-radius: 12px;
  padding: .85rem 1.05rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .95rem;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(90, 107, 146, .6); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 59, 133, 0.13);
}
.form-group input.error, .form-group textarea.error { border-color: #e6455d; }
.form-group input.error:focus, .form-group textarea.error:focus { box-shadow: 0 0 0 4px rgba(230, 69, 93, 0.15); }
.error-msg { font-size: .76rem; color: #e6455d; min-height: 1.1em; font-weight: 500; }
.btn-block { width: 100%; justify-content: center; margin-top: .3rem; }
.btn-sent { opacity: 0; transition: opacity .3s; }
.btn.sent .btn-sent { opacity: 1; }
.form-note { text-align: center; color: var(--blue-600); font-size: .9rem; min-height: 1.4em; font-weight: 500; }

.confirm-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  background: rgba(7, 16, 44, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.confirm-overlay.show { opacity: 1; visibility: visible; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.confirm-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -20px rgba(2, 8, 20, 0.5);
  padding: 2.6rem 2.4rem;
  max-width: 440px; width: calc(100% - 2rem);
  text-align: center;
  transform: translateY(14px);
  transition: transform .35s var(--ease);
}
.confirm-overlay.show .confirm-box { transform: none; }
.confirm-check {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan));
  color: #fff; font-size: 2rem; font-weight: 700;
  margin: 0 auto 1.2rem;
  box-shadow: 0 12px 26px -10px rgba(14, 44, 84, 0.5);
}
.confirm-box h3 { font-family: var(--serif); color: var(--blue-950); font-size: 1.45rem; margin-bottom: .6rem; }
.confirm-box p { color: var(--muted); line-height: 1.6; margin-bottom: .4rem; }
.confirm-box .btn { margin-top: 1.2rem; }

.contact-info { display: grid; gap: 1.1rem; align-content: start; }
.info-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.3rem;
  background: linear-gradient(135deg, #fff, var(--blue-50));
  border: 1px solid rgba(14, 43, 107, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 30px -18px rgba(14, 43, 107, 0.5);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.info-card:hover { transform: translateX(8px); box-shadow: 0 18px 40px -18px rgba(14, 43, 107, 0.6); }
.info-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 59, 133, .4);
}
.info-icon svg { width: 1.3em; height: 1.3em; }
.info-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .1rem;
}
.info-value { color: var(--blue-950); font-weight: 600; font-size: .98rem; line-height: 1.5; }
.info-card a.info-value:hover { color: var(--blue-500); text-decoration: underline; }
.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 14px 40px -20px rgba(14, 43, 107, 0.55);
  height: 220px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(1.1); }

.footer {
  background: linear-gradient(180deg, var(--blue-950), #030b1e);
  color: rgba(255, 255, 255, 0.92);
  padding-top: 2.4rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-400), var(--cyan), var(--blue-400), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: .9rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 5px 12px;
  box-sizing: border-box;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
}
.footer-brand p { font-size: .88rem; font-weight: 400; max-width: 320px; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-socials a {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.footer-socials a svg { width: 14px; height: 14px; }
.footer-socials a:hover { background: var(--cyan); color: var(--blue-950); border-color: var(--cyan); transform: translateY(-3px); }
.footer-col h4 {
  font-family: var(--serif);
  color: var(--cyan);
  font-size: 1rem;
  margin-bottom: .8rem;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: .45rem; }
.footer-col h4 a {
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: color .3s;
}
.footer-col h4 a:hover { color: var(--cyan); }
.footer-col a, .footer-col p {
  color: rgba(255, 255, 255, 0.9);
  font-size: .88rem;
  font-weight: 400;
  transition: color .3s, padding-left .3s;
}
.footer-col li a:hover { color: var(--cyan); padding-left: 6px; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(93, 127, 196, 0.16); }
.footer-bottom-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1rem 0;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}
.footer-admin {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: .85rem;
  transition: color .3s ease;
}
.footer-admin:hover { color: var(--cyan); }
.footer-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.footer-mark sup { font-size: .62em; margin-left: 2px; }
@media (max-width: 860px) {
  .footer-bottom-row { flex-direction: column; align-items: center; text-align: center; }
  .footer-mark { position: static; transform: none; }
}

.to-top {
  position: fixed;
  right: 22px; bottom: 96px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(22, 59, 133, .5);
  z-index: 900;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); background: linear-gradient(135deg, var(--blue-500), var(--blue-800)); }

.reveal-section, .reveal { opacity: 0; }

.reveal-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-section.revealed { opacity: 1; transform: none; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.revealed { opacity: 1; transform: none; }

.hero .reveal {
  animation: heroUp 1.1s var(--ease) both;
  animation-play-state: paused;
  animation-delay: calc(.25s + var(--d, 0s));
}
.hero.loaded .reveal { animation-play-state: running; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; padding: 165px 0 110px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .about-img-main { margin-left: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .navbar { padding-top: .8rem; padding-bottom: .8rem; }
  .blog-hero { margin-top: clamp(1rem, 2vw, 1.5rem); }
  .blog-backdrop { margin-top: clamp(1rem, 2vw, 1.5rem); }
  main.blog-backdrop { min-height: calc(100vh - 10rem); }
  .team-banner:not(.practice-banner) .team-banner-track {
    overflow-x: auto;
    width: 100%;
    margin-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
  .team-banner:not(.practice-banner) .team-banner-track::-webkit-scrollbar { height: 0; }
  .team-banner:not(.practice-banner) .team-banner-row { flex-wrap: nowrap; }
  .team-banner:not(.practice-banner) .team-banner-card {
    flex: 0 0 66%;
    width: auto;
    max-width: 310px;
    scroll-snap-align: start;
  }
  .nav-wrap {
    position: relative;
    justify-content: space-between;
    border-radius: 22px;
    min-height: 96px;
  }
  .brand-img { height: 130px; }
  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .nav-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
  }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 360px);
    background: linear-gradient(160deg, rgba(13, 30, 74, 0.92), rgba(7, 16, 44, 0.86));
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    justify-content: center;
    gap: 2.1rem;
    transform: translateX(102%);
    transition: transform .55s var(--ease);
    z-index: 1050;
    padding: 5.5rem 2.2rem 2rem;
  }
  .nav-links.open {
    transform: translateX(0);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
  }
  .nav-links li {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .nav-links.open li { opacity: 1; transform: translateX(0); }
  .nav-links.open li:nth-child(1) { transition-delay: .06s; }
  .nav-links.open li:nth-child(2) { transition-delay: .11s; }
  .nav-links.open li:nth-child(3) { transition-delay: .16s; }
  .nav-links.open li:nth-child(4) { transition-delay: .21s; }
  .nav-links.open li:nth-child(5) { transition-delay: .26s; }
  .nav-links.open li:nth-child(6) { transition-delay: .31s; }
  .nav-links a:not(.nav-cta) { color: #fff; font-size: 1.1rem; }
  .team-carousel { position: relative; }
  .team-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.2rem;
    padding: .2rem .25rem 1.2rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
  .team-grid .team-card { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; }
  .team-grid::-webkit-scrollbar { height: 6px; }
  .team-grid::-webkit-scrollbar-thumb { background: rgba(22, 53, 106, 0.28); border-radius: 99px; }
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    cursor: pointer;
    display: grid; place-items: center;
    font-size: 1.2rem; line-height: 1;
    color: #fff;
    background: rgba(14, 44, 84, 0.22);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    backdrop-filter: blur(10px) saturate(1.5);
    box-shadow: 0 8px 22px rgba(4, 11, 24, 0.35);
    z-index: 5;
    -webkit-tap-highlight-color: transparent;
  }
  .carousel-arrow:active { transform: translateY(-50%) scale(.94); }
  .team-banner-track-wrap .carousel-arrow {
    -webkit-backdrop-filter: blur(6px) saturate(1.5);
    backdrop-filter: blur(6px) saturate(1.5);
    background: rgba(10, 32, 60, 0.34);
  }
  .carousel-prev { left: -6px; }
  .carousel-next { right: -6px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap, .contact-info { padding: 1.6rem; }
  .section-head::before { font-size: 5.5rem; top: -30px; }
}

@media (min-width: 861px) {
  .carousel-arrow { display: none; }
}

@media (max-width: 560px) {
  .brand-img { height: 130px; }
  .brand { margin: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-head::before { font-size: 4.2rem; }
}

/* ===== Blog ===== */
.blog-hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
  color: #fff;
  overflow: hidden;
}
.blog-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(95, 196, 224, 0.16), transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(42, 85, 171, 0.4), transparent 52%),
    radial-gradient(500px 300px at 60% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
}
.blog-hero-photo {
  position: absolute; inset: 0;
  background-image: url('../images/desk.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.jose-hero { min-height: clamp(380px, 60vh, 640px); display: flex; align-items: center; justify-content: flex-start; padding: 6rem 0 4.5rem; }
.jose-hero .blog-hero-inner { text-align: left; margin-inline: 0; max-width: 620px; padding-left: clamp(1rem, 5vw, 4rem); }
@media (max-width: 640px) {
  .jose-hero { min-height: 0; justify-content: flex-start; flex-direction: column; padding: 2.2rem 0 0; }
  .jose-hero .blog-hero-bg { display: none; }
  .jose-hero .blog-hero-inner { order: -1; position: relative; z-index: 2; text-align: center; margin-inline: auto; padding: 0 1.1rem 2.1rem; max-width: 560px; }
  .jose-hero .jose-hero-photo { position: static; order: 0; width: 100%; height: clamp(230px, 42vh, 430px); background-position: center top; filter: brightness(1.15) saturate(1.08); transform: none; }
}
.jose-hero-photo {
  position: absolute; inset: 0;
  background-image: url('../images/jose-hero.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(1.18) saturate(1.08);
}
.jose-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 16, 44, 0.28) 0%, rgba(7, 16, 44, 0.14) 38%, rgba(7, 16, 44, 0.02) 68%, transparent 100%);
}
.jose-hero .blog-hero-inner { text-shadow: 0 1px 4px rgba(7, 16, 44, 0.85), 0 3px 14px rgba(7, 16, 44, 0.75); }
.jose-hero .blog-hero-inner h1 { color: #ffffff; }
.jose-hero .blog-hero-inner p { color: #ffffff; font-weight: 600; font-size: 1.28rem; }
.jose-hero .blog-hero-inner .kicker-light { color: #ffffff; font-weight: 700; font-size: 1.15rem; letter-spacing: .18em; }
@media (max-width: 640px) {
  .jose-hero::after {
    background: linear-gradient(180deg, rgba(7, 16, 44, 0.06) 0%, rgba(7, 16, 44, 0.14) 60%, rgba(7, 16, 44, 0.22) 100%);
  }
}
.media-hero { position: relative; overflow: hidden; }
.media-hero-photo {
  position: absolute; inset: 0;
  background-image: url('../images/media-hero.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  filter: brightness(0.78);
}
.media-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 16, 44, 0.12), rgba(7, 16, 44, 0.4));
}
.media-hero .blog-hero-inner { text-shadow: 0 1px 4px rgba(7, 16, 44, 0.85), 0 3px 14px rgba(7, 16, 44, 0.75); }
.media-hero .blog-hero-inner .kicker-light { color: #ffffff; font-size: 1.2rem; letter-spacing: .18em; font-weight: 700; }
.media-hero .blog-hero-inner .kicker-accent { color: #7fd4ff; }
.practice-hero { position: relative; overflow: hidden; }
.practice-hero-photo {
  position: absolute; inset: 0;
  background-image: url('../images/practice-hero.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0.6);
}
.practice-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 16, 44, 0.1), rgba(7, 16, 44, 0.42));
}
.practice-hero .blog-hero-inner .kicker-light { color: #ffffff; font-size: 1.3rem; letter-spacing: .28em; font-weight: 700; }
.practice-hero .blog-hero-inner { text-shadow: 0 1px 4px rgba(7, 16, 44, 0.85), 0 3px 14px rgba(7, 16, 44, 0.75); }
.blog-backdrop {
  min-height: calc(100vh - 80px);
  background-image:
    linear-gradient(rgba(7, 16, 44, 0.5), rgba(7, 16, 44, 0.78)),
    url('../images/blog-backdrop.jpg');
  background-size: cover;
  background-position: center;
}
.blog-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; }
.blog-hero-inner h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 1rem 0 .8rem;
}
.blog-hero-inner h1 em { color: var(--cyan); font-weight: 500; font-style: italic; }
.blog-hero-inner p { color: #ffffff; font-weight: 400; font-size: 1.1rem; max-width: 600px; margin-inline: auto; }

.blog-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.8rem;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(14, 43, 107, 0.08);
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.blog-media { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.blog-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.blog-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 44, 84, 0.18);
  border-radius: 99px;
  padding: .28rem .75rem;
}
.blog-body { padding: 1.4rem 1.4rem 1.6rem; }
.blog-date {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-300);
}
.blog-body h2 { font-family: var(--serif); font-size: 1.28rem; line-height: 1.3; margin: .4rem 0 .55rem; }
.blog-body h2 a { color: var(--blue-950); text-decoration: none; transition: color .3s; }
.blog-body h2 a:hover { color: var(--blue-500); }
.blog-body p { font-size: .9rem; color: var(--muted); font-weight: 300; }
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  font-size: .86rem;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}
.blog-link span { transition: transform .3s var(--ease); }
.blog-link:hover span { transform: translateX(5px); }

@media (max-width: 560px) {
  .blog-hero { padding: 9.5rem 0 4rem; }
}

/* ===== Professional theme — Paganelli-inspired (light pages, navy accents, Avenir sans) ===== */

body { background: var(--ice); }

/* ---- Hero: light, calm ---- */
.hero {
  color: var(--blue-900);
  background:
    radial-gradient(circle at 84% 12%, rgba(100, 132, 198, 0.18), transparent 42%),
    radial-gradient(circle at 6% 88%, rgba(219, 232, 245, 0.65), transparent 52%),
    linear-gradient(165deg, #f7f2e7 0%, #f4ede0 48%, #eef3f9 100%);
}
.hero::before {
  height: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent);
}
.hero-bg {
  background:
    radial-gradient(circle at 78% 20%, rgba(222, 234, 248, 0.9), transparent 45%),
    radial-gradient(circle at 12% 80%, rgba(246, 239, 225, 0.7), transparent 50%);
}
.hero-mesh { opacity: 0.45; }
.hero-grid-lines {
  background-image:
    linear-gradient(rgba(14, 44, 84, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 44, 84, 0.06) 1px, transparent 1px);
}
.hero-blob-1 { background: radial-gradient(circle, rgba(106, 145, 196, 0.5), transparent 70%); opacity: .35; }
.hero-blob-2 { background: radial-gradient(circle, rgba(126, 160, 212, 0.45), transparent 70%); opacity: .3; }
.hero-blob-3 { background: radial-gradient(circle, rgba(222, 233, 248, 0.95), transparent 70%); opacity: .5; }

.hero-eyebrow {
  color: var(--blue-700);
  border: 1px solid rgba(14, 44, 84, 0.22);
  background: var(--blue-100);
}
.hero-eyebrow::before { background: var(--blue-600); box-shadow: 0 0 0 5px rgba(22, 53, 106, 0.16); }

.hero-title { color: var(--blue-900); }
.hero-title .line1, .hero-title .line1 em { color: var(--blue-950); }
.hero-title .line2, .hero-title .line3 { color: var(--blue-400); }
.hero-title .line2 em, .hero-title .line3 em { color: var(--blue-400); }
.hero-sub { color: var(--blue-800); font-weight: 400; }
.type-wrap { color: var(--blue-700); }
.caret { background: var(--blue-700); }
.hero-tagline strong { color: var(--blue-900); }
.hero-tagline em { color: var(--blue-600); }

.btn-primary { background: linear-gradient(120deg, var(--blue-800), var(--blue-900)); box-shadow: 0 14px 32px rgba(14, 44, 84, 0.3); }
.btn-primary:hover { box-shadow: 0 22px 46px rgba(14, 44, 84, 0.4); }
.btn-glass { border: 1.5px solid rgba(14, 44, 84, 0.4); color: var(--blue-800); background: rgba(255, 255, 255, 0.55); }
.btn-glass:hover { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }

.cta-shape-1::after { background: var(--blue-400); }
.footer-logo { height: 48px; width: auto; filter: none; }

/* ---- Services: navy practice-area band with white cards ---- */
.services {
  background:
    linear-gradient(115deg, rgba(10, 24, 48, 0) 0%, rgba(10, 24, 48, 0.16) 46%, rgba(10, 24, 48, 0) 100%),
    linear-gradient(160deg, var(--blue-950) 0%, var(--blue-900) 58%, var(--blue-800) 100%);
}
.services .section-title { color: #fff; }
.services .section-title em { color: #b7cdf0; }
.services .kicker { color: #c3d6f2; }
.services .kicker::before { background: linear-gradient(90deg, var(--blue-300), #b7cdf0); }
.services .section-sub { color: rgba(255, 255, 255, 0.78); }
.services .section-head::before { color: rgba(160, 185, 226, 0.09); }

.service-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 44px -22px rgba(6, 18, 46, 0.35);
}
.service-card:hover {
  border-color: var(--blue-300);
  box-shadow: 0 30px 60px -24px rgba(6, 18, 46, 0.45);
}
.service-body h3 { color: var(--blue-900); }
.service-body p { color: var(--blue-800); font-weight: 400; }
.service-body li { color: var(--blue-800); font-weight: 400; }
.service-body li::before { background: var(--blue-500); }

/* ---- About: light ---- */
.about { background: #fbfcfd; }
.about .section-title { color: var(--blue-900); }
.about .section-title em { color: var(--blue-600); }
.about .kicker { color: var(--blue-700); }
.about .section-sub, .about-content .section-head > p { color: var(--muted); }
.about .section-head::before { color: rgba(22, 53, 106, 0.07); }
.about::before { background: linear-gradient(90deg, transparent, rgba(22, 53, 106, 0.16), transparent); }
.about-lede { color: var(--blue-800); }
.about-values li { background: #fff; border: 1px solid rgba(14, 44, 84, 0.08); }
.about-values h4 { color: var(--blue-900); }
.about-values p { color: var(--muted); }

/* ---- Team & Admin: white background, white cards ---- */
.team { background: var(--ice); }
.team::before { opacity: .3; }
.team .section-head .kicker { color: var(--blue-700); }
.team .section-head .section-title { color: var(--blue-900); }
.team .section-head .section-title { font-size: clamp(2.7rem, 5vw, 4rem); }
.team .section-head .section-title em { color: var(--blue-600); }
.team .section-head .section-sub { color: var(--muted); font-weight: 400; }
.team .section-head::before { color: rgba(22, 53, 106, 0.07); }

.team-card {
  background: #fff;
  border: 1px solid rgba(14, 44, 84, 0.08);
  box-shadow: 0 16px 40px -22px rgba(14, 44, 84, 0.22);
}
.team-card:hover { border-color: rgba(14, 44, 84, 0.2); box-shadow: 0 28px 55px -24px rgba(14, 44, 84, 0.35); }
.team-top { background: linear-gradient(90deg, var(--blue-400), var(--blue-200), var(--blue-500)); }
.team-photo {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.65), transparent 55%),
    linear-gradient(135deg, hsl(calc(var(--i) * 42 + 205), 55%, 80%), hsl(calc(var(--i) * 42 + 205), 42%, 62%));
}
.team-photo::before { border-color: rgba(14, 44, 84, 0.35); }
.photo-letters { color: var(--blue-900); text-shadow: 0 8px 24px rgba(10, 24, 48, 0.16); }
.team-role { color: var(--blue-600); }
.team-body h3 { color: var(--blue-900); }
.team-body p { color: var(--muted); font-weight: 400; }
.team-social a { background: var(--blue-100); color: var(--blue-700); }
.team-social a:hover { background: var(--blue-800); color: #fff; }
.admin-team .team-body h3 { margin-bottom: .35rem; }
.admin-team .team-body .team-role { margin-bottom: 0; }
.admin-team .kicker { color: var(--blue-700); }

/* ---- CTA + Footer accents ---- */
.cta-content h2 em { color: #b7cdf0; }
.footer-col h4 { color: #cfe0f8; }

/* ---- Contact / Blog: light ---- */
.btn-outline { border-color: var(--blue-600); color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-600); color: #fff; }

.contact { background:
  radial-gradient(circle at 10% 90%, rgba(22, 53, 106, 0.06), transparent 40%),
  var(--ice); }
.contact .section-head .kicker { color: var(--blue-700); }
.contact .section-title { color: var(--blue-900); }
.contact .section-title em { color: var(--blue-600); }
.contact .section-sub { color: var(--muted); }
.contact .section-head::before { color: rgba(22, 53, 106, 0.07); }

.contact-form-wrap { background: #fff; border: 1px solid rgba(14, 44, 84, 0.08); box-shadow: var(--shadow-md); }
.form-group label { color: var(--blue-800); }
.form-group input, .form-group textarea { background: var(--blue-100); border-color: rgba(14, 44, 84, 0.15); color: var(--blue-900); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8aa0c4; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(22, 53, 106, 0.1); }
.info-card { background: #fff; border: 1px solid rgba(14, 44, 84, 0.08); box-shadow: 0 12px 30px -18px rgba(14, 44, 84, 0.3); }
.info-label { color: var(--blue-700); }
.info-value { color: var(--blue-900); }
.info-card a.info-value:hover { color: var(--blue-500); }
.form-note { color: var(--blue-600); }
.map-wrap iframe { filter: none; }

.blog-section { background: var(--ice); }
.blog-section .section-head h2 { color: var(--blue-900); }
.blog-hero-inner h1 em { color: #b7cdf0; }
.blog-card { background: #fff; border: 1px solid rgba(14, 44, 84, 0.08); box-shadow: var(--shadow-md); }
.blog-body h2 a { color: var(--blue-900); }
.blog-body h2 a:hover { color: var(--blue-500); }
.blog-body p { color: var(--muted); font-weight: 400; }
.blog-link { color: var(--blue-600); }

/* ---- Jose I. Pertierra biography page ---- */
.bio-head { display: flex; gap: 2.6rem; align-items: center; justify-content: center; max-width: 980px; margin: 0 auto 3rem; }
.bio-photo, .bio-photo-right { flex: 0 0 280px; margin: 0; }
.bio-photo img, .bio-photo-right img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.bio-copy { flex: 1 1 0; max-width: 860px; margin: 0 auto; text-align: center; }
@media (max-width: 640px) {
  .bio-head { flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
  .bio-photo, .bio-photo-right { flex: 0 0 auto; width: 220px; }
  .bio-copy { text-align: center; }
}
.bio-copy p { color: var(--muted); font-weight: 400; line-height: 1.75; margin-bottom: 1.1rem; }
.bio-copy .bio-main { font-size: 1.22rem; color: var(--blue-900); letter-spacing: .0005em; }
@media (max-width: 640px) {
  .bio-copy .bio-main { font-size: 1.08rem; }
}
.bio-copy .bio-close { font-family: var(--serif); font-size: 1.22rem; font-weight: 500; line-height: 1.7; color: var(--blue-800); margin-bottom: 0; }
@media (max-width: 640px) {
  .bio-copy .bio-close { font-size: 1.08rem; }
}
.bio-media-left { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 1.1rem; }
.bio-media-photo { flex: 0 0 320px; margin: 0; height: 380px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.bio-media-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bio-media-left .bio-media-copy { flex: 1 1 0; min-width: 0; }
@media (max-width: 640px) {
  .bio-media-left { flex-direction: column; align-items: stretch; gap: 1.2rem; margin-bottom: 1.3rem; }
  .bio-media-photo { flex: none; width: 100%; height: clamp(300px, 42vh, 430px); }
  .bio-media-left .bio-media-copy { flex: none; width: 100%; font-size: .95rem; line-height: 1.7; }
}
.biography .about-values { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
@media (max-width: 640px) {
  .biography .about-values { grid-template-columns: 1fr; }
}

/* ---- Media & Recognition cards (expandable) ---- */
.media-intro { padding-bottom: 0; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start; }
.media-card {
  background: #fff;
  border: 1px solid rgba(14, 44, 84, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -22px rgba(14, 44, 84, 0.18);
  padding: 1.8rem 1.8rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.media-thumb { margin: 0 0 .4rem; border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.media-thumb img { width: 100%; height: auto; display: block; }
.media-card:hover { transform: translateY(-5px); box-shadow: 0 26px 52px -24px rgba(14, 44, 84, 0.3); }
.gallery-section .section-head .kicker,
.media-cards .section-head .kicker {
  font-size: 1.3rem;
  letter-spacing: .28em;
}
.gallery-section .section-head .kicker {
  font-size: 1.65rem;
}
.about .section-head .kicker,
.team-banner-head .kicker {
  font-size: 1.3rem;
  letter-spacing: .28em;
}
.team-page-hero .blog-hero-inner .kicker-light,
.admin-team .kicker {
  font-size: 1.3rem;
  letter-spacing: .28em;
}
.team-page-hero .blog-hero-inner .kicker-light { color: #ffffff; }
.cta-band .kicker { font-size: 1.3rem; letter-spacing: .28em; }
.media-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.media-card h3 { font-family: var(--serif); color: var(--blue-900); font-size: 1.35rem; line-height: 1.25; }
.media-meta { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-700); }
.media-excerpt, .media-more p { color: var(--muted); font-weight: 400; font-size: .92rem; line-height: 1.65; }
.media-excerpt { margin: 0; }
.media-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.media-more-inner { overflow: hidden; min-height: 0; }
.media-more-inner p { margin: 0 0 .7rem; }
.media-more-inner p:last-child { margin-bottom: 0; }
.media-card.open .media-more { grid-template-rows: 1fr; }
.read-more {
  align-self: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue-700);
  letter-spacing: .03em;
  transition: color .3s;
}
.read-more:hover { color: var(--blue-500); }
.caret-arrow { display: inline-block; transition: transform .4s var(--ease); }
.media-card.open .caret-arrow { transform: rotate(180deg); }
.media-link { margin-top: .2rem; font-size: .85rem; font-weight: 700; color: var(--blue-700); text-decoration: underline; text-underline-offset: 4px; }
.media-link:hover { color: var(--blue-500); }
@media (max-width: 860px) {
  .media-grid { grid-template-columns: 1fr; }
}

/* ---- Accessibility: respect reduced-motion & lower input latency ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .preloader-orbit::before,
  .preloader-orbit span,
  .hero .reveal,
  .hero .reveal::before {
    animation-duration: 1s !important;
    animation-iteration-count: infinite !important;
  }
  .hero .reveal {
    animation-iteration-count: 1 !important;
  }
}

.profile-block { margin-top: 2.6rem; text-align: left; }
.profile-block h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-950);
  margin-bottom: 1rem;
}
.profile-block p { color: var(--muted); font-weight: 400; line-height: 1.75; margin-bottom: .95rem; }
.profile-block p em { color: var(--blue-800); font-style: italic; }
.profile-facts {
  margin-top: 2.6rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  text-align: left;
}
.profile-facts .fact {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(236, 243, 249, 0.92));
  border: 1px solid rgba(14, 44, 84, 0.1);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 12px 28px -18px rgba(4, 11, 24, 0.35);
}
.profile-facts .fact h4 {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700;
  color: var(--blue-600);
}
.profile-facts .fact p { margin-top: .5rem; color: var(--blue-950); font-weight: 500; line-height: 1.5; }
.profile-highlights {
  margin-top: 2.6rem;
  text-align: left;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.profile-highlights h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-950);
  margin-bottom: 1.2rem;
  text-align: center;
}
.profile-highlights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.profile-highlights li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted); font-weight: 400; line-height: 1.6;
}
.profile-highlights li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 2px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan));
}
.profile-highlights li em { color: var(--blue-800); }

.profile-banner .blog-hero-inner { text-align: center; }
.profile-banner .blog-hero-inner h1,
.profile-banner .blog-hero-inner p,
.profile-banner .blog-hero-inner .kicker { text-align: center; }

.gallery-section {
  position: relative;
  padding: 6rem 0;
  background-image: url('../images/light_wall.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: local;
}
.gallery-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 36, 0.72), rgba(10, 26, 52, 0.78));
}
.gallery-section .container { position: relative; z-index: 2; }
.gallery-section .section-head { margin-bottom: 3rem; }
.gallery-section .section-head .section-title { color: #fff; }
.gallery-section .section-head > p { color: #c7d7ef; }
.gallery-section .section-head .section-title em { color: var(--cyan); }
.gallery-grid {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
}
.gallery-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.gallery-col:nth-child(1) .gallery-card { transform: rotate(-0.5deg); }
.gallery-col:nth-child(2) .gallery-card { transform: rotate(0.3deg); }
.gallery-col:nth-child(3) .gallery-card { transform: rotate(-0.3deg); }
.gallery-card {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  padding: 10px;
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 26px 50px -20px rgba(2, 8, 20, 0.75);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.gallery-card::selection { background: transparent; }
.gallery-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 36px 64px -22px rgba(2, 8, 20, 0.85);
  z-index: 3;
}
.gallery-card:hover img { transform: scale(1.05); filter: saturate(1.05); }

.services, .about, .team, .team-banner, .blog-hero, .blog-section, .gallery-section, .cta-band, .contact, .profile-bio, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

@media (max-width: 768px) {
  .gallery-grid { flex-direction: column; }
  .gallery-col { gap: 1.4rem; }
}

.gallery-card.zoom-card { cursor: zoom-in; touch-action: pan-y; }
@media (hover: hover) and (pointer: fine) {
  .gallery-card.zoom-card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 36px 64px -22px rgba(2, 8, 20, 0.85);
    z-index: 5;
  }
  .gallery-card.zoom-card:hover .zoom-controls { opacity: 1; transform: translateY(0); }
}
.gallery-card.zoom-card img {
  transition: transform .12s linear;
  transform-origin: 50% 50%;
}

.gallery-card.zoom-card .zoom-controls {
  position: absolute;
  top: 16px; right: 16px;
  display: flex; gap: .5rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 6;
}
@media (hover: none), (pointer: coarse) {
  .gallery-card.zoom-card .zoom-controls { opacity: 1; transform: none; }
}
.zoom-controls button {
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: rgba(10, 26, 52, 0.85);
  color: #fff;
  font-size: 1.25rem; line-height: 1;
  font-weight: 600;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.55);
  transition: background .25s, transform .2s;
}
.zoom-controls button:hover { background: var(--blue-600); transform: scale(1.1); }

/* ---------- Blog page (accordion articles) ---------- */
main.blog-backdrop { display: flex; align-items: center; justify-content: center; }
.blog-page-hero { position: relative; width: 100%; padding: clamp(9rem, 22vh, 16rem) 1.2rem clamp(5rem, 9vh, 8rem); }
.blog-page-hero .blog-hero-inner h1 { color: #ffffff; text-shadow: 0 2px 18px rgba(7, 16, 44, 0.55); }
.blog-page-hero .blog-hero-inner h1 em { color: #ffffff; }
.blog-page-hero .blog-hero-inner .kicker-light {
  font-size: 1.05rem;
  letter-spacing: .34em;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #bde6ff 55%, #7fc8f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-page-hero .blog-hero-inner .kicker-light::before { background: linear-gradient(90deg, #ffffff, #7fc8f2); }

.blog-panels { display: flex; flex-direction: column; gap: 1.1rem; max-width: 860px; margin: 0 auto; }
.blog-panel {
  background: #fff;
  border: 1px solid rgba(14, 43, 107, 0.09);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow .4s var(--ease);
}
.blog-panel.open { box-shadow: var(--shadow-lg); }
.blog-panel-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.blog-panel-title-wrap { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.blog-panel .blog-date { color: var(--blue-500); }
.blog-panel-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.25;
  transition: color .3s;
}
.blog-panel-head:hover .blog-panel-title { color: var(--blue-500); }
.blog-panel-excerpt { font-size: 1.06rem; color: var(--muted); font-weight: 400; line-height: 1.55; }
.blog-caret {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef4fd;
  color: var(--blue-700);
  transition: background .3s;
}
.blog-caret svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.blog-panel.open .blog-caret { background: #dcebfa; }
.blog-panel.open .blog-caret svg { transform: rotate(180deg); }
.blog-panel-body { padding: 0 1.5rem 1.6rem; }
.blog-prose { margin-top: .6rem; }
.blog-prose p { font-size: 1.12rem; color: #3c4b66; line-height: 1.75; font-weight: 400; margin: 0 0 1rem; }
.blog-prose p:last-child { margin-bottom: 0; }
.blog-open-link { margin-top: 1.2rem; text-decoration: none; }
.blog-panel-placeholder, .blog-panel-empty { text-align: center; color: var(--muted); font-weight: 300; padding: 2.4rem 1rem; font-size: 1.05rem; }

@media (max-width: 560px) {
  .blog-panel-head { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1.15rem 1.2rem; }
  .blog-panel-body { padding: 0 1.2rem 1.3rem; }
  .blog-caret { align-self: flex-start; }
}
