﻿:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --soft: #f6f8fb;
  --paper: #ffffff;
  --red: #b93450;
  --blue: #1c66c2;
  --green: #4d8a65;
  --navy: #172238;
  --line: rgba(17, 24, 39, 0.12);
  --focus: rgba(28, 102, 194, 0.34);
  --space: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(185, 52, 80, 0.07), transparent 30%),
    linear-gradient(250deg, rgba(77, 138, 101, 0.08), transparent 34%),
    #f7f9fc;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 76%, transparent);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  position: relative;
  display: grid;
  min-height: calc(100vh - 94px);
  grid-template-rows: auto 1fr auto;
  padding: clamp(24px, 5vw, 54px) var(--space) 24px;
  isolation: isolate;
}

.masthead {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 720ms cubic-bezier(0.22, 1, 0.36, 1) 100ms forwards;
}

.brand {
  display: inline-flex;
  width: clamp(182px, 21vw, 286px);
  padding: 8px;
  border-radius: 18px;
}

.brand img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(23, 34, 56, 0.1));
}

.hero {
  align-self: center;
  max-width: 970px;
  margin: clamp(54px, 9vw, 104px) auto clamp(44px, 8vw, 90px);
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 820ms cubic-bezier(0.22, 1, 0.36, 1) 230ms forwards;
}

.eyebrow {
  margin: 0 0 18px;
  color: #164287;
  font-size: clamp(0.74rem, 1.7vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0 auto;
  color: #111827;
  font-size: clamp(2.72rem, 9.1vw, 7.75rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.91;
}

.intro {
  max-width: 720px;
  margin: clamp(22px, 3vw, 30px) auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.78;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: clamp(32px, 5vw, 46px) 0 0;
  color: var(--navy);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status::before,
.status::after {
  width: clamp(34px, 8vw, 88px);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--blue), var(--green));
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  left: 50%;
  width: min(78vw, 880px);
  height: 2px;
  border-radius: 999px;
  opacity: 0.42;
  transform-origin: center;
  animation: drift 8s ease-in-out infinite alternate;
}

.beam-red {
  top: 32%;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: translateX(-50%) rotate(-10deg);
}

.beam-blue {
  top: 49%;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  transform: translateX(-50%) rotate(3deg);
  animation-delay: -2s;
}

.beam-green {
  top: 66%;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: translateX(-50%) rotate(11deg);
  animation-delay: -4s;
}

.contact {
  display: grid;
  width: min(100%, 1080px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin: 0 auto;
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 820ms cubic-bezier(0.22, 1, 0.36, 1) 360ms forwards;
}

.contact a {
  display: grid;
  gap: 7px;
  min-height: 64px;
  align-content: start;
}

.contact span {
  color: #6f7a88;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact strong {
  color: var(--ink);
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.credit {
  display: flex;
  justify-content: center;
  padding: 0 var(--space) clamp(22px, 4vw, 34px);
}

.credit a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 12px;
  color: #4d5968;
  font-size: 0.93rem;
  transition: transform 180ms ease, color 180ms ease;
}

.credit img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.credit strong {
  color: var(--navy);
  font-weight: 750;
}

.brand:hover,
.contact a:hover,
.credit a:hover {
  transform: translateY(-2px);
}

.contact a:hover strong,
.credit a:hover {
  color: #164287;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 12px;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0% {
    opacity: 0.28;
    translate: -26px 0;
    scale: 0.92 1;
  }

  100% {
    opacity: 0.58;
    translate: 26px 0;
    scale: 1.04 1;
  }
}

@media (max-width: 860px) {
  .site-shell {
    min-height: auto;
    padding-top: 22px;
  }

  .hero {
    margin-top: 52px;
    margin-bottom: 54px;
  }

  h1 {
    letter-spacing: -0.035em;
  }

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

@media (max-width: 520px) {
  .site-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .brand {
    width: min(70vw, 226px);
  }

  .hero {
    margin-top: 42px;
    text-align: left;
  }

  h1 {
    margin-left: 0;
    font-size: clamp(2.55rem, 15vw, 4.25rem);
  }

  .intro {
    line-height: 1.65;
  }

  .status {
    gap: 10px;
    letter-spacing: 0.1em;
  }

  .status::after {
    display: none;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact a {
    min-height: 52px;
  }

  .credit {
    justify-content: flex-start;
    padding-right: 20px;
    padding-left: 20px;
  }

  .credit a {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
