@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DM-Sans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --paper: #fefbf7;
  --paper-2: #fff;
  --ink: #111;
  --muted: #4a4847;
  --line: #111;
  --anil: #c8cc17;
  --anil-ink: #111;
  --cochineal: #efceee;
  --cochineal-ink: #111;
  --shadow: #c8cc17;
  --mint: #bfdbd8;
  --font-display: "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "DM Sans", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #fefbf7;
    --paper-2: #fff;
    --ink: #111;
    --muted: #4a4847;
    --line: #111;
    --anil: #c8cc17;
    --anil-ink: #111;
    --cochineal: #efceee;
    --cochineal-ink: #111;
    --shadow: #c8cc17;
    --mint: #bfdbd8;
    color-scheme: light;
  }
}
:root[data-theme="dark"] {
  --paper: #fefbf7;
  --paper-2: #fff;
  --ink: #111;
  --muted: #4a4847;
  --line: #111;
  --anil: #c8cc17;
  --anil-ink: #111;
  --cochineal: #efceee;
  --cochineal-ink: #111;
  --shadow: #c8cc17;
  --mint: #bfdbd8;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { color: var(--ink); background: var(--cochineal); }
.wrap { max-width: 1240px; }

.nav {
  min-height: 78px;
  padding-block: 14px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
}
.nav-name {
  font-size: 1.2rem;
  font-weight: 700;
}
.nav-links { gap: 4px; }
.nav-links a {
  padding: 7px 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--ink);
  border-color: transparent;
  background: var(--cochineal);
}
.nav-cta {
  background: var(--ink);
  color: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--anil);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.nav-cta:hover,
.nav-cta:focus-visible { background: var(--ink); color: #fff; }
.nav-toggle { border-radius: 50%; }

.hero {
  min-height: 425px;
  padding-block: 42px 28px;
  overflow: visible;
}
.hero::after { display: none; }
.hero-eyebrow,
.page-eyebrow {
  padding: 7px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cochineal);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: none;
}
.hero-eyebrow { margin-bottom: 26px; }
.hero-name {
  position: relative;
  z-index: 1;
  max-width: 700px;
  font-size: clamp(4rem, 8.5vw, 7.6rem);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: .96;
}
.hero-name em { font-style: normal; }
.hero-role {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5px 24px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
}
.hero-role div:nth-child(2) { grid-column: 2; grid-row: 1; text-align: right; font-weight: 700; }
.hero-role div:nth-child(3) { grid-column: 1; grid-row: 2; }
.hero-showcase {
  position: absolute;
  top: clamp(20px, 26.5vw - 251px, 128px);
  bottom: auto;
  right: 0;
  width: min(28%, 280px);
  height: 412px;
  pointer-events: none;
}
.hero-showcase img {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  opacity: 1;
}
@media (max-width: 900px) {
  .hero-showcase { right: 0; width: 40%; }
}

.page-header {
  padding-block: 44px 34px;
  border-bottom: 1.5px solid var(--ink);
  min-height: 325px;
}
.page-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(28%, 280px);
  height: max(100%, 325px);
  background: url("assets/illustration/hero-bike.png") center calc(100% + 12px) / contain no-repeat;
  opacity: 1;
  pointer-events: none;
}
.page-header > * { position: relative; z-index: 1; }
.page-title {
  max-width: 900px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1;
}
.page-intro {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.08rem;
}
.back-link {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .9rem;
  text-transform: none;
}

section { padding-block: 54px; }
.section-head { margin-bottom: 25px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.035em;
}
.section-head span { color: var(--muted); font-size: .95rem; }
.work-grid { gap: 22px; }
.tile {
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: var(--paper-2);
  box-shadow: 8px 8px 0 var(--mint);
  transition: transform .18s ease, box-shadow .18s ease;
}
.work-grid > .tile:nth-child(3n + 1) {
  background: #fbf79b;
  box-shadow: 8px 8px 0 var(--anil);
}
.work-grid > .tile:nth-child(3n + 2) {
  background: #f9e5f7;
  box-shadow: 8px 8px 0 var(--cochineal);
}
.work-grid > .tile:nth-child(3n) {
  background: #e0efed;
  box-shadow: 8px 8px 0 var(--mint);
}
a.tile:hover,
a.tile:focus-visible,
button.tile-project:hover,
button.tile-project:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--cochineal);
}
.tile-art { border-bottom: 1.5px solid var(--ink); }
.tile-art.img-stack { background: var(--paper-2); }
.stack-frame:nth-child(5) { z-index: 5; }
.stack-frame:nth-child(6) { z-index: 6; }
.stack-frame:nth-child(5).is-shown { transform: translate(-8%, -3%) rotate(3deg) scale(1.166); }
.stack-frame:nth-child(6).is-shown { transform: translate(7%, 4%) rotate(-6deg) scale(1.199); }
.tile-body { padding: 18px 20px 22px; gap: 7px; }
.tile-cat {
  padding: 3px 8px;
  border: 0;
  border-radius: 4px;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  transform: none;
}
.tile-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.tile-meta { color: var(--muted); font-size: .95rem; }
.tile-arrow { font-family: var(--font-body); font-size: .9rem; }
.placeholder-tag,
.gallery-tag {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--cochineal);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .72rem;
  text-transform: none;
}
.gallery-tag { background: var(--mint); z-index: 10; }

.bleed-row {
  border-block: 1.5px solid var(--ink);
  background: var(--paper-2);
}
.bleed-row img { object-fit: cover; }
.case-split {
  display: flex;
  align-items: stretch;
  min-height: 48vh;
  border-block: 1.5px solid var(--ink);
  background: #f7f2eb;
}
.case-split.is-reverse { flex-direction: row-reverse; }
.case-split-art,
.case-split-copy {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
}
.case-split-art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  box-shadow: 6px 6px 0 var(--mint);
}
.case-split-copy { flex-direction: column; align-items: flex-start; }
.case-copy { max-width: 55ch; }
.case-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
}
.case-copy p { color: var(--muted); line-height: 1.7; }
.case-role {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cochineal);
  color: var(--ink);
  font-weight: 700;
}
.case-mid-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}
.bleed-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 5vw, 64px) 16px;
  border-block: 1.5px solid var(--ink);
  background: #f7f2eb;
}
.bleed-frame img,
.bleed-frame video {
  display: block;
  width: auto;
  max-width: min(100%, 900px);
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 6px 6px 0 var(--mint);
}
.bleed-single {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--paper-2);
  border-block: 1.5px solid var(--ink);
}
.video-embed {
  position: relative;
  width: min(100%, 900px);
  aspect-ratio: 16 / 9;
  box-shadow: 6px 6px 0 var(--mint);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.bleed-frame,
.case-split { background: #f7f2eb; }
.case-split { border-block: 1.5px solid var(--ink); }
.case-split-art img { box-shadow: 6px 6px 0 var(--mint); }
.case-copy h2,
.about-copy p { font-family: var(--font-display); letter-spacing: -.025em; }
.case-copy p { color: var(--muted); }
.case-role {
  background: var(--cochineal);
  color: var(--ink);
  font-family: var(--font-body);
}

.about-grid { gap: 48px; }
.about-copy p { font-weight: 700; }
.about-copy p.small { color: var(--muted); font-weight: 400; }
.tools { gap: 12px; }
.tool {
  min-width: 150px;
  padding: 10px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--cochineal);
  box-shadow: 3px 3px 0 var(--mint);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}
.tool:nth-child(3n + 1) { background: var(--cochineal); color: var(--ink); }
.tool:nth-child(3n + 2) { background: var(--anil); color: var(--ink); }
.tool:nth-child(3n) { background: var(--mint); color: var(--ink); }
.cap-row { border-color: #d7d1ca; }
.cap-row::before {
  border-radius: 9px;
  border: 1px solid var(--ink);
  background: var(--anil);
  color: var(--ink);
}
.cap-row:nth-child(3n + 2)::before { background: var(--cochineal); color: var(--ink); }
.cap-row:nth-child(3n + 3)::before { background: var(--mint); color: var(--ink); }
#details .cap-row {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
  align-items: center;
}
#details .cap-row > span {
  max-width: none;
  text-align: left;
  color: var(--ink);
}
.contact-detail-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hist-row { border-color: #d7d1ca; }
.hist-tag { border-radius: 999px; background: var(--mint); }

.contact {
  position: relative;
  overflow: visible;
  min-height: 260px;
  padding: 46px clamp(24px, 5vw, 60px) 42px 39%;
  border: 0;
  border-radius: 30px;
  background: var(--mint);
  color: var(--ink);
  box-shadow: none;
}
.contact::before {
  content: "";
  position: absolute;
  top: -19%;
  bottom: 0;
  left: 0;
  width: 37%;
  background: url("assets/illustration/contact-angel.png") center bottom / contain no-repeat;
  pointer-events: none;
}
.contact h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}
.contact p.lede { color: var(--ink); }
.contact-row { border-color: rgba(17, 17, 17, .24); }
.contact-item .label { color: rgba(17, 17, 17, .65); }
.copy-btn {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--anil);
}
.copy-btn:hover,
.copy-btn:focus-visible { border-color: var(--ink); background: var(--anil); color: var(--ink); }
.foot { padding-block: 28px 42px; }

.lightbox { background: rgba(17, 17, 17, .92); }
.lightbox-img {
  border: 2px solid var(--paper);
  border-radius: 14px;
  box-shadow: 7px 7px 0 var(--anil);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--anil);
}

@media (max-width: 760px) {
  .hero { min-height: 0; padding-block: 38px 28px; }
  .hero-name { max-width: 100%; font-size: clamp(3.5rem, 15vw, 6rem); }
  .hero-showcase { position: relative; top: auto; right: auto; width: 100%; height: 240px; margin-top: 18px; }
  .page-header::after { width: 132px; height: 132px; opacity: .45; }
  .hero-role { grid-template-columns: 1fr; margin-top: 18px; }
  .hero-role div:nth-child(2),
  .hero-role div:nth-child(3) { grid-column: 1; grid-row: auto; text-align: left; }
  .page-header { padding-block: 34px 26px; min-height: 0; }
  .section-head { display: block; }
  .section-head span { display: block; margin-top: 6px; text-align: left; }
  .work-grid { gap: 20px; }
  .case-split,
  .case-split.is-reverse { flex-direction: column; min-height: 0; }
  .case-split-art,
  .case-split-copy { padding: 28px 20px; }
  .case-split-art img { max-height: 56vh; }
  .bleed-frame img { max-height: 60vh; }
  .contact { padding: 250px 24px 30px; border-radius: 22px; }
  .contact::before { top: -36px; width: 100%; height: 230px; bottom: auto; background-position: center 36%; }
}
@media (max-width: 420px) {
  body { padding-inline: 14px; }
  .nav { gap: 10px; }
  .nav-name { font-size: 1rem; }
  .nav-cta { padding: 7px 12px; font-size: .82rem; }
  .hero-eyebrow,
  .page-eyebrow { font-size: .72rem; }
  .tile-body { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
