:root {
  color-scheme: light;
  --paper: #f8f5f0;
  --paper-secondary: #f0ece6;
  --ink: #1a1a2e;
  --emerald: #00e87b;
  --green: #059669;
  --display: "Arial Black", "Avenir Next", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --label: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--emerald);
  border: 3px solid var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  top: 70px;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.header-inner,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
  transition: min-height 160ms ease;
}

.site-header.is-compact .header-inner {
  min-height: 44px;
}

.wordmark,
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 850;
  text-decoration: none;
}

.wordmark {
  font-family: var(--display);
  letter-spacing: -0.03em;
}

.site-header nav {
  display: flex;
  gap: clamp(8px, 2vw, 28px);
}

.site-header nav a:hover,
footer a:hover {
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

main {
  padding-block: clamp(20px, 2vw, 24px) clamp(34px, 6vw, 78px);
}

#work,
#about,
#contact,
.case-card {
  scroll-margin-top: 47px;
}

.hero {
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--emerald);
  animation: hero-settle 420ms ease-out both;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.hero-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-secondary);
  border-right: 3px solid var(--ink);
}

.hero-identity img {
  width: min(100%, 240px);
  height: auto;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: 10px 10px 0 var(--emerald);
}

.hero-identity figcaption {
  display: grid;
  gap: 4px;
}

.hero-identity strong {
  font-family: var(--display);
  font-size: clamp(2rem, 3.7vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-identity span,
.evidence-facts dt {
  color: var(--green);
  font-family: var(--label);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-message {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.5vw, 42px);
}

.hero-message h1 {
  margin-top: 0;
}

@keyframes hero-settle {
  from {
    opacity: 0;
    transform: translate(10px, 10px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.case-label,
.section-label {
  margin: 0;
  color: var(--green);
  font-family: var(--label);
  font-size: 1.17rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
.hero-emphasis {
  font-family: var(--display);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 12ch;
  margin: 20px 0 0;
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
}

.hero-emphasis {
  max-width: 26ch;
  margin: 14px 0 0;
  color: var(--green);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
}

.hero-support {
  max-width: 58ch;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 3px solid var(--ink);
  border-radius: 3px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  background: var(--emerald);
}

.button-secondary {
  background: var(--paper);
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.evidence-rail {
  display: block;
  min-width: 0;
  border-top: 3px solid var(--ink);
}

.evidence-cover {
  aspect-ratio: 4 / 3;
  border-right: 3px solid var(--ink);
  border-bottom: 0;
}

.evidence-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.evidence-facts div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 2vw, 24px);
  border-right: 3px solid var(--ink);
}

.evidence-facts div:last-child {
  border-right: 0;
}

.evidence-facts dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 1.05;
}

.work-section {
  padding-top: clamp(32px, 3vw, 40px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--ink);
}

.section-heading h2,
.lower-grid h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.section-heading p {
  margin: 0;
  font-family: var(--label);
}

.featured-label,
.secondary-label {
  margin: 28px 0 0;
  color: var(--green);
  font-family: var(--label);
  font-size: 0.95rem;
  font-weight: 800;
}

.secondary-label {
  margin-top: 44px;
}

.work-grid {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 2.1fr);
  min-width: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 3px;
  box-shadow: 6px 6px 0 var(--emerald);
}

.case-intro {
  display: grid;
  grid-template-areas:
    "label label"
    "title title"
    "role visual";
  grid-template-columns: minmax(0, 1fr) 112px;
  align-content: center;
  align-items: center;
  column-gap: 16px;
  min-width: 0;
  padding: 22px;
  color: var(--paper);
  background: var(--ink);
  border-right: 3px solid var(--ink);
}

.case-intro .case-label {
  grid-area: label;
  color: var(--emerald);
  font-size: 0.82rem;
}

.case-card h3 {
  grid-area: title;
  margin: 12px 0 0;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  overflow-wrap: anywhere;
}

.case-role {
  grid-area: role;
  margin: 14px 0 0;
  color: var(--paper-secondary);
  font-size: 0.9rem;
  font-weight: 750;
}

.case-visual {
  grid-area: visual;
  width: 112px;
  height: 88px;
  color: var(--emerald);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.case-visual .visual-fill {
  fill: currentColor;
  stroke: none;
  opacity: 0.11;
}

.case-visual .visual-solid {
  fill: currentColor;
  stroke: none;
}

.case-summary {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr;
  min-width: 0;
  margin: 0;
}

.case-summary div {
  min-width: 0;
  padding: 22px;
  border-left: 2px solid var(--ink);
}

.case-summary div:first-child {
  border-left: 0;
}

.case-summary dt {
  color: var(--green);
  font-family: var(--label);
  font-size: 0.75rem;
  font-weight: 900;
}

.case-summary dd {
  margin: 9px 0 0;
  line-height: 1.45;
}

.case-summary strong {
  font-family: var(--label);
  font-size: 1.04em;
  font-weight: 900;
}

.capabilities {
  margin-top: clamp(70px, 10vw, 112px);
  padding: clamp(24px, 4vw, 44px);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.capabilities p {
  max-width: 42ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-top: clamp(70px, 10vw, 112px);
  background: var(--ink);
  border: 3px solid var(--ink);
}

.lower-grid section {
  min-width: 0;
  padding: clamp(28px, 5vw, 60px);
  background: var(--paper);
}

.lower-grid h2 {
  margin-top: 12px;
}

.lower-grid h2 + p {
  max-width: 48ch;
  margin: 22px 0 0;
  font-size: 1.1rem;
}

#contact .button {
  margin-top: 24px;
}

.contact-note {
  max-width: 46ch;
  margin: 20px 0 0;
  font-size: 0.9rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 110px;
  border-top: 3px solid var(--ink);
}

footer p {
  margin: 0;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-intro {
    grid-template-areas:
      "label visual"
      "title visual"
      "role visual";
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }
}

@media (max-width: 820px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-identity {
    display: grid;
    grid-template-columns: minmax(82px, 132px) minmax(0, 1fr);
    align-items: end;
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }

  .hero-identity img {
    width: 100%;
    box-shadow: 6px 6px 0 var(--emerald);
  }

  .hero-message {
    padding: clamp(28px, 7vw, 48px);
  }

  .evidence-rail {
    grid-template-columns: 1fr;
  }

  .evidence-cover {
    display: none;
  }

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

  .evidence-facts div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .case-summary {
    grid-template-columns: 1fr;
  }

  .case-summary div {
    padding: 18px;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .case-summary div:first-child {
    border-top: 0;
  }
}

@media (max-width: 520px) {
  .header-inner,
  main,
  footer {
    width: calc(100% - 28px);
  }

  .header-inner {
    min-height: 52px;
    flex-wrap: nowrap;
    gap: 8px;
    padding-block: 0;
  }

  .wordmark,
  .site-header nav a {
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .site-header nav {
    min-width: 0;
    gap: 6px;
  }

  main {
    padding-top: 28px;
  }

  .hero {
    box-shadow: 6px 6px 0 var(--emerald);
  }

  .hero-message,
  .hero-identity {
    padding: 28px 14px 30px;
  }

  .hero-identity {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
  }

  .hero-identity strong {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 3rem);
  }

  .hero-emphasis {
    font-size: clamp(1.55rem, 7.6vw, 2.15rem);
  }

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

  .work-section {
    padding-top: 76px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .work-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    gap: 24px;
  }

  .case-intro {
    grid-template-columns: minmax(0, 1fr) 96px;
    padding-right: 18px;
  }

  .case-visual {
    width: 96px;
    height: 76px;
  }

  .case-card {
    box-shadow: 6px 6px 0 var(--emerald);
  }

  .lower-grid {
    gap: 3px;
  }

  footer {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

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

  .header-inner {
    transition: none;
  }

  .hero {
    animation: none;
  }
}
