/* ============================================================
   KRYPTEX SWITZERLAND — kryptex.ch
   Design tokens mirror the kryptex.ae design system
   (colours, typography, radii, buttons, section labels).
   ============================================================ */

/* ---------- 1. Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
}

/* ---------- 2. Tokens (from kryptex.ae) ---------- */
:root {
  --bg: #0a151a;
  --surface-low: #121d23;
  --surface-mid: #1a2830;
  --surface-high: #2b363d;

  --primary: #bac8dc;
  --primary-dim: #7ca9b6;   /* logo mark colour */
  --secondary: #a7cdd5;
  --accent: #ffb59e;        /* coral — CTA / accent */
  --accent-hover: #ff9979;

  --swiss-red: #da291c;

  --text-primary: #f0f4f8;
  --text-secondary: #8fa8b8;
  --text-muted: #5c7a8a;
  --text-inverse: #0a151a;

  --border-ghost: rgba(186, 200, 220, 0.12);
  --border-focus: rgba(186, 200, 220, 0.4);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

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

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

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.italic-accent { font-style: italic; color: var(--accent); }

/* ---------- 4. Buttons (kryptex.ae style) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 250ms ease, border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}
.btn svg { transition: transform 250ms var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--text-inverse); }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 181, 158, 0.28);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: rgba(10, 21, 26, 0.35);
  color: var(--text-primary);
  border: 1px solid var(--border-focus);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(186, 200, 220, 0.14);
  border-color: rgba(186, 200, 220, 0.6);
  transform: translateY(-2px);
}

/* ============================================================
   5. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  isolation: isolate;
  overflow: hidden;
  /* Fallback if the image fails to load: brand gradient sky */
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(255, 181, 158, 0.10), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 169, 182, 0.22), transparent 70%),
    linear-gradient(180deg, #13252d 0%, var(--bg) 100%);
}

.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media picture { display: contents; }
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 30%;
  color: transparent; /* hide alt text rendering if the image fails */
  animation: hero-zoom 2.4s var(--ease-out) both;
}

/* Readability overlays — dark brand tones from the left and bottom */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 21, 26, 0.94) 0%, rgba(10, 21, 26, 0.78) 30%, rgba(10, 21, 26, 0.30) 58%, rgba(10, 21, 26, 0) 75%),
    linear-gradient(180deg, rgba(10, 21, 26, 0.55) 0%, rgba(10, 21, 26, 0) 22%, rgba(10, 21, 26, 0) 62%, rgba(10, 21, 26, 0.85) 92%, var(--bg) 100%);
}

/* Subtle tech grid (kryptex.ae hero motif) */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(186, 200, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 200, 220, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 10% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 10% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: max(env(safe-area-inset-top), clamp(1.5rem, 4vh, 2.75rem));
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  width: clamp(170px, 18vw, 250px);
  height: auto;
}

/* Header language switcher (kryptex.ae style) */
.lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.45rem 0.3rem 0.65rem;
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-full);
  background: rgba(10, 21, 26, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lang-nav-icon {
  width: 15px;
  height: 15px;
  margin-right: 0.2rem;
  color: var(--primary-dim);
  flex: none;
}
.lang-list {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 200ms ease, background-color 200ms ease;
}
.lang-link:hover {
  color: var(--text-primary);
  background: rgba(186, 200, 220, 0.12);
}
.lang-link[aria-current="page"] {
  background: var(--accent);
  color: var(--text-inverse);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 660px) 1fr;
  align-items: end;
  gap: 2rem;
  padding-block: clamp(2.5rem, 8vh, 6rem) clamp(1rem, 3vh, 2rem);
}
.hero-copy { align-self: center; }

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.5rem;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  border: 1px solid rgba(124, 169, 182, 0.28);
  border-radius: var(--radius-full);
  background: rgba(10, 21, 26, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-badge .sep { color: var(--text-muted); }
.hero-badge a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}
.hero-badge a:hover { color: var(--accent); }
.hero-badge a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255, 181, 158, 0.5);
  text-underline-offset: 4px;
}
.mini-flag { width: 20px; height: 20px; flex: none; border-radius: 4px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .italic-accent {
  padding-right: 0.08em; /* keep italic overhang inside the box */
  background: linear-gradient(100deg, #ffc9b6 0%, var(--accent) 45%, #f7a58c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(1.1rem, 2.5vh, 1.6rem);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 181, 158, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.7;
  color: #b4c6d2;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.capabilities li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-full);
  background: rgba(26, 40, 48, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
}

/* ---------- Swiss flag emblem ---------- */
.swiss-emblem {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid rgba(186, 200, 220, 0.16);
  border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, rgba(26, 40, 48, 0.55), rgba(10, 21, 26, 0.55));
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.flag {
  position: relative;
  width: clamp(150px, 15vw, 210px);
  aspect-ratio: 1;
  border-radius: 0.6rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 18px 50px rgba(218, 41, 28, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.4);
}
.flag svg { width: 100%; height: 100%; }

/* Gentle silk sheen sweeping across the flag */
.flag-sheen {
  position: absolute;
  inset: 0 -100%;
  background:
    linear-gradient(105deg,
      rgba(0, 0, 0, 0.16) 0%,
      rgba(255, 255, 255, 0.00) 18%,
      rgba(255, 255, 255, 0.20) 30%,
      rgba(0, 0, 0, 0.10) 42%,
      rgba(255, 255, 255, 0.12) 56%,
      rgba(0, 0, 0, 0.14) 70%,
      rgba(255, 255, 255, 0.00) 84%,
      rgba(0, 0, 0, 0.12) 100%);
  mix-blend-mode: soft-light;
  animation: sheen 9s ease-in-out infinite alternate;
}

.swiss-emblem figcaption {
  display: grid;
  gap: 0.2rem;
  padding-inline: 0.2rem;
}
.emblem-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.emblem-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.emblem-meta.mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* Scroll cue */
.scroll-cue {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  border-radius: var(--radius-full);
}
.scroll-line {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: rgba(186, 200, 220, 0.2);
}
.scroll-line::after {
  content: '';
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--accent);
  animation: scroll-line 2.2s ease-in-out infinite;
}

/* Load-in reveal (CSS only) */
.reveal { animation: reveal 0.9s var(--ease-out) both; }
.d0 { animation-delay: 0.10s; }
.d1 { animation-delay: 0.22s; }
.d2 { animation-delay: 0.36s; }
.d3 { animation-delay: 0.50s; }
.d4 { animation-delay: 0.62s; }
.d5 { animation-delay: 0.74s; }

/* ============================================================
   6. SECTIONS
   ============================================================ */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dim);
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--primary-dim);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-text {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- B. Existing customers ---------- */
.existing {
  background: var(--bg);
}
.existing::before {
  /* hairline divider with a soft teal glow */
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: min(1100px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(124, 169, 182, 0.35), transparent);
}
.existing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.site-links { display: grid; gap: 1rem; }
.site-link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "region region"
    "name   url";
  align-items: end;
  gap: 0.35rem 1.5rem;
  padding: clamp(1.4rem, 2.5vw, 1.9rem) clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(124, 169, 182, 0.07), transparent 60%),
    var(--surface-low);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 250ms ease, transform 250ms var(--ease-out), background-color 250ms ease;
}
.site-link::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary-dim);
  transform: scaleY(0.35);
  transform-origin: center;
  transition: transform 300ms var(--ease-out), background-color 300ms ease;
}
.site-link-region {
  grid-area: region;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-link-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.site-link-url {
  grid-area: url;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--secondary);
  text-decoration: underline;
  text-decoration-color: rgba(167, 205, 213, 0.35);
  text-underline-offset: 5px;
  transition: color 250ms ease, text-decoration-color 250ms ease;
}
.site-link-url svg { transition: transform 250ms var(--ease-out); }

.site-link:hover {
  border-color: rgba(124, 169, 182, 0.4);
  transform: translateY(-2px);
}
.site-link:hover::after,
.site-link:focus-visible::after { transform: scaleY(1); background: var(--accent); }
.site-link:hover .site-link-url { color: var(--accent); text-decoration-color: var(--accent); }
.site-link:hover .site-link-url svg { transform: translate(2px, -2px); }
.site-link:focus-visible { border-radius: var(--radius-xl); }

/* ---------- C. Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 50% 60% at 85% 0%, rgba(124, 169, 182, 0.08), transparent 70%),
    var(--surface-low);
}
.contact-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.contact-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-2xl);
  background: var(--surface-mid);
}
.contact-card-head {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-ghost);
}
.contact-card-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dim);
}
.contact-card-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact-card-entity {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.contact-list { display: grid; gap: 1rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #c3d1db;
}
.contact-list svg {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--primary-dim);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-list a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(186, 200, 220, 0.3);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.contact-list a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.contact-card-note {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- D. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-ghost);
  background: var(--bg);
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom));
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-logo { width: 150px; height: auto; opacity: 0.9; }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.footer-links a:hover { color: var(--text-primary); text-decoration-color: var(--accent); }
.footer-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}
.footer-lang a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.footer-lang a:hover {
  color: var(--text-primary);
  text-decoration-color: var(--accent);
}
.footer-lang a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   7. ANIMATIONS
   ============================================================ */
@keyframes reveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { transform: scale(1.06); opacity: 0.4; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes sheen {
  from { transform: translateX(-18%); }
  to   { transform: translateX(18%); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 181, 158, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 181, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 181, 158, 0); }
}
@keyframes scroll-line {
  0%   { top: -40%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .flag-sheen { animation: none; transform: none; }
  .scroll-line::after { display: none; }
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */

/* Laptops / small desktops */
@media (max-width: 1100px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 21, 26, 0.94) 0%, rgba(10, 21, 26, 0.8) 38%, rgba(10, 21, 26, 0.35) 70%, rgba(10, 21, 26, 0.1) 100%),
      linear-gradient(180deg, rgba(10, 21, 26, 0.55) 0%, rgba(10, 21, 26, 0) 22%, rgba(10, 21, 26, 0) 60%, rgba(10, 21, 26, 0.88) 92%, var(--bg) 100%);
  }
}

/* Tablets */
@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .swiss-emblem {
    justify-self: start;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1.25rem 0.75rem 0.75rem;
    gap: 1rem;
    border-radius: var(--radius-xl);
  }
  .flag { width: 64px; border-radius: 0.4rem; }
  .existing-grid { grid-template-columns: 1fr; }
}

/* Portrait screens use the portrait photo, sized to the viewport width
   and shifted up so the summit sits clear of the headline. The text block
   starts over the misty mountain base, and the photo fades into the page. */
@media (max-aspect-ratio: 4/5) {
  .hero { background: var(--bg); }
  .hero-media {
    inset: auto 0 auto 0;
    top: -14vw;
    aspect-ratio: 768 / 1376;
  }
  .hero-img { object-position: 50% 0%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 21, 26, 0.55) 0%, rgba(10, 21, 26, 0) 16%, rgba(10, 21, 26, 0) 44%, rgba(10, 21, 26, 0.7) 62%, rgba(10, 21, 26, 0.96) 80%, var(--bg) 92%);
  }
  .hero-grid { display: none; }
  .hero-body {
    align-content: start;
    padding-top: 74vw;
  }
}
@media (max-aspect-ratio: 4/5) and (min-width: 600px) {
  .hero-media { top: -26vw; }
  .hero-body { padding-top: 66vw; }
}


/* Phones */
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
  .lang-nav { padding: 0.25rem 0.35rem 0.25rem 0.5rem; gap: 0.2rem; }
  .lang-link { min-width: 1.75rem; padding: 0.2rem 0.38rem; font-size: 0.7rem; }
  .hero-badge { font-size: 0.64rem; letter-spacing: 0.1em; gap: 0.4rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .capabilities li { font-size: 0.74rem; }
  .site-link {
    grid-template-columns: 1fr;
    grid-template-areas: "region" "name" "url";
    gap: 0.3rem;
  }
  .site-link-url { margin-top: 0.35rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}

/* Very narrow phones */
@media (max-width: 360px) {
  .hero-title { font-size: 2.55rem; }
  .lang-nav-icon { display: none; }
  .lang-nav { padding-inline: 0.3rem; }
}

/* Short landscape screens (e.g. phones rotated) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero-body { padding-block: 1.5rem 1rem; }
  .swiss-emblem { display: none; }
  .scroll-cue { display: none; }
}

/* Large screens */
@media (min-width: 1600px) {
  :root { --max-w: 1440px; }
}

/* Print */
@media print {
  .hero { min-height: auto; background: none; color: #000; }
  .hero-media, .scroll-cue, .swiss-emblem .flag-sheen, .lang-nav { display: none; }
  body, .contact, .existing, .site-footer { background: #fff; color: #000; }
}
