@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --navy: #07092F;
  --gold: #C9A44C;
  --gold-soft: #DDBE72;
  --text: #FFFFFF;
  --text-muted: #B7B9CC;
  --line: rgba(201, 164, 76, 0.35);
  --gutter: clamp(16px, 5vw, 64px);
  --page: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

/* Header + message share one area. */
.field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Wide screens: the photo fills the whole page, shaded navy on the left so the text stays easy to read. */
.hero-photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
}

/* A soft shadow keeps the headline crisp where it crosses the brighter parts of the photo. */
h1 {
  text-shadow: 0 1px 14px rgba(7, 9, 47, 0.75);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7, 9, 47, 0.92) 0%, rgba(7, 9, 47, 0.78) 35%, rgba(7, 9, 47, 0.25) 70%, rgba(7, 9, 47, 0.15) 100%),
    linear-gradient(to top, rgba(7, 9, 47, 0.9) 0%, rgba(7, 9, 47, 0) 35%);
}

/* Header: round emblem badge in the top corner, links home. */
.site-header {
  position: relative;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.home {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--gold);
}

.home img {
  display: block;
  width: 74%;
  height: auto;
  transform: translateX(-2%);
}

/* Message */
.stage {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(36px, 8vh, 96px) var(--gutter) clamp(40px, 8vh, 88px);
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* Headline words slide up into place one after another, then stay still. */
.rise .word {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .rise .word {
    animation: word-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .rise .word:nth-child(1) { animation-delay: 0.15s; }
  .rise .word:nth-child(2) { animation-delay: 0.26s; }
  .rise .word:nth-child(3) { animation-delay: 0.37s; }
  .rise .word:nth-child(4) { animation-delay: 0.48s; }
  .rise .word:nth-child(5) { animation-delay: 0.59s; }
  .rise .word:nth-child(6) { animation-delay: 0.70s; }
  .rise .word:nth-child(7) { animation-delay: 0.81s; }
}

@keyframes word-rise {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
}

.actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border: 2px solid var(--gold);
  border-radius: 3px;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button.primary {
  background: var(--gold);
  color: var(--navy);
}

.button:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy);
}

footer {
  position: relative;
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 24px var(--gutter) 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

footer p {
  margin: 0;
}

/* Thirdwood credit: "Third" regular, "wood" bold, TECHNOLOGIES small and spaced, in the footer's colour. */
.thirdwood {
  white-space: nowrap;
}

.thirdwood b {
  font-weight: 700;
}

.thirdwood-tech {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  /* Phones: the photo becomes a banner between the badge and the message. */
  .hero-photo {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    height: 300px;
    margin-top: 20px;
  }

  .hero-photo img {
    object-position: 50% 25%;
  }

  .hero-photo::after {
    background:
      linear-gradient(to top, var(--navy) 0%, rgba(7, 9, 47, 0) 45%),
      linear-gradient(to bottom, var(--navy) 0%, rgba(7, 9, 47, 0) 18%);
  }

  .stage {
    order: 2;
    padding-top: 8px;
  }

  .home {
    width: 68px;
    height: 68px;
  }

  .stage {
    flex: none;
    padding-top: 32px;
  }

  
  .button {
    width: 100%;
    text-align: center;
  }
}
