@font-face {
  font-family: "M2ATK Display";
  src: url("display.woff") format("woff");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #000;
  --white: #f3f1ed;
  --red: #dc171b;
  --yellow: #f7df00;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--black); }

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 8px; }
::selection { background: var(--red); color: var(--white); }

.entry {
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.entry-link {
  display: block;
  width: clamp(68px, 18vw, 92px);
  line-height: 0;
}

.entry-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 200ms ease;
}

.entry-link:active img { opacity: .78; }

.home {
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

.home-content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(60px, 1.15fr) minmax(0, 4.85fr);
  gap: clamp(6px, 1vh, 12px);
}

.home-header { min-width: 0; min-height: 0; }
.home-wordmark { height: 100%; margin: 0; line-height: 0; }
.home-wordmark a { display: block; width: 100%; height: 100%; }
.home-wordmark img { display: block; width: 100%; height: 100%; object-fit: fill; }

.wordmark,
.menu-link,
.section-title {
  font-family: "M2ATK Display", "Arial Black", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.wordmark {
  width: fit-content;
  margin: 0 0 clamp(32px, 4.5vh, 52px);
  color: var(--red);
  font-size: clamp(76px, 11vw, 140px);
  line-height: .9;
  letter-spacing: -.065em;
}

.ink {
  -webkit-mask-image: url("wear.svg");
  mask-image: url("wear.svg");
  -webkit-mask-size: 500px 500px;
  mask-size: 500px 500px;
}

.menu {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: .8fr .8fr 1.15fr 1.35fr 1.25fr 1.4fr;
  gap: clamp(4px, .75vh, 8px) clamp(5px, .6vw, 10px);
  min-height: 0;
}

.menu-link {
  display: block;
  min-width: 0;
  min-height: 0;
  line-height: 0;
  transition: opacity 160ms ease;
}

.menu-link img { display: block; width: 100%; height: 100%; object-fit: fill; }
.menu-link:active { opacity: .7; }
.menu-link:focus-visible { outline-offset: 0; }
.architecture { grid-area: 1 / 1 / 2 / 13; }
.performance { grid-area: 2 / 1 / 3 / 13; }
.design { grid-area: 3 / 1 / 4 / 6; }
.photography { grid-area: 3 / 6 / 4 / 13; }
.video { grid-area: 4 / 1 / 5 / 7; }
.music { grid-area: 4 / 7 / 5 / 13; }
.object { grid-area: 5 / 1 / 6 / 6; }
.painting { grid-area: 5 / 6 / 6 / 13; }
.rendering { grid-area: 6 / 1 / 7 / 9; }
.blog { grid-area: 6 / 9 / 7 / 13; }

.section {
  padding: clamp(28px, 5vw, 72px) clamp(24px, 8vw, 128px);
}

.section-inner { max-width: 1100px; margin-inline: auto; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-header .wordmark { margin: 0; font-size: clamp(42px, 6vw, 72px); }
.section-logo { width: min(56vw, 350px); line-height: 0; }
.section-logo img { display: block; width: 100%; height: auto; }
.back-link {
  display: block;
  flex: 0 0 auto;
  width: clamp(72px, 8vw, 104px);
  min-height: 44px;
  line-height: 0;
  border-radius: 50%;
  transition: opacity 150ms ease;
}
.back-link img { display: block; width: 100%; height: auto; }
.back-link:hover { opacity: .76; }
.section-title {
  margin: clamp(76px, 16vh, 180px) 0 0;
  font-size: clamp(28px, 6.6vw, 82px);
  line-height: 1.1;
  letter-spacing: -.047em;
}

@media (hover: hover) {
  .entry-link:hover img { opacity: .84; }
  .menu-link:hover { opacity: .76; }
}

@media (max-aspect-ratio: 4/5) {
  .home-content { grid-template-rows: minmax(58px, 1.05fr) minmax(0, 8.6fr); gap: 8px; }
  .menu { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(44px, .4fr) minmax(44px, .4fr) 1fr minmax(44px, .4fr) 1.4fr 1.5fr 1.25fr 1.1fr minmax(44px, .7fr) minmax(44px, .8fr); gap: 6px; }
  .menu-link { grid-column: 1; grid-row: auto; }
}

@media (max-height: 480px) and (min-aspect-ratio: 4/5) {
  .home { min-height: 320px; }
  .home-content { grid-template-rows: minmax(50px, 1.2fr) minmax(0, 4.8fr); gap: 5px; }
  .menu { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.section-title img { display: block; width: 100%; height: auto; }

/* Architecture portfolio */
html:has(.architecture-page) {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: #000;
  background-image: url("architecture/img-002.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100vw 74svh;
}

.architecture-page {
  --architecture-header: 96px;
  --architecture-header-total: var(--architecture-header);
  --architecture-top-reveal: 0px;
  --architecture-drawer-top: var(--architecture-header-total);
  min-height: 100%;
  overflow-x: clip;
  background: transparent;
}

.architecture-page::before {
  content: "";
  position: relative;
  display: block;
  width: 100%;
  height: var(--architecture-top-reveal);
  z-index: 0;
  pointer-events: none;
  background-color: #17394a;
  background-image: url("architecture/img-002.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto 74svh;
}

.architecture-header {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: var(--architecture-header-total);
  margin-bottom: 0;
  display: grid;
  grid-template-columns: minmax(112px, 190px) minmax(170px, 1fr) auto auto;
  align-items: center;
  gap: clamp(10px, 1.7vw, 28px);
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: #000;
  border-bottom: 1px solid rgba(243, 241, 237, .22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .44);
  isolation: isolate;
}

.architecture-logo,
.architecture-heading-link,
.architecture-home {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  line-height: 0;
}

.architecture-logo img,
.architecture-heading-link img,
.architecture-home img {
  display: block;
  width: 100%;
  height: auto;
}

.architecture-logo {
  width: 100%;
  max-width: 190px;
  cursor: default;
  user-select: none;
}
.architecture-heading-link { width: min(42vw, 620px); justify-self: center; }
.architecture-home { width: 56px; border-radius: 50%; transition: opacity 160ms ease; }
.architecture-home:hover { opacity: .72; }

.project-menu-toggle {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid rgba(243, 241, 237, .32);
  border-radius: 50%;
  background: #000;
  color: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.project-menu-toggle:hover { border-color: var(--red); background: rgba(220, 23, 27, .12); }
.project-menu-toggle span { width: 22px; height: 2px; background: currentColor; transition: transform 220ms ease, opacity 160ms ease; }
.menu-open .project-menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .project-menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .project-menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.architecture-progress {
  position: absolute;
  z-index: 1;
  inset: auto 0 -1px;
  height: 2px;
  overflow: hidden;
  background: transparent;
}

.architecture-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--white) 0 33.33%, var(--red) 33.33% 66.66%, var(--yellow) 66.66%);
}

.project-menu-scrim {
  position: fixed;
  inset: var(--architecture-drawer-top) 0 0;
  z-index: 90;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(5px);
}

.project-drawer {
  position: fixed;
  z-index: 95;
  inset: var(--architecture-drawer-top) 0 0 auto;
  width: min(480px, 92vw);
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #060606;
  border-left: 1px solid rgba(243, 241, 237, .14);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), visibility 280ms;
}

.menu-open { overflow: hidden; }
.menu-open .project-drawer { transform: translateX(0); visibility: visible; }
.project-drawer-label {
  margin-bottom: clamp(22px, 4vh, 42px);
  color: rgba(243, 241, 237, .5);
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.project-nav-link {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: clamp(12px, 2vh, 22px) 0;
  border-bottom: 1px solid rgba(243, 241, 237, .12);
  font: 900 clamp(24px, 3.1vw, 42px)/.9 "M2ATK Display", "Arial Black", sans-serif;
  letter-spacing: -.05em;
  text-transform: uppercase;
  transition: transform 160ms ease, opacity 160ms ease;
}

.project-nav-link span {
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .12em;
  color: rgba(243, 241, 237, .45);
}

@media (hover: hover) {
  .project-nav-link:hover { transform: translateX(8px); }
}
.project-nav-link.is-active { opacity: 1; }
.project-nav-link.color-0 { color: var(--white); }
.project-nav-link.color-1 { color: var(--red); }
.project-nav-link.color-2 { color: var(--yellow); }

.project-nav-top {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 34px;
  color: rgba(243, 241, 237, .62);
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.architecture-portfolio {
  position: relative;
  z-index: 1;
  padding-top: 0;
  background: transparent;
}
.architecture-project { scroll-margin-top: 0; }

.architecture-endmark {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(80px, 12vw, 180px) 20px max(80px, env(safe-area-inset-bottom));
  background: #000;
}

.architecture-endmark img {
  display: block;
  width: clamp(150px, 24vw, 320px);
  height: auto;
}
.project-hero {
  position: relative;
  height: calc(100svh - var(--architecture-header));
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

.project-hero > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  filter: none;
}

.project-hero::after {
  display: none;
}

.project-heading {
  position: absolute;
  z-index: 2;
  inset: auto clamp(18px, 5vw, 78px) clamp(28px, 6vh, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34vw);
  align-items: end;
  gap: 10px clamp(24px, 5vw, 80px);
  text-shadow: 0 2px 8px #000, 0 4px 22px #000;
}

.project-kicker {
  grid-column: 1 / -1;
  color: var(--yellow);
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.project-heading h2 {
  margin: 0;
  max-width: 1000px;
  color: var(--white);
  font: 900 clamp(50px, 8.6vw, 142px)/.78 "M2ATK Display", "Arial Black", sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
  text-wrap: balance;
}

.project-heading p {
  margin: 0;
  max-width: 520px;
  color: rgba(243, 241, 237, .84);
  font: 400 clamp(13px, 1.15vw, 18px)/1.45 Arial, sans-serif;
}

.project-explore {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(243, 241, 237, .45);
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-gallery {
  columns: 2 540px;
  column-gap: 3px;
  padding: 3px;
  background: #000;
  scroll-margin-top: 0;
}

.gallery-card {
  width: 100%;
  display: block;
  break-inside: avoid;
  margin: 0 0 3px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #080808;
  line-height: 0;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 450ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease;
}

.gallery-card:hover img { transform: scale(1.015); }

.architecture-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .97);
  color: var(--white);
}

.architecture-lightbox::backdrop { background: rgba(0, 0, 0, .96); }
.architecture-lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.architecture-lightbox figure { width: 100%; height: 100%; min-width: 0; margin: 0; padding: 42px 0 24px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
.architecture-lightbox figure img { width: 100%; height: 100%; object-fit: contain; }
.architecture-lightbox figcaption { text-align: center; color: rgba(243, 241, 237, .62); font: 700 10px/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.lightbox-close { position: fixed; z-index: 2; top: max(16px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); font: 300 42px/1 Arial, sans-serif; }
.lightbox-prev,
.lightbox-next { height: 100%; font: 300 48px/1 Arial, sans-serif; }

@media (max-width: 760px) {
  html:has(.architecture-page) { scroll-padding-top: 72px; }
  .architecture-page {
    --architecture-header: 72px;
    --architecture-top-reveal: 0px;
  }
  .architecture-header {
    /* Keep the project visible through Safari's status area, then float the bar below it. */
    top: max(env(safe-area-inset-top), 7svh);
    grid-template-columns: minmax(70px, 88px) minmax(92px, 1fr) 42px 42px;
    gap: 6px;
    padding: 8px max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
  }
  .architecture-heading-link { width: 100%; max-width: 190px; }
  .architecture-home { width: 42px; }
  .project-menu-toggle { width: 42px; height: 42px; gap: 5px; }
  .project-menu-toggle span { width: 18px; }
  .menu-open .project-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .project-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .project-drawer { width: 100%; border-left: 0; }
  .project-hero { height: 74svh; min-height: 480px; }
  .architecture-project:first-child .project-hero {
    height: 74svh;
    min-height: 480px;
  }
  .architecture-project:first-child .project-hero > img {
    position: static;
    height: 100%;
    transform: scale(1.01);
  }
  .project-heading {
    inset: auto 16px 24px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .project-heading h2 { font-size: clamp(42px, 13vw, 72px); }
  .project-heading p { max-width: 90%; font-size: 13px; }
  .project-explore { grid-column: 1; max-width: 100%; margin-top: 6px; }
  .project-gallery { columns: 1; }
  .architecture-lightbox[open] { grid-template-columns: 38px 1fr 38px; }
  .architecture-lightbox figure { padding: 52px 0 22px; }
  .lightbox-prev, .lightbox-next { font-size: 38px; }
}

@media (max-width: 360px) {
  .architecture-header { grid-template-columns: 72px minmax(82px, 1fr) 38px 38px; gap: 4px; }
  .architecture-home,
  .project-menu-toggle { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.architecture-page) { scroll-behavior: auto; }
  .project-drawer,
  .gallery-card img,
  .project-menu-toggle span { transition: none; }
}
