:root {
  --ink: #0d0d0d;
  --paper: #fdf6e9;
  --yellow: #ffe14d;
  --pink: #ff5fa2;
  --blue: #4d7fff;
  --lime: #baff29;
  --border: 4px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --sans: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-size: 16px;
  background-image:
    radial-gradient(circle, rgba(13, 13, 13, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
}

a {
  color: inherit;
}

.container-pad {
  padding: 0 24px;
}

/* Header */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: var(--border);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  transition: opacity .01s step-end;
}

.brand-logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.brand:hover .brand-logo-default {
  opacity: 0;
}

.brand:hover .brand-logo-hover {
  opacity: 1;
}

.brand-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.brand:hover {
  color: var(--pink);
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bar nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.bar nav a:hover {
  color: var(--pink);
}

.nav-cta {
  background: var(--lime);
  border: 3px solid var(--ink);
  padding: 6px 14px;
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 6px;
}

/* Hero */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-image {
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 6px solid var(--ink);
  border-radius: 12px;
}

.stamp {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  margin: 0 0 24px;
  transform: rotate(-2deg);
  border-radius: 6px;
}

.hero h1 {
  font-size: 84px;
  line-height: 0.95;
  margin: 0 0 24px;
}

.sub {
  font-size: 20px;
  max-width: 48ch;
  margin: 0 0 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.chip {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink);
  padding: 12px 20px;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  border-radius: 6px;
}

.chip:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--ink);
}

.chip-yellow {
  background: var(--yellow);
}

.chip-blue {
  background: var(--blue);
  color: var(--paper);
}

.chip-pink {
  background: var(--pink);
}

/* Sections */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section.alt {
  background: rgba(13, 13, 13, 0.04);
}

.section h2 {
  font-size: 36px;
  margin: 0 0 40px;
}

.hl {
  background: var(--lime);
  padding: 0 8px;
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 6px;
}

/* Work */

.work-list-b {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.work-card-b {
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 6px;
}

.work-card-b:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--ink);
}

.wcb-media {
  flex: 0 0 66.66%;
  background: #a8a8a4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-right: var(--border);
  border-radius: 3px 0 0 3px;
}

.placeholder-icon {
  width: 100%;
  max-width: 130px;
  height: auto;
  color: var(--ink);
}

.wcb-media.has-image {
  padding: 0;
}

.wcb-media.has-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 2px 0 0 2px;
}

.wcb-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  min-width: 0;
}

.wcb-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #4a4a4a;
  margin-bottom: 14px;
}

.wcb-body h3 {
  font-size: 21px;
  margin: 0 0 14px;
}

.wcb-body p {
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 62ch;
}

.wcb-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
  font-weight: 800;
  font-size: 13px;
}

.wcb-footer a {
  text-decoration: none;
}

.wcb-footer a:hover {
  color: var(--pink);
}

.wcb-footer .nda {
  font-style: italic;
  font-weight: 600;
}

/* Experience */

.exp-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border: var(--border);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px 24px;
  border-radius: 6px;
}

.exp-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.exp-date {
  font-weight: 900;
  font-size: 13px;
  background: var(--lime);
  padding: 4px 10px;
  border: 2px solid var(--ink);
  white-space: nowrap;
  border-radius: 6px;
}

.exp-card h3 {
  font-size: 18px;
  margin: 0;
}

.exp-org {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 14px;
}

.exp-desc {
  margin: 0;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  max-width: 70ch;
  padding-top: 10px;
  border-top: 3px solid var(--ink);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 24px;
  border-radius: 6px;
}

.about-card.big {
  grid-column: span 3;
  background: var(--yellow);
  font-size: 20px;
  font-weight: 600;
}

.about-card h3 {
  font-size: 15px;
  margin: 0 0 12px;
}

.about-card p {
  margin: 0;
  font-size: 15px;
}

/* Footer */

.footer {
  /* background: var(--ink); */
  background: rgba(13, 13, 13, 0.12);
  padding: 72px 24px 40px;
  text-align: center;
  border-top: 4px solid var(--ink);
}

.footer h2 {
  font-size: 48px;
  margin: 0 0 32px;
  /* color: var(--paper); */
  color: var(--ink);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.fine {
  font-size: 12px;
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Case study */

.cs-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 48px 24px 56px;
}

.cs-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.cs-back {
  display: inline-block;
  text-decoration: none;
  color: var(--paper);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  opacity: 0.75;
}

.cs-back:hover {
  color: var(--lime);
  opacity: 1;
}

.cs-eyebrow {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  margin-bottom: 20px;
  transform: rotate(-1deg);
  border-radius: 6px;
}

.cs-hero h1 {
  font-size: 56px;
  line-height: 1;
  margin: 0 0 20px;
  color: var(--paper);
}

.cs-tagline {
  font-size: 19px;
  max-width: 60ch;
  color: rgba(253, 246, 233, 0.75);
  margin: 0;
}

.cs-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: start;
}

.cs-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.cs-block h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.cs-block p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 70ch;
}

.cs-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.cs-aside-block {
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  border-radius: 6px;
}

.cs-aside-block h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

.cs-aside-block a {
  text-decoration: none;
  font-weight: 700;
  word-break: break-word;
}

.cs-aside-block a:hover {
  color: var(--pink);
}

.cs-aside-block .nda {
  font-style: italic;
  color: #4a4a4a;
  font-weight: 400;
}

.cs-aside-block p {
  margin: 0;
  font-weight: 700;
}

.cs-gallery-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.cs-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.cs-gallery figure {
  margin: 0;
}

.cs-gallery-caption {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 18px;
  margin: 0 0 12px;
}

.cs-gallery-thumb {
  aspect-ratio: 4 / 3;
  background: #d8d8d3;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.cs-gallery-thumb .placeholder-icon {
  max-width: 90px;
  color: var(--ink);
}

.cs-gallery-thumb.has-image {
  aspect-ratio: auto;
  background: none;
  overflow: hidden;
}

.cs-gallery-thumb.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-gallery-heading {
  font-size: 18px;
  margin: 0 0 20px;
}

.cs-gallery-mobile {
  grid-template-columns: repeat(6, 1fr);
}

.cs-gallery-mobile-5 {
  grid-template-columns: repeat(5, 1fr);
}

.work-card-b,
.exp-card,
.hl,
.exp-date,
.about-card,
.nav-cta,
.chip,
.stamp,
.cs-aside-block,
.cs-gallery-thumb,
.cs-eyebrow {
  border-radius: 6px;
}


/* Responsive */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-image {
    justify-self: center;
    order: -1;
    max-width: 320px;
  }


  .cs-gallery-mobile {
    grid-template-columns: repeat(3, 1fr);
  }

  .cs-gallery-mobile-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .sub {
    font-size: 17px;
  }

  .section {
    padding: 48px 20px;
  }

  .section h2 {
    font-size: 26px;
  }

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

  .about-card.big {
    grid-column: span 1;
  }

  .footer h2 {
    font-size: 30px;
  }

  .bar nav {
    gap: 12px;
  }

  .bar nav a:not(.nav-cta) {
    display: none;
  }

  .work-card-b {
    flex-direction: column;
  }

  .wcb-media {
    flex: none;
    aspect-ratio: 16 / 10;
    border-right: none;
    border-bottom: var(--border);
  }

  .cs-hero h1 {
    font-size: 36px;
  }

  .cs-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cs-aside {
    position: static;
  }

  .cs-gallery {
    grid-template-columns: 1fr;
  }

  .cs-gallery-mobile {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-gallery-mobile-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}