:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-text: #111111;
  --color-muted: rgba(17, 17, 17, 0.72);
  --color-border: rgba(17, 17, 17, 0.18);
  --color-accent: #5be17d;

  --header-height: 112px;
  --shell-padding: 44px;
  --portfolio-gap: 30px;

  --transition-fast: 220ms ease;
  --transition-med: 320ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p {
  margin: 0 0 1rem;
}

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

.site-shell {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding-left: var(--shell-padding);
  padding-right: var(--shell-padding);
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--shell-padding);
}

.site-custom-logo,
.custom-logo-link img,
.site-logo img {
  max-height: 48px;
  width: auto;
}

.site-logo__text {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 42px;
}

/* buttons */
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.site-button__arrow {
  font-size: 0.95em;
}

.site-button__arrow img.emoji {
  display: none !important;
}

/* header outline button */
.site-header .site-button.site-button--outline {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--color-black);
  border-radius: 0;
  padding: 12px 16px;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  gap: 6px;
}

.site-header .site-button.site-button--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 0;
}

.site-header .site-button.site-button--outline span,
.site-header .site-button.site-button--outline .site-button__arrow {
  position: relative;
  z-index: 1;
}

.site-header .site-button__arrow::before {
  content: ">";
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  color: #000;
}

.site-header .site-button.site-button--outline .site-button__arrow {
  transition: transform 0.25s ease;
}

.site-header .site-button.site-button--outline:hover {
  transform: translateY(-1px);
  border-color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.site-header .site-button.site-button--outline:hover::before {
  transform: translateX(0);
}

.site-header .site-button.site-button--outline:hover .site-button__arrow {
  transform: translateX(3px);
}

/* menu */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1;
}

.menu-toggle__icon {
  width: 22px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle__icon span {
  width: 100%;
  height: 2px;
  background: var(--color-black);
  display: block;
}

/* overlay menu */
.site-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.96);
  color: #fff;
}

.site-menu-overlay[hidden] {
  display: none;
}

.site-menu-overlay__inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px var(--shell-padding) 40px;
}

.site-menu-overlay__top {
  display: flex;
  justify-content: flex-end;
}

.site-menu-overlay__close {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.site-menu-overlay__nav {
  margin: auto 0;
}

.overlay-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-menu li + li {
  margin-top: 20px;
}

.overlay-menu a {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
}

/* =========================================
   MAIN
   ========================================= */

.site-main {
  padding-top: var(--header-height);
}

/* =========================================
   HERO
   ========================================= */

.hero--homepage {
  background: #fff;
}

.hero__inner {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(320px, 640px) 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 18px;
  transform: translateY(-28px);
}

.hero__content {
  position: relative;
  overflow: visible;
  margin-left: 175px;
}

.hero__title {
  margin: 0 0 24px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1.02;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  animation: ayesightFadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: 0.1s;
}

.hero__text {
  max-width: 32rem;
  margin-bottom: 28px;
  font-family: 'Oswald', sans-serif;
  font-weight: 200;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.45;
}

.hero__content p {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 200 !important;
  font-size: 20px !important;
  line-height: 1.45 !important;
  opacity: 0;
  transform: translateY(18px);
  animation: ayesightFadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
}

.hero__content p:nth-of-type(1) {
  animation-delay: 0.25s;
}

.hero__content p:nth-of-type(2) {
  animation-delay: 0.4s;
}

.hero__content p strong,
.hero__content p b {
  font-weight: 200 !important;
}

/* hero CTA */
.hero .site-button.site-button--accent {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  padding: 14px 18px;
  background: var(--color-accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
  font-size: 13px;
  font-weight: 900;
  color: #fff !important;
  opacity: 0;
  transform: translateY(18px);
  animation: ayesightFadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: 0.55s;
}

.hero .site-button.site-button--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 0;
}

.hero .site-button.site-button--accent span,
.hero .site-button.site-button--accent .site-button__arrow {
  position: relative;
  z-index: 1;
  color: #fff !important;
}

.hero .site-button.site-button--accent .site-button__arrow::before {
  content: ">" !important;
  display: inline-block !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: #fff !important;
}

.hero .site-button.site-button--accent .site-button__arrow {
  transition: transform 0.25s ease;
}

.hero .site-button.site-button--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.hero .site-button.site-button--accent:hover::before {
  transform: translateX(0);
}

.hero .site-button.site-button--accent:hover .site-button__arrow {
  transform: translateX(3px);
}

/* hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  opacity: 0;
  transform: translateY(10px);
  animation: heroLogosFade 1.2s ease forwards;
  animation-delay: 0.7s;
}

.hero__logo-cloud {
  max-width: min(100%, 900px);
  width: 100%;
  height: auto;
  transform: translateX(-50px);
}

.hero__logo-cloud--placeholder {
  border: 1px dashed var(--color-border);
  color: var(--color-muted);
  padding: 48px;
}

/* hero scroll indicator */
@media (min-width: 992px) {
  .hero__content::before {
    content: "SCROLL";
    position: absolute;
    left: -165px;
    bottom: 128px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #111;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    z-index: 20;
  }

  .hero__content .scroll-arrow {
    position: absolute;
    left: -159px;
    bottom: 32px;
    display: block;
    width: 1px;
    height: 82px;
    background: #111;
    z-index: 21;
    visibility: visible;
    opacity: 1;
    animation: scrollPulse 2.2s ease-in-out infinite;
  }

  .hero__content .scroll-arrow::after {
    content: "";
    position: absolute;
    left: -4px;
    bottom: 0;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #111;
    border-bottom: 1.5px solid #111;
    transform: rotate(45deg);
    display: block;
  }
}

/* hero animations */
@keyframes ayesightFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: .6; }
  100% { transform: translateY(0); opacity: 1; }
}

/* =========================================
   NEWSLETTER BAND
   ========================================= */

.newsletter-band {
  background: var(--color-black);
  color: var(--color-white);
}

.newsletter-band__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.newsletter-band__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newsletter-band__form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 560px);
}

.newsletter-band__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 0;
  padding: 14px 18px;
  font: inherit;
  transition: border 0.25s ease, background 0.25s ease;
}

.newsletter-band__form input:focus {
  border-color: #ffffff;
  background: rgba(255,255,255,0.12);
  outline: none;
}

.newsletter-band__button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.newsletter-band__button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.newsletter-band__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.newsletter-band__button:hover::before {
  transform: translateX(0);
}

/* =========================================
   PORTFOLIO
   ========================================= */

.portfolio-grid-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--portfolio-gap);
  width: 100%;
  padding: 0;
  margin: 0;
}

.portfolio-card {
  position: relative;
  margin: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-card__link {
  display: block;
  background: transparent;
}

.portfolio-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f1f1f1;
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.portfolio-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.2) 35%,
    rgba(0,0,0,0) 60%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.portfolio-card__overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  z-index: 2;
  transition: transform 0.35s ease;
}

.portfolio-card__title {
  margin: 0 0 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

.portfolio-card__caption {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
}

.portfolio-card__placeholder,
.work-single__visual-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eee 0%, #ddd 100%);
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.05);
}

.portfolio-card:hover .portfolio-card__media::before {
  opacity: 0.75;
}

.portfolio-card:hover .portfolio-card__overlay {
  transform: translateY(-6px);
}

.portfolio-card.is-hidden {
  opacity: 0.15;
  transform: scale(0.98);
  pointer-events: none;
}

/* filter trigger */
#portfolioFilterTrigger {
  position: absolute !important;
  left: 50% !important;
  top: 140px !important;
  transform: translateX(-50%);
  z-index: 50 !important;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.25s ease;
}

#portfolioFilterTrigger .filter-trigger-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
  writing-mode: unset !important;
  text-orientation: unset !important;
  transform: rotate(90deg) !important;
  transform-origin: center center !important;
  display: inline-block !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  margin: 130px 0 66px 0 !important;
  padding: 0 !important;
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
  transition: opacity 0.25s ease;
}

#portfolioFilterTrigger .filter-trigger-text:hover {
  opacity: 0.6;
}

.filter-trigger-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease;
  padding: 0;
}

.filter-trigger-circle:hover {
  transform: scale(1.06);
}

.filter-trigger-circle .inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

/* filter panel */
.portfolio-filter-panel {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.portfolio-filter-trigger.is-open .portfolio-filter-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.portfolio-filter-option {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.12);
  color: #111;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portfolio-filter-option:hover {
  transform: translateY(-1px);
}

.portfolio-filter-option.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--shell-padding) 36px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.site-footer__right {
  text-align: right;
}

/* =========================================
   SINGLE WORK
   ========================================= */

.work-single {
  min-height: calc(100vh - var(--header-height));
}

.work-single__layout {
  display: grid;
  grid-template-columns: minmax(320px, 38%) minmax(0, 62%);
  min-height: calc(100vh - var(--header-height));
}

.work-single__content {
  padding: 48px var(--shell-padding) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-single__title {
  margin: 0 0 18px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1.02;
  text-transform: uppercase;
}

.work-single__caption,
.work-single__body {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
}

.work-single__caption {
  margin: 0 0 24px;
}

.work-single__body {
  max-width: 24rem;
}

.work-single__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.work-single__link {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
}

.work-single__visual {
  padding: 0;
  background: #fff;
}

.work-single__visual img,
.work-single__visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--header-height));
  object-fit: cover;
}

.work-single__close {
  position: fixed;
  top: 50%;
  left: 38%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #000;
  display: grid;
  place-items: center;
  z-index: 900;
}

.work-single__close-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 999px;
  display: block;
}

.work-single__close:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

/* =========================================
   GENERIC CONTENT
   ========================================= */

.archive-header,
.generic-content {
  padding-top: 48px;
  padding-bottom: 48px;
}

.archive-title,
.generic-content h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  text-transform: uppercase;
}

/* =========================================
   PAGE TRANSITIONS
   ========================================= */

.site-main,
.site-footer,
.site-header {
  transition:
    transform 0.38s cubic-bezier(.22,.61,.36,1),
    opacity 0.38s cubic-bezier(.22,.61,.36,1);
  will-change: transform, opacity;
}

body.is-page-entering .site-main,
body.is-page-entering .site-footer {
  opacity: 0;
  transform: translateX(36px);
  animation: pageEnterAyesight 0.7s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes pageEnterAyesight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.is-page-leaving .site-main,
body.is-page-leaving .site-footer {
  opacity: 0;
  transform: translateX(-32px);
}

body.is-page-leaving .site-header {
  opacity: 0.96;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__content p,
  .hero .site-button,
  .hero__visual,
  .site-main,
  .site-footer,
  .site-header {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.is-page-entering .site-main,
  body.is-page-entering .site-footer,
  body.is-page-leaving .site-main,
  body.is-page-leaving .site-footer {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1200px) {
  :root {
    --shell-padding: 28px;
    --header-height: 96px;
  }

  .site-header__actions {
    gap: 28px;
  }

  .hero__inner,
  .work-single__layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991px) {
  .hero__content {
    margin-left: 24px !important;
    margin-right: 24px !important;
  }

  .hero__content::before,
  .hero__content .scroll-arrow,
  .hero__content .scroll-arrow::after {
    display: none !important;
    content: none !important;
  }

  .hero__inner {
    transform: none;
  }

  #portfolioFilterTrigger {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --shell-padding: 18px;
    --portfolio-gap: 12px;
  }

  .site-header__inner {
    min-height: 84px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-header__actions {
    gap: 18px;
  }

  .site-header .site-button.site-button--outline {
    padding: 13px 16px;
    font-size: 14px;
  }

  .menu-toggle {
    font-size: 14px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 10px;
  }

  .hero__visual {
    min-height: auto;
    order: -1;
  }

  .newsletter-band__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-band__form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-single__layout {
    grid-template-columns: 1fr;
  }

  .work-single__visual {
    order: -1;
  }

  .work-single__visual img,
  .work-single__visual-placeholder {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }

  .work-single__content {
    padding-top: 28px;
  }

  .work-single__close {
    left: auto;
    right: 18px;
    top: calc(var(--header-height) + 18px);
    transform: none;
  }

  .work-single__close:hover {
    transform: scale(1.03);
  }
}

@media (max-width: 560px) {
  .site-header__actions {
    gap: 12px;
  }

  .site-header .site-button.site-button--outline {
    padding: 11px 12px;
    font-size: 11px;
  }

  .menu-toggle {
    font-size: 12px;
  }

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

/* =========================================
   FOOTER - MATCH MOCK
   ========================================= */

.site-footer {
  background: #000;
  color: #fff;
  border-top: none;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 22px;
  padding-bottom: 18px;
}

.site-footer__top {
  padding-bottom: 42px;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.site-footer__logo-wrap {
  flex: 0 0 auto;
}

.site-footer__logo-wrap .custom-logo-link,
.site-footer__logo-wrap .custom-logo {
  display: block;
}

.site-footer__logo-wrap .custom-logo {
  max-height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__brand-line {
  width: 140px;
  flex: 0 0 140px;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

.site-footer__location-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.site-footer__state {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 0.88;
  color: rgba(255,255,255,0.14);
  letter-spacing: -0.04em;
}

.site-footer__address p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #fff;
  text-transform: none;
}

.site-footer__bottom {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  column-gap: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.site-footer__bottom-left,
.site-footer__bottom-center,
.site-footer__bottom-right {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.35;
  color: #fff;
  text-transform: none;
  white-space: nowrap;
}

.site-footer__bottom-center a,
.site-footer__bottom-right a {
  color: #fff;
}

.site-footer__menu-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  line-height: 1;
}

.site-footer__menu-toggle .menu-toggle__icon {
  width: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.site-footer__menu-toggle .menu-toggle__icon span {
  width: 100%;
  height: 2px;
  background: #fff;
  display: block;
}

/* bring footer content inward like the mock */
.site-footer .site-shell {
  padding-left: 36px;
  padding-right: 36px;
}

@media (max-width: 900px) {
  .site-footer__inner {
    max-width: none;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .site-footer__menu-toggle {
    justify-self: start;
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  .site-footer__brand-row {
    gap: 12px;
  }

  .site-footer__brand-line {
    width: 90px;
    flex-basis: 90px;
  }

  .site-footer__location-row {
    flex-direction: column;
    gap: 10px;
  }

  .site-footer__state {
    font-size: 42px;
  }
}

/* =========================================
   FOOTER FINAL ALIGNMENT PASS
   ========================================= */

/* make footer taller overall */
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px !important;
  padding-bottom: 18px !important;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* keep top and bottom spread vertically */
.site-footer__top {
  padding-bottom: 0 !important;
}

/* logo row */
.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px !important;
}

/* larger footer logo */
.site-footer__logo-wrap .custom-logo {
  max-height: 24px !important;
  width: auto;
  filter: brightness(0) invert(1);
}

/* longer top line */
.site-footer__brand-line {
  flex: 1 1 auto !important;
  width: auto !important;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

/* PA/address block */
.site-footer__location-row {
  display: flex;
  align-items: flex-start;
  gap: 18px !important;
}

.site-footer__state {
  font-size: 58px !important;
  line-height: 0.88;
}

.site-footer__address p {
  font-size: 11px;
  line-height: 1.5;
}

/* push bottom row down and align it */
.site-footer__bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  column-gap: 24px;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,0.14);
}

/* bottom text */
.site-footer__bottom-left,
.site-footer__bottom-center,
.site-footer__bottom-right,
.site-footer__menu-toggle {
  font-size: 11px;
  line-height: 1.3;
}

/* keep menu at far right */
.site-footer__menu-toggle {
  justify-self: end;
}

/* =========================================
   FOOTER - LEFT ANCHORED LIKE MOCK
   ========================================= */

.site-footer__inner.site-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 26px !important;
  padding-bottom: 18px !important;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-footer__top {
  padding-bottom: 0 !important;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px !important;
}

.site-footer__logo-wrap .custom-logo {
  max-height: 24px !important;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__brand-line {
  flex: 1 1 auto !important;
  width: auto !important;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

.site-footer__location-row {
  display: flex;
  align-items: flex-start;
  gap: 18px !important;
}

.site-footer__state {
  font-size: 58px !important;
  line-height: 0.88;
}

.site-footer__address p {
  font-size: 11px;
  line-height: 1.5;
}

/* Bottom row stretches across like mock */
.site-footer__bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  column-gap: 28px;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,0.14);
  width: 100%;
}

.site-footer__bottom-left,
.site-footer__bottom-center,
.site-footer__bottom-right,
.site-footer__menu-toggle {
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.site-footer__menu-toggle {
  justify-self: end;
}

/* keep footer shell aligned with site, not centered narrow */
.site-footer .site-shell {
  padding-left: 36px !important;
  padding-right: 36px !important;
}

/* =========================================
   FOOTER FINAL LEFT-ALIGN FIX
   ========================================= */

/* force footer to use full width and left-align content */
.site-footer__inner.site-shell {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 250px !important;
  padding-right: 175px !important;
  padding-top: 26px !important;
  padding-bottom: 18px !important;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch !important;
}

/* top block anchored left */
.site-footer__top {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px !important;
  justify-content: flex-start !important;
}

/* make footer logo larger */
.site-footer__logo-wrap {
  flex: 0 0 auto;
}

.site-footer__logo-wrap .custom-logo {
  max-height: 40px !important;
  width: auto !important;
  filter: brightness(0) invert(1);
}

/* if text fallback is used */
.site-footer__logo-text {
  font-size: 18px !important;
}

/* long line from logo */
.site-footer__brand-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.18) 70%,
    rgba(255,255,255,0) 100%
  );
}


/* left cluster */
.site-footer__location-row {
  display: flex;
  align-items: flex-start;
  gap: 18px !important;
  justify-content: flex-start !important;
}

.site-footer__state {
  font-size: 64px !important;
  line-height: 0.88;
}

.site-footer__address p {
  font-size: 11px;
  line-height: 1.5;
}

/* bottom row spans width and stays low */
.site-footer__bottom {
  width: 100%;
  margin-top: auto;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  column-gap: 28px;
  padding-top: 14px !important;
  border-top: none;
position: relative;
}

.site-footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;

  background: linear-gradient(
    to right,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.18) 75%,
    rgba(255,255,255,0) 100%
  );
}

/* remove the word Menu, keep only icon */
.site-footer__menu-toggle .menu-toggle__label {
  display: none !important;
}

.site-footer__menu-toggle {
  justify-self: end;
  gap: 0 !important;
  min-width: 18px;
  margin-right: 100px;
}

/* tighten space between address block and bottom divider */
.site-footer__inner.site-shell {
  min-height: auto !important;
  justify-content: flex-start !important;
}

.site-footer__top {
  padding-bottom: 12px !important;
}

.site-footer__bottom {
  margin-top: 0 !important;
}

/* Footer logo dot fix */

.site-footer .custom-logo-link {
  position: relative;
  display: inline-block;
}

.site-footer .custom-logo {
  display: block;
  max-height: 40px !important;
  width: auto;
  filter: brightness(0) invert(1);
}

/* draw the missing dot */
.site-footer .custom-logo-link::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

/* =========================================
   HOMEPAGE SCROLL REVEAL
   ========================================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(.22,.61,.36,1),
    transform 0.7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger helpers */
.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* FORCE filter panel open state */
#portfolioFilterTrigger.is-open .portfolio-filter-panel {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  z-index: 60 !important;

}

/* =========================================
   SINGLE WORK PAGE - MATCH MOCK
   ========================================= */

/* 1) Left content uses same body feel as homepage and moves up */
.work-single__content {
  justify-content: flex-start !important;
  padding-top: 110px !important;
  padding-bottom: 48px !important;
}

.work-single__caption,
.work-single__body,
.work-single__body p {
  font-family: 'Oswald', sans-serif !important;
  font-weight: 200 !important;
  font-size: 20px !important;
  line-height: 1.45 !important;
}

.work-single__caption {
  margin: 0 0 22px !important;
}

.work-single__body {
  max-width: 34rem !important;
}

.work-single__body p:last-child {
  margin-bottom: 0 !important;
}

/* 2) Title spacing tighter */
.work-single__title {
  margin: 0 0 18px !important;
}

/* 3) Links should read like clean text actions, no arrows */
.work-single__links {
  display: flex !important;
  flex-direction: row !important;
  gap: 48px !important;
  margin-top: 34px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.work-single__link,
.work-single__links a,
.work-single__content .site-button,
.work-single__content .site-button span {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: #111 !important;
  border-radius: 0 !important;
}

/* kill any shared button sweep/arrow treatment on single work page */
.work-single__content .site-button::before,
.work-single__content .site-button::after,
.work-single__content .site-button__arrow,
.work-single__content .site-button__arrow::before,
.work-single__content .site-button__arrow img,
.work-single__content .site-button img.emoji {
  display: none !important;
  content: none !important;
}

/* subtle hover */
.work-single__link:hover,
.work-single__links a:hover,
.work-single__content .site-button:hover {
  opacity: 0.65;
  transform: none !important;
}

/* 4) Move close button lower */
.work-single__close {
  top: auto !important;
  bottom: 372px !important;
  left: 38% !important;
  transform: translateX(-50%) !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 999px !important;
  background: #000 !important;
  display: grid !important;
  place-items: center !important;
  z-index: 900 !important;
}

/* 5) CLOSE text horizontal under button */
.work-single__close::after {
  content: "CLOSE";
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #111;
}

.work-single__close:hover {
  transform: translateX(-50%) scale(1.03) !important;
}

/* keep dot centered */
.work-single__close-dot {
  width: 10px !important;
  height: 10px !important;
  background: #fff !important;
  border-radius: 999px !important;
  display: block !important;
}

/* image side fills nicely */
.work-single__visual img,
.work-single__visual-placeholder {
  object-fit: cover !important;
}

/* responsive safety */
@media (max-width: 900px) {
  .work-single__content {
    padding-top: 36px !important;
  }

  .work-single__links {
    gap: 24px !important;
  }

  .work-single__close {
    left: auto !important;
    right: 18px !important;
    bottom: 24px !important;
    transform: none !important;
  }

  .work-single__close:hover {
    transform: scale(1.03) !important;
  }

  .work-single__close::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* =========================================
   PORTFOLIO CLICK TRANSITION
   ========================================= */

body.is-portfolio-clicking .portfolio-grid {
  pointer-events: none;
}

body.is-portfolio-clicking .portfolio-card {
  transition:
    transform 0.38s cubic-bezier(.22,.61,.36,1),
    opacity 0.38s cubic-bezier(.22,.61,.36,1),
    filter 0.38s cubic-bezier(.22,.61,.36,1);
}

body.is-portfolio-clicking .portfolio-card:not(.is-selected) {
  opacity: 0.28;
  transform: scale(0.985);
  filter: saturate(0.8);
}

body.is-portfolio-clicking .portfolio-card.is-selected {
  opacity: 1;
  transform: scale(1.05);
  z-index: 30;
}

body.is-portfolio-clicking .portfolio-card.is-selected .portfolio-card__media img {
  transform: scale(1.04);
}

body.is-portfolio-clicking .portfolio-card.is-selected .portfolio-card__overlay {
  transform: translateY(-4px);
}

/* make the selected card feel a little more prominent */
.portfolio-card {
  transform-origin: center center;
}

/* =========================================
   CASE STUDY CLOSE TRANSITION
   ========================================= */

body.is-case-closing .work-single {
  animation: caseSlideOut 0.45s cubic-bezier(.65,.05,.36,1) forwards;
}

@keyframes caseSlideOut {

  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(120px);
    opacity: 0;
  }

}

/* ===============================
   PORTFOLIO IMAGE GRADIENT
   =============================== */

.portfolio-card__media {
  position: relative;
  overflow: hidden;
}

.portfolio-card__media::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,0.65) 100%
  );

  pointer-events: none;
  transition: opacity .35s ease;
}

.portfolio-card__overlay {
  position: absolute;
  left: 0;
  bottom: 0;

  padding: 32px;

  z-index: 2;
}

.portfolio-card__media img {
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.05);
}

.portfolio-card:hover .portfolio-card__media::after {
  opacity: .85;
}

/* =========================================
   CASE STUDY IMAGE FIX
   ========================================= */

.work-single__layout {
  align-items: stretch !important;
}

.work-single__visual {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  min-height: calc(100vh - var(--header-height)) !important;
  height: calc(100vh - var(--header-height)) !important;
}

.work-single__visual img,
.work-single__visual-placeholder {
  width: 100% !important;
  height: 100% !important;
  min-height: calc(100vh - var(--header-height)) !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;

}

/* CASE STUDY HERO IMAGE - crop tighter at top */
.work-single__visual {
  overflow: hidden !important;
}

.work-single__visual img,
.work-single__visual-placeholder {
  width: 100% !important;
  height: calc(100vh - var(--header-height)) !important;
  min-height: calc(100vh - var(--header-height)) !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
  transform: scale(1.06);
  transform-origin: center top;
}

/* =========================================
   SINGLE WORK HERO IMAGE - CLEAN FIX
   ========================================= */

.work-single__layout {
  align-items: stretch !important;
  min-height: calc(100vh - var(--header-height)) !important;
}

.work-single__visual {
  position: relative !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  height: calc(100vh - var(--header-height)) !important;
  min-height: calc(100vh - var(--header-height)) !important;
  align-self: stretch !important;
}

.work-single__visual img,
.work-single__visual-placeholder {
  width: 100% !important;
  height: 100% !important;
  min-height: calc(100vh - var(--header-height)) !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
}

/* nudge image up visually without breaking layout */
.work-single__visual img {
  transform: translateY(-18px) scale(1.03);
  transform-origin: center top;
}

/* keep mobile safe */
@media (max-width: 900px) {
  .work-single__visual {
    height: auto !important;
    min-height: auto !important;
  }

  .work-single__visual img,
  .work-single__visual-placeholder {
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 3 / 4;
    transform: none !important;
  }
}

/* =========================================
   SINGLE WORK HERO IMAGE - MATCH MOCK
   ========================================= */

.work-single__layout {
  align-items: start !important;
}

.work-single__visual {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  overflow: visible !important;
  background: transparent !important;
}

.work-single__visual img,
.work-single__visual-placeholder {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: unset !important;
  display: block !important;
  margin: 0 !important;
  transform: none !important;
}

/* kill any older forced hero-height rules */
.work-single__visual-placeholder {
  aspect-ratio: auto !important;
}

/* FINAL single work hero top-gap fix */
.work-single__visual {
  overflow: visible !important;
}

.work-single__visual img {
  margin-top: -34px !important;
}

/* Keep filter panel above footer */
.portfolio-grid-section {
  position: relative;
  z-index: 20;
  overflow: visible !important;
}

#portfolioFilterTrigger {
  z-index: 200 !important;
}

#portfolioFilterTrigger .portfolio-filter-panel {
  position: relative;
  z-index: 210 !important;
}

.site-footer {
  position: relative;
  z-index: 1;
}

.site-main {
	overflow: visible !important;
}

/* =========================================
   PORTFOLIO FILTER DRAWER
   ========================================= */

.portfolio-filter-drawer {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 90vw);
  height: 100vh;
  background: rgba(245, 245, 245, 0.98);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.portfolio-filter-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
}

.portfolio-filter-drawer__inner {
  height: 100%;
  padding: 140px 40px 40px;
  display: flex;
  flex-direction: column;
}

.portfolio-filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.portfolio-filter-drawer__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.portfolio-filter-drawer__close {
  width: 28px;
  height: 28px;
  background: none;
  border: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
}

.portfolio-filter-drawer__close span {
  position: absolute;
  top: 13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #111;
}

.portfolio-filter-drawer__close span:first-child {
  transform: rotate(45deg);
}

.portfolio-filter-drawer__close span:last-child {
  transform: rotate(-45deg);
}

.portfolio-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: auto !important;
}

.portfolio-filter-option {
  min-width: 150px;
}

/* optional visual shift for grid */
.portfolio-grid {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.portfolio-grid.is-filter-shifted {
  transform: translateX(40px);
}

/* keep drawer off on mobile for now */
@media (max-width: 991px) {
  .portfolio-filter-drawer {
    display: none;

  }
}

/* =========================================
   BIA-STYLE FILTER COLUMN
   ========================================= */

.portfolio-grid {
  position: relative;
}

.portfolio-filter-card {
  display: none;
  background: #ffffff;
  min-height: 520px;
  padding: 40px 48px;
}

.portfolio-grid.is-filter-open .portfolio-filter-card {
  display: block;
}

.portfolio-filter-card__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.portfolio-filter-card__heading {
  margin: 0 0 18px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.portfolio-filter-card__group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.portfolio-filter-card .portfolio-filter-option {
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  color: #111;
}

.portfolio-filter-card .portfolio-filter-option.is-active {
  color: #111;
  font-weight: 700;
}

.portfolio-filter-card .portfolio-filter-option:hover {
  opacity: 0.6;
  transform: none;
}

/* keep trigger above grid */
#portfolioFilterTrigger {
  z-index: 40 !important;
}

/* don't use old dropdown visuals */
#portfolioFilterTrigger .portfolio-filter-panel,
.portfolio-filter-drawer {
  display: none !important;
}

@media (max-width: 991px) {
  .portfolio-filter-card {
    display: none !important;

  }
}

/* =================================
   CENTER FILTER COLUMN (BIA STYLE)
================================= */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* hidden by default */
.portfolio-filter-card {
  display: none;
}

/* when filter opens */
.portfolio-grid.is-filter-open .portfolio-filter-card {
  display: block;
  grid-column: 2 / span 1;   /* THIS centers it */
}

/* =========================================
   BIA-STYLE PORTFOLIO RAIL
   ========================================= */

.portfolio-grid-section {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
}

.portfolio-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  width: 100%;
  transition: grid-template-columns 0.45s cubic-bezier(.22,.61,.36,1), gap 0.45s cubic-bezier(.22,.61,.36,1);
}

.portfolio-rail.is-filter-open {
  grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr);
  gap: 36px;
}

.portfolio-rail__column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--portfolio-gap);
  align-content: start;
}

.portfolio-rail__filter {
  position: relative;
  min-height: 100%;
}

/* =========================================
   FLOATING FILTER TRIGGER
   ========================================= */

#portfolioFilterTrigger {
  position: sticky !important;
  top: 140px !important;
  left: auto !important;
  transform: none !important;
  z-index: 40 !important;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22px;
  margin: 0 auto;
  transition: width 0.45s cubic-bezier(.22,.61,.36,1), opacity 0.3s ease;
}

.portfolio-rail.is-filter-open #portfolioFilterTrigger {
  width: 360px;
  align-items: flex-start;
}

#portfolioFilterTrigger .filter-trigger-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
  line-height: 1;
  padding: 0;
  transition: opacity 0.25s ease, transform 0.45s cubic-bezier(.22,.61,.36,1), margin 0.45s cubic-bezier(.22,.61,.36,1);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0 0 18px 0;
  white-space: nowrap;
}

.portfolio-rail.is-filter-open #portfolioFilterTrigger .filter-trigger-text {
  writing-mode: horizontal-tb;
  transform: none;
  margin: 0 0 26px 0;
}

#portfolioFilterTrigger .filter-trigger-text:hover {
  opacity: 0.6;
}

.filter-trigger-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding: 0;
  flex: 0 0 auto;
}

.filter-trigger-circle:hover {
  transform: scale(1.06);
}

.filter-trigger-circle .inner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.portfolio-rail.is-filter-open .filter-trigger-circle {
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   EXPANDING FILTER PANEL
   ========================================= */

.portfolio-filter-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(.22,.61,.36,1),
    visibility 0.3s ease;
  background: #fff;
  width: 100%;
  max-width: 360px;
}

.portfolio-rail.is-filter-open .portfolio-filter-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.portfolio-filter-card__inner {
  padding: 0;
}

.portfolio-filter-card__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.portfolio-filter-card__heading {
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
}

.portfolio-filter-option {
  background: none;
  border: 0;
  padding: 0;
  min-width: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  color: #111;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: left;
}

.portfolio-filter-option:hover {
  opacity: 0.55;
  transform: none;
}

.portfolio-filter-option.is-active {
  font-weight: 500;
  opacity: 1;
}

/* =========================================
   CARD FILTERING + RAIL MOTION
   ========================================= */

.portfolio-card {
  position: relative;
  margin: 0;
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(.22,.61,.36,1),
    filter 0.35s cubic-bezier(.22,.61,.36,1);
}

.portfolio-card.is-hidden {
  opacity: 0.15;
  transform: scale(0.985);
  pointer-events: none;
  filter: saturate(0.85);
}

.portfolio-rail__column--left,
.portfolio-rail__column--right {
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
}

.portfolio-rail.is-filter-open .portfolio-rail__column--left {
  transform: translateX(-10px);
}

.portfolio-rail.is-filter-open .portfolio-rail__column--right {
  transform: translateX(10px);
}

/* =========================================
   KEEP EXISTING PORTFOLIO CARD STYLING
   ========================================= */

.portfolio-card__link {
  display: block;
  background: transparent;
}

.portfolio-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f1f1f1;
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}

.portfolio-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.2) 35%,
    rgba(0,0,0,0) 60%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.portfolio-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,0.65) 100%
  );
  pointer-events: none;
  transition: opacity .35s ease;
}

.portfolio-card__overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 32px;
  z-index: 2;
  transition: transform 0.35s ease;
}

.portfolio-card__title {
  margin: 0 0 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

.portfolio-card__caption {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.05);
}

.portfolio-card:hover .portfolio-card__media::before,
.portfolio-card:hover .portfolio-card__media::after {
  opacity: 0.85;
}

.portfolio-card:hover .portfolio-card__overlay {
  transform: translateY(-6px);
}

/* =========================================
   TURN OFF OLD FILTER PANEL/DRAWER STYLES
   ========================================= */

#portfolioFilterTrigger .portfolio-filter-panel,
.portfolio-filter-drawer,
#portfolioFilterDrawer,
#portfolioFilterPanel {
  display: none !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1200px) {
  .portfolio-rail {
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
    gap: 22px;
  }

  .portfolio-rail.is-filter-open {
    grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr);
  }

  #portfolioFilterTrigger {
    width: 76px;
  }

  .portfolio-rail.is-filter-open #portfolioFilterTrigger {
    width: 300px;
  }

  .portfolio-filter-card {
    max-width: 300px;
  }

  .portfolio-filter-option {
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .portfolio-rail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-rail__column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-rail__filter {
    display: none;
  }
}

@media (max-width: 560px) {
  .portfolio-rail__column {
    grid-template-columns: 1fr;

  }
}
