html.portfolio-redesign,
html.portfolio-redesign body {
  background: #fff;
  color: #171717;
}

html.portfolio-redesign body {
  margin: 0;
  overflow-x: hidden;
}

html.portfolio-redesign #main,
html.portfolio-redesign #overlay,
html.portfolio-redesign #__framer-badge-container {
  display: none !important;
}

.portfolio-shell {
  min-height: 100vh;
  font-family: "Inter Variable", "Inter", Arial, sans-serif;
}

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(960px, calc(100% - 60px));
  height: 64px;
  margin: 0 auto;
  padding: 0;
}

.portfolio-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.portfolio-nav a {
  color: #707070;
  font-family: "Inter Variable", "Inter Variable Placeholder", sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-variation-settings: "opsz" 24, "wght" 500;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11";
  letter-spacing: -.01em;
  line-height: 18px;
  text-decoration: none;
}

.portfolio-nav a:first-child {
  color: #707070;
  font-size: 16px;
  font-weight: 400;
  font-variation-settings: "opsz" 32, "wght" 700;
  line-height: 19.5px;
}

.portfolio-book {
  color: #fff;
  border: 0;
  border-radius: 999px;
  height: 30px;
  padding: 0 12px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter Variable", "Inter Variable Placeholder", sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-variation-settings: "opsz" 20, "wght" 500;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11";
  letter-spacing: -.01em;
  line-height: 14px;
  text-decoration: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 8px;
}

.portfolio-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #dedbd5;
  cursor: zoom-in;
  order: 3;
}

.portfolio-tile:nth-child(-n+4) { order: 1; }

.portfolio-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1), filter 450ms ease;
}

.portfolio-tile:hover img,
.portfolio-tile:focus-visible img {
  transform: scale(1.018);
  filter: brightness(.96);
}

.portfolio-tile:focus-visible {
  outline: 2px solid #171717;
  outline-offset: -2px;
}

.portfolio-comparison {
  grid-column: 1 / -1;
  order: 2;
  padding: 30px;
}

.comparison-inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.comparison-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.comparison-tab {
  margin: 0;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #707070;
  background: transparent;
  font-family: "Inter Variable", "Inter Variable Placeholder", sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-variation-settings: "opsz" 20, "wght" 500;
  font-feature-settings: "cv01", "cv05", "cv09", "cv11";
  letter-spacing: -.01em;
  line-height: 1.2;
  cursor: pointer;
}

.comparison-tab.is-active {
  color: #171717;
  border-bottom-color: #171717;
}

.comparison-tab:disabled {
  color: #aaa;
  opacity: .48;
  cursor: default;
}

.comparison-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.comparison-image { margin: 0; }

.comparison-image figcaption {
  margin-bottom: 8px;
  color: #707070;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.comparison-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #dedbd5;
}

.portfolio-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding: 70px 28px 28px;
}

.portfolio-footer p {
  margin: 0;
  color: #76726d;
  font-size: 11px;
}

.portfolio-footer a {
  color: inherit;
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -.04em;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.portfolio-lightbox {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 13, 13, .96);
}

.portfolio-lightbox.is-open {
  display: flex;
}

.portfolio-lightbox img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 72px);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.lightbox-close {
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  font-weight: 300;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 54px;
  height: 80px;
  transform: translateY(-50%);
  font-size: 34px;
  font-weight: 300;
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

.lightbox-count {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  color: rgba(255,255,255,.7);
  font: 11px/1 "Inter", Arial, sans-serif;
  letter-spacing: .08em;
  text-align: center;
}

body.lightbox-open { overflow: hidden !important; }

@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-tile:nth-child(-n+4) { order: 3; }
  .portfolio-tile:nth-child(-n+3) { order: 1; }
}

@media (max-width: 680px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 0 4px; }
  .portfolio-tile:nth-child(-n+3) { order: 3; }
  .portfolio-tile:nth-child(-n+2) { order: 1; }
  .portfolio-comparison { padding: 25px 10px 30px; }
  .comparison-tabs { gap: 15px; margin-bottom: 18px; overflow-x: auto; }
  .comparison-tab { flex: 0 0 auto; font-size: 11px; }
  .comparison-pair { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-footer { align-items: start; flex-direction: column-reverse; padding: 52px 14px 22px; }
  .portfolio-lightbox img { max-width: 100vw; max-height: calc(100vh - 86px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 4px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-tile img { transition: none; }
}
