@font-face {
  font-family: "Forma Sans";
  src: url("../fonts/forma-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forma Sans";
  src: url("../fonts/forma-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forma Sans";
  src: url("../fonts/forma-bold.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --burgundy: #a71e22;
  --off-white: #ffffff;
  --muted: #5f6062;
  --border: #c8c9cb;
  --page-padding: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  min-width: 320px;
  background: var(--off-white);
}

body {
  display: grid;
  min-height: 100svh;
  margin: 0;
  grid-template-rows: auto 1fr;
  overflow-x: clip;
  background: var(--off-white);
  color: var(--black);
  font-family: "Forma Sans", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

::selection {
  background: var(--burgundy);
  color: var(--white);
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  transform: translateY(-130%);
  border: 2px solid var(--black);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0.75rem);
}

.site-header {
  display: flex;
  width: 100%;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--page-padding);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.brand {
  display: block;
  width: 96px;
}

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

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switcher button {
  position: relative;
  min-width: 31px;
  min-height: 44px;
  padding: 0.5rem 0.35rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: inherit;
  transition: color 250ms var(--ease);
}

.language-switcher button::after {
  position: absolute;
  right: 0.35rem;
  bottom: 0.45rem;
  left: 0.35rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--burgundy);
  content: "";
  transition: transform 250ms var(--ease);
}

.language-switcher button:hover,
.language-switcher button[aria-current="true"] {
  color: var(--burgundy);
}

.language-switcher button:hover::after,
.language-switcher button[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 1600px;
  min-height: 0;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6rem);
  padding: clamp(2.5rem, 6vw, 6rem) var(--page-padding) 0;
  overflow: hidden;
}

.hero-copy {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0 0 1.75rem;
  font-size: clamp(3.1rem, 6.8vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-wrap: balance;
  animation: copy-arrive 950ms var(--ease) 80ms both;
}

h1 em {
  color: var(--burgundy);
  font-style: normal;
}

.lead {
  max-width: 660px;
  margin: 0;
  color: #414244;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  animation: copy-arrive 950ms var(--ease) 420ms both;
}

.contact {
  display: flex;
  max-width: 660px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1rem;
  border-top: 1px solid var(--black);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact > span {
  color: var(--muted);
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.contact a span {
  color: var(--burgundy);
  font-size: 1.1rem;
  transition: transform 250ms var(--ease);
}

.contact a:hover span {
  transform: translate(0.2rem, -0.2rem);
}

.giraffe-stage {
  position: static;
  align-self: stretch;
  min-height: clamp(500px, 72vh, 760px);
  overflow: visible;
}

.giraffe-stage img {
  position: fixed;
  z-index: 1;
  right: max(var(--page-padding), calc((100vw - 1600px) * 0.5 + var(--page-padding)));
  bottom: -1px;
  width: min(36vw, 720px, calc((100svh - 84px) * 0.91));
  height: auto;
  max-width: none;
  transform-origin: bottom center;
  animation: giraffe-arrive 1.35s var(--ease) both;
}

@keyframes giraffe-arrive {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}

@keyframes copy-arrive {
  from {
    transform: translateX(-3rem);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: clamp(3rem, 9vw, 5rem);
    padding-bottom: 0;
  }

  .hero-copy {
    max-width: 720px;
  }

  .giraffe-stage {
    min-height: clamp(390px, 78vw, 590px);
  }

  .giraffe-stage img {
    position: absolute;
    right: 50%;
    width: min(94vw, 620px);
    transform: translateX(50%);
    animation-name: giraffe-arrive-mobile;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 74px;
  }

  .brand {
    width: 84px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .contact {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: clamp(0.58rem, 2.35vw, 0.72rem);
  }

  .contact > span {
    flex: 1 1 auto;
  }

  .contact a {
    flex: 0 0 auto;
    gap: 0.4rem;
    white-space: nowrap;
  }

  .giraffe-stage {
    min-height: clamp(390px, 112vw, 520px);
  }

  .giraffe-stage img {
    width: min(98vw, 510px);
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .contact {
    margin-top: 2rem;
  }

  .giraffe-stage {
    min-height: 480px;
  }
}

@keyframes giraffe-arrive-mobile {
  from { transform: translate(50%, 105%); }
  to { transform: translate(50%, 0); }
}

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