:root {
  --ink: #11110f;
  --paper: #f4efe5;
  --muted: rgba(17,17,15,.68);
  --line: rgba(17,17,15,.2);
  --max: 980px;
  --warm: #e5d7bf;
  --cream: #fffaf1;
  --grid: rgba(20,20,18,.12);
  --yellow: #f1d95a;
  --zora-green: #9cff59;
  --zora-pink: #ff65c8;
  --zora-purple: #7b4dff;
  --zora-violet: #db61ff;
  --about-red: #e5d7bf;
  --services-blue: #11110f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

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

img { max-width: 100%; }
a, button, input, textarea { font: inherit; }

.site-header {
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  display: block;
  padding: 0;
}

.brand { display: none; }

nav {
  width: min(var(--max), 100%);
  height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

nav a {
  height: 50px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 20px;
  line-height: 50px;
  font-weight: 800;
  letter-spacing: 0;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}

.hero {
  max-width: none;
  min-height: 440px;
  background-color: var(--warm);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 30px 30px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: clamp(24px, 3.5vh, 38px);
  padding: clamp(36px, 5.5vh, 50px) max(24px, calc((100vw - var(--max)) / 2)) 34px;
}

.hero-logo {
  display: block;
  width: min(760px, 100%);
  height: auto;
  max-height: 230px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.hero-copy {
  width: min(var(--max), 100%);
  margin: 0 auto;
  color: var(--ink);
  font-weight: 800;
}

.lede {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 30px;
  overflow-wrap: break-word;
}

.hero p:not(.lede) {
  font-size: 21px;
  line-height: 1.4;
  max-width: none;
  margin: 0;
}

.marker {
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 .05em;
}

.marker-green {
  background: linear-gradient(transparent 42%, var(--zora-green) 42% 82%, transparent 82%);
}

.marker-pink {
  background: linear-gradient(transparent 42%, var(--zora-pink) 42% 82%, transparent 82%);
}

.eyebrow,
.work-card p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0;
}

h2 {
  font-size: 24px;
  line-height: 36px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  margin: 0;
}

#projects > h2,
.selected-work > h2,
.about h2,
.substack h2,
.contact h2 {
  text-decoration-line: underline;
  text-decoration-thickness: .45em;
  text-underline-offset: -.28em;
  text-decoration-skip-ink: none;
}

#projects > h2,
.selected-work > h2 { text-decoration-color: var(--zora-green); }
.about h2 { text-decoration-color: var(--zora-pink); }
.substack h2,
.contact h2 { text-decoration-color: var(--zora-pink); }

#projects {
  max-width: none;
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 64px max(24px, calc((100vw - var(--max)) / 2)) 0;
}

.brand-wordmarks {
  width: min(760px, 100%);
  margin: 4px auto 50px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  align-items: center;
  gap: 26px 38px;
  list-style: none;
}

.brand-wordmarks li {
  min-height: 54px;
  display: grid;
  place-items: center;
}

.brand-wordmarks img,
.brand-crop {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1) brightness(0);
}

.brand-crop {
  width: var(--logo-w);
  height: var(--logo-h);
  max-width: none;
  max-height: none;
  background-image: var(--strip-image);
  background-position: calc(-1 * var(--logo-x)) calc(-1 * var(--logo-y));
  background-repeat: no-repeat;
  background-size: 600px 191px;
  filter: none;
  overflow: hidden;
  transform: scale(.92);
}

.brand-logo-philadelphia img,
.brand-logo-coca-cola img {
  max-width: 150px;
}

.brand-logo-peperami img {
  max-width: 150px;
  max-height: 44px;
  filter: grayscale(1) contrast(1.08);
}

.brand-logo-unilever img {
  max-width: 142px;
  max-height: 42px;
}

.brand-logo-lucozade-energy img {
  max-width: 166px;
  max-height: 46px;
}

.brand-logo-ribena img {
  filter: grayscale(1) contrast(1.08);
}

.brand-logo-ey img {
  max-width: 74px;
  max-height: 54px;
}

.brand-logo-dove img {
  max-width: 124px;
  max-height: 42px;
}

.brand-logo-tresemm img {
  filter: none;
}

.brand-logo-vodafone img {
  max-width: 154px;
  max-height: 40px;
  filter: none;
}

.brand-logo-the-body-shop img {
  max-width: 112px;
  max-height: 58px;
}

.brand-logo-mastercard img {
  max-width: 96px;
  max-height: 42px;
  filter: grayscale(1) contrast(1.12);
}

.brand-logo-three img {
  max-width: 118px;
  max-height: 48px;
}

.selected-work {
  max-width: none;
  background: var(--paper);
  padding: 82px max(24px, calc((100vw - var(--max)) / 2)) 96px;
}

.achievements {
  max-width: none;
  background: var(--warm);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 10px 0 var(--cream);
  padding: 62px max(24px, calc((100vw - var(--max)) / 2)) 58px;
}

.selected { margin-top: 0; }

.work-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 46px 40px;
}

.work-card a,
.work-card > div {
  color: var(--ink);
  text-decoration: none;
  display: block;
  position: relative;
}

.work-card img {
  width: 100%;
  aspect-ratio: 10 / 7;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--warm);
}

.work-card a:hover img,
.work-card > div:hover img { filter: grayscale(.8) contrast(1.05); }

.work-card h3 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(156,255,89,.9);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.work-card:nth-child(even) h3 {
  background: rgba(255,101,200,.9);
}

.work-card a:hover h3,
.work-card a:focus-visible h3,
.work-card > div:hover h3 {
  opacity: 1;
}

.about {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 600px) 300px;
  gap: 54px;
  justify-content: center;
  align-items: start;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 82px 24px 74px;
}

.about h2 {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  text-align: left;
  margin: 0 0 24px;
}

.about p {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 400;
  margin: 0 0 30px;
}

.portrait {
  width: 286px;
  height: 390px;
  max-width: 100%;
  object-fit: cover;
  border: 6px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(145deg, var(--zora-purple), var(--zora-pink), var(--zora-green)) border-box;
}

.key-achievements {
  grid-column: 1 / -1;
  width: min(var(--max), 100%);
  margin-top: 22px;
}

.key-achievements > h3 {
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 18px;
}

.achievement-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
  margin-top: 0;
}

.achievement-card {
  border-top: 2px solid var(--ink);
  background: rgba(255,250,241,.42);
  padding: 16px 18px 18px 0;
}

.achievement-card h4 {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.22;
  font-weight: 800;
  margin: 0 0 8px;
}

.achievement-card p {
  font-size: 13px;
  line-height: 1.48;
  margin: 0;
}

.services {
  max-width: none;
  background: var(--services-blue);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, var(--max));
  gap: 34px;
  justify-content: center;
  align-items: start;
  padding: 47px 24px 76px;
}

.services-title {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 16px;
}

.service-card {
  border-top: 0;
  padding-top: 0;
}

.service-card h3 {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 42px;
}

.service-card li {
  border-top: 1px solid rgba(244,239,229,.34);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 0;
  padding-top: 12px;
}

.substack {
  max-width: none;
  width: auto;
  margin: 0 calc(-1 * max(24px, calc((100vw - var(--max)) / 2))) 48px;
  background-color: var(--warm);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  padding: 60px max(24px, calc((100vw - var(--max)) / 2)) 58px;
}

.substack h2 {
  margin-bottom: 18px;
}

.substack-intro,
.substack .muted {
  width: min(620px, 100%);
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.substack-grid {
  width: min(var(--max), 100%);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.substack-card a {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--ink);
  background: rgba(255,250,241,.9);
  color: var(--ink);
  padding: 22px;
  text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.substack-card a:hover {
  background: var(--zora-green);
  box-shadow: 8px 8px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.substack-card:nth-child(even) a:hover {
  background: var(--zora-pink);
}

.substack-card time {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.substack-card h3 {
  font-size: 22px;
  line-height: 1.12;
  font-weight: 800;
}

.substack-card p {
  font-size: 15px;
  line-height: 1.52;
  margin: 0;
}

.substack-link {
  display: table;
  margin: 0 auto;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.substack-link:hover { text-decoration: underline; }

.contact {
  max-width: none;
  background: var(--paper);
  padding: 80px 24px 42px;
}

.contact h2 {
  text-align: center;
  margin-bottom: 16px;
}

.contact-email {
  color: var(--ink);
  display: block;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.contact-email:hover { text-decoration: underline; }

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

.muted { color: var(--muted); }

footer {
  max-width: none;
  margin: 0 auto;
  padding: 0 24px 50px;
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 980px) {
  nav {
    grid-template-columns: repeat(4, 1fr);
    height: auto;
    min-height: 72px;
    padding: 0 20px;
  }

  nav a { font-size: 18px; }

  .hero {
    min-height: 410px;
    padding: 42px 20px 34px;
    gap: clamp(24px, 4vh, 34px);
  }

  .hero-logo {
    width: 100%;
    max-height: 220px;
  }

  .brand-wordmarks {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    width: min(600px, 100%);
    gap: 24px 30px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 34px;
  }

  .selected-work {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about {
    grid-template-columns: minmax(0, 561px);
    padding-top: 76px;
    padding-bottom: 68px;
  }

  .portrait { display: none; }

  .services {
    grid-template-columns: minmax(0, 640px);
    justify-content: start;
    max-width: 640px;
    margin: 0 auto;
  }
  .services-title { text-align: left; }

  .substack-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    min-height: 68px;
    padding: 0 12px;
  }

  nav a {
    height: 48px;
    line-height: 48px;
    font-size: clamp(13px, 4.2vw, 16px);
  }

  .hero {
    min-height: 360px;
    padding-top: 34px;
    gap: 22px;
  }

  .hero-logo { max-height: 145px; }

  .lede,
  .hero p:not(.lede) {
    font-size: 18px;
    line-height: 1.42;
  }

  #projects {
    min-height: 0;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 54px;
  }

  .selected-work {
    padding-top: 62px;
    padding-bottom: 74px;
  }

  .brand-wordmarks {
    grid-template-columns: repeat(2, minmax(116px, 1fr));
    gap: 22px 22px;
    margin-bottom: 44px;
  }

  .brand-wordmarks img {
    max-width: 132px;
    max-height: 40px;
  }

  .brand-logo-peperami img,
  .brand-logo-unilever img,
  .brand-logo-lucozade-energy img {
    max-width: 138px;
    max-height: 42px;
  }

  .brand-logo-the-body-shop img,
  .brand-logo-three img {
    max-width: 108px;
    max-height: 48px;
  }

  .brand-logo-vodafone img {
    max-width: 136px;
    max-height: 36px;
  }

  .brand-logo-mastercard img {
    max-width: 88px;
    max-height: 38px;
  }

  .brand-crop { transform: scale(.86); }

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

  .about { padding: 62px 20px 52px; }
  .about h2 { margin-bottom: 22px; }
  .about p {
    font-size: 20px;
    line-height: 1.43;
    margin-bottom: 24px;
  }

  .key-achievements { margin-top: 12px; }

  .key-achievements > h3 { margin-bottom: 14px; }

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

  .achievement-card { padding: 14px 0 0; }

  .achievement-card p {
    font-size: 13px;
    line-height: 1.46;
  }

  .service-card ul {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .substack {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}
