/* --- EDITORIAL DESIGN SYSTEM VARIABLES --- */
:root {
  --black: #050505;
  --white: #ffffff;
  --hairline: rgba(255, 255, 255, 0.08);
  --grey: #a0a0a0;
  --light-grey: rgba(255, 255, 255, 0.6);
  --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- DOCUMENT RESET & BASE STYLE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.lenis {
  height: auto;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- THE AMBIENT OVERLAY & SYSTEM ELEMENTS --- */
canvas#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
}

/* --- EDITORIAL PAGE TRANSITIONS WIPE --- */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0b0b0b;
  z-index: 9999;
  transform: translateY(100%);
  pointer-events: none;
}

/* --- EDITORIAL HAIRLINE FRAME --- */
.frame-line {
  position: fixed;
  background: var(--hairline);
  z-index: 999;
  pointer-events: none;
}
.frame-top {
  top: 30px;
  left: 30px;
  right: 30px;
  height: 1px;
}
.frame-bottom {
  bottom: 30px;
  left: 30px;
  right: 30px;
  height: 1px;
}
.frame-left {
  top: 30px;
  bottom: 30px;
  left: 30px;
  width: 1px;
}
.frame-right {
  top: 30px;
  bottom: 30px;
  right: 30px;
  width: 1px;
}

/* --- THE GLOBAL CONTAINER --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

/* --- GLOBAL LAYOUT HELPERS --- */
.text-center {
  text-align: center;
  justify-content: center;
}

/* --- GLASSMORPHISM NAVIGATION --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 80px;
  position: fixed;
  width: 100%;
  z-index: 1001;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.5s var(--transition),
    background-color 0.5s var(--transition),
    border-color 0.5s var(--transition);
}

nav.scrolled {
  background-color: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  padding: 30px 80px;
}

/* --- LUXURY IMAGE LOGO STYLING --- */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 28px; /* Elegant, calculated height for editorial standards */
    width: auto;  /* Maintains exact proportions */
    display: block;
    transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Match global transition variables */
}

/* Logo smoothly shrinks slightly when page scrolls down */
nav.scrolled .logo img {
    height: 22px; 
}

.nav-links {
  display: flex;
}
.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-left: 40px;
  opacity: 0.4;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* --- SLEEK MOBILE HAMBURGER TRIGGER --- */
.menu-trigger {
  width: 30px;
  height: 12px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}
.menu-trigger .line {
  width: 100%;
  height: 1.5px;
  background-color: var(--white);
  transition: background-color 0.4s;
}

/* --- MOBILE VAPOR-GLASS OVERLAY --- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 11, 11, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--hairline);
  z-index: 1000;
  display: none;
  align-items: center;
  padding: 10% 10% 5% 10%;
}
.mobile-nav-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 50px;
}
.m-link-wrap {
  overflow: hidden;
}
.mobile-links a {
  font-size: clamp(2rem, 8vw, 4rem);
  text-transform: uppercase;
  font-weight: 900;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 20px;
  letter-spacing: -1px;
  line-height: 1;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.mobile-links a.active {
  opacity: 1;
}
.mobile-links a span {
  font-size: clamp(1rem, 4vw, 2rem);
  color: var(--grey);
}

.mobile-nav-footer {
  display: flex;
  gap: 100px;
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
}
.m-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--grey);
  display: block;
  margin-bottom: 10px;
}
.m-footer-item p {
  font-size: 0.85rem;
  font-weight: 300;
}

/* --- VIEWPORT CONTAINER --- */
.showcase-viewport {
  height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}
.showcase-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* --- SLIDES --- */
.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
  padding: 0 10%;
}
.showcase-slide.active {
  opacity: 1;
  visibility: visible;
}

/* --- BACKGROUNDS & OVERLAYS --- */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.1);
}
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.2) 60%,
      rgba(0, 0, 0, 0.8) 100%
    );
  z-index: 2;
}
.slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* --- EDITORIAL TYPOGRAPHY --- */
.serif-italic {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
}
h1 .serif-italic {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  display: block;
  margin-top: 15px;
  letter-spacing: 0;
  color: var(--light-grey);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 30px;
}

.label {
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 25px;
  display: block;
}
.hero-p {
  max-width: 450px;
  margin-bottom: 35px;
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.8;
  font-weight: 300;
}

/* --- BUTTONS & ACTIONS --- */
.btn-primary {
  background: #fff;
  color: #000;
  padding: 18px 35px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 18px 35px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: var(--transition);
  display: inline-block;
}
.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}
.btn-outline:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}
.large {
  font-size: 1rem;
  padding: 25px 50px;
}

.view-link {
  font-size: 0.8rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--white);
  padding-bottom: 5px;
  transition: var(--transition);
  display: inline-block;
  margin-top: 20px;
}
.view-link:hover {
  color: var(--grey);
  border-color: var(--grey);
}

/* --- EDITORIAL GRID LAYOUTS --- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: flex-end;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

/* --- SYSTEM CONTROLS --- */
.showcase-ui {
  position: absolute;
  bottom: 60px;
  left: 80px;
  right: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.slide-arrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  opacity: 0.4;
  transition: var(--transition);
}
.slide-arrow:hover {
  opacity: 1;
}

.ui-center {
  width: 25%;
  display: flex;
  align-items: center;
}
.indicator-bar {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}
.indicator-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 33.3%;
  background: var(--white);
  transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- GLOBAL SECTION SPACING --- */
.section {
  padding: 180px 0;
  border-top: 1px solid var(--hairline);
}

/* --- EDITORIAL VIEWPORTS --- */
.about-viewport,
.services-viewport,
.portfolio-viewport,
.case-study-viewport,
.pricing-viewport,
.contact-viewport {
  padding-top: 0;
}

/* EDITORIAL HEROES */
.about-hero,
.services-hero,
.portfolio-hero,
.case-hero,
.pricing-hero,
.contact-hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.about-hero-grid,
.services-hero-grid,
.portfolio-hero-grid,
.case-hero-grid,
.pricing-hero-grid,
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: 100px;
}
.about-subtitle,
.services-subtitle,
.portfolio-subtitle,
.case-subtitle,
.pricing-subtitle,
.contact-subtitle {
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--grey);
  margin-top: 35px;
  font-weight: 300;
}
.about-hero-image,
.services-hero-image,
.portfolio-hero-image,
.case-hero-image,
.pricing-hero-image,
.contact-hero-image {
  width: 100%;
  height: 55vh;
  background-color: var(--black);
  overflow: hidden;
  border: 1px solid var(--hairline);
  position: relative;
}
.about-hero-image img,
.services-hero-image img,
.portfolio-hero-image img,
.case-hero-image img,
.pricing-hero-image img,
.contact-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}
.about-hero-right:hover .about-hero-image img,
.services-hero-right:hover .services-hero-image img,
.portfolio-hero-right:hover .portfolio-hero-image img,
.case-hero-right:hover .case-hero-image img,
.pricing-hero-right:hover .pricing-hero-image img,
.contact-hero-right:hover .contact-hero-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Back Link for Case Study Detail */
.back-link {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  display: block;
  margin-bottom: 25px;
  font-weight: 700;
  transition: var(--transition);
}
.back-link:hover {
  color: var(--white);
  padding-left: 5px;
}

/* --- THE STRATEGIC FORM SYSTEM --- */
.editorial-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Dynamic Config Alert Banner */
.dynamic-config-alert {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--hairline);
  padding: 30px;
  margin-bottom: 60px;
  display: none;
}
.dynamic-config-alert.alert-active {
  display: block;
}
#alert-summary {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.form-block {
  margin-bottom: 50px;
}
.input-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.input-wrap label,
.block-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 700;
}
.input-wrap input,
.input-wrap textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 15px 0;
  font-size: 1rem;
  color: var(--white);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}
.input-wrap textarea {
  height: 120px;
  resize: none;
}
.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--white);
  padding-left: 10px;
}

/* Custom Checkbox/Radio arrays for forms */
.form-checkbox-group,
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}
.custom-form-checkbox,
.custom-form-radio {
  font-size: 0.95rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  user-select: none;
}
.custom-form-checkbox input,
.custom-form-radio input {
  display: none;
}

/* Checkbox visual */
.box-visual {
  width: 20px;
  height: 20px;
  border: 1px solid var(--hairline);
  display: inline-block;
  position: relative;
  transition: var(--transition);
}
.box-visual::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--white);
  position: absolute;
  top: 4px;
  left: 4px;
  transform: scale(0);
  transition: var(--transition);
}
.custom-form-checkbox input:checked + .box-visual {
  border-color: var(--white);
}
.custom-form-checkbox input:checked + .box-visual::after {
  transform: scale(1);
}

/* Radio Visual */
.radio-visual {
  width: 20px;
  height: 20px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: var(--transition);
}
.radio-visual::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--white);
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  transform: scale(0);
  transition: var(--transition);
}
.custom-form-radio input:checked + .radio-visual {
  border-color: var(--white);
}
.custom-form-radio input:checked + .radio-visual::after {
  transform: scale(1);
}

.form-submit {
  margin-top: 60px;
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
}

/* --- DYNAMIC BILLING TOGGLE --- */
.toggle-section {
  padding: 60px 0;
}
.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
}
.toggle-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.3;
  transition: var(--transition);
  cursor: pointer;
}
.toggle-label.active {
  opacity: 1;
}
.discount-badge {
  color: var(--light-grey);
  margin-left: 10px;
}
.billing-toggle {
  width: 60px;
  height: 30px;
  border-radius: 30px;
  border: 1px solid var(--hairline);
  background-color: rgba(255, 255, 255, 0.01);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.switch-handle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--white);
  position: absolute;
  top: 3px;
  left: 4px;
  transition: var(--transition);
}
.billing-toggle.yearly-active .switch-handle {
  left: 32px;
}

/* --- SUBSCRIPTION BUILDER LIST --- */
.builder-section {
  padding-bottom: 220px;
}
.builder-title {
  font-size: 2.5rem;
  margin: 30px 0 60px 0;
}
.modular-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  border-top: 1px solid var(--hairline);
  padding-top: 60px;
}

/* Package Box Structure (Audit request) */
.pricing-package-card {
  padding: 50px;
  border: 1px solid var(--hairline);
  background-color: rgba(255, 255, 255, 0.01);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.p-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 25px;
  margin-bottom: 30px;
}
.pricing-package-card.checked-row {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: var(--white);
}

.p-card-body h3 {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.p-card-desc {
  font-size: 0.95rem;
  color: var(--grey);
  margin-bottom: 35px;
  line-height: 1.6;
  font-weight: 300;
}

/* Unified Internal Capabilities checklist */
.p-services-list {
  list-style: none;
  border-top: 1px dashed var(--hairline);
  padding-top: 25px;
}
.p-services-list li {
  font-size: 0.85rem;
  color: var(--light-grey);
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}
.p-services-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--white);
}

/* Custom Checkbox structures inside card */
.row-checkbox {
  width: 24px;
  height: 24px;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.box-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--white);
  transform: scale(0);
  transition: var(--transition);
}

/* Checked card checkboxes high-contrast trigger */
.pricing-package-card.checked-row .row-checkbox {
  border-color: var(--white);
}
.pricing-package-card.checked-row .box-indicator {
  transform: scale(1);
}

.row-price {
  text-align: right;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1px;
}
.row-price .mo {
  font-size: 0.95rem;
  color: var(--grey);
  font-weight: 300;
}

/* --- THE STICKY CALCULATION BAR --- */
.calculation-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--hairline);
  z-index: 990;
  padding: 40px 0;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.calculation-bar.calc-visible {
  transform: translateY(0%);
}

.calc-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-meta h3 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 5px;
  text-transform: uppercase;
}
.calc-checkout {
  display: flex;
  align-items: center;
  gap: 40px;
}
.calc-price-display {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}
.calc-price-display .mo {
  font-size: 1rem;
  color: var(--grey);
  font-weight: 300;
}

/* --- CASE STUDY EXCLUSIVE CLASSES --- */
.case-meta-section {
  padding: 80px 0;
}
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.meta-box {
  border-left: 1px solid var(--hairline);
  padding-left: 25px;
}
.meta-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--grey);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}
.meta-box p {
  font-size: 0.95rem;
  font-weight: 300;
}

/* Narrative Grid */
.case-narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.narrative-left h3 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 20px;
}
.large-narrative {
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 35px;
  color: var(--white);
}
.sub-narrative {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey);
  font-weight: 300;
}

/* Asymmetric Case Study Gallery Grid */
.case-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}
.gallery-item {
  width: 100%;
  transition: var(--transition);
}
.gallery-item.full-width {
  grid-column: span 2;
}
.gallery-item.tall-frame .gallery-frame {
  aspect-ratio: 4/5;
}
.gallery-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background-color: var(--black);
}
.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}
.gallery-item:hover .gallery-frame img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* --- THE UNIFORM PORTFOLIO GRID --- */
.exhibition-section {
  padding-bottom: 180px;
}
.exhibition-grid {
  display: grid;
  gap: 80px 40px;
  transition: grid-template-columns 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.exhibition-grid.grid-2-col {
  grid-template-columns: repeat(2, 1fr);
}
.exhibition-grid.grid-3-col {
  grid-template-columns: repeat(3, 1fr);
}

/* --- REDESIGNED FILTER & LAYOUT SWITCHER SYSTEM (With Safe side padding) --- */
.filter-container-row {
    display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 80px;

  /* Safely apply top/bottom padding to preserve left/right container boundaries */
  padding-top: 30px;
  padding-bottom: 30px;
}
.filter-wrapper {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}

.filter-btn,
.view-btn {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  color: var(--grey);
  padding: 12px 24px;
  border: 1px solid var(--hairline);
  transition: var(--transition);
  user-select: none;
}
.filter-btn:hover,
.view-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active,
.view-btn.active {
  background-color: var(--white);
  color: var(--black);
  border-color: var(--white);
  font-weight: 900;
}

.grid-layout-switcher {
  display: flex;
  gap: 20px;
}

/* Make link wrappers act like grid containers cleanly */
a.ex-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  transition: var(--transition);
}

/* Strict uniform aspect ratios for all cards */
.ex-image {
  width: 100%;
  aspect-ratio: 16/11;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background-color: var(--black);
  margin-bottom: 25px;
}
.ex-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}
a.ex-card:hover .ex-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.ex-meta {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.ex-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--grey);
  line-height: 1;
}
.ex-title-wrap h3 {
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 5px;
  line-height: 1.2;
}
.ex-title-wrap p {
  font-size: 0.85rem;
  color: var(--grey);
}

/* --- THE CTA SECTION CENTERING RULES --- */
.final-portfolio-cta h2,
.final-case-cta h2,
.final-about-cta h2,
.final-services-cta h2 {
  text-align: center;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--grey);
  margin: 0 auto 40px auto; /* Centered with auto margins */
  max-width: 500px; /* Limits scale to prevent wrapping stretch */
  text-align: center;
  font-weight: 300;
}
.portfolio-cta-btns,
.case-cta-btns,
.about-cta-btns,
.services-cta-btns {
  display: flex;
  justify-content: center;
  gap: 25px;
}

/* --- ASYMMETRICAL SERVICES CHAPTER GRIDS --- */
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: start;
}
.chapter-grid.reverse {
  grid-template-columns: 1.2fr 1fr;
}
.chapter-visual.sticky-col {
  position: sticky;
  top: 15vh;
  align-self: start;
}
.chapter-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background-color: var(--black);
}
.chapter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}
.chapter-visual:hover .chapter-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.num-label {
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: var(--grey);
  display: block;
  margin-bottom: 20px;
  font-weight: 700;
}
.chapter-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--grey);
  margin: 30px 0 45px 0;
  font-weight: 300;
}

/* Deliverables stacked lists inside chapters */
.deliverables-stack {
  border-top: 1px solid var(--hairline);
}
.deliv-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
  transition: var(--transition);
}
.deliv-item strong {
  font-size: 1.15rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}
.deliv-item p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.7;
  font-weight: 300;
}
.deliv-item:hover {
  padding-left: 20px;
  background-color: rgba(255, 255, 255, 0.01);
}

/* Subscription workflow loop styling with Offset cards */
.loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin-top: 80px;
  align-items: start;
}
.loop-card {
  padding: 50px 40px;
  border: 1px solid var(--hairline);
  background-color: rgba(255, 255, 255, 0.01);
  position: relative;
  transition: var(--transition);
}
.loop-card.offset-card {
  transform: translateY(40px);
}
.loop-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}
.loop-step {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 3.5rem;
  color: var(--grey);
  opacity: 0.15;
  position: absolute;
  top: 25px;
  right: 35px;
}
.loop-card h4 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.loop-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--grey);
  font-weight: 300;
}

/* Creative Asymmetric DNA Layout */
.asymmetric-dna-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.dna-blocks {
  border-left: 1px solid var(--hairline);
  padding-left: 50px;
}
.purpose-block {
  margin-bottom: 80px;
}
.purpose-block:last-child {
  margin-bottom: 0;
}
.small-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--grey);
  display: block;
  margin-bottom: 15px;
  font-weight: 700;
}
.purpose-block p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

/* --- LEADERSHIP EDITORIAL SECTION --- */
.leadership-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}
.leader-intro {
  max-width: 450px;
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.7;
  font-weight: 300;
}
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: start;
}
.leader-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
}
.leader-card.offset-down {
  transform: translateY(40px);
}
.leader-image {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: var(--black);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 25px;
}
.leader-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition);
}
.leader-card:hover .leader-image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.leader-info h4 {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.leader-info p {
  font-size: 0.8rem;
  color: var(--grey);
}

/* Values Grid Structure */
.values-list {
  margin-top: 50px;
}
.value-row {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 3fr;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
  transition: var(--transition);
}
.value-row:hover {
  padding-left: 20px;
  background-color: rgba(255, 255, 255, 0.01);
}
.v-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--grey);
}
.v-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.v-desc {
  font-size: 0.95rem;
  color: var(--grey);
  font-weight: 300;
}

/* Stats Counter Grid */
.stats-section {
  padding: 100px 0;
}
.stats-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-box h3 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 15px;
}
.stat-box p {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
}

/* about page CTA */
.final-about-cta h2,
.final-services-cta h2,
.final-portfolio-cta h2,
.final-case-cta h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 50px;
  text-align: center;
}
.about-cta-btns,
.services-cta-btns,
.portfolio-cta-btns,
.case-cta-btns {
  display: flex;
  justify-content: center;
  gap: 25px;
}

/* --- FOOTER --- */
footer {
  padding: 60px 0;
  opacity: 0.4;
  font-size: 0.7rem;
  border-top: 1px solid var(--hairline);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .editorial-grid,
  .about-hero-grid,
  .services-hero-grid,
  .portfolio-hero-grid,
  .case-hero-grid,
  .pricing-hero-grid,
  .contact-hero-grid,
  .asymmetric-dna-grid,
  .case-narrative-grid,
  .chapter-grid,
  .chapter-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .chapter-visual.sticky-col {
    position: relative;
    top: 0;
  }
  .dna-blocks {
    border-left: none;
    padding-left: 0;
  }
  .about-hero-image,
  .services-hero-image,
  .portfolio-hero-image,
  .case-hero-image,
  .pricing-hero-image,
  .contact-hero-image {
    max-width: 500px;
    height: 40vh;
    margin: 0 auto;
  }
  .container {
    padding: 0 40px;
  }
  nav {
    padding: 40px 40px;
  }
  nav.scrolled {
    padding: 25px 40px;
  }
  .nav-links {
    display: none;
  }
  .menu-trigger {
    display: flex;
  }
  .showcase-ui {
    left: 40px;
    right: 40px;
  }
  .slide {
    padding: 0 5%;
  }
  .leaders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .leader-card.offset-down,
  .loop-card.offset-card {
    transform: translateY(0);
  }
  .ex-card.small-card {
    width: 100%;
  }
  .exhibition-grid {
    grid-template-columns: 1fr;
    gap: 50px 0;
  }

  /* Responsive fallbacks for filter sections */
  .filter-container-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .filter-wrapper {
    flex-wrap: wrap; /* Allows pills to wrap beautifully on tablets */
  }
  .grid-layout-switcher {
    display: none; /* Hide layout columns toggles on tablet/mobile */
  }

  .exhibition-grid.grid-3-col {
    grid-template-columns: 1fr;
  }
  .modular-builder-grid {
    grid-template-columns: 1fr;
  }
  .case-meta-grid,
  .stats-editorial {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.full-width {
    grid-column: span 1;
  }
  .builder-row {
    grid-template-columns: 0.5fr 2.5fr 1fr;
  }
  .calc-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .calc-checkout {
    width: 100%;
    justify-content: space-between;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .grid-2,
  .leadership-header,
  .value-row,
  .loop-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
  }
  .about-hero,
  .services-hero,
  .portfolio-hero,
  .case-hero,
  .pricing-hero,
  .contact-hero {
    height: auto;
    padding: 120px 0 50px 0;
  }
}

@media (max-width: 768px) {
  .leaders-grid {
    grid-template-columns: 1fr;
  }
  .case-meta-grid,
  .stats-editorial {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .calc-checkout {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .mobile-nav-footer {
    flex-direction: column;
    gap: 20px;
  }
}
