/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --bg: #0a1020;
  --bg2: #070b16;
  --card: #101a30;
  --line: #1f2c48;
  --tx: #eef2f9;
  --mu: #9aa7bf;
  --bl: #2f8cff;
  --bl2: #1d6fe0;
  --or: #ff9f1c;
  --r: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 1rem/1.65 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.15rem; }

p {
  margin: 0 0 1em;
  color: var(--mu);
}

a { color: inherit; }

.wrap {
  width: min(74rem, 100% - 2.5rem);
  margin-inline: auto;
}

/* Accessibility */
.skip {
  position: absolute;
  left: -99rem;
  background: var(--bl);
  padding: .6rem 1rem;
  z-index: 99;
}

.skip:focus {
  left: .5rem;
  top: .5rem;
}

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--bl), var(--or));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(10, 16, 32, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  transition: height .3s;
}

.nav.sm .nav__in { height: 3.8rem; }
.nav.sm { background: rgba(7, 11, 22, .94); }

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand b {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
}

.brand small {
  display: block;
  font-size: .6rem;
  letter-spacing: .2em;
  color: var(--or);
  font-weight: 700;
  margin-top: .2rem;
}

.shield {
  width: 2.4rem;
  height: 2.8rem;
  transition: transform .3s;
}

.brand:hover .shield {
  transform: rotate(-6deg) scale(1.08);
}

#menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

#menu a:not(.btn) {
  text-decoration: none;
  color: #cbd5e6;
  font-weight: 600;
  font-size: .92rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

#menu a:not(.btn):hover { color: #fff; }

#menu a[aria-current] {
  color: var(--bl);
  border-color: var(--bl);
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 10px;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--bl);
  color: #fff;
  font: 700 .95rem Inter;
  text-decoration: none;
  border: 2px solid var(--bl);
  border-radius: 99px;
  padding: .9rem 1.7rem;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .25s;
}

.btn:hover {
  background: var(--bl2);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(47, 140, 255, .7);
}

.btn i.fa-chevron-right {
  font-size: .7rem;
  transition: transform .2s;
}

.btn:hover i.fa-chevron-right {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  border-color: #8793ab;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #fff;
  box-shadow: none;
}

.btn--sm {
  padding: .6rem 1.2rem;
  font-size: .85rem;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   HERO  ← FIXED
   background properties are separated so a bad image URL
   can never knock out the gradient or the base colour.
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
  background-color: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: -6% 0;
  background-color: #0a1020;
  background-image:
    linear-gradient(90deg, rgba(10, 16, 32, .96), rgba(10, 16, 32, .7) 50%, rgba(10, 16, 32, .3)),
    url('../images/codes/code-b.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg));
}

.hero__in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: end;
  gap: 2rem;
}

.hero h1 span { color: var(--bl); }

.lead {
  font-size: 1.1rem;
  max-width: 36rem;
}

.eye {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: #cbd5e6;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eye i {
  width: 3rem;
  height: 1px;
  background: var(--bl);
  display: block;
}

.eye--c {
  justify-content: center;
  color: var(--bl);
}

.script {
  font: italic 700 1.7rem/1.25 Inter;
  color: var(--bl);
  transform: rotate(-8deg);
  text-align: left;
  border-bottom: 3px solid var(--or);
  padding-bottom: .6rem;
  justify-self: end;
  margin-bottom: 5rem;
}

/* ============================================================
   RISE ANIMATION
   ============================================================ */
.rise {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}

.hero .rise:nth-child(2) { animation-delay: .12s; }
.hero .rise:nth-child(3) { animation-delay: .24s; }
.hero .rise:nth-child(4) { animation-delay: .36s; }
.script.rise { animation-delay: .6s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* ============================================================
   QUICK BAR
   ============================================================ */
.bar {
  background: var(--bg2);
  border-block: 1px solid var(--line);
}

.bar__in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2.2rem 0;
}

.bar__in > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.2rem;
  border-left: 1px solid var(--line);
}

.bar__in > div:first-child { border: 0; }
.bar i { font-size: 1.8rem; color: var(--bl); }
.bar b { display: block; font-size: .9rem; }
.bar span { font-size: .8rem; color: var(--mu); }

/* ============================================================
   SECTIONS
   ============================================================ */
.sec {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.sec--alt { background: var(--bg2); }

.center {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 4rem;
}

.center p { margin-inline: auto; }

.phead {
  padding: 10rem 0 4rem;
  background:
    radial-gradient(60rem 20rem at 80% 0, rgba(47, 140, 255, .18), transparent),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.phead h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 3rem;
}

.tabs button {
  font: 600 .95rem Inter;
  color: var(--mu);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .7rem 1.4rem;
  cursor: pointer;
  transition: all .2s;
}

.tabs button[aria-selected="true"] {
  background: var(--bl);
  color: #fff;
  border-color: var(--bl);
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid {
  display: grid;
  gap: 1.75rem;
}

.g4 { grid-template-columns: repeat(4, 1fr); }

[hidden] { display: none !important; }

.card {
  position: relative;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 140, 255, .22), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--bl);
}

.card:hover::before { opacity: 1; }

.card > * { position: relative; }

.card > i {
  font-size: 2.2rem;
  color: var(--bl);
  margin-bottom: 1rem;
  display: block;
  transition: transform .3s, color .3s;
}

.card:hover > i {
  transform: scale(1.15) rotate(-6deg);
  color: var(--or);
}

.card p { font-size: .9rem; }

.more {
  font-size: .85rem;
  font-weight: 700;
  color: var(--bl);
}

.more i {
  font-size: .65rem;
  margin-left: .3rem;
}

.card--s:hover { transform: none; }

.card--hl {
  background: linear-gradient(135deg, var(--bl2), #0e4aa8);
  border-color: var(--bl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.card--hl p { color: #dbe8ff; }

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2.8rem;
}

.stline {
  position: absolute;
  top: 1.3rem;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: var(--line);
}

.stline i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--bl), var(--or));
  transition: width 1.8s ease .3s;
}

.steps.in .stline i { width: 100%; }

.step { position: relative; }

.step span {
  position: absolute;
  top: -2.8rem;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--bl);
  font-weight: 800;
}

/* ============================================================
   FEATURE BLOCKS (feat, vis, svc)
   ============================================================ */
.feat {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 5rem;
  align-items: center;
}

.feat--r > :first-child { order: 2; }

.vis {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  border: 1px dashed #36486d;
  background: linear-gradient(135deg, #12203d, #0b1326);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--mu);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
  transition: transform .4s, border-color .3s;
}

.vis i {
  font-size: 4.5rem;
  color: var(--bl);
}

.vis:hover {
  transform: scale(1.02) rotate(-.5deg);
  border-color: var(--bl);
}

.vis--map {
  aspect-ratio: 16 / 10;
  margin-top: 1rem;
}

.vis--map i { font-size: 3rem; }

/* ============================================================
   LISTS (tick, chk)
   ============================================================ */
.tick,
.chk {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.tick li {
  padding-left: 1.8rem;
  margin-bottom: .5rem;
  position: relative;
  color: #cbd5e6;
}

.tick li::before {
  content: "\f00c";
  font: 900 .8rem "Font Awesome 6 Free";
  color: var(--or);
  position: absolute;
  left: 0;
  top: .25rem;
}

.chk li {
  padding: .9rem 0 .9rem 1.8rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.chk li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: .7rem;
  height: .7rem;
  border-radius: 2px;
  background: var(--bl);
}

/* ============================================================
   TABLES
   ============================================================ */
.scroll {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  background: var(--card);
}

th,
td {
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: #0d1a33;
  color: var(--or);
}

tbody tr { transition: background .2s; }
tbody tr:hover { background: #15233f; }

.note {
  font-size: .85rem;
  margin-top: 1rem;
}

/* ============================================================
   SERVICE ROW (svc)
   ============================================================ */
.svc {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.svc h2 { font-size: 1.5rem; }

/* ============================================================
   DETAILS / SUMMARY (FAQ)
   ============================================================ */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .8rem;
  transition: border-color .2s;
}

details[open] { border-color: var(--bl); }

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

summary::after {
  content: "+";
  color: var(--bl);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .3s;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
  padding: 0 1.2rem;
  animation: rise .4s both;
}

.svc details { margin-bottom: 1rem; }
.narrow { max-width: 46rem; }

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.split--f { grid-template-columns: 1.1fr .9fr; }

/* ============================================================
   FORMS
   ============================================================ */
label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin: 1.1rem 0 .35rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--tx);
  background: var(--card);
  border: 1px solid #2b3c5e;
  border-radius: 12px;
  padding: .85rem 1rem;
  transition: border-color .2s, box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--bl);
  box-shadow: 0 0 0 4px rgba(47, 140, 255, .25);
}

[aria-invalid="true"] { border-color: #ff5d73 !important; }

.err {
  color: #ff8a9a;
  font-size: .85rem;
  margin: .3rem 0 0;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

form .btn { margin-top: 1.6rem; }

#st {
  margin-top: 1rem;
  color: var(--or);
  font-weight: 600;
}

.ci {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: #cbd5e6;
}

.ci i {
  color: var(--bl);
  width: 1.2rem;
  text-align: center;
}

/* ============================================================
   CALL TO ACTION
   ============================================================ */
.cta {
  padding: 5rem 0;
  text-align: center;
  background:
    radial-gradient(40rem 14rem at 50% 0, rgba(47, 140, 255, .25), transparent),
    var(--bg2);
  border-top: 1px solid var(--line);
}

.cta p {
  margin-inline: auto;
  max-width: 34rem;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 40;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #1fa855;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  transition: transform .2s;
}

.wa:hover { transform: scale(1.1); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.js .rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   MEDIA OBJECTS (pic, big, students, badge, lightbox)
   ============================================================ */
.pic {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #12203d, #0b1326);
}

.pic::before {
  content: "\f030";
  font: 900 2rem "Font Awesome 6 Free";
  color: #2d3f63;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.card--img { padding: 0; }
.card__b { padding: 1.8rem 2rem 2.1rem; }

.card--img:hover .pic img { transform: scale(1.06); }
.card--img h3 { font-size: 1.3rem; }

.big {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
}

.stu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.stu button {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: none;
}

.stu .pic {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.stu button:hover .pic img { transform: scale(1.07); }

.badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  background: rgba(7, 11, 22, .85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
}

.badge i { color: #37d67a; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 16, .94);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lb img {
  max-width: min(90vw, 56rem);
  max-height: 84vh;
  border-radius: 12px;
}

.lb button {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}

.lb button:hover { background: var(--bl); }
.lb__x { top: 1.2rem; right: 1.2rem; }
.lb__p { left: 1.2rem; top: 50%; }
.lb__n { right: 1.2rem; top: 50%; }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding-top: 5rem;
}

.ftr__g {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.3fr;
  gap: 3rem;
}

.ftr__brand p {
  font-size: .92rem;
  margin: 1.4rem 0;
  max-width: 20rem;
}

.ftr h4 {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.4rem;
}

.ftr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ftr li {
  margin-bottom: .8rem;
  font-size: .92rem;
  color: var(--mu);
}

.ftr li a {
  text-decoration: none;
  color: var(--mu);
  transition: color .2s, padding .2s;
}

.ftr li a:hover {
  color: #fff;
  padding-left: .3rem;
}

.ftr__c li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}

.ftr__c i {
  color: var(--bl);
  width: 1rem;
  margin-top: .3rem;
  text-align: center;
}

.soc {
  display: flex;
  gap: .8rem;
}

.soc a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--mu);
  text-decoration: none;
  transition: all .2s;
}

.soc a:hover {
  background: var(--bl);
  border-color: var(--bl);
  color: #fff;
  transform: translateY(-3px);
}

.ftr__base {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--mu);
}

.ftr__base p {
  margin: 0;
  font-size: .82rem;
}

.ftr__base a {
  color: var(--mu);
  text-decoration: none;
}

.ftr__base a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 64rem) {
  .ftr__g { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}

@media (max-width: 60rem) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3.5rem; }
  .stline { display: none; }
  .bar__in { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .bar__in > div:nth-child(3) { border-left: 0; }
  .hero__in { grid-template-columns: 1fr; }
  .script { display: none; }
}

@media (max-width: 48rem) {
  .burger { display: block; }

  #menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 11, 22, .98);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.25rem 1.6rem;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  #menu.open { display: flex; }

  .feat,
  .split,
  .split--f,
  .svc {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .feat--r > :first-child { order: 0; }
  .brand small { display: none; }

  .stu { grid-template-columns: 1fr 1fr; }
  .ftr__g { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .feat { gap: 2.5rem; }
}

@media (max-width: 34rem) {
  .g4,
  .steps,
  .two {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stu { gap: 1rem; }
  .ftr__g { grid-template-columns: 1fr; }
  .ftr__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .rv {
    opacity: 1;
    transform: none;
  }
}
/* ============================================================
   BRAND / LOGO
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__logo {
  display: block;
  height: 3rem;               /* default header height */
  width: auto;
  max-width: min(15rem, 45vw);
  object-fit: contain;
  transition: height .3s ease;
}

/* Shrinks with the sticky-nav condensed state */
.nav.sm .brand__logo {
  height: 2.4rem;
}

/* Slightly larger in the footer */
.brand--ftr .brand__logo {
  height: 3.4rem;
}

/* Mobile — keep the header tidy */
@media (max-width: 48rem) {
  .brand__logo {
    height: 2.6rem;
    max-width: min(11rem, 55vw);
  }

  .brand--ftr .brand__logo {
    height: 3rem;
  }
}