:root { --dark:#000; --light:#fff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  background: var(--dark);
  color: var(--light);
}
a { color: inherit; }

section, header {
  min-height: 100vh;
  padding: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dark  { background: var(--dark);  color: var(--light); }
.light { background: var(--light); color: var(--dark); }
.pixel rect { fill: currentColor; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; }
h1, h2, h3, p { margin: 0; font-weight: 300; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin-bottom: 3rem; }
.eyebrow { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.5rem; opacity: .7; }

/* Hero */
header { position: relative; }
#trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
header h1 { position: relative; }
header h1, header .sub, header .bar { z-index: 1; }
header .sub { position: relative; font-size: clamp(1.2rem, 3vw, 2rem); margin-top: 1.5rem; }
header h1 { font-size: clamp(2.2rem, 6.5vw, 5rem); line-height: 1.05; max-width: 18ch; }
header .bar { position: absolute; top: clamp(1.25rem, 4vw, 3rem); left: clamp(1.25rem, 4vw, 3rem); right: clamp(1.25rem, 4vw, 3rem);
              display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 2rem; font-size: .85rem; }
header .bar nav { display: flex; gap: 2rem; flex-wrap: wrap; }
header .bar a { text-decoration: none; opacity: .8; }
header .bar a:hover { opacity: 1; text-decoration: underline; }
header .brand { opacity: 1; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.services .pixel { width: 56px; height: 56px; margin-bottom: 1.5rem; display: block; }
.services h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.services p { font-size: 1.05rem; }

/* Work */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.work .shot { display: block; width: 100%; aspect-ratio: 16 / 10; border: 1px solid currentColor; opacity: .5; margin-bottom: 1.25rem; }
.work img.shot { object-fit: contain; background: #fff; opacity: 1; }
.work img.shot.cover { object-fit: cover; }
.work img.shot.gray { background: #ececec; }
.work h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.work p { font-size: 1rem; }
.work .card { display: block; color: inherit; text-decoration: none; }
.work .visit { margin-top: 1rem; }
.work .card:hover .visit, .work .card:focus-visible .visit { text-decoration: underline; }
/* reserve 5 lines so the links sit on the same line across cards (desktop only) */
@media (min-width: 901px) { .work p:not(.visit) { min-height: 7em; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { border-top: 1px solid currentColor; padding-top: 1rem; }
.steps span { display: block; font-size: .85rem; opacity: .7; margin-bottom: 2.5rem; }
.steps h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.steps p { font-size: 1rem; }

/* Contact */
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mail {
  display: inline-block; font-size: clamp(1.6rem, 6.5vw, 5rem); line-height: 1.1; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em;
}
.mail:hover { text-decoration-thickness: 3px; }

footer { padding: 1rem clamp(1.25rem, 4vw, 3rem); font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .services, .work { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  section, header { min-height: auto; padding-top: 5rem; padding-bottom: 5rem; }
  header { min-height: 100vh; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Case study pages */
.case-head { min-height: auto; padding-top: clamp(6rem, 14vw, 9rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.case-head h1 { font-size: clamp(2.2rem, 6.5vw, 5rem); line-height: 1.05; margin-bottom: 2rem; max-width: 18ch; }
.case-head .lead { font-size: clamp(1.1rem, 2.2vw, 1.5rem); max-width: 40ch; }
.case-head ul { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .5rem; max-width: 50ch; opacity: .8; }
.case-head ul li { padding-left: 1.25rem; position: relative; }
.case-head ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; background: currentColor; }
.case-body section { min-height: auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem); }
.case-body section + section { padding-top: 0; }
.case-body h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; }
.case-body .text { max-width: 62ch; display: grid; gap: 1rem; margin-bottom: 2rem; }
.case-body .gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.case-body .gallery.one { grid-template-columns: 1fr; }
.case-body .gallery img { display: block; width: 100%; height: auto; }
.case-body .case-cta { min-height: auto; padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem); }
.case-cta .eyebrow { margin-bottom: 1rem; }
.case-cta a { font-size: clamp(1.4rem, 3.5vw, 2.4rem); line-height: 1.2; }
.back { font-size: .95rem; }
