:root {
  --paper: #F5F5F2;
  --surface: #FFFFFF;
  --muted: #E9E9E6;
  --ink: #111111;
  --ink-soft: #555555;
  --line: #D1D1CC;
  --line-strong: #737373;
  --accent: #1F5F8B;
  --accent-dark: #174B6D;
  --accent-light: #84C1EB;
  --dark: #111111;
  --dark-surface: #1C1C1C;
  --max: 1180px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 2px solid var(--accent);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-180%);
}

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

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

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

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
  font-weight: 800;
  line-height: 1;
}

.brand span,
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a,
.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  border-color: var(--ink);
  outline: 0;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
  line-height: 1.1;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

section,
footer {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

section[id] {
  scroll-margin-top: 88px;
}

.hero {
  padding: 64px 0 80px;
  background: var(--dark);
  color: var(--surface);
  border-color: var(--dark);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 48px;
  color: #B8B8B8;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent-light);
  outline: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .55fr);
  gap: 64px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 16px;
}

.hero .eyebrow,
.site-footer .eyebrow {
  color: var(--accent-light);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: .9;
  letter-spacing: -.045em;
}

h2 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(32px, 4.8vw, 60px);
  line-height: .98;
  letter-spacing: -.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 28px;
  color: #C7C7C7;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.4;
}

.hero-summary {
  padding-top: 18px;
  border-top: 4px solid var(--accent-light);
}

.hero-summary strong,
.hero-summary span {
  display: block;
}

.hero-summary strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-summary span {
  color: #B8B8B8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .button {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--ink);
}

.hero .button.secondary {
  border-color: #666666;
  background: transparent;
  color: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(260px, .28fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-note {
  margin: 0;
  padding-top: 14px;
  border-top: 4px solid var(--ink);
  font-weight: 700;
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.need {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.need:nth-child(3n) {
  border-right: 0;
}

.need-tag {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.need p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.portfolio {
  background: var(--surface);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 228px;
  gap: 16px;
}

.portfolio-slot {
  min-width: 0;
  min-height: 0;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.portfolio-slot.featured {
  grid-column: span 8;
  grid-row: span 2;
}

.portfolio-slot:nth-child(4),
.portfolio-slot:nth-child(5) {
  grid-column: span 6;
}

.portfolio-media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--muted);
}

.portfolio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-slot figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-top: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.portfolio-slot figcaption strong {
  color: var(--ink);
}

.portfolio-slot figcaption span {
  text-align: right;
}

.portfolio-help {
  max-width: 760px;
  margin: 32px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--paper);
}

.process-section {
  background: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
  border-top: 4px solid var(--ink);
}

.step {
  min-height: 180px;
  padding: 22px;
  border-right: 1px solid var(--line-strong);
  counter-increment: step;
}

.step:last-child {
  border-right: 0;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-weight: 800;
}

.step strong,
.step span {
  display: block;
}

.step span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-link {
  min-height: 136px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 22px;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.related-link:hover,
.related-link:focus-visible {
  background: var(--ink);
  color: var(--surface);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.cta-section {
  background: var(--dark);
  color: var(--surface);
  border-color: var(--dark);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.cta-section p {
  max-width: 680px;
  margin-bottom: 0;
  color: #B8B8B8;
  font-size: 18px;
}

.cta-section .button {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--ink);
}

.site-footer {
  padding: 40px 0;
  background: var(--dark);
  color: var(--surface);
  border: 0;
}

.footer-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.footer-grid p {
  margin-bottom: 0;
  color: #B8B8B8;
  font-size: 13px;
}

.event-footer-meta {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.event-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.event-legal-links a {
  color: #C4C4C4;
  font-size: 13px;
  font-weight: 800;
}

.event-legal-links a:hover,
.event-legal-links a:focus-visible {
  color: var(--accent-light);
  outline: none;
}

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

  .related-link {
    transition: none;
  }

  .related-link:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .section-head,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    max-width: 620px;
  }

  .needs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .need:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .need:nth-child(2n) {
    border-right: 0;
  }

  .portfolio-slot,
  .portfolio-slot.featured,
  .portfolio-slot:nth-child(4),
  .portfolio-slot:nth-child(5) {
    grid-column: span 6;
    grid-row: auto;
  }

  .portfolio-grid {
    grid-auto-rows: auto;
  }

  .portfolio-media {
    flex: none;
    aspect-ratio: 3 / 2;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  section,
  footer {
    padding: 52px 0;
  }

  .nav {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    max-width: 188px;
    font-size: 14px;
  }

  .brand span {
    font-size: 10px;
  }

  .back-link {
    font-size: 13px;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .breadcrumb {
    margin-bottom: 36px;
  }

  h1 {
    font-size: clamp(44px, 15vw, 66px);
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .needs-grid,
  .process,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .need,
  .need:nth-child(2n),
  .need:nth-child(3n) {
    min-height: 0;
    border-right: 0;
  }

  .need-tag {
    margin-bottom: 24px;
  }

  .portfolio-slot,
  .portfolio-slot.featured,
  .portfolio-slot:nth-child(4),
  .portfolio-slot:nth-child(5) {
    grid-column: 1 / -1;
  }

  .portfolio-slot figcaption {
    min-height: 0;
  }

  .step,
  .step:nth-child(2n) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .step::before {
    margin-bottom: 20px;
  }

  .footer-grid {
    display: grid;
  }

  .event-footer-meta {
    justify-items: start;
  }

  .event-legal-links {
    justify-content: flex-start;
  }
}
