/* ==========================================================================
   PERCONS · KLK GROUP | ARCHITECTURAL ATELIER
   Wix Futuristic Architecture Template Layout & Visual System
   Pure Rectilinear Architectural Lines · No Corner-Bended Cards
   ========================================================================== */

:root {
  /* Core Color Palette matching Wix Template tokens */
  --bg-canvas: #F6F5F2;           /* Warm limestone / alabaster canvas */
  --bg-surface: #FFFFFF;          /* Pure white card backgrounds */
  --bg-surface-warm: #EFECE6;     /* Subtle warm fill */
  --bg-dark-cinema: #0F0E0D;      /* Deep obsidian architectural backdrop */
  
  --text-main: #595148;           /* Wix signature bronze-charcoal body */
  --text-heading: #1C1917;        /* Pitch stone black for primary headlines */
  --text-muted: #74685C;          /* Muted editorial taupe */
  --text-subtle: #948B7F;         /* Subtle kicker & metadata tone */
  --text-light: #F6F5F2;          /* Inverted light text for dark sections */
  
  --border-light: #E6E5E1;        /* Refined hairline border */
  --border-medium: #D1CEC7;       /* Card & input outline */
  --border-strong: #595148;       /* Primary button & interactive outline */
  
  --accent-warm: #E3DBC7;         /* Architectural sand highlight */
  --accent-terra: #C2704E;        /* Subtle warm terracotta accent */
  
  /* Typography: EXACT GEOMETRIC SANS MATCHING PERCONS LOGO */
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii & Geometry: STRICTLY ZERO BENT CORNERS FOR CARDS */
  --radius-card: 0px;             /* Crisp rectilinear architectural lines */
  --radius-pill: 9999px;          /* Minimalist pill buttons only */
  
  /* Shadows & Elevations */
  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 24px 70px rgba(0, 0, 0, 0.22);
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

#manifesto,
#disciplines,
#portfolio,
#contact {
  scroll-margin-top: 84px;
}

@media (max-width: 768px) {
  #manifesto,
  #disciplines,
  #portfolio,
  #contact {
    scroll-margin-top: 68px;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   MINIMAL ARCHITECTURAL PRELOADER / LOADING SCREEN
   ========================================================================== */
body.preloader-active {
  overflow: hidden !important;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #F6F5F2;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s ease;
  pointer-events: all;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 480px;
  width: 90%;
  animation: preloaderInnerFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes preloaderInnerFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.preloader-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
}

.preloader-logo {
  object-fit: contain;
  display: block;
}

.preloader-logo-klk {
  height: clamp(38px, 5.2vw, 50px);
  width: auto;
  max-width: 150px;
}

.preloader-logo-percons {
  height: clamp(26px, 3.6vw, 34px);
  width: auto;
  max-width: 165px;
}

.preloader-divider {
  color: rgba(89, 81, 72, 0.35);
  font-size: 1.4rem;
  font-weight: 300;
  user-select: none;
  line-height: 1;
}

.preloader-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 1.8vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #74685C;
  text-transform: uppercase;
  user-select: none;
}

.preloader-counter-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-sans);
  margin-bottom: 1.25rem;
}

#preloader-num {
  font-size: clamp(2.8rem, 6vw, 3.6rem);
  font-weight: 300;
  color: #1C1917;
  letter-spacing: -0.02em;
  min-width: 2.2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.counter-unit {
  font-size: 1.25rem;
  font-weight: 500;
  color: #A87932;
  margin-left: 4px;
}

.preloader-bar-track {
  width: 220px;
  max-width: 80vw;
  height: 2px;
  background: rgba(89, 81, 72, 0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #A87932, #C5A059);
  border-radius: 2px;
  transition: width 0.08s linear;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

.ratio-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

/* ==========================================================================
   BUTTONS & INTERACTIVE PILLS (SIGNATURE WIX DESIGN)
   ========================================================================== */

.ratio-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--bg-surface);
  color: var(--text-heading);
  border: 1px solid var(--text-heading);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.65rem 0.55rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--trans-normal);
  cursor: pointer;
  text-decoration: none;
}

.ratio-btn-pill:hover {
  background-color: var(--text-heading);
  color: var(--bg-canvas);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.15);
}

.btn-icon-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--text-heading);
  color: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform var(--trans-normal), background-color var(--trans-normal), color var(--trans-normal);
}

.ratio-btn-pill:hover .btn-icon-bubble {
  background-color: var(--bg-canvas);
  color: var(--text-heading);
  transform: rotate(45deg);
}

.bottom-prev-btn:hover .btn-icon-bubble,
.bottom-next-btn:hover .btn-icon-bubble {
  transform: none;
}

.diagonal-arrow {
  display: inline-block;
  vertical-align: middle;
}

.ratio-btn-minimal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-heading);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.15rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  transition: all var(--trans-fast);
}

.ratio-btn-minimal:hover {
  background-color: var(--text-heading);
  color: var(--bg-canvas);
  border-color: var(--text-heading);
}

.ratio-btn-minimal:hover svg {
  transform: translate(2px, -2px);
}

.ratio-btn-minimal svg {
  transition: transform var(--trans-fast);
}

/* ==========================================================================
   1. FLOATING BRAND & NAVIGATION BAR
   (Left Top End: KLK Group · Center: Nav · Right Top End: PERCONS)
   ========================================================================== */

.ratio-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent !important;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.ratio-header.header-scrolled {
  position: fixed;
  background-color: rgba(247, 247, 246, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.ratio-header-container {
  width: 100%;
  max-width: 100%;
  height: 84px;
  padding: 0 clamp(1.5rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Floating Brand Logo Anchors Inside Hero Image */
.brand-float-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.brand-float-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.brand-float-logo {
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.65)) drop-shadow(0 3px 12px rgba(0, 0, 0, 0.8));
  transition: filter 0.3s ease, transform 0.25s ease, opacity 0.25s ease;
}

.header-scrolled .brand-float-logo {
  filter: none;
}

/* Left Top End: KLK Group Logo */
.brand-float-logo.logo-klk {
  height: clamp(38px, 4.2vw, 50px);
  width: auto;
  max-width: 140px;
}

/* Right Top End: PERCONS Logo */
.brand-float-logo.logo-percons {
  height: clamp(26px, 2.8vw, 34px);
  width: auto;
  max-width: 160px;
}

.brand-right-cluster {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ratio-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.ratio-nav-link {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  position: relative;
  padding: 0.35rem 0;
  letter-spacing: 0.03em;
  transition: color var(--trans-fast), text-shadow var(--trans-fast);
}

.ratio-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #F6B81C;
  transition: width var(--trans-normal);
}

.ratio-nav-link:hover {
  color: #F6B81C;
}

.ratio-nav-link:hover::after {
  width: 100%;
}

.header-scrolled .ratio-nav-link {
  color: #121212;
  text-shadow: none;
}

.header-scrolled .ratio-nav-link:hover {
  color: #8c6d3b;
}

.header-scrolled .ratio-nav-link::after {
  background-color: #121212;
}

.ratio-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ratio-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
}

.ratio-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #FFFFFF;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
  border-radius: 2px;
  transition: transform var(--trans-normal), background-color 0.3s ease;
}

.header-scrolled .ratio-menu-toggle span {
  background-color: #121212;
  box-shadow: none;
}

/* Mobile Slide Drawer */
.ratio-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: var(--bg-canvas);
  border-left: 1px solid var(--border-light);
  z-index: 2000;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--trans-normal);
  box-shadow: var(--shadow-modal);
}

.ratio-mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-logo-img {
  height: 26px;
  object-fit: contain;
}

.drawer-close-btn {
  font-size: 1.35rem;
  color: var(--text-heading);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.drawer-link {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-heading);
}

.drawer-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================
   2. HERO SECTION — ARCHITECTING TOMORROW'S VISTAS
   (Expansive Cinematic Canvas · Minimal Striking Typography)
   ========================================== */

.ratio-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  max-height: 1080px;
  padding: 0;
  overflow: hidden;
  background-color: #F7F7F6;
}

.hero-stage-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-visual-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-main-image,
.hero-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* 100% Native High Resolution Rendering — No blur or downscaling */
  image-rendering: auto;
  transform: none !important;
  filter: none !important;
}

.hero-visual-scrim {
  display: none !important;
}

.hero-content-inner {
  position: absolute;
  bottom: clamp(2.5rem, 5.5vh, 4.5rem);
  right: clamp(1.5rem, 4vw, 4.5rem);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-action-block {
  flex-shrink: 0;
}

.hero-minimal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.35rem 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #121212;
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #121212;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta-arrow svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-minimal-cta:hover {
  background: #F6B81C;
  color: #121212;
  border-color: #F6B81C;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(246, 184, 28, 0.4);
}

.hero-minimal-cta:hover .hero-cta-arrow {
  background: #121212;
  color: #FFFFFF;
}

.hero-minimal-cta:hover .hero-cta-arrow svg {
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  .hero-content-inner {
    left: 0;
    right: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    bottom: calc(clamp(3rem, 7.5vh, 4.5rem) + env(safe-area-inset-bottom, 0px));
  }

  .hero-action-block {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* ==========================================
   3. EDITORIAL MANIFESTO — BREAKING PHYSICAL BOUNDARIES
   (NO CORNER BENDED CARDS · SHARP CLEAN EDGES)
   ========================================== */

.ratio-vision-section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-light);
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}

.vision-copy-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.vision-lead-text {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.8;
  font-weight: 300;
  color: var(--text-main);
  margin-bottom: 0;
}

.highlight-text {
  color: var(--text-heading);
  font-weight: 600;
}

/* Right Column: Split-Curtain Sliding Reveal (carousel_1 & carousel_2) */
.vision-media-single {
  position: relative;
  width: 100%;
}

.manifesto-curtain-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 682;
  overflow: hidden;
  background-color: #1F1D1B;
  border: 1px solid var(--border-light);
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  user-select: none;
  cursor: ew-resize;
}

.curtain-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.curtain-layer.curtain-base {
  z-index: 1;
}

.curtain-layer.curtain-reveal {
  z-index: 2;
  will-change: clip-path;
  clip-path: inset(0 0 0 100%);
  -webkit-clip-path: inset(0 0 0 100%);
}

.curtain-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curtain-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 4;
  pointer-events: none;
  transform: translateX(-50%);
  will-change: left, opacity;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ==========================================
   4. ARCHITECTURAL STATEMENT & QUOTE SECTION
   ========================================== */

.ratio-quote-section {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #FFFFFF;
}

.quote-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.quote-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.quote-backdrop-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 16, 0.78);
  backdrop-filter: blur(2px);
}

.quote-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: clamp(3.5rem, 6vw, 4.8rem);
  padding-bottom: clamp(3.5rem, 6vw, 4.8rem);
}

.quote-content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-statement {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #FAF9F6;
  margin-bottom: 1.75rem;
}

.quote-author-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quote-author-name {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

/* ==========================================
   5. OUR DISCIPLINES / CORE DISCIPLINES
   (FLOATING ITEMS · NO CARDS · BACKGROUND #595148 · COMPACT SPACE)
   ========================================== */

.ratio-services-section {
  padding: clamp(2rem, 3.2vw, 2.8rem) 0;
  background-color: #595148;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.services-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3.8vw, 3.5rem);
}

/* Floating Item - Zero Card Wrapper, Content Floats over Website */
.service-spec-item,
.service-spec-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.35s ease;
}

.service-spec-item:hover,
.service-spec-card:hover {
  transform: translateY(-3px);
  border: none !important;
  box-shadow: none !important;
}

.service-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.service-description {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #D6D1CA;
  font-weight: 300;
  margin: 0;
}

@media (max-width: 960px) {
  .ratio-services-section {
    padding: 2.2rem 0;
  }
  .services-columns-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* ==========================================
   6. SELECTED WORKS / PORTFOLIO SHOWCASE
   (RECTILINEAR ARCHITECTURAL CARDS · SHARP STRAIGHT CORNERS)
   ========================================== */

.ratio-portfolio-section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-light);
}

.portfolio-container-wide {
  max-width: 1560px;
}

.portfolio-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.portfolio-main-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-heading);
}

.portfolio-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ratio-tab-btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  transition: all var(--trans-fast);
}

.ratio-tab-btn:hover {
  border-color: var(--text-heading);
  color: var(--text-heading);
}

.ratio-tab-btn.active {
  background-color: var(--text-heading);
  color: var(--bg-canvas);
  border-color: var(--text-heading);
}

/* ==========================================
   PORTFOLIO 2-COLUMN GRID (MATCHING IMAGE 1)
   Large Images · Zero Rounded Corners · Title Left & 01/02 Right
   ========================================== */
/* ==========================================
   PORTFOLIO SHOWCASE: EDITORIAL MONOGRAPH CARDS
   (Exact Match to User Reference media_1789285799717.png)
   ========================================== */
.portfolio-grid-2col {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  width: 100%;
}

.portfolio-card-styled {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #e2e4e8;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}

.portfolio-card-styled:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
  border-color: #c9cdd4;
}

/* Alternating Architectural Rhythm matching media_1789285799717.png */
.portfolio-card-styled:nth-child(8n + 1) {
  grid-column: span 8;
}
.portfolio-card-styled:nth-child(8n + 2) {
  grid-column: span 4;
}
.portfolio-card-styled:nth-child(8n + 3) {
  grid-column: span 4;
}
.portfolio-card-styled:nth-child(8n + 4) {
  grid-column: span 8;
}
.portfolio-card-styled:nth-child(8n + 5) {
  grid-column: span 6;
}
.portfolio-card-styled:nth-child(8n + 6) {
  grid-column: span 6;
}
.portfolio-card-styled:nth-child(8n + 7) {
  grid-column: span 8;
}
.portfolio-card-styled:nth-child(8n + 8) {
  grid-column: span 4;
}
.portfolio-card-styled:nth-child(8n + 9),
.portfolio-card-styled:nth-child(8n + 10) {
  grid-column: span 6;
}

/* Card Media Container */
.card-media-box {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  background-color: #1a1918;
}

.portfolio-card-styled:nth-child(8n + 5) .card-media-box,
.portfolio-card-styled:nth-child(8n + 6) .card-media-box,
.portfolio-card-styled:nth-child(8n + 9) .card-media-box,
.portfolio-card-styled:nth-child(8n + 10) .card-media-box {
  height: 390px;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-photo-primary {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

.card-photo-hover {
  opacity: 0;
  z-index: 2;
  transform: scale(1.04);
}

.portfolio-card-styled:hover .card-photo-primary {
  opacity: 0;
  transform: scale(0.97);
}

.portfolio-card-styled:hover .card-photo-hover {
  opacity: 1;
  transform: scale(1.01);
}

/* Bottom Information Panel */
.card-details-box {
  background-color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-heading-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-project-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.portfolio-card-styled:hover .card-project-title {
  color: #8c6d3b;
}

.card-location {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: #666666;
  letter-spacing: 0.01em;
}

/* Stylish Effect Arrow Mark */
.card-explore-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.explore-arrow-svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-styled:hover .card-explore-arrow {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
  transform: scale(1.08);
}

.portfolio-card-styled:hover .explore-arrow-svg {
  transform: translate(2px, -2px);
}

@media (max-width: 960px) {
  .portfolio-card-styled:nth-child(n) {
    grid-column: span 12 !important;
  }
  .card-media-box,
  .portfolio-card-styled:nth-child(n) .card-media-box {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .card-media-box,
  .portfolio-card-styled:nth-child(n) .card-media-box {
    height: 240px;
  }
  .card-details-box {
    padding: 16px 18px 16px;
  }
  .card-project-title {
    font-size: 1.1rem;
  }
}

/* ==========================================
   7. ARCHITECTURAL HORIZON WITH TRANSLUCENT BLUR FOOTER
   (Content rises up on image with frosted translucent blur effect)
   ========================================== */

#main-content {
  position: relative;
  z-index: 2;
  background-color: var(--bg-canvas);
  margin-bottom: 0;
  box-shadow: none;
}

.footer-horizon-wrapper {
  position: relative;
  width: 100%;
  min-height: clamp(660px, 85vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #1a1918;
}

.footer-horizon-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.footer-horizon-photo {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.footer-horizon-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.02) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(250, 249, 246, 0.15) 100%);
  pointer-events: none;
}

/* Translucent Frosted Glass Panel rising up on the image */
.footer-translucent-glass {
  position: relative;
  z-index: 5;
  width: 100%;
  background: rgba(250, 249, 246, 0.48);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.12);
  padding: clamp(4.2rem, 6.5vw, 5.8rem) 0 clamp(2.5rem, 3.8vw, 3.2rem);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.footer-minimal-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
}

.footer-minimal-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
}

.footer-minimal-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #111111;
  text-transform: uppercase;
  margin: 0 0 0.15rem 0;
}

.footer-minimal-loc {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #222222;
  margin: 0;
  font-weight: 500;
}

.footer-minimal-email {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--trans-fast);
}

.footer-minimal-email:hover {
  color: #8c6d3b;
}

.footer-email-arrow {
  display: none;
}

.footer-minimal-aside {
  display: flex;
  align-items: flex-end;
}

.footer-minimal-est {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #333333;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Subtle Architectural Attribution Watermark */
.footer-watermark-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: clamp(2rem, 3.2vw, 2.8rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.footer-watermark {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.38);
  text-align: center;
  margin: 0;
  user-select: none;
  transition: color 0.3s ease;
}

.footer-watermark:hover {
  color: rgba(18, 18, 18, 0.75);
}

/* ==========================================================================
   10. STANDALONE PROJECT PAGE STYLES (PROJECT.HTML)
   PLACING OF INSIDE IMAGES EXACTLY LIKE REFERRED WIX SITE
   ========================================================================== */

.project-page-view {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  min-height: 100vh;
}

.project-page-view .ratio-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background-color: rgba(247, 247, 246, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--border-light) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03) !important;
  z-index: 1000 !important;
}

/* Black Navigation Links on View Details Page */
.project-page-view .ratio-nav-link {
  color: #111111 !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}

.project-page-view .ratio-nav-link:hover {
  color: #8c6d3b !important;
}

.project-page-view .ratio-nav-link::after {
  background-color: #111111 !important;
}

/* Crisp Native Brand Logos with zero drop-shadow on View Details */
.project-page-view .brand-float-logo {
  filter: none !important;
}

.project-page-view .ratio-menu-toggle span {
  background-color: #111111 !important;
  box-shadow: none !important;
}

/* Close Button on View Details Page (ONLY VISIBLE ON MOBILE) */
.project-close-btn {
  display: none !important;
}

/* Top Project Navigation Toolbar */
.project-top-nav-bar {
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-canvas);
  padding: 1.5rem 0;
}

.project-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-heading);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-surface);
  transition: all var(--trans-fast);
}

.back-link-pill:hover {
  background-color: var(--text-heading);
  color: var(--bg-canvas);
  border-color: var(--text-heading);
}

.back-link-pill svg {
  transition: transform var(--trans-fast);
}

.back-link-pill:hover svg {
  transform: translateX(-3px);
}

.project-nav-pagination {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-pag-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-main);
  text-transform: uppercase;
  transition: color var(--trans-fast);
}

.nav-pag-btn:hover {
  color: var(--text-heading);
}

.pag-sep {
  color: var(--border-medium);
}

/* ==========================================================================
   EDITORIAL PROJECT MONOGRAPH (MATCHING USER REFERENCE IMAGE)
   - Centered Title & Narrative Description
   - Full-Width Expansive Hero
   - 2-Column Side-by-Side (Duo) Photos
   - Minimalist Bottom Navigation (< Previous: Name | Next: Name >)
   ========================================================================== */

.project-editorial-main {
  background-color: var(--bg-canvas);
  min-height: calc(100vh - 72px);
}


/* Centered Title & Narrative with Proper Editorial Spacing */
.project-centered-intro {
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 4vw, 4rem);
  text-align: center;
}

.intro-inner-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.editorial-project-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #121212;
  margin: 0 0 clamp(1.4rem, 2.5vw, 2rem) 0; /* Proper comfortable spacing below building name */
}

.editorial-project-desc {
  max-width: 720px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.75;
  color: #555555;
  text-align: center;
  margin: 0 auto clamp(1.2rem, 2vw, 1.6rem) auto;
}

.editorial-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0;
}

/* ==========================================================================
   EDITORIAL PHOTO STREAM
   1. Full-Width Expansive Hero
   2. 2-Column Side-by-Side (Duo) Photos
   ========================================================================== */

.project-editorial-stream-section {
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.editorial-stream-container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

/* Full-Width Expansive Hero Frame */
.editorial-slot-full {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1F1D1B;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid var(--border-light);
}

.editorial-slot-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.75s var(--ease-spring), filter 0.35s ease;
}

.editorial-slot-full:hover img {
  transform: scale(1.015);
  filter: brightness(1.02);
}

/* 2-Column Side-by-Side (Duo) Frame Grid */
.editorial-slot-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  width: 100%;
}

.editorial-duo-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #1F1D1B;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid var(--border-light);
}

.editorial-duo-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.75s var(--ease-spring), filter 0.35s ease;
}

.editorial-duo-frame:hover img {
  transform: scale(1.025);
  filter: brightness(1.02);
}

/* Photo Expand Cue */
.editorial-slot-full .photo-expand-cue,
.editorial-duo-frame .photo-expand-cue {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background-color: rgba(28, 25, 23, 0.85);
  color: #FFFFFF;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.editorial-slot-full:hover .photo-expand-cue,
.editorial-duo-frame:hover .photo-expand-cue {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MINIMAL BOTTOM PAGINATION (EXACT MATCH TO USER REFERENCE)
   < Previous: Project Title                  Next: Project Title >
   ========================================================================== */

.editorial-bottom-nav {
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-canvas);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
}

.project-page-footer {
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-canvas);
  padding: clamp(2.8rem, 4.2vw, 3.8rem) 0;
}

.editorial-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.editorial-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: #5A4D34;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}

.editorial-nav-link:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}

.editorial-nav-link .nav-symbol {
  font-size: 1.15rem;
  line-height: 1;
  color: #5A4D34;
}

.editorial-nav-link .nav-label {
  color: #7B705F;
  font-weight: 400;
}

.editorial-nav-link .nav-target-title {
  font-weight: 500;
  color: #5A4D34;
}

/* Fullscreen High-Res Lightbox */
.fullscreen-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-normal);
}

.fullscreen-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 8, 8, 0.95);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
  color: #FFFFFF;
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-viewport {
  position: relative;
  z-index: 5;
  max-width: 92vw;
  max-height: 88vh;
}

.lightbox-viewport img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0;
}

.lightbox-toolbar {
  position: absolute;
  bottom: 2.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(28, 25, 23, 0.85);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
}

.lightbox-nav-btn {
  font-size: 1.5rem;
  color: #FFFFFF;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}



/* ==========================================
   RESPONSIVE BREAKPOINTS (DESKTOP / TABLET / MOBILE)
   ========================================== */

@media (max-width: 1024px) {
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .services-columns-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .editorial-stream-container {
    padding: 0 1.5rem;
  }
}

/* ==========================================
   PERFECT MOBILE EXPERIENCE (<= 768px)
   Fluid alignment, comfortable typography, and smooth touch scrolling
   ========================================== */

@media (max-width: 768px) {
  /* Container Breathing Room */
  .ratio-container {
    padding-left: clamp(1rem, 3.5vw, 1.5rem);
    padding-right: clamp(1rem, 3.5vw, 1.5rem);
  }

  /* 1. Header & Navigation - Symmetrical 3-Zone Mobile Layout */
  .ratio-header-container {
    position: relative;
    height: 68px;
    padding: 0 clamp(1rem, 3.5vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-left {
    position: relative;
    z-index: 2;
  }

  .brand-float-logo.logo-klk {
    height: 34px;
    max-width: 105px;
  }

  /* Centered PERCONS logo across mobile screen */
  .brand-right,
  .brand-center-percons {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .brand-float-logo.logo-percons {
    height: 22px;
    max-width: 110px;
  }

  .brand-right-cluster {
    position: static !important;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
  }

  .ratio-nav {
    display: none !important;
  }
  
  /* Circular tactile hamburger toggle on right edge */
  .ratio-menu-toggle {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .ratio-menu-toggle span {
    display: block;
    height: 2px;
    width: 18px;
    background-color: #FFFFFF;
    box-shadow: none;
    border-radius: 2px;
    transition: transform var(--trans-normal), background-color 0.3s ease;
  }

  .header-scrolled .ratio-menu-toggle {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  .header-scrolled .ratio-menu-toggle span {
    background-color: #121212;
  }

  .project-page-view .ratio-menu-toggle span {
    background-color: #121212;
  }

  /* Mobile Slide Drawer */
  .ratio-mobile-drawer {
    width: 88vw;
    max-width: 320px;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .drawer-link {
    font-size: 1.2rem;
    padding: 0.65rem 0;
  }

  .drawer-logo-img {
    height: 26px;
  }

  /* 2. Hero Section */
  .ratio-hero-section {
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    height: 100svh;
    min-height: 480px;
    max-height: 100svh;
  }

  .hero-content-inner {
    position: absolute;
    bottom: calc(clamp(3.5rem, 8.5vh, 5.5rem) + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 0 1.25rem;
    pointer-events: none;
  }

  .hero-action-block {
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: auto;
  }

  .hero-minimal-cta {
    padding: 0.75rem 1.45rem 0.75rem 1.65rem;
    font-size: 0.88rem;
    gap: 0.75rem;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  }

  .hero-cta-arrow {
    width: 28px;
    height: 28px;
  }

  /* 3. About / Editorial Manifesto Section */
  .ratio-vision-section {
    padding: 3.5rem 0;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vision-lead-text {
    font-size: clamp(1rem, 2.8vw, 1.1rem);
    line-height: 1.75;
    text-align: left;
  }

  .manifesto-curtain-box {
    aspect-ratio: 16 / 10;
    touch-action: pan-y;
  }

  /* 4. Disciplines Quote Section */
  .ratio-quote-section {
    min-height: 360px;
  }

  .quote-container {
    padding: 3.5rem 0;
  }

  .quote-statement {
    font-size: clamp(1.18rem, 4.2vw, 1.4rem);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
  }

  .quote-author-name {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  /* 5. Disciplines 3-Pillar Section */
  .ratio-services-section {
    padding: 2.5rem 0;
  }

  .services-columns-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-heading {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
  }

  .service-description {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #D6D1CA;
  }

  /* 6. Selected Works / Portfolio Showcase */
  .ratio-portfolio-section {
    padding: 3.5rem 0;
  }

  .portfolio-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .portfolio-main-title {
    font-size: clamp(2rem, 6vw, 2.35rem);
  }

  .portfolio-filter-tabs {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .portfolio-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .ratio-tab-btn {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0.45rem 1.15rem;
    flex-shrink: 0;
  }

  /* Mobile 1-Column Portfolio Cards - Perfect Full Width & Proportions */
  .portfolio-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
    width: 100%;
  }

  .portfolio-card-styled,
  .portfolio-card-styled:nth-child(n) {
    grid-column: 1 / -1 !important;
    width: 100%;
  }

  .card-media-box,
  .portfolio-card-styled:nth-child(n) .card-media-box {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }

  .card-details-box {
    padding: 1rem 1.15rem;
  }

  .card-project-title {
    font-size: 1.08rem;
  }

  .card-location {
    font-size: 0.78rem;
  }

  .card-explore-arrow {
    width: 34px;
    height: 34px;
  }

  /* 7. Footer Horizon Section - Centered Architectural Sign-Off Card */
  .footer-horizon-wrapper {
    min-height: clamp(340px, 48vh, 400px);
  }

  .footer-translucent-glass {
    padding: 2.5rem 1.25rem 2rem;
  }

  .footer-minimal-container {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 1rem;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .footer-minimal-contact {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: 0.85rem;
    width: 100%;
  }

  .footer-minimal-name {
    order: 1;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    color: #111111;
    margin: 0;
  }

  .footer-minimal-email,
  .footer-email-pill {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.65rem 1.35rem 0.65rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    color: #121212;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 auto;
  }

  .footer-minimal-email:hover,
  .footer-minimal-email:active,
  .footer-email-pill:hover,
  .footer-email-pill:active {
    background: #121212;
    color: #FFFFFF;
    border-color: #121212;
    transform: translateY(-2px);
  }

  .footer-email-arrow,
  .footer-pill-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #121212;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
  }

  .footer-minimal-email:hover .footer-email-arrow,
  .footer-email-pill:hover .footer-pill-arrow {
    background: #FFFFFF;
    color: #121212;
  }

  .footer-minimal-loc {
    order: 3;
    font-size: 0.86rem;
    color: #444444;
    text-align: center;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .footer-minimal-aside {
    display: none !important;
  }

  .footer-watermark-row {
    margin-top: 1.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .footer-watermark {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: rgba(18, 18, 18, 0.42);
  }

  /* 8. View Details Page (project.html) */
  /* Close Button (✕) on Mobile */

  .project-page-view .project-close-btn,
  .project-close-btn {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #D1CEC7;
    color: #121212;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    cursor: pointer;
    flex-shrink: 0;
  }

  .project-close-btn:hover,
  .project-close-btn:active {
    background: #121212;
    color: #FFFFFF;
    border-color: #121212;
  }

  .project-centered-intro {
    padding: 2.5rem 0 1.5rem;
  }

  .editorial-project-title {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
    margin-bottom: 1rem;
    text-align: center;
  }

  /* Middle-aligned description text per Image 1 requirement */
  .editorial-project-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center !important;
    max-width: 600px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1.25rem;
  }

  /* Middle-aligned metadata row per Image 1 requirement */
  .editorial-meta-row {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    justify-content: center !important;
    text-align: center;
  }

  .editorial-stream-container {
    padding: 0 1rem;
    gap: 1rem;
  }

  .editorial-slot-duo {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .editorial-duo-frame img {
    aspect-ratio: 16 / 10;
  }

  /* Hide Bottom Pagination & Minimal Footer on Mobile as requested */
  .editorial-bottom-nav,
  .project-page-footer {
    display: none !important;
  }

  .project-editorial-stream-section {
    padding-bottom: 2.5rem;
  }

  /* Mobile Jump & Sit Animation Keyframes: Gentle 26px rise on small screens */
  @keyframes jumpAndSitMobile {
    0% {
      opacity: 0;
      transform: translate3d(0, 26px, 0) scale(0.98);
    }
    58% {
      opacity: 1;
      transform: translate3d(0, -4px, 0) scale(1.006);
    }
    80% {
      transform: translate3d(0, 1px, 0) scale(0.999);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  html.js-enabled .scroll-jump-text {
    transform: translate3d(0, 26px, 0) scale(0.98);
  }

  html.js-enabled .scroll-jump-text.jump-sit-active {
    animation-name: jumpAndSitMobile;
  }
}

/* ==========================================================================
   SCROLL REVEAL: "JUMP & SIT" TYPOGRAPHY ANIMATION ENGINE
   Slow, majestic architectural reveal: texts gracefully float up and sit in place.
   ========================================================================== */

@keyframes jumpAndSit {
  0% {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.98);
  }
  58% {
    opacity: 1;
    transform: translate3d(0, -6px, 0) scale(1.008); /* Gentle, elegant float overshoot */
  }
  80% {
    transform: translate3d(0, 2px, 0) scale(0.998); /* Soft settling cushion */
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1); /* Slowly and firmly rests in place */
  }
}

html.js-enabled .scroll-jump-text {
  opacity: 0;
  transform: translate3d(0, 44px, 0) scale(0.98);
  will-change: transform, opacity;
}

html.js-enabled .scroll-jump-text.jump-sit-active {
  animation: jumpAndSit 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--jump-delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  html.js-enabled .scroll-jump-text {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js-enabled .scroll-jump-text.jump-sit-active {
    animation: none !important;
  }
}

