:root {
  --page: #f8f8f6;
  --ink: #2a2b2c;
  --muted: #a9a9a9;
  --line: rgba(42, 43, 44, 0.12);
  --thumb-gap: 8px;
  --content-pad: 14px;
  --row-height: 315px;
  --awo-row-height: 165px;
  --awo-gap: 8px;
  --sidebar: 300px;
}

* {
  box-sizing: border-box;
}

html {
  /* Reserve scrollbar space when the announcement locks page scrolling. */
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

body.is-locked {
  overflow: hidden;
}

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

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #101010;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.password-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(5, 20vh);
  gap: 8px;
  filter: blur(18px);
  opacity: 0.46;
  overflow: hidden;
}

.gate-row {
  display: flex;
  gap: 8px;
  width: max-content;
  min-width: 160vw;
  height: 100%;
  will-change: transform;
}

.gate-row:nth-child(odd) {
  animation: slideLeft 24s linear infinite alternate;
}

.gate-row:nth-child(even) {
  animation: slideRight 24s linear infinite alternate;
  will-change: transform;
}

.gate-tile {
  flex: 0 0 auto;
  width: calc(var(--tile-ratio, 1.33) * 20vh);
  height: 20vh;
  overflow: hidden;
}

.gate-tile .project-art {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.password-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(300px, calc(100vw - 48px));
}

.password-card label {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.password-card input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  background: rgba(248, 248, 246, 0.9);
  color: #111;
  padding: 15px 16px;
  font: inherit;
  font-size: 17px;
  text-align: center;
  outline: 0;
}

.password-card input:focus {
  border-color: #fff;
  background: #fff;
}

.password-card.is-error input {
  border-color: #d74b3f;
}

@keyframes slideLeft {
  from {
    transform: translate3d(0, 0, 0) scale(1.08);
  }

  to {
    transform: translate3d(-24vw, 0, 0) scale(1.08);
  }
}

@keyframes slideRight {
  from {
    transform: translate3d(-24vw, 0, 0) scale(1.08);
  }

  to {
    transform: translate3d(0, 0, 0) scale(1.08);
  }
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 98px 48px 50px;
  background: var(--page);
}

.brand {
  display: block;
  width: min(126px, 100%);
  line-height: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: grid;
  gap: 24px;
  margin-top: 72px;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #555;
}

.nav-link {
  width: max-content;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link.is-active {
  color: #b8b8b8;
}

.nav-link:not(.is-muted):hover {
  color: #111;
  transform: translateX(3px);
}

.nav-link.is-muted {
  color: #5f5f5f;
}

.sidebar-footer {
  margin-top: auto;
  color: #b5b5b5;
  font-size: 14px;
  line-height: 1.45;
}

.socials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  font-weight: 700;
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

address {
  display: grid;
  gap: 1px;
  font-style: normal;
}

.content {
  width: calc(100% - var(--sidebar));
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: var(--content-pad) var(--content-pad) 28px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 0 0 var(--thumb-gap);
}

.filter-label {
  margin-right: 3px;
  color: #878787;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: #777;
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.portfolio-section {
  display: none;
}

.portfolio-section.is-active {
  display: block;
}

.portfolio-grid {
  display: grid;
  gap: var(--thumb-gap);
}

.portfolio-row {
  display: grid;
  grid-template-columns: var(--row-columns);
  gap: var(--thumb-gap);
  width: 100%;
  height: var(--row-height-current);
}

.portfolio-row.is-last {
  width: max-content;
  max-width: 100%;
}

.project-card {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  min-width: 0;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: #ddd;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  appearance: none;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  animation: revealThumb 520ms ease forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealThumb {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card.size-poster {
  aspect-ratio: var(--ratio, 3 / 4.3);
}

.project-card.size-wide {
  aspect-ratio: var(--ratio, 16 / 9);
}

.project-card.size-tall {
  aspect-ratio: var(--ratio, 3 / 4.2);
}

.project-card.size-medium {
  aspect-ratio: var(--ratio, 4 / 3);
}

.project-card.size-large {
  aspect-ratio: var(--ratio, 2 / 1.1);
}

.project-art,
.project-art::after,
.modal-visual {
  background: var(
    --art-bg,
    linear-gradient(105deg, transparent 0 38%, rgba(255, 255, 255, 0.18) 39% 40%, transparent 41% 100%),
    radial-gradient(circle at var(--x1, 70%) var(--y1, 18%), rgba(255, 255, 255, 0.84), transparent 0 13%, transparent 29%),
    radial-gradient(circle at var(--x2, 28%) var(--y2, 70%), var(--accent, #d74031), transparent 0 12%, transparent 29%),
    linear-gradient(var(--angle, 135deg), var(--c1, #202328), var(--c2, #797b77) 48%, var(--c3, #f2eee5))
  );
  background-size: cover;
}

.project-art {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: filter 260ms ease;
}

.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 260ms ease;
  background: var(
    --hover-bg,
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36)),
    linear-gradient(72deg, transparent 0 46%, rgba(255, 255, 255, 0.22) 47% 48%, transparent 49% 100%),
    radial-gradient(circle at var(--hx1, 35%) var(--hy1, 24%), rgba(255, 255, 255, 0.78), transparent 0 13%, transparent 30%),
    radial-gradient(circle at var(--hx2, 72%) var(--hy2, 68%), var(--hover-accent, #d7ad43), transparent 0 12%, transparent 33%),
    linear-gradient(var(--hover-angle, 45deg), var(--h1, #111), var(--h2, #4f565e) 52%, var(--h3, #e6e1d6))
  );
  background-position: center;
  background-size: cover;
}

.project-art .visual-mark {
  position: absolute;
  left: 12%;
  bottom: 13%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.22), inset 0 0 32px rgba(0, 0, 0, 0.28);
  opacity: 0.54;
}

.project-art .visual-mark::before,
.project-art .visual-mark::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 6px solid rgba(0, 0, 0, 0.24);
}

.project-art .visual-mark::after {
  inset: auto -22% 18% 52%;
  height: 18%;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.56);
  transform: rotate(-14deg);
}

.project-card:hover .project-art,
.project-card:focus-visible .project-art {
  filter: contrast(1.05) saturate(1.06);
}

.project-card:hover .project-art::after,
.project-card:focus-visible .project-art::after {
  opacity: 1;
}

.project-card:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.awo-grid {
  display: grid;
  gap: 44px;
}

.awo-project {
  display: grid;
  gap: 12px;
}

.awo-project-title {
  display: grid;
  gap: 3px;
  margin: 0;
}

.awo-project-title p {
  margin: 0;
  color: #777;
  font-size: 14.4px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.awo-project-title p:first-child {
  color: #606060;
  font-size: 17.3px;
  font-weight: 800;
}

.awo-project-title span {
  color: #999;
}

.awo-project-grid {
  display: grid;
  gap: var(--awo-gap);
}

.awo-row {
  display: grid;
  grid-template-columns: var(--awo-columns);
  gap: var(--awo-gap);
  width: 100%;
  height: var(--awo-row-height-current);
}

.awo-row.is-last {
  width: max-content;
  max-width: 100%;
}

.awo-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #ddd;
  opacity: 0;
  transform: translateY(8px);
  animation: revealThumb 420ms ease forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.awo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.86);
  color: #171717;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 0;
  background: #111;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-panel {
  width: 100vw;
  height: 100vh;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  align-items: center;
  background: #111;
  color: #f7f4ee;
  overflow: hidden;
}

.modal-visual {
  width: min(100%, calc((100vh - 80px) * var(--ratio-number, 1.333)));
  max-height: calc(100vh - 80px);
  aspect-ratio: var(--ratio, 4 / 3);
  justify-self: center;
  background-color: #111;
  background-image: var(--full-bg, var(--art-bg));
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  padding: clamp(38px, 5.5vw, 80px) clamp(34px, 5vw, 72px);
  overflow: auto;
}

.credit-block {
  display: grid;
  gap: 14px;
  margin-top: 0;
  color: #c8c4bd;
  font-size: 13px;
  line-height: 1.55;
}

.credit-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) 1fr;
  gap: clamp(18px, 3vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: clamp(14px, 2vw, 26px);
  padding-bottom: clamp(6px, 1vw, 12px);
}

.credit-note {
  margin: 34px 0 0;
  color: #6f6f6f;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.credit-note a {
  color: #8a8a8a;
  font-style: italic;
}

.credit-label {
  color: #777;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 55;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.modal-nav {
  position: fixed;
  top: 50%;
  z-index: 55;
  width: 46px;
  height: 70px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.modal-prev {
  left: 18px;
}

.modal-next {
  right: 18px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  :root {
    --sidebar: 0px;
    --thumb-gap: 6px;
    --content-pad: 6px;
    --row-height: 260px;
    --awo-row-height: 139px;
    --awo-gap: 6px;
  }

  .sidebar {
    position: sticky;
    inset: 0 0 auto;
    width: 100%;
    min-height: 0;
    padding: 24px 18px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    grid-auto-flow: column;
    justify-content: start;
    gap: 22px;
    margin-top: 24px;
    font-size: 15px;
  }

  .sidebar-footer {
    display: none;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding: var(--content-pad);
  }

  .portfolio-grid {
    gap: var(--thumb-gap);
  }

  .modal {
    padding: 0;
  }

  .modal-panel {
    height: 100vh;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, auto) 1fr;
  }

  .modal-visual {
    width: min(100%, calc(44vh * var(--ratio-number, 1.333)));
    max-height: 44vh;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 24px;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .filter-bar {
    gap: 6px;
    padding-bottom: 10px;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .portfolio-row,
  .portfolio-row.is-last {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
    height: auto;
  }

  .project-card {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .awo-grid {
    gap: 34px;
  }

  .awo-project-grid {
    display: block;
    column-count: 2;
    column-gap: var(--awo-gap);
  }

  .awo-row,
  .awo-row.is-last {
    display: contents;
    width: auto;
    height: auto;
  }

  .awo-card {
    display: inline-block;
    height: auto;
    width: 100%;
    margin: 0 0 var(--awo-gap);
    break-inside: avoid;
    aspect-ratio: auto;
  }

  .awo-card img {
    height: auto;
    object-fit: contain;
  }

  .project-art::before {
    font-size: clamp(28px, 12vw, 52px);
  }

  .modal-copy {
    height: auto;
    padding: 24px 20px 30px;
  }

  .modal-nav {
    top: auto;
    bottom: 18px;
    width: 48px;
    height: 48px;
    font-size: 34px;
    transform: none;
  }

  .modal-prev {
    left: 26px;
  }

  .modal-next {
    right: 26px;
  }

  .credit-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Public update announcement, matching the supplied composition. */
body { background: #fff; }
.sidebar { background: #fff; }
.brand { width: min(150px, 100%); }
.sidebar-footer { display: none; }
.update-overlay {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0; visibility: hidden;
  background: linear-gradient(to bottom, rgba(255,255,255,.48) 0%, rgba(255,255,255,.72) 36%, rgba(255,255,255,.96) 68%, #fff 87%);
  transition: opacity 1100ms cubic-bezier(.22,.61,.36,1), visibility 1100ms;
}
.update-copy {
  position: absolute; left: 7.2%; right: 5%; top: 65%;
  color: #202020; font-family: Arial, Helvetica, sans-serif;
  opacity: 0; transform: translateY(22px);
  transition: opacity 850ms ease 260ms, transform 1000ms cubic-bezier(.22,.61,.36,1) 180ms;
}
.update-copy h1 { margin: 0 0 10px; font-weight: 400; font-size: clamp(28px, 2.78vw, 64px); line-height: 1.12; letter-spacing: -.025em; }
.update-copy p { margin: 0; font-size: clamp(13px, 1.04vw, 22px); line-height: 1.2; font-weight: 500; }
body.update-visible { overflow: hidden; }
.update-visible .update-overlay { visibility: visible; opacity: 1; pointer-events: auto; }
.update-visible .update-copy { opacity: 1; transform: translateY(0); }
@media (max-width: 600px) {
  .brand { width: 106.5px; }
  .update-copy { left: 7.2%; right: 7.2%; top: auto; bottom: 8%; bottom: max(8%, env(safe-area-inset-bottom)); }
  .update-copy h1 { font-size: clamp(27px, 7vw, 40px); max-width: 440px; margin-bottom: 16px; }
  .update-copy p { font-size: 13px; line-height: 1.4; }
  .update-emails > span:last-child { display: block; }
  .email-divider { display: none; }
}
@media (max-height: 550px) and (min-width: 601px) {
  .update-copy { top: 48%; }
}
@media (prefers-reduced-motion: reduce) {
  .update-overlay, .update-copy { transition-duration: 0ms; transition-delay: 0ms; transform: none; }
}
