/* sight-E site (redesign 2026). One stylesheet for every page. */
/* ── Tokens: the investor deck + the client portal (one company, one look) ── */
:root {
  --bg:       #15181F;
  --bg-2:     #1A1E26;
  --panel:    #1F242B;
  --raised:   #2A303A;
  --line:     #343C48;
  --text:     #F2F4F1;
  --text-2:   #C3C8D0;
  --muted:    #8F96A3;
  --mint:     #7DFAC2;
  --mint-dim: #7DFAC233;
  --lilac:    #B796FF;
  --amber:    #FBBF24;
  --radius:   16px;
  --wrap:     1120px;
  --f-head:   'Space Grotesk', 'Inter', sans-serif;
  --f-body:   'Inter', system-ui, sans-serif;
  --f-mono:   'DM Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); color: var(--text); margin: 0; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.25; }
p  { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kick { font: 500 12px/1 var(--f-mono); color: var(--mint); letter-spacing: 0.12em; text-transform: uppercase; }
.lead { font-size: 18px; color: var(--text-2); max-width: 680px; }
.num  { font-family: var(--f-head); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; color: var(--text); font-weight: 600; }
.src  { font: 400 11px/1.5 var(--f-mono); color: var(--muted); }
section { padding: 112px 0; position: relative; }
.sec-head { display: grid; gap: 14px; margin-bottom: 48px; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }
/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--mint); color: #12151A; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -6px #7DFAC277; }
.btn-ghost { border-color: #ffffff40; color: var(--text); background: #ffffff0d; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #ffffff1a; }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .2s ease, border-color .2s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: #15181FE6; backdrop-filter: blur(10px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav img { height: 40px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 14px; color: var(--text-2); }
.nav ul a:hover { color: var(--mint); }
.nav ul a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.only-mobile { display: none; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ── Hero (Figma: aerial photo, mint headline, mono subline) ── */
.hero {
  min-height: 100vh; padding: 140px 0 72px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    linear-gradient(180deg, #15181F99 0%, #15181F33 30%, #15181FCC 72%, var(--bg) 100%),
    linear-gradient(90deg, #15181FE6 0%, #15181F66 55%, transparent 100%),
    url('../../assets/img/hero_aerial.jpg') center 40% / cover no-repeat;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .sub { font: 400 17px/1.6 var(--f-mono); color: var(--text-2); max-width: 600px; margin-top: 22px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.proof {
  margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.proof > div { background: #15181FD9; backdrop-filter: blur(8px); padding: 22px 24px; }
.proof .num { font-size: 36px; line-height: 1; }
.proof .num small { font-size: 18px; color: var(--muted); font-weight: 500; }
.proof p { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── Why now (Figma: "Key market insights" glass panel with outlined cards) ── */
.why::after {
  content: ""; position: absolute; right: 0; bottom: -380px; width: 440px; height: 860px; pointer-events: none;
  background: url('../../assets/img/wave_pattern_1.png') 110px center / 560px auto no-repeat; opacity: .45;
}
.why .wrap { position: relative; z-index: 1; }
#how .wrap { position: relative; z-index: 1; }
.glass {
  background: linear-gradient(180deg, #ffffff0a, #ffffff04); border: 1px solid #ffffff14; border-radius: 24px;
  padding: 48px; backdrop-filter: blur(4px); box-shadow: 0 30px 80px -40px #000;
}
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.insight { border: 1px solid #7DFAC255; border-radius: 12px; padding: 24px; background: #15181F80; }
.insight .num { font-size: 46px; line-height: 1; color: var(--mint); }
.insight .from { font: 400 13px/1.4 var(--f-mono); color: var(--muted); margin: 10px 0 12px; }
.insight p { font-size: 15px; }
.why .statement { font: 500 clamp(22px, 2.6vw, 30px)/1.3 var(--f-head); color: var(--text); margin-top: 40px; max-width: 760px; }
.why .statement em { font-style: normal; color: var(--mint); }

/* ── How it works: Decision AI / Agentic AI / People ── */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer {
  background: linear-gradient(180deg, #262C35, var(--panel)); border-radius: var(--radius); padding: 30px;
  box-shadow: inset 0 1px 0 #ffffff12, 0 18px 40px -24px #000; display: flex; flex-direction: column; gap: 14px;
}
.layer .tag { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mint);
              border: 1px solid var(--mint-dim); border-radius: 999px; padding: 6px 10px; align-self: flex-start; }
.layer .num { font-size: 40px; line-height: 1; margin-top: auto; padding-top: 22px; border-top: 1px solid #ffffff14; }
.layer .cap { font-size: 13px; color: var(--muted); margin-top: -6px; }
.layer.human .tag { color: var(--text-2); border-color: #ffffff26; }

/* ── Assets (Figma: photo cards with text over the image) ── */
.assets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-card {
  position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end;
  background: var(--panel) center / cover no-repeat; box-shadow: 0 18px 40px -24px #000;
}
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #15181FF2 88%); }
.photo-card .body { position: relative; z-index: 1; padding: 26px; display: grid; gap: 8px; }
.photo-card p { font-size: 15px; }
.photo-card .markets { font: 400 12px/1.6 var(--f-mono); color: var(--mint); margin-top: 6px; }
.photo-card.text-only { background: linear-gradient(160deg, #1F2A2A, var(--panel)); align-items: stretch; }
.photo-card.text-only::after { display: none; }
.photo-card.text-only .body { align-content: space-between; }
.photo-card.text-only .num { font-size: 64px; line-height: 1; color: var(--mint); }

/* ── Business model ── */
.model { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.fee { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.fee > div { background: var(--panel); padding: 26px; }
.fee .num { font-size: 40px; line-height: 1; }
.fee p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.nolist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.nolist li { display: flex; gap: 12px; align-items: baseline; color: var(--text); font-size: 17px; }
.nolist li::before { content: "✕"; color: var(--mint); font-size: 13px; }


/* ── Band (Figma: aerial field strip with statement + CTA) ── */
.band {
  padding: 120px 0;
  background: linear-gradient(90deg, #15181FF0 0%, #15181FB3 50%, #15181F33 100%), url('../../assets/img/band_fields.jpg') center / cover no-repeat;
}
.band p { font: 500 clamp(22px, 2.6vw, 30px)/1.35 var(--f-head); color: var(--text); max-width: 640px; }
.band .btn { margin-top: 30px; }

/* ── Partners ── */
.partner-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  background: linear-gradient(120deg, #7DFAC214, var(--panel) 60%); border: 1px solid #7DFAC233;
  border-radius: 24px; padding: 48px; box-shadow: 0 30px 80px -40px #000;
}
.partner-cta .btn { flex-shrink: 0; }
.logos-kick { text-align: center; margin-top: 72px; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; margin-top: 28px; }
.logos img { height: 30px; width: auto; max-width: 150px; object-fit: contain; opacity: .8; filter: brightness(1.35); transition: opacity .15s ease; }
.logos img:hover { opacity: 1; }

/* ── Team (Figma: title left, photo cards right, mono roles) ── */
.team { background: var(--bg) url('../../assets/img/wave_pattern_1.png') left -300px bottom -200px / 700px auto no-repeat; }
.team-layout { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.team-intro { display: grid; gap: 16px; align-content: start; position: sticky; top: 100px; align-self: start; }
.badge { display: inline-flex; gap: 8px; align-items: center; font: 400 12px/1.4 var(--f-mono); color: var(--amber);
         border: 1px solid #FBBF2440; border-radius: 10px; padding: 8px 12px; justify-self: start; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person {
  background: linear-gradient(180deg, #262C35, var(--panel)); border-radius: var(--radius); padding: 24px; text-align: center;
  box-shadow: inset 0 1px 0 #ffffff10; text-decoration: none; transition: transform .15s ease;
}
.person:hover { transform: translateY(-2px); }
.person img, .person .initials { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; filter: grayscale(1); }
.person:hover img { filter: grayscale(0); }
.person .initials { display: grid; place-items: center; background: var(--raised); font: 600 30px/1 var(--f-head); color: var(--text-2); filter: none; }
.person h3 { font-size: 17px; }
.person p { font: 400 12px/1.5 var(--f-mono); color: var(--muted); margin-top: 6px; }

/* ── Contact (Figma: glass card, text left, details right) ── */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; padding: 0; }
.contact-card > div { padding: 48px; }
.contact-card .side { background: #ffffff08; border-left: 1px solid #ffffff14; display: grid; gap: 18px; align-content: center; }
.contact-line { display: grid; gap: 4px; }
.contact-line .kick { color: var(--muted); }
.contact-line a, .contact-line span:not(.kick) { color: var(--text); text-decoration: none; font-size: 16px; }
.contact-line a:hover { color: var(--mint); }

/* ── Footer ── */
footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer img { height: 40px; width: auto; }
footer h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a, footer button.link { color: var(--text-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
footer a:hover, footer button.link:hover { color: var(--mint); }
footer .legal { margin-top: 40px; color: var(--muted); font-size: 12px; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ── */
@media (max-width: 980px) {
  section { padding: 80px 0; }
  #nav-links, .nav .btn { display: none; }
  .nav ul#nav-links { margin-left: 0; }
  .lang-switch { margin-left: auto; }
  .burger { display: block; }
  .nav.open { background: var(--bg); }
  .only-mobile { display: block; }
  .nav.open #nav-links { display: grid; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); padding: 12px 24px 24px; gap: 16px; border-bottom: 1px solid var(--line); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .insights, .layers, .assets-grid { grid-template-columns: 1fr 1fr; }
  .model, .team-layout, .contact-card { grid-template-columns: 1fr; }
  .team-intro { position: static; }
  .contact-card .side { border-left: 0; border-top: 1px solid #ffffff14; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .glass { padding: 32px; }
  .partner-cta { padding: 32px; }
  .why::after { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 120px; }
  .proof > div { padding: 18px 16px; }
  .proof .num { font-size: 24px; white-space: nowrap; }
  .proof .num small { font-size: 14px; }
  .lead { font-size: 16px; }
  .insights, .layers, .assets-grid, .fee { grid-template-columns: 1fr; }
  .partner-cta { flex-direction: column; align-items: flex-start; padding: 24px; gap: 24px; }
  .people { grid-template-columns: 1fr 1fr; }
  .person { padding: 18px 12px; }
  .person img, .person .initials { width: 80px; height: 80px; }
  .glass, .contact-card > div { padding: 24px; }
        .photo-card { min-height: 340px; }
  footer .cols { grid-template-columns: 1fr; }
}
/* ── Text link under a block ── */
.more { margin-top: 28px; }
.more a { color: var(--mint); text-decoration: none; font-weight: 600; }
.more a:hover { text-decoration: underline; }

/* ══ Sub-page: plant owners ══ */
.page-hero {
  padding: 170px 0 88px;
  background:
    linear-gradient(180deg, #15181FB3 0%, #15181FE6 60%, var(--bg) 100%),
    url('../../assets/img/band_fields.jpg') center / cover no-repeat;
}
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; max-width: 860px; margin-top: 18px; }
.page-hero h1 em { font-style: normal; color: var(--mint); }
.page-hero .sub { font: 400 17px/1.6 var(--f-mono); color: var(--text-2); max-width: 640px; margin-top: 22px; }
.page-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.setups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.setup {
  background: linear-gradient(180deg, #262C35, var(--panel)); border-radius: var(--radius); padding: 30px;
  box-shadow: inset 0 1px 0 #ffffff12, 0 18px 40px -24px #000; display: grid; gap: 12px; align-content: start;
}
.setup .tag { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mint);
              border: 1px solid var(--mint-dim); border-radius: 999px; padding: 6px 10px; justify-self: start; }
.setup .markets { font: 400 12px/1.6 var(--f-mono); color: var(--mint); }
.setup a { color: var(--mint); text-decoration: none; font-weight: 600; font-size: 14px; }
.setup a:hover { text-decoration: underline; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 2px; background: var(--mint); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .copy { display: grid; gap: 18px; }

/* flow diagram: sources -> one connection -> markets (stacks on phones) */
.diagram-card { background: #ffffff06; border: 1px solid #ffffff14; border-radius: 24px; padding: 28px; }
.diagram { display: grid; grid-template-columns: 1fr 28px 1.1fr 28px 1.1fr; align-items: center; }
.d-col { display: grid; gap: 12px; }
.node { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px; text-align: center;
        font: 600 15px/1.3 var(--f-head); color: var(--text); }
.node small { display: block; font: 400 11px/1.5 var(--f-mono); color: var(--muted); margin-top: 4px; }
.node.hub { border-color: #7DFAC266; background: #7DFAC20d; }
.d-link { height: 2px; background: linear-gradient(90deg, var(--line), var(--mint)); }
.engine-chip {
  margin-top: 14px; border: 1px dashed #7DFAC266; border-radius: 12px; padding: 12px 16px; text-align: center;
  font: 400 12px/1.5 var(--f-mono); color: var(--mint);
}

/* industrial site: everything behind one meter */
.meter { text-align: center; font: 400 12px/1.5 var(--f-mono); color: var(--text-2); border: 1px solid var(--line);
         border-radius: 12px; padding: 10px; background: var(--panel); }
.site-box { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 12px; }
.site-box > .kick { color: var(--muted); display: block; margin-bottom: 14px; }
.site-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.reqs { display: grid; gap: 18px; margin-top: 28px; }
.req h3 { font-size: 16px; }
.req p { font-size: 15px; margin-top: 4px; }
.numbered { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.numbered li { counter-increment: s; position: relative; padding-left: 56px; min-height: 38px; }
.numbered li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
                       display: grid; place-items: center; font: 600 16px/1 var(--f-head); color: #12151A; background: var(--mint); }
.numbered h3 { font-size: 17px; }
.numbered p { font-size: 15px; margin-top: 4px; }

@media (max-width: 980px) {
  .setups, .split, .two-col { grid-template-columns: 1fr; }
  .split, .two-col { gap: 36px; }
  .split .copy { order: -1; }
  .page-hero { padding: 140px 0 64px; }
}
@media (max-width: 620px) {
  .page-hero { padding: 120px 0 48px; }
  .page-hero .sub, .hero .sub { font-size: 15px; }
  .setup, .diagram-card { padding: 22px; }
  .diagram { grid-template-columns: 1fr; }
  .d-link { width: 2px; height: 22px; justify-self: center; background: linear-gradient(180deg, var(--line), var(--mint)); }
}

/* ══ Legal text pages ══ */
.legal-page { padding: 140px 0 96px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; margin-bottom: 28px; }
.prose h2 { font-size: 22px; line-height: 1.25; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; display: grid; gap: 6px; }
.prose a { color: var(--mint); overflow-wrap: anywhere; }
@media (max-width: 620px) { .legal-page { padding: 110px 0 64px; } }

/* ══ Partner request form ══ */
.form-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.form-layout .copy { display: grid; gap: 0; position: sticky; top: 100px; }
.lead-form { padding: 36px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font: 600 14px/1.3 var(--f-body); color: var(--text); padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 400; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text-2); font-size: 14px; line-height: 1.3; transition: border-color .15s ease, background .15s ease;
}
.choice:hover span { border-color: #7DFAC266; }
.choice input:checked + span { border-color: var(--mint); background: #7DFAC21a; color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"], .lead-form select, .lead-form textarea {
  width: 100%; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  padding: 11px 13px; font: 400 15px/1.4 var(--f-body);
}
.lead-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--mint); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: #7DFAC2; flex-shrink: 0; }
.consent a { color: var(--mint); }
.invalid > label, .invalid > legend, .consent.invalid span { color: #F87171; }
.invalid input, .invalid select, .invalid textarea { border-color: #F87171; }
.invalid .choice span { border-color: #F8717188; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { justify-self: start; }
.lead-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--mint); }
.form-status.error { color: #F87171; }
@media (max-width: 980px) {
  .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-layout .copy { position: static; }
}
@media (max-width: 620px) {
  .lead-form { padding: 22px; }
  .row2 { grid-template-columns: 1fr; }
  .lead-form .btn { justify-self: stretch; justify-content: center; }
}

/* ══ Language switcher ══ */
.nav .wrap { gap: 16px; }
.nav ul { margin-left: auto; }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; font: 500 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: " ▾"; color: var(--muted); }
.lang-switch[open] summary, .lang-switch summary:hover { border-color: #7DFAC266; color: var(--text); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px;
  display: grid !important; gap: 0; min-width: 170px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 40px -16px #000;
}
.lang-switch li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.lang-switch li a:hover { background: var(--raised); color: var(--text); }
.lang-switch li a[aria-current] { color: var(--mint); }

/* longer words in some languages: break headings cleanly instead of overflowing */
h1, h2, h3, .num { overflow-wrap: break-word; hyphens: auto; }
:lang(de) .btn, :lang(pl) .btn, :lang(cs) .btn, :lang(hu) .btn { white-space: normal; text-align: center; }

/* Bulgarian: Space Grotesk and DM Mono have no Cyrillic */
:lang(bg) { --f-head: 'Inter', system-ui, sans-serif; --f-mono: 'IBM Plex Mono', ui-monospace, monospace; }

/* ══ Long words (de, hu, pl, cs, …) on narrow screens ══ */
/* grid/flex children may shrink below their longest word */
.split > *, .two-col > *, .form-layout > *, .setups > *, .layers > *, .insights > *, .assets-grid > *,
.people > *, .site-grid > *, .diagram > *, .d-col > *, .partner-cta > *, .contact-card > *, .model > * { min-width: 0; }
/* hyphenate where the browser can; break inside a word only as a last resort */
h1, h2, h3, .num, .node, .kick, .tag, .choice span, .meter, .engine-chip, .btn { overflow-wrap: anywhere; }
.photo-card.text-only .num { font-size: clamp(34px, 9vw, 64px); }
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(30px, 9.4vw, 40px); }
  .page-hero h1 { font-size: clamp(28px, 8.6vw, 36px); }
  h2 { font-size: clamp(24px, 7.4vw, 30px); }
  .site-grid { grid-template-columns: 1fr; }
  .kick { letter-spacing: .06em; }
}
