/* =============================================
   VILA ARQUITECTES — v7
   Typography: Cormorant Garamond (headings+nav) + Libre Franklin (body)
   ============================================= */
:root {
  --bg: #f5f2ed;
  --surface: #ffffff;
  --dark: #1a1a1a;
  --text: #3a3a3a;
  --muted: #8a8a8a;
  --accent: #b25036;
  --accent-h: #963d28;
  --border: #e4e0dc;
  --border-l: #edeae6;
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Libre Franklin', 'Franklin Gothic Medium', -apple-system, sans-serif;
  --sb-w: 200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 16px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* Reusable */
.label-upper {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
  font-family: var(--sans);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--dark);
  font-family: var(--sans);
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow:hover { gap: 14px; color: var(--accent); }
.link-terracotta { color: var(--accent); }

.btn-fill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--sans);
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
  transition: background .4s, border-color .4s; cursor: pointer;
}
.btn-fill:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--sans);
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background .4s, border-color .4s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-outline-dark {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--sans);
  background: transparent; color: var(--dark);
  border: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.btn-outline-dark:hover { border-color: var(--dark); background: rgba(0,0,0,0.03); }

/* =============================================
   TOP HEADER — Serif nav
   ============================================= */
.top-header {
  position: fixed; top: 0; left: 0; right: 0; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; z-index: 900;
  transition: all .5s var(--ease);
}
.logo-img {
  height: 44px; width: auto;
  filter: invert(1) brightness(2);
  transition: filter .5s;
}
body.sidebar-active .logo-img { filter: none; }
body.sidebar-active .top-header {
  background: rgba(245,242,237,0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-l);
}
body.sidebar-active .header-nav { opacity: 0; pointer-events: none; }
body.sidebar-active .header-lang { opacity: 1; pointer-events: auto; }
body.sidebar-active .header-burger span { background: var(--dark); }

.header-logo { display: flex; align-items: center; }
.header-nav { display: flex; gap: 28px; transition: opacity .4s; }
.hn-link {
  font-family: var(--sans);
  font-size: 12px; font-weight: 200; letter-spacing: 1.5px;
  color: rgba(255,255,255,0.7); transition: color .3s;
  position: relative; padding-bottom: 2px;
  text-transform: uppercase;
}
.hn-link:hover, .hn-link.active { color: #fff; }
.header-right { display: flex; align-items: center; gap: 20px; }
.header-lang {
  font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.5);
  display: flex; gap: 6px; transition: opacity .4s;
}
.header-lang a,
.header-lang .lang-btn {
  color: rgba(255,255,255,0.65) !important;
  transition: color 0.3s;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
}
.header-lang a:hover,
.header-lang .lang-btn:hover {
  color: #fff !important;
}
.header-lang .lang-active {
  color: rgba(255,255,255,0.95) !important;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
}
.header-lang .lang-sep { color: rgba(255,255,255,0.3); }

/* Header languages when header is active (light bg) */
body.sidebar-active .header-lang {
  color: var(--muted);
}
body.sidebar-active .header-lang a,
body.sidebar-active .header-lang .lang-btn {
  color: var(--muted) !important;
}
body.sidebar-active .header-lang a:hover,
body.sidebar-active .header-lang .lang-btn:hover {
  color: var(--dark) !important;
}
body.sidebar-active .header-lang .lang-active {
  color: var(--dark) !important;
}
body.sidebar-active .header-lang .lang-sep {
  color: var(--border-d);
  opacity: 0.5;
}

/* Burger menu hidden on desktop */
.header-burger {
  width: 24px; height: 14px;
  display: none; flex-direction: column; justify-content: space-between;
  background: none; border: none; cursor: pointer; padding: 0;
}
.header-burger span {
  display: block; width: 100%; height: 1px;
  background: rgba(255,255,255,0.7);
  transition: transform .3s, opacity .3s, background .3s;
}

/* Mobile menu burger animation to X */
body.mobile-menu-open .header-burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.mobile-menu-open .header-burger span:nth-child(2) {
  opacity: 0;
}
body.mobile-menu-open .header-burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
body.mobile-menu-open .top-header {
  z-index: 1300;
}
body.mobile-menu-open .header-burger span {
  background: var(--dark) !important;
}

/* =============================================
   LEFT SIDEBAR — Serif nav
   ============================================= */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sb-w); height: 100vh;
  background: var(--bg);
  border-right: 1px solid var(--border-l);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 28px; z-index: 800;
  transform: translateX(-100%);
  transition: transform .5s var(--ease);
}
body.sidebar-active .sidebar { transform: translateX(0); }
.sb-logo { display: block; margin-bottom: 40px; }
.sb-logo-img { height: 44px; width: auto; }
.sb-nav {
  position: absolute;
  top: 50%;
  left: 28px;
  right: 28px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sb-link {
  font-family: var(--sans);
  font-size: 13px; font-weight: 200; letter-spacing: 1.5px;
  color: var(--muted); padding: 6px 0; transition: color .3s;
  text-transform: uppercase;
}
.sb-link:hover { color: var(--dark); }
.sb-link.active { color: var(--dark); }
.sb-bottom { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.sb-social { display: flex; gap: 14px; font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.sb-social a { transition: color .3s; display: flex; align-items: center; }
.sb-social a:hover { color: var(--dark); }
.sb-lang { font-size: 11px; letter-spacing: 2px; color: var(--muted); display: flex; gap: 6px; }
.lang-btn {
  font-size: 11px; letter-spacing: 2px; color: var(--muted);
  background: none; border: none; cursor: pointer;
  padding: 2px 0; font-family: var(--sans); transition: color .3s;
}
.lang-btn:hover { color: var(--dark); }
.lang-btn.lang-active { color: var(--dark); font-weight: 600; }
.sb-copy { font-size: 10px; color: var(--border); }

/* Sidebar offset */
.sidebar-content { transition: margin-left .5s var(--ease); }
body.sidebar-active .sidebar-content { margin-left: var(--sb-w); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; background: var(--dark);
}
.hero-vertical-text {
  position: absolute; left: 24px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 10px; letter-spacing: 6px; text-transform: uppercase;
  color: rgba(255,255,255,0.25); z-index: 5; white-space: nowrap;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center right;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.08) 65%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
  position: relative; z-index: 5; height: 100%;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 48px 110px 48px; gap: 60px;
}
.hero-left { max-width: auto; }
.hero-title {
  font-family: var(--serif);
  font-size: 150px !important;
  font-weight: 300; font-style: italic;
  line-height: 1.08; color: #fff; margin-bottom: 20px;
}
.hero-desc {
    font-size: 14px;
    line-height: 1.9;
    font-weight: 300;
    color: rgb(255 255 255 / 105%);
    margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 12px; }
.hero-right {
  max-width: 260px;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  padding-bottom: 20px;
}
.hero-quote {
    font-family: var(--serif);
    font-size: 20px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    border: none;
}
.hero-cite {
  font-family: var(--sans); font-size: 9px; font-style: normal;
  letter-spacing: 4px; color: var(--accent); font-weight: 600;
}
.hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 48px;
  display: flex; align-items: flex-end; justify-content: space-between; z-index: 10;
}
.hero-scroll {
  font-size: 9px; letter-spacing: 4px; color: rgba(255,255,255,0.3);
  writing-mode: vertical-lr; transform: rotate(180deg);
  position: absolute; left: 48px; bottom: 80px; font-weight: 600;
}
.hero-counter { display: flex; align-items: baseline; gap: 4px; }
.hc-num { font-family: var(--serif); font-size: 32px; font-weight: 300; color: rgba(255,255,255,0.85); }
.hc-total { font-size: 12px; color: rgba(255,255,255,0.35); }
.hero-arrows { display: flex; gap: 8px; }
.ha-btn {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.5);
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all .3s;
}
.ha-btn:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero-project-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hpi-name { font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.55); font-weight: 500; }
.hpi-loc { font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,0.3); }

/* =============================================
   STUDIO
   ============================================= */
.section-studio { padding: 140px 48px; background: var(--bg); }
.studio-wrap {
  display: grid; grid-template-columns: 1fr 1.35fr;
  gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto;
}
.studio-heading {
    font-family: var(--serif);
    font-size: clamp(26px, 2.8vw, 50px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 20px;
}
.studio-philosophy {
  font-size: 14px; line-height: 1.85; font-weight: 300;
  color: var(--text); margin-bottom: 36px;
}
.studio-collage {
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto;
  gap: 16px; position: relative;
}
.sc-large { grid-column: 1; grid-row: 1 / 3; aspect-ratio: 3/4; overflow: hidden; }
.sc-large img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sc-large:hover img { transform: scale(1.03); }
.sc-small { grid-column: 2; grid-row: 2; aspect-ratio: 4/3; overflow: hidden; margin-top: -60px; }
.sc-small img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sc-small:hover img { transform: scale(1.03); }

/* =============================================
   PROJECTS
   ============================================= */
.section-projects { padding: 100px 48px 120px; background: var(--bg); }
.projects-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.projects-title {
  font-family: var(--serif); font-size: 32px; font-weight: 400; font-style: italic;
  color: var(--dark); margin-bottom: 8px;
}
.projects-desc { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 360px; }
.filter-dropdown-wrap { position: relative; }
.filter-toggle {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
  padding: 8px 0; transition: color .3s;
}
.filter-toggle:hover { color: var(--dark); }
.ft-icon { font-size: 16px; transition: transform .3s; }
.filter-dropdown-wrap.open .ft-icon { transform: rotate(45deg); }
.filter-dropdown {
  position: absolute; top: 100%; right: 0; min-width: 180px;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08); padding: 12px 0;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .3s, transform .3s; z-index: 100;
}
.filter-dropdown-wrap.open .filter-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fd-btn {
  display: block; width: 100%; padding: 8px 20px; text-align: left;
  font-size: 13px; color: var(--muted); transition: all .2s;
}
.fd-btn:hover { background: var(--border-l); color: var(--dark); }
.fd-btn.active { color: var(--accent); font-weight: 600; }
.fd-sep { border: none; border-top: 1px solid var(--border-l); margin: 6px 0; }
.fd-label { display: block; padding: 4px 20px; font-size: 9px; letter-spacing: 2px; color: var(--border); text-transform: uppercase; }

.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.pcard { cursor: pointer; transition: transform .4s var(--ease); }
.pcard:hover { transform: translateY(-3px); }
.pc-img-wrap {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: #e8e5e0; margin-bottom: 14px;
}
.pc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pc-img-wrap img { transform: scale(1.04); }
.pc-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.pc-tags span {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
  padding: 4px 10px; background: rgba(255,255,255,0.88); backdrop-filter: blur(4px); color: var(--dark);
}
.pc-bottom { display: flex; justify-content: space-between; align-items: flex-start; }
.pc-text h3 { font-family: var(--serif); font-size: 17px; font-weight: 400; font-style: italic; color: var(--dark); margin-bottom: 2px; }
.pc-text p { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.pc-arrow { font-size: 16px; color: var(--muted); transition: color .3s, transform .3s; }
.pcard:hover .pc-arrow { color: var(--dark); transform: translateX(3px); }

/* =============================================
   SERVICES + PROCESS
   ============================================= */
.section-services { padding: 100px 48px 120px; background: var(--bg); border-top: 1px solid var(--border-l); }
.sp-big-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 300; line-height: 1.2; color: var(--dark);
  text-align: left; margin-bottom: 60px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.sp-big-title em { font-style: italic; }

/* Process */
.process-wrap {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 60px; align-items: start;
  margin-bottom: 80px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.process-text { font-size: 14px; line-height: 1.8; font-weight: 300; color: var(--text); margin-bottom: 28px; }
.timeline { margin-top: 20px; }
.tl-track {
  position: relative; display: flex; justify-content: space-between;
  padding: 0 8px; margin-bottom: 20px;
}
.tl-line {
  position: absolute; top: calc(100% - 7px); left: 8px; right: 8px;
  height: 1px; background: var(--border);
}
.tl-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 2; cursor: pointer;
}
.tl-num { font-size: 10px; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--bg); transition: all .3s;
}
.tl-step.active .tl-dot { border-color: var(--accent); background: var(--accent); }
.tl-step.active .tl-num { color: var(--accent); }
.tl-step:hover .tl-dot { border-color: var(--accent); }
.tl-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.tl-label { text-align: center; }
.tl-label strong { display: block; font-size: 11px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.tl-label p { font-size: 11px; font-weight: 300; line-height: 1.5; color: var(--muted); }

/* Services list */
.services-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start; max-width: 1100px; margin: 0 auto;
}
.svc-list { margin-top: 12px; }
.svc-item {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--border-l);
  cursor: pointer; transition: all .3s;
}
.svc-item:first-child { border-top: 1px solid var(--border-l); }
.svc-item:hover { padding-left: 8px; }
.svc-num { font-size: 11px; letter-spacing: 1px; color: var(--muted); min-width: 28px; font-weight: 600; }
.svc-name {
  font-size: 15px; font-weight: 400; color: var(--muted);
  flex: 1; transition: color .3s;
}
.svc-item.active .svc-name, .svc-item:hover .svc-name {
  color: var(--dark); text-decoration: underline; text-underline-offset: 3px;
}
.svc-arrow { font-size: 16px; color: var(--accent); opacity: 0; transition: opacity .3s; }
.svc-item.active .svc-arrow, .svc-item:hover .svc-arrow { opacity: 1; }
.svc-detail-col { position: sticky; top: 120px; }
.svc-img-col { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 20px; }
.svc-img-col img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .6s var(--ease); }
.svc-desc { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text); transition: opacity .4s; }

/* =============================================
   TEAM
   ============================================= */
.section-team { padding: 120px 48px; background: var(--bg); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.team-card { text-align: center; }
.tc-img { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 20px; background: #e8e5e0; }
.tc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: all .6s var(--ease); }
.team-card:hover .tc-img img { filter: grayscale(0%); transform: scale(1.03); }
.tc-name { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--dark); margin-bottom: 4px; letter-spacing: 0.5px; }
.tc-role { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 12px; font-weight: 600; }
.tc-bio { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; max-width: 280px; margin: 0 auto; }

/* =============================================
   BLOG — Featured + Grid layout (mockup)
   ============================================= */
.section-blog { padding: 100px 48px 80px; background: var(--bg); border-top: 1px solid var(--border-l); }
.blog-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 1100px; margin: 0 auto 48px;
}
.blog-heading {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 300; font-style: italic; line-height: 1.2;
  color: var(--dark); margin-bottom: 20px;
}
.blog-line { width: 40px; height: 3px; background: var(--accent); }

.blog-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 1100px; margin: 0 auto;
}

/* Featured article (left, large) */
.blog-featured {
  display: flex; flex-direction: column; cursor: pointer;
}
.bf-img-wrap {
  aspect-ratio: 4/3; overflow: hidden; margin-bottom: 16px;
}
.bf-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.blog-featured:hover .bf-img-wrap img { transform: scale(1.03); }
.bf-content { display: flex; flex-direction: column; gap: 6px; }
.bc-tag {
  font-size: 9px; font-weight: 600; letter-spacing: 2px;
  color: var(--accent); display: inline; margin-right: 16px;
}
.bc-date { font-size: 11px; letter-spacing: 1px; color: var(--muted); font-weight: 400; display: inline; }
.bf-title {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  font-style: italic; color: var(--dark); line-height: 1.35;
}
.bc-excerpt { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; }
.bc-arrow {
  font-size: 18px; color: var(--accent); align-self: flex-end;
  transition: transform .3s;
}
.blog-featured:hover .bc-arrow, .blog-card-sm:hover .bc-arrow { transform: translateX(4px); }

/* Small articles grid (right, 2x2) */
.blog-small-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.blog-card-sm {
  display: flex; gap: 0; flex-direction: column;
  cursor: pointer;
}
.bcs-img {
  aspect-ratio: 16/10; overflow: hidden; margin-bottom: 12px;
}
.bcs-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.blog-card-sm:hover .bcs-img img { transform: scale(1.04); }
.bcs-content { display: flex; flex-direction: column; gap: 4px; }
.bcs-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.bc-tag-sm {
  font-size: 9px; font-weight: 600; letter-spacing: 2px;
  color: var(--accent);
}
.bcs-title {
  font-family: var(--serif); font-size: 15px; font-weight: 400;
  font-style: italic; color: var(--dark); line-height: 1.35;
}
.bcs-excerpt { font-size: 12px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* Pagination */
.blog-pagination {
  display: flex; align-items: center; gap: 12px;
  max-width: 1100px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border-l);
}
.bp-arrow {
  font-size: 16px; color: var(--muted); transition: color .3s;
  background: none; border: none; cursor: pointer;
}
.bp-arrow:hover { color: var(--dark); }
.bp-num {
  font-size: 13px; color: var(--muted); cursor: pointer;
  padding: 4px 8px; transition: color .3s;
}
.bp-num.active { color: var(--dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bp-num:hover { color: var(--dark); }
.bp-dots { font-size: 13px; color: var(--border); }

/* =============================================
   BLOG DETAIL OVERLAY
   ============================================= */
.blog-detail {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none; opacity: 0; transition: opacity .4s;
}
.blog-detail.open { pointer-events: auto; opacity: 1; }
.bd-panel {
  position: absolute; top: 0; left: var(--sb-w); right: 0; bottom: 0;
  background: var(--bg);
  display: grid; grid-template-columns: 380px 1fr; grid-template-rows: 1fr auto;
  transform: translateX(40px); transition: transform .5s var(--ease);
}
.blog-detail.open .bd-panel { transform: translateX(0); }
.bd-info {
  grid-column: 1; grid-row: 1;
  padding: 40px 48px; display: flex; flex-direction: column; justify-content: flex-start;
  overflow-y: auto; border-right: 1px solid var(--border-l);
}
.bd-back {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 32px; transition: color .3s;
}
.bd-back em { font-family: var(--serif); font-style: italic; }
.bd-back:hover { color: var(--dark); }
.bd-meta {
  font-size: 10px; letter-spacing: 2px; color: var(--muted);
  font-weight: 500; margin-bottom: 20px;
}
.bd-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300; font-style: italic;
  line-height: 1.15; color: var(--dark); margin-bottom: 20px;
}
.bd-desc { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text); margin-bottom: 24px; }
.bd-line { width: 40px; height: 2px; background: var(--accent); margin-bottom: 24px; }
.bd-index { display: flex; flex-direction: column; }
.bdi-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border-l);
  cursor: pointer; transition: padding-left .3s;
}
.bdi-item:hover { padding-left: 8px; }
.bdi-num { font-size: 11px; letter-spacing: 1px; color: var(--accent); font-weight: 600; min-width: 24px; }
.bdi-name { font-size: 14px; font-weight: 400; color: var(--dark); flex: 1; }
.bdi-arrow { font-size: 14px; color: var(--muted); transition: transform .3s; }
.bdi-item:hover .bdi-arrow { transform: translateX(4px); color: var(--accent); }

.bd-right-pane {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
}
.bd-gallery {
  width: 100%;
  height: 45vh;
  min-height: 300px;
  max-height: 450px;
  display: flex; flex-direction: column; position: relative;
  flex-shrink: 0;
}
.bd-hero-img { flex: 1; background-size: cover; background-position: center; }
.bd-counter {
  position: absolute; top: 20px; right: 24px;
  font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,0.7); font-weight: 500;
  z-index: 10;
}
.bd-carousel {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px; padding: 12px; background: var(--bg); flex-shrink: 0;
}
.bd-carousel img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: pointer;
  opacity: 0.5; transition: opacity .3s;
}
.bd-carousel img:hover, .bd-carousel img.active { opacity: 1; }

.bd-content-text {
  padding: 60px 80px 80px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  column-count: 2;
  column-gap: 50px;
  column-rule: 1px solid var(--border-l);
}
.bd-content-text p {
  margin-bottom: 24px;
  text-align: justify;
}
.bd-content-text h2,
.bd-content-text h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--dark);
  margin-top: 36px;
  margin-bottom: 16px;
  break-inside: avoid;
}
.bd-content-text h2:first-child,
.bd-content-text h3:first-child {
  margin-top: 0;
}
.bd-content-text blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 36px 0;
  line-height: 1.5;
  break-inside: avoid;
}
.bd-content-text img,
.bd-content-text figure {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 2px;
  break-inside: avoid;
  display: block;
}
.bd-content-text ul,
.bd-content-text ol {
  margin-bottom: 24px;
  padding-left: 20px;
}
.bd-content-text li {
  margin-bottom: 8px;
}

.bd-nav {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; border-top: 1px solid var(--border-l); background: var(--bg);
}
.bdn-prev, .bdn-next { display: flex; align-items: center; gap: 14px; color: var(--muted); transition: color .3s; }
.bdn-prev:hover, .bdn-next:hover { color: var(--dark); }

/* =============================================
   CONTACT
   ============================================= */
.section-contact { padding: 0; background: var(--bg); }
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 100%;
}
.contact-left {
  padding: 100px 48px 140px; max-width: 600px; margin-left: auto;
}
.contact-heading {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; font-style: italic; line-height: 1.15;
  color: var(--dark); margin-bottom: 20px;
}
.contact-line { width: 40px; height: 3px; background: var(--accent); margin-bottom: 24px; }
.contact-desc { font-size: 14px; font-weight: 300; color: var(--text); line-height: 1.7; margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.cd-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border-l);
}
.cd-item svg { flex-shrink: 0; color: var(--muted); }
.cd-item > span { font-size: 14px; font-weight: 400; color: var(--dark); flex: 1; }
.cd-link { font-size: 10px !important; }
.contact-note { font-size: 13px; font-weight: 300; color: var(--muted); }

.contact-right { padding: 100px 48px 140px; background: var(--bg); }
.contact-image-wrap {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.05);
}
.contact-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.contact-image-wrap:hover .contact-image {
  transform: scale(1.02);
}
.contact-form { display: flex; flex-direction: column; gap: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.form-group {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--border); padding: 12px 16px;
  margin: -0.5px;
}
.form-group label {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; font-family: var(--sans);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: transparent; border: none; outline: none;
  font-size: 14px; font-family: var(--sans); font-weight: 300;
  color: var(--dark); resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--border); }
.form-group select { color: var(--muted); cursor: pointer; -webkit-appearance: none; }
.form-full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 0; margin-top: -1px; }
.form-actions .btn-fill, .form-actions .btn-outline-dark { flex: 1; justify-content: center; }
.form-privacy { font-size: 12px; font-weight: 300; color: var(--muted); margin-top: 16px; }
.form-privacy a { color: var(--accent); text-decoration: underline; }
.form-ok { display: none; padding: 60px 0; text-align: center; }
.form-ok.show { display: block; }
.form-ok h3 { font-family: var(--serif); font-size: 28px; font-weight: 300; font-style: italic; color: var(--dark); margin-bottom: 12px; }
.form-ok p { font-size: 14px; font-weight: 300; color: var(--muted); }

/* Contact bottom bar */
.contact-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-l);
  background: var(--dark);
}
.cb-item {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 32px; color: #fff;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background .3s;
}
.cb-item:last-child { border-right: none; }
.cb-item:hover { background: rgba(255,255,255,0.04); }
.cb-item svg { flex-shrink: 0; color: rgba(255,255,255,0.6); }
.cb-item div { flex: 1; }
.cb-item strong {
  display: block; font-size: 11px; letter-spacing: 2px;
  font-weight: 600; color: #fff; margin-bottom: 2px;
}
.cb-item span { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.5); }
.cb-arrow { font-size: 18px; color: rgba(255,255,255,0.4); }

.main-footer {
  padding: 36px 48px; background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.main-footer p { font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 0.5px; }

/* =============================================
   PROJECT DETAIL
   ============================================= */
.project-detail {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none; opacity: 0; transition: opacity .4s;
}
.project-detail.open { pointer-events: auto; opacity: 1; }
.pd-panel {
  position: absolute; top: 0; left: var(--sb-w); right: 0; bottom: 0;
  background: var(--bg);
  display: grid; grid-template-columns: 380px 1fr; grid-template-rows: 1fr auto;
  transform: translateX(40px); transition: transform .5s var(--ease);
}
.project-detail.open .pd-panel { transform: translateX(0); }
.pd-info {
  grid-column: 1; grid-row: 1;
  padding: 40px 48px; display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
}
.pd-back {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 40px; transition: color .3s;
}
.pd-back em { font-family: var(--serif); font-style: italic; }
.pd-back:hover { color: var(--dark); }
.pd-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300; font-style: italic;
  line-height: 1.1; color: var(--dark); margin-bottom: 20px;
}
.pd-line { width: 40px; height: 2px; background: var(--accent); margin-bottom: 32px; }
.pd-specs { width: 100%; margin-bottom: 28px; border-collapse: collapse; }
.pd-specs td { padding: 10px 0; font-size: 13px; border-bottom: 1px solid var(--border-l); }
.pd-specs td:first-child { font-size: 11px; letter-spacing: 1px; color: var(--muted); width: 110px; font-weight: 600; }
.pd-specs td:last-child { color: var(--dark); font-weight: 400; }
.pd-desc { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text); margin-bottom: 24px; }

.pd-gallery {
  grid-column: 2; grid-row: 1;
  display: flex; flex-direction: column; position: relative;
}
.pd-hero-img { flex: 1; background-size: cover; background-position: center; min-height: 400px; }
.pd-counter {
  position: absolute; top: 20px; right: 24px;
  font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,0.7); font-weight: 500;
}
.pd-carousel {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px; padding: 12px; background: var(--bg); flex-shrink: 0;
}
.pd-carousel img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: pointer;
  opacity: 0.5; transition: opacity .3s;
}
.pd-carousel img:hover, .pd-carousel img.active { opacity: 1; }

.pd-nav {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; border-top: 1px solid var(--border-l); background: var(--bg);
}
.pdn-prev, .pdn-next { display: flex; align-items: center; gap: 14px; color: var(--muted); transition: color .3s; }
.pdn-prev:hover, .pdn-next:hover { color: var(--dark); }
.pdn-arrow { font-size: 18px; }
.pdn-label small { display: block; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pdn-label strong { display: block; font-family: var(--serif); font-size: 14px; font-weight: 400; font-style: italic; color: var(--dark); }
.pdn-grid {
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: color .3s;
}
.pdn-grid:hover { color: var(--dark); }

/* =============================================
   UTILITIES
   ============================================= */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 64px; background: rgba(245,242,237,0.96);
  backdrop-filter: blur(12px); border-top: 1px solid var(--border-l);
  z-index: 950; align-items: center; justify-content: space-around; padding: 0 24px;
}
.mbn-item { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--muted); transition: color .3s; }
.mbn-item.active, .mbn-item:hover { color: var(--dark); }
.mbn-cta {
  padding: 10px 28px; font-size: 12px; font-weight: 600; letter-spacing: 2px;
  background: var(--accent); color: #fff; border-radius: 24px; transition: background .3s;
}
.mbn-cta:hover { background: var(--accent-h); }
.wa-float {
  position: fixed; bottom: 32px; right: 32px;
  width: 52px; height: 52px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 999;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: transform .3s, box-shadow .3s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
.wa-float svg { width: 26px; height: 26px; color: #fff; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero-left { max-width: 80% !important; }
  .hero-title { font-size: clamp(60px, 8vw, 100px) !important; line-height: 1.1 !important; }
  .hero-desc { font-size: 14px !important; margin-bottom: 24px !important; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-wrap { grid-template-columns: 1fr; gap: 40px; }
  .process-wrap { grid-template-columns: 1fr; gap: 40px; }
  .tl-label p { font-size: 10px; }
  .pd-panel { grid-template-columns: 300px 1fr; }
  .bd-panel { grid-template-columns: 300px 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-right { padding-top: 40px; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-small-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sb-w: 0px; }
  
  /* Mobile drawer sidebar override */
  .sidebar {
    display: flex !important;
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; height: 100vh;
    background: var(--bg);
    border-right: 1px solid var(--border-l);
    padding: 100px 32px 40px;
    z-index: 1200;
    transform: translateX(-100%) !important;
    transition: transform .4s var(--ease);
  }
  body.mobile-menu-open .sidebar {
    transform: translateX(0) !important;
  }
  body.mobile-menu-open::after {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1100;
    pointer-events: auto;
  }
  
  body.sidebar-active .sidebar-content { margin-left: 0; }
  body.sidebar-active .header-nav { opacity: 0; pointer-events: none; }
  .header-nav { display: none; }
  .top-header { padding: 0 20px; height: 60px; }
  body.sidebar-active .top-header { background: rgba(245,242,237,0.96); }
  body.sidebar-active .logo-img { filter: none; }
  
  /* Show burger on mobile */
  .header-burger {
    display: flex;
  }
  body.mobile-menu-open .header-burger span {
    background: var(--dark) !important;
  }
  body.sidebar-active .header-burger span { background: var(--dark); }
  .logo-img { height: 32px; }
  .header-lang { display: none; }
  .hero { height: calc(100vh - 64px); }
  .hero-content { flex-direction: column; justify-content: flex-end; padding: 0 20px 100px; gap: 20px; }
  .hero-right { display: none; }
  .hero-left { max-width: 100% !important; }
  .hero-title { font-size: clamp(32px, 8vw, 44px) !important; line-height: 1.15 !important; }
  .hero-desc { font-size: 13px !important; line-height: 1.6 !important; margin-bottom: 24px !important; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn-fill, .hero-buttons .btn-outline { width: 100%; justify-content: center; }
  .hero-vertical-text, .hero-scroll { display: none; }
  .hero-bottom { padding: 16px 20px; }
  .section-studio, .section-projects, .section-services, .section-team, .section-blog { padding: 80px 20px; }
  .studio-wrap { grid-template-columns: 1fr; gap: 40px; }
  .studio-collage { grid-template-columns: 1fr 1fr; }
  .sc-small { margin-top: 0; }
  .services-wrap { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .tl-labels { grid-template-columns: repeat(4, 1fr); }
  .process-wrap { grid-template-columns: 1fr; gap: 30px; }
  .pd-panel { left: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .pd-info { grid-column: 1; grid-row: 1; padding: 80px 20px 32px; }
  .pd-gallery { grid-column: 1; grid-row: 2; min-height: 300px; }
  .pd-nav { grid-column: 1; grid-row: 3; padding: 16px 20px; }
  .bd-panel { left: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .bd-info { grid-column: 1; grid-row: 1; padding: 80px 20px 32px; border-right: none; border-bottom: 1px solid var(--border-l); }
  .bd-right-pane { grid-column: 1; grid-row: 2; }
  .bd-gallery { min-height: 300px; }
  .bd-content-text { column-count: 1; padding: 40px 24px; }
  .bd-nav { grid-column: 1; grid-row: 3; padding: 16px 20px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-left, .contact-right { padding: 60px 20px 80px; max-width: 100%; }
  .contact-bar { grid-template-columns: 1fr; }
  .cb-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .form-actions { flex-direction: column; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-small-grid { grid-template-columns: 1fr; }
  .mobile-bottom-nav { display: flex; }
  .wa-float { bottom: 80px; }
  .main-footer { padding: 36px 20px 100px; }
  
  /* Studio Collage & Callouts Mobile */
  .studio-single-image-wrap {
    aspect-ratio: 4/3;
  }
  .studio-quote-overlay {
    position: relative;
    bottom: auto; right: auto;
    max-width: 100%;
    padding: 24px 20px 0;
    box-shadow: none;
    background: transparent;
  }
  .studio-quote-overlay p {
    font-size: 17px;
  }

  /* Studio Overlay Mobile */
  .so-panel {
    left: 0;
  }
  .so-scroll-container {
    padding: 60px 20px 80px;
  }
  .so-top-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .so-mid-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .so-bottom-img-wrap {
    aspect-ratio: 3/2;
  }
  .so-progress-bar {
    display: none;
  }
}

/* =============================================
   STUDIO INTERACTIVE COLLAGE & CALLOUTS
   ============================================= */
.section-studio {
  padding: 140px 48px;
  background-color: var(--bg);
  background-image: url('images/studio/blueprint-bg.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
}
.studio-single-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 16;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
}
.studio-single-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.studio-single-image-wrap:hover img {
  transform: scale(1.02);
}

/* Quote card overlay on bottom right of the image */
.studio-quote-overlay {
  position: absolute;
  bottom: 0; right: 0;
  background: var(--bg);
  padding: 32px 40px;
  max-width: 380px;
  box-shadow: -10px -10px 40px rgba(0,0,0,0.05);
  z-index: 5;
}
.studio-quote-overlay p {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 20px);
  font-style: italic;
  line-height: 1.5;
  color: var(--accent);
  margin: 0;
  font-weight: 300;
}

/* Mini timeline / recorrido */
.studio-mini-timeline {
  position: relative;
  margin: 36px 0 44px;
  padding: 10px 0;
  max-width: 480px;
}
.smt-line {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-l);
  z-index: 1;
}
.smt-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.smt-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg);
  padding: 0 16px;
}
.smt-dot-wrap:first-child {
  padding-left: 0;
}
.smt-dot-wrap:last-child {
  padding-right: 0;
}
.smt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 10px;
  box-shadow: 0 0 0 4px var(--bg);
}
.smt-year {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.smt-label {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
}

/* =============================================
   STUDIO DETAIL OVERLAY
   ============================================= */
.studio-overlay {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none; opacity: 0; transition: opacity .4s;
}
.studio-overlay.open { pointer-events: auto; opacity: 1; }
.so-panel {
  position: absolute; top: 0; left: var(--sb-w); right: 0; bottom: 0;
  background: var(--bg);
  transform: translateX(40px); transition: transform .5s var(--ease);
  display: flex; flex-direction: column;
}
.studio-overlay.open .so-panel { transform: translateX(0); }

/* Close Buttons */
.so-close, .pd-close, .bd-close {
    position: absolute;
    top: 50px;
    right: 60px;
    font-size: 36px;
    font-weight: 100;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .3s, opacity .3s;
    z-index: 110;
    line-height: 1;
}
.so-close:hover { color: var(--dark); }

.pd-close, .bd-close {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.pd-close:hover, .bd-close:hover {
  color: #fff;
}

/* Back Link for Studio */
.so-back {
  font-size: 12px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 40px; transition: color .3s;
  text-decoration: none;
}
.so-back em { font-family: var(--serif); font-style: italic; }
.so-back:hover { color: var(--dark); }

/* Scroll Container */
.so-scroll-container {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 40px 48px 120px; scroll-behavior: smooth;
}

/* Sections */
.so-section {
  width: 100%; max-width: none;
}
.so-sec-intro { margin-bottom: 90px; }
.so-sec-columns { margin-bottom: 90px; }
.so-sec-facade { margin-bottom: 0; }

/* Grid Top */
.so-top-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 72px; align-items: center;
}
.so-label { color: var(--accent); }
.so-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 300; font-style: italic;
  line-height: 1.15; color: var(--dark); margin-top: 12px; margin-bottom: 24px;
}
.so-line { width: 40px; height: 2px; background: var(--accent); margin-bottom: 32px; }
.so-desc { font-size: 14px; font-weight: 300; line-height: 1.85; color: var(--text); margin-bottom: 20px; }
.so-desc:last-child { margin-bottom: 0; }

.so-hero-img-wrap {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.so-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* 3-Column Grid */
.so-mid-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; border-top: 1px solid var(--border); padding-top: 60px;
}
.so-col { display: flex; flex-direction: column; }
.so-col-num {
  font-size: 11px; font-weight: 600; color: var(--accent);
  letter-spacing: 1px; margin-bottom: 8px;
}
.so-col-title {
  font-family: var(--serif); font-size: 24px; font-weight: 400; font-style: italic;
  color: var(--dark); margin-bottom: 12px; line-height: 1.2;
}
.so-col-desc { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--text); margin-bottom: 20px; flex-grow: 1; }
.so-col-img-wrap {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; margin-top: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.so-col-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Bottom Wide Image */
.so-bottom-img-wrap {
  width: 100%; aspect-ratio: 16/5; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.so-bottom-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Scrollspy Indicator on the Right */
.so-progress-bar {
  position: absolute; top: 50%; right: 32px; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 100;
}
.sop-num {
  font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--muted);
  writing-mode: vertical-rl; text-orientation: mixed; margin-bottom: 8px;
}
.sop-dots { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.sop-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: background .3s, transform .3s;
}
.sop-dot:hover { background: var(--muted); transform: scale(1.2); }
.sop-dot.active { background: var(--accent); transform: scale(1.5); }

/* Pillars Grid inside Studio Overlay */
.so-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  margin-top: 56px;
  margin-bottom: 48px;
  border-top: 1px solid var(--border-l);
  padding-top: 48px;
}
.so-pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.so-pillar-num {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  font-weight: 300;
}
.so-pillar-content {
  flex: 1;
}
.so-pillar-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}
.so-pillar-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .so-pillars-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
    margin-bottom: 32px;
    padding-top: 32px;
  }
}

/* End of Theme Styles */

