:root {
  --background: #06111d;
  --foreground: #f7fbff;
  --muted: rgba(235, 244, 250, 0.7);
  --line: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

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

.site-shell {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(1.25rem, 4.6vw, 5.5rem);
  grid-template-rows: auto 1fr auto;
  background: var(--background);
}

.hero-image {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  scale: 1.015;
  animation: drift 18s ease-out both;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 21, 0.86) 0%, rgba(3, 12, 21, 0.52) 42%, rgba(3, 12, 21, 0.1) 74%),
    linear-gradient(180deg, rgba(0, 8, 18, 0.48) 0%, transparent 38%, rgba(0, 8, 18, 0.62) 100%);
}

.site-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 35%);
  mix-blend-mode: screen;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar {
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
  animation: reveal 0.9s 0.1s ease-out both;
}

.brand {
  display: block;
  width: clamp(7.5rem, 10vw, 9.25rem);
  overflow: hidden;
  border-radius: 0.15rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  transition: border-color 180ms ease, color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #fff;
  border-color: #fff;
}

.contact-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.arrow {
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.contact-link:hover .arrow {
  transform: translate(0.18rem, -0.18rem);
}

.hero-copy {
  align-self: center;
  max-width: 52rem;
  padding: clamp(3rem, 9vh, 8rem) 0 clamp(3rem, 7vh, 6rem);
}

.eyebrow {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: reveal 0.9s 0.3s ease-out both;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.9rem, 8.2vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 8, 18, 0.24);
  animation: reveal 1s 0.42s ease-out both;
}

.intro {
  max-width: 37rem;
  margin: clamp(2rem, 4vw, 3.6rem) 0 0;
  color: rgba(243, 248, 252, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
  animation: reveal 1s 0.58s ease-out both;
}

.footer {
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  animation: reveal 0.9s 0.72s ease-out both;
}

.footer p {
  flex: 0 0 auto;
  margin: 0;
}

.ethos {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3.25rem);
}

.ethos span {
  white-space: nowrap;
}

.ethos b {
  margin-right: 0.55rem;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
}

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

@keyframes drift {
  from { scale: 1.06; }
  to { scale: 1.015; }
}

@media (max-width: 760px) {
  .hero-image {
    object-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 12, 21, 0.88), rgba(3, 12, 21, 0.32)),
      linear-gradient(180deg, rgba(0, 8, 18, 0.5), rgba(0, 8, 18, 0.16) 40%, rgba(0, 8, 18, 0.82));
  }

  .hero-copy {
    align-self: end;
    padding: 5rem 0 3rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 6rem);
    line-height: 0.88;
  }

  .intro {
    max-width: 30rem;
    font-size: 1rem;
  }

  .footer {
    align-items: flex-end;
  }

  .ethos {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (max-width: 480px) {
  .contact-link span:first-child {
    display: none;
  }

  .contact-link::before {
    content: "Contact";
  }

  .footer p {
    max-width: 9rem;
    text-align: right;
    line-height: 1.5;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
