@font-face {
  font-family: "brandon-grot-w01-light";
  font-style: normal;
  font-weight: 400;
  src: url("https://static.parastorage.com/fonts/v2/fe0edf38-314c-46d5-b570-a37546d197e4/v1/brandon-grot-w01-light.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "din-next-w01-light";
  font-style: normal;
  font-weight: 400;
  src: url("https://static.parastorage.com/fonts/v2/eca8b0cd-45d8-43cf-aee7-ca462bc5497c/v1/din-next-w01-light.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-soft: #101010;
  --panel: #ffffff;
  --panel-soft: #f6f6f4;
  --ink: #121212;
  --ink-muted: #5f5f5f;
  --text: #eeeeee;
  --text-muted: #9a9a9a;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(0, 0, 0, 0.12);
  --max-width: 1180px;
  --panel-width: 980px;
  --page-pad: clamp(18px, 4vw, 52px);
  --font-main: "brandon-grot-w01-light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-small: "din-next-w01-light", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

a:hover,
a:focus-visible {
  color: #ffffff;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.site-header {
  padding: clamp(20px, 3vw, 34px) var(--page-pad);
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  color: #f4f4f4;
  font-size: clamp(28px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.1;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 34px);
  color: var(--text-muted);
  font-size: 15px;
}

.primary-nav a[aria-current="page"] {
  color: #ffffff;
}

.home-main {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(20px, 3vw, 42px) var(--page-pad) clamp(48px, 8vw, 90px);
}

.home-feature {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.feature-media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.home-feature figcaption,
.work-card figcaption,
.project-grid figcaption {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-feature figcaption {
  margin-top: 14px;
}

.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-dark);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  color: #777777;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}

.media-frame.is-missing::after {
  opacity: 1;
}

.media-frame.is-missing img,
.media-frame.is-missing video {
  visibility: hidden;
}

.gallery-page,
.project-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) var(--page-pad) clamp(70px, 9vw, 120px);
}

.page-intro,
.project-header {
  margin-bottom: clamp(30px, 5vw, 58px);
}

.page-intro h1,
.project-header h1 {
  color: #f4f4f4;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

.project-header p {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 70px) clamp(26px, 4vw, 54px);
}

.work-card {
  position: relative;
  display: grid;
}

.work-card figcaption {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-size: clamp(18px, 1.7vw, 20px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  pointer-events: none;
}

.work-card figcaption a {
  color: #ffffff;
  pointer-events: auto;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.58);
}

.work-card .thumb-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.thumb-frame {
  aspect-ratio: 4 / 3;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 76px) clamp(24px, 4vw, 52px);
}

.project-grid figure {
  display: grid;
  gap: 10px;
}

.project-grid figure:first-child {
  grid-column: 1 / -1;
}

.project-frame {
  aspect-ratio: 4 / 3;
}

.project-grid figure:first-child .project-frame {
  aspect-ratio: 16 / 10;
}

.panel-page {
  padding: clamp(22px, 4vw, 52px) var(--page-pad) clamp(58px, 8vw, 96px);
}

.content-panel {
  width: min(100%, var(--panel-width));
  margin: 0 auto;
  background: var(--panel);
  color: var(--ink);
  padding: clamp(30px, 6vw, 70px);
}

.content-panel a:hover,
.content-panel a:focus-visible {
  color: #000000;
  opacity: 0.62;
}

.contact-block {
  margin-bottom: clamp(42px, 6vw, 72px);
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.4;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.bio-copy {
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.4;
  text-align: justify;
}

.bio-copy h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
}

.bio-copy p + p {
  margin-top: 16px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 34px;
  padding: 0 20px;
  border: 1px solid var(--line-light);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  background: var(--panel-soft);
  border-color: var(--line-light);
}

.portrait-frame::after {
  color: #8b8b8b;
}

.cv-panel {
  max-width: 1040px;
}

.cv-section {
  padding-top: 34px;
  border-top: 1px solid var(--line-light);
}

.cv-panel .cv-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.cv-section + .cv-section {
  margin-top: 42px;
}

.cv-section h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.cv-section h3 {
  margin: 28px 0 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.cv-list {
  display: grid;
  gap: 12px;
}

.cv-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.4;
}

.cv-row time {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

.cv-row cite {
  color: var(--ink);
  font-style: normal;
}

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  .site-header {
    padding: 20px var(--page-pad);
  }

  .header-inner {
    flex-direction: column;
    gap: 18px;
  }

  .primary-nav {
    justify-content: flex-start;
    gap: 12px 24px;
  }

  .home-main {
    min-height: auto;
    padding-top: 34px;
  }

  .feature-media {
    aspect-ratio: 4 / 5;
  }

  .gallery-page,
  .project-page {
    padding-top: 34px;
  }

  .work-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-grid figure:first-child {
    grid-column: auto;
  }

  .project-grid figure:first-child .project-frame {
    aspect-ratio: 4 / 3;
  }

  .panel-page {
    padding: 0;
  }

  .content-panel {
    width: 100%;
    min-height: calc(100vh - 112px);
    padding: 30px var(--page-pad) 46px;
  }

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

  .portrait {
    max-width: 320px;
  }

  .cv-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
