:root {
  --paper: #e6eee6;
  --paper-2: #f3f7f1;
  --ink: #15241c;
  --muted: #3e564b;
  --line: #c5d5c9;
  --board: #17352c;
  --board-deep: #10261f;
  --chalk: #e8f4e0;
  --chalk-dim: #b7cbb4;
  --marigold: #d89212;
  --pen: #c4452d;
  --wood: #6d4528;
  --wood-dark: #4a2e1a;
  --shadow: 0 22px 50px rgba(16, 38, 28, 0.14);
  --sans: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Literata", "Iowan Old Style", Palatino, serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --wrap: 1120px;
  --header: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(216, 146, 18, 0.16), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}

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

a {
  color: inherit;
}

a:hover {
  color: var(--pen);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--board);
  color: var(--chalk);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus {
  top: 0.8rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 6.6vw, 5.5rem);
}

h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--pen);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(230, 238, 230, 0.9);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.header-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--board);
  color: var(--chalk);
  font-family: var(--sans);
  font-weight: 700;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1.5px rgba(231, 243, 223, 0.25);
}

.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-call {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid var(--board);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1.5px solid var(--board);
  border-radius: 4px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars {
  margin-inline: auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.hero {
  padding: 0 0 2.6rem;
}

.hero-stage {
  position: relative;
  height: min(78vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: var(--board);
}

.hero-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-stage-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 19, 0.78) 0%, rgba(10, 24, 19, 0.42) 38%, rgba(10, 24, 19, 0.08) 62%),
    linear-gradient(to top, rgba(10, 24, 19, 0.72) 0%, transparent 46%);
}

.hero-stage-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding-bottom: 2.4rem;
  color: var(--chalk);
}

.hero-stage .eyebrow {
  color: rgba(232, 244, 224, 0.78);
}

.hero-stage h1 {
  color: var(--chalk);
  max-width: 10em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-stage h1 em {
  color: #ffb1a1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding-top: 2.6rem;
}

.ticker {
  overflow: hidden;
  background: var(--board);
  color: var(--chalk);
  border-bottom: 3px solid var(--wood);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker-track ul {
  display: flex;
  margin: 0;
  padding: 0.9rem 0;
  list-style: none;
}

.ticker-track li {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 1.15rem;
}

.ticker-track li::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 1.15rem;
  border-radius: 50%;
  background: var(--marigold);
  transform: translateY(-0.08em);
}

.ticker:hover .ticker-track,
.reel:hover .reel-track {
  animation-play-state: paused;
}

.reel {
  overflow: hidden;
  background: #10261f;
  padding: 0.85rem 0 1rem;
}

.reel-track {
  display: flex;
  width: max-content;
  animation: reel 48s linear infinite;
}

.reel-set {
  display: flex;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.reel figure {
  position: relative;
  margin: 0;
  width: 280px;
  height: 188px;
  flex: none;
  overflow: hidden;
  border-radius: 2px;
}

.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.reel img.crop-class { object-position: center 68%; }
.reel img.crop-girls { object-position: center 42%; }
.reel img.crop-lib { object-position: center 38%; }
.reel img.crop-read { object-position: center 34%; }
.reel img.crop-notes { object-position: center 58%; }
.reel img.crop-tutor { object-position: center 46%; }

.reel figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.7rem 0.45rem;
  background: linear-gradient(to top, rgba(10, 24, 19, 0.82), transparent);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.line span {
  display: block;
}

.js .line span {
  animation: rise 0.85s cubic-bezier(0.16, 0.84, 0.3, 1) both;
}

.js .line:nth-child(2) span {
  animation-delay: 0.12s;
}

.lede {
  margin-top: 1.35rem;
  max-width: 38rem;
  font-size: 1.16rem;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-note {
  margin-top: 1.1rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn:hover {
  color: inherit;
}

.btn-board {
  background: var(--board);
  color: var(--chalk);
}

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

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--board);
}

.btn-line:hover {
  border-color: var(--pen);
  color: var(--pen);
}

.btn-chalk {
  background: var(--chalk);
  color: var(--board);
}

.btn-chalk:hover {
  background: white;
  color: var(--board-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: rgba(232, 244, 224, 0.75);
}

.btn-ghost:hover {
  color: white;
  border-color: white;
  background: rgba(255, 255, 255, 0.08);
}

.slate-wrap {
  min-width: 0;
  padding: 0.4rem 0.2rem 1rem;
}

.slate {
  padding: 12px;
  border-radius: 6px;
  background: var(--wood);
  box-shadow:
    0 0 0 3px var(--wood-dark),
    var(--shadow);
  transform: rotate(-0.6deg);
}

.slate-face {
  position: relative;
  min-height: 26rem;
  padding: 1.7rem 1.5rem 4.5rem;
  overflow: hidden;
  color: var(--chalk);
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(255, 255, 255, 0.07), transparent 42%),
    radial-gradient(70% 60% at 100% 100%, rgba(0, 0, 0, 0.28), transparent 50%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 7px),
    var(--board);
  border-radius: 2px;
}

.slate-label {
  margin: 0 0 1.6rem;
  font-family: var(--hand);
  font-size: 1.55rem;
  color: var(--chalk-dim);
}

.chalk-line {
  margin: 0;
}

.chalk-line-2 {
  margin-top: 0.85rem;
}

.chalk-run sup {
  font-size: 0.58em;
  line-height: 0;
}

.chalk-run {
  display: inline-block;
  max-width: 100%;
  font-family: var(--hand);
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 0 0.5px rgba(232, 244, 224, 0.8);
  clip-path: inset(0 100% 0 0);
  animation: wipe 1.15s steps(28, end) 0.4s forwards;
}

.chalk-line-eq .chalk-run {
  animation-delay: 1.45s;
}

.chalk-line-2 .chalk-run {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--chalk-dim);
  animation-delay: 2.55s;
}

.term {
  position: relative;
  color: var(--chalk);
}

.term::after {
  content: "";
  position: absolute;
  left: -0.28em;
  right: -0.28em;
  top: -0.18em;
  bottom: -0.12em;
  border: 2px solid var(--pen);
  border-radius: 50%;
  transform: rotate(-8deg) scale(0.86);
  opacity: 0;
  animation: pen 0.45s ease 2.7s forwards;
}

.tray {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1rem;
  height: 1.7rem;
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  border-top: 3px solid rgba(232, 244, 224, 0.18);
  padding-top: 0.35rem;
}

.stick {
  width: 3.1rem;
  height: 0.55rem;
  border-radius: 99px;
  background: linear-gradient(90deg, #f4f7ef, #d5d8cc 70%, #f7f4ea);
  transform: rotate(-8deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.stick-short {
  width: 1.7rem;
  background: #efe7c8;
}

.duster {
  margin-left: auto;
  width: 3.4rem;
  height: 1rem;
  border-radius: 2px;
  background:
    linear-gradient(#c4a27a, #c4a27a) top / 100% 35% no-repeat,
    #6d513c;
}

.facts {
  border-block: 1px solid var(--line);
  background: rgba(243, 247, 241, 0.65);
}

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

.facts-row p {
  padding: 1.15rem 1rem 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.facts-row p + p {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.facts-row strong {
  font-family: var(--sans);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.facts-row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.room,
.batches,
.families,
.visit {
  padding: 4.5rem 0;
  scroll-margin-top: var(--header);
}

.room-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.room-photo {
  margin: 0;
}

.room-photo img,
.batch figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-photo img {
  aspect-ratio: 5 / 4;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.points {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.points li {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.points strong {
  display: block;
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.points span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p:last-child {
  margin-top: 0.8rem;
  color: var(--muted);
}

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

.batch {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.batch:last-child {
  border-bottom: 1px solid var(--line);
}

.batch-std {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}

.batch-copy p:last-child {
  color: var(--muted);
  max-width: 38rem;
}

.batch figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 10;
}

.batch figure img {
  transition: transform 0.6s ease;
}

.batch:hover figure img {
  transform: scale(1.04);
}

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

blockquote {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 1.35rem 1.35rem 1.15rem 1.2rem;
  background: var(--paper-2);
  border-left: 3px solid var(--pen);
  box-shadow: 0 1px 0 var(--line);
}

blockquote p {
  font-size: 1.08rem;
}

blockquote footer {
  margin-top: auto;
  padding-top: 1.15rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.visit {
  padding-top: 1rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.visit-card,
.enquire {
  background: var(--paper-2);
  padding: 1.6rem;
  border: 1px solid var(--line);
}

address {
  font-style: normal;
  margin: 0.4rem 0 1.1rem;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.8rem;
  align-items: baseline;
  color: var(--muted);
}

.status {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--paper);
}

.status.is-open {
  background: #dcecda;
  color: #1b4d32;
}

.status.is-closed {
  background: #f3e1d8;
  color: #8a341f;
}

.visit-phone {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.visit-phone a {
  text-decoration: none;
}

.visit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.35rem;
}

.visit-links a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
}

.map-frame {
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  background: white;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.enquire h2 {
  font-size: 1.8rem;
}

.enquire > p {
  margin: 0.4rem 0 1.1rem;
  color: var(--muted);
}

.enquire label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
}

.enquire input,
.enquire select,
.enquire textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 2px;
}

.enquire textarea {
  resize: vertical;
}

.enquire button {
  margin-top: 0.3rem;
}

.site-footer {
  padding: 2.2rem 0 5.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-grid strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-family: var(--sans);
}

.footer-meta {
  font-family: var(--sans);
  font-size: 0.85rem;
}

.dock {
  display: none;
}

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

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

@keyframes wipe {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes pen {
  to { opacity: 1; }
}

@keyframes drift {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes reel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .hero-grid,
  .room-grid,
  .visit-grid,
  .footer-grid,
  .quotes,
  .facts-row {
    grid-template-columns: 1fr;
  }

  .facts-row p,
  .facts-row p + p {
    padding: 0.85rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .facts-row p:first-child {
    border-top: 0;
  }

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

  .batch figure {
    order: -1;
    max-height: 220px;
  }

  .slate {
    transform: none;
  }

  .slate-face {
    min-height: 0;
  }
}

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

  .hero-stage {
    height: 86vh;
    min-height: 560px;
  }

  .hero-stage-copy {
    padding-bottom: 5.4rem;
  }

  .hero-stage h1 {
    font-size: clamp(2.7rem, 12vw, 3.6rem);
  }

  .reel figure {
    width: 220px;
    height: 150px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1rem 0.9rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
  }

  .nav-call {
    margin-top: 0.6rem;
    text-align: center;
  }

  .chalk-run,
  .chalk-line-eq .chalk-run,
  .chalk-line-2 .chalk-run {
    white-space: normal;
    clip-path: none;
    animation-name: fade;
    animation-timing-function: ease;
    animation-duration: 0.7s;
  }

  .chalk-line-eq .chalk-run {
    animation-delay: 0.15s;
  }

  .chalk-line-2 .chalk-run {
    animation-delay: 0.3s;
  }

  .room,
  .batches,
  .families {
    padding: 3.2rem 0;
  }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--board);
  }

  .dock a {
    color: var(--chalk);
    text-align: center;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 700;
    padding: 0.85rem 0.4rem calc(0.85rem + env(safe-area-inset-bottom));
  }

  .dock a + a {
    box-shadow: inset 1px 0 rgba(232, 244, 224, 0.2);
  }

  .dock a:hover {
    color: white;
    background: var(--board-deep);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

  .js .line span,
  .chalk-run,
  .term::after,
  .js .reveal,
  .batch figure img,
  .hero-stage-img,
  .ticker-track,
  .reel-track {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
    clip-path: none;
  }

  .ticker-track ul:last-child,
  .reel-set[aria-hidden="true"] {
    display: none;
  }

  .ticker-track,
  .reel {
    overflow-x: auto;
  }
}
