@font-face {
  font-family: "PP Pangram Sans Rounded";
  src: url("/assets/fonts/PPPangramSansRounded-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "PP Pangram Sans Rounded";
  src: url("/assets/fonts/PPPangramSansRounded-Extrabold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "PP Pangram Sans Rounded Narrow";
  src: url("/assets/fonts/PPPangramSansRounded-NarrowSemibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --night: #03111f;
  --navy: #071b30;
  --navy-raised: #0b2944;
  --yellow: #ffc400;
  --kraft: #dfc49d;
  --white: #fffdf7;
  --muted: #b9c3cc;
  --line: rgba(255, 253, 247, 0.2);
  --display: "PP Pangram Sans Rounded", ui-rounded, sans-serif;
  --narrow: "PP Pangram Sans Rounded Narrow", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--night);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  color: var(--night);
  background: var(--yellow);
  font-family: var(--narrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(18px, 3.6vw, 56px);
  background: linear-gradient(180deg, rgba(3, 17, 31, 0.84), transparent);
}

.brand {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 196, 0, 0.72);
  border-radius: 50%;
}

.section-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.section-nav a,
.section-label,
.eyebrow,
.stats-status,
.film-status {
  font-family: var(--narrow);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-nav a {
  min-height: 44px;
  padding-block: 13px 9px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.36);
  font-size: 0.74rem;
  text-decoration: none;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

.hero,
.hero-film {
  min-height: 100svh;
}

.hero-film {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy) url("/assets/images/video-poster.jpg") center / cover no-repeat;
  isolation: isolate;
}

.hero-film video {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  cursor: pointer;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 17, 31, 0.62) 0%, rgba(3, 17, 31, 0.02) 33%, rgba(3, 17, 31, 0.12) 48%, rgba(3, 17, 31, 0.94) 100%),
    linear-gradient(90deg, rgba(3, 17, 31, 0.76) 0%, transparent 64%);
  pointer-events: none;
}

.hero-copy {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding: 132px clamp(18px, 3.6vw, 56px) 42px;
}

.eyebrow,
.section-label {
  margin: 0 0 15px;
  color: var(--yellow);
  font-size: 0.75rem;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

h1 {
  max-width: 1050px;
  font-size: clamp(4rem, 7.8vw, 8rem);
  line-height: 0.84;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.36);
}

h1 span {
  display: block;
}

.lede {
  max-width: 690px;
  margin: 24px 0 28px;
  color: rgba(255, 253, 247, 0.86);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.38;
}

.lede strong {
  color: var(--yellow);
  font-weight: 800;
}

.link-list {
  display: grid;
  max-width: 1040px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.44);
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
}

.link-list a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--narrow);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.link-list a:last-child {
  border-right: 0;
}

.link-list a:hover,
.link-list a:focus-visible {
  color: var(--night);
  background: var(--yellow);
}

.link-list b {
  font-size: 1rem;
}

.film-controls {
  position: absolute;
  z-index: 5;
  right: clamp(18px, 3.6vw, 56px);
  bottom: 42px;
  display: grid;
  min-width: 260px;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(3, 17, 31, 0.84);
  transition: opacity 180ms ease;
}

.film-controls button {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  color: var(--white);
  background: transparent;
  font-family: var(--narrow);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.film-controls button + .film-status + button,
.film-controls button:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
}

.film-controls button:hover,
.film-controls button:focus-visible {
  color: var(--night);
  background: var(--yellow);
}

.film-status {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.63rem;
}

.hero-film[data-playing="true"]:not(:hover):not(:focus-within) .film-controls {
  opacity: 0.38;
}

.shift {
  position: relative;
  padding: clamp(72px, 9vw, 138px) clamp(20px, 6vw, 92px) clamp(64px, 8vw, 112px);
  border-top: 7px solid var(--yellow);
  background: var(--navy);
}

.shift::before {
  position: absolute;
  top: 0;
  right: clamp(20px, 6vw, 92px);
  width: 86px;
  height: 40px;
  background: var(--yellow);
  content: "";
  clip-path: polygon(0 0, 100% 0, 100% 44%, 88% 70%, 76% 44%, 64% 70%, 52% 44%, 40% 70%, 28% 44%, 16% 70%, 0 44%);
}

.shift-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 44px;
  align-items: end;
}

.shift-heading .section-label {
  grid-column: 1 / -1;
}

.shift-heading h2,
.story-heading h2,
.clock-copy h2,
.contract h2 {
  font-size: clamp(3.4rem, 6.8vw, 7.4rem);
  line-height: 0.87;
}

.stats-status {
  max-width: 360px;
  margin: 0 0 0.55em;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: right;
}

.shift[data-live-state="live"] .stats-status::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.shift-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(42px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shift-stats > div {
  min-width: 0;
  padding: clamp(24px, 3.2vw, 46px);
  border-right: 1px solid var(--line);
}

.shift-stats > div:first-child {
  padding-left: 0;
}

.shift-stats > div:last-child {
  border-right: 0;
}

.shift-stats dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--narrow);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.shift-stats dd {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.claim-board {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) 1fr;
  gap: 38px;
  align-items: center;
  margin-top: 30px;
  padding: 22px 26px;
  color: var(--white);
  background: var(--night);
}

.claim-board .section-label {
  margin: 0;
}

.claim-board ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.claim-board li {
  font-size: clamp(1rem, 1.9vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.claim-empty {
  color: rgba(255, 253, 247, 0.68);
}

.story {
  position: relative;
  overflow: hidden;
  background-color: var(--night);
  background-image: url("/assets/images/bag-banner.webp");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

.world-shot {
  position: relative;
  height: min(42vw, 590px);
  min-height: 380px;
  margin: 0;
  overflow: hidden;
}

.world-shot::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 17, 31, 0.08), rgba(3, 17, 31, 0.9));
  content: "";
}

.world-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 36px;
  align-items: end;
  margin-top: -120px;
  padding: 0 clamp(20px, 6vw, 92px) 52px;
}

.story-heading .section-label {
  margin-bottom: 0.9em;
}

.shift-steps {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0 clamp(20px, 6vw, 92px) clamp(78px, 9vw, 130px);
  background: var(--night);
  list-style: none;
}

.shift-steps li {
  min-height: 260px;
  padding: clamp(26px, 3vw, 44px);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.shift-steps li:first-child {
  padding-left: 0;
}

.shift-steps li:last-child {
  border-right: 0;
}

.shift-steps li > span {
  color: var(--yellow);
  font-family: var(--narrow);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.shift-steps h3 {
  max-width: 320px;
  margin-top: 46px;
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  line-height: 0.95;
}

.shift-steps p {
  max-width: 320px;
  margin: 18px 0 0;
  color: var(--muted);
}

.clock-in {
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  background: var(--yellow);
}

.clock-in > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.clock-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(48px, 5vw, 84px);
  color: var(--night);
}

.clock-copy .section-label {
  color: rgba(3, 17, 31, 0.62);
}

.clock-copy h2 {
  max-width: 650px;
  font-size: clamp(3.4rem, 4.25vw, 5.6rem);
}

.clock-copy > p:not(.section-label) {
  max-width: 480px;
  margin: 30px 0;
  font-size: 1.08rem;
}

.clock-copy > a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 24px;
  padding: 10px 18px;
  border: 2px solid var(--night);
  font-family: var(--narrow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.clock-copy > a:hover,
.clock-copy > a:focus-visible {
  color: var(--yellow);
  background: var(--night);
}

.contract {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.76fr);
  gap: clamp(52px, 8vw, 140px);
  align-items: center;
  padding: clamp(82px, 11vw, 170px) clamp(20px, 6vw, 92px);
  background: var(--navy);
}

.contract-slip {
  position: relative;
  padding: 48px 38px 42px;
  color: var(--night);
  background: var(--kraft);
  clip-path: polygon(0 0, 3% 8px, 6% 0, 9% 8px, 12% 0, 15% 8px, 18% 0, 21% 8px, 24% 0, 27% 8px, 30% 0, 33% 8px, 36% 0, 39% 8px, 42% 0, 45% 8px, 48% 0, 51% 8px, 54% 0, 57% 8px, 60% 0, 63% 8px, 66% 0, 69% 8px, 72% 0, 75% 8px, 78% 0, 81% 8px, 84% 0, 87% 8px, 90% 0, 93% 8px, 96% 0, 100% 8px, 100% 100%, 0 100%);
}

.contract code {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.74rem, 1.2vw, 0.98rem);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contract-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 2px dashed rgba(3, 17, 31, 0.34);
}

.contract button,
.contract-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 2px solid var(--night);
  color: var(--night);
  background: transparent;
  font-family: var(--narrow);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.contract button:hover,
.contract button:focus-visible,
.contract-actions a:hover,
.contract-actions a:focus-visible {
  color: var(--yellow);
  background: var(--night);
}

.copy-status {
  display: block;
  min-height: 1.2em;
  margin-top: 14px;
  font-family: var(--narrow);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 680px) auto;
  gap: 42px;
  align-items: end;
  padding: 46px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: rgba(255, 253, 247, 0.56);
  background: var(--night);
  font-size: 0.69rem;
}

.footer-brand {
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.footer-brand span {
  color: var(--yellow);
}

.site-footer p {
  margin: 0;
}

.copyright {
  white-space: nowrap;
}

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

@media (max-width: 1120px) {
  .film-controls {
    top: 106px;
    bottom: auto;
  }

  .shift-heading,
  .story-heading,
  .contract {
    grid-template-columns: 1fr;
  }

  .stats-status {
    margin-top: 18px;
    text-align: left;
  }

  .story-heading {
    gap: 8px;
  }

  .clock-in {
    grid-template-columns: 1fr 0.9fr;
  }
}

@media (max-width: 820px) {
  .section-nav a:first-child {
    display: none;
  }

  .hero-copy {
    padding-bottom: 28px;
  }

  .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-list a:nth-child(2) {
    border-right: 0;
  }

  .link-list a:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .shift-heading h2,
  .story-heading h2,
  .clock-copy h2,
  .contract h2 {
    font-size: clamp(3.25rem, 11vw, 5.5rem);
  }

  .claim-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .world-shot {
    height: 62vw;
  }

  .shift-steps {
    grid-template-columns: 1fr;
  }

  .shift-steps li,
  .shift-steps li:first-child {
    min-height: 0;
    padding: 28px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .shift-steps li:last-child {
    border-bottom: 0;
  }

  .shift-steps h3 {
    margin-top: 22px;
  }

  .clock-in {
    grid-template-columns: 1fr;
  }

  .clock-in > img {
    max-height: 520px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .section-nav {
    gap: 12px;
  }

  .section-nav a:nth-child(2) {
    display: none;
  }

  .section-nav a {
    font-size: 0.68rem;
  }

  .hero-film {
    min-height: 100svh;
  }

  .hero-film video {
    object-position: 52% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(3, 17, 31, 0.56) 0%, rgba(3, 17, 31, 0.08) 28%, rgba(3, 17, 31, 0.95) 72%, var(--night) 100%);
  }

  .hero-copy {
    padding: 116px 16px 20px;
  }

  h1 {
    font-size: clamp(3.05rem, 14.2vw, 4.35rem);
    line-height: 0.87;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.66rem;
  }

  .lede {
    margin: 16px 0 18px;
    font-size: 0.9rem;
  }

  .link-list a {
    min-height: 48px;
    padding: 8px 10px;
    font-size: 0.66rem;
  }

  .film-controls {
    top: 78px;
    right: 16px;
    min-width: 216px;
  }

  .film-controls button {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.64rem;
  }

  .film-status {
    display: none;
  }

  .shift {
    padding: 70px 16px 64px;
  }

  .shift::before {
    right: 16px;
  }

  .shift-stats {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .shift-stats > div,
  .shift-stats > div:first-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .shift-stats > div:last-child {
    border-bottom: 0;
  }

  .shift-stats dd {
    font-size: 2.6rem;
  }

  .claim-board {
    margin-top: 20px;
    padding: 20px;
  }

  .world-shot {
    height: 72vw;
    min-height: 300px;
  }

  .world-shot img {
    object-position: 51% center;
  }

  .story-heading {
    margin-top: -58px;
    padding: 0 16px 34px;
  }

  .shift-steps {
    padding: 0 16px 76px;
  }

  .clock-in {
    min-height: 0;
  }

  .clock-in > img {
    height: 78vw;
  }

  .clock-copy {
    padding: 56px 20px 64px;
  }

  .clock-copy h2 {
    font-size: clamp(2.7rem, 12.5vw, 3.6rem);
  }

  .contract {
    padding: 76px 16px;
  }

  .contract-slip {
    padding: 42px 24px 32px;
  }

  .contract-actions {
    flex-wrap: wrap;
  }

  .contract code {
    font-size: 0.78rem;
  }

  .site-footer {
    padding: 38px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
