@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("/fonts/roboto-v51-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: url("/fonts/roboto-v51-latin-500.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --ink: #090909;
  --muted: #6f6f73;
  --faint: #9a9aa0;
  --line: #dddddd;
  --panel: #f4f4f4;
  --max: 1510px;
  --gallery-shell-max: 1368px;
  --portfolio-max: 1180px;
  --portfolio-column: 280px;
  --gutter: clamp(28px, 4.6vw, 76px);
  --header-top: clamp(34px, 5vw, 70px);
  --gap: clamp(14px, 1.25vw, 20px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header,
.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding-top: var(--header-top);
  padding-bottom: clamp(24px, 2vw, 30px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(22px, 2.4vw, 36px);
  min-width: 0;
}

.brand-mark {
  width: clamp(48px, 4.1vw, 66px);
  height: auto;
  flex: 0 0 auto;
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand-rule {
  width: 1px;
  height: clamp(36px, 3.6vw, 54px);
  background: #9d9d9d;
  flex: 0 0 auto;
}

.brand-name {
  color: #080808;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 500;
  letter-spacing: 0.43em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(28px, 4.3vw, 72px);
  color: #6c6c72;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 32px;
  align-items: flex-start;
  color: inherit;
  transition: color 160ms ease;
}

.site-nav a:focus {
  outline: none;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 8px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a.active::after {
  opacity: 1;
  transform: translateY(0);
}

.page-shell {
  padding-bottom: clamp(42px, 6vw, 82px);
}

.gallery-view {
  width: 100%;
  max-width: var(--gallery-shell-max);
  margin-inline: auto;
}

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

.section-label {
  margin: 0 0 clamp(26px, 2.8vw, 42px);
  color: #919197;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  letter-spacing: 0.5em;
  line-height: 1.1;
  text-transform: uppercase;
}

.portfolio-grid {
  width: 100%;
  margin-inline: auto;
  column-gap: var(--gap);
}

.portfolio-grid.home-grid {
  max-width: var(--portfolio-max);
  columns: 3 var(--portfolio-column);
}

.portfolio-grid.work-grid {
  max-width: var(--portfolio-max);
  columns: 3 var(--portfolio-column);
}

.portfolio-grid.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  max-width: var(--portfolio-max);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0 0 var(--gap);
  border: 0;
  padding: 0;
  background: transparent;
  break-inside: avoid;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  height: auto;
  object-fit: contain;
  background: #fff;
  transition: transform 700ms ease, opacity 180ms ease;
}

.gallery-item:hover img {
  transform: none;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 180ms ease;
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.12);
}

.video-link-card {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  background: #090909;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: background 160ms ease;
}

.video-link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.34);
  transition: background 180ms ease;
}

.video-link-card:hover::after {
  background: rgba(0, 0, 0, 0.18);
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090909;
  transform: none;
  transition: transform 700ms ease, opacity 180ms ease;
}

.video-link-card:hover .video-thumbnail {
  transform: none;
}

.play-mark {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.play-mark::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.video-title {
  min-width: 0;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.video-card {
  cursor: default;
}

.video-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: clamp(44px, 5vw, 68px);
  height: clamp(44px, 5vw, 68px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
}

.video-card::after {
  content: "";
  position: absolute;
  left: calc(50% + 3px);
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
}

.contact-view {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(420px, 0.58fr);
  gap: clamp(54px, 8.6vw, 150px);
  align-items: start;
  padding-top: 8px;
}

.contact-copy {
  padding-top: clamp(22px, 4vw, 60px);
}

.contact-copy h2 {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: clamp(36px, 3.08vw, 46px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.22;
}

.contact-intro,
.contact-note {
  margin: 0;
  max-width: 470px;
  color: #55555a;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.contact-list {
  margin: clamp(42px, 5vw, 70px) 0 40px;
}

.contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 500px;
  min-height: 80px;
  border-bottom: 1px solid var(--line);
  color: #4d4d52;
}

.contact-row:first-child {
  border-top: 0;
}

.contact-row svg {
  width: 30px;
  height: 30px;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1.1;
  text-transform: uppercase;
}

.contact-note {
  margin-bottom: 42px;
}

.message-button {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 34px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.message-button:hover {
  background: #fff;
  color: var(--ink);
}

.contact-media {
  margin: 0;
  min-height: 0;
}

.contact-media img {
  aspect-ratio: 0.86 / 1;
  height: min(72vw, 820px);
  min-height: 540px;
  object-fit: contain;
  background: #fff;
}

.lightbox {
  width: min(94vw, 1420px);
  max-width: none;
  height: min(94vh, 900px);
  border: 0;
  padding: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.38);
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (min-width: 1700px) {
  :root {
    --max: 1900px;
    --gallery-shell-max: 1720px;
    --portfolio-max: 1560px;
    --portfolio-column: 360px;
    --gutter: clamp(70px, 4.5vw, 100px);
    --gap: clamp(18px, 1vw, 24px);
  }
}

@media (min-width: 2300px) {
  :root {
    --max: 2300px;
    --gallery-shell-max: 2100px;
    --portfolio-max: 1920px;
    --portfolio-column: 430px;
    --gutter: clamp(90px, 4.2vw, 120px);
  }
}

@media (min-width: 3200px) {
  :root {
    --max: 2700px;
    --gallery-shell-max: 2520px;
    --portfolio-max: 2380px;
    --portfolio-column: 520px;
    --gutter: clamp(110px, 3.8vw, 150px);
    --gap: 26px;
  }
}

@media (max-width: 1100px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 44px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 24px 38px;
    white-space: normal;
  }

  .portfolio-grid.home-grid,
  .portfolio-grid.work-grid {
    columns: 2 280px;
  }

  .contact-view {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .contact-copy {
    padding-top: 0;
  }

  .contact-media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 22px;
    --gap: 12px;
  }

  .brand {
    gap: 18px;
  }

  .brand-name {
    max-width: 210px;
    white-space: normal;
    line-height: 1.55;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 16px 22px;
  }

  .section-label {
    letter-spacing: 0.38em;
  }

  .portfolio-grid.home-grid,
  .portfolio-grid.work-grid {
    display: block;
    columns: auto;
  }

  .portfolio-grid.video-grid {
    display: block;
  }

  .gallery-item {
    break-inside: auto;
    margin-bottom: 12px;
  }

  .gallery-item img {
    aspect-ratio: auto;
  }

  .video-link-card {
    gap: 14px;
    min-height: 0;
    margin-bottom: 12px;
    padding: 22px;
  }

  .contact-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 460px) {
  .brand-rule {
    display: none;
  }

  .brand-name {
    letter-spacing: 0.28em;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .contact-copy h2 {
    font-size: 35px;
  }

  .message-button {
    width: 100%;
    justify-content: center;
  }
}
