/*
   ==========================================================================
   MOAJJEM PORTFOLIO - MAIN STYLESHEET
   ==========================================================================
*/

/* ==========================================================================
   [1.0] ROOT VARIABLES & FONT FACE
   ========================================================================== */
:root {
  --section-spacing: clamp(3rem, 5vw, 6rem);
  --scroll-offset: 60px;
  --scrollbar-width: 0px;
  --logo-opacity: 0.92;
  --mobile-spacing: 25px;
  --btn-size: 36px;
  --text-gutter: 10%;
  --bg-cream: #F6F5EE;
  --bg-white: #ffffff;
  --bg-dark: #080808;
  --text-dark: #111111;
  --body-line-height: 1.6;
}

/* ==========================================================================
   [2.0] BASE STYLES & RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-padding-top: var(--scroll-offset);
}

body {
  font-family: 'Inter', sans-serif;
  color: #F6F5EE;
  line-height: var(--body-line-height);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

main {
  flex-grow: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
img,
svg,
canvas,
video,
picture {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}


a {
  text-decoration: none;
  transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.theme-dark a:focus-visible,
.theme-dark button:focus-visible {
  outline-color: #ffffff;
}

button,
input,
select,
textarea {
  font-family: 'Inter', sans-serif;
}

/* Basic Body Lock (JS will handle the absolute freeze) */
html.is-body-locked,
body.is-body-locked {
  overflow: hidden !important;
}

body.is-body-locked {
  padding-right: var(--scrollbar-width) !important;
}

/* NEW: Animation for Filtering */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   [3.0] TYPOGRAPHY
   ========================================================================== */
.highlight {
  color: inherit;
  transition: color 0.2s ease-in-out;
  cursor: default;
}

.highlight:hover {
  color: #f5f5f7;
}

.section-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 200;
  line-height: 1.2;
  color: #e9e9e9;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0;
  font-family: 'Cormorant Garamond', serif;
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
  font-size: 1.1rem;
  font-weight: 350;
  line-height: 1.5;
  color: #ddd;
  text-align: center;
}

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

.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

/* ==========================================================================
   [4.0] LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

section.page-section,
footer.page-section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  border-width: 0;
  border-style: none;
  border-color: transparent;
  overflow: hidden;
  position: relative;
  scroll-margin-top: var(--scroll-offset);
}

/* ==========================================================================
   [5.0] EDITORIAL NAVIGATION (DARK TEXT FOR LIGHT HERO)
   ========================================================================== */
/* The Main Header Strip */
.editorial-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2005;
  padding: 30px 40px 30px 17.2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none; /* Let clicks pass through empty space */
}

/* 1. Works shortcut */
.header-brand {
  pointer-events: auto;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease, visibility 0.3s;
}

/* Hide Header Brand when Menu is Open (Body Locked) */
body.is-body-locked .header-brand {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.header-work-circle {
  width: 40px;
  height: 40px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  background: transparent;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.header-work-circle .ui-icon {
  font-size: 1rem;
  color: var(--bg-dark);
  -webkit-text-fill-color: var(--bg-dark);
  transform: translateY(0);
}

.header-work-circle:link,
.header-work-circle:visited,
.header-work-circle:hover {
  border: 0;
  background: transparent;
  color: var(--bg-dark);
}

.header-work-circle:hover {
  opacity: 0.6;
}

.header-work-circle:hover .ui-icon {
  transform: translateY(0);
}

.header-work-circle:focus-visible {
  outline-color: var(--bg-dark);
}

.ui-icon {
  display: inline-block;
  line-height: 1;
}

.link-icon {
  font-size: 0.8em;
  opacity: 0.55;
}

/* 2. Desktop Chapter Links (Right) - Dark Text */
.header-chapters {
  pointer-events: auto;
  display: flex;
  gap: 40px;
}

.chapter-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.65); /* Dark grey for default */
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.chapter-link span {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-right: 6px;
}

.chapter-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: #000; /* Black underline */
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chapter-link:hover,
.chapter-link.active {
  color: #000; /* Pure black on active/hover */
}

.chapter-link:hover::after,
.chapter-link.active::after {
  width: 100%;
}

/* 3. The "Index" Trigger (Mobile/Tablet Only) - Dark Text */
.index-trigger {
  pointer-events: auto;
  display: none; /* Hidden on Desktop */
  background: none;
  border: none;
  color: #111; /* Dark text */
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: pointer;
  z-index: 2006;
  align-items: center;
  gap: 10px;
  min-width: 80px;
  justify-content: flex-end;
  transition: color 0.3s ease;
}

.index-trigger .trigger-label {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.index-trigger .line-icon {
  width: 24px;
  height: 1.5px;
  background-color: #111; /* Dark line */
  display: block;
  transition: width 0.3s ease;
}

.index-trigger:hover .line-icon {
  width: 32px;
}

/* Active State: Forces Black Text for Visibility on Cream Overlay */
.index-trigger.is-active {
  color: #111 !important;
}

.index-trigger.is-active .line-icon {
  background-color: #111;
  width: 0; /* Hide line when menu is open */
}

/* 4. The Full Screen Overlay (The Magazine Index) */
.index-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #F2F0E8; /* Paper Cream */
  z-index: 2001;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  padding: 120px 40px 40px 40px;
  pointer-events: none;
}

.index-overlay.is-active {
  transform: translateY(0%);
  pointer-events: auto;
}

/* Overlay Content Structure */
.index-list {
  list-style: none;
  padding: 0;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.index-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.index-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2vh 0;
  text-decoration: none;
  color: #111;
  transition: padding-left 0.4s ease;
}

.index-link:hover {
  padding-left: 20px;
}

.idx-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.idx-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

/* Overlay Footer */
.index-footer {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.4s;
  flex-shrink: 0;
}

.index-overlay.is-active .index-footer {
  opacity: 1;
  transform: translateY(0);
}

.idx-meta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.idx-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
}

.idx-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #111;
  text-decoration: none;
}

/* ==========================================================================
   [6.0] UI COMPONENTS & BUTTONS
   ========================================================================== */
.btn-primary {
  background-color: #F6F5EE;
  color: #222222;
  padding: 16px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s;
}

.btn-primary:hover {
  background-color: #f9f8f4;
}

.btn-secondary {
  color: #F6F5EE;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s ease;
}

.btn-secondary:hover {
  gap: 12px;
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  width: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid #111;
  border-radius: 50%;
  color: #111;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-circle:hover {
  background: #111;
  color: #fff;
  transform: scale(1.05);
}

.btn-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1;
}

.btn-capsule:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ==========================================================================
   [7.0] MODAL SYSTEM
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000; /* Increased to cover header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: rgba(16, 16, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  width: 100%;
  height: 100%;
}

.modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal.is-embedded-scroll {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 3000; /* Increased */
  cursor: pointer;
}

.modal.is-embedded-scroll .modal-overlay {
  position: fixed;
}

.modal-panel-fw {
  position: relative;
  z-index: 3001; /* Increased */
  background-color: var(--bg-cream);
  width: 1104px;
  height: 734px;
  max-width: 98vw;
  max-height: 98vh;
  min-height: 0;
  margin: auto;
  border-radius: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.modal-panel-fw::-webkit-scrollbar {
  display: none;
}

.modal.is-embedded-scroll .modal-panel-fw {
  height: auto;
  max-height: none;
  min-height: 100%;
  overflow: visible;
}

.modal-close {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 3100; /* Increased */
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #000;
  color: #fff;
  transform: rotate(90deg);
}

.page-num {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  position: absolute;
  line-height: 1;
}

.text-block {
  margin-top: auto;
  padding-top: 100px;
  margin-bottom: 160px;
  padding-left: var(--text-gutter);
  padding-right: 1.5rem;
  max-width: 300px;
}

.text-block h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
  color: #000;
  line-height: 1.2;
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credit-item .value {
  font-size: 10px;
  color: #444;
  line-height: var(--body-line-height);
  display: block;
}

.spine-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.meta-side {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: absolute;
  top: 40px;
}

.main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: sticky;
  top: 40%;
  max-height: 80vh;
  line-height: 1;
  color: #000;
}

.wrapper {
  display: grid;
  grid-template-columns: 42% 38% 20%;
  min-height: 734px;
  width: 100%;
}

.col-left {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  padding-bottom: 80px;
}

.col-left .meta-side {
  left: 20px;
}

.img-left {
  width: 85%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: 20px;
}

.p-left {
  left: 24px;
  bottom: 30px;
}

.col-center {
  position: relative;
  display: flex;
  flex-direction: column;
}

.img-center {
  width: 80%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.col-right {
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 150px;
  min-height: 734px;
}

.col-right .main-title {
  margin-right: -15px;
}

.p-right {
  right: 24px;
  bottom: 30px;
}

.wrapper-2 {
  display: grid;
  grid-template-columns: 42% 8% 50%;
  min-height: 734px;
  width: 100%;
}

.a2-col-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  padding-bottom: 80px;
  background: var(--bg-cream);
}

.a2-col-image img {
  width: 85%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: 20px;
}

.p-on-image {
  left: 24px;
  bottom: 30px;
  color: #333;
  z-index: 2;
  mix-blend-mode: normal;
}

.a2-col-spine {
  background: var(--bg-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a2-col-content {
  background: var(--bg-cream);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-cream {
  right: 24px;
  bottom: 30px;
}

.wrapper-3 {
  display: grid;
  grid-template-columns: 28% 57% 15%;
  min-height: 734px;
  width: 100%;
}

.a3-col-text {
  background: var(--bg-white);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.a3-col-text .meta-side {
  left: 20px;
}

.p-3-left {
  left: 24px;
  bottom: 30px;
}

.a3-col-image {
  background: var(--bg-cream);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
}

.a3-hero-img {
  width: 100%;
  height: 85%;
  object-fit: cover;
  display: block;
}

.a3-col-title {
  background: var(--bg-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 150px;
  min-height: 734px;
}

.p-3-right {
  right: 24px;
  bottom: 30px;
}

.wrapper-4 {
  display: grid;
  grid-template-columns: 20% 38% 42%;
  min-height: 734px;
  width: 100%;
}

.a4-col-title {
  background: var(--bg-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 150px;
  min-height: 734px;
}

.a4-col-title .main-title {
  margin-left: -15px;
  margin-right: 0;
}

.p-4-left {
  left: 24px;
  bottom: 30px;
}

.a4-col-center {
  position: relative;
  display: flex;
  flex-direction: column;
}

.a4-col-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  padding-bottom: 80px;
}

.a4-col-image .meta-side {
  left: auto;
  right: 20px;
}

.a4-col-image img {
  width: 85%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin-right: auto;
  margin-left: 20px;
}

.p-4-right {
  right: 24px;
  bottom: 30px;
}

.wrapper-5 {
  display: grid;
  grid-template-columns: 20% 45% 35%;
  min-height: 734px;
  width: 100%;
}

.a5-col-title {
  background: var(--bg-cream);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 150px;
  min-height: 734px;
}

.a5-col-title .main-title {
  margin-right: -15px;
}

.p-5-left {
  left: 24px;
  bottom: 30px;
}

.a5-col-image {
  background: var(--bg-white);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  overflow: hidden;
}

.a5-hero-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  display: block;
}

.a5-col-text {
  background: var(--bg-cream);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.a5-col-text .meta-side {
  right: 20px;
  top: 40px;
  left: auto;
}

.p-5-right {
  right: 24px;
  bottom: 30px;
}

.wrapper-6 {
  display: grid;
  grid-template-columns: 30% 50% 20%;
  min-height: 734px;
  width: 100%;
}

.a6-col-stack {
  background: var(--bg-white);
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.a6-img-sm-landscape {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.a6-img-sm-portrait {
  width: 70%;
  aspect-ratio: 3/4;
  align-self: flex-end;
  object-fit: cover;
}

.p-6-left {
  left: 24px;
  bottom: 30px;
}

.a6-col-hero {
  background: var(--bg-cream);
  padding: 80px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  display: block;
}

.a6-hero-img {
  width: 90%;
  height: auto;
  aspect-ratio: 3/4;
  margin-left: auto;
  margin-right: 0;
  margin-top: 20px;
  object-fit: cover;
}

.a6-col-hero .meta-side {
  top: 40px;
  left: 20px;
}

.a6-col-title {
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.a6-col-title .main-title {
  margin-right: -15px;
}

.p-6-right {
  right: 24px;
  bottom: 30px;
}

.wrapper-7 {
  display: grid;
  grid-template-columns: 20% 40% 40%;
  min-height: 734px;
  width: 100%;
}

.a7-col-title {
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.a7-col-title .main-title {
  margin-left: -15px;
  margin-right: 0;
}

.p-7-left {
  left: 24px;
  bottom: 30px;
}

.a7-col-content {
  background: var(--bg-cream);
  position: relative;
  display: flex;
  flex-direction: column;
}

.a7-img-detail {
  width: 80%;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  margin-top: 80px;
}

.a7-col-image {
  background: var(--bg-white);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.a7-hero-img {
  width: 85%;
  height: 85%;
  object-fit: cover;
}

.a7-col-image .meta-side {
  right: 20px;
  left: auto;
  top: 40px;
}

.p-7-right {
  right: 24px;
  bottom: 30px;
}

/* --- Paragraph Spacing --- */
.credit-item .value p {
    margin-bottom: 16px;
    margin-top: 0;
    text-indent: 0;
}

/* --- Indent ONLY the First Paragraph --- */
.credit-item .value p:first-of-type {
    text-indent: 3rem;
}

/* ==========================================================================
   [8.0] HERO SECTION
   ========================================================================== */
.hero-section {
  background: #f2f0e8;
  color: #111;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  margin: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 42% 38% 20%;
  min-height: 100vh;
  width: 100%;
}

.hero-col-start {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  padding-bottom: 80px;
}

.hero-meta-label {
  position: absolute;
  top: 80px;
  left: 30px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-img-start {
  width: 85%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: 20px;
}

.hero-page-num {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  position: absolute;
}

.hero-page-start {
  left: 24px;
  bottom: 30px;
}

.hero-col-mid {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.hero-img-mid {
  width: 80%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-top: 0;
  display: block;
}

.hero-content-block {
  margin-top: auto;
  padding-top: 100px;
  margin-bottom: 160px;
  padding-left: 10%;
  max-width: 360px;
}

.hero-content-block h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: #000;
  text-transform: uppercase;
  max-width: 360px;
}

.hero-info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-info-item .hero-text-value {
  font-size: 11px;
  line-height: 1.7;
  color: #444;
  display: block;
}

.hero-col-end {
  background: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 150px;
  min-height: 100vh;
}

.hero-title-vertical {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5vw;
  font-weight: 400;
  letter-spacing: 0.08em;
  font-style: italic;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-right: -15px;
  position: sticky;
  top: 40%;
  max-height: 80vh;
  color: #000;
}

.hero-page-end {
  right: 24px;
  bottom: 30px;
}

/* About Specifics Desktop */
#about .hero-col-start {
  padding-left: max(40px, calc((100vw - 1400px) / 2 + 40px)) !important;
  padding-bottom: 300px !important;
}

/* ==========================================================================
   [9.0] ABOUT SECTION & BIO SWITCHER
   ========================================================================== */
.about {
  color: #EAEAEA;
  position: relative;
  overflow: hidden;
}

.anim-enter-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease-out, transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity;
}

.anim-enter-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s ease-out, transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity;
}

.about.is-visible .anim-enter-left {
  opacity: 1;
  transform: translateX(0);
}

.about.is-visible .anim-enter-right {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.15s;
}

.bio-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: center;
  width: 100%;
}

.bio-visual-wrapper {
  position: relative;
  height: 600px;
  width: 100%;
}

/* --- NEW: Bio Frame Wrapper --- */
.bio-frame {
  position: relative;
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

.image-mask {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: block;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.15);
  }
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.6s ease;
  will-change: transform, opacity;
  animation: kenBurns 12s ease-in-out infinite alternate;
}

.bio-switcher {
  position: absolute;
  bottom: 0; 
  right: 30px; 
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  background: #000;
  border: 1.5px solid #fff;
  color: #fff;
}

.bio-switcher:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: scale(1.1);
}

.bio-content-area {
  position: relative;
  display: grid;
  grid-template-areas: "stack";
}

.bio-panel {
  grid-area: stack;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.bio-panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 1;
}

.stats-box {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 3rem;
  border-left: none;
}

.stat-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-item::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.theme-dark .stat-label {
  color: #888;
}

.theme-dark .stat-value {
  color: #fff;
}

#about .hero-meta-label {
  top: 80px;
}

.hero-section.theme-dark {
  background: #080808 !important;
  color: #fff;
}

.theme-dark .hero-col-end {
  background: #080808
}

.theme-dark .hero-col-start {
  align-items: flex-end;
  padding-bottom: 10px;
}

.theme-dark .hero-meta-label,
.theme-dark .stat-label {
  color: #888;
}

.theme-dark .hero-text-value {
  color: #ccc;
}

.theme-dark .hero-title-vertical {
  color: #fff;
}

.theme-dark h3 {
  color: #fff;
}

.theme-dark .image-mask {
  width: 80%;
  aspect-ratio: 3 / 4;
  margin: 0 auto 0 0;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.theme-dark .bio-content-area {
  margin-bottom: 120px;
  padding-left: 10%;
  position: relative;
  min-height: 200px;
}

.theme-dark .bio-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.theme-dark .btn-circle {
  border-color: #fff;
  color: #fff;
}

.theme-dark .btn-circle:hover {
  background: #fff;
  color: #000;
}

/* ==========================================================================
   [10.0] PROJECTS SECTION (METRO GRID) & REFINED FILTERS
   ========================================================================== */

/* --- Refined Filter UI (Small & High Contrast) --- */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 2rem;
  margin-left: 0;
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid #111;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

/* Hover State */
.btn-filter:hover {
  background: #111;
  color: #fff;
}

/* Active State */
.btn-filter.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
  font-weight: 500;
}

/* Dark Mode Support */
.theme-dark .btn-filter {
  border-color: #fff;
  color: #fff;
}
.theme-dark .btn-filter:hover,
.theme-dark .btn-filter.is-active {
  background: #fff;
  color: #000;
  border-color: #fff;
}


/* --- Portfolio Grid Layout (Preserved) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  --base-tile-size: clamp(160px, 20vw, 240px);
  --grid-gap: clamp(16px, 1.5vw, 24px);
  gap: var(--grid-gap);
  justify-content: center;
  align-content: start;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 0;
}

.portfolio-structure-fix {
  display: grid;
  grid-template-columns: 42% 38% 20%;
  grid-template-rows: auto auto;
  padding-bottom: 100px;
}

.portfolio-structure-fix .hero-col-start {
  padding-top: 80px !important;
  align-items: flex-start !important;
}

.portfolio-structure-fix .hero-content-block {
  grid-column: 2;
  padding-top: 80px !important;
  margin-top: 0 !important;
  margin-bottom: 60px !important;
  max-width: 360px;
}

.portfolio-grid-full-span {
  grid-column: 1 / span 3;
  padding: 0 40px;
}

.project-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: hidden;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  cursor: pointer;
  z-index: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.project-tile:focus-visible {
  outline: 3px solid #111 !important;
  outline-offset: 4px;
}

.project-tile-sm { grid-column: span 1; grid-row: span 1; aspect-ratio: 1 / 1; }
.project-tile-md { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.project-tile-wide { grid-column: span 4; grid-row: span 2; aspect-ratio: 2 / 1; }
.project-tile-lg { grid-column: span 4; grid-row: span 4; aspect-ratio: 1 / 1; }

.work-card-visual-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.project-tile img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Card Hover Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: #f5f5f7;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

.project-tile:hover .card-overlay { opacity: 0; }

/* Flip Logic */
.card-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flip.is-flipped { transform: rotateY(180deg); }
.project-tile-md .card-flip { transition-duration: 0.8s; }
.project-tile-wide .card-flip { transition-duration: 1.2s; }
.project-tile-lg .card-flip { transition-duration: 1.8s; }

.card-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front { z-index: 2; transform: rotateY(0deg); }
.card-back {
  z-index: 1;
  transform: rotateY(180deg);
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Visibility Utilities */
.is-hidden { display: none !important; }

.project-tile.is-filtering {
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.mobile-card-meta { display: none; }

/* Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  width: 100%;
  padding-bottom: 20px;
}

.btn-load-more.hidden,
.load-more-container.hidden { display: none !important; }

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid #111;
  border-radius: 50%;
  color: #111;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  position: relative;
}

.btn-load-more i {
  display: block;
  transition: transform 0.3s ease;
}

.btn-load-more:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: scale(1.05);
}

.btn-load-more:hover i { transform: translateY(2px); }

.btn-load-more::after {
  content: 'Load More';
  position: absolute;
  bottom: -25px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.btn-load-more:hover::after {
  opacity: 0.6;
  transform: translateY(0);
}

/* ==========================================================================
   [11.0] PAGE FOOTER
   ========================================================================== */
.footer-split-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.footer-top-level {
  background-color: #F2F0E8; 
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: clamp(6rem, 8vh, 8rem) 0;
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.cta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cta-text-block {
  max-width: 992px;
}

.cta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666;
  margin-bottom: 1.5rem;
  display: block;
}

.cta-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 2rem;
  color: #080808;
}

.cta-sub-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: #555;
  max-width: 500px;
  line-height: 1.5;
}

.serif-accent {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
}

.cta-circle-btn {
  width: clamp(100px, 12vw, 140px);
  height: clamp(100px, 12vw, 140px);
  background-color: #111;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 8px;
  flex-shrink: 0;
}

.cta-circle-btn:hover {
  transform: scale(1.05) rotate(-5deg);
}

.cta-circle-btn .btn-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.cta-circle-btn .ui-icon {
  font-size: 1.5rem;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.cta-circle-btn:hover .ui-icon {
  transform: rotate(0deg);
}

.footer-bottom-level {
  background-color: #080808;
  color: #F6F5EE;
  padding: 4.5rem 0 3rem;
  flex-shrink: 0;
  border-top: 1px solid rgba(246, 245, 238, 0.14);
}

.info-grid {
  display: grid;
  grid-template-columns: 1.45fr 1.15fr 0.8fr 1fr;
  gap: 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem 2rem 2.25rem;
  border-left: 1px solid #222;
}

.info-col:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer-brand-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.35rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  color: #fff;
  line-height: 1;
}

.brand-mission {
  font-size: 0.62rem;
  color: #666;
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.col-header {
  font-size: 0.58rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  margin-bottom: 1.6rem;
  display: block;
}

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

.info-list li {
  margin-bottom: 14px;
}

.info-list a {
  font-size: 0.75rem;
  color: #999;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.info-list a:hover {
  color: #fff;
  transform: translateX(5px);
}

.highlight-link {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 4px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
  margin-top: 15px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #8fd9a8;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.availability-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #888;
  font-size: 0.72rem;
  line-height: 1.5;
}

.availability-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #f2f0e8;
}

/* ==========================================================================
   MODAL LIST STYLING
   ========================================================================== */

/* Remove default browser padding and set text size inheritance */
.modal-bullets {
    list-style-position: outside;
    padding-left: 1.5rem; /* bullets indentation*/
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Style specific list items */
.modal-bullets li {
    margin-bottom: 6px; 
    padding-left: 5px;  /* Space between bullet dot and text */
    line-height: 1.5;
}


/* ==========================================================================
   [12.0] RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- 768px: TABLET & MOBILE START --- */
@media (max-width: 768px) {
  .header-chapters { display: none; }
  .index-trigger { display: flex; }
  .editorial-header { padding: 20px 25px 20px 4.2px; }
  .header-work-circle { width: 36px; height: 36px; }
  .header-work-circle .ui-icon,
  .header-work-circle:hover .ui-icon { transform: translateY(-0.5px); }
  .main-title { writing-mode: horizontal-tb; transform: none; position: static; font-size: 42px; margin: 0 0 40px !important; padding-bottom: 4rem; text-align: center; white-space: normal; }
  .text-block { margin-top: 80px !important; margin-bottom: 40px !important; padding-left: var(--text-gutter) !important; padding-top: 0; padding-right: 1rem !important; max-width: 300px !important; }
  .spine-label { writing-mode: horizontal-tb; transform: none; }
  .wrapper { display: block; height: auto; }
  .col-left { display: block; padding: 60px 40px 20px; }
  .col-left .meta-side { top: 60px; left: 15px; }
  .img-left { width: 90%; margin-left: auto; margin-right: 0; margin-top: 20px; }
  .p-left { position: static; display: block; margin-top: 20px; text-align: right; }
  .col-center { padding: 20px 40px 60px; }
  .img-center { width: 90%; margin-right: auto; }
  .col-right { min-height: 400px; padding: 80px 40px; border-left: none; flex-direction: column; align-items: center; justify-content: center; }
  .p-right { position: static; display: block; margin-top: 20px; align-self: flex-start; }
  .wrapper-2 { display: flex; flex-direction: column; height: auto; }
  .a2-col-image { order: 1; display: block; width: 100%; height: auto; padding: 60px 40px 20px; }
  .a2-col-image img { width: 90%; margin-left: auto; margin-right: 0; margin-top: 20px; aspect-ratio: 3/4; }
  .p-on-image { position: static; display: block; margin-top: 20px; text-align: right; }
  .a2-col-content { order: 2; display: block; padding: 20px 40px 60px; }
  .p-cream { position: static; display: block; margin-top: 20px; text-align: left; align-self: flex-start; }
  .a2-col-spine { order: 3; display: flex; width: 100%; min-height: 100px; padding: 40px; border: none; }
  .wrapper-3 { display: flex; flex-direction: column; height: auto; }
  .a3-col-image { order: 1; width: 100%; padding: 60px 40px 20px; display: block; }
  .a3-hero-img { width: 90%; height: auto; aspect-ratio: 3/4; margin-left: auto; margin-right: 0; }
  .a3-col-text { order: 2; width: 100%; padding: 20px 40px 60px; }
  .a3-col-text .meta-side { top: 60px; left: 15px; }
  .p-3-left { position: static; display: block; margin-top: 20px; text-align: right; }
  .a3-col-title { order: 3; width: 100%; min-height: 400px; padding: 80px 40px; flex-direction: column; align-items: center; justify-content: center; }
  .p-3-right { position: static; display: block; margin-top: 20px; align-self: flex-start; }
  .wrapper-4 { display: flex; flex-direction: column; height: auto; }
  .a4-col-image { order: 1; display: block; width: 100%; padding: 60px 40px 20px; }
  .a4-col-image img { width: 90%; margin-left: auto; margin-right: 0; margin-top: 20px; }
  .a4-col-image .meta-side { top: 60px; left: 15px; right: auto; }
  .p-4-right { position: static; display: block; margin-top: 20px; text-align: right; }
  .a4-col-center { order: 2; padding: 20px 40px 60px; }
  .a4-col-title { order: 3; width: 100%; min-height: 400px; padding: 80px 40px; flex-direction: column; align-items: center; justify-content: center; }
  .p-4-left { position: static; display: block; margin-top: 20px; align-self: flex-start; }
  .wrapper-5 { display: flex; flex-direction: column; height: auto; }
  .a5-col-image { order: 1; width: 100%; padding: 60px 40px 20px; display: block; }
  .a5-hero-img { width: 90%; height: auto; aspect-ratio: 3/4; margin-left: auto; margin-right: 0; margin-top: 20px; }
  .a5-col-text { order: 2; width: 100%; padding: 20px 40px 60px; }
  .a5-col-text .meta-side { top: 60px; right: auto; left: 15px; }
  .p-5-right { position: static; display: block; margin-top: 20px; text-align: right; }
  .a5-col-title { order: 3; width: 100%; min-height: 400px; padding: 80px 40px; flex-direction: column; align-items: center; justify-content: center; border-right: none; }
  .p-5-left { position: static; display: block; margin-top: 20px; align-self: flex-start; }
  .wrapper-6 { display: flex; flex-direction: column; height: auto; }
  .a6-col-hero { order: 1; width: 100%; padding: 60px 40px 20px; display: block; }
  .a6-hero-img { width: 90%; height: auto; aspect-ratio: 3/4; margin-left: auto; margin-right: 0; margin-top: 20px; }
  .a6-col-hero .meta-side { top: 60px; left: 15px; }
  .a6-col-stack { order: 2; width: 100%; padding: 20px 40px 60px; gap: 20px; }
  .a6-img-sm-landscape { width: 100%; }
  .a6-img-sm-portrait { width: 100%; align-self: center; aspect-ratio: 3/4; }
  .p-6-left { position: static; display: block; margin-top: 20px; text-align: right; }
  .a6-col-title { order: 3; width: 100%; min-height: 400px; padding: 80px 40px; flex-direction: column; }
  .p-6-right { position: static; display: block; margin-top: 20px; align-self: flex-start; }
  .wrapper-7 { display: flex; flex-direction: column; height: auto; }
  .a7-col-image { order: 1; width: 100%; padding: 60px 40px 20px; display: block; }
  .a7-hero-img { width: 90%; height: auto; aspect-ratio: 3/4; margin-left: auto; margin-right: 0; margin-top: 20px; }
  .a7-col-image .meta-side { top: 60px; left: 15px; right: auto; }
  .p-7-right { position: static; display: block; margin-top: 20px; text-align: right; }
  .a7-col-content { order: 2; width: 100%; padding: 20px 40px 60px; display: block; }
  .a7-img-detail { width: 100%; margin: 20px 0 60px 0; }
  .a7-col-title { order: 3; width: 100%; min-height: 400px; padding: 80px 40px; flex-direction: column; }
  .p-7-left { position: static; display: block; margin-top: 20px; align-self: flex-start; }
  .modal-panel-fw { width: 100% !important; height: 100% !important; border-radius: 0; }
  .modal.is-embedded-scroll .modal-panel-fw { height: auto !important; max-height: none !important; min-height: 100% !important; overflow: visible !important; }
  .modal-close { position: absolute; top: 25px; right: 20px; background: transparent; color: #111; border: none; width: 40px; height: 40px; z-index: 3100; /* Increased */ }
  html { font-size: 16px; }
  #about .container, #portfolio .container { padding-left: 0 !important; padding-right: 0 !important; }
  .container { padding-left: 2rem; padding-right: 2rem; }
  .anim-enter-left, .anim-enter-right { transform: translateY(30px); }
  .theme-dark .hero-col-start { padding-right: 1.5rem; padding-left: 6rem; }
  .theme-dark .stats-box { margin-left: -12px; }
  :root { --clients-gap: 40px; --logo-max-height: 48px; }
  .filter-controls { gap: 10px !important; }
  .hero-grid { display: block; height: auto; }
  .hero-col-start { display: block; padding: 100px var(--mobile-spacing) 0 var(--mobile-spacing); }
  #about.theme-dark .hero-col-start { padding-top: 100px !important; padding-left: 8rem !important; padding-right: var(--mobile-spacing) !important; padding-bottom: 2rem !important; align-items: flex-start !important; width: 100% !important; }
  #about .hero-meta-label { top: 40px !important; left: 1rem; }
  .hero-img-start { width: 90%; margin: 20px 0 0 auto; }
  .hero-meta-label { position: absolute; top: 100px; left: 15px; writing-mode: vertical-rl; transform: rotate(180deg); color: #666; font-size: 9px; letter-spacing: 0.1em; }
  .hero-page-start { position: static; display: block; margin-top: 20px; text-align: right; }
  .hero-col-mid { padding: 20px var(--mobile-spacing) 0 var(--mobile-spacing); padding-bottom: 0 !important; }
  .hero-img-mid { width: 90%; margin: 0 auto 0 0; }
  .hero-content-block { margin-top: 40px; margin-bottom: 40px; padding-left: 2.5rem !important; padding-right: 40px; padding-top: 0; }
  .hero-col-end { display: none !important; }
  #about .container, #portfolio .container { padding-left: 0 !important; padding-right: 0 !important; width: 100%; max-width: 100%; }
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .bio-layout { grid-template-columns: 1fr; gap: 0; }
  .bio-visual-wrapper { height: auto; aspect-ratio: 1/1; margin-bottom: 0; width: 100%; border-radius: 0 !important; }
  #about.page-section { padding-top: 0 !important; }
  .image-mask, .visual-img { overflow: hidden; position: static; border-radius: 0 !important; }
  .theme-dark .stat-item::before { background-color: rgba(255, 255, 255, 0.3) !important; }
  #portfolio .section-title, #portfolio .filter-controls { padding-left: 20px; padding-right: 20px; }
  #portfolio .filter-controls { padding-left: 0 !important; padding-right: 0 !important; margin-left: -5px !important; justify-content: flex-start !important; }
  .filter-controls { gap: 12px !important; }
  .btn-filter { padding: 10px 16px !important; font-size: 0.7rem !important; letter-spacing: 0.05em !important; }
  .portfolio-grid { padding: 0; margin: 0; width: 100%; grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
  .project-tile-sm, .project-tile-md, .project-tile-wide, .project-tile-lg { grid-column: span 1 !important; grid-row: span 1 !important; aspect-ratio: 1 / 1 !important; }
  .project-tile-wide { grid-column: span 2 !important; aspect-ratio: 2 / 1 !important; }
  .btn-load-more { padding: 0; }
  .portfolio-structure-fix { display: block !important; position: relative; }
  .portfolio-structure-fix .hero-col-start { padding: 0 !important; height: 0 !important; min-height: 0 !important; overflow: visible !important; }
  .portfolio-structure-fix .hero-meta-label { position: absolute !important; top: 40px !important; left: 20px !important; writing-mode: vertical-rl !important; transform: rotate(180deg) !important; white-space: nowrap !important; display: block !important; visibility: visible !important; opacity: 1 !important; height: auto !important; width: auto !important; z-index: 10; }
  .portfolio-structure-fix .hero-content-block { margin-top: 0 !important; padding-top: 70px !important; padding-left: 50px !important; padding-right: 20px !important; margin-bottom: 40px !important; max-width: 100% !important; }
  .portfolio-structure-fix .hero-col-mid { padding-top: 0 !important; }
  .portfolio-grid-full-span { padding: 0 1.5rem 80px 1.5rem !important; }
  .bio-frame { width: 100%; margin-bottom: 25px; }
  .bio-switcher { right: 15px; bottom: 15px; width: 48px; height: 48px; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.5); }
  .theme-dark .image-mask { width: 100%; }
  .portfolio-grid-full-span { grid-column: auto; padding: 0 20px; }
  .index-trigger { position: absolute; top: 30px; right: 25px; z-index: 2006; }
  .footer-top-level { text-align: left; }
  .cta-headline { font-size: 3.5rem; }
  .cta-wrapper { flex-direction: column; align-items: flex-start; gap: 40px; }
  .info-grid { grid-template-columns: 1fr; gap: 3rem; }
  .info-col { border-left: 0; padding-left: 0; padding-right: 0; }
  .col-header { margin-bottom: 1rem; }
  .footer-brand-mark { margin-top: 0; }
}

/* --- 576px: Large Mobile --- */
@media (max-width: 576px) {
  .footer-split-layout .container { padding-left: 25px !important; padding-right: 25px !important; }
  .cta-wrapper { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .cta-headline { font-size: 3.5rem; }
  .cta-circle-btn { align-self: flex-start; width: 120px; height: 120px; }
  .info-grid { display: flex; flex-direction: column; gap: 2.5rem; }
  .info-col:nth-child(2) { order: 1; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 2rem; }
  .info-col:nth-child(3), .info-col:nth-child(4) { border: none; padding: 0; }
  .info-col:nth-child(3) { order: 2; width: 50%; float: left; display: inline-flex; }
  .info-col:nth-child(4) { order: 3; width: 50%; display: inline-flex; margin-top: -2.5rem; margin-left: 50%; margin-bottom: 2rem; }
  .info-col.brand-col { order: 4; width: 100%; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 0; }
  .footer-brand-mark { font-size: 2rem; margin-bottom: 0.5rem; }
  .brand-mission { opacity: 0.6; }
  #about .container, #portfolio .container { padding-left: 0 !important; padding-right: 0 !important; }
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .section-title { font-size: clamp(2rem, 8vw, 2.5rem); }
  .section-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }
  .bio-visual-wrapper { height: auto; }
  .year-display-bg { font-size: 3.5rem; }
  .panel-sub-header { font-size: 1.5rem; }
  #about.theme-dark .hero-col-start { padding-top: 80px !important; padding-left: 6rem !important; padding-right: 20px !important; width: 100%; box-sizing: border-box; }
  .filter-controls { gap: 8px !important; }
  .btn-filter { padding: 12px 15px !important; font-size: 0.65rem !important; }
  .stats-box { gap: 1.5rem; padding-left: 10px !important; margin-left: 0 !important; width: 100%; }
  .stat-item { max-width: 100%; }
  .stat-value { font-size: 2.5rem !important; line-height: 1.1; white-space: normal !important; word-wrap: break-word !important; overflow-wrap: break-word !important; }
  .modal { padding: 0 !important; }
  :root { --clients-gap: 30px; --logo-max-height: 44px; }
  .portfolio-structure-fix .hero-content-block { padding-top: 70px !important; }
}

/* --- 480px: Standard Mobile --- */
@media (max-width: 480px) {
  #about .container, #portfolio .container { padding-left: 0 !important; padding-right: 0 !important; }
  .hero-col-end { height: auto; }
  .hero-left { padding: 40px 20px; }
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .btn-outline, .btn-primary { width: auto; text-align: center; }
  .btn-secondary { width: 100%; justify-content: center; }
  .theme-dark .stats-box { margin-left: -18px; }
  :root { --clients-gap: 25px; --logo-max-height: 40px; }
  .social-links { margin-left: 0; }
  .filter-controls { gap: 8px !important; margin-bottom: 2rem !important; }
  .btn-filter { padding: 12px 12px !important; font-size: 0.65rem !important; }
  .portfolio-grid { display: flex; flex-direction: column; gap: 50px; padding: 0; width: 100%; margin-top: 10px; }
  .project-tile { position: relative; width: 100%; height: auto !important; aspect-ratio: auto !important; display: flex; flex-direction: column; padding: 0 !important; margin: 0 !important; border: none !important; background: transparent !important; text-align: left; }
  .work-card-visual-wrap { position: relative !important; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 0; }
  .project-tile img { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .mobile-card-meta { display: none !important; }
  .portfolio-grid .project-tile.is-hidden { display: none !important; }
}

/* --- 367px: Small Mobile --- */
@media (max-width: 367px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .section-title { font-size: 1.8rem; }
  :root { --clients-gap: 24px; --logo-max-height: 36px; }
  #about.theme-dark .hero-col-start { padding-top: 60px !important; padding-right: 10px !important; }
  .filter-controls { gap: 6px !important; margin-bottom: 1.5rem !important; }
  .btn-filter { padding: 10px 12px !important; font-size: 0.65rem !important; border-width: 1px !important; letter-spacing: 0.02em !important; }
  .stats-box { padding-left: 10px !important; }
  .stat-value { font-size: 2.2rem !important; }
}
