/* Inter (variable), self-hosted. Licence: /fonts/Inter-LICENSE.txt */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'), url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #070707;
  --panel: #111111;
  --panel-hover: #171717;
  --text: #f4f4f4;
  --muted: #a7a7a7;
  --soft: #808080;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.075), transparent 36rem),
    var(--bg);
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-weight: 800;
  /* bump it up */
  letter-spacing: -0.03em;
  /* tighten slightly */
}

p {
  font-weight: 400;
}

.page {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 76px 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  text-align: center;
  margin-bottom: 45px;
  animation: fadeUp 700ms ease both;
}

.logo-mark {
  width: clamp(120px, 18vw, 220px);
  height: auto;
  margin: 0 auto 28px;
  display: block;
}

.logo-placeholder {
  width: clamp(120px, 18vw, 220px);
  aspect-ratio: 2 / 1;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.intro {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 16px);
  line-height: 1.6;
}

.portfolio {
  animation: fadeUp 700ms ease 120ms both;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-label::before,
.section-label::after {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--border);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.brand-card {
  position: relative;
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent),
    var(--panel-hover);
  outline: none;
}

.brand-card:focus-visible {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.12),
    var(--shadow);
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 24px;
  border-radius: 18px;
}

.brand-title {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.brand-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

footer {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 28px 24px 36px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* Subtle film grain for a bit of texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page,
footer {
  position: relative;
  z-index: 1;
}

/* Logo: tap to flex */
.logo-button {
  position: relative;
  display: block;
  width: clamp(140px, 20vw, 240px);
  margin: 0 auto 28px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.logo-button:focus-visible {
  outline: 2px solid var(--border-strong);
  outline-offset: 10px;
  border-radius: 12px;
}

.logo-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 550.6 / 349.1;
  overflow: visible;
  color: #fff;
}

/* percentages below are of the whole logo, not each layer */
.logo-body,
.logo-pow {
  transform-box: view-box;
}

.logo-body {
  transform-origin: 80% 70%;
}

.logo-pow {
  /* scale out from the fist so the lines burst outward */
  transform-origin: 76% 30%;
}

.logo-button:hover .logo-pow,
.logo-button:focus-visible .logo-pow {
  animation: powPulse 800ms ease-in-out infinite;
}

@keyframes powPulse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(1.5%, -2.5%) scale(1.08); }
}

.logo-button.flexing .logo-body {
  animation: flex 420ms cubic-bezier(.34, 1.56, .64, 1);
}

.logo-button.flexing .logo-pow {
  animation: pow 420ms ease-out;
}

@keyframes flex {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.06, 0.95) rotate(-2deg); }
  70% { transform: scale(0.98, 1.03) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes pow {
  0% { transform: scale(1); }
  40% { transform: translate(4%, -7%) scale(1.3); }
  100% { transform: scale(1); }
}

.rep-toast {
  position: absolute;
  left: 50%;
  top: -12px;
  translate: -50% -100%;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.9);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rep-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor spotlight on cards */
.brand-card {
  overflow: hidden;
}

.brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.08), transparent 60%);
}

.brand-card:hover::after {
  opacity: 1;
}

.brand-logo {
  transition: transform 220ms cubic-bezier(.34, 1.56, .64, 1);
}

.brand-card:hover .brand-logo,
.brand-card:focus-visible .brand-logo {
  transform: scale(1.06) rotate(-3deg);
}

.brand-cta {
  margin-top: 18px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.brand-card:hover .brand-cta,
.brand-card:focus-visible .brand-cta {
  color: var(--text);
  transform: translateX(3px);
}

/* The origin story */
.origin {
  max-width: 520px;
  margin: 0 auto;
}

.origin summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  transition: color 160ms ease;
}

.origin summary::-webkit-details-marker {
  display: none;
}

.origin summary::after {
  content: "+";
  font-weight: 500;
  transition: transform 200ms ease;
}

.origin[open] summary::after {
  transform: rotate(45deg);
}

.origin summary:hover {
  color: var(--text);
}

.challenge {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: text-decoration-color 160ms ease;
}

.challenge:hover,
.challenge:focus-visible {
  text-decoration-color: var(--text);
  outline: none;
}

.origin p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Contact */
.contact {
  margin-top: 44px;
  text-align: center;
  animation: fadeUp 700ms ease 240ms both;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  outline: none;
}

.contact-button .arrow {
  transition: transform 180ms ease;
}

.contact-button:hover .arrow {
  transform: translateX(3px);
}

.legal {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 12px;
  line-height: 1.8;
}

.legal p {
  margin: 0;
}

/* wrap between phrases, never mid-phrase */
.legal p > span {
  display: inline-block;
}

.legal .sep {
  margin: 0 6px;
  opacity: 0.6;
}

@media (max-width: 520px) {
  .legal {
    line-height: 1.7;
  }

  .legal p + p {
    margin-top: 8px;
  }

  .legal .sep {
    display: none;
  }

  .legal p > span {
    display: block;
  }
}

.contact-note {
  max-width: 420px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Thumb war Easter egg */
.thumbwar {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 7, 7, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.thumbwar.open {
  opacity: 1;
  pointer-events: auto;
}

.tw-inner {
  max-width: 520px;
}

.tw-thumb {
  font-size: clamp(72px, 14vw, 120px);
  line-height: 1;
  display: inline-block;
  transform-origin: 50% 90%;
}

.tw-thumb.wobble {
  animation: wobble 500ms ease-in-out infinite;
}

.tw-thumb.bump {
  animation: bump 120ms ease-out;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

@keyframes bump {
  50% { transform: scale(1.15) rotate(-6deg); }
}

.tw-title {
  margin: 22px 0 8px;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  min-height: 1.1em;
}

.tw-sub {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
  min-height: 1.6em;
}

.tw-meter {
  height: 8px;
  margin: 0 auto 26px;
  max-width: 320px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  visibility: hidden;
}

.tw-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--text);
  transition: width 90ms ease;
}

.tw-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbwar:focus {
  outline: none;
}

.tw-actions button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.tw-actions[hidden] {
  display: none;
}

.tw-mash {
  min-width: 220px;
  padding: 18px 26px;
  font-size: 17px;
  touch-action: manipulation;
  user-select: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page {
    padding-top: 72px;
    justify-content: flex-start;
  }

  .hero {
    margin-bottom: 52px;
  }

  .brand-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: 220px;
  }

  .section-label::before,
  .section-label::after {
    width: 40px;
  }
}

/* Arena: floodlit ring behind the page */
html {
  overflow-x: clip;
}

.arena-wrap {
  pointer-events: none;
  overflow: hidden;
}

.arena {
  display: block;
}

/* Wide screens: the scene is drawn at a fixed size and pinned so the
   ropes always run behind the middle of the product cards */
.brand-grid {
  position: relative;
}

.arena-wrap--wide {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(50% - 572px);
  width: 100vw;
  height: 900px;
  margin-left: -50vw;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.arena-wrap--wide .arena {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 900px;
  margin-left: -720px;
  overflow: visible;
}

/* Smaller laptops and landscape tablets: draw the scene a little smaller
   so the floodlights stay on screen */
@media (max-width: 1300px) {
  .arena-wrap--wide {
    top: calc(50% - 476px);
    height: 750px;
  }

  .arena-wrap--wide .arena {
    width: 1200px;
    height: 750px;
    margin-left: -600px;
  }
}

/* Phones and portrait tablets: a simpler scene pinned to the top */
.arena-wrap--narrow {
  display: none;
  position: absolute;
  z-index: 0;
  inset: 0 0 auto 0;
  height: max(100vh, 700px);
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
}

.arena-wrap--narrow .arena {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .arena-wrap--wide {
    display: none;
  }

  .arena-wrap--narrow {
    display: block;
  }
}

/* lights come on as the page loads */
.arena .bank {
  animation: lampsOn 700ms ease-out both;
}

.arena .bank-r {
  animation-delay: 220ms;
}

.arena .beams {
  animation: lampsOn 1200ms ease-out 450ms both;
}

.arena .ropes {
  animation: lampsOn 1200ms ease-out 300ms both;
}

@keyframes lampsOn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* lights flare when the logo flexes */
.arena .flash {
  opacity: 0;
}

.arena-wrap.flare .flash {
  animation: flash 700ms ease-out;
}

@keyframes flash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {

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

/* 404 page */
body.page-404 {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  text-align: center;
}

.page-404 main {
  position: relative;
  z-index: 1;
  max-width: 520px;
  animation: fadeUp 700ms ease both;
}

.page-404 .logo {
  display: block;
  width: clamp(120px, 18vw, 180px);
  margin: 0 auto 32px;
  transform-origin: 50% 100%;
  animation: tapped 2.4s ease-in-out 600ms infinite;
}

.page-404 .eyebrow {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.page-404 h1 {
  font-size: clamp(34px, 6vw, 60px);
}

.page-404 .lede {
  margin: 18px auto 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* the logo taps the mat three times, then rests */
@keyframes tapped {
  0%, 40%, 100% { transform: rotate(0); }
  6%, 18%, 30% { transform: rotate(-4deg) translateY(2px); }
  12%, 24%, 36% { transform: rotate(0) translateY(0); }
}
