/* ==========================================================================
   Money Hamster: site styles
   Palette and type are taken from the existing brand (ink, paper, brass,
   slate, sage; Fraunces / Inter / IBM Plex Mono) and refined.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-opsz-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-opsz-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext-opsz-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Design tokens ---------- */

:root {
  /* Brand palette (existing) */
  --ink: #14181C;
  --ink-deep: #0D1114;
  --ink-raised: #1A1F23;
  --slate: #2B3A3F;
  --slate-dark: #20262A;
  --slate-card: #283136;
  --paper: #EFF1EC;
  --paper-2: #E5E8E1;
  --surface: #F8F9F6;
  --brass: #9C7A3C;
  --brass-text: #85672D;
  --gold: #DFC38E;
  --gold-light: #F1E2BC;
  --gold-logo: #B79762;
  --sage: #6E7B70;

  /* Text */
  --text: #14181C;
  --text-2: #46514E;
  --text-3: #66706C;
  --on-dark: #F2F3EF;
  --on-dark-2: rgba(242, 243, 239, 0.68);
  --on-dark-3: rgba(242, 243, 239, 0.54);

  /* Lines */
  --line: rgba(20, 24, 28, 0.09);
  --line-strong: rgba(20, 24, 28, 0.16);
  --line-dark: rgba(242, 243, 239, 0.1);
  --line-dark-strong: rgba(242, 243, 239, 0.2);

  /* Gradients */
  --gold-gradient: linear-gradient(100deg, #F4E6C3 0%, #E3C893 34%, #CDAE74 66%, #A7854A 100%);
  --gold-gradient-ink: linear-gradient(100deg, #B4904F 0%, #9C7A3C 45%, #7A5C26 100%);
  --button-gold: linear-gradient(180deg, #ECD6A6 0%, #DFC38E 48%, #CFAF72 100%);

  /* Shape and depth */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 1px rgba(20, 24, 28, 0.03), 0 2px 6px rgba(20, 24, 28, 0.04), 0 24px 48px -28px rgba(20, 24, 28, 0.22);
  --shadow-float: 0 2px 6px rgba(20, 24, 28, 0.06), 0 30px 70px -24px rgba(20, 24, 28, 0.38);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --header-h: 68px;
  --section-space: clamp(104px, 15vh, 176px);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", "Inter", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset and base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--ink-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--text);
  background: var(--ink-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(223, 195, 142, 0.42);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.section-light :focus-visible {
  outline-color: var(--brass);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

/* Visitors with a saved non-German language: hide until translated. */
.i18n-pending body {
  opacity: 0;
}

body {
  transition: opacity 0.35s var(--ease-soft);
}

body.is-switching main,
body.is-switching .site-footer,
body.is-switching .primary-nav,
body.is-switching .header-cta {
  opacity: 0.001;
  transition: opacity 0.18s var(--ease-soft);
}

main,
.site-footer,
.primary-nav,
.header-cta {
  transition: opacity 0.4s var(--ease-soft);
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

.section-light {
  background: var(--paper);
  color: var(--text);
}

.section-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section-head {
  max-width: 50rem;
  margin-bottom: clamp(48px, 7vh, 88px);
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .lead {
  margin-top: 22px;
}

.section-head-center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Typography ---------- */

.display-1,
.display-2,
.display-3 {
  font-weight: 640;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.display-1 {
  font-size: clamp(3rem, 8.4vw, 8.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.display-2 {
  font-size: clamp(2.25rem, 5.1vw, 4.65rem);
  line-height: 1.03;
}

.display-3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
}

html[lang="ru"] .display-1,
html[lang="ru"] .display-2 {
  letter-spacing: -0.03em;
}

.lead {
  max-width: 40em;
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--text-2);
  text-wrap: pretty;
}

.section-dark .lead,
.statement .lead {
  color: var(--on-dark-2);
}

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 420;
  letter-spacing: -0.025em;
  background: var(--gold-gradient);
  background-size: 140% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Room for the italic overhang so the gradient clip does not cut glyphs. */
  padding: 0 0.1em 0.04em 0.02em;
  margin: 0 -0.08em -0.04em -0.02em;
}

.section-light .accent {
  background-image: var(--gold-gradient-ink);
}

html[lang="ru"] .accent {
  font-family: var(--font-sans);
  font-weight: 560;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}

.eyebrow-gold,
.section-dark .eyebrow {
  color: var(--gold);
}

.pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(223, 195, 142, 0.45);
  background: rgba(223, 195, 142, 0.06);
}

.fineprint {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--on-dark-3);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -0.012em;
  white-space: nowrap;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}

.btn .icon {
  transition: transform 0.55s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 58px;
  padding: 0 30px;
  font-size: 1.04rem;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  color: #17191A;
  background: var(--button-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(122, 92, 38, 0.25), 0 12px 32px -14px rgba(223, 195, 142, 0.75);
}

/* Light sweep on hover */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}

.btn-gold:hover::after {
  transform: translateX(120%);
}

.btn-gold:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(122, 92, 38, 0.25), 0 18px 40px -14px rgba(223, 195, 142, 0.9);
}

.btn-glass {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-dark {
  color: var(--paper);
  background: var(--ink);
}

.btn-dark:hover {
  background: var(--slate);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--on-dark);
  transition: transform 0.7s var(--ease-out), color 0.45s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 20, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  opacity: 0;
  transition: opacity 0.45s ease, background-color 0.45s ease, box-shadow 0.45s ease;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header[data-theme="light"] {
  color: var(--ink);
}

.site-header[data-theme="light"]::before {
  background: rgba(239, 241, 236, 0.76);
  box-shadow: inset 0 -1px 0 rgba(20, 24, 28, 0.08);
}

.site-header.is-hidden {
  /* Extra offset so the CTA glow does not peek in at the top edge */
  transform: translateY(calc(-100% - 48px));
}

.menu-open .site-header {
  color: var(--on-dark);
  transform: none;
}

.menu-open .site-header::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: inherit;
  --word-hamster: var(--gold-logo);
}

.brand-mark {
  width: 30px;
  height: 31px;
  color: var(--gold-logo);
  transition: transform 0.8s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-word {
  width: 152px;
  height: 19px;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.74;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.primary-nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.site-header[data-theme="light"] .primary-nav a:hover {
  background: rgba(20, 24, 28, 0.05);
}

.primary-nav a.is-active {
  opacity: 1;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.4s var(--ease-out);
}

.site-header[data-theme="light"] .primary-nav a::after {
  background: var(--brass);
}

.primary-nav a.is-active::after {
  transform: scale(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

/* Language switch */
.lang {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.84;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.lang-toggle:hover,
.lang.is-open .lang-toggle {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.site-header[data-theme="light"] .lang-toggle:hover,
.site-header[data-theme="light"] .lang.is-open .lang-toggle {
  background: rgba(20, 24, 28, 0.06);
}

.lang-toggle .icon {
  width: 16px;
  height: 16px;
}

.lang-toggle .icon-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease-out);
}

.lang.is-open .icon-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: 18px;
  color: var(--on-dark);
  background: rgba(24, 29, 33, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}

.lang.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  text-align: left;
  transition: background-color 0.2s ease;
}

.lang-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-menu .icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  opacity: 0;
}

.lang-menu [aria-checked="true"] .icon {
  opacity: 1;
}

.header-cta {
  padding: 0 18px;
}

/* Burger */
.menu-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 25px;
}

.menu-open .menu-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: rgba(13, 17, 20, 0.97);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}

.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease-out);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-nav a {
  padding: 6px 0;
  font-size: clamp(1.9rem, 8.4vw, 3rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), color 0.2s ease;
}

.mobile-menu-nav a:hover {
  color: var(--gold);
}

.menu-open .mobile-menu-nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(80ms + var(--i) * 45ms);
}

.mobile-menu-footer {
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out) 0.3s, transform 0.8s var(--ease-out) 0.3s;
}

.menu-open .mobile-menu-footer {
  opacity: 1;
  transform: none;
}

.lang-pills {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  justify-self: start;
}

.lang-pills button {
  min-width: 46px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.lang-pills button:hover {
  color: var(--on-dark);
}

.lang-pills button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink-deep);
  color: var(--on-dark);
  --hero-shift: 0;
  --hero-out: 0;
}

.hero-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

/* Scroll-driven version (JavaScript on, motion allowed) */
.js .hero {
  height: 230vh;
}

.js .hero-stage {
  position: sticky;
  top: 0;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 52% at 74% 40%, rgba(223, 195, 142, 0.13), transparent 70%),
    radial-gradient(60% 50% at 50% 115%, rgba(156, 122, 60, 0.12), transparent 70%),
    radial-gradient(80% 80% at 0% 0%, rgba(43, 58, 63, 0.45), transparent 60%);
  pointer-events: none;
}

/* Subtle film grain for depth */
.hero-glow::after {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
}

.hero-canvas.is-ready {
  opacity: 1;
}

.hero-fallback {
  display: none;
  position: absolute;
  right: 6%;
  top: 14%;
  width: min(46vw, 520px);
  opacity: 0.9;
}

.no-webgl .hero-fallback {
  display: block;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(13, 17, 20, 0.92) 0%, rgba(13, 17, 20, 0.6) 26%, transparent 52%),
    radial-gradient(70% 60% at 12% 92%, rgba(13, 17, 20, 0.7), transparent 70%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(104px, 15vh, 168px);
  width: 100%;
  max-width: calc(1480px);
  margin: 0 auto;
  padding: 0 var(--gutter);
  transform: translate3d(0, calc(var(--hero-out) * -60px), 0);
  opacity: calc(1 - var(--hero-out));
}

.hero-title {
  max-width: min(17ch, 50vw);
  font-size: clamp(2.6rem, min(5.3vw, 9.6vh), 6.3rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.048em;
  color: #fff;
}

.hero-line {
  display: block;
  padding-bottom: 0.06em;
}

.hero-line-1 {
  opacity: calc(1 - var(--hero-shift) * 0.66);
  transition: opacity 0.2s linear;
}

.hero-line-2 .accent {
  background-position: calc(100% - var(--hero-shift) * 100%) 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4.2vh, 42px);
}

.hero-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter) 30px;
  font-size: 0.8rem;
  color: var(--on-dark-3);
  opacity: calc(1 - var(--hero-out) * 1.4);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags li {
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scroll-cue 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

.hero-place {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hero intro choreography (runs once on load) */
.js .hero-intro {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(10px);
}

.js .hero-line .hero-intro {
  display: inline-block;
}

.js.is-loaded .hero-intro {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out), filter 1.2s var(--ease-out);
  transition-delay: calc(280ms + var(--d, 0) * 110ms);
}

/* ==========================================================================
   STATEMENT + KEY FACTS
   ========================================================================== */

.statement {
  position: relative;
  padding: clamp(110px, 18vh, 220px) 0 clamp(96px, 14vh, 170px);
  background: var(--ink-deep);
  color: var(--on-dark);
}

.statement-text {
  max-width: 21em;
  font-size: clamp(1.75rem, 3.75vw, 3.45rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.034em;
  text-wrap: pretty;
}

.statement-text .word {
  opacity: 0.16;
  transition: opacity 0.35s linear;
}

.statement-text .word.is-lit {
  opacity: 1;
}

.no-scroll-scenes .statement-text .word {
  opacity: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line-dark);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 14px;
  padding: 32px 28px 0 0;
}

.stat + .stat {
  padding-left: 28px;
  border-left: 1px solid var(--line-dark);
}

.stat dt {
  max-width: 17em;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--on-dark-2);
}

.stat-value {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(2.6rem, 4.6vw, 4.3rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat-unit {
  font-size: 0.5em;
  letter-spacing: -0.02em;
}

.stat-link {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  letter-spacing: -0.035em;
  padding-bottom: 0.08em;
  transition: opacity 0.3s ease;
}

.stat-link:hover {
  opacity: 0.8;
}

.stat-sep {
  margin: 0 0.3em;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  opacity: 0.55;
}

/* ==========================================================================
   AUDIENCE WINDOW (skyline)
   ========================================================================== */

.window {
  position: relative;
  background: var(--ink-deep);
  color: var(--on-dark);
  /* Without JavaScript the image is simply shown full bleed. */
  --inset-y: 0%;
  --inset-x: 0%;
  --radius: 0px;
  --scale: 1;
  --shade: 1;
  --reveal: 1;
}

.window-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.js .window {
  height: 220vh;
  --inset-y: 16%;
  --inset-x: 12%;
  --radius: 34px;
  --scale: 1.22;
  --shade: 0;
  --reveal: 0;
}

.js .window-stage {
  position: sticky;
  top: 0;
}

.window-media {
  position: absolute;
  inset: 0;
  clip-path: inset(var(--inset-y) var(--inset-x) round var(--radius));
  will-change: clip-path;
}

.window-media picture,
.window-media img {
  width: 100%;
  height: 100%;
}

.window-media img {
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(var(--scale));
  transform-origin: 50% 45%;
  will-change: transform;
}

.window-shade {
  position: absolute;
  inset: 0;
  opacity: var(--shade);
  background:
    linear-gradient(0deg, rgba(13, 17, 20, 0.92) 0%, rgba(13, 17, 20, 0.55) 38%, rgba(13, 17, 20, 0.1) 70%),
    linear-gradient(90deg, rgba(13, 17, 20, 0.6) 0%, transparent 62%);
}

.window-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(48px, 10vh, 120px);
  opacity: var(--reveal);
  transform: translate3d(0, calc((1 - var(--reveal)) * 48px), 0);
  pointer-events: none;
}

html:not(.js) .window-content,
.window.is-revealed .window-content {
  pointer-events: auto;
}

.window-title {
  max-width: 13em;
}

.window-lead {
  max-width: 34em;
  margin-top: 18px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--on-dark-2);
}

.audience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 920px;
  margin-top: clamp(24px, 4vh, 40px);
}

.audience-label {
  margin-right: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--gold);
}

html[lang="ru"] .audience-label {
  font-family: var(--font-sans);
  font-weight: 500;
}

.chip {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

html:not(.js) .chip,
.window.is-revealed .chip {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms), 0s, 0s, 0s;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.16);
}

.chip.is-selected {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 10px 30px -10px rgba(223, 195, 142, 0.8);
}

/* ==========================================================================
   FOCUS AREAS (bento)
   ========================================================================== */

.services {
  padding-top: clamp(120px, 17vh, 200px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 470px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(20, 24, 28, 0.05);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
  --mx: 50%;
  --my: 30%;
}

.bento-card:nth-child(1) { grid-column: span 5; }
.bento-card:nth-child(2) { grid-column: span 7; }
.bento-card:nth-child(3) { grid-column: span 7; }
.bento-card:nth-child(4) { grid-column: span 5; }
.bento-card:nth-child(5) { grid-column: span 6; }
.bento-card:nth-child(6) { grid-column: span 6; }

/* Cursor spotlight */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(223, 195, 142, 0.22), transparent 46%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bento-card:hover::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(156, 122, 60, 0.18);
  }
}

.bento-dark {
  color: var(--on-dark);
  background: linear-gradient(160deg, #1D2428 0%, #14181C 60%);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bento-dark::before {
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(223, 195, 142, 0.16), transparent 46%);
}

.bento-gold {
  background: linear-gradient(155deg, #F6EBD2 0%, #EEDDB7 55%, #E4CC9C 100%);
}

.bento-visual {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 28px 28px 0;
}

.viz {
  width: 100%;
  max-width: 360px;
  height: auto;
  overflow: visible;
}

.viz-growth {
  max-width: 520px;
}

.bento-body {
  padding: 8px 36px 34px;
}

.bento-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
}

.bento-dark .bento-index {
  color: var(--gold);
}

.bento-card h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.55rem, 2.1vw, 2.05rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.bento-card p:not(.bento-index) {
  max-width: 30em;
  color: var(--text-2);
}

.bento-dark p:not(.bento-index) {
  color: var(--on-dark-2);
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.bento-dark .bento-link {
  color: var(--gold);
}

.bento-link span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}

.bento-link:hover span {
  background-size: 100% 1px;
}

.bento-link .icon {
  transition: transform 0.5s var(--ease-out);
}

.bento-link:hover .icon {
  transform: translateX(4px);
}

/* --- Visual: shield --- */
.shield-rings circle {
  stroke: rgba(156, 122, 60, 0.4);
  stroke-width: 1.2;
  transform-origin: 160px 120px;
  opacity: 0;
}

.is-in .shield-rings circle {
  animation: ring-pulse 3.6s var(--ease-out) infinite;
}

.is-in .shield-rings circle:nth-child(2) { animation-delay: 1.2s; }
.is-in .shield-rings circle:nth-child(3) { animation-delay: 2.4s; }

@keyframes ring-pulse {
  0% { transform: scale(0.8); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: scale(1.75); opacity: 0; }
}

.shield-halo {
  fill: rgba(223, 195, 142, 0.16);
  transform-origin: 160px 120px;
  transform: scale(0.85);
  transition: transform 0.9s var(--ease-out), fill 0.6s ease;
}

.bento-card:hover .shield-halo {
  transform: scale(1);
  fill: rgba(223, 195, 142, 0.26);
}

.shield-body {
  fill: url(#grad-shield);
  stroke: #9C7A3C;
  stroke-width: 1.5;
}

.shield-shine {
  fill: rgba(255, 255, 255, 0.28);
}

.shield-check {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--ease-out) 0.5s;
}

.is-in .shield-check {
  stroke-dashoffset: 0;
}

/* --- Visual: growth chart --- */
.growth-grid line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.growth-bar {
  fill: rgba(223, 195, 142, 0.16);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.02);
  transition: transform 1.1s var(--ease-out), fill 0.4s ease;
  transition-delay: calc(var(--i) * 55ms);
}

.is-in .growth-bar {
  transform: none;
}

.bento-card:hover .growth-bar {
  fill: rgba(223, 195, 142, 0.26);
}

.growth-area {
  fill: url(#grad-area);
  opacity: 0;
  transition: opacity 1.2s ease 0.9s;
}

.is-in .growth-area {
  opacity: 1;
}

.growth-line {
  fill: none;
  stroke: url(#grad-gold-h);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease-in-out) 0.35s;
}

.is-in .growth-line {
  stroke-dashoffset: 0;
}

.growth-dot {
  fill: #F6E9C8;
  opacity: 0;
  transition: opacity 0.4s ease 2s;
}

.growth-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.is-in .growth-dot {
  opacity: 1;
}

.is-in .growth-pulse {
  animation: dot-pulse 2.4s var(--ease-out) 2.1s infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* --- Visual: rings --- */
.ring-track {
  fill: none;
  stroke: rgba(20, 24, 28, 0.07);
  stroke-width: 15;
}

.ring {
  fill: none;
  stroke-width: 15;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.ring-1 { stroke: #C9A86E; }
.ring-2 { stroke: #9C7A3C; transition-delay: 0.15s; }
.ring-3 { stroke: #E5CD9A; transition-delay: 0.3s; }

.is-in .ring {
  stroke-dashoffset: calc(1 - var(--fill));
}

.bento-card:hover .ring {
  stroke-dashoffset: 0;
}

/* --- Visual: house --- */
.house-ground,
.house-outline,
.house-chimney,
.house-door {
  fill: none;
  stroke: #9C7A3C;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-in-out);
}

.house-ground { stroke: rgba(20, 24, 28, 0.18); }
.house-chimney { transition-delay: 0.5s; }
.house-door { transition-delay: 0.7s; }

.is-in .house-ground,
.is-in .house-outline,
.is-in .house-chimney,
.is-in .house-door {
  stroke-dashoffset: 0;
}

.house-window {
  fill: rgba(156, 122, 60, 0.08);
  stroke: #9C7A3C;
  stroke-width: 1.6;
  transition: fill 0.7s ease, filter 0.7s ease;
  transition-delay: calc(var(--d, 0) * 0.15s);
}

.is-in .house-window {
  fill: rgba(223, 195, 142, 0.35);
  transition-delay: calc(1.2s + var(--d, 0) * 0.2s);
}

.bento-card:hover .house-window {
  fill: url(#grad-window);
  filter: drop-shadow(0 0 10px rgba(255, 216, 140, 0.9));
  transition-delay: calc(var(--d, 0) * 0.12s);
}

.house-sun {
  fill: rgba(223, 195, 142, 0.5);
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(40px) scale(0.6);
  opacity: 0;
  transition: transform 1.4s var(--ease-out) 1s, opacity 1s ease 1s;
}

.is-in .house-sun {
  transform: none;
  opacity: 1;
}

/* --- Visual: checklist --- */
.check-doc {
  fill: #fff;
  stroke: rgba(20, 24, 28, 0.08);
  filter: drop-shadow(0 18px 24px rgba(20, 24, 28, 0.08));
}

.check-row circle {
  fill: rgba(156, 122, 60, 0.08);
  stroke: rgba(156, 122, 60, 0.5);
  stroke-width: 1.4;
  transition: fill 0.5s ease, stroke 0.5s ease;
  transition-delay: calc(0.4s + var(--i) * 0.45s);
}

.check-row line {
  stroke: rgba(20, 24, 28, 0.12);
  stroke-width: 7;
  stroke-linecap: round;
}

.check-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s var(--ease-out);
  transition-delay: calc(0.55s + var(--i) * 0.45s);
}

.is-in .check-row circle {
  fill: #9C7A3C;
  stroke: #9C7A3C;
}

.is-in .check-mark {
  stroke-dashoffset: 0;
}

.check-lens {
  fill: rgba(255, 255, 255, 0.35);
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  transition: transform 1.2s var(--ease-out);
}

.check-lens circle {
  -webkit-backdrop-filter: blur(2px);
}

.bento-card:hover .check-lens {
  transform: translate(-58px, -48px);
}

/* --- Visual: graduation --- */
.grad-path {
  fill: none;
  stroke: rgba(122, 92, 38, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
}

.is-in .grad-path {
  animation: dash-flow 1.6s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -22; }
}

.grad-star path {
  fill: #9C7A3C;
  transform-origin: 0 0;
  animation: star-spin 8s linear infinite;
}

@keyframes star-spin {
  to { transform: rotate(360deg); }
}

.cap-top {
  fill: var(--ink);
}

.cap-base {
  fill: #2B3A3F;
}

.cap-tassel {
  fill: none;
  stroke: #C9A86E;
  stroke-width: 2.4;
  stroke-linecap: round;
  transform-origin: 158px 104px;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cap-tassel circle {
  fill: #C9A86E;
  stroke: none;
}

.grad-cap {
  transform-origin: 158px 118px;
  transition: transform 1.2s var(--ease-out);
}

.bento-card:hover .grad-cap {
  transform: translateY(-10px) rotate(-6deg);
}

.bento-card:hover .cap-tassel {
  transform: rotate(16deg);
}

/* ==========================================================================
   CALCULATOR
   ========================================================================== */

.calculator {
  padding-top: 0;
}

.calc-head {
  max-width: 54rem;
}

.calc-panel {
  position: relative;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 36px;
  color: var(--on-dark);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(223, 195, 142, 0.1), transparent 60%),
    linear-gradient(165deg, #1C2327 0%, #14181C 55%, #101417 100%);
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.calc-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.calc-controls {
  display: grid;
  gap: 30px;
}

.range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.range-head label {
  font-size: 0.95rem;
  color: var(--on-dark-2);
}

.range-head output {
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.range {
  --fill: 50%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}

.range:focus-visible {
  outline-offset: 6px;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #B79762 0%, #DFC38E var(--fill), rgba(255, 255, 255, 0.12) var(--fill));
}

.range::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(223, 195, 142, 0.35);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.range:hover::-webkit-slider-thumb {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(223, 195, 142, 0.18);
}

.range:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.range::-moz-range-progress {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #B79762, #DFC38E);
}

.range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.calc-results {
  padding: 4px 0 0;
}

.calc-total-label {
  font-size: 0.95rem;
  color: var(--on-dark-2);
}

.calc-total {
  margin: 6px 0 26px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.calc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.calc-split dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--on-dark-2);
}

.calc-split dd {
  margin-top: 4px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.swatch-paid {
  background: #5D6B6E;
}

.swatch-growth {
  background: var(--gold);
}

.calc-wait {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(223, 195, 142, 0.07);
  box-shadow: inset 0 0 0 1px rgba(223, 195, 142, 0.16);
}

.calc-wait[hidden] {
  display: none;
}

.calc-split .calc-wait dt {
  display: grid;
  gap: 3px;
}

.calc-wait-title {
  font-weight: 600;
  color: var(--on-dark);
}

.calc-wait-hint {
  max-width: 34em;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--on-dark-3);
}

.calc-wait dd {
  margin: 0;
  flex-shrink: 0;
  color: var(--gold);
}

.calc-chart {
  position: relative;
  height: clamp(220px, 30vw, 340px);
  margin-top: clamp(32px, 4vw, 52px);
  touch-action: pan-y;
}

.calc-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.calc-svg .axis-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.calc-svg .axis-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgba(242, 243, 239, 0.42);
  letter-spacing: 0.04em;
}

.calc-svg .area-paid {
  fill: rgba(93, 107, 110, 0.55);
}

.calc-svg .area-growth {
  fill: url(#grad-area);
}

.calc-svg .line-total {
  fill: none;
  stroke: url(#grad-gold-h);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.calc-svg .line-paid {
  fill: none;
  stroke: rgba(200, 210, 210, 0.45);
  stroke-width: 1.5;
}

.calc-svg .scrub-line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.calc-svg .scrub-dot {
  fill: #F6E9C8;
  stroke: var(--ink);
  stroke-width: 3;
}

.calc-svg .scrub {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.calc-chart.is-scrubbing .scrub {
  opacity: 1;
}

.calc-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--on-dark);
  background: rgba(28, 34, 38, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.calc-chart.is-scrubbing .calc-tooltip {
  opacity: 1;
}

.calc-tooltip strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.calc-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-variant-numeric: tabular-nums;
}

.calc-tooltip span b {
  font-weight: 600;
}

.calc-footer {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-dark);
}

.calc-footer .btn {
  flex-shrink: 0;
}

.calc-footer .fineprint {
  max-width: 62em;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */

.process {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(43, 58, 63, 0.55), transparent 70%),
    var(--ink);
  overflow: hidden;
}

.steps-wrap {
  position: relative;
  --progress: 0;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.steps-track {
  position: absolute;
  top: 28px;
  left: 28px;
  right: calc((100% - 48px) / 3 - 28px);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.steps-track i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #9C7A3C, #DFC38E 60%, #F4E6C3);
  transform: scaleX(var(--progress));
  transform-origin: left center;
  box-shadow: 0 0 18px rgba(223, 195, 142, 0.7);
}

.step {
  position: relative;
}

.step-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--on-dark-2);
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: color 0.6s ease, background 0.6s ease, box-shadow 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.step.is-active .step-node {
  color: var(--ink);
  background: var(--button-gold);
  box-shadow: 0 0 0 8px rgba(223, 195, 142, 0.1), 0 0 44px rgba(223, 195, 142, 0.45);
  transform: scale(1.04);
}

.step-card {
  margin-top: 28px;
  padding: clamp(26px, 2.6vw, 36px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  opacity: 0.42;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), box-shadow 0.9s ease;
}

.step.is-active .step-card {
  opacity: 1;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(223, 195, 142, 0.18), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.no-scroll-scenes .step-card {
  opacity: 1;
  transform: none;
}

.step-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--on-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-icon .step-accent {
  stroke: var(--gold);
}

.step-label {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.step-card h3 {
  margin: 10px 0 10px;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.step-card p:last-child {
  color: var(--on-dark-2);
}

.process-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: clamp(64px, 9vh, 104px);
  text-align: center;
}

.process-cta p {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   ABOUT + VALUES
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.about-copy .lead {
  margin-top: 28px;
  color: var(--text);
}

.about-p2 {
  margin-top: 18px;
  max-width: 36em;
  color: var(--text-2);
}

.values {
  position: relative;
  padding-top: 6px;
}

.values-label {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.value {
  position: relative;
  border-bottom: 1px solid var(--line-strong);
}

.value-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  width: 100%;
  padding: 26px 0;
  text-align: left;
}

.value-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass-text);
}

.value-title {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text-3);
  transition: color 0.5s ease;
}

.value.is-active .value-title,
.value-head:hover .value-title {
  color: var(--text);
}

.value-icon {
  width: 22px;
  height: 22px;
  color: var(--text-3);
  transition: transform 0.6s var(--ease-out), color 0.3s ease;
}

.value.is-active .value-icon {
  transform: rotate(45deg);
  color: var(--brass);
}

.value-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease-out);
}

.value-body > div {
  overflow: hidden;
}

.value.is-active .value-body {
  grid-template-rows: 1fr;
}

.value-body p {
  max-width: 32em;
  padding: 0 0 28px 52px;
  font-size: 1.06rem;
  color: var(--text-2);
}

.value-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.value-progress i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #9C7A3C, #DFC38E);
  transform: scaleX(0);
  transform-origin: left center;
}

.value.is-active .value-progress i {
  animation: value-progress 7s linear forwards;
}

.values.is-paused .value-progress i,
.values:not(.is-running) .value-progress i {
  animation-play-state: paused;
}

@keyframes value-progress {
  to { transform: scaleX(1); }
}

/* ==========================================================================
   TEAM
   ========================================================================== */

.team {
  padding-top: clamp(40px, 6vh, 80px);
}

.team-title {
  text-transform: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.person {
  position: relative;
  aspect-ratio: 4 / 5.4;
  border-radius: 30px;
  color: var(--on-dark);
  background:
    radial-gradient(90% 60% at 50% 18%, rgba(223, 195, 142, 0.2), transparent 70%),
    linear-gradient(180deg, #33424A 0%, #24303A 48%, #182024 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
}

.person.is-tilting {
  transition: transform 0.15s linear, box-shadow 0.8s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .person:hover {
    box-shadow: var(--shadow-float);
  }
}

.person-media {
  position: absolute;
  inset: 0;
}

.person-glow {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 195, 142, 0.34), rgba(223, 195, 142, 0) 62%);
  transform: translate3d(calc(-50% + var(--gx, 0px)), var(--gy, 0px), 0);
  transition: transform 0.8s var(--ease-out);
}

.person-media img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.04);
  transform-origin: 50% 100%;
  transition: transform 0.9s var(--ease-out), filter 0.6s ease;
}

.person:hover .person-media img {
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.08);
}

.person-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 90px 24px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 20, 0.55) 45%, rgba(13, 17, 20, 0.9) 100%);
  transition: opacity 0.5s ease;
}

.person-info h3 {
  font-size: 1.3rem;
  font-weight: 640;
  letter-spacing: -0.03em;
}

.person-role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.person-toggle {
  position: absolute;
  right: 16px;
  bottom: 20px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.6s var(--ease-out), background-color 0.3s ease;
}

.person-toggle .icon {
  width: 18px;
  height: 18px;
}

.person-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.person.is-open .person-toggle {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--ink);
}

.person-bio {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 22px 22px 70px;
  border-radius: 22px;
  background: rgba(16, 20, 23, 0.74);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out), visibility 0s linear 0.7s;
}

.person-bio p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: rgba(242, 243, 239, 0.88);
}

.person-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
}

.person.is-open .person-bio {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out);
}

.person.is-open .person-info {
  opacity: 0;
}

/* ==========================================================================
   LOCATION
   ========================================================================== */

.location {
  background:
    radial-gradient(50% 50% at 15% 30%, rgba(43, 58, 63, 0.5), transparent 70%),
    var(--ink);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 20px;
}

.map-card {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #1B2226 0%, #12171A 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.map-schematic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-street {
  stroke: rgba(242, 243, 239, 0.14);
  stroke-width: 14;
  stroke-linecap: round;
  fill: none;
}

.map-street-minor {
  stroke-width: 8;
  stroke: rgba(242, 243, 239, 0.08);
}

.map-street-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: rgba(242, 243, 239, 0.36);
}

.map-route {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 0.5 11;
}

.is-in .map-route {
  animation: route-flow 1.4s linear infinite;
}

@keyframes route-flow {
  to { stroke-dashoffset: 23; }
}

.map-landmark rect {
  fill: rgba(242, 243, 239, 0.06);
  stroke: rgba(242, 243, 239, 0.14);
}

.map-landmark text,
.map-station text,
.map-station-label text,
.map-walk text,
.map-pin-label text {
  font-family: var(--font-sans);
  text-anchor: middle;
}

.map-landmark text {
  font-size: 12px;
  font-weight: 600;
  fill: rgba(242, 243, 239, 0.6);
}

.map-station rect {
  fill: #fff;
}

.map-station text {
  font-size: 17px;
  font-weight: 750;
  fill: #1F5DA8;
}

.map-station-ring {
  fill: rgba(255, 255, 255, 0.08);
}

.map-station-label > text {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  fill: var(--on-dark);
}

.map-station-label g text {
  font-size: 10px;
  font-weight: 700;
  fill: #fff;
}

.u1 { fill: #7DAD4C; background: #7DAD4C; }
.u2 { fill: #DA421E; background: #DA421E; }
.u3 { fill: #16683D; background: #16683D; }

.map-walk rect {
  fill: rgba(223, 195, 142, 0.14);
  stroke: rgba(223, 195, 142, 0.35);
}

.map-walk text {
  font-size: 11px;
  font-weight: 600;
  fill: var(--gold);
  dominant-baseline: middle;
}

.map-pulse {
  fill: rgba(223, 195, 142, 0.35);
  transform-box: fill-box;
  transform-origin: center;
  animation: pin-pulse 2.4s var(--ease-out) infinite;
}

@keyframes pin-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

.map-pin-dot {
  fill: var(--gold);
  stroke: var(--ink);
  stroke-width: 3;
}

.map-pin-mark {
  color: var(--ink);
}

.map-pin-label rect {
  fill: rgba(242, 243, 239, 0.96);
}

.map-pin-label text {
  text-anchor: start;
}

.map-pin-title {
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}

.map-pin-sub {
  font-size: 12px;
  fill: var(--text-2);
}

.map-consent {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 12px 12px 12px;
  border-radius: 20px;
  background: rgba(13, 17, 20, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.map-consent p {
  flex: 1;
  min-width: 180px;
  font-size: 0.8rem;
  color: var(--on-dark-3);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.map-card.is-loaded iframe {
  opacity: 1;
}

.map-card.is-loaded .map-schematic,
.map-card.is-loaded .map-consent {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.place-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.place-street {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 640;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.place-city {
  margin-top: 6px;
  font-size: 1.1rem;
  color: var(--on-dark-2);
}

.place-row {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.place-row h3 {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.place-row p {
  color: var(--on-dark-2);
}

.u-lines {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.u-lines .u {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 750;
  color: #fff;
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 32px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.faq .section-head {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item:first-child {
  border-top: 1px solid var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}

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

.faq-item summary:hover {
  color: var(--brass-text);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 0.6s var(--ease-out), background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.6px;
  margin: -0.8px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.6s var(--ease-out);
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open]:not(.is-closing) .faq-icon {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
  transform: rotate(180deg);
}

.faq-item[open]:not(.is-closing) .faq-icon::after {
  transform: rotate(0deg);
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  max-width: 40em;
  padding: 0 60px 28px 0;
  font-size: 1.04rem;
  color: var(--text-2);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(223, 195, 142, 0.08), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(43, 58, 63, 0.55), transparent 70%),
    var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.contact-title {
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.contact-info .lead {
  margin-top: 26px;
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--on-dark-2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.open-status i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8A9490;
}

.open-status.is-open i {
  background: #5BD08A;
}

.open-status.is-open i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #5BD08A;
  animation: status-ping 2s var(--ease-out) infinite;
}

@keyframes status-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.contact-list {
  margin-top: 36px;
  border-top: 1px solid var(--line-dark);
}

.contact-list li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.contact-label {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.contact-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.contact-value a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out), color 0.3s ease;
}

.contact-value a:hover {
  color: var(--gold);
  background-size: 100% 1px;
}

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--on-dark-3);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.copy-btn:hover {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.08);
}

.copy-btn .icon {
  width: 16px;
  height: 16px;
}

/* Form card */
.form-card {
  padding: clamp(26px, 3.4vw, 46px);
  border-radius: 34px;
  color: var(--text);
  background: var(--paper);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 26px 18px 10px;
  border: 0;
  border-radius: 16px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.field input:hover,
.field textarea:hover {
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.3);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--brass), 0 0 0 5px rgba(156, 122, 60, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
  color: transparent;
  transition: color 0.2s ease;
}

.field input:focus::placeholder,
.field textarea:focus::placeholder {
  color: var(--text-3);
}

.field label {
  position: absolute;
  left: 19px;
  top: 18px;
  font-size: 1rem;
  color: var(--text-3);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.35s var(--ease-out), color 0.25s ease;
}

.field input:focus + label,
.field textarea:focus + label,
.field.is-filled label {
  transform: translateY(-10px) scale(0.76);
  color: var(--brass-text);
}

.field.has-error input,
.field.has-error textarea {
  box-shadow: inset 0 0 0 1.5px #B4453A;
}

.field-error {
  display: none;
  margin-top: 6px;
  padding-left: 4px;
  font-size: 0.82rem;
  color: #A53B30;
}

.field.has-error .field-error {
  display: block;
}

.field-chips {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.field-chips legend {
  margin-bottom: 10px;
  padding: 0 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.optional {
  font-size: 0.8rem;
  color: var(--text-3);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-radio {
  position: relative;
  cursor: pointer;
}

.chip-radio input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.chip-radio span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.4s var(--ease-out);
}

.chip-radio:hover span {
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, 0.32);
}

.chip-radio input:checked + span {
  color: var(--paper);
  background: var(--ink);
  box-shadow: none;
}

.chip-radio input:focus-visible + span {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.chip-radio input:active + span {
  transform: scale(0.96);
}

.btn-submit {
  justify-self: start;
  margin-top: 8px;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(23, 25, 26, 0.25);
  border-top-color: #17191A;
  animation: spin 0.8s linear infinite;
}

.btn-submit.is-loading .btn-spinner {
  display: block;
}

.btn-submit.is-loading .icon {
  display: none;
}

.btn-submit[disabled] {
  cursor: progress;
  opacity: 0.85;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-3);
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  color: #7E2E25;
  background: rgba(180, 69, 58, 0.08);
  box-shadow: inset 0 0 0 1px rgba(180, 69, 58, 0.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  position: relative;
  padding: clamp(80px, 11vh, 120px) 0 36px;
  color: var(--on-dark);
  background: var(--ink-deep);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 18em;
  color: var(--on-dark-2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
}

.footer-col h2 {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.footer-col a,
.footer-col p {
  color: var(--on-dark-2);
  overflow-wrap: anywhere;
}

.footer-col a {
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-wordmark {
  width: 100%;
  height: auto;
  aspect-ratio: 12017 / 1890;
  margin: clamp(64px, 10vh, 110px) 0 clamp(30px, 4vh, 44px);
  --word-money: rgba(242, 243, 239, 0.08);
  --word-hamster: rgba(223, 195, 142, 0.2);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.84rem;
  color: var(--on-dark-3);
}

.lang-pills-footer button {
  height: 32px;
  min-width: 42px;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-dark-2);
  transition: color 0.25s ease;
}

.to-top:hover {
  color: var(--gold);
}

.to-top .icon {
  transition: transform 0.5s var(--ease-out);
}

.to-top:hover .icon {
  transform: translateY(-3px);
}

/* ==========================================================================
   DIALOG + TOAST
   ========================================================================== */

.thanks {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 32px;
  color: var(--text);
  background: var(--paper);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.thanks::backdrop {
  background: rgba(13, 17, 20, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.thanks[open] {
  animation: dialog-in 0.6s var(--ease-out);
}

.thanks[open]::backdrop {
  animation: fade-in 0.4s ease;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

.thanks-card {
  padding: clamp(36px, 6vw, 60px) clamp(24px, 6vw, 56px) clamp(32px, 5vw, 48px);
  text-align: center;
}

.thanks-check {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
}

.thanks-check circle {
  fill: rgba(223, 195, 142, 0.25);
  stroke: var(--brass);
  stroke-width: 2.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.thanks-check path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.thanks[open] .thanks-check circle {
  animation: draw 0.9s var(--ease-out) 0.2s forwards;
}

.thanks[open] .thanks-check path {
  animation: draw 0.6s var(--ease-out) 0.8s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.thanks h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.thanks p {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--text-2);
}

.thanks .btn {
  margin-top: 32px;
}

.thanks .btn:hover .icon {
  transform: translateX(-3px);
}

.thanks .thanks-urgent {
  margin-top: 34px;
  font-size: 0.9rem;
  color: var(--text-3);
}

.thanks-phone {
  display: inline-block;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 650;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 250;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* The bento and team cards also animate their transform on hover. */
.js .bento-card[data-reveal].is-in,
.js .person[data-reveal].is-in {
  transition: opacity 1.1s var(--ease-out), transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
}

.js .person[data-reveal].is-in {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.js .person[data-reveal].is-in.is-tilting {
  transition: opacity 1.1s var(--ease-out), transform 0.15s linear, box-shadow 0.8s var(--ease-out);
}

/* Word-by-word heading reveal */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.split-word > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--wi) * 38ms);
}

.is-in .split-word > span,
.is-in.split-word > span {
  transform: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1240px) {
  .primary-nav a {
    padding: 9px 9px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1160px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .header-actions {
    margin-left: auto;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--line-dark);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 980px) {
  .bento-card:nth-child(n) {
    grid-column: span 6;
  }

  .bento-card:nth-child(2),
  .bento-card:nth-child(3) {
    grid-column: span 12;
  }

  .calc-top,
  .about-grid,
  .contact-grid,
  .faq-grid,
  .location-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq .section-head {
    position: static;
  }

  .calc-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-card {
    min-height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .js .hero {
    height: 200vh;
  }

  .hero-content {
    bottom: clamp(84px, 12vh, 120px);
  }

  .hero-title {
    max-width: 17ch;
    font-size: clamp(2.35rem, 10.6vw, 3.4rem);
    letter-spacing: -0.045em;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-bottom: 20px;
  }

  .hero-tags,
  .hero-place {
    display: none;
  }

  .js .window {
    height: 190vh;
    --inset-y: 12%;
    --inset-x: 5%;
  }

  .audience-label {
    width: 100%;
  }

  .chip {
    height: 38px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .bento {
    gap: 14px;
  }

  .bento-card:nth-child(n) {
    grid-column: span 12;
    min-height: 0;
  }

  .bento-visual {
    min-height: 210px;
  }

  .bento-body {
    padding: 4px 26px 28px;
  }

  .calc-panel {
    border-radius: 28px;
  }

  .calc-split {
    grid-template-columns: 1fr;
  }

  .calc-wait {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-left: 0;
  }

  .steps-track {
    top: 28px;
    bottom: 60px;
    left: 27px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .steps-track i {
    transform: scaleY(var(--progress));
    transform-origin: center top;
  }

  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
  }

  .step-card {
    margin-top: 0;
  }

  .value-head {
    grid-template-columns: 40px 1fr auto;
  }

  .value-body p {
    padding-left: 40px;
  }

  .team-grid {
    display: flex;
    gap: 14px;
    max-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 6px var(--gutter) 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }

  .team-grid::-webkit-scrollbar {
    display: none;
  }

  .person {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .map-card {
    min-height: 380px;
  }

  .map-schematic {
    height: calc(100% - 96px);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .faq-answer p {
    padding-right: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-word {
    width: 128px;
    height: 16px;
  }

  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat + .stat,
  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 2) {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line-dark);
  }
}

/* Short landscape screens */
@media (max-height: 640px) and (min-width: 761px) {
  .hero-title {
    font-size: clamp(2.2rem, 8.8vh, 4rem);
  }

  .hero-footer {
    display: none;
  }

  .hero-content {
    bottom: 48px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js .hero,
  .js .window {
    height: auto;
  }

  .js .hero-stage,
  .js .window-stage {
    position: relative;
    height: 100svh;
  }

  .js .window {
    --inset-y: 0%;
    --inset-x: 0%;
    --radius: 0px;
    --scale: 1;
    --shade: 1;
    --reveal: 1;
  }

  .window-content {
    pointer-events: auto;
  }

  .chip {
    opacity: 1;
    transform: none;
  }

  .js .hero-intro,
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .split-word > span {
    transform: none;
  }

  .statement-text .word {
    opacity: 1;
  }

  .step-card {
    opacity: 1;
    transform: none;
  }

  .steps-track i {
    transform: none;
  }
}

/* hero.js reads the headline position without intro/scroll transforms */
.hero.is-measuring .hero-intro,
.hero.is-measuring .hero-content {
  transform: none !important;
  transition: none !important;
}

/* Long labels (RU / TR) must never push the layout wider than the screen */
.btn-submit {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 760px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .btn-submit {
    width: 100%;
  }
}

.contact-value-stack {
  display: grid;
  gap: 2px;
}

.map-walk text {
  dominant-baseline: central;
}

/* Mobile route list (replaces the wide schematic on small screens) */
.route-steps {
  display: none;
}

@media (max-width: 760px) {
  .map-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 26px 20px 20px;
  }

  .map-schematic {
    display: none;
  }

  .route-steps {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 4px 0 0;
  }

  .route-steps::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 24px;
    bottom: 24px;
    border-left: 2px dotted rgba(223, 195, 142, 0.7);
  }

  .route-stop {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .route-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    justify-self: center;
  }

  .route-dot-station {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1F5DA8;
    background: #fff;
  }

  .route-dot-small {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: inset 0 0 0 2px var(--gold);
  }

  .route-dot-pin {
    border-radius: 50%;
    color: var(--ink);
    background: var(--gold);
    box-shadow: 0 0 0 8px rgba(223, 195, 142, 0.16), 0 0 30px rgba(223, 195, 142, 0.5);
  }

  .route-dot-pin .icon {
    width: 20px;
    height: 20px;
  }

  .route-text {
    display: grid;
    gap: 6px;
    color: var(--on-dark-2);
  }

  .route-text strong {
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--on-dark);
  }

  .route-text .u-lines {
    margin: 0;
  }

  .route-pill {
    justify-self: start;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(223, 195, 142, 0.12);
    box-shadow: inset 0 0 0 1px rgba(223, 195, 142, 0.3);
  }

  .route-muted {
    font-size: 0.95rem;
  }

  .map-consent {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .map-card.is-loaded {
    min-height: 420px;
  }

  .btn-submit {
    font-size: 0.95rem;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 1160px) {
  .hero-tags,
  .hero-place {
    display: none;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ==========================================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ========================================================================== */

.legal-page {
  --muted: var(--text-3);
  background: var(--paper);
  color: var(--text);
}

.legal-page .site-header {
  color: var(--ink);
}

.legal-page .site-header::before {
  opacity: 1;
}

.legal-page .site-header.has-shadow::before {
  box-shadow: inset 0 -1px 0 rgba(20, 24, 28, 0.08), 0 12px 30px -22px rgba(20, 24, 28, 0.45);
}

.legal-page .header-actions {
  margin-left: auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.legal-back:hover {
  opacity: 1;
  background: rgba(20, 24, 28, 0.05);
}

.legal-back .icon {
  width: 16px;
  height: 16px;
}

.legal-main {
  padding: calc(var(--header-h) + clamp(56px, 9vh, 104px)) 0 clamp(80px, 12vh, 140px);
}

.legal-hero-block {
  max-width: 54rem;
  padding-bottom: clamp(36px, 5vh, 56px);
  border-bottom: 1px solid var(--line-strong);
}

.legal-hero-block h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.048em;
  overflow-wrap: anywhere;
}

.legal-hero-block p {
  max-width: 40em;
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-2);
}

.legal-columns {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding-top: 48px;
}

.legal-toc-label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.legal-toc ol {
  display: grid;
  gap: 2px;
}

.legal-toc a {
  display: block;
  padding: 8px 12px;
  margin-left: -12px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text-2);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.legal-toc a:hover {
  color: var(--text);
  background: rgba(20, 24, 28, 0.05);
}

.legal-body {
  max-width: 780px;
}

.legal-body p,
.legal-body .addr {
  max-width: 46em;
}

.legal-body p {
  color: var(--text-2);
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body strong {
  font-weight: 600;
  color: var(--text);
}

.legal-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(156, 122, 60, 0.55);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.legal-body a:hover {
  color: var(--brass-text);
}

.legal-body .addr {
  margin: 10px 0 16px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  border-radius: 0 14px 14px 0;
  color: var(--text);
  background: var(--surface);
}

.legal-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2,
.legal-privacy .legal-body h2 {
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 640;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-imprint .legal-section h3 {
  margin: 24px 0 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
}

.legal-body .note {
  margin-top: 20px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-3);
}

.legal-privacy .legal-body h2 {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 100px;
}

.legal-privacy .legal-body h2:first-child {
  margin-top: 48px;
  padding-top: 0;
  border-top: 0;
}

.legal-privacy .legal-body h3 {
  margin: 28px 0 8px;
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--text);
}

.legal-footer {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
}

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.legal-footer .brand {
  color: var(--ink);
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.92rem;
}

.legal-footer-links a {
  color: var(--text-2);
  transition: color 0.25s ease;
}

.legal-footer-links a:hover {
  color: var(--brass-text);
}

.legal-copy {
  font-size: 0.84rem;
  color: var(--text-3);
}

@media (max-width: 980px) {
  .legal-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .legal-toc {
    position: static;
    padding-top: 32px;
  }
}

@media (max-width: 560px) {
  .legal-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .legal-back {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
}

.legal-hero-block h1 {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (max-width: 560px) {
  .legal-hero-block h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  }
}

/* Without JavaScript the static wheel illustration stands in for the animation */
html:not(.js) .hero-fallback {
  display: block;
}

@media (max-width: 760px) {
  .hero-fallback {
    left: 50%;
    right: auto;
    top: 11%;
    width: min(66vw, 300px);
    transform: translateX(-50%);
  }
}
