/* R+K Global Holding – design tokens
   Palette taken from a PV module: silicon cell, busbar silver, sunlight. */
:root {
  --night: #070B1E;
  --silicon: #0D1638;
  --silicon-2: #16224D;
  --sun: #FF8C42;
  --sun-deep: #9A4A0A;
  --sky: #8DB8FF;
  --busbar: #C9D1DC;
  --daylight: #F4F6F3;
  --paper: #FFFFFF;
  --ink: #10182B;
  --ink-soft: #4A556B;
  --on-dark: #EEF1F6;
  --on-dark-soft: #A9B4C8;
  --line-dark: rgba(201, 209, 220, .18);
  --line-light: rgba(16, 24, 43, .14);

  --font: "Archivo", "Noto Sans Georgian", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--night);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
.light :focus-visible { outline-color: var(--ink); }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 16px; background: var(--sun); color: var(--ink);
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.dark { background: var(--night); color: var(--on-dark); }
.light { background: var(--daylight); color: var(--ink); }

/* Type: one family, the width axis does the work */
h1, h2, .brand__mark {
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); line-height: 1.06; }
h3 { font-size: 1.3rem; font-weight: 600; font-stretch: 112%; line-height: 1.2; letter-spacing: -.01em; }
.big { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--on-dark-soft); max-width: 34em; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) .brand__mark { font-stretch: 100%; letter-spacing: 0; line-height: 1.15; }
:lang(ka) h1 { font-size: clamp(2rem, 5vw, 4.6rem); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font: inherit; font-weight: 600; font-stretch: 108%; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--small { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #FFB07A; }
.btn--line { border-color: rgba(201, 209, 220, .45); color: var(--on-dark); background: transparent; }
.btn--line:hover { border-color: var(--on-dark); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  color: var(--on-dark);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck, .nav.is-open { background: rgba(7, 11, 30, .92); backdrop-filter: blur(12px); border-bottom-color: var(--line-dark); }
.nav__progress { position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left center; }
.nav__row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; min-height: 44px; padding-block: 8px; }
.brand__mark { font-size: 1.5rem; font-weight: 700; }
.brand__plus { color: var(--sun); }
.brand__name { font-size: .95rem; color: var(--on-dark-soft); font-stretch: 108%; }
.nav__menu { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav__menu > a:not(.btn) { text-decoration: none; font-size: .98rem; padding-block: 12px; border-bottom: 1px solid transparent; }
.nav__menu > a:not(.btn):hover { border-bottom-color: var(--sun); }
.brand, .nav__menu > a, .nav__toggle { white-space: nowrap; }
@media (max-width: 1400px) { :lang(ka) .brand__name { display: none; } }
.nav__toggle { display: none; min-height: 44px; padding: 0 16px; font: inherit; color: inherit; background: none; border: 1px solid var(--line-dark); border-radius: 2px; cursor: pointer; }
.lang { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 2px; }
.lang button {
  min-width: 44px; min-height: 40px; padding: 0 10px;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--on-dark-soft);
  background: none; border: 0; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--on-dark); color: var(--night); }

/* Hero: stacked by default; .is-scrub (added by JS) turns it into a
   tall track with a pinned stage that the scroll position scrubs. */
.vhero { position: relative; background: var(--night); }
.vhero__pin { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: end; }
.vhero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease; will-change: transform; pointer-events: none;
}
.vhero__video.is-ready { opacity: 1; }
.vhero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 11, 30, .6), rgba(7, 11, 30, 0) 70%),
    linear-gradient(180deg, rgba(7, 11, 30, .6), rgba(7, 11, 30, .15) 30%, rgba(7, 11, 30, .4) 60%, rgba(7, 11, 30, .92));
}
.no-video .vhero__shade { background: radial-gradient(90% 60% at 78% 0%, rgba(255, 140, 66, .16), transparent 60%), linear-gradient(180deg, var(--silicon), var(--night) 72%); }
.vhero__content { position: relative; display: grid; gap: 28px; padding-top: 120px; padding-bottom: clamp(72px, 13vh, 136px); }
.vhero h1 { max-width: 11em; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.vhero__end { max-width: 40em; }
.vhero__end .lead { color: var(--on-dark); font-size: clamp(1.2rem, 2.2vw, 1.9rem); line-height: 1.3; font-stretch: 108%; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.vhero__end .btn--line { border-color: rgba(238, 241, 246, .6); background: rgba(7, 11, 30, .35); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.vhero__hint, .vhero__bar { display: none; }

.vhero.is-scrub { height: calc(100vh + 2800px); height: calc(100lvh + 2800px); }
.is-scrub .vhero__pin { position: sticky; top: 0; height: 100vh; height: 100lvh; min-height: 0; }
.is-scrub .vhero__content > * { grid-area: 1 / 1; align-self: end; will-change: transform, opacity, filter; }
.is-scrub .vhero__end { opacity: 0; visibility: hidden; }
.is-scrub .vhero__hint {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: absolute; left: 50%; bottom: clamp(16px, 4vh, 36px); transform: translateX(-50%);
  font-size: .85rem; font-weight: 600; color: rgba(238, 241, 246, .8); transition: opacity .4s ease; pointer-events: none;
}
.is-scrub .vhero__hint svg { animation: nudge 1.6s ease-in-out infinite; }
.is-scrub .vhero__bar { display: block; position: absolute; inset: auto 0 0 0; height: 2px; background: rgba(255, 255, 255, .14); }
.vhero__bar div { height: 100%; background: var(--sun); transform: scaleX(0); transform-origin: left center; }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(5px); opacity: 1; } }

/* Sun section keeps the old hero's sky */
.hero {
  background:
    radial-gradient(90% 60% at 78% 0%, rgba(255, 140, 66, .16), transparent 60%),
    linear-gradient(180deg, var(--silicon) 0%, var(--night) 72%);
}

/* Sun instrument */
.sun__cap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px clamp(28px, 6vw, 96px); align-items: end; }
.year h3 { font-size: 1.1rem; font-stretch: 108%; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.sun__cap p, .year figcaption p, .sun__axis { font-size: .9rem; color: var(--on-dark-soft); }
.sun__plot, .year__plot { position: relative; margin-top: 28px; }
.sun__plot { height: clamp(190px, 30vw, 380px); margin-top: clamp(40px, 5vw, 72px); margin-bottom: 34px; }
.sun__plot svg, .year__plot svg { width: 100%; height: 100%; overflow: visible; }
.sun__line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sun__line--ge { stroke: var(--sun); }
.sun__line--de { stroke: var(--sky); stroke-dasharray: 7 5; }
.sun__horizon { stroke: var(--busbar); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sun__now { stroke: var(--on-dark); stroke-opacity: .45; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sun__dot {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 6px rgba(255, 140, 66, .18), 0 0 34px 8px rgba(255, 140, 66, .5);
}
.sun__dot--de { background: var(--sky); box-shadow: 0 0 0 6px rgba(141, 184, 255, .18), 0 0 30px 6px rgba(141, 184, 255, .42); }
.sun__dot.is-down { background: var(--night); border: 2px solid currentColor; box-shadow: none; color: var(--sun); }
.sun__dot--de.is-down { color: var(--sky); }
.sun__tag { position: absolute; font-size: .85rem; font-weight: 600; white-space: nowrap; transform: translate(-50%, -100%); padding-bottom: 8px; }
.sun__tag.is-below { transform: translate(-50%, 0); padding: 12px 0 0; }
.sun__tag--ge { color: var(--sun); }
.sun__tag[hidden] { display: none; }
.sun__tag--de { color: var(--sky); }
.sun__span { position: absolute; top: calc(90% + 4px); height: 3px; background: linear-gradient(90deg, var(--sun), var(--sky)); border-radius: 2px; }
.sun__ticks { position: absolute; inset: 100% 0 auto 0; height: 24px; font-size: .8rem; color: var(--on-dark-soft); }
.sun__ticks span { position: absolute; top: 8px; transform: translateX(-50%); white-space: nowrap; }
.sun__ticks span:first-child { transform: none; }
.sun__axis { text-align: right; }
.sim { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; padding: 12px 0; border-block: 1px solid var(--line-dark); font-size: .92rem; }
.sim__state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-width: 6.5em; }
.sim__state i { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(255, 140, 66, .6); }
.sim.is-sim .sim__state i { background: var(--sky); }
.sim label { color: var(--on-dark-soft); }
.sim input { flex: 1 1 220px; min-width: 0; height: 44px; accent-color: var(--sun); cursor: pointer; }
.sim output { min-width: 8.5em; font-weight: 600; font-stretch: 108%; }
.sim [hidden] { display: none; }
.sun__window { margin-top: 28px; font-size: clamp(1.25rem, 2.3vw, 2rem); font-stretch: 112%; font-weight: 500; line-height: 1.25; max-width: 30em; text-wrap: balance; }
.sun__window b { color: var(--sun); font-weight: 600; white-space: nowrap; }

.sun__read { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); margin-top: 36px; }
.read { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 2px solid var(--sun); }
.read--de { border-top: 2px dashed var(--sky); }
.read > div { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.read dt { font-size: .85rem; color: var(--on-dark-soft); }
.read dd { font-size: 1.25rem; font-weight: 500; font-stretch: 108%; }
.read__wide { grid-column: 1 / -1; }
.read__place { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; }
.read__place dt { font-size: 1.5rem; font-weight: 600; font-stretch: 118%; color: var(--on-dark); }
.read__place dd { font-size: .95rem; font-weight: 400; color: var(--on-dark-soft); }

/* Sections */
.section { padding: clamp(72px, 10vw, 152px) 0; }
.section--tight { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.prose { display: grid; gap: 20px; max-width: 36em; }
.light .prose p:not(.big) { color: var(--ink-soft); }
.dark .prose p:not(.big) { color: var(--on-dark-soft); }
.h2--wide { max-width: 16em; }

/* Services as PV modules: cell grid, frame, and a glint that follows the pointer */
.modules { background: linear-gradient(180deg, var(--night), var(--silicon) 60%, var(--night)); }
.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 72px); }
.panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  min-height: 460px; padding: calc(50% + 12px) 28px 28px;
  border: 1px solid rgba(201, 209, 220, .28); border-radius: 6px;
  background-color: #0A1030;
  background-image:
    radial-gradient(440px circle at var(--mx, 75%) var(--my, 0%), rgba(255, 140, 66, .26), transparent 60%),
    repeating-linear-gradient(90deg, rgba(201, 209, 220, .11) 0 1px, transparent 1px 76px),
    repeating-linear-gradient(0deg, rgba(201, 209, 220, .11) 0 1px, transparent 1px 76px),
    linear-gradient(160deg, var(--silicon-2), #0A1030 70%);
}
.panel svg { position: absolute; top: 28px; left: 28px; width: calc(100% - 56px); height: auto; color: var(--busbar); }
.panel .hot { stroke: var(--sun); }
.panel h3 { position: relative; font-size: clamp(1.4rem, 2vw, 1.9rem); font-stretch: 120%; line-height: 1.12; overflow-wrap: anywhere; }
.panel p { position: relative; color: var(--on-dark-soft); }

/* PV cell texture: cell gaps and busbars, kept faint */
.cells {
  background-color: var(--night);
  background-image:
    linear-gradient(180deg, var(--night) 0%, rgba(7, 11, 30, .82) 40%, var(--night) 100%),
    repeating-linear-gradient(90deg, rgba(201, 209, 220, .16) 0 1px, transparent 1px 156px),
    repeating-linear-gradient(0deg, rgba(201, 209, 220, .16) 0 1px, transparent 1px 156px),
    repeating-linear-gradient(0deg, transparent 0 51px, rgba(201, 209, 220, .07) 51px 52px);
}

.year { margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line-dark); padding-top: 24px; }
.year figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 32px; }
.year__plot { height: clamp(200px, 26vw, 340px); margin: 40px 0 44px; }
.year__grid { stroke: var(--line-dark); stroke-width: 1; vector-effect: non-scaling-stroke; }
.year__y { position: absolute; left: 0; transform: translateY(-110%); font-size: .8rem; color: var(--on-dark-soft); }

.table-scroll { overflow-x: auto; margin-top: 12px; }
.facts { width: 100%; border-collapse: collapse; min-width: 520px; }
.facts th, .facts td { padding: 14px 16px 14px 0; text-align: left; border-bottom: 1px solid var(--line-dark); font-weight: 400; }
.facts thead th { font-weight: 600; font-stretch: 112%; font-size: 1.1rem; }
.facts tbody th { color: var(--on-dark-soft); }
.facts tbody td { font-size: 1.15rem; font-weight: 500; }
.key { display: inline-block; width: 22px; height: 0; margin-right: 10px; vertical-align: middle; border-top: 3px solid var(--sun); }
.key--de { border-top: 3px dashed var(--sky); }

/* Group structure: parent and subsidiary, joined by the shareholding */
.group { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line-light); padding-top: 24px; }
.group h3 { font-size: 1.1rem; font-stretch: 108%; }
.group__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 20px; }
.entity { padding: 24px; background: var(--paper); border: 1px solid var(--line-light); border-radius: 6px; }
.entity dt { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 600; font-stretch: 118%; line-height: 1.15; margin-bottom: 10px; }
.entity dd { color: var(--ink-soft); }
.group__link { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 120px; padding: 0 8px; text-align: center; color: var(--ink-soft); font-size: .9rem; border-block: 2px solid var(--sun-deep); align-self: center; }
.group__link strong { font-size: 1.5rem; font-stretch: 118%; color: var(--ink); line-height: 1.6; }
.offices li span { text-align: right; }
.offices a { text-underline-offset: 3px; }

/* Photography and ambient clips */
.band { margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 21 / 9; border-radius: 6px; overflow: hidden; background: var(--silicon); }
.band > *, .shot > img, .shot > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 72px); }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-dark); background: var(--silicon); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 64px 24px 20px; background: linear-gradient(180deg, transparent, rgba(7, 11, 30, .88));
}
.shot strong { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 600; font-stretch: 120%; }
.shot span { font-size: .85rem; color: var(--on-dark-soft); }
.dusk { background: linear-gradient(180deg, rgba(7, 11, 30, .8), rgba(7, 11, 30, .72) 50%, rgba(7, 11, 30, .94)), url("contact.jpg") center / cover no-repeat var(--night); }

/* Process: a real sequence, so it is numbered */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; margin-top: clamp(40px, 5vw, 72px); }
.steps li { counter-increment: step; border-top: 2px solid var(--line-light); padding-top: 18px; transition: border-color .5s var(--ease); }
.steps li.is-on { border-top-color: var(--ink); }
.steps li.is-on::before { color: var(--sun-deep); }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 300; font-stretch: 125%; line-height: 1; margin-bottom: 28px; color: rgba(16, 24, 43, .3); transition: color .5s var(--ease); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-soft); font-size: .98rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .big { margin-top: 24px; color: var(--on-dark-soft); max-width: 28em; }
.offices { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.offices li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.offices span { color: var(--on-dark-soft); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(20px, 3vw, 40px); background: var(--silicon); border: 1px solid var(--line-dark); border-radius: 4px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; color: var(--on-dark);
  background: var(--night); border: 1px solid rgba(201, 209, 220, .4); border-radius: 2px;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #FF9A8A; }
.err { font-size: .9rem; color: #FFB3A6; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__hint, .form__status { font-size: .9rem; color: var(--on-dark-soft); }
.form__status:empty { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--line-dark); padding: 28px 0; font-size: .92rem; color: var(--on-dark-soft); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.footer nav { display: flex; gap: 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Legal stub pages */
.legal { padding: 140px 0 96px; min-height: 80vh; }
.legal h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; font-stretch: 112%; margin: 32px 0 8px; letter-spacing: 0; }
.legal p { max-width: 40em; color: var(--ink-soft); }
.legal mark { background: #FFE7A8; color: var(--ink); padding: 0 4px; }

/* One orchestrated moment: the day curves draw in on load */
@media (prefers-reduced-motion: no-preference) {
  .sun__plot svg { animation: draw 1.9s var(--ease) .2s both; }
  .sun__dot, .sun__plot .sun__tag, .sun__span { opacity: 0; transition: opacity .7s var(--ease); }
  .sun__plot.is-drawn .sun__dot, .sun__plot.is-drawn .sun__tag, .sun__plot.is-drawn .sun__span { opacity: 1; }
  .sim:not(.is-sim) .sim__state i { animation: pulse 2s ease-out infinite; }
  .panel .flow { stroke-dasharray: 5 7; animation: flow 1.2s linear infinite; }
  @keyframes pulse { to { box-shadow: 0 0 0 10px rgba(255, 140, 66, 0); } }
  @keyframes flow { to { stroke-dashoffset: -12; } }
  @keyframes draw { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__menu {
    display: none; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--night); border-bottom: 1px solid var(--line-dark);
  }
  .nav.is-open { background: var(--night); backdrop-filter: none; }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .lang { align-self: flex-start; margin: 20px 0 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .panels { grid-template-columns: minmax(0, 1fr); }
  .panel { min-height: 0; }
}
@media (max-width: 820px) {
  .vhero.is-scrub { height: calc(100vh + 1500px); height: calc(100lvh + 1500px); }
  .duo, .group__row { grid-template-columns: minmax(0, 1fr); }
  .group__link { justify-self: start; flex-direction: row; gap: 8px; align-items: baseline; border-block: 0; border-left: 2px solid var(--sun-deep); padding: 4px 12px; }
  .band { aspect-ratio: 16 / 9; }
  .sun__cap, .split, .contact, .sun__read { grid-template-columns: minmax(0, 1fr); }
  .sun__read { gap: 32px; }
  .sun__ticks span:nth-child(even) { display: none; }
  .sun__axis { text-align: left; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand__name { display: none; }
  .steps, .form { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .nav__menu .btn { width: auto; align-self: flex-start; }
  .sun__tag { font-size: .78rem; }
}
