@font-face {
  font-family: "Aref Ruqaa";
  src: url("assets/fonts/aref-ruqaa-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("assets/fonts/noto-sans-arabic-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("assets/fonts/noto-sans-arabic-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Aref Ruqaa";
  src: url("assets/fonts/aref-ruqaa-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Rakkas";
  src: url("assets/fonts/rakkas-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #102f3a;
  --navy: #0b3444;
  --navy-deep: #061f2a;
  --cyan: #11d7e8;
  --cyan-soft: #8cecf3;
  --orange: #ffa905;
  --paper: #f8f2e5;
  --paper-deep: #eee2ca;
  --green: #235949;
  --red-line: rgba(190, 71, 57, .28);
  --blue-line: rgba(62, 141, 184, .16);
  --shadow: 0 20px 55px rgba(6, 31, 42, .16);
  --hand: "Aref Ruqaa", Georgia, serif;
  --body: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.72) 0 2px, transparent 3px),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--blue-line) 32px, transparent 33px),
    linear-gradient(90deg, transparent 0 7.8%, var(--red-line) 7.9%, transparent 8%),
    var(--paper);
  background-size: 120px 120px, auto, auto, auto;
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.9;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: -100px;
  right: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--navy);
  border-radius: 0 0 12px 12px;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  max-width: 1480px;
  margin: auto;
  padding: 1.2rem clamp(1rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
}

.brand img {
  width: 116px;
  height: 130px;
  object-fit: contain;
}

.header-cta {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: var(--orange);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: .45rem 1.4rem;
  box-shadow: 4px 5px 0 var(--navy);
  transition: transform .2s ease, box-shadow .2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 8px 0 var(--navy);
}

.hero {
  position: relative;
  min-height: min(100svh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 1640px;
  margin: auto;
  padding: 8rem clamp(1.1rem, 4vw, 4rem) 3.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 2.4rem;
  height: 12px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(-.5deg);
  opacity: .52;
}

.hero-art {
  transform: none;
}

.hero-art img {
  height: auto;
}

.art-frame {
  position: relative;
  overflow: visible;
  background: #fff;
  border: 2px solid rgba(16, 47, 58, .75);
  border-radius: 20px;
  box-shadow: 8px 9px 0 rgba(17, 215, 232, .38), var(--shadow);
}

.art-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: inherit;
  filter: saturate(.96) contrast(1.02);
}

.tape {
  position: absolute;
  width: 100px;
  height: 31px;
  background: rgba(255, 195, 81, .56);
  border-left: 1px solid rgba(92, 68, 22, .17);
  border-right: 1px solid rgba(92, 68, 22, .17);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.tape-a {
  top: -14px;
  right: 9%;
  transform: rotate(4deg);
}

.tape-b {
  bottom: -12px;
  left: 10%;
  transform: rotate(-4deg);
}

.hero-copy {
  position: relative;
  top: 1rem;
  z-index: 2;
}

.lesson-chip {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  font: 700 1.2rem/1 var(--hand);
  transform: rotate(5deg);
  box-shadow: 3px 4px 0 var(--orange);
}

.eyebrow {
  display: inline;
  color: var(--navy);
  background: linear-gradient(transparent 58%, rgba(17, 215, 232, .5) 58%);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  font-family: var(--hand);
  font-weight: 400;
  letter-spacing: 0;
  word-spacing: .12em;
  text-wrap: balance;
}

h1 {
  margin: .8rem 0 1.8rem;
  max-width: 720px;
  font-size: clamp(2.45rem, 5.3vw, 5.4rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy .eyebrow {
  line-height: 1.45;
}

.hero-copy h1 {
  max-width: none;
  margin: .9rem 0 1.35rem;
  font-family: "Rakkas", var(--hand);
  font-size: clamp(2.75rem, 3.6vw, 4.25rem);
  line-height: 1.55;
}

.hero-copy h1::after {
  margin-top: .65rem;
}

h1::after {
  content: "";
  display: block;
  width: min(360px, 72%);
  height: 15px;
  margin-top: .7rem;
  border-top: 4px solid var(--orange);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.cta-group,
.center-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cta-group p,
.center-cta p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.45;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .55rem 1.8rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  background: var(--cyan);
  box-shadow: 5px 6px 0 var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.primary-button::before {
  content: "♞";
  margin-left: .5rem;
  font-size: 1.2em;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--orange);
  transform: translate(-2px, -2px);
  box-shadow: 8px 9px 0 var(--navy);
}

.margin-line {
  position: absolute;
  top: 5%;
  right: 2.2%;
  bottom: 4%;
  width: 2px;
  background: var(--red-line);
}

.notebook-section {
  position: relative;
  max-width: 1400px;
  margin: 1.5rem auto 5rem;
  padding: clamp(2.2rem, 5vw, 5rem);
}

.notebook-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(16, 47, 58, .18);
  border-radius: 26px;
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(76, 149, 187, .10) 36px, transparent 37px),
    rgba(255,255,255,.34);
  box-shadow: 0 16px 55px rgba(6,31,42,.08);
  transform: none;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.section-heading h2,
.copy-panel h2,
.research-card h2 {
  margin: .2rem 0 .8rem;
  font-size: clamp(2.3rem, 4.6vw, 4.7rem);
  line-height: 1.18;
}

.section-heading p,
.copy-panel p {
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.wide-figure {
  max-width: 1180px;
  margin: 1.5rem auto 2rem;
}

.problem-section .wide-figure img {
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 42%;
}

.risks-panel {
  position: relative;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 2px solid rgba(16, 47, 58, .3);
  border-radius: 22px;
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(76, 149, 187, .08) 36px, transparent 37px),
    rgba(140, 236, 243, .13);
  box-shadow: 8px 10px 0 rgba(255, 169, 5, .32);
}

.risks-panel::before,
.risks-panel::after {
  content: "";
  position: absolute;
  right: 5%;
  left: 5%;
  border-top: 2px dashed rgba(16, 47, 58, .28);
}

.risks-panel::before {
  top: 1rem;
}

.risks-panel::after {
  bottom: 1rem;
}

.risk-intro {
  margin: 0 auto 2.2rem;
  text-align: center;
}

.risk-intro p {
  margin-bottom: .4rem;
  font-weight: 700;
}

.risk-intro h3 {
  display: inline-block;
  margin: 0;
  padding: .15rem .9rem;
  color: var(--navy);
  background: var(--orange);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.25;
  transform: rotate(-1deg);
  box-shadow: 5px 5px 0 var(--navy);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  max-width: 1180px;
  margin-inline: auto;
}

.index-card {
  position: relative;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: 6px 7px 0 rgba(11,52,68,.9);
}

.index-card:nth-child(2n),
.index-card:nth-child(3n) {
  transform: none;
}

.card-illustration {
  width: 100%;
  object-fit: cover;
  background: var(--paper-deep);
  border-bottom: 2px solid var(--ink);
}

.index-card .card-illustration {
  height: auto;
  aspect-ratio: 2 / 1;
}

.card-body {
  position: relative;
  padding: 1.2rem 1.3rem 1.35rem;
}

.card-body > span {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--orange);
  font: 700 2.4rem/1 var(--hand);
  opacity: .8;
}

.index-card h4 {
  margin: 0 0 .55rem;
  padding-left: 2.8rem;
  color: var(--navy);
  font-family: var(--hand);
  font-size: 1.85rem;
  line-height: 1.3;
}

.index-card p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.8;
}

.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.split.reverse {
  grid-template-columns: 1.18fr .82fr;
}

.solution-section .split > figure img,
.research-section .split > figure img {
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.copy-panel,
.research-card,
.offer-copy {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.solution-section .copy-panel,
.research-section .research-card {
  padding: clamp(1rem, 2vw, 1.75rem);
}

.solution-section .copy-panel h2,
.research-section .research-card h2 {
  font-size: clamp(2rem, 2.2vw, 2.65rem);
}

.scribble-question {
  display: inline-block;
  margin-top: 1rem;
  padding: .3rem 1rem .15rem;
  border: 2px dashed var(--navy);
  border-radius: 45% 35% 46% 38%;
  color: var(--navy);
  background: var(--orange);
  font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.4 var(--hand);
  word-spacing: .12em;
  transform: rotate(-1.3deg);
}

.chalk-note {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: center;
  max-width: 1060px;
  margin: 4rem auto 2.2rem;
  padding: 2rem;
  border: 9px solid #7a5a37;
  color: #f8f2e5;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 28%),
    var(--green);
  box-shadow: inset 0 0 25px rgba(0,0,0,.25), 8px 10px 0 var(--orange);
  transform: rotate(.45deg);
}

.solution-section .chalk-note {
  margin-top: 3rem;
}

.chalk-note::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 10px;
  width: 32%;
  border-bottom: 3px solid rgba(255,255,255,.55);
  transform: rotate(-1deg);
}

.chalk-note h3 {
  margin: 0 0 .35rem;
  color: var(--cyan-soft);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.25;
}

.chalk-note p {
  margin: 0;
}

.knight-mark {
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--orange);
}

.center-cta {
  justify-content: center;
  text-align: center;
}

.research-card {
  border-right: 4px solid var(--cyan);
}

.study-title {
  padding: 1rem 1.15rem;
  border: 2px solid var(--ink);
  color: var(--navy);
  background: rgba(255,169,5,.2);
  font: 700 1.05rem/1.6 Georgia, serif;
  box-shadow: 5px 5px 0 var(--orange);
}

.study-result {
  font-size: 1.2rem;
  font-weight: 700;
}

.source-note {
  color: rgba(16,47,58,.78);
  font-size: .9rem;
  line-height: 1.65;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.skill-note {
  position: relative;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff8c9;
  border: 2px solid rgba(16,47,58,.74);
  border-radius: 18px;
  box-shadow: 5px 6px 0 rgba(11,52,68,.32);
  transform: none;
}

.skill-note:nth-child(2n) {
  background: #d5f7fa;
  transform: none;
}

.skill-note:nth-child(3n) {
  background: #f9dfb4;
  transform: none;
}

.skill-note .card-illustration {
  aspect-ratio: 3 / 2;
}

.skill-copy {
  padding: 1.15rem 1.2rem 1.3rem;
}

.skill-note b {
  float: left;
  margin-right: .5rem;
  color: var(--navy);
  font-size: 2.4rem;
}

.skill-note h3 {
  margin: .15rem 0 .65rem;
  color: var(--navy);
  font-family: var(--hand);
  font-size: 1.75rem;
  line-height: 1.35;
}

.skill-note p {
  clear: both;
  margin: 0;
  font-size: .95rem;
  line-height: 1.8;
}

.offer-section::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(76,149,187,.10) 36px, transparent 37px),
    rgba(255,255,255,.5);
}

.offer-block {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 2.5rem;
}

.tournament-block > figure img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.orange-label,
.second-gift {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .25rem .7rem;
  color: var(--navy);
  background: var(--orange);
  font-size: 1.2rem;
  font-weight: 700;
  transform: rotate(-.7deg);
}

.offer-copy h3 {
  margin: 1rem 0 .35rem;
  color: var(--navy);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.25;
}

.offer-copy p {
  line-height: 1.75;
}

.offer-copy hr {
  margin: 1.6rem 0;
  border: 0;
  border-top: 2px dashed rgba(16,47,58,.42);
}

.second-gift {
  color: #fff;
  background: var(--navy);
  box-shadow: 5px 5px 0 var(--cyan);
}

.program-card {
  margin-top: 3.5rem;
  padding: clamp(1.3rem, 3vw, 2.7rem);
  border: 3px solid var(--navy);
  border-radius: 8px 28px 10px 30px;
  background: rgba(213,247,250,.58);
  box-shadow: 10px 12px 0 var(--cyan);
}

.program-title {
  text-align: center;
}

.program-title p {
  margin: 0;
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 700;
}

.program-title h3 {
  margin: .2rem 0 1.6rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.program-card > img {
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 18px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center;
}

.program-card ul {
  display: grid;
  gap: .75rem;
  margin: 2rem auto;
  padding: 0;
  list-style: none;
  max-width: 1100px;
}

.program-card li {
  padding: .7rem 1rem;
  border: 1px solid rgba(16,47,58,.35);
  background: rgba(255,255,255,.58);
  font-weight: 700;
  line-height: 1.6;
}

.program-card li span {
  display: inline-block;
  min-width: 2rem;
  color: var(--orange);
  font-size: 1.35rem;
}

.testimonials-section {
  margin-top: 5rem;
  padding: 4rem clamp(1rem, 4vw, 4rem) 4.5rem;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(17,215,232,.24), transparent 40%),
    var(--navy-deep);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.section-heading.light h2 {
  color: #fff;
}

.carousel-shell {
  position: relative;
  max-width: 980px;
  margin: auto;
}

.carousel-viewport {
  margin-inline: 5rem;
  padding: 1.3rem .8rem 2rem;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  direction: ltr;
  transition: transform .55s cubic-bezier(.22, .72, .22, 1);
  will-change: transform;
}

.testimonial {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 390px;
  margin: 0;
  padding: 1.5rem;
  background: var(--paper);
  border: 2px solid #fff;
  box-shadow: 8px 9px 0 var(--orange);
  transform: rotate(-.4deg);
}

.testimonial:nth-child(2n) {
  transform: rotate(.5deg);
}

.testimonial::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 42%;
  width: 92px;
  height: 28px;
  background: rgba(17,215,232,.48);
  transform: rotate(2deg);
}

.testimonial img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: var(--navy);
  background: var(--cyan);
  box-shadow: 5px 6px 0 var(--orange);
  font-size: 1.7rem;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--orange);
  box-shadow: 7px 8px 0 var(--cyan);
  transform: translateY(-50%) scale(1.06);
}

.carousel-button:active {
  box-shadow: 2px 3px 0 var(--cyan);
  transform: translateY(calc(-50% + 3px)) scale(.98);
}

.carousel-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.carousel-button.prev {
  right: 0;
}

.carousel-button.next {
  left: 0;
}

.carousel-status {
  margin: .4rem 0 0;
  color: var(--cyan-soft);
  font: 700 1rem/1 var(--body);
  text-align: center;
  direction: ltr;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 3rem clamp(1rem, 6vw, 7rem);
  color: var(--paper);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--navy-deep);
  background-size: 28px 28px, 28px 28px, auto;
  border-top: 4px solid var(--cyan);
}

.site-footer > img {
  width: 112px;
  height: 124px;
  padding: .45rem;
  object-fit: contain;
  border: 2px solid var(--paper);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 6px 7px 0 var(--cyan);
}

.site-footer h2 {
  margin: 0 0 .25rem;
  color: var(--cyan-soft);
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.site-footer p {
  margin: 0;
  color: rgba(248, 242, 229, .72);
  font-size: .9rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  direction: ltr;
}

.site-footer a {
  width: fit-content;
  color: var(--paper);
  font-size: .92rem;
  text-underline-offset: .25rem;
  transition: color .2s ease, transform .2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--orange);
  transform: translateX(3px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1051px) {
  .solution-section .copy-panel h2,
  .research-section .research-card h2 {
    white-space: nowrap;
  }

  .tournament-block {
    align-items: stretch;
  }

  .tournament-block > figure {
    margin-block: 0;
  }

  .tournament-block > figure img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 10rem;
  }

  .hero-copy {
    grid-row: 1;
  }

  .hero-art {
    grid-row: 2;
  }

  .risk-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split.reverse,
  .offer-block {
    grid-template-columns: 1fr;
  }

  .research-card {
    border-right: 0;
    border-top: 4px solid var(--cyan);
  }

  .offer-copy {
    padding-inline: 0;
  }

  .solution-section .copy-panel,
  .research-section .research-card {
    padding-inline: 0;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .site-footer nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .6rem 1.2rem;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
    background:
      repeating-linear-gradient(0deg, transparent 0 29px, var(--blue-line) 30px, transparent 31px),
      linear-gradient(90deg, transparent 0 5%, var(--red-line) 5.2%, transparent 5.4%),
      var(--paper);
  }

  .site-header {
    padding: .75rem 1rem;
  }

  .brand img {
    width: 78px;
    height: 88px;
  }

  .header-cta {
    font-size: .9rem;
    padding: .35rem 1rem;
    box-shadow: 3px 4px 0 var(--navy);
  }

  .hero {
    padding: 7.2rem 1.15rem 4.5rem;
    gap: 2.3rem;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.65rem);
  }

  .notebook-section {
    margin: 1rem .55rem 3.2rem;
    padding: 2.3rem 1rem;
  }

  .problem-section .wide-figure img,
  .program-card > img {
    aspect-ratio: 16 / 9;
  }

  .risks-panel {
    margin-top: 2.8rem;
    padding: 2rem .8rem;
    box-shadow: 5px 6px 0 rgba(255, 169, 5, .32);
  }

  .solution-section .split > figure img,
  .research-section .split > figure img {
    aspect-ratio: 16 / 9;
  }

  .solution-section .split > figure,
  .research-section .split > figure,
  .offer-block > figure {
    margin-inline: 0;
  }

  .risk-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .index-card,
  .skill-note {
    min-height: 0;
  }

  .section-heading h2,
  .copy-panel h2,
  .research-card h2 {
    font-size: clamp(2.15rem, 10vw, 3.25rem);
  }

  .split {
    gap: 2rem;
  }

  .chalk-note {
    grid-template-columns: 1fr;
    padding: 1.3rem;
    border-width: 6px;
  }

  .knight-mark {
    line-height: 1;
  }

  .cta-group,
  .center-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .program-card {
    padding: 1rem;
    box-shadow: 6px 7px 0 var(--cyan);
  }

  .testimonials-section {
    padding-inline: .5rem;
  }

  .carousel-viewport {
    margin-inline: 2.8rem;
    padding-inline: .55rem;
  }

  .testimonial {
    min-height: 280px;
    padding: .8rem;
  }

  .testimonial img {
    max-height: 330px;
  }

  .carousel-button {
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
    box-shadow: 3px 4px 0 var(--orange);
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer > img {
    margin: auto;
  }

  .site-footer nav {
    justify-content: center;
  }

  .site-footer a {
    width: auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
