/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  background: #0a141d;
}
body {
  min-height: 100svh;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  color: #f4f6f8;
  background: transparent;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Background ---------- */
.bg {
  position: fixed; inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 30%, #1f3a55 0%, #0c1822 55%, #060c12 100%);
}
.bg picture { position: absolute; inset: 0; }
.bg__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.02);
  transition: opacity 1.6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.bg__img.is-loaded { opacity: 1; animation: kenBurns 36s ease-in-out infinite alternate; }
@keyframes kenBurns {
  0%   { transform: scale(1.06) translate3d(0,0,0); }
  100% { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}
.bg__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8,14,22,0.55) 0%,
      rgba(8,14,22,0.30) 35%,
      rgba(8,14,22,0.55) 70%,
      rgba(8,14,22,0.85) 100%);
}
.bg__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(28px, 5vw, 56px);
  padding:
    max(28px, env(safe-area-inset-top))
    clamp(20px, 5vw, 56px)
    max(28px, env(safe-area-inset-bottom));
  max-width: 1180px;
  margin: 0 auto;
}

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; }
.brand__logo {
  width: clamp(120px, 14vw, 180px);
  height: auto;
  filter:
    drop-shadow(0 6px 14px rgba(0,0,0,.45))
    drop-shadow(0 0 0 rgba(255,255,255,.0));
  background: rgba(255,255,255,0.92);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 22px);
  max-width: 880px;
  padding-block: clamp(16px, 4vw, 40px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0;
  padding: 8px 14px 8px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f25c5c;
  box-shadow: 0 0 0 0 rgba(242,92,92,.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(242,92,92,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(242,92,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,92,92,0); }
}
.title {
  margin: 0;
  font-size: clamp(38px, 7.2vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.title__line {
  display: block;
  background-clip: text;
  -webkit-background-clip: text;
}
.title__line--accent {
  background-image: linear-gradient(90deg, #ffffff 0%, #cfe7ff 60%, #f1d2c2 100%);
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lead {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  max-width: 60ch;
}

/* ---------- Contact ---------- */
.contact { width: 100%; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.6vw, 18px);
}
@media (min-width: 720px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
}
.contact__card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 6px;
  padding: clamp(18px, 2vw, 22px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition:
    transform .45s cubic-bezier(.2,.7,.2,1),
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease;
  overflow: hidden;
  isolation: isolate;
}
.contact__card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,0.4), rgba(255,255,255,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .7;
  pointer-events: none;
}
.contact__card:not(.contact__card--static):hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.28);
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.07) 100%);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
}
.contact__card:focus-visible {
  outline: 2px solid #cfe7ff;
  outline-offset: 3px;
}
.contact__icon {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  margin-bottom: 4px;
}
.contact__icon svg { width: 20px; height: 20px; }
.contact__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.contact__value {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
  hyphens: none;
  -webkit-hyphens: none;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* ---------- Footer ---------- */
.foot {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: left;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(6px);
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.2,.7,.2,1),
    filter .9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg__img.is-loaded { animation: none; transform: none; }
  .eyebrow__dot { animation: none; }
  [data-reveal] { transition: opacity .3s linear; transform: none; filter: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 540px) {
  .page { gap: 32px; }
  .brand__logo { width: 130px; }
  .title { letter-spacing: -0.02em; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot { text-align: center; }
}
