:root {
  --ink: #0c241f;
  --ink-soft: #16352d;
  --moss: #2a6b54;
  --mint: #c5e0d2;
  --amber: #e0b03a;
  --amber-deep: #c99314;
  --paper: #eef3f0;
  --white: #ffffff;
  --line: rgba(12, 36, 31, 0.12);
  --shadow: 0 20px 50px rgba(12, 36, 31, 0.16);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1240px;
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(238, 243, 240, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max), calc(100% - 3rem));
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-shrink: 0;
  overflow: visible;
}

.brand span {
  color: var(--moss);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(12, 36, 31, 0.72);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--amber);
  padding-bottom: 0.15rem;
}

.nav-links a.btn {
  color: var(--ink);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(12, 36, 31, 0.22);
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-accent {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(224, 176, 58, 0.35);
}

.btn-accent:hover {
  background: var(--amber-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(12, 36, 31, 0.2);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Hero: desktop composition —— */
.hero {
  position: relative;
  min-height: min(820px, calc(100svh - var(--nav-h)));
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 85% 40%, rgba(224, 176, 58, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 55% at 10% 90%, rgba(42, 107, 84, 0.55), transparent 55%),
    linear-gradient(118deg, #0a1f1a 0%, #12352c 42%, #1a4538 100%);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vh, 4rem) 0;
}

.hero-copy {
  max-width: 34rem;
  animation: rise 0.75s ease both;
}

.hero-copy .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.12;
  margin: 0 0 1rem;
  padding-bottom: 0.08em;
  white-space: nowrap;
  overflow: visible;
}

.hero-copy h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 22ch;
}

.hero-copy > p {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  opacity: 0.9;
  max-width: 36ch;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.72;
}

.hero-meta span::before {
  content: "·";
  margin-right: 1.25rem;
  opacity: 0.45;
}

.hero-meta span:first-child::before {
  content: none;
  margin: 0;
}

/* Product visual — stack of lesson packs */
.hero-stage {
  position: relative;
  min-height: clamp(320px, 48vh, 460px);
  animation: rise 0.85s ease 0.1s both;
}

.pack {
  position: absolute;
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem;
  color: var(--ink);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  text-decoration: none;
}

a.pack:hover {
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42);
  z-index: 5;
}

.pack small {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.45rem;
}

.pack strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pack p {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  opacity: 0.72;
  max-width: 22ch;
}

.pack-a {
  width: min(100%, 280px);
  right: 22%;
  left: auto;
  top: 6%;
  background: linear-gradient(145deg, #f7f3e8, #e8f0ea);
  transform: rotate(-6deg);
  z-index: 1;
  animation: floatA 7s ease-in-out infinite;
}

.pack-b {
  width: min(100%, 270px);
  right: 0;
  left: auto;
  top: 26%;
  background: linear-gradient(145deg, #dceee4, #f0f7f3);
  transform: rotate(5deg);
  z-index: 2;
  animation: floatB 8s ease-in-out infinite;
}

.pack-c {
  width: min(100%, 280px);
  right: 10%;
  left: auto;
  bottom: 4%;
  background: linear-gradient(145deg, #f3e7c4, #f8f1dc);
  transform: rotate(-2deg);
  z-index: 3;
  animation: floatC 6.5s ease-in-out infinite;
}

a.pack-a:hover {
  transform: rotate(-8deg) translateY(-6px);
  animation: none;
}
a.pack-b:hover {
  transform: rotate(7deg) translateY(-4px);
  animation: none;
}
a.pack-c:hover {
  transform: rotate(0deg) translateY(-6px);
  animation: none;
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 5.5vw, 4.5rem) 0;
}

.section-tight {
  padding-top: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

.section-head > div {
  max-width: 40rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: rgba(12, 36, 31, 0.72);
  font-size: 1.02rem;
}

/* Bento catalog */
.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
}

.bento .product {
  min-height: 0;
}

.bento .product-feature {
  grid-row: 1 / span 2;
  background:
    linear-gradient(165deg, rgba(12, 36, 31, 0.92), rgba(22, 53, 45, 0.88)),
    radial-gradient(ellipse at 80% 20%, rgba(224, 176, 58, 0.35), transparent 50%);
  color: var(--white);
  border: 0;
  justify-content: flex-end;
  padding: 1.75rem;
  min-height: 100%;
}

.bento .product-feature .tag {
  color: var(--amber);
}

.bento .product-feature p {
  color: rgba(255, 255, 255, 0.78);
}

.bento .product-feature h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

.bento .product-feature .btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.bento .product-feature .btn-primary:hover {
  background: var(--amber-deep);
  color: var(--white);
}

.product {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.3rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

.product:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 107, 84, 0.35);
  box-shadow: var(--shadow);
}

.product .tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
}

.product h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}

.product p {
  margin: 0;
  flex: 1;
  color: rgba(12, 36, 31, 0.68);
  font-size: 0.92rem;
}

.product .btn {
  align-self: flex-start;
  padding: 0.65rem 1.05rem;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

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

/* Steps as compact row */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  counter-reset: step;
}

.step {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  color: var(--amber-deep);
  margin-bottom: 0.55rem;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: rgba(12, 36, 31, 0.68);
  font-size: 0.95rem;
}

/* Band CTA */
.band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 1.8rem;
  border-radius: 1.25rem;
  background: var(--ink);
  color: var(--white);
}

.band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.band p {
  margin: 0;
  opacity: 0.82;
  max-width: 48ch;
  font-size: 0.98rem;
}

/* —— Inner pages —— */
.page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 0.25rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 0.65rem;
  max-width: 16ch;
}

.page-hero p {
  margin: 0;
  max-width: 48ch;
  font-size: 1.05rem;
  color: rgba(12, 36, 31, 0.72);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.about-split {
  grid-template-columns: 1.1fr minmax(320px, 440px);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.about-photo {
  margin: 0;
  position: relative;
  width: min(100%, 420px);
  justify-self: end;
}

.about-photo picture,
.about-photo img {
  display: block;
  width: 100%;
}

.about-photo img {
  aspect-ratio: 5 / 4;
  height: auto;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
  background: var(--mint);
}

.about-photo figcaption {
  margin-top: 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--moss);
  text-align: center;
}

.split-visual {
  aspect-ratio: 4 / 5;
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.split-visual-edu {
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(224, 176, 58, 0.4), transparent 55%),
    radial-gradient(ellipse 80% 60% at 80% 70%, rgba(197, 224, 210, 0.35), transparent 50%),
    linear-gradient(145deg, #1a4035 0%, #0e2a24 55%, #244f42 100%);
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.muted {
  color: rgba(12, 36, 31, 0.7);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.free-list {
  display: grid;
  gap: 0.9rem;
}

.free-item {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  border-radius: 1.2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.free-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.free-item-media {
  min-height: 160px;
  background:
    linear-gradient(160deg, rgba(12, 36, 31, 0.25), transparent),
    url("../assets/map.webp") center / cover no-repeat;
}

.free-item-body {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.free-item-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: -0.03em;
}

.free-item-body p {
  margin: 0;
  color: rgba(12, 36, 31, 0.7);
  flex: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(224, 176, 58, 0.9);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mail-box {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.2rem;
  background: var(--ink);
  color: var(--white);
}

.mail-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.mail-box p {
  margin: 0 0 1.1rem;
  opacity: 0.85;
  max-width: 50ch;
}

.panel {
  border-radius: 1.35rem;
  overflow: hidden;
  position: relative;
  min-height: 260px;
  display: grid;
  align-items: end;
  color: var(--white);
  box-shadow: var(--shadow);
}

.panel-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 36, 31, 0.88) 10%, rgba(12, 36, 31, 0.35) 70%),
    url("../assets/map.webp") center / cover no-repeat;
}

.panel-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  max-width: 34rem;
}

.panel-body h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.panel-body p {
  margin: 0 0 1.1rem;
  opacity: 0.9;
}

/* —— Footer —— */
.site-footer {
  margin-top: 1rem;
  padding: 2.25rem 0 1.75rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer .brand {
  margin-bottom: 0.3rem;
}

.site-footer p {
  margin: 0;
  max-width: 32ch;
  color: rgba(12, 36, 31, 0.65);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: rgba(12, 36, 31, 0.5);
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatA {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-10px); }
}

@keyframes floatB {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(8px); }
}

@keyframes floatC {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-6px); }
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-stage {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .bento .product-feature {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .catalog {
    grid-template-columns: 1fr 1fr;
  }

  .band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(238, 243, 240, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  body.nav-open .nav-links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.7rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 2.25rem 0 2.5rem;
  }

  .bento,
  .catalog,
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .split,
  .about-split,
  .free-item {
    grid-template-columns: 1fr;
  }

  .about-photo {
    width: min(100%, 360px);
    justify-self: start;
  }


  .split-visual {
    aspect-ratio: 16 / 10;
    order: -1;
  }
}
