/* main.css */
/* Path: assets/css/main.css */

:root {
  --bg-deep: #051a2e;
  --bg-mid: #06243f;
  --teal: #0d6f6f;
  --seafoam: #b7f3e0;
  --sand: #f6e6c8;

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.55);

  --stroke: rgba(255, 255, 255, 0.18);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.22);

  --radius-lg: 22px;

  --max: 1200px;
  --pad: 24px;

  --dur: 420ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1100px 700px at 20% 10%, rgba(13, 111, 111, 0.35), transparent 60%),
    radial-gradient(900px 560px at 80% 25%, rgba(183, 243, 224, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-mid));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid rgba(183, 243, 224, 0.75);
  outline-offset: 3px;
  border-radius: 10px;
}

.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;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.ocean-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ocean-bg::before,
.ocean-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  filter: blur(2px);
  opacity: 0.9;
}

.ocean-bg::before {
  background: radial-gradient(60% 40% at 25% 30%, rgba(246, 230, 200, 0.14), transparent 60%),
    radial-gradient(45% 35% at 70% 18%, rgba(183, 243, 224, 0.16), transparent 60%),
    radial-gradient(60% 50% at 70% 78%, rgba(13, 111, 111, 0.2), transparent 62%);
}

.ocean-bg::after {
  background: radial-gradient(1200px 600px at 50% 100%, rgba(255, 255, 255, 0.08), transparent 55%),
    radial-gradient(900px 520px at 35% 95%, rgba(183, 243, 224, 0.1), transparent 60%);
  transform: translateY(10%);
  opacity: 0.8;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 26, 46, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* left brand, centered nav, right lang */
  align-items: center;
  padding: 14px var(--pad);
}

.brand {
  justify-self: start;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 12px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;

  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);

  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.lang-switch {
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
}

.lang-btn[aria-pressed="true"] {
  background: rgba(183, 243, 224, 0.18);
  border-color: rgba(183, 243, 224, 0.30);
  color: rgba(255, 255, 255, 0.92);
}

.lang-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Mobile: put nav on 2nd row, keep language right */
@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 10px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .lang-switch {
    grid-column: 2;
    grid-row: 1;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    flex-wrap: wrap;
    gap: 10px;
  }
}

.subhead {
  margin: 2px 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(183, 243, 224, 0.92);
  font-weight: 750;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.bullet-list li {
  position: relative;
  padding-left: 16px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(183, 243, 224, 0.70);
  box-shadow: 0 0 0 3px rgba(183, 243, 224, 0.10);
}

.nav a:hover {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(183, 243, 224, 0.22);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .nav a:hover {
    transform: none;
  }
}

.section {
  padding: 84px 0;
}

@media (max-width: 700px) {
  .section {
    padding: 68px 0;
  }
}

/* Hero */
.hero {
  padding-top: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(183, 243, 224, 0.9);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-intro {
  margin: 0 0 22px;
  color: var(--muted);

  font-size: clamp(16px, 0.6vw + 14px, 20px);
  line-height: 1.7;

  max-width: min(92ch, 100%);
}

.hero-copy {
  max-width: 100%;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 650;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(13, 111, 111, 0.85), rgba(183, 243, 224, 0.55));
  color: rgba(5, 26, 46, 0.98);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-link {
  padding: 12px 6px;
  color: rgba(183, 243, 224, 0.92);
  background: transparent;
  border: 1px solid transparent;
}

.btn-link:hover {
  transform: translateY(-1px);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-side {
  display: flex;
  justify-content: flex-end;
}

.hero-glass {
  width: 100%;
  max-width: 420px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-metric+.hero-metric {
  margin-top: 10px;
}

.hero-metric__label {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-metric__value {
  font-weight: 720;
  letter-spacing: -0.01em;
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 14px 4px 12px;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Section head */
.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Prose */
.prose {
  max-width: 70ch;
}

.prose p {
  margin: 0 0 14px;
  color: var(--muted);
}

.prose.compact p {
  margin-bottom: 12px;
}

.prose.compact {
  max-width: none;
}

/* PEOPLE: two cards */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.flip-shell {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  position: relative;

  transform-origin: center;
  will-change: transform;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flip-card {
  width: 100%;
  height: clamp(740px, 72vh, 820px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  user-select: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
}

.flip-card:hover {
  box-shadow: var(--shadow);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card:hover {
    transform: none;
  }
}

/* ===== Card hover / focus lift (desktop) ===== */

/* Hover: slightly larger + lift */
@media (hover: hover) and (pointer: fine) {
  .flip-shell:hover {
    transform: translateY(-10px) scale(1.05);
    /* Control approximations 1.1.1 */
  }

  .flip-shell:hover .flip-card {
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  }
}

/* Keyboard users get the same feedback */
body[data-input="keyboard"] .flip-shell:focus-within {
  transform: translateY(-10px) scale(1.05);
}

/* Reduced motion: no transforms */
@media (prefers-reduced-motion: reduce) {

  .flip-shell,
  .flip-card,
  .flip-shell:hover,
  .flip-shell:focus-within {
    transition: none !important;
    transform: none !important;
  }
}

.flip-shell.is-pressed {
  transform: translateY(-10px) scale(1.05);
}

.flip-shell.is-pressed .flip-card {
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform var(--dur) var(--ease);
}

.flip-shell.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  padding: 18px;
  border-radius: inherit;
  backface-visibility: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.flip-front {
  background: radial-gradient(900px 450px at 15% 10%, rgba(246, 230, 200, 0.1), transparent 62%),
    radial-gradient(700px 400px at 85% 20%, rgba(183, 243, 224, 0.1), transparent 62%);
}

.flip-back {
  transform: rotateY(180deg);
  background: radial-gradient(900px 450px at 20% 15%, rgba(183, 243, 224, 0.12), transparent 62%),
    radial-gradient(700px 400px at 90% 10%, rgba(246, 230, 200, 0.08), transparent 60%);
}

.portrait {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 320 / 260
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 15%
}

.portrait svg {
  display: block;
  width: 100%;
  height: auto;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.person-name {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.person-role {
  margin: 0;
  color: var(--faint);
  font-weight: 620;
}

.person-teaser {
  margin: 0;
  color: rgba(183, 243, 224, 0.92);
  font-weight: 650;
}

.card-hint {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 13px;
}

.hint-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.pillars {
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--muted);
}

.pillars li {
  margin: 0 0 10px;
}

.pillars strong {
  color: rgba(255, 255, 255, 0.9);
}

.flip-back .prose {
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.flip-back .prose::-webkit-scrollbar {
  width: 10px;
}

.flip-back .prose::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: 3px solid rgba(0, 0, 0, 0);
  background-clip: padding-box;
  border-radius: 999px;
}

.contact-mini {
  margin-top: auto;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-line {
  margin: 0 0 8px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-line:last-child {
  margin-bottom: 0;
}

.label {
  color: var(--faint);
  font-weight: 650;
}

.linkedin {
  color: rgba(183, 243, 224, 0.92);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Flip controls */
.flip-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 10px;
}

.icon-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 26, 46, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(5, 26, 46, 0.7);
  border-color: rgba(183, 243, 224, 0.35);
}

@media (max-width: 640px) {
  .flip-controls {
    position: static;
    margin-top: 12px;
    justify-content: center;
    gap: 16px;
    padding: 0;
    pointer-events: auto;
  }

  .icon-btn:hover {
    transform: none;
  }
}

/* Reduced motion: swap faces instantly */
@media (prefers-reduced-motion: reduce) {
  .flip-inner {
    transition: none !important;
    transform: none !important;
  }

  .flip-face {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    backface-visibility: visible;
    transform: none !important;
  }

  .flip-front {
    display: block;
  }

  .flip-back {
    display: none;
  }

  .flip-shell.is-flipped .flip-front {
    display: none;
  }

  .flip-shell.is-flipped .flip-back {
    display: block;
  }

  .flip-card {
    height: auto;
  }

  .flip-back .prose {
    overflow: visible;
    padding-right: 0;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 22px;
  align-content: start;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.contact-item {
  margin: 0 0 10px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 14px 0 12px;
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.company-address {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  line-height: 1.6;
}

.company-address strong {
  color: rgba(255, 255, 255, 0.92);
}

/* Form */
.form {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
}

textarea {
  resize: vertical;
  /* больше не ломает layout по ширине */
  max-height: 500px;
  /* не бесконечно */
}

select {
  appearance: none;
  -webkit-appearance: none;

  padding-right: 36px;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 26, 46, 0.4);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(183, 243, 224, 0.45);
  background: rgba(5, 26, 46, 0.52);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: rgba(255, 170, 170, 0.65);
}

.field-error {
  margin: 6px 0 0;
  color: rgba(255, 190, 190, 0.95);
  font-size: 13px;
  min-height: 18px;
}

.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-status {
  margin: 0;
  color: rgba(183, 243, 224, 0.9);
  font-weight: 650;
}

/* Footer */
.footer {
  padding: 20px 0 34px;
  color: var(--faint);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* центрируем средний столбец */
  align-items: start;
  gap: 16px;
}

.footer-copy {
  grid-column: 2;
  justify-self: center;
  margin: 0;
}

.company-address--footer {
  grid-column: 1;
  justify-self: start;
  text-align: left;
  margin: 0;
}

/* мобилка: всё в столбик по центру */
@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-copy {
    grid-column: auto;
  }

  .company-address--footer {
    grid-column: auto;
    justify-self: center;
    text-align: center;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================
   Sunny Sea Loader (3–5s intro)
   ========================= */

body.is-loading {
  overflow: hidden;
}

body.is-loading .site-header,
body.is-loading main,
body.is-loading .footer {
  opacity: 0;
  pointer-events: none;
}

body.is-loaded .site-header,
body.is-loaded main,
body.is-loaded .footer {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;

  /* Sky + horizon + sea */
  background:
    radial-gradient(560px 380px at 18% 18%, rgba(246, 230, 200, 0.70), transparent 62%),
    radial-gradient(900px 520px at 75% 20%, rgba(183, 243, 224, 0.18), transparent 60%),
    linear-gradient(180deg,
      rgba(121, 199, 255, 1) 0%,
      rgba(196, 234, 255, 1) 44%,
      rgba(64, 154, 214, 1) 45%,
      rgba(8, 66, 110, 1) 100%);

  transition: opacity 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);

  /* glass, but readable on bright sky */
  background: rgba(5, 26, 46, 0.42);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.loader__brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(183, 243, 224, 0.92);
}

.loader__text {
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.loader__hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.60);
}

/* Scene layer (keeps your existing HTML class .loader__storm) */
.loader__storm {
  position: absolute;
  inset: -10%;
  z-index: 2;
  pointer-events: none;

  /* 1–3 soft clouds as radial blobs + faint haze */
  background:
    radial-gradient(160px 80px at 22% 22%, rgba(255, 255, 255, 0.65), transparent 70%),
    radial-gradient(220px 96px at 32% 21%, rgba(255, 255, 255, 0.55), transparent 72%),
    radial-gradient(240px 110px at 78% 18%, rgba(255, 255, 255, 0.52), transparent 72%),
    radial-gradient(900px 520px at 50% 105%, rgba(255, 255, 255, 0.08), transparent 60%);

  filter: blur(0.2px);
  opacity: 0.95;
  transform: translate3d(0, 0, 0);

  animation: cloudFloat 9000ms ease-in-out infinite alternate;
}

/* Sun */
.loader__storm::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  left: 12%;
  top: 8%;
  border-radius: 999px;

  background: radial-gradient(circle at 35% 35%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(246, 230, 200, 0.95) 38%,
      rgba(246, 230, 200, 0.0) 72%);

  box-shadow:
    0 0 120px rgba(246, 230, 200, 0.55),
    0 0 220px rgba(246, 230, 200, 0.25);

  opacity: 0.95;
}

/* Sea surface shimmer (subtle) */
.loader__storm::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6%;
  height: 44%;
  border-radius: 999px;

  background:
    repeating-linear-gradient(120deg,
      rgba(255, 255, 255, 0.10) 0px,
      rgba(255, 255, 255, 0.10) 2px,
      rgba(255, 255, 255, 0.00) 10px,
      rgba(255, 255, 255, 0.00) 20px),
    radial-gradient(1200px 520px at 50% 15%, rgba(183, 243, 224, 0.10), transparent 60%);

  filter: blur(10px);
  opacity: 0.55;

  animation: seaSwell 3200ms ease-in-out infinite alternate;
}

/* Optional wave “ridges” for more depth */
.loader::before,
.loader::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 38%;
  bottom: -14%;
  border-radius: 999px;
  pointer-events: none;

  background: rgba(255, 255, 255, 0.06);
  filter: blur(18px);
  transform: translate3d(0, 0, 0);
}

.loader::before {
  opacity: 0.65;
  animation: swell 2600ms ease-in-out infinite alternate;
}

.loader::after {
  bottom: -18%;
  opacity: 0.45;
  animation: swell 3200ms ease-in-out infinite alternate-reverse;
}

/* Animations */
@keyframes cloudFloat {
  0% {
    transform: translate3d(-1.2%, -0.6%, 0);
  }

  100% {
    transform: translate3d(1.2%, 0.6%, 0);
  }
}

@keyframes seaSwell {
  0% {
    transform: translate3d(-1.5%, 0, 0) scaleX(1.05);
  }

  100% {
    transform: translate3d(1.5%, 0, 0) scaleX(1.10);
  }
}

@keyframes swell {
  0% {
    transform: translate3d(-2%, 0, 0) scaleX(1.05);
  }

  100% {
    transform: translate3d(2%, 0, 0) scaleX(1.12);
  }
}

/* Reduced motion: keep it calm and instant */
@media (prefers-reduced-motion: reduce) {

  .loader__storm,
  .loader__storm::before,
  .loader__storm::after,
  .loader::before,
  .loader::after {
    animation: none !important;
  }

  body.is-loaded .site-header,
  body.is-loaded main,
  body.is-loaded .footer,
  .loader {
    transition: none !important;
  }
}

@media (min-width: 1600px) {
  :root {
    --max: 1320px;
    --pad: 32px;
  }

  .section {
    padding: 96px 0;
  }

  .hero-grid {
    gap: 36px;
  }
}

@media (min-width: 2200px) {
  :root {
    --max: 1440px;
  }

  .hero-title {
    font-size: clamp(48px, 4.2vw, 78px);
  }
}