/* ============================================================
   TOKENS — black & white, one red accent (Ubikron red).
   Structure keeps the case-file conceit: typed sheets, rubber
   stamps, printed photos — now in high-contrast monochrome.
   ============================================================ */
:root {
  --paper:     #F4F4F3;   /* page — near-white neutral */
  --panel:     #ECECEA;   /* footer strip */
  --sheet:     #FFFFFF;   /* typed page / photo mat */
  --ink:       #151515;   /* near-black text */
  --ink-soft:  #6E6E6E;   /* muted gray text */
  --red:       #DA291C;   /* Ubikron red accent */
  --red-deep:  #A81C12;   /* darker red for shadows/hover */
  --dead:      #9B9B9B;   /* discontinued stamp / dead ink */
  --rule:      rgba(21, 21, 21, 0.14);

  --display: "Courier Prime", "Courier New", monospace;
  --body:    "Source Serif 4", Georgia, serif;

  --measure: 46rem;
  --edge: clamp(1.25rem, 5vw, 4rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

em { font-style: italic; }
strong { color: var(--ink); font-weight: 700; }

::selection { background: var(--red); color: #FFFFFF; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* whisper of a top vignette so pure white doesn't glare */
.board-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 72%, rgba(21,21,21,0.025) 100%);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: 5rem var(--edge) 4rem;
  z-index: 1;
}

.hero-cols {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 7vw, 7rem);
  width: 100%;
}

.hero-inner { max-width: 44rem; }

.tag-line {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--red);
  margin: 0 0 2rem;
}

.hero-title {
  font-size: clamp(2.1rem, 6.5vw, 5.5rem);
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.hero-title-accent { color: var(--red); }

.hero-title-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  vertical-align: baseline;
}
.hero-title-logos img {
  height: 0.72em;
  width: auto;
  display: inline-block;
}

.hero-dek {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 34rem;
  margin: 0 0 2.4rem;
}
.hero-dek a {
  color: var(--red);
  font-weight: 600;
  text-decoration-color: rgba(218,41,28,0.45);
}

.hero-cta {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #FFFFFF;
  background: var(--ink);
  padding: 1rem 2rem;
  border-radius: 3px;
  box-shadow: 0 3px 0 rgba(21,21,21,0.3);
  transition: transform 0.12s ease;
}
.hero-cta:hover { transform: translateY(-2px); }

/* ---- the big stat: stamped in red ink ---- */
.stat {
  flex-shrink: 0;
  width: min(30vw, 340px);
  text-align: center;
  transform: rotate(2deg);
}
.stat-eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  margin: 0 0 1rem;
}
.stat-number {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(9rem, 16vw, 14rem);
  line-height: 0.85;
  color: var(--red);
  text-shadow: 4px 4px 0 rgba(218,41,28,0.16);
}
.stat-number.settled { animation: stat-land 0.35s ease; }
.stat-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1rem 0 1.6rem;
}
.stat-link {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-block;
}
.stat-link-accent {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid rgba(218,41,28,0.5);
}
.stat-link:hover .stat-link-accent { border-bottom-color: var(--red); }

@keyframes stat-land {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-number.settled { animation: none; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 4rem; }
  .hero-cols { flex-direction: column; align-items: flex-start; }
  .stat { width: 100%; max-width: 380px; margin: 1.5rem auto 0; transform: rotate(0deg); }
}

/* ============================================================
   SECTION HEAD / SHARED
   ============================================================ */
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--red);
  margin: 0 0 1.2rem;
}

.section-head {
  max-width: var(--measure);
  margin: 0 auto 3.5rem;
  padding: 0 var(--edge);
}
.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--ink);
}

/* ============================================================
   IDEA SECTION
   ============================================================ */
.idea {
  position: relative;
  z-index: 1;
  padding: 7rem 0 8rem;
  border-top: 3px double var(--rule);
}

.idea-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--edge);
}
.idea-body p {
  margin: 0 0 1.6rem;
  color: var(--ink);
}
.idea-body img { display: inline-block; vertical-align: middle; }
.idea-why {
  border-left: 5px solid var(--red);
  padding-left: 1.4rem;
  font-style: italic;
  font-size: 1.25rem;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  z-index: 1;
  padding: 7rem 0 8rem;
  border-top: 3px double var(--rule);
}

.case-card {
  position: relative;
  max-width: 68rem;
  margin: 0 auto 5rem;
  padding: 0 var(--edge);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.case-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.case-pin {
  position: absolute;
  left: calc(var(--edge) - 7px);
  top: 0.6rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-soft);
  box-shadow: 0 1px 3px rgba(21,21,21,0.35);
}
.case-card-active .case-pin { background: var(--red); }
.case-card-origin .case-pin { background: var(--dead); }

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.3rem 1.6rem;
  font-family: var(--display);
}
.case-logo {
  height: 40px;
  width: auto;
}
.case-dates {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.case-name {
  font-size: 1.9rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-weight: 700;
}

/* the typed sheet */
.case-content {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.6rem, 4.5vw, 3.4rem);
  box-shadow:
    0 1px 2px rgba(21,21,21,0.08),
    0 14px 34px -16px rgba(21,21,21,0.28);
}

.case-lede {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.case-content > p, .case-content .case-verdict { color: var(--ink); margin: 0 0 1.3rem; }
.case-content p:last-of-type { margin-bottom: 0; }

.stamp {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  padding: 0.55rem 1.2rem;
  border: 4px solid currentColor;
  border-radius: 5px;
  transform: rotate(-6deg) scale(0.85);
  opacity: 0;
  margin: 2rem 0 1rem;
  mask-image: radial-gradient(circle at 40% 60%, black 60%, rgba(0,0,0,0.72) 100%);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.3s ease;
}
.case-card.in-view .stamp {
  transform: rotate(-6deg) scale(1);
  opacity: 0.92;
}
/* status: DISCONTINUED reads as dead ink, ACTIVE gets the brand red */
.stamp-red { color: var(--dead); }
.stamp-green { color: var(--red); }

/* the ACTIVE stamp doubles as a link to the live product */
a.stamp {
  text-decoration: none;
  cursor: pointer;
}
a.stamp:hover { opacity: 1; }
.case-card.in-view a.stamp:hover {
  transform: rotate(-6deg) scale(1.06);
  background: var(--red);
  color: #FFFFFF;
}

.case-verdict {
  font-size: 1.05rem;
  color: var(--ink-soft) !important;
  font-family: var(--display);
  font-weight: 700;
}

/* ============================================================
   EXHIBIT PHOTOS — printed, bordered, slightly askew
   ============================================================ */
.exhibit-photo {
  margin: 2rem 0 2.2rem;
  background: var(--sheet);
  padding: 0.7rem 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 26px -12px rgba(21,21,21,0.32);
  transform: rotate(-0.6deg);
}
.exhibit-photo img { width: 100%; height: auto; display: block; }
.exhibit-photo figcaption {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.6rem;
}
.exhibit-photo-centered {
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  transform: rotate(-1.5deg);
}

.exhibit-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin: 2rem 0 2.2rem;
}
.exhibit-gallery figure {
  margin: 0;
  background: var(--sheet);
  padding: 0.7rem 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 26px -12px rgba(21,21,21,0.32);
}
.exhibit-gallery figure:nth-child(odd) { transform: rotate(-0.7deg); }
.exhibit-gallery figure:nth-child(even) { transform: rotate(0.7deg); }
.exhibit-gallery img { width: 100%; height: auto; display: block; }
.exhibit-gallery figcaption {
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.6rem;
}

@media (max-width: 640px) {
  .exhibit-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  z-index: 1;
  padding: 7rem var(--edge) 8rem;
  border-top: 3px double var(--rule);
  text-align: center;
}
.cta-inner { max-width: 46rem; margin: 0 auto; }
.cta-logo {
  height: 56px;
  width: auto;
  margin: 0 auto 1.8rem;
}
.cta h2 {
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  color: var(--ink);
  margin: 0.6rem 0 1.4rem;
}
.cta-stat {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--red);
  margin: 0 0 1.8rem;
}
.cta-body { color: var(--ink); margin: 0 0 2.6rem; }
.cta-body strong { color: var(--red); }

.cta-button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  color: #FFFFFF;
  background: var(--red);
  padding: 1.1rem 2.2rem;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--red-deep);
  transition: transform 0.15s ease;
}
.cta-button:hover { transform: translateY(-2px); }

/* ============================================================
   BYLINE
   ============================================================ */
.byline {
  position: relative;
  z-index: 1;
  padding: 5rem var(--edge);
  border-top: 3px double var(--rule);
}
.byline-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.byline-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.05);
  flex-shrink: 0;
  border: 4px solid var(--sheet);
  box-shadow: 0 6px 18px -8px rgba(21,21,21,0.4);
}
.byline-quote {
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1rem;
}
.byline-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}
.byline-title {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0.25rem 0 0;
}

@media (max-width: 560px) {
  .byline-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem var(--edge);
  background: var(--panel);
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-weight: 700; }
.footer-links a:hover { color: var(--red); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-card, .stamp { transition: none; opacity: 1; transform: none; }
  .case-card.in-view .stamp { transform: rotate(-6deg); }
}
