:root {
  --ink: #4b4b4f;
  --red: #df1623;
  --paper: #ffffff;
  --shadow: 0 22px 70px rgba(0, 0, 0, .16);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(520px, 1fr) auto;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(26px, 4vw, 54px) 24px clamp(20px, 3vw, 38px);
  background: #fff;
}

.brand img {
  display: block;
  width: min(460px, 76vw);
  height: auto;
}

.hero {
  position: relative;
  min-height: min(68vh, 760px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    url("/assets/hero.webp") center center / cover no-repeat;
  transform: scale(1.01);
  animation: reveal-image 1.2s ease-out both;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 10, 18, .04) 15%, rgba(4, 10, 18, .22) 58%, rgba(4, 10, 18, .82) 100%);
}

.hero__content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 92px) 0;
  color: #fff;
  animation: rise-in .9s .18s ease-out both;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(.72rem, 1.3vw, .9rem);
  font-weight: 600;
  opacity: .86;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.3vw, 4.9rem);
  line-height: .99;
  font-weight: 500;
  text-wrap: balance;
  text-shadow: 0 3px 25px rgba(0, 0, 0, .38);
}

.contact {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(24px, 4vw, 38px);
  padding: 14px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(.92rem, 1.8vw, 1.08rem);
  letter-spacing: .025em;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, .08);
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}

.contact:hover,
.contact:focus-visible {
  color: #222;
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  outline: none;
}

footer {
  display: flex;
  justify-content: center;
  padding: 22px 24px;
  text-align: center;
  color: #747477;
  background: #fff;
  font-size: .78rem;
  letter-spacing: .035em;
}

@keyframes reveal-image {
  from { opacity: 0; transform: scale(1.055); }
  to   { opacity: 1; transform: scale(1.01); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .page {
    grid-template-rows: auto minmax(560px, 1fr) auto;
  }

  .brand {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .brand img {
    width: min(360px, 82vw);
  }

  .hero {
    min-height: 65vh;
  }

  .hero__image {
    background-position: 49% center;
  }

  .hero__content {
    width: min(100% - 32px, 1180px);
    padding-bottom: 50px;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }
}

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