/* Constellation – a calm night sky. Prefix: st- */

:root {
  --night: #0a0e2a;
  --night-2: #141a4a;
  --bg: var(--night);
  --ink: #eceaf6;
  --ink-2: #b4b8d6;
  --line: rgb(190 198 255 / 0.18);
  --accent: #e8d49c;
  --gold: #e8d49c;
  --lav: #a9b2ff;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

body.theme-stars {
  position: relative;
  font-size: 1.0625rem; line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 75% 0%, #262c74 0%, rgb(38 44 116 / 0) 70%),
    radial-gradient(ellipse 60% 40% at 0% 45%, #1a1f5a 0%, rgb(26 31 90 / 0) 70%),
    radial-gradient(ellipse 70% 40% at 100% 80%, #1c1850 0%, rgb(28 24 80 / 0) 70%),
    linear-gradient(#0d1235, #090c26 60%, #070a1f);
}
/* the sky: three layers of stars at unrelated repeat sizes */
body.theme-stars::before, body.theme-stars::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
body.theme-stars { isolation: isolate; }
body.theme-stars::before {
  background:
    radial-gradient(1px 1px at 23px 41px, rgb(255 255 255 / 0.8), transparent),
    radial-gradient(1px 1px at 131px 97px, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1.2px 1.2px at 71px 171px, rgb(255 255 255 / 0.7), transparent),
    radial-gradient(1px 1px at 181px 13px, rgb(220 225 255 / 0.6), transparent),
    radial-gradient(1px 1px at 199px 151px, rgb(255 255 255 / 0.5), transparent);
  background-size: 211px 197px;
  opacity: 0.7;
}
body.theme-stars::after {
  background:
    radial-gradient(1.5px 1.5px at 61px 83px, rgb(255 250 230 / 0.9), transparent),
    radial-gradient(1.2px 1.2px at 271px 211px, rgb(255 255 255 / 0.8), transparent),
    radial-gradient(1px 1px at 331px 37px, rgb(200 210 255 / 0.8), transparent),
    radial-gradient(1.8px 1.8px at 173px 301px, rgb(255 255 255 / 0.85), transparent);
  background-size: 347px 331px;
  opacity: 0.8;
}
.theme-stars h1, .theme-stars h2, .theme-stars h3 { font-weight: 400; letter-spacing: -0.01em; }
.theme-stars a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.theme-stars :focus-visible { outline-color: var(--gold); }

/* ---------- svg sky vocabulary ---------- */
.st-ill, .st-chart, .st-hero__chart { display: block; width: 100%; height: auto; overflow: visible; }
.st-star { fill: #fff; }
.st-glow { fill: rgb(255 255 255 / 0.07); }
.st-spark { fill: #fff6dc; }
.st-dust { fill: rgb(225 230 255 / 0.55); }
.st-line { stroke: rgb(220 225 255 / 0.42); stroke-width: 1; }
.st-grid { fill: none; stroke: rgb(160 172 255 / 0.13); stroke-width: 1; }
.st-path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.st-ring { fill: none; stroke: rgb(232 212 156 / 0.45); stroke-width: 1; }
.st-label { fill: var(--gold); font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.st-coord { fill: var(--ink-2); font-family: var(--font-mono); font-size: 12px; }
.st-orbit { fill: none; stroke: rgb(200 206 255 / 0.32); stroke-width: 1; }
.st-orbit--b { stroke-dasharray: 3 5; }
.st-moon { fill: #d8dcf5; }
@media (prefers-reduced-motion: no-preference) {
  .tw { animation: st-twinkle 4.5s ease-in-out infinite; }
  .tw2 { animation-duration: 5.5s; animation-delay: -1.2s; }
  .tw3 { animation-duration: 3.8s; animation-delay: -2.4s; }
  .tw4 { animation-duration: 6.2s; animation-delay: -0.6s; }
}
@keyframes st-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- header ---------- */
.st-top {
  display: flex; align-items: center; gap: 2rem;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 1.4rem var(--gutter);
}
.st-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.st-brand__star { width: 22px; height: 22px; fill: var(--gold); }
.st-brand__name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1; letter-spacing: 0.01em; }
.st-brand__sub { font-size: 0.8rem; color: var(--ink-2); padding-left: 0.75rem; border-left: 1px solid var(--line); }
.st-nav { display: flex; gap: 0.25rem 2rem; margin-left: auto; }
.st-nav a { font-size: 0.95rem; text-decoration: none; color: var(--ink-2); padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.st-nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.st-lang {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid rgb(232 212 156 / 0.6); color: var(--gold);
  font-family: var(--font-mono); font-size: 0.8rem; text-decoration: none;
}
.st-lang:hover { background: rgb(232 212 156 / 0.12); }

/* ---------- hero ---------- */
.st-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  min-height: calc(100vh - 92px);
  padding: clamp(16px, 3vw, 40px) var(--gutter) clamp(48px, 6vw, 80px);
}
.st-eyebrow { font-family: var(--font-mono); font-size: 0.82rem; color: var(--gold); margin-bottom: 1.5rem; }
.st-hero h1 {
  font-size: clamp(3.6rem, 7.2vw, 7.4rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.st-hero__lead { max-width: 44ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.25vw, 1.18rem); }
.st-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2.25rem; }
.st-btn {
  display: inline-flex; padding: 0.95rem 1.7rem; border-radius: 999px;
  background: var(--gold); color: #12153a; font-weight: 600; text-decoration: none;
  box-shadow: 0 0 0 0 rgb(232 212 156 / 0.3);
  transition: box-shadow 0.3s;
}
.st-btn:hover { box-shadow: 0 0 0 8px rgb(232 212 156 / 0.15); }
.st-tel { color: var(--ink); font-weight: 500; }
.st-hero__chart { max-width: 600px; justify-self: end; }

/* ---------- sections ---------- */
.st-sec { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter) 0; }
.st-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.st-head h2 { font-size: clamp(3rem, 5.6vw, 5.4rem); line-height: 0.95; font-weight: 300; }
.st-head p { color: var(--ink-2); max-width: 46ch; font-size: 1.1rem; }
.st-cap { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-2); text-align: center; }
figure { margin: 0; }

/* ---------- services ---------- */
.st-dev { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.st-dev__fig { padding: clamp(12px, 2vw, 28px); background: radial-gradient(closest-side, rgb(120 130 255 / 0.10), transparent); }
.st-dev h3, .st-svc h3 { font-family: var(--font-display); font-size: clamp(2.1rem, 3.2vw, 3rem); line-height: 1; margin-bottom: 1rem; }
.st-dev__text > p { color: var(--ink-2); }
.st-sub { margin: 2rem 0 0.5rem; font-family: var(--font-mono); font-weight: 400; font-size: 0.8rem; color: var(--gold); letter-spacing: 0; }
.st-focus div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.st-focus div:last-child { border-bottom: 1px solid var(--line); }
.st-focus dt { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; font-weight: 500; }
.st-focus dd { color: var(--ink-2); font-size: 0.97rem; hyphens: auto; -webkit-hyphens: auto; }
.st-footnote { margin-top: 1.5rem; font-size: 0.95rem; color: var(--ink-2); padding-left: 1.5rem; position: relative; }
.st-footnote::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 0.9rem; }
.st-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); margin-top: clamp(64px, 8vw, 112px); }
.st-svc__fig { max-width: 380px; margin-bottom: 1.5rem; }
.st-svc > p { color: var(--ink-2); }
.st-list { margin-top: 1.25rem; display: grid; gap: 0.55rem; }
.st-list li { position: relative; padding-left: 1.6rem; }
.st-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px 2px rgb(232 212 156 / 0.45); }

/* ---------- approach ---------- */
.st-route { position: relative; }
.st-chart { margin-bottom: 1rem; }
.st-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); padding: 0; list-style: none; text-align: center; }
.st-phases li { padding: 0 0.5rem; }
.st-phases__n { display: block; font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); margin-bottom: 0.5rem; }
.st-phases h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.05; margin-bottom: 0.5rem; }
.st-phases p { color: var(--ink-2); font-size: 0.97rem; max-width: 26ch; margin-inline: auto; }

.st-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(80px, 10vw, 140px); align-items: start; }
.st-small { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.st-small h3 { font-family: var(--font-display); font-size: clamp(2.1rem, 3.2vw, 3rem); line-height: 1; margin-bottom: 1rem; font-style: italic; }
.st-small p { color: var(--ink-2); }
.st-small p + p { margin-top: 0.85rem; }
.st-notes {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: 6px;
  background:
    repeating-linear-gradient(transparent 0 31px, rgb(190 198 255 / 0.06) 31px 32px),
    rgb(255 255 255 / 0.025);
}
.st-notes__title { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; }
.st-notes__sub { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); margin: 0.4rem 0 1.25rem; }
.st-notes details { border-top: 1px solid var(--line); }
.st-notes details:last-of-type { border-bottom: 1px solid var(--line); }
.st-notes summary { position: relative; display: block; padding: 1rem 2.25rem 1rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; font-weight: 500; }
.st-notes summary::-webkit-details-marker { display: none; }
.st-notes__no { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-2); margin-bottom: 0.2rem; font-weight: 400; }
.st-notes summary::after {
  content: ""; position: absolute; right: 0.3rem; top: 50%; width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg);
  transition: transform 0.3s;
}
.st-notes details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.st-notes summary:hover { color: var(--gold); }
.st-notes details p { padding: 0 2rem 1.1rem 0; color: var(--ink-2); }

/* ---------- products: planets ---------- */
.st-planets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.st-planet { position: relative; display: block; margin-bottom: 1.75rem; }
.st-planet svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-planet i { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.st-planet--1 i { background: radial-gradient(circle at 34% 30%, #e2f2ff 0%, #8fbbe8 22%, #3c66a8 55%, #14204e 100%); box-shadow: 0 0 60px 6px rgb(120 170 255 / 0.18); }
.st-planet--2 i { width: 26%; background: radial-gradient(circle at 34% 30%, #fff1d4 0%, #e3bd84 24%, #9a6a3c 60%, #2c1d18 100%); box-shadow: 0 0 50px 4px rgb(255 210 150 / 0.14); }
.st-planet--3 i { width: 30%; background: radial-gradient(circle at 34% 30%, #ffe3e7 0%, #d998ab 24%, #8a4566 60%, #26112a 100%); box-shadow: 0 0 50px 4px rgb(255 170 200 / 0.14); }
.st-planet--1 i::after, .st-planet--3 i::after {
  content: ""; position: absolute; left: -38%; right: -38%; top: 42%; height: 16%;
  border-radius: 50%; border: 1.5px solid rgb(232 212 156 / 0.55); border-top-color: transparent;
  transform: rotate(-12deg);
}
.st-prod h3 { font-family: var(--font-display); font-size: clamp(2rem, 2.8vw, 2.6rem); line-height: 1.02; }
.st-prod__meta { margin: 0.4rem 0 0.9rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); }
.st-prod > p:not(.st-prod__meta) { color: var(--ink-2); font-size: 0.98rem; hyphens: auto; -webkit-hyphens: auto; }
.st-link { display: inline-block; margin-top: 1.1rem; color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); }
.st-link:hover { color: var(--gold); }

/* ---------- contact ---------- */
.st-contact { position: relative; text-align: center; padding-bottom: clamp(100px, 12vw, 180px); }
.st-moon-big {
  display: block; width: clamp(90px, 10vw, 140px); aspect-ratio: 1; margin: 0 auto clamp(28px, 4vw, 48px);
  border-radius: 50%;
  box-shadow: inset -22px 8px 0 0 var(--gold), 0 0 80px 0 rgb(232 212 156 / 0.12);
  transform: rotate(-20deg);
}
.st-contact h2 { font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: 0.98; font-weight: 300; max-width: 14ch; margin: 0 auto 1.5rem; }
.st-contact__lead { max-width: 48ch; margin: 0 auto; color: var(--ink-2); font-size: 1.12rem; }
.st-contact__dl { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: center; gap: 2rem clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); text-align: left; }
.st-contact__dl dt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); margin-bottom: 0.3rem; }
.st-contact__dl dd { color: var(--ink-2); }
.st-contact__big { font-family: var(--font-display); font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.15; color: var(--ink) !important; }
.st-contact__big a { text-decoration: none; border-bottom: 1px solid rgb(232 212 156 / 0.6); }
.st-contact__big a:hover { color: var(--gold); }

/* ---------- footer ---------- */
.st-foot { position: relative; margin-top: 0; background: #060918; }
.st-foot__horizon { position: absolute; left: 0; bottom: 100%; width: 100%; height: 60px; fill: #060918; }
.st-foot__inner {
  display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto auto; gap: clamp(24px, 4vw, 64px); align-items: end;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 2rem var(--gutter) 2.5rem;
  font-size: 0.9rem; color: var(--ink-2);
}
.st-foot__name { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: 0.4rem; }
.st-foot__coord { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); }
.st-foot__links { display: flex; flex-direction: column; gap: 0.15rem; }
.st-foot__links a { color: var(--ink); text-decoration: none; }
.st-foot__links a:hover { color: var(--gold); }

/* ---------- legal ---------- */
.theme-stars .legal { padding-bottom: clamp(120px, 14vw, 200px); }
.theme-stars .legal h1 { font-weight: 300; font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -0.01em; }
.theme-stars .legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: 0; }
.theme-stars .legal a { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .st-brand__sub { display: block; border: 0; padding: 0; max-width: 9rem; font-size: 0.72rem; line-height: 1.2; }
  .st-nav { gap: 0.25rem 1.25rem; }
  .st-small { grid-template-columns: 1fr; }
  .st-small__fig { max-width: 260px; }
  .st-focus div { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (max-width: 860px) {
  .st-top { flex-wrap: wrap; gap: 0.75rem 1rem; padding: 1rem var(--gutter); }
  .st-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 0.25rem 0.75rem; }
  .st-lang { margin-left: auto; }
  .st-hero { grid-template-columns: 1fr; min-height: 0; }
  .st-hero__chart { justify-self: center; max-width: 280px; order: -1; margin: -10px auto -20px; opacity: 0.9; }
  .st-head, .st-dev, .st-pair, .st-lower { grid-template-columns: 1fr; }
  .st-chart { display: none; }
  .st-phases { grid-template-columns: 1fr; text-align: left; gap: 0; border-left: 1px dashed rgb(232 212 156 / 0.6); margin-left: 8px; }
  .st-phases li { position: relative; padding: 0 0 2rem 1.75rem; }
  .st-phases li::before { content: ""; position: absolute; left: -5px; top: 0.25rem; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgb(255 246 220 / 0.6); }
  .st-phases p { margin-inline: 0; max-width: none; }
  .st-planets { grid-template-columns: 1fr; max-width: 460px; }
  .st-contact__dl { grid-template-columns: 1fr; justify-content: stretch; text-align: center; }
  .st-foot__inner { grid-template-columns: 1fr 1fr; }
  .st-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .st-hero h1 { font-size: 3.5rem; }
  .st-head h2 { font-size: 3rem; }
  .st-contact h2 { font-size: 2.9rem; }
  .st-contact__big { font-size: 1.4rem; }
  .st-nav a { font-size: 0.9rem; }
  .theme-stars p, .theme-stars li, .theme-stars dd { hyphens: auto; -webkit-hyphens: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .st-btn, .st-notes summary::after { transition: none; }
}
