:root {
  --flag-white: #f4f4f0;
  --carbon: #121313;
  --genoese-red: #c8102e;
  --alloy: #b9bdb8;
  --harbor: #385b5a;
  --carbon-secondary: rgba(18, 19, 19, 0.72);
  --white-secondary: rgba(244, 244, 240, 0.72);
  --max: 1504px;
  --sans: "Helvetica Neue", "Arial Nova", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--flag-white);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--genoese-red);
  color: var(--flag-white);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--carbon);
  color: var(--flag-white);
  font-family: var(--mono);
  font-size: 0.75rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 80px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 44px;
  min-height: 94px;
  border-bottom: 1px solid var(--alloy);
}

.site-header::before,
.site-header::after {
  position: absolute;
  top: 0;
  content: "";
  background: var(--genoese-red);
}

.site-header::before {
  left: 0;
  width: 112px;
  height: 4px;
}

.site-header::after {
  left: 108px;
  width: 4px;
  height: 28px;
}

.wordmark {
  display: inline-grid;
  justify-self: start;
  padding-top: 4px;
  line-height: 1;
}

.wordmark span:first-child {
  font-size: 1.35rem;
  font-weight: 700;
}

.wordmark span:last-child {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  position: relative;
  padding-block: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--genoese-red);
  transform: scaleX(0);
  transform-origin: left;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-index {
  color: var(--genoese-red);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: clamp(540px, calc(100svh - 132px), 760px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-block: 42px 40px;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  background: var(--genoese-red);
  pointer-events: none;
}

.hero::before {
  top: 16%;
  left: -40px;
  width: 21%;
  height: 3px;
}

.hero::after {
  top: calc(16% - 38px);
  left: calc(21% - 43px);
  width: 3px;
  height: 78px;
}

.hero-label,
.hero-foot {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 560px);
  gap: 40px;
}

.hero-label > span,
.hero-register,
.project-meta,
.workshop-index,
.footer-bottom {
  font-family: var(--mono);
}

.hero-label > span {
  color: var(--carbon-secondary);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--genoese-red);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  align-self: center;
  max-width: 1180px;
  margin: 48px 0;
  font-size: 8rem;
  font-weight: 600;
  line-height: 0.88;
}

.hero-foot {
  align-items: end;
}

.hero-register {
  color: var(--carbon-secondary);
  font-size: 0.68rem;
}

.hero-copy {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.22;
}

.manifesto-band {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  color: var(--flag-white);
}

.manifesto-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 220px;
}

.manifesto-marker {
  position: relative;
  align-self: stretch;
  border-left: 6px solid var(--genoese-red);
}

.manifesto-marker::after {
  position: absolute;
  top: 50%;
  left: -6px;
  width: 130px;
  height: 6px;
  content: "";
  background: var(--genoese-red);
}

.manifesto-grid p {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
}

.manifesto-grid p span {
  display: block;
  margin-bottom: 20px;
  color: var(--white-secondary);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
}

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

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 68px;
}

.section-note {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--carbon-secondary);
  font-size: 1rem;
}

.section h2 {
  margin-bottom: 0;
  font-size: 4.75rem;
  font-weight: 600;
  line-height: 0.96;
}

.section-heading .eyebrow {
  font-size: 0.72rem;
  line-height: 1.25;
}

.project-list {
  border-top: 1px solid var(--carbon);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr auto;
  gap: 40px;
  align-items: start;
  min-height: 190px;
  padding: 32px 24px;
  border-bottom: 1px solid var(--alloy);
}

.project-card::before {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -40px;
  width: 6px;
  content: "";
  background: var(--genoese-red);
  transform: scaleY(0);
  transform-origin: top;
}

.project-card:hover,
.project-card:focus-visible {
  background: var(--carbon);
  color: var(--flag-white);
}

.project-card:hover::before,
.project-card:focus-visible::before {
  transform: scaleY(1);
}

.project-card:focus-visible {
  outline-offset: 0;
}

.project-meta {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  color: var(--carbon-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-meta span:first-child {
  color: var(--genoese-red);
}

.project-card:hover .project-meta,
.project-card:focus-visible .project-meta,
.project-card:hover .project-meta span:first-child,
.project-card:focus-visible .project-meta span:first-child,
.project-card:hover p,
.project-card:focus-visible p {
  color: var(--flag-white);
}

.project-card h3 {
  margin: -5px 0 12px;
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 0.96;
}

.project-card p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--carbon-secondary);
  font-size: 1rem;
}

.project-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--alloy);
  font-size: 1.15rem;
}

.project-card:hover .project-arrow,
.project-card:focus-visible .project-arrow {
  border-color: var(--genoese-red);
  background: var(--genoese-red);
  color: var(--flag-white);
}

.principles .section-heading {
  align-items: start;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--alloy);
  border-left: 1px solid var(--alloy);
}

.principle-grid article {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--alloy);
  border-bottom: 1px solid var(--alloy);
}

.principle-grid article::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  content: "";
  background: var(--genoese-red);
}

.principle-grid span {
  color: var(--genoese-red);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.principle-grid h3 {
  max-width: 280px;
  margin: 86px 0 14px;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.05;
}

.principle-grid p {
  max-width: 310px;
  margin: 0;
  color: var(--carbon-secondary);
}

.workshop {
  position: relative;
  border-bottom: 1px solid var(--alloy);
}

.workshop::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  content: "";
  background: var(--harbor);
}

.workshop-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 72px;
}

.workshop-heading {
  padding-right: 52px;
  border-right: 1px solid var(--alloy);
}

.workshop .eyebrow {
  margin-bottom: 28px;
  color: var(--harbor);
}

.workshop h2 {
  max-width: 940px;
  font-size: 4.25rem;
}

.workshop-copy {
  align-self: end;
  padding-top: 80px;
}

.workshop-index {
  display: block;
  margin-bottom: 48px;
  color: var(--harbor);
  font-size: 0.68rem;
  font-weight: 700;
}

.workshop-copy p {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.workshop-copy a {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--harbor);
  font-weight: 600;
}

.workshop-copy a:hover {
  color: var(--harbor);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--carbon);
  border-left: 1px solid var(--alloy);
}

.capability-grid article {
  position: relative;
  padding: 32px 28px 36px;
  border-right: 1px solid var(--alloy);
  border-bottom: 1px solid var(--alloy);
}

.capability-index {
  color: var(--genoese-red);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.capability-grid h3 {
  margin: 18px 0 14px;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

.capability-grid article > p {
  max-width: 320px;
  margin: 0 0 24px;
  color: var(--carbon-secondary);
  font-size: 1.02rem;
}

.capability-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-grid li {
  padding: 10px 0;
  border-top: 1px solid var(--alloy);
  font-size: 0.95rem;
}

.capability-grid li:first-child {
  border-top: 1px solid var(--carbon);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.start-cta {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 5px;
  border-bottom: 3px solid var(--genoese-red);
  font-size: 1.35rem;
  font-weight: 600;
}

.start-cta:hover {
  background: var(--genoese-red);
  color: var(--flag-white);
}

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

.case-hero {
  position: relative;
  padding-block: 64px 56px;
  border-bottom: 1px solid var(--alloy);
}

.case-back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--carbon-secondary);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.case-back:hover {
  color: var(--genoese-red);
}

.case-hero h1 {
  max-width: 15ch;
  margin: 20px 0 0;
  font-size: 5.5rem;
  font-weight: 600;
  line-height: 0.94;
}

.case-lead {
  max-width: 720px;
  margin: 40px 0 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.28;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--carbon);
}

.case-meta div {
  display: grid;
  gap: 8px;
}

.case-meta dt {
  color: var(--genoese-red);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
}

.case-body {
  padding-block: 96px;
}

.case-figure {
  margin: 0 0 72px;
}

.case-figure .frame {
  position: relative;
  padding: 14px;
  border: 1px solid var(--alloy);
  background: #fff;
}

.case-figure .frame::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 4px;
  content: "";
  background: var(--genoese-red);
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.case-figure figcaption {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  color: var(--carbon-secondary);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
}

.case-figure figcaption::before {
  flex: none;
  width: 22px;
  height: 10px;
  margin-top: 3px;
  content: "";
  background: var(--genoese-red);
}

.case-body .measure {
  max-width: 760px;
}

.case-body h2 {
  max-width: 22ch;
  margin: 72px 0 20px;
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1.02;
}

.case-body h2:first-child {
  margin-top: 0;
}

.case-body p {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: 1.12rem;
  line-height: 1.55;
}

.case-body p:last-child {
  margin-bottom: 0;
}

.case-outcome {
  position: relative;
  margin-block: 24px;
  padding: 40px 0 40px 40px;
  border-left: 6px solid var(--genoese-red);
}

.case-outcome .eyebrow {
  margin-bottom: 16px;
}

.case-outcome p {
  max-width: 760px;
  margin: 0;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.24;
}

.case-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-block: 44px;
  border-top: 1px solid var(--alloy);
}

.case-next .eyebrow {
  margin: 0;
}

.case-next a {
  font-size: 2rem;
  font-weight: 600;
}

.case-next a:hover {
  color: var(--genoese-red);
}

.about-grid p:last-child {
  max-width: 760px;
  margin: 34px 0 0;
  color: var(--carbon-secondary);
  font-size: 1.3rem;
}

.footer {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  color: var(--flag-white);
}

.footer::before,
.footer::after {
  position: absolute;
  content: "";
  background: var(--genoese-red);
}

.footer::before {
  top: 0;
  right: 0;
  width: 26%;
  height: 7px;
}

.footer::after {
  top: 0;
  right: 26%;
  width: 7px;
  height: 110px;
}

.footer-inner {
  padding-block: 112px 36px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.footer .eyebrow {
  color: var(--flag-white);
}

.footer h2 {
  max-width: 1050px;
  margin: 0 0 54px;
  font-size: 6.3rem;
  font-weight: 600;
  line-height: 0.92;
}

.footer-main > a {
  grid-column: 2;
  justify-self: start;
  padding-bottom: 5px;
  border-bottom: 3px solid var(--genoese-red);
  font-size: 1.35rem;
  font-weight: 600;
}

.footer-main > a:hover {
  background: var(--genoese-red);
  color: var(--flag-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 130px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 244, 240, 0.35);
  color: var(--white-secondary);
  font-size: 0.68rem;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 6.5rem;
  }

  .section h2 {
    font-size: 4rem;
  }

  .project-card h3 {
    font-size: 3rem;
  }

  .workshop h2 {
    font-size: 3.6rem;
  }

  .case-hero h1 {
    font-size: 4.25rem;
  }

  .footer h2 {
    font-size: 5.1rem;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
    min-height: 86px;
  }

  .site-header::before {
    width: 124px;
  }

  .site-header::after {
    left: 120px;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    padding-bottom: 12px;
  }

  .header-index {
    justify-self: end;
  }

  .hero {
    min-height: clamp(500px, calc(100svh - 126px), 680px);
    padding-block: 32px 30px;
  }

  .hero::before {
    left: -16px;
    width: 32%;
  }

  .hero::after {
    left: calc(32% - 19px);
  }

  .hero-label,
  .hero-foot,
  .section-heading,
  .about-grid,
  .workshop-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero-label > span {
    display: none;
  }

  h1 {
    font-size: 4.25rem;
    line-height: 0.9;
  }

  .hero-foot {
    gap: 20px;
  }

  .hero-copy {
    max-width: 560px;
    font-size: 1.3rem;
  }

  .manifesto-grid {
    grid-template-columns: 30px 1fr;
    gap: 28px;
    padding-block: 44px;
  }

  .manifesto-marker {
    grid-row: 1 / 3;
  }

  .manifesto-marker::after {
    width: 54px;
  }

  .manifesto-grid p {
    font-size: 1.2rem;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    gap: 28px;
    margin-bottom: 48px;
  }

  .section h2 {
    font-size: 3.25rem;
  }

  .project-card {
    grid-template-columns: 1fr auto;
    gap: 24px;
    min-height: 0;
    padding-block: 28px;
    padding-right: 4px;
  }

  .project-card::before {
    left: -16px;
    width: 4px;
  }

  .project-meta {
    grid-column: 1 / -1;
    grid-template-columns: 42px 1fr;
  }

  .project-card h3 {
    font-size: 2.5rem;
  }

  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .principle-grid article {
    min-height: 250px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .case-hero {
    padding-block: 44px 40px;
  }

  .case-hero h1 {
    font-size: 3rem;
  }

  .case-lead {
    font-size: 1.25rem;
  }

  .case-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .case-body {
    padding-block: 68px;
  }

  .case-figure {
    margin-bottom: 48px;
  }

  .case-figure .frame {
    padding: 8px;
  }

  .case-body h2 {
    font-size: 1.85rem;
    margin-top: 56px;
  }

  .case-body p {
    font-size: 1.05rem;
  }

  .case-outcome {
    padding: 28px 0 28px 24px;
  }

  .case-outcome p {
    font-size: 1.35rem;
  }

  .case-next a {
    font-size: 1.6rem;
  }

  .principle-grid h3 {
    margin-top: 66px;
  }

  .workshop-heading {
    padding-right: 0;
    padding-bottom: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--alloy);
  }

  .workshop h2 {
    font-size: 3.1rem;
  }

  .workshop-copy {
    padding-top: 0;
  }

  .workshop-index {
    margin-bottom: 32px;
  }

  .footer-inner {
    padding-block: 80px 30px;
  }

  .footer-main {
    gap: 32px;
  }

  .footer h2 {
    font-size: 4.2rem;
  }

  .footer-main > a {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 0.75rem;
  }

  h1 {
    font-size: 3.35rem;
  }

  .hero-copy {
    font-size: 1.15rem;
  }

  .manifesto-grid {
    gap: 20px;
  }

  .section h2,
  .workshop h2 {
    font-size: 2.6rem;
  }

  .project-card h3 {
    font-size: 2.1rem;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: 220px;
  }

  .case-hero h1 {
    font-size: 2.5rem;
  }

  .case-meta {
    grid-template-columns: 1fr;
  }

  .footer h2 {
    font-size: 3.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    margin-top: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
