:root {
  color-scheme: light;
  --ink: #233836;
  --muted-ink: #485a51;
  --water: #183435;
  --deep-water: #11292b;
  --paper: #f2efe5;
  --ivory: #fff4dc;
  --signal: #f8ba65;
  --orange: #e75623;
  --cobalt: #1559c6;
  --headings: "Arial Narrow", "DejaVu Sans", Arial, sans-serif;
  --labels: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font: 100%/1.6 system-ui, sans-serif;
  background: var(--deep-water);
  color: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h2, h3, .hero-tagline { font-family: var(--headings); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.2vw, 3.65rem); letter-spacing: -.055em; text-wrap: balance; }
h3 { font-size: clamp(1.26rem, 2.4vw, 1.6rem); letter-spacing: -.035em; }
[id] { scroll-margin-top: 1.6rem; }

.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 3;
  top: 1rem;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--ivory);
  color: var(--ink);
  transform: translateY(calc(-100% - 1.1rem));
}
.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid #38504c;
  background: var(--deep-water);
}
.header-row, .site-header nav, .site-brand {
  display: flex;
  align-items: center;
}
.header-row { min-height: 4rem; justify-content: space-between; gap: .8rem 1.5rem; }
.site-brand {
  gap: .65rem;
  color: #f3f6fb;
  font: 400 clamp(1.45rem, 3vw, 2rem)/.95 "Bebas Neue", Impact, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-brand img { border: 2px solid #f47a20; border-radius: 2px; }
.site-header a { text-decoration: none; }
.site-header nav { gap: clamp(1rem, 3vw, 2.5rem); font-size: .9rem; font-weight: 650; }
.site-header nav a { padding-block: .6rem; }
.site-header nav a:hover, .nav-download { color: var(--signal); }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .22em; }

.hero {
  position: relative;
  background: radial-gradient(ellipse at 80% 40%, #244d4e 0%, var(--water) 48%, var(--deep-water) 100%);
}
.hero-layout {
  min-height: 35rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .platform, .feature-number, .yard-unit figcaption, .site-footer {
  font-family: var(--labels);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--signal);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.35;
  text-transform: uppercase;
}
.signal-line { flex: 0 0 1.6rem; height: .24rem; background: var(--orange); }
.wordmark { position: relative; width: min(100%, 30rem); margin-block: 1rem .45rem; }
.wordmark .loose-letter {
  position: absolute;
  top: 0;
  right: 0;
  width: 29.293%;
  transform: rotate(-11deg);
  transform-origin: 80.172% 16%;
  animation: loosen .85s .12s ease-out backwards;
}
@keyframes loosen {
  0% { transform: rotate(0); }
  48% { transform: rotate(-16deg); }
  74% { transform: rotate(-8deg); }
}
.hero-tagline {
  font-size: clamp(1.5rem, 2.8vw, 2.36rem);
  font-weight: 800;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-lede { max-width: 39ch; margin-block: .9rem 1.5rem; color: #d7e0d7; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding: .65rem 1rem;
  background: var(--signal);
  box-shadow: 0 3px 0 #b36e36;
  color: #162d2c;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { background: #ffd391; }
.button:active { box-shadow: 0 1px 0 #b36e36; transform: translateY(2px); }
.button:focus-visible { outline-color: var(--ivory); }
.text-link { font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.text-link:hover { color: var(--signal); }
.text-link span { display: inline-block; margin-left: .18em; }
.platform { margin-top: .85rem; font-size: .76rem; color: #c2d1c7; }

.yard-unit {
  position: relative;
  min-width: 0;
  min-height: 25rem;
  align-self: stretch;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.yard-chart {
  position: absolute;
  z-index: -1;
  inset: .5rem 0 1rem;
  background:
    linear-gradient(90deg, #a6ded32a 1px, transparent 1px) center / 2rem 2rem,
    linear-gradient(#a6ded32a 1px, transparent 1px) center / 2rem 2rem,
    linear-gradient(155deg, #153637 0%, #153637c0 45%, #1650506b 100%),
    url("atoll.webp") center 52% / cover;
  mask-image: radial-gradient(ellipse at 56% 51%, #000 10%, #000b 61%, transparent 77%);
}
.clanker {
  width: min(100%, 33rem);
  margin-left: 7%;
  filter: drop-shadow(0 1.2rem 1rem #081a1b66);
  animation: arrival .85s .08s ease-out backwards;
}
@keyframes arrival {
  0% { transform: translateY(12px) rotate(2deg); }
  65% { transform: translateY(-5px) rotate(-1deg); }
}
.wave-note {
  position: absolute;
  z-index: 1;
  top: 17%;
  left: 0;
  color: var(--signal);
  font: italic 700 clamp(1.15rem, 2.1vw, 1.65rem)/1 Georgia, serif;
  transform: rotate(-9deg);
}
.wave-note svg { display: block; margin: .25rem 0 0 .5rem; width: clamp(2rem, 5vw, 4.5rem); height: auto; }
.yard-unit figcaption {
  position: absolute;
  bottom: .35rem;
  right: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #112b2c;
  padding: .36rem .65rem .36rem .36rem;
  border: 1px solid #60797c;
  font-size: .77rem;
  line-height: 1.3;
}
.yard-unit figcaption b { display: block; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; }
.yard-unit figcaption small { display: block; color: #c2d1c7; font-size: inherit; }
.yard-number {
  background: var(--cobalt);
  color: white;
  padding: .32rem .42rem;
  font-size: 1rem;
  font-weight: 750;
}
.yard-edge {
  height: .42rem;
  background: repeating-linear-gradient(135deg, var(--signal) 0 .65rem, #253e3c .65rem 1.3rem);
}

.paper {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--paper);
  color: var(--ink);
}
.paper .eyebrow { color: #75441d; }
.paper .text-link:hover { color: #75441d; }
.trailer-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.trailer-copy h2, .workshop h2, .download-section h2 { margin-block: .7rem .85rem; }
.trailer-copy p:not(.eyebrow) { max-width: 35ch; margin-bottom: 1rem; color: var(--muted-ink); }
.trailer-screen {
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--deep-water);
  border: .35rem solid var(--deep-water);
  box-shadow: .35rem .35rem 0 #d6d2bf;
}
.trailer-screen iframe, .trailer-poster { display: block; width: 100%; height: 100%; border: 0; }
.trailer-poster img { width: 100%; height: 100%; object-fit: cover; }
.play-icon {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.75rem;
  height: 3.75rem;
  border: 2px solid var(--deep-water);
  background: var(--signal);
  color: var(--deep-water);
  box-shadow: 0 3px 0 var(--deep-water);
}
.trailer-poster:hover .play-icon, .trailer-poster:focus-visible .play-icon { background: var(--ivory); }

.workshop { border-top: 1px solid #bfc4b6; margin-top: clamp(3rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); }
.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.25rem, 4vw, 3rem);
  margin-top: 1.8rem;
}
.workshop-grid > div { border-top: 2px solid #9ba9a0; padding-top: .9rem; }
.feature-number { font-size: .8rem; color: #75441d; font-weight: 700; }
.workshop-grid h3 { margin-block: .35rem .55rem; }
.workshop-grid p { color: var(--muted-ink); max-width: 35ch; }

.download-section {
  background: var(--water);
  border-bottom: 1px solid #38504c;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.download-layout { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: space-between; align-items: center; }
.download-layout p:not(.eyebrow) { max-width: 52ch; color: #d7e0d7; }
.community-section {
  padding-block: clamp(1.9rem, 4vw, 3.2rem);
  border-bottom: 1px solid #38504c;
}
.community-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 2.5rem;
}
.community-copy h2 {
  margin-bottom: .5rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  text-wrap: wrap;
}
.community-copy p { color: #d7e0d7; }
.community-button {
  background: transparent;
  color: var(--ivory);
  border: 1px solid #829c91;
  box-shadow: none;
}
.community-button:hover { background: #234344; }
.community-button:active { box-shadow: none; }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  padding-block: 1.3rem;
  color: #c2d1c7;
  font-size: .77rem;
}
.site-footer a { text-underline-offset: .2em; }
.site-footer a:hover { color: var(--signal); }

@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 36rem); }
  .hero-layout, .trailer-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { min-height: 0; gap: .25rem; padding-block: 2.25rem 1.1rem; }
  .wordmark { width: min(100%, 26rem); }
  .hero-tagline { text-wrap: wrap; }
  .yard-unit { min-height: 0; }
  .clanker { width: min(92%, 27rem); margin-inline: auto; }
  .wave-note { top: 17%; left: 3%; }
  .yard-unit figcaption { bottom: .25rem; }
  .workshop-grid { grid-template-columns: minmax(0, 1fr); }
  .workshop-grid p { max-width: 52ch; }
}

@media (max-width: 420px) {
  .site-header nav { gap: .8rem; }
  .site-header nav a[href="#workshop"] { display: none; }
  .hero-actions { gap: .7rem 1rem; }
}

@media (max-width: 360px) {
  .header-row { column-gap: .5rem; }
  .site-brand { gap: .45rem; font-size: 1.3rem; }
  .site-brand img { width: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .clanker, .wordmark .loose-letter { animation: none; }
}
