/* ==========================================================================
   BASIC ENGLISH LESSONS — MAIN STYLESHEET (v3)
   Design language: warm serif headings (Fraunces) + clean sans body (Inter),
   a signature "chat-bubble" corner shape (three soft corners, one sharp —
   like a speech bubble) used on cards, buttons, and icon badges, and a
   restrained Educational Blue / Gold / White / Black palette.
   No photography or illustration anywhere — the owl mark is the only image.
   ========================================================================== */

:root{
  /* ---- Color ---- */
  --white:#FFFFFF;
  --bg-alt:#F5F8FC;
  --blue-900:#0F3059;
  --blue-700:#1B4F8C;
  --blue-600:#2F6FCE;
  --blue-100:#E9F1FC;
  --blue-050:#F5F9FE;
  --gold-600:#B4881A;
  --gold-500:#C9A227;
  --gold-100:#F8EFD3;
  --teal-600:#0F6E73;
  --teal-500:#2C9AA3;
  --teal-100:#E3F4F5;
  --ink:#171C24;
  --ink-soft:#54606F;
  --border:#E1E7F0;

  /* ---- Type ---- */
  --font-display:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Space ---- */
  --space-xs:.5rem;
  --space-sm:.875rem;
  --space-md:1.5rem;
  --space-lg:2.5rem;
  --space-xl:4rem;
  --space-2xl:6rem;

  /* ---- Shape ----
     "Bubble" radius is the signature shape of this site: three soft corners
     and one sharp corner, like a speech bubble tail. Used on cards, buttons,
     and icon badges throughout. */
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --radius-bubble:22px 22px 22px 4px;

  --shadow-card:0 6px 24px rgba(15,48,89,0.08);
  --shadow-card-hover:0 12px 32px rgba(15,48,89,0.14);

  --container:1140px;
}

/* ---- Reset ---- */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:var(--blue-700); text-decoration:none;}
a:hover{color:var(--blue-600);}
ul,ol{padding-left:1.25rem;}
:focus-visible{outline:3px solid var(--gold-500); outline-offset:2px;}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* ---- Layout ---- */
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 var(--space-md); }
.section{ padding:var(--space-2xl) 0; }
.section-tight{ padding:var(--space-xl) 0; }
.section-alt{ background:var(--bg-alt); }
.section-head{ max-width:640px; margin:0 auto var(--space-lg); text-align:center; }
.text-center{ text-align:center; }

.grid{ display:grid; gap:var(--space-md); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

/* ---- Typography ---- */
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--blue-900);
  line-height:1.18;
  margin:0 0 var(--space-sm);
  font-weight:600;
}
h1{ font-size:clamp(2.1rem, 4vw, 3.1rem); }
h2{ font-size:clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size:1.28rem; }
h4{ font-size:1.05rem; }
p{ margin:0 0 var(--space-sm); color:var(--ink); }

.eyebrow{
  display:inline-block;
  font-family:var(--font-body);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--gold-600);
  margin-bottom:var(--space-xs);
}
.lede{ font-size:1.14rem; color:var(--ink-soft); }

/* ---- Buttons & badges ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:var(--font-body); font-weight:600; font-size:.98rem;
  padding:.85rem 1.6rem;
  border-radius:var(--radius-bubble);
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover{ transform:translateY(-2px); text-decoration:none; }
.btn-primary{ background:var(--blue-700); color:var(--white); }
.btn-primary:hover{ background:var(--blue-600); color:var(--white); box-shadow:var(--shadow-card-hover); }
.btn-gold{ background:var(--gold-500); color:var(--white); }
.btn-gold:hover{ background:var(--gold-600); color:var(--white); box-shadow:var(--shadow-card-hover); }
.btn-outline{ background:transparent; border-color:var(--blue-700); color:var(--blue-700); }
.btn-outline:hover{ background:var(--blue-100); color:var(--blue-700); }
.btn-sm{ padding:.55rem 1.1rem; font-size:.88rem; }
.btn-block{ width:100%; }

.badge{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.04em;
  text-transform:uppercase; padding:.28rem .7rem; border-radius:999px;
  background:var(--gold-100); color:var(--gold-600);
}
.badge-blue{ background:var(--blue-100); color:var(--blue-700); }
.badge-soon{ background:var(--bg-alt); color:var(--ink-soft); border:1px dashed var(--border); }

/* ---- Header / nav ---- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:.85rem 0; }
.nav-brand{ display:flex; align-items:center; gap:.6rem; font-family:var(--font-display); font-weight:600; font-size:1.2rem; color:var(--blue-900); }
.nav-brand:hover{ text-decoration:none; }
.nav-brand img{ width:36px; height:36px; object-fit:contain; }
.nav-links{ display:flex; align-items:center; gap:var(--space-md); list-style:none; margin:0; padding:0; }
.nav-links a{ color:var(--ink); font-weight:500; font-size:.96rem; padding:.4rem .1rem; border-bottom:2px solid transparent; }
.nav-links a:hover, .nav-links a.active{ color:var(--blue-700); border-bottom-color:var(--gold-500); text-decoration:none; }
.nav-cta{ margin-left:var(--space-xs); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:.4rem; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--blue-900); margin:5px 0; }

@media (max-width:760px){
  .nav-links{
    position:fixed; top:64px; left:0; right:0; background:var(--white);
    border-bottom:1px solid var(--border);
    flex-direction:column; align-items:flex-start; padding:var(--space-md); gap:var(--space-sm);
    display:none; box-shadow:0 12px 24px rgba(13,59,102,.1);
  }
  .nav-links.is-open{ display:flex; }
  .nav-toggle{ display:block; }
  .nav-cta{ display:none; }
}

/* ---- Footer ---- */
.site-footer{ background:var(--blue-900); color:#CFE0F2; padding:var(--space-xl) 0 var(--space-lg); margin-top:var(--space-2xl); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:var(--space-lg); margin-bottom:var(--space-lg); }
.footer-grid h4{ color:var(--white); font-family:var(--font-body); font-size:.85rem; letter-spacing:.05em; text-transform:uppercase; margin-bottom:var(--space-sm); }
.footer-grid ul{ list-style:none; padding:0; margin:0; }
.footer-grid li{ margin-bottom:.5rem; }
.footer-grid a{ color:#CFE0F2; }
.footer-grid a:hover{ color:var(--gold-500); }
.footer-brand{ display:flex; align-items:center; gap:.6rem; font-family:var(--font-display); font-weight:600; font-size:1.1rem; color:var(--white); margin-bottom:.6rem; }
.footer-brand img{ width:30px; height:30px; }
.footer-desc{ color:#A9C2DC; max-width:320px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:var(--space-md); font-size:.85rem; color:#90AAC8; display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; }

/* ---- Hero ---- */
.hero{
  padding:var(--space-2xl) 0 var(--space-xl);
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(201,162,39,.10), transparent),
    radial-gradient(60% 60% at 10% 0%, rgba(27,79,140,.08), transparent);
  overflow:hidden;
}
.hero-inner{ display:grid; grid-template-columns:1.1fr .9fr; gap:var(--space-xl); align-items:center; }
.hero h1{ margin-bottom:var(--space-md); }
.hero-rotate{
  color:var(--blue-700);
  display:inline-block;
  transition:opacity .4s ease, transform .4s ease;
}
.hero-rotate.swap{ opacity:0; transform:translateY(8px); }
.hero-lede{ font-size:1.14rem; color:var(--ink-soft); max-width:48ch; margin-bottom:var(--space-md); }
.hero-ctas{ display:flex; gap:var(--space-sm); flex-wrap:wrap; margin-bottom:var(--space-md); }
.hero-meta{ display:flex; gap:var(--space-md); font-size:.9rem; color:var(--ink-soft); flex-wrap:wrap; }
.hero-meta strong{ color:var(--blue-900); }

/* ---- Owl art + ambient motion (the only imagery on the site) ---- */
.hero-art{ position:relative; display:flex; flex-direction:column; align-items:center; }
.hero-art img{ max-width:300px; position:relative; z-index:1; }
@keyframes floatY{ 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
.float-owl{ animation:floatY 4.5s ease-in-out infinite; }
@keyframes blobDrift{
  0%,100%{ transform:translate(0,0) scale(1); }
  33%{ transform:translate(10px,-14px) scale(1.05); }
  66%{ transform:translate(-8px,10px) scale(.97); }
}
.blob{ position:absolute; border-radius:50%; filter:blur(38px); opacity:.5; animation:blobDrift 9s ease-in-out infinite; z-index:0; }
.blob-blue{ background:#6FA8E8; }
.blob-gold{ background:#F0D080; }
.waveform{ display:flex; align-items:center; gap:4px; height:44px; margin-top:14px; position:relative; z-index:1; }
.waveform i{ display:block; width:4px; border-radius:4px; background:var(--gold-500); }
@keyframes barPulse{ 0%,100%{transform:scaleY(.5);} 50%{transform:scaleY(1);} }
.waveform.animated i{ animation:barPulse 1.2s ease-in-out infinite; transform-origin:bottom; }
.waveform.animated i:nth-child(2n){ animation-duration:1.4s; }
.waveform.animated i:nth-child(3n){ animation-duration:.9s; animation-delay:.15s; }
.waveform.animated i:nth-child(4n){ animation-delay:.3s; }
.waveform.animated i:nth-child(5n){ animation-delay:.08s; }

/* ---- Entrance animations (fade-in-up on load, reveal on scroll) ---- */
.fade-in-up{ animation:fadeInUp .7s ease both; }
.fade-in-up.d1{ animation-delay:.10s; }
.fade-in-up.d2{ animation-delay:.22s; }
.fade-in-up.d3{ animation-delay:.34s; }
@keyframes fadeInUp{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ opacity:0; transform:translateY(16px); transition:opacity .55s ease, transform .55s ease; }
.reveal-stagger.in-view > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.in-view > *:nth-child(1){transition-delay:.03s;}
.reveal-stagger.in-view > *:nth-child(2){transition-delay:.09s;}
.reveal-stagger.in-view > *:nth-child(3){transition-delay:.15s;}
.reveal-stagger.in-view > *:nth-child(4){transition-delay:.21s;}
.reveal-stagger.in-view > *:nth-child(5){transition-delay:.27s;}
@media (prefers-reduced-motion: reduce){
  .float-owl, .blob, .waveform.animated i{ animation:none; }
}

/* ---- Cards ---- */
.card{
  background:var(--white); border:1px solid var(--border); border-radius:var(--radius-bubble);
  padding:var(--space-md); box-shadow:var(--shadow-card);
  transition:box-shadow .2s ease, transform .2s ease;
}
.card:hover{ box-shadow:var(--shadow-card-hover); transform:translateY(-3px); }

/* Flat "icon-bubble" — the site's icon language. A single flat color fill
   in the signature bubble shape, with an emoji glyph. No gradients, no
   photography — deliberately simple and readable. */
.icon-bubble{
  width:56px; height:56px; border-radius:var(--radius-bubble);
  background:var(--blue-100); color:var(--blue-700);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; flex-shrink:0;
  transition:transform .25s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .icon-bubble{ transform:translateY(-3px) rotate(-4deg); }
.icon-bubble.gold{ background:var(--gold-100); color:var(--gold-600); }
.icon-bubble.teal{ background:var(--teal-100); color:var(--teal-600); }
.icon-bubble.navy{ background:var(--blue-900); color:var(--white); }
.icon-bubble.lg{ width:72px; height:72px; font-size:2rem; }

.feature-card{ text-align:left; display:flex; flex-direction:column; height:100%; }
.feature-card .icon-bubble{ margin-bottom:var(--space-sm); }
.feature-card p{ color:var(--ink-soft); flex-grow:1; }
.feature-card .btn{ align-self:flex-start; margin-top:var(--space-xs); }

/* Category card (lesson series) */
.category-card{ display:flex; flex-direction:column; height:100%; }
.category-card .card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-sm); margin-bottom:var(--space-sm); }
.category-card .topic-count{ display:block; font-size:.74rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:.3rem; }
.category-card p{ color:var(--ink-soft); flex-grow:1; }
.category-card .btn{ margin-top:var(--space-sm); align-self:flex-start; }
.category-card > .badge{ align-self:flex-start; }

/* Product card (study packs) */
.product-card{ display:flex; flex-direction:column; height:100%; text-align:left; }
.product-card .price{ font-family:var(--font-display); font-size:1.3rem; color:var(--blue-900); margin:.2rem 0; }
.product-card p{ color:var(--ink-soft); flex-grow:1; }
.product-card > .badge{ align-self:flex-start; margin-top:var(--space-xs); }

/* Value list (About page mission bullets) */
.value-list{ list-style:none; padding:0; display:grid; gap:var(--space-sm); }
.value-list li{ display:flex; gap:.75rem; align-items:flex-start; background:var(--white); border:1px solid var(--border); border-radius:var(--radius-md); padding:var(--space-sm) var(--space-md); }
.value-list .dot{ flex-shrink:0; width:10px; height:10px; border-radius:50%; background:var(--gold-500); margin-top:.5rem; margin-right:.75rem; }

/* ---- Quiz / Level Test ---- */
.quiz-shell{ max-width:720px; margin:0 auto; background:var(--white); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); padding:2.25rem; }
.quiz-progress-track{ height:8px; border-radius:999px; background:var(--blue-100); overflow:hidden; margin-bottom:1.4rem; }
.quiz-progress-fill{ height:100%; background:var(--gold-500); width:0%; transition:width .3s ease; }
.quiz-meta{ display:flex; justify-content:space-between; font-size:.82rem; color:var(--ink-soft); margin-bottom:.4rem; font-weight:600; }
.quiz-question{ font-family:var(--font-display); font-size:1.3rem; color:var(--blue-900); margin-bottom:1.2rem; }
.quiz-options{ display:flex; flex-direction:column; gap:.75rem; margin-bottom:1.6rem; }
.quiz-option{
  text-align:left; border:2px solid var(--border); background:var(--white);
  border-radius:var(--radius-md); padding:.85rem 1.1rem;
  font-size:.98rem; font-family:var(--font-body); color:var(--ink);
  cursor:pointer; transition:all .15s ease;
}
.quiz-option:hover{ border-color:var(--blue-600); background:var(--blue-050); }
.quiz-option.selected{ border-color:var(--blue-700); background:var(--blue-100); font-weight:600; }
.quiz-nav{ display:flex; justify-content:space-between; align-items:center; }
.quiz-start{ text-align:center; }
.quiz-start .waveform{ justify-content:center; margin:1.4rem auto; }
.disclaimer-box{
  background:var(--gold-100); border:1px solid #ECD9B1; border-radius:var(--radius-md);
  padding:.9rem 1.1rem; font-size:.86rem; color:#6B5320; text-align:left;
  margin:1.2rem 0; max-width:480px; margin-left:auto; margin-right:auto;
}
.disclaimer-box strong{ color:#8C6A10; }
.quiz-result{ text-align:center; }
.result-level{ font-family:var(--font-display); font-weight:700; font-size:3.3rem; color:var(--blue-700); margin:.8rem 0 .2rem; }
.result-domain{ font-size:.8rem; color:var(--ink-soft); letter-spacing:.03em; margin-bottom:1.6rem; }
.result-desc{ max-width:480px; margin:0 auto 1.6rem; }
.result-actions{ display:flex; gap:.85rem; justify-content:center; flex-wrap:wrap; }

/* ---- Coming soon box ---- */
.coming-soon-box{ border:2px dashed var(--border); border-radius:var(--radius-lg); padding:var(--space-lg); text-align:center; background:var(--bg-alt); }

/* ---- Lesson series header ---- */
.lesson-page-header{ padding:var(--space-xl) 0 var(--space-md); background:var(--blue-050); border-bottom:1px solid var(--border); }
.breadcrumb{ font-size:.88rem; color:var(--ink-soft); margin-bottom:var(--space-sm); }
.breadcrumb a{ color:var(--blue-700); }

/* ---- Lesson list toolbar ---- */
.lesson-toolbar{ display:flex; gap:var(--space-sm); align-items:center; margin:var(--space-md) 0; flex-wrap:wrap; }
.lesson-search{ flex:1; min-width:220px; padding:.7rem 1rem; border-radius:var(--radius-md); border:1px solid var(--border); font-family:var(--font-body); font-size:.95rem; }
.lesson-search:focus{ border-color:var(--blue-600); outline:none; }
.lesson-count{ font-size:.88rem; color:var(--ink-soft); white-space:nowrap; }

/* ---- Numbered lesson rows (list view) ---- */
.lesson-list{ display:flex; flex-direction:column; gap:.75rem; }
.lesson-row{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius-md); transition:box-shadow .2s ease, border-color .2s ease; cursor:pointer; }
.lesson-row:hover{ border-color:var(--blue-600); box-shadow:var(--shadow-card); }
.lesson-row-head{ display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:var(--space-sm); padding:.8rem 1rem; }
.lesson-number{ width:38px; height:38px; border-radius:var(--radius-bubble); background:var(--blue-100); color:var(--blue-700); font-family:var(--font-display); font-weight:600; display:flex; align-items:center; justify-content:center; font-size:.9rem; flex-shrink:0; }
.lesson-row-title{ font-weight:600; color:var(--blue-900); font-size:.98rem; }
.lesson-row-arrow{ color:var(--blue-700); font-weight:600; font-size:.85rem; display:flex; align-items:center; gap:.3rem; white-space:nowrap; font-family:var(--font-body); }
.lesson-row-arrow svg{ width:16px; height:16px; transform:rotate(-90deg); }

/* ---- Single-topic detail view ---- */
.lesson-detail{ max-width:720px; margin:0 auto; }
.lesson-detail-back{ margin-bottom:1.2rem; }
.lesson-detail-head{ display:flex; align-items:center; gap:.85rem; margin-bottom:1.2rem; }
.lesson-number-lg{ width:52px; height:52px; border-radius:var(--radius-bubble); background:var(--blue-100); color:var(--blue-700); font-family:var(--font-display); font-weight:700; display:flex; align-items:center; justify-content:center; font-size:1.15rem; flex-shrink:0; }
.lesson-detail-head h2{ margin:0; }
.lesson-audio{ width:100%; margin-bottom:1.6rem; }

/* Simple colored-text transcript — no bubbles, just blue/gold speaker text */
.transcript{ display:flex; flex-direction:column; gap:.85rem; margin-bottom:2rem; }
.transcript-line{ font-size:1.08rem; line-height:1.6; margin:0; }
.transcript-line .speaker-label{ font-weight:700; margin-right:.45rem; }
.transcript-line.speaker-a{ color:var(--blue-700); }
.transcript-line.speaker-b{ color:var(--gold-600); }
.transcript-line.speaker-note{ text-align:center; font-style:italic; color:var(--ink-soft); font-size:.9rem; margin:.4rem 0; }

.lesson-detail-nav{ display:flex; justify-content:space-between; align-items:center; gap:1rem; border-top:1px solid var(--border); padding-top:1.4rem; }
.lesson-detail-position{ font-size:.85rem; color:var(--ink-soft); white-space:nowrap; }

/* ---- Speaking pattern detail (no audio — explanation + examples) ---- */
.pattern-explanation{ font-size:1.06rem; color:var(--ink-soft); margin-bottom:1.4rem; }
.pattern-examples{ list-style:none; padding:0; margin:0 0 2rem; display:flex; flex-direction:column; gap:.6rem; }
.pattern-examples li{ background:var(--blue-050); border-left:3px solid var(--gold-500); border-radius:0 var(--radius-md) var(--radius-md) 0; padding:.65rem 1rem; font-size:1rem; color:var(--ink); }

/* ---- Grammar rule detail (diagram + explanation + usage) ---- */
.rule-diagram-box{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius-md); padding:.75rem 1rem; margin-bottom:1.4rem; }
.rule-diagram-box svg{ width:100%; height:auto; display:block; }
.rule-section-label{ font-size:.72rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-soft); margin:0 0 .5rem; }
.rule-explanation{ font-size:1.04rem; line-height:1.6; color:var(--ink); margin-bottom:1.4rem; }
.rule-usage-list{ list-style:none; padding:0; margin:0 0 .5rem; }
.rule-usage-list li{ font-size:.96rem; line-height:1.55; padding:.55rem 0 .55rem 1.4rem; position:relative; border-top:1px dashed var(--border); }
.rule-usage-list li:first-child{ border-top:none; }
.rule-usage-list li::before{ content:"→"; position:absolute; left:0; color:var(--gold-600); font-weight:700; }
.rule-category-tag{ font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft); }

/* ---- Category filter chips (Grammar Rules list) ---- */
.category-chips{ display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem; }
.category-chip{
  flex-shrink:0; font-family:var(--font-body); font-size:.82rem; font-weight:600; color:var(--blue-700);
  background:var(--white); border:1.5px solid var(--border); border-radius:999px; padding:.4rem .85rem; cursor:pointer;
  transition:all .15s ease;
}
.category-chip:hover{ border-color:var(--blue-600); }
.category-chip.active{ background:var(--blue-700); border-color:var(--blue-700); color:var(--white); }

/* ---- Responsive ---- */
@media (max-width:900px){
  .hero-inner{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1/-1; }
}
@media (max-width:640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .section{ padding:var(--space-xl) 0; }
}
