:root {
  --bg: #000;
  --yellow: #ffe600;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.16);
  --heading: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pad: clamp(1.2rem, 5vw, 4.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
}

body.is-leaving {
  animation: page-leave 0.35s var(--ease) forwards;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--yellow);
  color: #000;
  padding: 0.5rem 0.8rem;
}

.skip:focus {
  top: 1rem;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem var(--pad);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--heading);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 500;
}

.site-nav p {
  display: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a .n {
  display: none;
}

.mast__write {
  text-decoration: none;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
}

.mast__write:hover {
  filter: brightness(1.05);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5.5vh, 3.4rem) var(--pad) 1.4rem;
}

.hero--home {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  align-items: stretch;
  min-height: calc(100svh - 4.2rem);
  padding: 0;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 6vh, 3.6rem) var(--pad) 2rem;
}

.hero__photo {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
  background: #111;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--yellow);
  z-index: 1;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.hero__mark {
  display: none;
}

.wrap-pad {
  padding-inline: var(--pad);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--yellow);
}

.hero h1 {
  position: relative;
  font-size: clamp(3.2rem, 8.4vw, 6.8rem);
  max-width: 10ch;
}

.hero--home h1 {
  max-width: none;
  font-size: clamp(4.2rem, 10.5vw, 8.6rem);
}

.hero h1 em {
  display: block;
  color: var(--yellow);
  font-style: normal;
}

.lede {
  position: relative;
  max-width: 36rem;
  color: var(--muted);
  margin: 1.2rem 0 1.6rem;
}

.actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.8rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--white);
  filter: none;
}

.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.1rem 0 0.2rem;
  border-top: 1px solid var(--line);
}

.meta span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.meta b {
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.4rem 1rem;
}

.stat b {
  display: block;
  font-family: var(--heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 14ch;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
  padding: 18px;
  align-items: start;
}

.masonry.is-laid {
  grid-auto-rows: 8px;
}

.cert-grid,
.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

.cert-tall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 18px 18px;
}

.cert-grid .shot,
.cert-tall .shot,
.paper-grid .shot {
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
}

.cert-tall .shot {
  aspect-ratio: 3 / 4;
}

.cert-grid .shot img,
.cert-tall .shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paper-grid .shot {
  aspect-ratio: auto;
  background: #fff;
}

.paper-grid .shot img {
  width: 100%;
  height: auto;
  object-fit: unset;
}

.paper-grid .shot-cap {
  position: static;
  display: block;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0 0;
  max-width: none;
}

.section-kicker {
  margin: 0;
  padding: 1.6rem var(--pad) 0.2rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masonry--stills {
  gap: 10px;
  padding: 8px 18px 28px;
}

.masonry--stills .shot {
  background: #000;
  border-radius: 2px;
}

.masonry--stills .shot img {
  width: 100%;
  height: auto;
  display: block;
}

.masonry--stills .shot figcaption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.masonry--stills .shot:hover figcaption,
.masonry--stills .shot:focus-visible figcaption {
  opacity: 1;
  transform: none;
}

.masonry--stills .shot:hover img {
  transform: scale(1.035);
}

.pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 18px 10px;
}

.pair-row .shot {
  aspect-ratio: 16 / 10;
  background: #000;
}

.pair-row .shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.masonry--docs {
  gap: 10px;
  padding: 0 18px 28px;
}

.masonry--docs .shot img {
  width: 100%;
  height: auto;
}

.work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  scroll-margin-top: 5rem;
}

.work > a,
.work > .card-plain,
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: #111;
  min-width: 0;
  cursor: pointer;
}

.work > a,
.work > .card-plain {
  aspect-ratio: 3 / 4;
}

.work > a img,
.shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  transition: transform 0.6s var(--ease);
}

.work > a img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.work > a.resume-tile img {
  object-fit: cover;
  object-position: 50% 0;
  background: #fff;
}

.work > a.include-tile img {
  object-fit: cover;
  object-position: 50% 50%;
  background: #000;
}

.work > a:hover,
.work > .card-plain:hover,
.shot:hover {
  box-shadow: inset 0 0 0 3px var(--yellow);
}

.work > a:hover img,
.shot:hover img {
  transform: scale(1.05);
}

.work > a span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 1;
  padding: 0.9rem 0.95rem 0.85rem;
  background: #000;
  border: 1px solid var(--yellow);
  font-family: var(--heading);
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  letter-spacing: 0.03em;
  line-height: 0.88;
  text-transform: uppercase;
}

.work > a span::after {
  content: "Open →";
  display: block;
  margin-top: 0.45rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.work > a em {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #000;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work > a.card-plain,
.work > .card-plain {
  background: var(--yellow);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
  cursor: default;
}

.work > a.card-plain {
  cursor: pointer;
}

.work > a.card-plain span,
.work > .card-plain span {
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.work > a.card-plain span::after {
  color: #000;
}

.work > a.card-plain em,
.work > .card-plain em {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #000;
  color: var(--yellow);
  font-family: var(--body);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work .card-resume {
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.2rem;
}

.work .card-resume span {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.work .card-resume .resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.work .card-resume .btn {
  background: #000;
  color: var(--yellow);
}

.work .card-resume .btn--ghost {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

.work .card-resume .btn--ghost:hover {
  border-color: #000;
}

.shot[data-shape="solo"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: min(92vh, 58rem);
  padding: 0.4rem 0 1rem;
  background: #050505;
}

.shot[data-shape="solo"] img {
  width: auto;
  height: min(88vh, 54rem);
  max-width: 100%;
  object-fit: contain;
}

.shot[data-shape="solo"] figcaption {
  position: static;
  text-shadow: none;
  background: transparent;
}

.page {
  padding: 0 0 2.4rem;
}

.page .hero {
  padding-bottom: 1rem;
}

.page .hero h1 {
  max-width: 18ch;
}

.shot {
  margin: 0;
  cursor: zoom-in;
}

.ire-card {
  cursor: default;
}

.ire-card__img {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ire-card__img img {
  width: 100%;
  height: auto;
}

.ire-card__pdf {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: auto;
  z-index: 2;
}

.shot figcaption,
.shot-cap {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  z-index: 1;
  margin: 0;
  padding: 0.28rem 0.55rem;
  width: auto;
  max-width: calc(100% - 1.2rem);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  background: #000;
}

a.shot {
  cursor: pointer;
}

.filters {
  display: flex;
  gap: 0.6rem;
  padding: 0 var(--pad) 1rem;
}

.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.filters button.is-on {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 10px;
  align-items: stretch;
}

.form {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  padding: 0 var(--pad) 2rem;
}

.form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: #0d0d0d;
  color: var(--white);
  border-radius: 0.4rem;
}

.form textarea {
  min-height: 8rem;
}

.notice {
  margin: 0 var(--pad) 1rem;
  padding: 0.75rem 1rem;
  background: var(--yellow);
  color: #000;
  border-radius: 0.4rem;
}

.notice[hidden] {
  display: none;
}

.portrait-frame {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  object-position: 50% 16%;
}

.site-footer {
  padding: 2rem var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  place-items: center;
  padding: 1.2rem;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: 86vh;
  max-width: min(92vw, 52rem);
}

.lightbox p {
  color: var(--yellow);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--yellow);
  color: #000;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.1rem;
    font-size: 1.2rem;
    transform: translateX(110%);
    transition: transform 0.35s var(--ease);
  }
  .site-nav.is-open {
    transform: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .mast__write {
    display: none;
  }
  .hero--home {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }
  .hero__photo {
    min-height: 22rem;
    order: -1;
  }
  .hero__photo::after {
    inset: auto 0 0;
    width: auto;
    height: 4px;
  }
  .meta,
  .stats,
  .work,
  .masonry,
  .cert-grid,
  .paper-grid,
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .meta,
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .work,
  .masonry,
  .cert-grid,
  .cert-tall,
  .paper-grid,
  .split,
  .pair-row {
    grid-template-columns: 1fr;
  }
}

@keyframes page-leave {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  body.is-leaving {
    opacity: 1;
    transform: none;
  }
}
