:root {
  --ink: #050505;
  --paper: #f4f1ec;
  --muted: rgba(244, 241, 236, 0.7);
  --faint: rgba(244, 241, 236, 0.38);
  --ember: #f15a29;
  --ember-glow: rgba(240, 104, 32, 0.35);
  --font: "Outfit", "Segoe UI", sans-serif;
  --pad-x: clamp(1.5rem, 7vw, 6.5rem);
  --pad-y: clamp(1.75rem, 6vh, 4.75rem);
  --dock: 5.75rem;
}

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

html,
body {
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
}

body {
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.stage {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.stage__media,
.stage__veil,
.stage__grain {
  position: absolute;
  pointer-events: none;
}

.stage__media {
  z-index: 0;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.stage__media picture,
.stage__media img {
  height: 100%;
  width: auto;
}

.stage__media img {
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  /*
    Desktop: flush right + bottom, so only the left edge needs a dissolve
    into the copy. Overlaying black still leaves a plate; the mask punches
    pixels out so --ink shows through.
  */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 36%,
    #000 100%
  );
  mask-image: linear-gradient(90deg, transparent 0%, #000 36%, #000 100%);
}

.stage__veil {
  z-index: 1;
  inset: 0;
  /* Copy column only — stop before the figure so the socks stay readable. */
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    var(--ink) 26%,
    color-mix(in srgb, var(--ink) 55%, transparent) 42%,
    transparent 58%
  );
}

.stage__grain {
  z-index: 2;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.panel,
.dock {
  position: relative;
  z-index: 3;
}

.panel {
  padding: var(--pad-y) var(--pad-x) 2rem;
  max-width: 42rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand__logo {
  width: min(17.5rem, 72vw);
  height: auto;
}

.headline {
  margin-top: clamp(2.2rem, 5.5vh, 3.8rem);
  font-size: clamp(2.35rem, 5.2vw, 4.05rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.038em;
}

.headline span {
  display: block;
  color: var(--ember);
}

.lede {
  margin-top: 1.35rem;
  max-width: 33rem;
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  color: var(--muted);
}

.status {
  margin-top: 1.75rem;
}

.status__rule {
  display: block;
  width: 2.35rem;
  height: 2px;
  background: var(--ember);
}

.status__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.9rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.status__dot {
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 var(--ember-glow);
  animation: pulse 2.4s ease-out infinite;
}

.dock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--dock);
  padding: 1.15rem var(--pad-x) calc(1.45rem + env(safe-area-inset-bottom, 0px));
}

.social {
  display: flex;
  gap: 0.65rem;
}

.social__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 236, 0.38);
  border-radius: 50%;
  color: var(--paper);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.social__btn svg {
  width: 1.02rem;
  height: 1.02rem;
}

.social__btn:hover,
.social__btn:focus-visible {
  color: var(--ember);
  border-color: var(--ember);
  background-color: rgba(240, 104, 32, 0.08);
}

.social__btn:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.legal {
  grid-column: 2;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
  white-space: nowrap;
}

.brand,
.headline,
.lede,
.status,
.social,
.legal {
  animation: rise 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand {
  animation-delay: 40ms;
}
.headline {
  animation-delay: 130ms;
}
.lede {
  animation-delay: 220ms;
}
.status {
  animation-delay: 310ms;
}
.social {
  animation-delay: 400ms;
}
.legal {
  animation-delay: 480ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--ember-glow);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (max-width: 860px) {
  :root {
    --dock: 6.75rem;
  }

  .stage__media {
    inset: 0;
    justify-content: center;
  }

  .stage__media img {
    object-fit: contain;
    object-position: center bottom;
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 14%,
      #000 86%,
      transparent 100%
    );
  }

  .stage__veil {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--ink) 88%, transparent) 0%,
      color-mix(in srgb, var(--ink) 70%, transparent) 22%,
      color-mix(in srgb, var(--ink) 28%, transparent) 42%,
      transparent 56%,
      transparent 86%,
      color-mix(in srgb, var(--ink) 42%, transparent) 100%
    );
  }

  .panel {
    max-width: 36rem;
  }

  .brand__logo {
    width: min(14rem, 68vw);
  }

  .dock {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1rem;
  }

  .legal {
    grid-column: 1;
    white-space: normal;
    text-align: left;
    max-width: 22rem;
    line-height: 1.6;
  }
}

@media (max-width: 520px) {
  .headline {
    margin-top: clamp(1.5rem, 4vh, 2.4rem);
    font-size: clamp(2.05rem, 11vw, 2.7rem);
  }

  .lede {
    max-width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .headline,
  .lede,
  .status,
  .social,
  .legal,
  .status__dot {
    animation: none;
  }
}
