/* ============================================================
   Cromwell Works — modernist single-family system.
   - Geist (sans, all display + body)    — precise neo-grotesque
     in the Söhne / Neue Haas family. One family, multiple
     weights (300/400/500/600) carries the entire hierarchy.
     Tight tracking and large display sizes do the work the
     serif used to do; nothing is decorative.
   - Geist Mono (status tags, indices)   — same designer; used
     in small caps-feel for metadata so it reads as machine-set.
   No serif. No second family. Hierarchy = weight + scale + rules.
   ============================================================ */

:root {
  --ink: #000;
  --paper: #fff;
  --rule: #000;
  --hair: rgba(0, 0, 0, 0.12);
  --muted: rgba(0, 0, 0, 0.55);
  --quiet: rgba(0, 0, 0, 0.40);

  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --u: 8px;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: #000; color: #fff; }

/* Scrollbar — hairline, light grey. Reads as a deliberate edge mark, not chrome. */
html {
  scrollbar-width: thin;            /* Firefox: thin is the minimum standard */
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}
::-webkit-scrollbar { width: 1px; height: 1px; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.22); }
::-webkit-scrollbar-track { background: transparent; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  text-underline-offset: 4px;
  transition: opacity 140ms ease;
}
a:hover { opacity: 0.55; }
a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
  border-bottom-color: transparent;
}

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

/* -------- layout shell -------- */

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main { flex: 1 0 auto; }

/* -------- top nav -------- */

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(20px, 3vw, 32px);
}

.nav__mark {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: none;
}
.nav__mark:hover { opacity: 0.55; }

.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.nav__links a {
  border-bottom: none;
  position: relative;
}
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--ink);
}

/* -------- hero / wordmark -------- */

.hero {
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(56px, 10vw, 140px);
}

.wordmark {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(56px, 13vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0;
  text-transform: none;
}

.tagline {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 40ch;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  color: rgba(0,0,0,0.72);
}

/* -------- section header -------- */

.section {
  border-top: 1px solid var(--ink);
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 120px);
}

.section__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 56px);
}

.section__label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* -------- project rows -------- */

.projects {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 2fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(20px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--hair);
  position: relative;
}

.project:first-child { border-top: 1px solid var(--hair); }

.project__index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--quiet);
  padding-top: 0.45em;
  font-variant-numeric: tabular-nums;
}

.project__name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.project__name a {
  border-bottom: none;
  display: inline-block;
  position: relative;
}
.project__name a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1);
}
.project__name a:hover::after { transform: scaleX(1); }
.project__name a:hover { opacity: 1; }

.project__name-ext {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.58em;
  letter-spacing: 0;
  color: var(--quiet);
  margin-left: 0.35em;
  vertical-align: 0.32em;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), color 280ms ease;
}
.project__name a:hover .project__name-ext {
  color: var(--ink);
  transform: translate(2px, -2px);
}

.project__desc {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(0,0,0,0.7);
  text-wrap: pretty;
  max-width: 48ch;
  padding-top: 0.45em;
}

.project__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 0.6em;
  white-space: nowrap;
}

.status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 0;
  background: var(--ink);
  display: inline-block;
}
.status[data-status="research"]::before { background: transparent; border: 1px solid var(--ink); }
.status[data-status="prototype"]::before { background: var(--ink); }
.status[data-status="active"]::before {
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}
.status[data-status="archived"]::before {
  background: transparent;
  border: 1px solid var(--ink);
  opacity: 0.4;
}
.status[data-status="archived"] { color: var(--muted); }

.project__year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

/* -------- footer -------- */

.foot {
  border-top: 1px solid var(--ink);
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(16px, 3vw, 40px);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.01em;
  align-items: start;
}

.foot__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 8px;
}

.foot__val { color: var(--ink); }

/* -------- about page -------- */

.about-hero {
  padding-top: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(16px, 3vw, 32px);
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--ink);
}

.about-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.about-hero__art {
  margin: 0;
  padding-top: 0;
  position: relative;
  z-index: 2;
  /* sits above the rule; hero padding-bottom provides the gap */
}
.about-hero__art img {
  display: block;
  width: 100%;
  max-width: 580px;
  height: auto;
  margin-left: auto;
}

@media (max-width: 820px) {
  .about-hero { padding-bottom: clamp(20px, 4vw, 40px); }
  .about-hero__split { grid-template-columns: 1fr; }
  .about-hero__art {
    padding-top: clamp(20px, 4vw, 32px);
    transform: none;
  }
  .about-hero__art img { margin-left: 0; max-width: 360px; }
}

.about-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 clamp(20px, 3vw, 32px);
  color: var(--muted);
}

.about-lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
.about-lede em { font-style: normal; font-weight: 300; color: var(--quiet); }

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.about-body__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.about-prose {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.003em;
  max-width: 58ch;
  color: rgba(0,0,0,0.78);
}
.about-prose p { margin: 0 0 1.1em; text-wrap: pretty; }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose em { font-style: normal; font-weight: 400; color: var(--ink); }

.contact-block {
  border-top: 1px solid var(--ink);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
}

.contact-block h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 14ch;
}

.contact-list {
  display: grid;
  gap: 24px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
}
.contact-list dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-list dd { margin: 0; }
.contact-list dd a { font-family: var(--sans); }

/* -------- responsive -------- */

@media (max-width: 820px) {
  .project {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "idx name"
      "idx desc"
      ".   meta";
    gap: 8px 16px;
    padding: 22px 0;
  }
  .project__index { grid-area: idx; }
  .project__name { grid-area: name; padding-top: 0.2em; }
  .project__desc { grid-area: desc; padding-top: 8px; max-width: none; }
  .project__meta {
    grid-area: meta;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
  }

  .foot {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .about-body, .contact-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav { padding-top: 18px; padding-bottom: 18px; }
  .hero { padding-top: 28px; padding-bottom: 56px; }
  .foot { grid-template-columns: 1fr; }
}

/* -------- print -------- */
@media print {
  .nav__links { display: none; }
  a { border-bottom: none; }
  .project { break-inside: avoid; }
}
