/* ==========================================================================
   Corporate Dumpster Fire — corporatedumpsterfire.co
   Direction 1A: straight-faced enterprise landing page.
   Colours are oklch, exactly as authored in the design file.
   ========================================================================== */

:root {
  /* Ink / text */
  --ink:        oklch(0.24 0.04 260);
  --ink-2:      oklch(0.3  0.04 260);
  --body:       oklch(0.44 0.02 260);
  --body-2:     oklch(0.42 0.02 260);
  --muted:      oklch(0.5  0.02 260);
  --muted-2:    oklch(0.52 0.02 260);
  --faint:      oklch(0.58 0.015 260);
  --faint-2:    oklch(0.6  0.015 260);
  --logo-grey:  oklch(0.66 0.015 260);

  /* Blues */
  --blue:         oklch(0.52 0.16 255);
  --blue-dark:    oklch(0.44 0.16 255);
  --blue-darker:  oklch(0.42 0.16 255);
  --blue-hairline:oklch(0.6  0.1  255);
  --blue-tint:    oklch(0.95 0.03 255);
  --blue-tint-2:  oklch(0.97 0.02 255);
  --blue-border:  oklch(0.88 0.04 255);
  --blue-border-2:oklch(0.88 0.035 255);
  --blue-tag:     oklch(0.45 0.14 255);
  --blue-pale:    oklch(0.75 0.06 255);
  --blue-footer:  oklch(0.78 0.03 255);
  --blue-link:    oklch(0.85 0.02 255);

  /* Surfaces & lines */
  --surface:    oklch(0.995 0.003 250);
  --surface-2:  oklch(0.975 0.008 250);
  --line:       oklch(0.91 0.012 250);
  --line-2:     oklch(0.89 0.012 250);
  --line-3:     oklch(0.86 0.015 250);

  /* Accents */
  --amber:      oklch(0.72 0.15 65);
  --red:        oklch(0.6  0.2  25);
  --red-leave:  oklch(0.55 0.19 25);
  --red-x:      oklch(0.72 0.18 25);

  /* Call frame */
  --frame:      oklch(0.22 0.03 260);
  --frame-2:    oklch(0.28 0.02 260);
  --frame-3:    oklch(0.3  0.02 260);

  --sans: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Design canvas was 1100px wide with 40px inner padding → 1020px of content.
     Keeping those numbers means the layout is pixel-identical at ≥1100px. */
  --wrap: 1100px;
  --gutter: 40px;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-darker); }

h1, h2, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* Shared bits ------------------------------------------------------------- */

.mono-inline {
  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink-2);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.eyebrow-pill {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  padding: 6px 11px;
  border-radius: 100px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.dot--amber {
  background: var(--amber);
  animation: cdf-blink 1.6s steps(1, end) infinite;
}
.dot--red {
  width: 6px;
  height: 6px;
  background: var(--red);
  animation: cdf-blink 1.2s steps(1, end) infinite;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 6px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--lg {
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 7px;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost {
  background: #fff;
  border: 1px solid var(--line-3);
  color: var(--ink-2);
}
.btn--ghost:hover { border-color: var(--blue-hairline); color: var(--blue-darker); }

@keyframes cdf-blink   { 0%, 60% { opacity: 1 } 61%, 100% { opacity: 0.25 } }
@keyframes cdf-spin    { to { transform: rotate(360deg) } }
@keyframes cdf-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

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

.statusbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: oklch(0.93 0.01 250);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 24px;
  text-align: center;
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.masthead__link { color: var(--body-2); }
.masthead__link:hover { color: var(--blue); }

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

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 64px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero__title {
  font-size: clamp(34px, 5.3vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 46ch;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.hero__syncing {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-3);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: cdf-spin 0.9s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

/* Video-call frame */

.hero__visual { position: relative; }

.call {
  background: var(--frame);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 30px 60px -32px oklch(0.24 0.06 260 / 0.6);
}
.call__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: oklch(0.72 0.02 260);
  letter-spacing: 0.06em;
}
.call__rec { display: flex; align-items: center; gap: 6px; }

.call__stage {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--frame-3);
}
.call__video {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 50% 22%;
}
.call__muted {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: oklch(0.18 0.02 260 / 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 5px;
}
.call__muted-x { color: var(--red-x); font-size: 13px; }

.call__controls {
  display: flex;
  gap: 8px;
  padding: 10px 2px 2px;
}
.call__key {
  flex: 1;
  height: 26px;
  border-radius: 5px;
  background: var(--frame-2);
}
.call__leave {
  width: 74px;
  height: 26px;
  border-radius: 5px;
  background: var(--red-leave);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: #fff;
}

.callout {
  position: absolute;
  left: -26px;
  bottom: 44px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  box-shadow: 0 14px 30px -18px oklch(0.3 0.06 260 / 0.5);
  padding: 12px 14px;
  max-width: 232px;
}
.callout__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint-2);
  margin-bottom: 5px;
}
.callout__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Fictional employers ----------------------------------------------------- */

.clients {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.clients__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-block: 22px;
  overflow: hidden;
}
.clients__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.clients__viewport { overflow: hidden; min-width: 0; }
.clients__track { display: flex; }
.clients__list {
  display: flex;
  gap: 34px;
  padding-right: 34px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--logo-grey);
  white-space: nowrap;
}
/* The duplicate track only exists to make the marquee seamless, and the
   marquee only runs at widths where the row would otherwise be clipped. */
.clients__list--dupe { display: none; }

/* Channels ---------------------------------------------------------------- */

.channels { padding-block: 68px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-head__title {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}
.section-head__aside {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-2);
  max-width: 34ch;
  text-align: right;
}

.channels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.channels__wide { grid-column: span 2; }

.channel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 22px;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.channel:hover {
  border-color: var(--blue);
  color: inherit;
  transform: translateY(-2px);
}
.channel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.channel__name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.channel__handle {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 6px;
}
.channel__desc {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.channel--wide {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--blue-tint-2);
  border-color: var(--blue-border-2);
}
.channel--wide .channel__name { margin-bottom: 6px; }
.channel__desc--wide { max-width: 42ch; }
.channel__go {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  white-space: nowrap;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint-2);
  white-space: nowrap;
}
.tag--primary {
  background: var(--blue-tint);
  color: var(--blue-tag);
  padding: 4px 8px;
  border-radius: 4px;
}

/* About ------------------------------------------------------------------- */

.about {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  padding-block: 68px;
}
.about__title {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: pretty;
  margin-bottom: 18px;
}
.about__copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body-2);
}
.about__copy p + p { margin-top: 14px; }

.about__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tl {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.tl__marker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  padding-top: 3px;
  white-space: nowrap;
}
.tl__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.tl__desc {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.catchphrase {
  background: var(--ink);
  border-radius: 10px;
  padding: 22px;
  color: oklch(0.95 0.01 250);
}
.catchphrase__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue-pale);
  margin-bottom: 8px;
}
.catchphrase__quote {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Footer ------------------------------------------------------------------ */

.footer {
  background: var(--ink);
  color: oklch(0.9 0.01 250);
}
.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-block: 44px;
}
.footer__brand {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.footer__email {
  font-family: var(--mono);
  font-size: 13px;
}
.footer__email a { color: var(--blue-footer); }
.footer__email a:hover { color: #fff; }
.footer__legal {
  font-size: 12px;
  color: oklch(0.68 0.015 260);
  margin-top: 14px;
  max-width: 52ch;
  line-height: 1.5;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
}
.footer__links a { color: var(--blue-link); }
.footer__links a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 56px 52px;
  }
  .hero__lede { max-width: 62ch; }
  .hero__visual { max-width: 560px; }
  .call__video { height: 380px; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 56px;
  }

  /* The label plus all five names need ~940px; below that the row would be
     clipped by its own overflow:hidden, so let it scroll instead. */
  .clients__list--dupe { display: flex; }
  .clients__track {
    width: max-content;
    animation: cdf-marquee 26s linear infinite;
  }
}

@media (max-width: 900px) {
  .channels__grid { grid-template-columns: repeat(2, 1fr); }
  .channels__wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .statusbar {
    font-size: 11px;
    padding: 9px 16px;
    line-height: 1.4;
  }

  /* Three joke anchors aren't worth a hamburger; the CTA is what matters. */
  .masthead__link { display: none; }

  .hero__visual { max-width: none; }
  .callout {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-head__aside { text-align: left; max-width: 46ch; }

  .channels { padding-block: 52px; }
  .channels__grid { grid-template-columns: 1fr; }
  .channels__wide { grid-column: span 1; }
  .channel--wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .clients__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .clients__viewport { width: 100%; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  /* The wordmark and CTA can't share a line at this width without one of them
     wrapping, and how badly depends on whether the webfont has loaded. Stack
     them instead — deterministic, and never depends on font metrics. */
  .masthead__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .brand { gap: 9px; }
  .brand__name { font-size: 15px; white-space: nowrap; }
  .masthead__cta { white-space: nowrap; }

  .hero__lede { font-size: 17px; }
  .mono-inline { font-size: 15px; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .call__video { height: 300px; }
  .catchphrase__quote { font-size: 22px; }
  .footer__links { gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot--amber,
  .dot--red { animation: none; opacity: 1; }
  .spinner { animation: none; }
  .clients__track { animation: none; }
  .clients__list--dupe { display: none; }
  .channel:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
