* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-sans);
  font-variation-settings: "wdth" 100;
}

h1, h2, h3, p, figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

a:focus-visible, summary:focus-visible {
  outline: var(--focus-w) solid var(--focus);
  outline-offset: 5px;
}

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

.podium {
  background: var(--podium);
  color: var(--on-podium);
}

.podium a:focus-visible {
  outline-color: var(--brand);
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 24px;
  padding: 12px 20px;
  background: var(--surface-raised);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 24px;
  border-bottom: 1px solid var(--slate-600);
}

.brand {
  padding-block: 12px;
}

.brand img {
  display: block;
  width: 193px;
  height: auto;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  font-size: 14px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  padding-block: 64px;
}

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-label {
  margin-bottom: 32px;
  color: var(--on-podium-muted);
}

.drietrap {
  position: relative;
  padding-left: 26px;
  font-size: clamp(24px, 5.1vw, 64px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.drietrap::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--streep-w-lg);
  background: var(--brand);
  content: "";
  transform-origin: top;
  animation: grow-rule var(--duration-slow) var(--ease-out) both;
}

.drietrap span {
  display: block;
}

.drietrap span:first-child {
  color: var(--on-podium-muted);
}

.drietrap span:last-child {
  color: var(--brand);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: end;
  margin-top: 48px;
}

.introduction {
  padding-bottom: 4px;
}

.introduction h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.introduction p {
  max-width: 37ch;
  margin-top: 16px;
  color: var(--on-podium-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  margin-top: 24px;
  font-size: 14px;
}

.diagram {
  padding: 24px 32px 0;
  background: var(--podium-raised);
}

.diagram-heading, .diagram figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--on-podium-muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.diagram svg {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 8px auto;
}

.diagram figcaption {
  padding-block: 16px;
  border-top: 1px solid var(--slate-600);
}

.work {
  padding-block: 96px 80px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr 40px;
  column-gap: 40px;
  align-items: baseline;
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  grid-row: 1 / 3;
}

.section-heading h2 {
  grid-column: 2 / 4;
  font-size: 48px;
  line-height: 52px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.section-heading > p:last-child {
  grid-column: 2 / 4;
  margin-top: 12px;
  color: var(--ink-muted);
}

.situations {
  border-bottom: 1px solid var(--border);
}

details {
  border-top: 1px solid var(--border);
}

summary {
  display: grid;
  grid-template-columns: 1fr 2fr 40px;
  column-gap: 40px;
  align-items: center;
  min-height: 104px;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:hover .situation-title {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.role {
  color: var(--ink-muted);
  font-size: 14px;
}

.situation-title {
  font-size: clamp(22px, 2.35vw, 30px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

.expand-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.expand-icon::before, .expand-icon::after {
  position: absolute;
  top: 18px;
  left: 11px;
  width: 16px;
  height: 2px;
  background: currentColor;
  content: "";
}

.expand-icon::after {
  transform: rotate(90deg);
}

details[open] .expand-icon::after {
  display: none;
}

.situation-body {
  display: grid;
  grid-template-columns: 1fr 2fr 40px;
  column-gap: 40px;
  padding-bottom: 32px;
}

.situation-body p {
  grid-column: 2;
  max-width: 57ch;
  color: var(--ink-muted);
}

.approach {
  display: grid;
  grid-template-columns: 1fr 2fr 40px;
  gap: 40px;
  padding-top: 40px;
}

.approach h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.approach p {
  grid-column: 2 / 4;
  max-width: 57ch;
  color: var(--ink-muted);
}

.contact {
  padding-block: 64px;
  background: var(--surface-inset);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.contact h2 {
  margin-top: 24px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  font-weight: 800;
}

.contact-action {
  max-width: 370px;
}

.contact-action p {
  max-width: 34ch;
  color: var(--ink-muted);
}

.primary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}

.primary-link:hover {
  background: var(--brand-hover);
}

.email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  color: var(--ink-muted);
  font-size: 12px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

@keyframes grow-rule {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 80px);
  }

  .hero-bottom, .contact-grid {
    gap: 32px;
  }

  .diagram {
    padding-inline: 20px;
  }

  summary, .situation-body, .section-heading, .approach {
    column-gap: 24px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .masthead {
    min-height: 80px;
    gap: 16px;
  }

  .brand img {
    width: 160px;
  }

  nav {
    gap: 20px;
  }

  nav a {
    gap: 8px;
    font-size: 13px;
  }

  .hero {
    padding-block: 40px 48px;
  }

  .hero-label {
    max-width: 34ch;
    margin-bottom: 24px;
    font-size: 10px;
  }

  .drietrap {
    padding-left: 18px;
    font-size: clamp(20px, 6.3vw, 44px);
  }

  .drietrap::before {
    width: var(--streep-w);
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }

  .introduction h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .introduction p {
    max-width: 45ch;
  }

  .text-link {
    margin-top: 16px;
  }

  .diagram {
    padding: 20px 20px 0;
  }

  .work {
    padding-block: 48px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }

  .section-heading .eyebrow {
    grid-row: auto;
  }

  .section-heading h2 {
    grid-column: auto;
    font-size: 36px;
    line-height: 40px;
  }

  .section-heading > p:last-child {
    grid-column: auto;
    margin-top: 0;
  }

  summary {
    grid-template-columns: 1fr 40px;
    row-gap: 12px;
    column-gap: 20px;
    padding-block: 24px;
  }

  .role {
    grid-column: 1;
    font-size: 12px;
  }

  .situation-title {
    grid-column: 1;
    font-size: 24px;
  }

  .expand-icon {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .situation-body {
    display: block;
    padding: 0 60px 24px 0;
  }

  .approach {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 32px;
  }

  .approach p {
    grid-column: auto;
  }

  .approach h3 br {
    display: none;
  }

  .contact {
    padding-block: 48px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact h2 {
    margin-top: 16px;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 132px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 12px;
  }

  .diagram-heading, .diagram figcaption {
    font-size: 9px;
    letter-spacing: .04em;
  }

  .footer {
    gap: 12px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drietrap::before {
    animation: none;
  }

  .primary-link {
    transition: none;
  }
}
