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

@font-face {
  font-family: Poppins;
  src: url("fonts/poppins-extra-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --brand-green: #9fe870;
  --brand-ink: #173300;
  --building-green: #aee27e;
  --guidelines-yellow: #fdd302;
  --guidelines-ink: #121212;
  --wind-ease: cubic-bezier(0.2, 0.85, 0.28, 1);
  --display-font: "Wise Sans", sans-serif;
  --site-header-top: clamp(20px, 2.78vw, 40px);
  --site-logo-size: 80px;
  --download-inset: clamp(16px, 3vw, 36px);
}

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

body {
  margin: 0;
  background: var(--brand-green);
  color: var(--brand-ink);
  font: 500 14px/1.5 Poppins, sans-serif;
}

:root {
  overscroll-behavior-y: none;
  scrollbar-gutter: stable;
}

.home-page::after {
  content: "";
  display: block;
  height: var(--loop-end-space, 0px);
  background: var(--brand-green);
}

.home-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
}

.home-header {
  --dock: 0;
  --dock-gap: 20px;
  --details-gap: clamp(6px, 1.25vw, 18px);
  --details-title-width: min(clamp(120px, 24vw, 288px), calc(100vw - 2 * (var(--site-logo-size) + var(--details-gap) + 16px)));
  --logo-stroke: var(--brand-ink);
  position: fixed;
  z-index: 3;
  top: var(--site-header-top);
  left: max(24px, calc(50% - 620px));
  right: max(24px, calc(50% - 670px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dock-gap);
  color: var(--brand-ink);
  pointer-events: none;
}

.home-header > * { pointer-events: auto; }
:root[data-building-page] .home-header { --dock: 1; }
.home-header[data-brand-surface],
:root[data-building-page] .home-header {
  --logo-stroke: #000;
  color: var(--guidelines-ink);
}
.home-logo {
  translate: calc(var(--dock) * var(--logo-travel, 0px)) 0;
  transition: translate 520ms var(--wind-ease);
}

.home-header > .home-nav-slot {
  flex: none;
  width: var(--site-links-width, max-content);
  pointer-events: none;
}

.home-sections {
  translate: calc(var(--dock) * var(--nav-travel, 0px)) 0;
  width: var(--site-links-width, max-content);
  margin-left: auto;
  pointer-events: auto;
  transition: translate 520ms var(--wind-ease), width 240ms var(--wind-ease);
}

.home-header[data-details-docked] .home-sections {
  width: var(--site-logo-size);
}

.home-details-title {
  position: absolute;
  left: var(--details-center, 50%);
  top: 50%;
  width: var(--details-title-width);
  margin: 0;
  padding-block-end: 0.125em;
  translate: -50% -50%;
  color: inherit;
  font: 900 clamp(13px, 2.4vw, 30px)/1.164 var(--display-font);
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-details-title span {
  display: block;
  font-size: 0.5em;
  line-height: 1.375;
}

.home-logo-link {
  display: flex;
  flex: none;
  align-items: center;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.home-logo-mark {
  display: block;
  width: var(--site-logo-size);
  height: var(--site-logo-size);
}
.home-logo-mark [fill] { fill: currentColor; }
.home-logo-mark [stroke] { stroke: var(--logo-stroke); }

.glass-filters {
  position: absolute;
  pointer-events: none;
}

.glass {
  --glass-backdrop: var(--brand-green);
  --glass-tint: rgb(255 255 255 / 10%);
  --glass-hover-tint: rgb(255 255 255 / 17%);
  --glass-blur: blur(8px);
  --glass-glint: rgb(255 255 255 / 78%);
  --glass-edge: rgb(255 255 255 / 21%);
  position: relative;
  border: 0;
  background: transparent;
}

.glass > span { position: relative; }

.glass::before, .glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glass::before {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  background-color: var(--glass-tint);
  transition: background-color 180ms ease;
}

.glass::after {
  padding: 1px;
  background: linear-gradient(148deg, var(--glass-glint), var(--glass-edge) 35% 65%, var(--glass-glint));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.glass-refraction {
  --glass-tint: rgb(255 255 255 / 7%);
  --glass-blur: blur(8px) saturate(1.08);
}

/* Displace the backdrop on a separate layer so the control text stays crisp. */
.glass-refraction::before {
  filter: url("#sea-glass-distortion");
  clip-path: inset(0 round 999px);
}

.home-header[data-brand-surface] .home-sections,
.brand-details-button {
  --glass-backdrop: var(--guidelines-yellow);
}

:root[data-building-page] .home-sections { --glass-backdrop: var(--building-green); }

.home-pill {
  display: flex;
  flex: none;
  align-items: center;
  padding: 4px;
  border-radius: 48px;
}

.home-section-links {
  display: flex;
  flex: none;
  transition: opacity 180ms ease;
}

.home-header[data-details-docked] .home-section-links { opacity: 0; }

.home-pill-option {
  position: relative;
  display: block;
  padding: 4px 12px;
  border: 0;
  border-radius: 42px;
  background-color: transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

.home-pill-option.home-details-back {
  position: absolute;
  inset: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms, background-color 180ms ease, transform 180ms ease;
}

.home-header[data-details-docked] .home-details-back {
  opacity: 1;
  visibility: visible;
  transition-delay: 180ms, 0ms, 0ms, 0ms;
}

.home-pill-option, button.glass {
  --glass-foreground: var(--guidelines-ink);
  color: var(--glass-foreground);
}

/* Use Lab lightness on browsers that have relative colors but no contrast-color(). */
@supports (color: lab(from black clamp(0, (49.5 - l) * 1000, 100) 0 0)) {
  .home-pill-option, button.glass {
    --glass-foreground: lab(from var(--glass-backdrop) clamp(0, (49.5 - l) * 1000, 100) 0 0);
  }
}

@supports (color: contrast-color(black)) {
  .home-pill-option, button.glass {
    --glass-foreground: contrast-color(var(--glass-backdrop));
  }
}

.home-pill-option[aria-current] {
  font-weight: 800;
}

.home-pill-option[aria-current]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 32%),
    inset 0 2px 2px -1px rgb(255 255 255 / 72%),
    inset 0 -2px 2px -1px rgb(0 0 0 / 16%);
  pointer-events: none;
}

@media (hover: hover) {
  .home-pill-option:not([aria-current]):hover {
    background-color: rgb(255 255 255 / 14%);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 45%), inset 0 -1px 2px rgb(0 0 0 / 12%);
  }
  button.glass:hover { --glass-tint: var(--glass-hover-tint); }
}

:is(.home-pill-option, button.glass):active { transform: scale(0.95); }

:is(.home-logo-link, .home-pill-option, .brand-details-button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.home-scene-motion { position: absolute; inset: 0; }

.home-hero {
  --hero-unit: min(1px, 100vw / 1440, 100svh / 800);
  background: var(--brand-green);
}

.hero-entry {
  position: relative;
  min-height: inherit;
  background: inherit;
}

.hero-entry-mask {
  position: absolute;
  z-index: 1;
  inset: 0;
  visibility: hidden;
  background: inherit;
  pointer-events: none;
}

.hero-artboard {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: calc(1440 * var(--hero-unit));
  height: calc(800 * var(--hero-unit));
  text-align: center;
}

.hero-backdrop {
  position: absolute;
  width: calc(633 * var(--hero-unit));
  height: auto;
  pointer-events: none;
}

.hero-backdrop--left {
  left: calc(-209 * var(--hero-unit));
  top: calc(242 * var(--hero-unit));
}

.hero-backdrop--top-right {
  right: calc(61 * var(--hero-unit));
  top: calc(-167 * var(--hero-unit));
  width: calc(319 * var(--hero-unit));
  opacity: 0.1;
}

.hero-backdrop--right {
  left: calc(827 * var(--hero-unit));
  top: calc(553 * var(--hero-unit));
  transform: scaleY(-1);
}

.hero-lockup > * {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  margin: 0;
}

.hero-wind {
  top: calc(100 * var(--hero-unit));
  width: calc(281 * var(--hero-unit));
  aspect-ratio: 1;
}

.hero-wind img { position: absolute; display: block; height: auto; }
.hero-wind-middle { left: 25%; top: 23.43%; width: 57.82%; }
.hero-wind-top { left: 31.25%; top: 14.06%; width: 20.31%; }
.hero-wind-bottom { left: 18.75%; top: 57.81%; width: 51.56%; transform: scaleY(-1); }

.hero-credit {
  top: calc(726 * var(--hero-unit));
  display: grid;
  gap: calc(3 * var(--hero-unit));
  width: max-content;
  color: rgb(23 51 0 / 50%);
  font-size: calc(10 * var(--hero-unit));
  text-transform: uppercase;
}

.hero-title {
  top: calc(399 * var(--hero-unit));
  width: max-content;
  font: 900 calc(80 * var(--hero-unit))/0.95 var(--display-font);
  text-transform: uppercase;
}

.hero-title span { display: block; }

.hero-intro {
  top: calc(590 * var(--hero-unit));
  width: calc(935 * var(--hero-unit));
  font-size: calc(16 * var(--hero-unit));
}

.brand-scene {
  background: var(--guidelines-yellow);
  color: var(--guidelines-ink);
}

.brand-scene-copy {
  position: absolute;
  inset: 50% clamp(16px, 2.78vw, 40px) auto;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 1.945vw, 28px);
  text-align: center;
}

.brand-scene-heading {
  margin: 0;
  padding-block-end: 0.125em;
  font: 900 clamp(52px, 8.89vw, 128px)/1.164 var(--display-font);
  text-transform: uppercase;
}

.brand-scene-kicker {
  display: block;
  font-size: clamp(25px, 4.4445vw, 64px);
  line-height: 1.375;
}

.brand-scene-title { display: block; }

.brand-details-button {
  --glass-tint: rgb(255 255 255 / 3%);
  --glass-hover-tint: rgb(255 255 255 / 9%);
  --glass-edge: rgb(255 255 255 / 5%);
  display: grid;
  place-items: center;
  min-width: 174px;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  font: 500 18px/1.35 Poppins, sans-serif;
  cursor: pointer;
  transition: transform 180ms ease;
}

.brand-details-button::before {
  box-shadow: inset 0 3px 12px rgb(255 255 255 / 9%), inset 0 -3px 12px rgb(0 0 0 / 5%);
}

.brand-details {
  --details-gutter: clamp(12px, 4vw, 48px);
  --details-width: 1280px;
  position: fixed;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0 0 calc(64px + 2 * var(--download-inset) + env(safe-area-inset-bottom, 0px));
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--brand-green);
  color: var(--brand-ink);
}

:root:has(.brand-details[open]) { overflow: hidden; }

.brand-details-spacer {
  position: sticky;
  z-index: 1;
  top: 0;
  height: calc(var(--site-header-top) + var(--site-logo-size) + 12px);
  background: var(--brand-green);
}

.brand-title-flight {
  position: fixed;
  z-index: 4;
  color: var(--guidelines-ink);
  text-align: center;
  pointer-events: none;
}

.brand-details-boards {
  display: grid;
  gap: clamp(8px, 1.6vw, 24px);
  width: min(var(--details-width), 100% - 2 * var(--details-gutter));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

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

.brand-details-boards.has-image-motion img {
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0, 0, 0.2, 1);
}

.brand-details-boards.has-image-motion img.is-entered { opacity: 1; }
.brand-details-boards img.is-bent { clip-path: inset(50%); }

.brand-details-bend {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.brand-kit-download {
  position: fixed;
  z-index: 3;
  right: calc(var(--download-inset) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--download-inset) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--brand-ink);
  color: white;
  box-shadow: 0 6px 20px rgb(0 0 0 / 22%);
  text-decoration: none;
}

.brand-details:not([open]) + .brand-kit-download { display: none; }

.brand-kit-download-icon {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--brand-ink);
  font: 600 24px/1 system-ui, sans-serif;
}

.brand-kit-download-copy { display: grid; gap: 2px; }
.brand-kit-download-title { font: 800 14px/1.3 Poppins, sans-serif; }
.brand-kit-download-meta { font-size: 11px; line-height: 1.3; color: var(--brand-green); }

@media (hover: hover) {
  .brand-kit-download:hover .brand-kit-download-icon { background: white; }
}

.brand-kit-download:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--brand-ink);
}

:root[data-building-page] { overflow: hidden; }
:root[data-building-page] .home-page { visibility: hidden; }

.building-page {
  --building-unit: min(100vw / 1440, 100svh / 800);
  position: fixed;
  inset: 0;
  overflow: clip;
  background: var(--building-green);
}

.building-artboard {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: calc(1440 * var(--building-unit));
  height: calc(800 * var(--building-unit));
}

.building-title {
  position: absolute;
  top: 31.1%;
  inset-inline: 0;
  display: flex;
  justify-content: space-between;
  width: 65%;
  margin: 0 auto;
  color: rgb(18 18 18 / 30%);
  font: 900 calc(128 * var(--building-unit))/1 var(--display-font);
}

.building-helmet {
  position: absolute;
  top: 17%;
  left: 23.9%;
  width: 53%;
  height: auto;
}

@media (max-width: 760px) {
  .home-header { --dock-gap: 8px; inset-inline: 12px; }
  .building-page { --building-unit: min(100vw / 1060, 100svh / 800); }
  .home-pill-option { padding: 4px clamp(5px, 1.7vw, 12px); font-size: 13px; }
  .home-hero { min-height: max(100svh, 585px); }
  .hero-motion { position: relative; }
  .hero-artboard {
    position: relative;
    inset: auto;
    translate: none;
    width: 100%;
    height: auto;
    min-height: max(100svh, 585px);
    display: grid;
    align-items: center;
    padding: 78px 16px 30px;
  }

  .hero-lockup {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 18px;
    width: 100%;
  }

  .hero-lockup > * { position: static; inset: auto; translate: none; }
  .hero-wind { position: relative; width: clamp(145px, 42vw, 218px); margin-bottom: -12px; }
  .hero-credit { max-width: 100%; gap: 2px; font-size: 8px; }
  .hero-title { width: 100%; font-size: clamp(34px, 8.4vw, 58px); line-height: 0.98; }
  .hero-intro { width: min(100%, 510px); font-size: clamp(13px, 2.25vw, 15px); }
  .hero-backdrop { width: clamp(250px, 60vw, 440px); }
  .hero-backdrop--left { top: 30%; left: -33%; }
  .hero-backdrop--top-right { top: -16%; right: -8%; width: clamp(135px, 34vw, 215px); }
  .hero-backdrop--right { top: auto; bottom: -8%; left: 53%; }
  .brand-scene-heading { padding-block-end: 0; font-size: clamp(46px, 11.5vw, 76px); line-height: 0.98; }
  .brand-scene-kicker { margin-bottom: 12px; line-height: 1.1; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-logo.is-wind-playing .home-wind-middle { animation: home-wind-middle 2s linear; }
  .home-logo.is-wind-playing .home-wind-top { animation: home-wind-top 2s linear; }
  .home-logo.is-wind-playing .home-wind-bottom { animation: home-wind-bottom 2s linear; }
}

@media (prefers-reduced-motion: reduce) {
  .home-logo, .home-sections, .home-section-links, .home-pill-option, .home-pill-option.home-details-back, .brand-details-button, .glass::before { transition: none; }
  :is(.home-pill-option, button.glass):active { transform: none; }
}

@keyframes home-wind-middle {
  0%, 3.619% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; }
  38.421%, 100% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
}

@keyframes home-wind-top {
  0% {
    animation-timing-function: cubic-bezier(1, -0.004, 0.699, 1.011);
    stroke-dasharray: 0 1;
    stroke-dashoffset: -1;
    visibility: hidden;
  }
  24.839%, 100% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
}

@keyframes home-wind-bottom {
  0% { stroke-dasharray: 0 1; stroke-dashoffset: -1; visibility: hidden; }
  13.292% {
    animation-timing-function: cubic-bezier(1, -0.004, 0.699, 1.011);
    stroke-dasharray: 0 1;
    stroke-dashoffset: -1;
    visibility: hidden;
  }
  41.417%, 100% { stroke-dasharray: 1 1; stroke-dashoffset: 0; visibility: visible; }
}
