:root {
  --ag-bg: #111214;
  --ag-sidebar: #131416;
  --ag-text: #f4f4f2;
  --ag-muted: #a7a7a4;
  --ag-border: rgba(255, 255, 255, 0.1);
  --ag-sidebar-width: 292px;
  --ag-gap: clamp(24px, 5vw, 72px);
  --ag-font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ag-bg);
  color: var(--ag-text);
  font-family: var(--ag-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.is-menu-open,
body.is-lightbox-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; margin: 0; padding: 12px 18px;
  clip: auto; overflow: visible; white-space: normal;
  left: 12px; top: 12px; z-index: 100000;
  background: #fff; color: #111;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--ag-sidebar-width);
  padding: 64px clamp(34px, 4vw, 78px);
  background: var(--ag-sidebar);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.025);
}
.site-sidebar__brand { margin-bottom: clamp(110px, 17vh, 210px); }
.custom-logo { max-width: 150px; max-height: 80px; width: auto; }
.site-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ag-text); color: var(--ag-bg);
  text-decoration: none; font-size: 12px; font-weight: 800; text-transform: lowercase;
}
.site-menu,
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu a {
  display: inline-block;
  padding: 2px 0;
  color: #d7d7d4;
  text-decoration: none;
  font-size: 15px;
  transition: color .2s ease, transform .2s ease;
}
.site-menu a:hover,
.site-menu .current-menu-item > a { color: #fff; transform: translateX(4px); }
.site-menu .sub-menu { padding: 4px 0 8px 12px; }
.site-menu .sub-menu a { color: var(--ag-muted); font-size: 13px; }
.site-socials { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.site-socials a {
  color: var(--ag-muted); text-decoration: none; font-size: 0;
}
.site-socials a::first-letter { font-size: 13px; }
.site-socials a:hover { color: #fff; }

.mobile-menu-toggle {
  display: none;
  position: fixed; z-index: 80; top: 18px; right: 18px;
  border: 1px solid var(--ag-border); border-radius: 999px;
  padding: 10px 16px; background: rgba(17,18,20,.88); backdrop-filter: blur(14px);
}
.mobile-menu-toggle__icon,
.mobile-menu-toggle__icon::before,
.mobile-menu-toggle__icon::after {
  display: inline-block; width: 16px; height: 1px; background: currentColor;
}
.mobile-menu-toggle__icon { margin-left: 8px; vertical-align: middle; position: relative; }
.mobile-menu-toggle__icon::before,
.mobile-menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
.mobile-menu-toggle__icon::before { top: -5px; }
.mobile-menu-toggle__icon::after { top: 5px; }

.site-main,
.site-footer { margin-left: var(--ag-sidebar-width); }
.portfolio-home { min-height: 100vh; padding: 54px var(--ag-gap) 90px; }
.portfolio-hero { overflow: hidden; }
.portfolio-hero h1 {
  margin: -2.2vw 0 1.5vw;
  font-size: clamp(82px, 13.25vw, 238px);
  line-height: .98;
  letter-spacing: .055em;
  font-weight: 200;
  white-space: nowrap;
}
.portfolio-hero p { max-width: 650px; margin: 20px 0 30px; color: var(--ag-muted); }
.portfolio-filters { margin: clamp(42px, 7vw, 108px) 0 64px; }
.portfolio-filters__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 25px; }
.portfolio-filters button {
  appearance: none; border: 0; padding: 2px 0;
  background: none; color: #d2d2ce; cursor: pointer;
  font-size: 15px; line-height: 1.5;
  transition: color .2s ease, opacity .2s ease;
}
.portfolio-filters button:first-child { order: 99; margin-left: auto; color: #777875; }
.portfolio-filters button:hover,
.portfolio-filters button.is-active { color: #fff; }
.portfolio-filters button.is-active::after {
  content: ""; display: block; height: 1px; margin-top: 2px; background: currentColor;
}

.portfolio-gallery { position: relative; min-height: 240px; }
.portfolio-gallery::after { content: ""; display: block; clear: both; }
.artwork-card {
  position: absolute;
  margin: 0;
  opacity: 0;
  transform: translate3d(0, 56px, 0);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform;
}
.artwork-card.is-positioned { opacity: 1; transform: translate3d(0,0,0); }
.artwork-card.is-hiding { opacity: 0; transform: scale(.97); pointer-events: none; }
.artwork-card__link,
.artwork-card__media { display: block; position: relative; overflow: hidden; }
.artwork-card__media { background: #1b1c1e; }
.artwork-card img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.artwork-card__overlay {
  position: absolute; inset: 0;
  background: #000; opacity: 0;
  transition: opacity .35s ease;
}
.artwork-card__link:hover img { transform: scale(1.025); }
.artwork-card__link:hover .artwork-card__overlay { opacity: .18; }

.portfolio-load-more-wrap { display: flex; justify-content: center; margin-top: 50px; }
.portfolio-load-more {
  min-width: 154px; padding: 13px 22px;
  border: 1px solid var(--ag-border); border-radius: 999px;
  background: transparent; cursor: pointer;
}
.portfolio-load-more:hover { background: #fff; color: #111; }
.portfolio-load-more:disabled { opacity: .5; cursor: wait; }
.portfolio-sentinel { height: 1px; }
.portfolio-empty { min-height: 40vh; display: grid; place-content: center; text-align: center; color: var(--ag-muted); }
.portfolio-empty h2 { color: var(--ag-text); }

.portfolio-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  color: #fff;
}
.portfolio-lightbox[hidden] { display: none; }
.portfolio-lightbox__backdrop { position: absolute; inset: 0; background: rgba(5,5,6,.96); }
.portfolio-lightbox__stage {
  position: absolute; inset: 64px 70px 80px;
  display: grid; place-items: center; overflow: auto;
}
.portfolio-lightbox__image {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; user-select: none;
  transition: opacity .25s ease;
}
.portfolio-lightbox.is-loading .portfolio-lightbox__image { opacity: .15; }
.portfolio-lightbox__loader {
  display: none; position: absolute; width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%;
  animation: atelier-spin .7s linear infinite;
}
.portfolio-lightbox.is-loading .portfolio-lightbox__loader { display: block; }
@keyframes atelier-spin { to { transform: rotate(360deg); } }
.portfolio-lightbox__image.is-actual-size { max-width: none; max-height: none; }
.portfolio-lightbox__topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 60px;
  padding: 0 18px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}
.portfolio-lightbox__actions { display: flex; gap: 4px; align-items: center; }
.portfolio-lightbox__actions button,
.portfolio-lightbox__actions a {
  display: grid; place-items: center; min-width: 38px; height: 38px;
  border: 0; background: transparent; color: #fff; text-decoration: none; cursor: pointer; font-size: 20px;
}
.portfolio-lightbox__actions button:hover,
.portfolio-lightbox__actions a:hover { background: rgba(255,255,255,.1); border-radius: 50%; }
.portfolio-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #fff; font-size: 58px; cursor: pointer;
  padding: 20px; opacity: .7;
}
.portfolio-lightbox__nav:hover { opacity: 1; }
.portfolio-lightbox__nav--prev { left: 0; }
.portfolio-lightbox__nav--next { right: 0; }
.portfolio-lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: 16px;
  margin: 0; padding: 0 70px; text-align: center; color: #ddd;
}

.content-page,
.artwork-single { padding: clamp(90px, 10vw, 160px) var(--ag-gap); min-height: 85vh; }
.content-card { max-width: 860px; margin: 0 auto 72px; }
.content-card h1 { font-size: clamp(42px, 7vw, 92px); line-height: 1; font-weight: 300; }
.content-card a { text-decoration: none; }
.entry-content { color: #d1d1ce; }
.entry-content > * { max-width: 760px; }
.entry-content h2 { margin: 64px 0 18px; font-size: clamp(28px,4vw,52px); line-height:1.08; font-weight:300; color:#fff; }
.entry-content h3 { margin-top: 38px; font-size: 21px; color:#fff; }
.entry-content p { margin: 0 0 22px; }
.entry-content ul { padding-left: 20px; }
.entry-content blockquote { margin: 55px 0; padding-left: 28px; border-left:1px solid #777; font-size:clamp(24px,3vw,40px); line-height:1.25; color:#fff; }
.entry-content .alignwide { max-width: 1100px; }
.entry-content .alignfull { max-width: none; }
.artwork-single article { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.artwork-single__details { position: sticky; top: 80px; }
.artwork-single h1 { margin: 0 0 30px; font-size: clamp(42px, 6vw, 82px); line-height: 1; font-weight: 300; }
.artwork-single .eyebrow { color: var(--ag-muted); }
.artwork-single dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; margin: 0 0 30px; }
.artwork-single dt { color: var(--ag-muted); }
.artwork-single dd { margin: 0; }
.site-footer { padding: 24px var(--ag-gap); color: #737470; font-size: 12px; }

@media (max-width: 1024px) {
  :root { --ag-sidebar-width: 228px; --ag-gap: 34px; }
  .site-sidebar { padding: 42px 34px; }
  .portfolio-hero h1 { font-size: 12.5vw; }
}

@media (max-width: 760px) {
  :root { --ag-gap: 20px; }
  .mobile-menu-toggle { display: block; }
  .site-sidebar {
    width: min(86vw, 360px); padding: 34px;
    transform: translateX(-105%);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
    box-shadow: 22px 0 70px rgba(0,0,0,.45);
  }
  .is-menu-open .site-sidebar { transform: translateX(0); }
  .site-sidebar__brand { margin-bottom: 80px; }
  .site-main, .site-footer { margin-left: 0; }
  .portfolio-home { padding-top: 86px; }
  .portfolio-hero h1 { font-size: clamp(52px, 18vw, 110px); white-space: normal; overflow-wrap: anywhere; }
  .portfolio-filters { margin: 52px 0 36px; }
  .portfolio-filters__list { gap: 8px 18px; }
  .portfolio-filters button:first-child { order: -1; width: 100%; margin: 0 0 8px; text-align: left; }
  .artwork-single article { grid-template-columns: 1fr; }
  .artwork-single__details { position: static; }
  .portfolio-lightbox__stage { inset: 60px 12px 90px; }
  .portfolio-lightbox__nav { font-size: 44px; padding: 12px; }
  .portfolio-lightbox__caption { padding: 0 30px; }
}

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