/* CREDO home page. Palette is taken from the logo file: ink #0A0A0A, paper #F1F0EA. */
:root {
  --ink: #0a0a0a;
  --paper: #f1f0ea;
  --paper-2: #e6e4dc;   /* panels on paper */
  --mute: #6b6962;      /* secondary text on paper */
  --mute-dark: #a09e96; /* secondary text on ink */
  --line: rgba(10, 10, 10, 0.14);
  --pad: clamp(20px, 5vw, 72px);
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

h1, h2, .idea__word {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
h1 { font-size: clamp(52px, 8.6vw, 136px); }
h2 { font-size: clamp(38px, 5.4vw, 84px); }
h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 22px;
}
.num { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--mute); }
.note { color: var(--mute); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Buttons and links */
.btn {
  display: inline-block;
  padding: 17px 30px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); opacity: 0.86; }
.btn--small { padding: 12px 20px; font-size: 12px; }
.btn--paper { background: var(--paper); color: var(--ink); }
.link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
}
.link:hover { opacity: 0.6; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  background: rgba(241, 240, 234, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__links a:hover { opacity: 0.55; }

section { padding: clamp(72px, 10vw, 150px) var(--pad); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  min-height: min(calc(100vh - 59px), 900px);
  padding-top: 40px;
  padding-bottom: 90px;
}
.lede { max-width: 30em; margin-top: 30px; font-size: 19px; color: #2b2a27; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; margin-top: 40px; }
.hero__stage { position: relative; height: min(76vh, 720px); min-height: 420px; }
.hero__stage::before { /* soft disc behind the suit */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(92%, 560px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #fbfaf6 0%, var(--paper-2) 68%, rgba(230, 228, 220, 0) 71%);
}
.hero__suit { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 0.8s ease; }
.hero__suit.is-ready { opacity: 1; }
.hero__suit:active { cursor: grabbing; }
.hero__suit canvas { width: 100%; height: 100%; display: block; }
.hero__hint {
  position: absolute; left: 0; right: 0; bottom: -6px;
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute);
}
.hero__tags {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px;
  display: flex; gap: 14px 40px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}

/* The idea */
.idea { text-align: center; background: #f7f6f1; border-block: 1px solid var(--line); }
.idea__word { font-size: clamp(64px, 15vw, 230px); letter-spacing: -0.01em; padding-top: 0.2em; }
.idea__word .bar { position: relative; }
.idea__word .bar::before { /* the bar over RED, as in the logo */
  content: "";
  position: absolute;
  left: 0.03em; right: 0.03em; top: -0.13em;
  height: 0.085em;
  background: currentColor;
}
.idea__def { margin-top: 28px; font-size: 20px; }
.idea__def em { color: var(--mute); }
.idea__text { max-width: 34em; margin: 22px auto 0; color: #2b2a27; }

/* The suit */
.suit__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.suit__grid article { padding: 26px 26px 40px 0; border-bottom: 1px solid var(--line); }
.suit__grid article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.suit__grid h3 { margin: 46px 0 10px; }
.suit__grid p { color: #3a3935; font-size: 16px; }
.suit .note { margin-top: 26px; }

/* Process (dark band) */
.process { background: var(--ink); color: var(--paper); }
.process .eyebrow, .process .num { color: var(--mute-dark); }
.process__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.process__steps li { padding-top: 22px; border-top: 2px solid var(--paper); }
.process__steps .num { font-family: var(--display); font-size: 64px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--paper); }
.process__steps h3 { margin: 26px 0 10px; font-size: 22px; }
.process__steps p { color: #c9c7bf; font-size: 16px; }

/* Designer */
.design { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.design__copy > p:not(.eyebrow) { margin-top: 26px; max-width: 30em; color: #2b2a27; }
.ticks { margin: 30px 0 38px; border-top: 1px solid var(--line); }
.ticks li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ticks .soon span { flex: none; padding: 4px 9px; border: 1px solid var(--ink); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.design__frame { position: relative; background: var(--paper-2); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: flex; flex-direction: column; }
.design__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.design__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(10, 10, 10, 0.22); }
.design__body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.design__pane { display: grid; place-items: start; padding: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.design__pane + .design__pane { border-left: 1px solid var(--line); }
.placeholder {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 8px 14px; border: 1px dashed rgba(10, 10, 10, 0.4);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); white-space: nowrap;
}

/* Teams */
.teams { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.teams .section-head { margin-bottom: 0; }
.teams__body p { margin-bottom: 30px; max-width: 30em; font-size: 19px; color: #2b2a27; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; background: #f7f6f1; border-block: 1px solid var(--line); }
.story__photo { position: relative; aspect-ratio: 4 / 5; max-height: 620px; width: 100%; background: var(--paper-2); border: 1px solid var(--line); }
.story__copy > p:not(.eyebrow) { margin-top: 26px; max-width: 28em; font-size: 19px; color: #2b2a27; }
.story__copy .sig { font-size: 13px !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink) !important; }

/* Also at launch + Coming next (two stacked sections sharing one layout) */
.next--first { padding-bottom: 0; }
.footer a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.next__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.next__grid article { padding: 30px 30px 10px 0; }
.next__grid article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.next__grid h3 { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; font-stretch: 112%; text-transform: uppercase; margin-bottom: 10px; }
.next__grid p { color: #3a3935; }

/* Launch list */
.list { background: var(--ink); color: var(--paper); text-align: center; }
.list > p { margin: 26px auto 0; max-width: 30em; color: #c9c7bf; }
.list__form { display: flex; flex-wrap: wrap; justify-content: center; max-width: 560px; margin: 40px auto 0; }
.list__form input {
  flex: 1; min-width: 0; padding: 17px 20px;
  background: transparent; color: var(--paper);
  border: 2px solid var(--paper); border-right: 0; border-radius: 0;
  font: inherit; font-size: 16px;
}
.list__form input::placeholder { color: #8b8981; }
.list__form .btn { border: 2px solid var(--paper); }
.list__done { display: none; width: 100%; margin-top: 16px; font-size: 14px; color: var(--mute-dark); }
.list__form.is-sent .list__done { display: block; }

.list__form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* spam trap, hidden from people */
.list .list__small { margin-top: 18px; font-size: 13px; color: var(--mute-dark); }

/* Single-column versions used until the designer screenshot and photograph exist */
.design--solo, .story--solo { grid-template-columns: minmax(0, 1fr); }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 34px var(--pad); background: var(--ink); color: var(--paper); border-top: 1px solid rgba(241, 240, 234, 0.16); }
.footer img { height: 22px; width: auto; }
.footer p { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.footer__small { color: var(--mute-dark); font-weight: 400 !important; letter-spacing: 0.04em !important; text-transform: none !important; }

/* Narrow screens */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 100px; }
  .hero__stage { height: 46vh; min-height: 340px; order: -1; }
  .suit__grid { grid-template-columns: 1fr 1fr; }
  .suit__grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .suit__grid h3 { margin-top: 26px; }
  .process__steps, .design, .teams, .story, .next__grid { grid-template-columns: 1fr; }
  .next__grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .hero__suit { transition: none; }
}
