/* Eazi Education — site styles */

@font-face {
  font-family: "Comfortaa";
  src: url("/assets/fonts/comfortaa.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-italic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ink: #16213e;
  --ink-2: #434c66;
  --muted: #646d88;
  --line: #e4e8f1;
  --bg: #fffdf9;
  --bg-blue: #f1f6ff;
  --bg-warm: #fff5e8;
  --card: #fff;

  /* logo palette */
  --blue: #0a6fe0;
  --blue-ink: #0757b5;
  --orange: #ff7f00;
  --orange-ink: #a34d00;
  --red: #ff3b3b;
  --yellow: #ffd60a;
  --green: #1fc45a;
  --cyan: #12d3e6;
  --magenta: #e639d9;

  /* 3Eees palette */
  --pink: #e8137a;
  --sky: #49a2da;
  --honey: #f8b858;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgb(22 33 62 / 0.06);
  --shadow: 0 1px 2px rgb(22 33 62 / 0.05), 0 10px 30px -8px rgb(22 33 62 / 0.14);
  --shadow-lg: 0 2px 4px rgb(22 33 62 / 0.05), 0 24px 48px -16px rgb(22 33 62 / 0.22);

  --font-display: "Comfortaa", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Buttons & chips ---------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  border: 2px solid var(--btn-bg); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 800 1rem/1.2 var(--font-body); letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--btn-bg) 70%, transparent);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); background: var(--blue-ink); border-color: var(--blue-ink); }
.btn:active { transform: translateY(0); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); box-shadow: none; background: #fff; }
.btn-ghost:hover { color: var(--ink); background: #fff; border-color: var(--ink); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--blue-ink); }
.btn-light:hover { color: var(--blue-ink); background: #fff; border-color: #fff; }
.btn-pink { --btn-bg: var(--pink); }
.btn-pink:hover { background: #c40d65; border-color: #c40d65; }
.btn-sm { min-height: 40px; padding: 0.45em 1.1em; font-size: 0.95rem; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 800 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-ink); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); box-shadow: 14px 0 0 var(--green), 28px 0 0 var(--magenta);
  margin-right: 30px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.chip {
  display: inline-block; padding: 0.3em 0.75em; border-radius: 999px;
  font: 800 0.75rem/1.2 var(--font-body); letter-spacing: 0.02em;
  background: #eef1f7; color: var(--ink-2);
}
.chip-maths { background: #e3eeff; color: var(--blue-ink); }
.chip-english { background: #ffeedd; color: var(--orange-ink); }
.chip-age { background: #e2f7ea; color: #13663a; }

/* ---------- Family bar + header ---------- */
.familybar {
  background: linear-gradient(90deg, var(--pink), #b04bb8 45%, var(--sky));
  color: #fff; font-size: 0.875rem; font-weight: 600;
}
.familybar .wrap { display: flex; justify-content: center; gap: 0.4em 1em; flex-wrap: wrap; padding-block: 7px; text-align: center; }
.familybar a { color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.familybar a:hover { text-decoration: underline; color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 253 249 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgb(22 33 62 / 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; }
.logo { width: 168px; height: auto; aspect-ratio: 295 / 85; }

.site-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.btn) {
  display: block; padding: 0.55em 0.85em; border-radius: 999px;
  color: var(--ink); font-weight: 700; font-size: 0.98rem; text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--bg-blue); color: var(--blue-ink); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--blue-ink); background: var(--bg-blue); }
.site-nav li:last-child { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; cursor: pointer; color: var(--ink);
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 20px; height: 2.5px; border-radius: 2px; background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease; content: "";
  }
  .nav-toggle .bars { position: relative; }
  .nav-toggle .bars::before { position: absolute; top: -6.5px; }
  .nav-toggle .bars::after { position: absolute; top: 6.5px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6.5px) rotate(-45deg); }

  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgb(22 33 62 / 0.3);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-nav a:not(.btn) { padding: 0.8em 0.9em; font-size: 1.05rem; }
  .js .site-nav li:last-child { margin: 10px 0 0; }
  .js .site-nav .btn { width: 100%; min-height: 48px; }
  .site-nav ul { flex-wrap: wrap; }
  .logo { width: 148px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section.flush-top { padding-top: 0; }
.section-blue { background: var(--bg-blue); }
.section-warm { background: var(--bg-warm); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 1.75rem; }
.hl { position: relative; white-space: nowrap; color: var(--orange-ink); }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.08em; height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c40-8 80-9 120-6s52 4 74 1' fill='none' stroke='%23ff7f00' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.95rem; font-weight: 600; padding: 0; list-style: none; }
.hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.hero-note li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green); transform: rotate(45deg); }
.hero-note li:nth-child(2)::before { background: var(--magenta); border-radius: 50%; transform: none; }

.hero-art { position: relative; aspect-ratio: 1 / 0.92; }
.hero-art .blob {
  position: absolute; inset: 6% 2% 4% 6%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #e8f2ff 45%, #d4e6ff 100%);
  border-radius: 46% 54% 50% 50% / 52% 44% 56% 48%;
  box-shadow: inset 0 -20px 60px rgb(10 111 224 / 0.08);
}
.hero-art img { position: absolute; inset: 8% 4% 6% 6%; width: 90%; height: 86%; object-fit: contain; filter: drop-shadow(0 24px 30px rgb(22 33 62 / 0.18)); }
.shape { position: absolute; display: block; animation: float 7s ease-in-out infinite; }
.shape-circle { border-radius: 50%; }
.shape-tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.s1 { width: 54px; height: 54px; background: var(--red); left: 0; top: 18%; animation-delay: -1s; }
.s2 { width: 44px; height: 44px; background: var(--yellow); right: 4%; top: 2%; transform: rotate(18deg); border-radius: 8px; animation-delay: -3s; }
.s3 { width: 48px; height: 44px; background: var(--magenta); left: 18%; top: 0; animation-delay: -2s; }
.s4 { width: 38px; height: 38px; background: var(--cyan); right: 0; bottom: 22%; animation-delay: -4s; }
.s5 { width: 46px; height: 40px; background: var(--green); left: 8%; bottom: 4%; animation-delay: -5s; }
.s6 { width: 30px; height: 30px; background: var(--blue); right: 22%; bottom: 0; border-radius: 6px; transform: rotate(-14deg); animation-delay: -6s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.pillar h3 { margin-top: 18px; }
.pillar p { color: var(--ink-2); margin: 0; }
.pillar .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.pillar .icon svg { width: 30px; height: 30px; }
.icon-blue { background: #e3eeff; color: var(--blue); }
.icon-orange { background: #ffeedd; color: var(--orange); }
.icon-green { background: #e2f7ea; color: var(--green); }

/* ---------- Education boxes ---------- */
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.box-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.box-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.box-card .thumb {
  width: 112px; height: 112px; border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
}
.box-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.box-card h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.box-card p { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 0.6em; }
.box-card ul:not(.chips) { margin: 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--ink-2); }
.box-card ul:not(.chips) li { position: relative; padding-left: 18px; }
.box-card ul:not(.chips) li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.box-card.cta-card {
  grid-template-columns: 1fr; align-content: center; text-align: left;
  background: linear-gradient(135deg, var(--blue) 0%, #2a8bff 100%); color: #fff; border: 0;
}
.box-card.cta-card h3 { font-size: 1.35rem; }
.box-card.cta-card p { color: rgb(255 255 255 / 0.9); }
.box-card.cta-card .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 420px) {
  .box-card { grid-template-columns: 1fr; }
  .box-card .thumb { width: 96px; height: 96px; }
}

/* ---------- Teaching aids ---------- */
.aids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.aid {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.aid:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.aid .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint, #f3f6fc); }
.aid .media img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.aid .media.cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aid .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.aid h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.aid p { color: var(--ink-2); font-size: 0.97rem; flex: 1; }
.aid .more { font-weight: 800; font-size: 0.95rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.aid .more:hover { text-decoration: underline; }
.aid:nth-child(6n+1) { --tint: #fff1f1; }
.aid:nth-child(6n+2) { --tint: #fffbe0; }
.aid:nth-child(6n+3) { --tint: #e9fbf0; }
.aid:nth-child(6n+4) { --tint: #e6fbfd; }
.aid:nth-child(6n+5) { --tint: #fdeefc; }
.aid:nth-child(6n+6) { --tint: #e8f1ff; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; isolation: isolate; }
.split-media img { border-radius: 28px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.split-media::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 55%; height: 60%;
  border-radius: 28px; background: var(--yellow); z-index: -1; opacity: 0.85;
}
.split-media::after {
  content: ""; position: absolute; left: -16px; top: -16px; width: 64px; height: 64px;
  border-radius: 50%; background: var(--magenta);
}
.split .btn { margin-top: 0.5rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote {
  position: relative; margin: 0; padding: clamp(28px, 4vw, 44px);
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.quote::before {
  content: "\201C"; position: absolute; top: -26px; left: 28px;
  font: 700 6rem/1 var(--font-display); color: var(--orange);
}
.quote p { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--ink); }
.quote footer { color: var(--muted); font-weight: 700; margin-top: 1rem; }
.advocacy { margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); background: var(--bg-blue); }
.advocacy h3 { font-size: 1.1rem; color: var(--blue-ink); }
.advocacy p { margin: 0; color: var(--ink-2); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 700 0.95rem/1 var(--font-body); padding: 0.7em 1.1em; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer;
}
.filters button:hover { border-color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.masonry { columns: 4 230px; column-gap: 16px; }
.masonry .tile {
  display: block; break-inside: avoid; margin-bottom: 16px; position: relative;
  border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.masonry .tile img { width: 100%; max-height: 400px; object-fit: cover; object-position: top; transition: transform 0.35s ease; }
.masonry .tile:hover img { transform: scale(1.03); }
.masonry .tile[hidden] { display: none; }
.masonry .tile::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgb(22 33 62 / 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transition: opacity 0.2s ease;
}
.masonry .tile:hover::after, .masonry .tile:focus-visible::after { opacity: 1; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(10 14 28 / 0.94); color: #fff;
}
.lightbox::backdrop { background: rgb(10 14 28 / 0.6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox figure { margin: 0; display: grid; place-items: center; padding: 64px 72px 8px; min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.lightbox figcaption { text-align: center; padding: 12px 24px 24px; font-weight: 600; color: rgb(255 255 255 / 0.85); }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgb(255 255 255 / 0.12); color: #fff; cursor: pointer; font-size: 1.5rem; line-height: 1;
}
.lightbox button:hover { background: rgb(255 255 255 / 0.24); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lightbox .lb-count { position: absolute; top: 26px; left: 24px; font-weight: 700; font-size: 0.9rem; color: rgb(255 255 255 / 0.7); }
@media (max-width: 640px) {
  .lightbox figure { padding: 64px 12px 8px; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; translate: none; }
}

/* ---------- Family ---------- */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.brand-card .brand-logo { height: 64px; display: flex; align-items: center; }
.brand-card .brand-logo svg { width: 190px; height: auto; }
.brand-card .brand-logo img { height: 64px; width: auto; }
.brand-card h3 { margin: 0; font-size: 1.2rem; }
.brand-card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; flex: 1; }
.brand-card .go { font-weight: 800; color: var(--blue-ink); }
.brand-card.current { border: 2px solid var(--blue); }
.brand-card .badge {
  position: absolute; top: 18px; right: 18px; padding: 0.35em 0.8em; border-radius: 999px;
  font: 800 0.72rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  background: #e3eeff; color: var(--blue-ink);
}
.tess-mark {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: #f3ebe2; color: #6b4f3a; font: 700 1.45rem/1 var(--font-display); letter-spacing: -0.04em;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px;
  padding: clamp(36px, 6vw, 72px);
  background: linear-gradient(135deg, var(--blue) 0%, #1f86ff 55%, #38a3ff 100%);
  color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: rgb(255 255 255 / 0.9); margin: 0; max-width: 52ch; font-size: 1.1rem; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.cta-band .mail { color: #fff; font-weight: 700; text-align: center; }
.cta-band .mail:hover { color: #fff; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-band::before { width: 220px; height: 220px; right: -60px; top: -80px; background: rgb(255 214 10 / 0.9); }
.cta-band::after { width: 120px; height: 120px; right: 160px; bottom: -70px; background: rgb(230 57 217 / 0.85); }
.cta-band.pink { background: linear-gradient(135deg, var(--pink) 0%, #c43a9b 55%, var(--sky) 100%); }
.cta-band.pink::before { background: rgb(248 184 88 / 0.9); }
.cta-band.pink::after { background: rgb(255 255 255 / 0.25); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.78); padding-block: 64px 32px; margin-top: var(--section); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer .logo { --logo-edu: #fff; --logo-eazi: #ffa64d; width: 176px; margin-bottom: 16px; }
.site-footer h2 { font: 800 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.12); margin-top: 48px; padding-top: 24px;
  font-size: 0.88rem; color: rgb(255 255 255 / 0.6);
}

/* ---------- 3Eees page ---------- */
.eees-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.eees-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.eees-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(140 8 74 / 0.94) 0%, rgb(200 20 110 / 0.82) 38%, rgb(73 162 218 / 0.45) 100%);
}
.eees-hero .wrap { padding-block: clamp(56px, 10vw, 128px); }
.eees-hero .eees-logo { width: clamp(120px, 16vw, 168px); margin-bottom: 20px; }
.eees-hero h1 { color: #fff; max-width: 14ch; }
.eees-hero .tagline { font: 700 clamp(1.1rem, 2vw, 1.4rem)/1.3 var(--font-display); color: var(--honey); margin-bottom: 1rem; }
.eees-hero .lead { color: rgb(255 255 255 / 0.92); margin-bottom: 1.75rem; }
.eees-hero .btn-ghost { --btn-fg: #fff; background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.5); }
.eees-hero .btn-ghost:hover { color: #fff; background: rgb(255 255 255 / 0.2); border-color: #fff; }

.three-e { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.three-e li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.three-e .big-e {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px;
  font: 700 1.8rem/1 var(--font-display); color: #fff;
}
.three-e li:nth-child(1) .big-e { background: var(--pink); }
.three-e li:nth-child(2) .big-e { background: var(--sky); }
.three-e li:nth-child(3) .big-e { background: var(--honey); color: #5a3a00; }
.three-e p { color: var(--ink-2); margin: 0; }

/* ---------- Contact page ---------- */
.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 800; font-size: 0.95rem; }
label .opt { font-weight: 600; color: var(--muted); }
input, textarea, select {
  width: 100%; font: 500 1rem/1.4 var(--font-body); color: var(--ink);
  padding: 0.85em 1em; border: 1.5px solid #d5dbe8; border-radius: 14px; background: #fcfdff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(10 111 224 / 0.15); background: #fff; }
textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { background: #e2f7ea; color: #13663a; }
.form-status.err { background: #ffe8e8; color: #a11d1d; }
.form-card .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.aside-card { background: var(--bg-blue); border-radius: 28px; padding: clamp(24px, 4vw, 36px); }
.aside-card + .aside-card { margin-top: 20px; background: var(--bg-warm); }
.aside-card h2 { font-size: 1.3rem; }
.aside-card .email-link { font: 700 clamp(1.05rem, 2vw, 1.2rem)/1.3 var(--font-display); word-break: break-all; }
.aside-card ul { margin: 0; color: var(--ink-2); padding-left: 1.1em; }
.aside-card li + li { margin-top: 6px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound .mark { width: 120px; margin: 0 auto 28px; animation: spin 18s linear infinite; }
.notfound .lead { margin-inline: auto; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .story, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .family, .pillars, .three-e { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { align-items: flex-start; }
}
@media (min-width: 640px) and (max-width: 980px) {
  .pillars, .family, .three-e { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .masonry { columns: 2; column-gap: 10px; }
  .masonry .tile { margin-bottom: 10px; border-radius: 12px; }
  .masonry .tile img { max-height: 280px; }
  .split-media::before { inset: auto -8px -10px auto; }
  .split-media::after { left: -6px; top: -10px; width: 44px; height: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-band .actions, .cta-band .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
