/* firefly-10 Night sky: full-width constellation sky fading into navy, a constellation thread between sections, a warm lantern zone for the kids. */
:root {
  color-scheme: dark light;
  --bg: #0a1128;
  --bg-deep: #070d1f;
  --surface: #101a39;
  --ink: #e9eeff;
  --muted: #a9b5d6;
  --line: #213062;
  --accent: #8fd0ff;
  --thread: #8fd0ff;
  --star: #ffb867;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  /* Warm lantern zone (Academia). */
  --wz-bg: radial-gradient(55% 80% at 18% 40%, rgba(255, 169, 77, .26), transparent 65%), radial-gradient(40% 60% at 92% 85%, rgba(255, 120, 80, .16), transparent 70%), linear-gradient(160deg, #1f1730, #2b1c15);
  --wz-ink: #fff1dc;
  --wz-muted: #f1d8b6;
  --wz-accent: #ffb867;
  --wz-line: rgba(255, 184, 103, .3);
  --wz-fly: rgba(255, 196, 120, .8);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f1f4fa;
    --bg-deep: #e5eaf4;
    --surface: #ffffff;
    --ink: #0b1530;
    --muted: #42506e;
    --line: #d3dbea;
    --accent: #0b5e93;
    --thread: #3f78b8;
    --star: #c25e00;
    --shadow: 0 18px 40px rgba(11, 21, 48, .1);
    --wz-bg: radial-gradient(55% 80% at 18% 40%, rgba(255, 169, 77, .34), transparent 65%), radial-gradient(40% 60% at 92% 85%, rgba(255, 140, 90, .2), transparent 70%), linear-gradient(160deg, #fff7ea, #ffe6c4);
    --wz-ink: #3a2410;
    --wz-muted: #61432a;
    --wz-accent: #9a4600;
    --wz-line: rgba(154, 70, 0, .25);
    --wz-fly: rgba(214, 120, 20, .55);
  }
}
/* Always-night bands: header, hero, contact, footer. */
.band {
  --bg: #050916;
  --surface: #0d1633;
  --ink: #e9eeff;
  --muted: #a9b5d6;
  --line: #1c2a55;
  --accent: #8fd0ff;
  --thread: #8fd0ff;
  --star: #ffb867;
  background: var(--bg);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #050916; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100; padding: 12px 18px; border-radius: 8px;
  background: #ffb867; color: #050916; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Header: same ink as the top of the sky, so it melts into the hero */
.site-header { position: relative; z-index: 20; }
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 1.2rem; letter-spacing: .18em; text-decoration: none; }
.logo-mark { width: 40px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .98rem; text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.main-nav { margin-left: auto; }
.lang-top { margin-left: -12px; }
@media (max-width: 899px) {
  /* Logo and language switch share the first row; the section menu drops below */
  .header-in .main-nav { order: 3; width: 100%; margin-left: 0; }
  .lang-top { margin-left: auto; }
}
@media (max-width: 640px) {
  .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .nav a { padding: 0 8px; border: 1px solid var(--line); font-size: .95rem; }
}
@media (min-width: 900px) { .site-header { position: sticky; top: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); } }

/* Hero: the night sky, softened and masked into navy */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-start;
  min-height: clamp(560px, 86vh, 780px); padding: clamp(48px, 9vh, 112px) 0 clamp(150px, 24vh, 240px);
}
.sky-img {
  position: absolute; top: 0; left: 0; z-index: -3; width: 100%; height: 135%; max-width: none;
  object-fit: cover; object-position: 50% 0; filter: blur(1.5px) saturate(1.1); transform: scale(1.03);
}
@media (min-width: 900px) { .sky-img { height: 100%; object-position: 50% 58%; filter: blur(2px) saturate(1.1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(5, 9, 22, .9) 0%, rgba(5, 9, 22, .62) 40%, rgba(5, 9, 22, .18) 66%, rgba(10, 17, 40, .4) 82%, #0a1128 100%);
}
@media (max-width: 899px) {
  .hero::before { background: linear-gradient(180deg, rgba(5, 9, 22, .9) 0%, rgba(5, 9, 22, .72) 58%, rgba(5, 9, 22, .25) 78%, #0a1128 100%); }
}
.sky-lines { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.sky-lines polyline { fill: none; stroke-width: 1.2; }
.c-warm polyline { stroke: rgba(255, 184, 103, .55); }
.c-warm circle { fill: #ffd29a; filter: drop-shadow(0 0 4px rgba(255, 169, 77, .9)); }
.c-cool polyline { stroke: rgba(143, 208, 255, .5); }
.c-cool circle { fill: #d6eeff; filter: drop-shadow(0 0 4px rgba(143, 208, 255, .9)); }
.sky-lines circle { animation: twinkle 5s ease-in-out infinite; }
.sky-lines circle:nth-of-type(2n) { animation-delay: -1.7s; }
.sky-lines circle:nth-of-type(3n) { animation-delay: -3.1s; }
@keyframes twinkle { 50% { opacity: .45; } }

.hero-in { text-align: center; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: #ffd29a; }
.kicker { color: var(--accent); }
.spark { flex: none; width: 12px; height: 12px; background: var(--star); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.eyebrow .spark { background: #ffb867; }
h1 { max-width: 18ch; margin: 0 auto 20px; font-size: clamp(2.1rem, 1.2rem + 3.8vw, 4.1rem); line-height: 1.07; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.lead { max-width: 44ch; margin: 0 auto 30px; color: #c9d3ee; font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero .cta { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; text-decoration: none; transition: box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: #ffb867; color: #1f1204; }
.btn-primary:hover { box-shadow: 0 0 28px 2px rgba(255, 184, 103, .5); }
.btn-line { border: 1px solid #8fd0ff; color: #d6eeff; background: rgba(5, 9, 22, .35); }
.btn-line:hover { background: rgba(143, 208, 255, .14); }

/* Sections and the constellation thread between them */
.section { padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 8vw, 104px); scroll-margin-top: 72px; }
.section-deep { background: var(--bg-deep); }
.thread { display: block; width: min(100% - 32px, 1200px); height: clamp(44px, 5vw, 60px); margin: 0 auto clamp(24px, 4vw, 52px); color: var(--thread); }
h2 { margin: 0 0 20px; font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem); line-height: 1.12; letter-spacing: -.02em; }
h3 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; }
.big { margin: 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.6; }

.about { display: grid; gap: 12px; }
@media (min-width: 860px) { .about { grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; } }
.facts { position: relative; display: flex; flex-wrap: wrap; gap: 16px 64px; margin: 28px 0 0; }
.facts div { position: relative; padding-left: 26px; }
.facts div::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--star); box-shadow: 0 0 12px var(--star); }
@media (min-width: 480px) { .facts div + div::after { content: ""; position: absolute; left: -58px; top: calc(.55em + 6px); width: 52px; border-top: 1px dashed var(--thread); } }
.facts dt { color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 1.4rem; font-weight: 800; }

/* Services: cards hung on one constellation line */
.cards { position: relative; display: grid; gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; }
@media (max-width: 599px) { .cards { max-width: 520px; margin-inline: auto; } }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cards::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 0; border-top: 1px dashed var(--thread); opacity: .7; }
}
.card {
  position: relative; display: flex; flex-direction: column; overflow: visible; scroll-margin-top: 96px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow);
}
.card::before {
  content: ""; position: absolute; top: -7px; left: 50%; z-index: 1; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--star); box-shadow: 0 0 0 4px var(--bg-deep), 0 0 16px var(--star);
}
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 19px 19px 0 0; }
.card-body { padding: 22px 24px 24px; }
.card-body p:last-child { margin: 0; color: var(--muted); }
.card-tag { margin: 0 0 10px; color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .06em; }
.card-warm { background: #fff2dc; color: #3a2410; border-color: #f3d6a6; box-shadow: 0 24px 60px -26px rgba(255, 150, 50, .55); }
.card-warm img { object-position: 50% 30%; }
.card-warm .card-tag { color: #8a3d00; }
.card-warm .card-body p:last-child { color: #61432a; }
@media (min-width: 600px) and (max-width: 999px) {
  .card { display: grid; grid-template-columns: minmax(0, 2fr) 3fr; }
  .card img { height: 100%; min-height: 230px; aspect-ratio: auto; border-radius: 19px 0 0 19px; }
  .card::before { left: 40%; }
}

/* Warm lantern zone: Academia */
.warm-zone {
  position: relative; isolation: isolate; overflow: hidden; background: var(--wz-bg); color: var(--wz-ink);
  --thread: var(--wz-accent); --star: var(--wz-accent); --accent: var(--wz-accent);
}
.warm-zone::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 30px 40px, var(--wz-fly) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 160px 120px, var(--wz-fly) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 240px 30px, var(--wz-fly) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90px 200px, var(--wz-fly) 50%, transparent 100%);
  background-size: 280px 240px, 340px 260px, 300px 280px, 260px 300px;
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 50% { opacity: .5; } }
.academy { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .academy { grid-template-columns: minmax(0, 440px) 1fr; gap: 56px; } }
.academy-art { width: 100%; max-width: 440px; margin-inline: auto; }
.academy-art img { width: 100%; border-radius: 26px; box-shadow: 0 0 0 1px var(--wz-line), 0 24px 70px rgba(255, 150, 50, .32); }
.specs { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; color: var(--wz-muted); }
.specs li { position: relative; padding-left: 26px; }
.specs li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--wz-accent); transform: rotate(45deg); }
.soon { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--wz-line); font-weight: 700; }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--wz-accent); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 184, 103, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 184, 103, 0); } }

/* Contact */
.contact { background: radial-gradient(45% 60% at 50% 0%, rgba(143, 208, 255, .1), transparent 70%), var(--bg); }
.contact-in { display: grid; gap: 32px; }
@media (min-width: 860px) { .contact-in { grid-template-columns: 1fr 1.4fr; align-items: start; } }
address { font-style: normal; }
.contact-card { padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.company { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
dl { margin: 0; }
.contact-card dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .contact-card dl div { grid-template-columns: 1fr; } }
.contact-card dt { padding-top: 2px; color: var(--accent); font-weight: 700; font-size: .92rem; }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; color: #ffc68a; font-weight: 600; }

/* Footer */
.site-footer { padding: 18px 0; border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.legal { margin: 0; color: var(--muted); font-size: .92rem; }
.lang { display: flex; align-items: center; gap: 2px; color: var(--muted); }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border-radius: 8px; color: var(--ink); font-weight: 700; text-decoration: none;
}
.lang a[aria-current] { color: #050916; background: #8fd0ff; }

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