/* TeX Gyre Heros, GUST Font License (/fonts/GUST-FONT-LICENSE.txt) */
@font-face {
  font-family: 'TeX Gyre Heros';
  src: url('/fonts/texgyreheros-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TeX Gyre Heros';
  src: url('/fonts/texgyreheros-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --sans: 'TeX Gyre Heros', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Colours */
  --page: #FFFFFF;
  --ink: #1B399C;
  --muted: #4D65B2;
  --field: #8292C8;
  --rule: #A4B0D7;
  --line: #DFE3F1;
  --tint: #F6F7FB;
  --tint-2: #EDEFF7;
  --white: #FFFFFF;
  --focus: #1B399C;

  --pop: #1B399C;
  --pop-hover: #142C7A;
  --on-pop: #FFFFFF;

  /* Type */
  --fs-hero: clamp(3rem, 7vw, 6rem);
  --fs-h2: clamp(2.25rem, 4.4vw, 3.5rem);
  --fs-statement: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: 1.375rem;
  --fs-body: 1.1875rem;
  --fs-small: 1.0625rem;
  --fs-label: 0.9375rem;

  --radius: 10px;
  --wrap: 1280px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html { scroll-padding-top: 88px; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; position: relative; }

/* Frame lines */
@media (min-width: 1340px) {
  main::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: var(--wrap);
    transform: translateX(-50%);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    pointer-events: none;
  }
}

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  text-wrap: balance;
}

h1, h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-label);
  text-decoration: none;
}

.skip:focus { top: 1rem; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Intro */

.intro { display: none; }

.word {
  display: inline-flex;
  overflow: hidden;
  padding: 0.08em 0 0.14em;
  white-space: pre;
}

.word span { display: inline-block; }
.word .out { display: none; }

/* Fold timing: --i rise delay, --o drop order, --w width given up */
.word > span:nth-child(1)  { --i: 0; }
.word > span:nth-child(2)  { --i: 1; }
.word > span:nth-child(3)  { --i: 2; }
.word > span:nth-child(4)  { --i: 3;  --o: 0; --w: .62em; }
.word > span:nth-child(5)  { --i: 4;  --o: 1; --w: .4em; }
.word > span:nth-child(6)  { --i: 5;  --o: 2; --w: .57em; }
.word > span:nth-child(7)  { --i: 6;  --o: 3; --w: .3em; }
.word > span:nth-child(8)  { --i: 7;  --o: 4; --w: .62em; }
.word > span:nth-child(9)  { --i: 8; }
.word > span:nth-child(10) { --i: 9; }
.word > span:nth-child(11) { --i: 10; }
.word > span:nth-child(12) { --i: 11; }
.word > span:nth-child(13) { --i: 12; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.navbar {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.mark {
  width: 11px;
  height: 11px;
  background: var(--ink);
  flex-shrink: 0;
}

.wordmark {
  font-weight: 750;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0 auto;
  height: 100%;
}

.nav-item {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 1rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.nav-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Services panel */
.menu {
  display: none;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 100%;
  padding-top: 1px;
}

.has-menu:hover .menu,
.has-menu:focus-within .menu { display: block; }

.has-menu:hover > .nav-link,
.has-menu:focus-within > .nav-link { color: var(--ink); border-bottom-color: var(--ink); }

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--page);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px -24px rgba(27, 57, 156, 0.35);
}

.menu li + li { border-left: 1px solid var(--line); }

.menu a {
  display: block;
  height: 100%;
  padding: 1.25rem 1.25rem 1.4rem;
  text-decoration: none;
}

.menu a:hover { background: var(--tint); }

.menu-name {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.menu-note {
  display: block;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav + .nav-end { margin-left: 0; }

.lang {
  display: flex;
  gap: 0.6rem;
  font-size: var(--fs-label);
}

.lang a,
.lang .current {
  text-decoration: none;
  color: var(--muted);
}

.lang a:hover { color: var(--ink); }
.lang .current { color: var(--ink); font-weight: 650; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  cursor: pointer;
}

.btn-primary,
.btn-nav { background: var(--pop); color: var(--on-pop); }

.btn-primary:hover,
.btn-nav:hover { background: var(--pop-hover); }

.btn-nav { padding: 0.6rem 1.15rem; font-size: 0.9375rem; }

.btn-quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule);
}

.btn-quiet:hover { border-color: var(--ink); }

/* Hero */

.hero { padding: 0; }

.hero-box {
  position: relative;
  padding-top: clamp(4rem, 9vw, 7rem);
}

.hero .wrap { position: relative; z-index: 1; }

.hero-tag {
  font-size: var(--fs-label);
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 0.98;
  max-width: 15ch;
  margin: 0 0 1.75rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.25rem, 1.8vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2.25rem;
}

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

/* Hero art */
.hero-art { margin-top: clamp(2.5rem, 5vw, 4rem); }

.art-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
  aspect-ratio: 16 / 7;
}

.art-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art + .pillars { margin-top: clamp(1.5rem, 3vw, 2rem); }

/* Steps */
.pillars {
  position: relative;
  z-index: 1;
}

.pillars .wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar { padding: 1.75rem 2rem 2rem 0; }
.pillar + .pillar { padding-left: 2rem; border-left: 1px solid var(--line); }

.pillar h3 { margin: 0 0 0.45rem; }

.pillar p {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Sections */

.section { padding: 0; }

.section > .wrap {
  position: relative;
  padding-top: clamp(4.5rem, 9vw, 7rem);
  view-timeline: --section block;
}

.section > .wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}

.section-head {
  max-width: 900px;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.section-head:has(.aside) {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.section-head:has(.aside) .aside {
  margin: 0;
  font-size: var(--fs-body);
}

.section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-label);
  color: var(--muted);
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--pop);
  flex-shrink: 0;
}

.aside {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
  margin: 1.25rem 0 0;
}

.statement-block { padding: 0; }

.statement {
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 30ch;
}

/* Services */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: 1px solid var(--line);
}

.service-name {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.75rem, 3vw, 2.5rem) 0;
  border-right: 1px solid var(--line);
}

.service-name .n {
  font-size: var(--fs-label);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  flex-shrink: 0;
}

.service-name h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.service-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  margin: clamp(1rem, 2vw, 1.5rem) 0 clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service:hover .service-box { border-color: var(--rule); }

.service-desc {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.service-arrow {
  display: block;
  width: 36px;
  height: 20px;
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-result {
  padding: 1rem 1.15rem 1.15rem;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-result p {
  font-size: var(--fs-small);
  font-weight: 550;
  line-height: 1.5;
  color: var(--ink);
  margin: 0.35rem 0 0;
}

.badge {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Diagram */

.diagram {
  --d-ink: var(--ink);
  --d-soft: var(--muted);
  --d-line: var(--rule);
  --d-box: var(--page);
  --d-accent: var(--ink);
  --d-band: var(--ink);
  --d-band-text: var(--white);
  margin: 0;
}

.diagram-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram figcaption {
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 40rem;
}

.d-frame { fill: none; stroke: var(--d-line); stroke-width: 1.5; }
.d-box { fill: var(--d-box); stroke: var(--d-line); stroke-width: 1.5; }
.d-box-accent { fill: var(--d-box); stroke: var(--d-accent); stroke-width: 1.8; }
.d-band { fill: var(--d-band); stroke: var(--d-band); stroke-width: 1.5; }
.d-line { fill: none; stroke: var(--d-line); stroke-width: 1.5; }
.d-line-accent { fill: none; stroke: var(--d-accent); stroke-width: 1.8; }
.d-dash { fill: none; stroke: var(--d-accent); stroke-width: 1.6; stroke-dasharray: 5 6; }
.d-head { fill: var(--d-line); }
.d-head-accent { fill: var(--d-accent); }

.diagram text { font-family: var(--sans); }
.d-title { font-size: 17px; font-weight: 700; fill: var(--d-ink); }
.d-step { font-size: 16px; font-weight: 650; fill: var(--d-ink); }
.d-band-text { font-size: 18px; font-weight: 650; fill: var(--d-band-text); }
.d-note { font-size: 14px; fill: var(--d-soft); }
.d-sub { font-size: 15px; fill: var(--d-soft); }

/* Background */

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.body p {
  max-width: 40rem;
  margin: 0 0 1.1rem;
}

.body p:last-child { margin-bottom: 0; }

.fact {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}

.fact .date {
  display: block;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0.75rem 0 1rem;
}

.fact p {
  font-size: var(--fs-small);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.fact .source {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Contact */

#kontakt,
#contact { padding-bottom: clamp(5rem, 10vw, 8rem); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-layout h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  margin: 0 0 1.25rem;
}

.contact-intro {
  max-width: 26rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.details div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}

.details dt {
  font-size: var(--fs-label);
  color: var(--muted);
  padding-top: 0.1rem;
}

.details dd { margin: 0; }

.details a,
.consent a,
.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.details a:hover,
.consent a:hover,
.prose a:hover { border-bottom-color: var(--ink); }

.form-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hp { position: absolute; left: -9999px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.req { color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--fs-small);
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--focus);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 1.6rem;
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--ink);
}

.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

.req-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  overflow: hidden;
}

.footer-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-cols .claim {
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin: 0;
}

.footer-cols h2 {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.9;
}

.footer-cols a,
.footer-bottom a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.footer-cols a:hover,
.footer-bottom a:hover { border-bottom-color: var(--ink); }

.footer-mark {
  font-weight: 750;
  font-size: clamp(4rem, 16vw, 14rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin: 0 0 1.75rem;
  white-space: nowrap;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Subpages */

.page { padding: clamp(4rem, 8vw, 6rem) 0; }

.page h1 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  margin: 0 0 1.25rem;
}

.thanks p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 32rem;
  margin: 0 0 2rem;
}

.prose { max-width: 720px; }

.prose .updated {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-size: var(--fs-h3);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-of-type { margin-top: 0; }

.prose p,
.prose li {
  line-height: 1.65;
  margin: 0 0 0.9rem;
}

.prose ul { padding-left: 1.1rem; margin: 0 0 0.9rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { font-weight: 650; }

/* Mobile menu */

.mnav { display: none; }

.mnav summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.mnav summary::-webkit-details-marker { display: none; }

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.bars { position: relative; }
.bars::before,
.bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }

.mnav[open] .bars { background: transparent; }
.mnav[open] .bars::before { top: 0; transform: rotate(45deg); }
.mnav[open] .bars::after { top: 0; transform: rotate(-45deg); }

.mnav-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  padding: 0.5rem var(--gutter) 1rem;
  background: var(--page);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(27, 57, 156, 0.35);
}

.mnav-link {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.mnav-lang {
  border-bottom: none;
  font-weight: 400;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 1100px) {
  .service-box { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .service-arrow { transform: rotate(90deg); margin-left: 0.5rem; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .mnav { display: block; }
  .split,
  .contact-layout,
  .section-head:has(.aside) { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service-name { padding: 1.5rem 0 0; border-right: none; }
  .service-box { margin: 1rem 0 1.5rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .pillars .wrap,
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .pillar,
  .pillar + .pillar { padding: 1.4rem 0; border-left: none; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .diagram svg { min-width: 680px; }
}

@media (max-width: 600px) {
  .lang { display: none; }
  .art-frame { aspect-ratio: 4 / 3; }
  .form-panel,
  .fact { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .navbar { gap: 0.75rem; }
  .btn-nav { padding: 0.55rem 0.85rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .details div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .nav-link, .lang a, .btn, .menu a, .details a, .consent a, .prose a,
  .footer-cols a, .footer-bottom a, .field input, .field textarea, .service-box {
    transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
  }

  .service-name h3 { transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  .service:hover .service-name h3 { transform: translateX(6px); }

  /* Intro fold */
  .intro {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--page);
    color: var(--ink);
    pointer-events: none;
    animation: curtain 900ms cubic-bezier(0.76, 0, 0.24, 1) 1900ms forwards;
  }

  .intro .word {
    font-weight: 750;
    font-size: clamp(3rem, 13vw, 11rem);
    line-height: 1;
    letter-spacing: -0.05em;
    animation: word-lift 900ms cubic-bezier(0.76, 0, 0.24, 1) 1900ms forwards;
  }

  .word span {
    animation: fold-rise 650ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 35ms) both;
  }

  .word .out {
    display: inline-block;
    max-width: var(--w);
    animation:
      fold-rise 650ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 35ms) both,
      fold-drop 380ms cubic-bezier(0.55, 0, 0.75, 0) calc(950ms + var(--o) * 50ms) forwards,
      fold-collapse 560ms cubic-bezier(0.76, 0, 0.24, 1) 1200ms forwards;
  }

  .reveal   { animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 2250ms both; }
  .reveal-2 { animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 2380ms both; }
  .reveal-3 { animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 2500ms both; }
  .reveal-4 { animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 2620ms both; }
  .page .reveal, .page .reveal-2 { animation-delay: 0ms; }

  @keyframes fold-rise {
    from { transform: translateY(110%); }
    to   { transform: translateY(0); }
  }
  @keyframes fold-drop {
    to { transform: translateY(110%); opacity: 0; }
  }
  @keyframes fold-collapse {
    to { max-width: 0; }
  }
  @keyframes curtain {
    to { transform: translateY(-100%); visibility: hidden; }
  }
  @keyframes word-lift {
    to { transform: translateY(-30vh); opacity: 0; }
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
  }

  /* Scroll-linked motion */
  @supports (animation-timeline: view()) {
    .rv {
      animation: rv cubic-bezier(0.2, 0.7, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    /* Mountain on scroll */
    .art-frame {
      animation: berg-frame linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
      will-change: transform, clip-path;
    }

    .art-frame img {
      animation: berg-image linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    @keyframes berg-frame {
      0%   { transform: scale(0.62) translateY(14%); clip-path: inset(0 round 48px); }
      45%  { transform: scale(1) translateY(0); clip-path: inset(0 round var(--radius)); }
      70%  { transform: scale(1) translateY(0); clip-path: inset(0 round var(--radius)); }
      100% { transform: scale(0.8) translateY(-8%); clip-path: inset(0 round 32px); }
    }

    @keyframes berg-image {
      from { transform: scale(1.25) translateY(8%); }
      to   { transform: scale(1.05) translateY(-6%); }
    }

    @keyframes rv {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: none; }
    }

    .section-head h2,
    .statement,
    .contact-layout h2 {
      animation: focus-in cubic-bezier(0.2, 0.7, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    @keyframes focus-in {
      from { opacity: 0; transform: translateY(18px); filter: blur(10px); }
      to   { opacity: 1; transform: none; filter: blur(0); }
    }

    .section > .wrap::before {
      animation: draw cubic-bezier(0.2, 0.7, 0.2, 1) both;
      animation-timeline: --section;
      animation-range: entry 0% entry 35%;
    }

    @keyframes draw {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }
}
