/* 74 Projects — a structural dark-mode sibling of 74 Labs.
   Same centred hero, Archivo display scale, quiet pill, brush and compact marks.
   Static CSS; no framework or production dependencies. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2");
}
:root {
  --ink: #111110;
  --surface: #1b1b19;
  --bone: #f1eee7;
  --muted: #b1aea6;
  --faint: #939087;
  --accent: #e5e0d5;
  --line: rgb(241 238 231 / 12%);
  --line-soft: rgb(241 238 231 / 7%);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: var(--sans);
  --hero-weight: 900;
  --hero-case: uppercase;
  --hero-tracking: -.045em;
  --hero-size: min(94px, calc((100vw - var(--pad) * 2) / 12.4));
  --action: var(--bone);
  --action-ink: var(--ink);
  --button-radius: 999px;
  --canvas: radial-gradient(ellipse 70% 680px at 50% 270px, #1b1a18, #151412 58%, transparent 100%) no-repeat, var(--ink);
  --shell: 1440px;
  --pad: 44px;
  --gap: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: only dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--bone);
  background: var(--canvas);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* The reference's paper grain, barely present on the dark surface. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .018;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 170px 170px;
}
main { isolation: isolate; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; letter-spacing: -.035em; }
h2 { font-weight: 600; }
button, summary { font: inherit; }
::selection { background: var(--bone); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: 36px; }
.shell { width: min(var(--shell), 100%); margin-inline: auto; padding-inline: var(--pad); }
.kicker { font: 500 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .15em; color: var(--faint); }
.section-copy { max-width: 46ch; font-size: 18px; line-height: 1.65; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 12px 20px; background: var(--bone); color: var(--ink); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Same compact mark and quiet navigation as 74 Labs. */
.header { position: relative; z-index: 20; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: var(--gap); min-height: 96px; }
.brand, .footer-brand { display: inline-flex; align-items: center; min-height: 48px; flex-shrink: 0; }
.brand img { width: auto; height: 46px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 48px; }
.nav-links a:hover, .footer a:hover { color: var(--bone); }
.nav-links .nav-cta { min-height: 40px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--bone); }
.nav-cta:hover { border-color: var(--faint); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 0 14px; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { font-size: 20px; line-height: 1; }
.mobile-menu[open] summary span { transform: rotate(45deg); }
.mobile-menu nav { position: absolute; top: calc(100% + 8px); right: 0; display: grid; width: 212px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mobile-menu nav a { padding: 12px 16px; border-radius: 8px; }
.mobile-menu nav a:hover { background: rgb(241 238 231 / 6%); }

/* 74 Labs' hero composition, without its service-specific platform diagram. */
.hero { padding-block: 64px 0; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgb(241 238 231 / 3%); color: var(--muted); font-size: 12px; }
.badge-divider { width: 1px; height: 13px; background: var(--line); flex-shrink: 0; }
.display { font-family: var(--display); font-weight: var(--hero-weight); text-transform: var(--hero-case); }
.hero h1 { margin-top: 32px; max-width: 24ch; font-size: var(--hero-size); line-height: .98; letter-spacing: var(--hero-tracking); }
.hero-line { display: block; white-space: nowrap; }
.hero-sub { max-width: 58ch; margin-top: 30px; font-size: 21px; line-height: 1.58; color: var(--muted); text-wrap: balance; }
.drawn { position: relative; display: inline-block; white-space: nowrap; font-style: normal; font-weight: 600; color: var(--bone); }
.brush { position: absolute; left: -.06em; bottom: -.15em; width: calc(100% + .12em); height: auto; color: var(--bone); pointer-events: none; }
.hero-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 30px; border-radius: var(--button-radius); background: var(--action); color: var(--action-ink); font-size: 15px; font-weight: 600; transition: transform .18s ease; }
.button-primary:hover { transform: translateY(-2px); background: #fff; }
.button-primary:active { transform: none; }
.button-primary:focus-visible { border-radius: var(--button-radius); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(241 238 231 / 30%); text-underline-offset: 6px; }
.text-link:hover { text-decoration-color: var(--bone); }
.text-link > span[aria-hidden] { flex-shrink: 0; font-size: 20px; }

/* Publishing platforms, not a public catalogue of our content brands. */
.platforms { padding-block: 70px 64px; text-align: center; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 180px)); justify-content: center; gap: 48px; list-style: none; padding: 0; margin: 28px 0 0; }
.platform-grid li { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; }
.platform-grid img { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }
.platform-grid span { font-size: 24px; font-weight: 500; letter-spacing: -.025em; }

/* Aggregate proof below the platforms, never individual platform claims. */
.figures-inner { padding-block: 42px 40px; border-block: 1px solid var(--line-soft); }
.figure-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: 0; margin: 0; list-style: none; text-align: center; }
.figure-grid li { min-width: 0; }
.figure-value { font-family: var(--number-font, var(--sans)); font-size: var(--number-size, 38px); font-weight: var(--number-weight, 600); line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figure-value span { font-size: .6em; padding-left: 2px; color: var(--faint); }
.figure-label { margin-top: 6px; font-size: 14px; color: var(--muted); }
.figure-note { margin-top: 28px; font-size: 12px; color: var(--faint); text-align: center; }

/* A short sibling-company introduction, without the old card or extra roster. */
.labs-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--gap); padding-block: 76px; }
.labs-heading, .labs-copy { min-width: 0; }
.labs-signature { display: flex; align-items: center; gap: 18px; }
.labs-signature img { width: 48px; flex-shrink: 0; }
.labs h2 { margin-top: 24px; max-width: 20ch; font-size: 44px; line-height: 1.12; }
.labs-copy .section-copy { max-width: 45ch; }
.labs-copy strong { font-weight: 500; color: var(--bone); }
.labs-note { margin-top: 20px; color: var(--faint); font-size: 13px; }
.labs-copy .text-link { margin-top: 12px; }

.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 64px 78px; border-top: 1px solid var(--line-soft); text-align: center; }
.contact h2 { max-width: 24ch; font-size: 38px; line-height: 1.15; }
.contact .section-copy { max-width: 50ch; font-size: 16px; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-size: 20px; text-decoration: underline; text-underline-offset: 7px; text-decoration-color: rgb(241 238 231 / 30%); }
.contact-email:hover { text-decoration-color: var(--bone); }
.contact-email span { flex-shrink: 0; }
.footer-inner { display: flex; align-items: center; gap: var(--gap); padding-block: 24px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; }
.footer-brand img { width: 112px; }
.footer nav { display: flex; gap: 24px; margin-left: auto; }
.footer nav a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 400; }

/* Reveal is finite CSS, so no JS failure can strand content in a hidden state. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: enter .65s cubic-bezier(.2, .7, .25, 1) both; }
  .hero h1 { animation-delay: .06s; }
  .hero-sub { animation-delay: .12s; }
  .hero-cta { animation-delay: .18s; }
  .brush { animation: drawmark .6s cubic-bezier(.3, .7, .3, 1) .55s both; }
}
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drawmark { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }

@media (max-width: 1000px) {
  :root { --pad: 32px; }
  .hero { padding-top: 52px; }
  .hero-sub { max-width: 48ch; }
  .platforms { padding-block: 60px 52px; }
  .labs h2 { font-size: 38px; }
}
@media (max-width: 760px) {
  :root { --pad: 24px; --gap: 20px; }
  .nav { min-height: 84px; }
  .brand img { height: 42px; }
  .hero { padding-top: 42px; }
  .hero h1 { margin-top: 28px; }
  .hero-sub { font-size: 19px; max-width: 42ch; margin-top: 26px; }
  .hero-cta { gap: 22px; margin-top: 30px; }
  .button-primary, .text-link { font-size: 16px; }
  .platform-grid { gap: var(--gap); }
  .platform-grid li { flex-direction: column; gap: 12px; }
  .platform-grid span { font-size: 18px; }
  .figure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .figure-label { font-size: 16px; }
  .figure-note { max-width: 34ch; margin-inline: auto; }
  .labs-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 52px; }
  .labs h2 { font-size: 36px; }
  .labs-note { font-size: 16px; }
  .contact-inner { padding-block: 50px 54px; }
  .contact h2 { font-size: 32px; max-width: 20ch; }
  .contact .section-copy { font-size: 18px; max-width: 30ch; }
  .footer-inner { flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
  .footer nav { flex-basis: 100%; margin: 0; font-size: 16px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .badge { gap: 10px; padding-inline: 13px; font-size: 11px; }
  .hero-sub { max-width: 32ch; }
  .platforms { padding-block: 48px; }
  .figure-value { font-size: var(--mobile-number-size, 36px); }
}
@media (max-width: 520px) {
  .hero h1 { font-size: var(--mobile-hero-size, clamp(35px, 10.9vw, 48px)); line-height: .98; }
  .hero-line > span { display: block; }
  .hero-sub { max-width: 30ch; font-size: 18px; }
  .hero-cta { gap: 18px; }
}
@media (max-width: 360px) {
  :root { --pad: 20px; --gap: 16px; }
  .hero { padding-top: 28px; }
  .badge { font-size: 10px; }
  .hero-cta { gap: 12px; }
  .button-primary { padding-inline: 22px; }
  .text-link { font-size: 15px; }
  .platform-grid span { font-size: 16px; }
  .contact-email { font-size: 18px; }
}
@media (pointer: coarse) {
  .nav-links .nav-cta { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button-primary:hover { transform: none; }
}
