/* ---------- Fonts ---------- */

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Semibold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --orange: #E33300;
  --silver: #D9D9D9;
  --graphite: #3E3E40;
  --charcoal: #353334;
  --soot: #252323;
  --ink: #1C1A19;
  --black: #101010;
  --bg: #151312;
  --muted: #9B8F8F;

  --font-display: "Clash Display", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-thin: "Didact Gothic", "Poppins", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  --gutter: 16px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--silver);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translate(-50%, -150%);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Nav ---------- */

.site-header {
  display: flex;
  justify-content: center;
  padding: 24px var(--gutter) 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 58px;
  padding: 0 6px;
  border: 3px solid var(--black);
  border-radius: 16px;
  background: var(--ink);
}

/* Icons sit closed; hovering (or tabbing to) one slides its label open */
.nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}

.nav__item img { flex: none; }

.nav__label {
  display: grid;
  grid-template-columns: 0fr;
  opacity: 0;
  transition:
    grid-template-columns .35s var(--ease-out),
    opacity .2s ease,
    margin-left .35s var(--ease-out);
}

.nav__label > span {
  position: relative;
  top: 2px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.nav__item:hover .nav__label,
.nav__item:focus-visible .nav__label {
  grid-template-columns: 1fr;
  margin-left: 7px;
  opacity: 1;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
  column-gap: 46px;
  width: min(1072px, 100% - var(--gutter) * 2);
  margin: 131px auto 0;
}

/* Card */

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 594px;
  padding: 29px 49px 15px;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  text-align: center;
}

.card__badge {
  display: grid;
  place-items: center;
  width: 100%;
  height: 266px;
  flex-shrink: 0;
  border-radius: 20px;
  background: linear-gradient(to top right, #E03201 0%, #C71E01 50%, #B00F01 100%);
  color: #E4DBDB;
}

.card__badge svg {
  width: 191px;
  max-width: 78%;
  height: auto;
}

.card__name {
  margin: 5px 0 0;
  color: var(--soot);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
}

.card__tagline {
  max-width: 250px;
  margin: auto 0 0;
  color: var(--graphite);
  font-size: 15px;
  line-height: 23px;
}

.card__social {
  display: flex;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.card__social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}

.card__social a:hover {
  background: #FDEEE9;
  transform: translateY(-2px);
}

.card__grain {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.card__grain--tl { left: -50px; top: -108px; }
.card__grain--br { right: -157px; bottom: -123px; }

/* Copy */

.hero__copy {
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  min-width: 0;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-weight: 400;
  /* Sized so "WEBSITE" fills the column; 154px at full desktop width */
  font-size: min(154px, 22.6cqi);
  line-height: .84;
  padding-top: .03em;
}

.hero__title-top {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero__title-bottom {
  /* Didact sits lower in its line box than Clash; pull it up to match the design */
  margin-top: -.085em;
  color: var(--charcoal);
  font-family: var(--font-thin);
}

.hero__lede {
  max-width: 660px;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 30px;
}

.hero__lede strong { font-weight: 600; }

.hero__note {
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: auto 0 12px;
  padding: 0;
  list-style: none;
}

.hero__links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.hero__links a img {
  margin-top: -18px;
  transition: transform .2s var(--ease-out);
}

.hero__links a:hover img { transform: translate(2px, -2px); }

/* ---------- Marquee dividers ---------- */

.marquee {
  /* --s scales the icons; --tile is one code + hand + box repeat */
  --s: 1;
  --tile: calc(450px * var(--s));
  height: calc(136px * var(--s));
  margin-top: 147px;
  overflow: hidden;
}

.marquee__track {
  width: calc(100% + var(--tile));
  height: 100%;
  background-image:
    url("../imagery/symbols/Vector-12.svg"),
    url("../imagery/symbols/Vector-11.svg"),
    url("../imagery/symbols/Vector-13.svg");
  background-repeat: repeat-x;
  background-size:
    var(--tile) calc(135px * var(--s)),
    var(--tile) calc(121px * var(--s)),
    var(--tile) calc(132px * var(--s));
  background-position:
    calc(-105px * var(--s)) center,
    calc(45px * var(--s)) center,
    calc(195px * var(--s)) center;
  animation: marquee 18s linear infinite;
  will-change: transform;
}

.marquee--reverse { margin: 0 0 20px; }
.marquee--reverse .marquee__track { animation-direction: reverse; }

@keyframes marquee {
  to { transform: translate3d(calc(var(--tile) * -1), 0, 0); }
}

/* ---------- Status ---------- */

.status {
  padding: 105px var(--gutter) 98px;
  text-align: center;
}

.status:focus { outline: none; }

.status__title {
  max-width: 1260px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: pretty;
}

.signature {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-top: 48px;
  color: #fff;
  text-align: left;
  text-decoration: none;
}

.signature__avatar {
  border-radius: 8px;
  transition: transform .3s var(--ease-out);
}

.signature:hover .signature__avatar { transform: rotate(-6deg) scale(1.04); }

.signature__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signature__name {
  font-size: 23.5px;
  font-weight: 600;
  line-height: 1.1;
}

.signature__url {
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.2;
}

/* ---------- Load-in ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

.card,
.hero__title-top,
.hero__title-bottom,
.hero__lede,
.hero__note,
.hero__links {
  animation: rise .8s var(--ease-out) both;
}
.hero__title-top    { animation-delay: .08s; }
.hero__title-bottom { animation-delay: .16s; }
.hero__lede         { animation-delay: .24s; }
.hero__note         { animation-delay: .3s; }
.hero__links        { animation-delay: .36s; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 64px;
    margin-top: 72px;
  }

  .hero__copy { width: min(100%, 682px); }

  .hero__links { margin-top: 40px; }

  .marquee { --s: .8; margin-top: 110px; }
}

@media (max-width: 600px) {
  .hero { margin-top: 48px; row-gap: 48px; }

  .card {
    width: 100%;
    max-width: 344px;
    height: auto;
    min-height: 540px;
    padding-inline: 44px;
  }

  .hero__lede {
    font-size: 17px;
    line-height: 27px;
  }

  .hero__note { font-size: 12px; }

  .marquee { --s: .55; margin-top: 80px; }
  .marquee--reverse { margin-top: 0; }

  .status { padding: 72px var(--gutter); }
  .signature { margin-top: 40px; }
}

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

  .marquee__track,
  .card,
  .hero__title-top,
  .hero__title-bottom,
  .hero__lede,
  .hero__note,
  .hero__links { animation: none; }
}
