/* =========================================================
   Jake Halbakken — jakehalbakken.com
   Visual system: production drawing set / editorial archive
   ========================================================= */

:root {
  /* Palette */
  --paper:       #ECE7D8;
  --desk:        #E1DAC5;
  --ink:         #1B1B19;
  --cobalt:      #1659DC;
  --lime:        #C8FF15;

  --rule:        rgba(27, 27, 25, 0.30);
  --rule-soft:   rgba(27, 27, 25, 0.13);
  --muted:       rgba(27, 27, 25, 0.70);

  /* Type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif:   "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Metrics */
  --gutter: clamp(1.15rem, 4vw, 3.75rem);
  --sheet-max: 1460px;
  --block: clamp(4rem, 9vw, 8.5rem);
}

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

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

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.94rem + 0.22vw, 1.125rem);
  line-height: 1.55;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--lime); color: var(--ink); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem; top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

/* ---------------------------------------------------------
   The sheet
   --------------------------------------------------------- */

.sheet {
  container-type: inline-size;
  max-width: var(--sheet-max);
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
  overflow-x: clip;
}

.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Registration mark — a small crosshair, as on a print sheet */
.reg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
}
.reg::before,
.reg::after {
  content: "";
  position: absolute;
  background: var(--cobalt);
}
.reg::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.reg::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.reg--lime::before, .reg--lime::after { background: var(--lime); }

/* ---------------------------------------------------------
   Labels and small type
   --------------------------------------------------------- */

.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

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

.masthead {
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.masthead__mark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.masthead__nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: center;
}

.masthead__nav a {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.masthead__nav a:hover,
.masthead__nav a:focus-visible { border-bottom-color: var(--ink); }

.masthead__place {
  font-family: var(--mono);
  font-size: 0.78125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

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

.hero {
  padding-top: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero__name {
  font-family: var(--display);
  font-variation-settings: "wdth" 112, "wght" 800;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 12.6vw, 12.4rem);
  font-size: clamp(3.2rem, 12.6cqw, 12.4rem);
  line-height: 0.83;
  letter-spacing: -0.025em;
  margin: 0;
}

.hero__name span { display: block; }

/* Title block — the drafting-sheet field the whole identity sits in */
.titleblock {
  margin-top: clamp(2.25rem, 5vw, 3.75rem);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.field {
  padding: 0.95rem 1.15rem 1.15rem;
  border-right: 1px solid var(--rule);
  min-width: 0;
}
.field:last-child { border-right: 0; }

.field--full {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  border-right: 0;
}

.field__label {
  display: block;
  margin-bottom: 0.55rem;
}

.field__value {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.1;
}

.field__text {
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.4rem);
  line-height: 1.35;
  max-width: 46ch;
  margin: 0;
}

.field--empty .field__value {
  color: var(--muted);
  font-variation-settings: "wdth" 100, "wght" 400;
}

/* Rotating role display */
.role {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.role__line { display: flex; gap: 0.34em; }

.slot {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.slot__sizers { display: grid; }
.slot__sizers > span {
  grid-area: 1 / 1;
  visibility: hidden;
}

.slot__word {
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform, opacity;
}

.role__fallback {
  display: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: normal;
}

.hero__jump {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cobalt);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  padding-top: var(--block);
  padding-bottom: var(--block);
  border-top: 1px solid var(--rule);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 750;
  font-weight: 750;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4.6vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.about__body p {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  max-width: 60ch;
  margin: 0 0 1.15em;
}
.about__body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   Work plates
   --------------------------------------------------------- */

.plates {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}

.plate { position: relative; }

.plate__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink);
}

.plate__title {
  margin: 0.9rem 0 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 104, "wght" 720;
  font-weight: 720;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5.4vw, 4.25rem);
  line-height: 0.94;
  letter-spacing: -0.022em;
}

.plate__title a {
  text-decoration: none;
  display: inline-block;
}
.plate__title a:hover,
.plate__title a:focus-visible { color: var(--cobalt); }

.plate__summary {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.7rem);
  line-height: 1.3;
  max-width: 44ch;
  margin: 0.85rem 0 0;
  color: var(--ink);
}

.plate__figure {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  overflow: hidden;
  background: var(--desk);
  border: 1px solid var(--rule-soft);
}

.plate__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.1, 1);
}

.plate:hover .plate__figure img,
.plate:focus-within .plate__figure img { transform: scale(1.02); }

.plate__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.plate__role {
  font-family: var(--mono);
  font-size: 0.78125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plate__link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cobalt);
  justify-self: start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

/* ---------------------------------------------------------
   Ventures
   --------------------------------------------------------- */

.ventures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.venture {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.venture:last-child { border-bottom: 0; }

.venture__logo {
  height: clamp(38px, 5vw, 54px);
  width: auto;
  max-width: 74%;
  object-fit: contain;
  object-position: left center;
}

.venture__desc {
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.35rem);
  line-height: 1.4;
  margin: 0;
  max-width: 40ch;
}



.venture__link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cobalt);
  align-self: start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

/* ---------------------------------------------------------
   Case study pages
   --------------------------------------------------------- */

.case__head { padding-top: clamp(2.5rem, 6vw, 5rem); }

.case__eyebrow {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.case__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 780;
  font-weight: 780;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.026em;
  margin: 0;
  max-width: 18ch;
}

.case__summary {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 1vw, 2rem);
  line-height: 1.28;
  max-width: 42ch;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
}

.case__figure {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  border: 1px solid var(--rule-soft);
  background: var(--desk);
}

.case__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case__figcaption {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--rule-soft);
}

.case__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  padding-top: var(--block);
  padding-bottom: var(--block);
  border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.case__body p {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  max-width: 62ch;
  margin: 0 0 1.1em;
}
.case__body p:last-child { margin-bottom: 0; }

.credits {
  border-top: 1px solid var(--ink);
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.credits caption {
  text-align: left;
  padding-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.credits th,
.credits td {
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.7rem 0;
  vertical-align: top;
  font-weight: 400;
}

.credits th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  width: 42%;
  padding-right: 1rem;
}

.credits td { font-size: 0.95rem; }

.source {
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--muted);
}
.source a { color: var(--cobalt); }

/* Prev / next */
.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.pager__item {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
  display: block;
}
.pager__item:last-child { border-bottom: 0; }

.pager__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 102, "wght" 680;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: 0.55rem;
  display: block;
}
.pager__item:hover .pager__title,
.pager__item:focus-visible .pager__title { color: var(--cobalt); }

/* ---------------------------------------------------------
   Footer — reversed title block
   --------------------------------------------------------- */

.colophon {
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--lime);
}

.colophon .label { color: rgba(236, 231, 216, 0.66); }

.colophon__inner {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.colophon__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 740;
  font-weight: 740;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.022em;
  margin: 0.75rem 0 0;
}

.colophon__fields {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(236, 231, 216, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.colophon__field {
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(236, 231, 216, 0.18);
}

.colophon__field a {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

.colophon__pending {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(236, 231, 216, 0.55);
}

.colophon__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
}

/* ---------------------------------------------------------
   Breakpoints
   --------------------------------------------------------- */

@media (min-width: 720px) {
  .plate__footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
  }
  .plate__link { justify-self: end; }
  .ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venture { border-bottom: 0; border-right: 1px solid var(--rule); }
  .venture:last-child { border-right: 0; }
  .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager__item { border-bottom: 0; border-right: 1px solid var(--rule-soft); padding-right: 1.5rem; }
  .pager__item:last-child { border-right: 0; padding-right: 0; padding-left: 1.5rem; text-align: right; }
  .colophon__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colophon__field { border-bottom: 0; padding-right: 1.5rem; }
}

@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .case__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .case__aside { position: sticky; top: 2rem; align-self: start; }
}

@media (max-width: 959px) {
  .case__grid { display: flex; flex-direction: column; }
  .case__aside { order: -1; }
}

@media (max-width: 640px) {
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .field { border-right: 0; border-bottom: 1px solid var(--rule); }
  .field:last-child { border-bottom: 0; }
  .field--full { border-top: 0; }
  .role { white-space: normal; }
  .role__line { flex-wrap: wrap; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .role__line { display: none; }
  .role__fallback { display: block; }
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------
   Type-led mode (no project imagery)
   --------------------------------------------------------- */

/* Spec bar — the title block reused at case-study scale */
.spec {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.spec__cell {
  padding: 0.9rem 1.1rem 1rem;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.spec__cell:last-child { border-bottom: 0; }

.spec__value {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

/* With no imagery the plates carry the section, so they get more air
   and a heavier rule between them. */
.plates { gap: 0; }

.plate + .plate {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule-soft);
}

.venture__name {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 720;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: -0.018em;
  line-height: 1;
  margin: 0;
}

@media (min-width: 720px) {
  .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spec__cell { border-bottom: 0; border-right: 1px solid var(--rule); }
  .spec__cell:last-child { border-right: 0; }
}

/* Venture marks. Height is scaled per logo so the two wordmarks read at the
   same size — Sonus Club is a two-tier lockup, so it needs more height than
   Arqiv to match its cap height. See logo_scale in data/site.json. */
.venture__mark { margin: 0; }

.venture__logo {
  height: calc(var(--logo-scale, 1) * clamp(30px, 3.6vw, 40px));
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}



.field--empty .field__value {
  color: var(--muted);
  font-variation-settings: "wdth" 100, "wght" 400;
}

/* Rotating role display */
.role {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.role__line { display: flex; gap: 0.34em; }

.slot {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.slot__sizers { display: grid; }
.slot__sizers > span {
  grid-area: 1 / 1;
  visibility: hidden;
}

.slot__word {
  position: absolute;
  inset: 0;
  display: block;
  will-change: transform, opacity;
}

.role__fallback {
  display: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.6;
  white-space: normal;
}

.hero__jump {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cobalt);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  padding-top: var(--block);
  padding-bottom: var(--block);
  border-top: 1px solid var(--rule);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 750;
  font-weight: 750;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4.6vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.about__body p {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  max-width: 60ch;
  margin: 0 0 1.15em;
}
.about__body p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   Work plates
   --------------------------------------------------------- */

.plates {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}

.plate { position: relative; }

.plate__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ink);
}

.plate__title {
  margin: 0.9rem 0 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 104, "wght" 720;
  font-weight: 720;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5.4vw, 4.25rem);
  line-height: 0.94;
  letter-spacing: -0.022em;
}

.plate__title a {
  text-decoration: none;
  display: inline-block;
}
.plate__title a:hover,
.plate__title a:focus-visible { color: var(--cobalt); }

.plate__summary {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.7rem);
  line-height: 1.3;
  max-width: 44ch;
  margin: 0.85rem 0 0;
  color: var(--ink);
}

.plate__figure {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  overflow: hidden;
  background: var(--desk);
  border: 1px solid var(--rule-soft);
}

.plate__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.1, 1);
}

.plate:hover .plate__figure img,
.plate:focus-within .plate__figure img { transform: scale(1.02); }

.plate__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.plate__role {
  font-family: var(--mono);
  font-size: 0.78125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plate__link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cobalt);
  justify-self: start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

/* ---------------------------------------------------------
   Ventures
   --------------------------------------------------------- */

.ventures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.venture {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.venture:last-child { border-bottom: 0; }

.venture__logo {
  height: clamp(38px, 5vw, 54px);
  width: auto;
  max-width: 74%;
  object-fit: contain;
  object-position: left center;
}

.venture__desc {
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.35rem);
  line-height: 1.4;
  margin: 0;
  max-width: 40ch;
}

.venture__disciplines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.venture__disciplines li {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 0.28rem 0.5rem;
  color: var(--muted);
}

.venture__link {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cobalt);
  align-self: start;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

/* ---------------------------------------------------------
   Case study pages
   --------------------------------------------------------- */

.case__head { padding-top: clamp(2.5rem, 6vw, 5rem); }

.case__eyebrow {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.case__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 780;
  font-weight: 780;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.026em;
  margin: 0;
  max-width: 18ch;
}

.case__summary {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 1vw, 2rem);
  line-height: 1.28;
  max-width: 42ch;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
}

.case__figure {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  border: 1px solid var(--rule-soft);
  background: var(--desk);
}

.case__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case__figcaption {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--rule-soft);
}

.case__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  padding-top: var(--block);
  padding-bottom: var(--block);
  border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.case__body p {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.5;
  max-width: 62ch;
  margin: 0 0 1.1em;
}
.case__body p:last-child { margin-bottom: 0; }

.credits {
  border-top: 1px solid var(--ink);
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.credits caption {
  text-align: left;
  padding-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.credits th,
.credits td {
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.7rem 0;
  vertical-align: top;
  font-weight: 400;
}

.credits th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  width: 42%;
  padding-right: 1rem;
}

.credits td { font-size: 0.95rem; }

.source {
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--muted);
}
.source a { color: var(--cobalt); }

/* Prev / next */
.pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.pager__item {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
  display: block;
}
.pager__item:last-child { border-bottom: 0; }

.pager__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 102, "wght" 680;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: 0.55rem;
  display: block;
}
.pager__item:hover .pager__title,
.pager__item:focus-visible .pager__title { color: var(--cobalt); }

/* ---------------------------------------------------------
   Footer — reversed title block
   --------------------------------------------------------- */

.colophon {
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--lime);
}

.colophon .label { color: rgba(236, 231, 216, 0.66); }

.colophon__inner {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.colophon__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 740;
  font-weight: 740;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.022em;
  margin: 0.75rem 0 0;
}

.colophon__fields {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(236, 231, 216, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.colophon__field {
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(236, 231, 216, 0.18);
}

.colophon__field a {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

.colophon__pending {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(236, 231, 216, 0.55);
}

.colophon__base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
}

/* ---------------------------------------------------------
   Breakpoints
   --------------------------------------------------------- */

@media (min-width: 720px) {
  .plate__footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
  }
  .plate__link { justify-self: end; }
  .ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venture { border-bottom: 0; border-right: 1px solid var(--rule); }
  .venture:last-child { border-right: 0; }
  .pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager__item { border-bottom: 0; border-right: 1px solid var(--rule-soft); padding-right: 1.5rem; }
  .pager__item:last-child { border-right: 0; padding-right: 0; padding-left: 1.5rem; text-align: right; }
  .colophon__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .colophon__field { border-bottom: 0; padding-right: 1.5rem; }
}

@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .case__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .case__aside { position: sticky; top: 2rem; align-self: start; }
}

@media (max-width: 959px) {
  .case__grid { display: flex; flex-direction: column; }
  .case__aside { order: -1; }
}

@media (max-width: 640px) {
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .field { border-right: 0; border-bottom: 1px solid var(--rule); }
  .field:last-child { border-bottom: 0; }
  .field--full { border-top: 0; }
  .role { white-space: normal; }
  .role__line { flex-wrap: wrap; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .role__line { display: none; }
  .role__fallback { display: block; }
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------
   Type-led mode (no project imagery)
   --------------------------------------------------------- */

/* Spec bar — the title block reused at case-study scale */
.spec {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.spec__cell {
  padding: 0.9rem 1.1rem 1rem;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.spec__cell:last-child { border-bottom: 0; }

.spec__value {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

/* With no imagery the plates carry the section, so they get more air
   and a heavier rule between them. */
.plates { gap: 0; }

.plate + .plate {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule-soft);
}

.venture__name {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 720;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: -0.018em;
  line-height: 1;
  margin: 0;
}

@media (min-width: 720px) {
  .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spec__cell { border-bottom: 0; border-right: 1px solid var(--rule); }
  .spec__cell:last-child { border-right: 0; }
}

/* Venture marks. Height is scaled per logo so the two wordmarks read at the
   same size — Sonus Club is a two-tier lockup, so it needs more height than
   Arqiv to match its cap height. See logo_scale in data/site.json. */
.venture__mark { margin: 0; }

.venture__logo {
  height: calc(var(--logo-scale, 1) * clamp(30px, 3.6vw, 40px));
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Reach field — same mechanism as the role display, but set in the utility
   mono rather than the display face. Two headline-weight fields in one title
   block compete; setting this one as instrumentation gives the block a clear
   hierarchy and reads as a readout rather than a second headline. */
.role--place {
  font-family: var(--mono);
  font-variation-settings: normal;
  font-weight: 500;
  font-size: clamp(0.875rem, 1.15vw, 1.0625rem);
  letter-spacing: 0.16em;
  line-height: 1.35;
}







@media (max-width: 640px) {
  /* Wide tracking earns its keep on one line; over three it just looks loose. */
  .reach { letter-spacing: 0.14em; line-height: 2.1; }
}

.credits__link { color: var(--cobalt); }

/* =========================================================
   Surface pass — the sheet gets texture and the page gets an
   ink / paper / ink rhythm instead of one continuous surface
   ========================================================= */

/* Faint drafting grid across the paper. Ink bands paint over it. */
.sheet {
  background-image:
    linear-gradient(rgba(27,27,25,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,27,25,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* --- Hero as an ink band: paper masthead / ink hero / paper body / ink
   footer. The name in paper on ink is the visual event of the page. --- */
.hero--ink {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--lime);
}

.hero--ink .hero__name { color: var(--paper); }

.hero--ink .titleblock,
.hero--ink .field { border-color: rgba(236, 231, 216, 0.32); }

.hero--ink .label { color: rgba(236, 231, 216, 0.62); }

.hero--ink .field__text { color: rgba(236, 231, 216, 0.92); }

.hero--ink .hero__jump { color: var(--lime); }

.hero--ink ::selection { background: var(--lime); color: var(--ink); }

@media (max-width: 640px) {
  .hero--ink .field { border-color: rgba(236, 231, 216, 0.32); }
}

/* --- Plates: an oversized outlined numeral runs the left rail. --- */
.plate {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem 2.25rem;
}

.plate__num {
  font-family: var(--display);
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cobalt);
  align-self: start;
}

@supports not (-webkit-text-stroke: 1px black) {
  .plate__num { color: var(--cobalt); opacity: 0.55; }
}

@media (min-width: 720px) {
  .plate { grid-template-columns: clamp(4.5rem, 8vw, 7.5rem) minmax(0, 1fr); }
}

/* --- Case pages: the header is an ink band, the body returns to paper. --- */
.case__head--ink {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: clamp(2.25rem, 5vw, 4rem);
  border-bottom: 3px solid var(--lime);
}

.case__head--ink .label { color: rgba(236, 231, 216, 0.62); }
.case__head--ink .case__summary { color: rgba(236, 231, 216, 0.92); }
.case__head--ink .spec,
.case__head--ink .spec__cell { border-color: rgba(236, 231, 216, 0.32); }
.case__head--ink .reg::before,
.case__head--ink .reg::after { background: var(--lime); }
.case__head--ink ::selection { background: var(--lime); color: var(--ink); }

.case__grid { margin-top: 0; border-top: 0; }

/* --- Workstreams: the ruled index treatment, under the credits. --- */
.workstreams { margin-top: 2rem; }

.workstreams__list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.workstreams__list li {
  font-family: var(--mono);
  font-size: 0.78125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

/* --- Ventures: a heavier head rule and a hover response. --- */
.venture { border-top: 3px solid var(--ink); transition: border-color 0.2s ease; }
.venture:hover { border-top-color: var(--cobalt); }
@media (min-width: 720px) {
  .venture { border-bottom: 0; }
}



/* Title block: ROLE holds the full left column; BASE stacks over REACH on the
   right. SCOPE runs full width beneath. */
.field--role {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.field--base { border-bottom: 1px solid var(--rule); }
.hero--ink .field--base { border-bottom-color: rgba(236, 231, 216, 0.32); }

@media (max-width: 640px) {
  .field--role { grid-row: auto; }
  .field--base { border-bottom: 1px solid var(--rule); }
}

/* ---------------------------------------------------------
   About: portrait and bio at matched height, disciplines
   distributed on a single ruled line beneath
   --------------------------------------------------------- */

.about__grid { align-items: stretch; }

.about__media {
  margin: 0;
  position: relative;
  border: 1px solid var(--rule);
  min-height: 300px;
}

.about__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.about__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--lime);
}

.about__disciplines {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.about__row {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
}

.about__row li {
  font-family: var(--mono);
  font-size: 0.78125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about__row li::before {
  content: "/";
  color: var(--cobalt);
  margin-right: 0.7rem;
}

@media (max-width: 720px) {
  .about__row { justify-content: flex-start; }
}

/* Ventures: open composition — the 3px head rule carries the structure,
   no boxes around cards or content. */
.ventures { border: 0; }
.venture { border-right: 0 !important; border-bottom: 0; padding-left: 0; }

@media (min-width: 560px) {
  .ventures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
  .venture { border-bottom: 0; }
}

/* =========================================================
   Responsive cleanup pass
   ========================================================= */

/* Titles balance their own line breaks — a two-line wrap splits evenly
   instead of stranding the year alone on line two. */
.plate__title, .case__title, .colophon__title { text-wrap: balance; }

/* Disciplines: a fixed grid instead of space-between flex. Every row aligns
   to the same columns at every width — nothing scatters, nothing overflows. */
.about__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  justify-content: normal;
}
.about__row li { white-space: normal; }
@media (min-width: 900px) {
  .about__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Spec bar: two columns in the tablet band — four abreast crushes the long
   role value into a ragged stack against short neighbours. */
@media (min-width: 720px) and (max-width: 959px) {
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__cell { border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
  .spec__cell:nth-child(even) { border-right: 0; }
  .spec__cell:nth-child(n+3) { border-bottom: 0; }
  .case__head--ink .spec__cell { border-color: rgba(236, 231, 216, 0.32); }
}

/* Masthead on small screens: the nav takes its own full-width row instead of
   crowding beside the mark and location. */
@media (max-width: 599px) {
  .masthead { row-gap: 0.7rem; }
  .masthead__nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--rule-soft);
  }
}

/* Footer holds four fields now */
@media (min-width: 720px) { .colophon__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .colophon__fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.colophon__icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 0.5rem;
}

/* Icon and URL are one unbreakable unit — a narrow column can never split them */
.colophon__field a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.colophon__icon { margin-right: 0; vertical-align: 0; }
