/*
Theme Name: Ahmed Elshora Portfolio — V14 Premium Editable
Theme URI: https://example.com/
Author: Ahmed Elshora
Description: Approved V8 portfolio design with connected Gutenberg pages, same-category project navigation, aligned architecture grids, brighter category imagery, premium technical drawing tabs and responsive editorial layouts.
Version: 14.0.0
Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: ahmed-elshora
*/
:root {
  --ink: #171717;
  --muted: #6e6a64;
  --paper: #f7f5f1;
  --white: #ffffff;
  --line: rgba(23, 23, 23, .14);
  --charcoal: #292929;
  --accent: #947a52;
  --container: 1240px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(20, 18, 15, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: #d9cbb4; color: var(--ink); }

.site-shell { min-height: 100vh; overflow: clip; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container--narrow { width: min(calc(100% - 40px), 880px); margin-inline: auto; }
.section { padding: 110px 0; }
.section--compact { padding: 76px 0; }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--paper { background: var(--paper); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .9;
}
.h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: .92;
}
.h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
}
.h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
}
.lead { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.section--dark .lead, .on-dark { color: rgba(255,255,255,.74); }
.kicker { max-width: 680px; color: var(--muted); }
.rule { height: 1px; background: var(--line); }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 92px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; min-width: 180px; }
.brand img { width: 190px; height: 66px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav__list { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.site-nav__list li { margin: 0; list-style: none; }
.site-nav a { position: relative; font-family: var(--serif); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--ink); transition: width .25s ease; }
.site-nav a:hover::after, .site-nav .current-menu-item > a::after, .site-nav a[aria-current="page"]::after { width: 100%; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 6px auto; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,10,.7), rgba(10,10,10,.18) 70%), linear-gradient(0deg, rgba(10,10,10,.46), transparent 55%); }
.hero__content { width: min(calc(100% - 40px), var(--container)); padding: 110px 0; }
.hero__content p { max-width: 660px; margin: 26px 0 0; color: rgba(255,255,255,.84); font-size: clamp(1rem, 1.5vw, 1.28rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero__scroll { position: absolute; right: 30px; bottom: 34px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.75); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; transform: rotate(90deg) translateX(50%); transform-origin: right bottom; }
.hero__scroll::before { content: ""; width: 54px; height: 1px; background: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: transform .25s ease, background .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--light { border-color: #fff; background: #fff; color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.65); background: transparent; color: #fff; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .68rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.text-link::after { content: "→"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(5px); }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.intro-visual { position: relative; min-height: 610px; overflow: hidden; background: #ddd; }
.intro-visual > img:first-child { width: 100%; height: 100%; min-height: 610px; object-fit: cover; filter: grayscale(1); }
.portrait-medallion { position: absolute; right: 6%; bottom: 7%; width: min(42%, 310px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 10px solid rgba(255,255,255,.7); box-shadow: var(--shadow); }
.portrait-medallion img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: grayscale(1); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 52px; }
.section-heading .lead { margin: 0; max-width: 540px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expertise-card { position: relative; min-height: 520px; overflow: hidden; background: #222; color: #fff; isolation: isolate; }
.expertise-card__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.expertise-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,7,7,.84), rgba(7,7,7,.03) 66%); }
.expertise-card__content { position: absolute; inset: auto 0 0; padding: 34px; }
.expertise-card__content p { color: rgba(255,255,255,.72); }
.expertise-card:hover .expertise-card__image { transform: scale(1.04); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 46px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 6.8rem); font-weight: 500; line-height: .85; }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.category-stack { display: grid; gap: 12px; }
.category-banner { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; }
.category-banner img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.category-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12,12,12,.48); transition: background .3s ease; }
.category-banner h2 { max-width: 1100px; padding: 25px; text-align: center; font-family: var(--serif); font-size: clamp(2.1rem, 4.5vw, 4.9rem); font-weight: 500; letter-spacing: -.02em; line-height: .95; text-transform: uppercase; }
.category-banner:hover img { transform: scale(1.035); }
.category-banner:hover::after { background: rgba(12,12,12,.35); }

.page-hero { position: relative; min-height: 62vh; display: grid; align-items: end; overflow: hidden; isolation: isolate; color: #fff; }
.page-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.2)); }
.page-hero__content { padding: 90px 0 70px; }
.page-hero__content .lead { color: rgba(255,255,255,.78); }

.timeline { position: relative; margin-top: 70px; }
.timeline::before { content: ""; position: absolute; left: calc(50% - .5px); top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; padding: 70px 0; }
.timeline-item:nth-child(even) .timeline-copy { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-media { grid-column: 1; grid-row: 1; }
.timeline-copy { position: relative; padding: 0 18px; }
.timeline-copy::before { content: ""; position: absolute; top: 8px; width: 11px; height: 11px; border: 2px solid var(--white); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.timeline-item:nth-child(odd) .timeline-copy::before { right: -50px; }
.timeline-item:nth-child(even) .timeline-copy::before { left: -50px; }
.phase { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.timeline-media { min-height: 410px; }
.timeline-media img { width: 100%; height: 100%; object-fit: cover; }
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.criteria div { padding-top: 16px; border-top: 1px solid var(--line); }
.criteria strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.criteria span { color: var(--muted); font-size: .9rem; }

.project-section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.project-head { display: grid; grid-template-columns: .68fr 1.32fr; gap: 70px; margin-bottom: 52px; }
.project-meta { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.project-copy p { color: var(--muted); max-width: 760px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(150px, 24vw); gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery .wide { grid-column: span 8; }
.gallery .medium { grid-column: span 6; }
.gallery .small { grid-column: span 4; }
.gallery .tall { grid-row: span 2; }
.gallery .full { grid-column: 1 / -1; }

.arch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.arch-card { position: relative; min-height: 520px; overflow: hidden; background: #ddd; isolation: isolate; color: #fff; }
.arch-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.arch-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 65%); }
.arch-card__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px; }
.arch-card__content p { max-width: 560px; margin-bottom: 0; color: rgba(255,255,255,.75); }
.arch-card:hover img { transform: scale(1.035); }

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.capability { padding: 34px; border: 1px solid var(--line); background: var(--white); }
.capability__number { color: var(--accent); font-family: var(--serif); font-size: 2.5rem; }
.capability p { color: var(--muted); }

.contact-panel { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.contact-panel > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.1)); }
.contact-card { width: min(100%, 520px); padding: clamp(30px, 5vw, 52px); background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 18px; margin-top: 28px; }
.field label { display: block; margin-bottom: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid #aaa; border-radius: 0; padding: 12px 0; background: transparent; color: var(--ink); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.form-message { padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); }
.form-message--success { border-color: #73916c; }
.form-message--error { border-color: #a15858; }
.contact-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.contact-detail { padding-top: 20px; border-top: 1px solid var(--line); }
.contact-detail strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.contact-detail span, .contact-detail a { color: var(--muted); }

.site-footer { padding: 70px 0 28px; background: var(--charcoal); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .7fr; gap: 50px; }
.footer-brand img { width: 210px; filter: invert(1) grayscale(1); opacity: .95; }
.footer-brand p { max-width: 450px; color: rgba(255,255,255,.6); }
.footer-title { margin: 0 0 18px; color: rgba(255,255,255,.45); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.78); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.44); font-size: .76rem; }

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

@media (max-width: 980px) {
  .site-header { height: 78px; }
  .brand img { width: 160px; height: 58px; }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; left: 0; right: 0; top: 78px; display: grid; gap: 0; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); transform: translateY(-140%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; }
  .site-nav__list { display: grid; gap: 0; width: 100%; }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .hero { min-height: calc(100vh - 78px); }
  .intro-grid, .project-head { grid-template-columns: 1fr; }
  .cards-3, .capabilities { grid-template-columns: 1fr 1fr; }
  .section-heading { display: block; }
  .section-heading .lead { margin-top: 18px; }
  .timeline::before { left: 7px; }
  .timeline-item, .timeline-item:nth-child(even) { grid-template-columns: 1fr; gap: 30px; padding-left: 36px; }
  .timeline-item:nth-child(even) .timeline-copy, .timeline-item:nth-child(even) .timeline-media { grid-column: 1; grid-row: auto; }
  .timeline-item .timeline-copy::before, .timeline-item:nth-child(even) .timeline-copy::before, .timeline-item:nth-child(odd) .timeline-copy::before { left: -34px; right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container, .container--narrow { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .section--compact { padding: 56px 0; }
  .hero__content { width: min(calc(100% - 28px), var(--container)); padding: 85px 0; }
  .hero__scroll { display: none; }
  .cards-3, .capabilities, .stats, .arch-grid, .contact-details, .footer-grid { grid-template-columns: 1fr; }
  .stats { border: 0; }
  .stat { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .expertise-card { min-height: 460px; }
  .intro-visual, .intro-visual > img:first-child { min-height: 480px; }
  .portrait-medallion { width: 44%; border-width: 6px; }
  .category-banner { min-height: 210px; }
  .project-section { padding: 78px 0; }
  .gallery { display: block; }
  .gallery figure { margin-bottom: 12px; aspect-ratio: 4/3; }
  .gallery figure.tall { aspect-ratio: 3/4; }
  .arch-card { min-height: 440px; }
  .criteria { grid-template-columns: 1fr; }
  .contact-panel { min-height: auto; padding: 40px 0; }
  .contact-panel::after { background: rgba(0,0,0,.35); }
  .contact-card { width: calc(100% - 28px); margin-inline: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Version 2: exact multi-page portfolio index and automatic page setup */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.portfolio-index { display: grid; gap: 10px; padding: 10px 0; background: #fff; }
.portfolio-band { position: relative; min-height: clamp(220px, 26vw, 390px); display: grid; place-items: center; overflow: hidden; isolation: isolate; color: #fff; }
.portfolio-band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.portfolio-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,8,8,.46); transition: background .3s ease; }
.portfolio-band span { padding: 30px; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 6rem); font-weight: 500; line-height: .95; letter-spacing: -.025em; text-align: center; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.portfolio-band:hover img { transform: scale(1.025); }
.portfolio-band:hover::after { background: rgba(8,8,8,.33); }
.portfolio-social-bar { display: grid; justify-items: center; gap: 18px; padding: 44px 20px 50px; background: var(--charcoal); color: #fff; }
.portfolio-social-bar p { margin: 0; color: rgba(255,255,255,.55); font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.socials svg { width: 24px; height: 24px; fill: currentColor; }
.socials a, .social-placeholder { display: grid; place-items: center; width: 48px; min-width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.25); color: #fff; }
.social-placeholder { opacity: .75; }
.site-footer .socials a, .site-footer .social-placeholder { border-color: rgba(255,255,255,.25); }

@media (max-width: 700px) {
  .portfolio-index { gap: 6px; padding: 6px 0; }
  .portfolio-band { min-height: 210px; }
  .portfolio-band span { font-size: clamp(2rem, 10vw, 3.5rem); }
}


/* V3 premium project navigation and viewing */
.project-preview-section{padding:72px 0 92px;background:#f3f1ec;border-bottom:1px solid var(--line)}
.project-preview-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:34px}
.project-preview-head .lead{max-width:620px;margin:0;color:var(--muted)}
.project-preview-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:18px}
.project-preview{position:relative;grid-column:span 6;min-height:390px;overflow:hidden;background:#111;color:#fff;isolation:isolate;text-decoration:none}
.project-preview:nth-child(3n){grid-column:span 12;min-height:460px}
.project-preview img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1),filter .5s ease}
.project-preview:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.82));transition:background .45s ease}
.project-preview__content{position:absolute;left:0;right:0;bottom:0;padding:34px;display:grid;gap:8px}
.project-preview__number{font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.68)}
.project-preview__title{font-family:var(--serif);font-size:clamp(1.9rem,3.2vw,3.35rem);line-height:.95;margin:0}
.project-preview__meta{display:flex;justify-content:space-between;align-items:center;gap:20px;color:rgba(255,255,255,.72);font-size:.76rem;letter-spacing:.12em;text-transform:uppercase}
.project-preview__arrow{width:46px;height:46px;border:1px solid rgba(255,255,255,.5);border-radius:50%;display:grid;place-items:center;font-size:1.25rem;transition:transform .35s ease,background .35s ease,color .35s ease}
.project-preview:hover img,.project-preview:focus-visible img{transform:scale(1.055);filter:saturate(1.05)}
.project-preview:hover:after,.project-preview:focus-visible:after{background:linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,.9))}
.project-preview:hover .project-preview__arrow,.project-preview:focus-visible .project-preview__arrow{transform:translate(5px,-5px);background:#fff;color:#111}
.project-detail{scroll-margin-top:94px;position:relative}
.project-detail:before{content:"";position:absolute;top:0;left:50%;width:min(calc(100% - 48px),var(--container));height:1px;background:rgba(0,0,0,.12);transform:translateX(-50%)}
.project-detail.section--dark:before{background:rgba(255,255,255,.18)}
.project-index-pill{display:inline-flex;align-items:center;gap:10px;margin-bottom:16px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;font-size:.66rem;letter-spacing:.18em;text-transform:uppercase}
.project-detail.section--dark .project-index-pill{border-color:rgba(255,255,255,.24)}
.gallery figure{cursor:zoom-in}
.gallery figure:after{content:"View";position:absolute;right:14px;bottom:14px;padding:7px 10px;background:rgba(255,255,255,.9);color:#111;font-size:.64rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;opacity:0;transform:translateY(8px);transition:.3s ease}
.gallery figure{position:relative}
.gallery figure:hover:after{opacity:1;transform:none}
.lightbox{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:32px;background:rgba(5,5,5,.94);backdrop-filter:blur(10px)}
.lightbox.is-open{display:flex}
.lightbox__image{max-width:min(94vw,1600px);max-height:88vh;object-fit:contain;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.lightbox__close{position:absolute;top:22px;right:26px;width:50px;height:50px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:transparent;color:#fff;font-size:1.7rem;cursor:pointer}
.lightbox__caption{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);max-width:80vw;color:rgba(255,255,255,.72);font-size:.75rem;letter-spacing:.08em;text-align:center}
.project-jump{position:sticky;top:78px;z-index:30;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.project-jump__inner{display:flex;gap:10px;overflow:auto;padding:10px 0;scrollbar-width:none}
.project-jump__inner::-webkit-scrollbar{display:none}
.project-jump a{white-space:nowrap;padding:9px 13px;border:1px solid var(--line);border-radius:999px;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;background:#fff}
.project-jump a:hover{background:#111;color:#fff;border-color:#111}
@media(max-width:900px){.project-preview,.project-preview:nth-child(3n){grid-column:span 12;min-height:380px}.project-preview-head{display:block}.project-preview-head .lead{margin-top:14px}.project-jump{top:78px}}
@media(max-width:700px){.project-preview-section{padding:52px 0 64px}.project-preview{min-height:320px}.project-preview__content{padding:24px}.project-preview__title{font-size:2.15rem}.project-preview__meta{align-items:end}.project-detail{scroll-margin-top:126px}.lightbox{padding:16px}.lightbox__close{top:12px;right:12px}.gallery figure:after{display:none}}
@media(prefers-reduced-motion:reduce){.project-preview img,.project-preview__arrow{transition:none}.lightbox{backdrop-filter:none}}


/* V4 — portfolio system */
.portfolio-index{padding:clamp(72px,9vw,150px) 0;background:#f7f5f0}.portfolio-group+.portfolio-group{margin-top:clamp(80px,10vw,160px)}
.portfolio-group__head{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.55fr);gap:40px;align-items:end;margin-bottom:38px}.portfolio-group__head p{max-width:620px}
.project-card-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:22px}.project-card{grid-column:span 4;position:relative;display:block;min-height:520px;overflow:hidden;background:#111;color:#fff;text-decoration:none;border-radius:2px;isolation:isolate}.project-card--wide{grid-column:span 8}.project-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .9s cubic-bezier(.2,.7,.2,1)}.project-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 38%,rgba(0,0,0,.88));z-index:1}.project-card__body{position:absolute;left:0;right:0;bottom:0;padding:28px;z-index:2}.project-card__kicker{font-size:12px;letter-spacing:.18em;text-transform:uppercase;opacity:.78}.project-card__title{font-family:var(--wp--preset--font-family--display,Georgia,serif);font-size:clamp(26px,3vw,46px);line-height:1.03;margin:10px 0}.project-card__view{display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(255,255,255,.35);padding-top:16px;margin-top:18px}.project-card:hover img{transform:scale(1.055)}.project-card:hover .project-card__view span:last-child{transform:translate(5px,-5px)}.project-card__view span:last-child{transition:transform .3s ease}
.project-filter{position:sticky;top:72px;z-index:15;background:rgba(247,245,240,.9);backdrop-filter:blur(16px);border-bottom:1px solid rgba(0,0,0,.12)}.project-filter__inner{display:flex;gap:10px;overflow:auto;padding:14px 0}.project-filter a{white-space:nowrap;text-decoration:none;color:inherit;border:1px solid rgba(0,0,0,.18);border-radius:999px;padding:9px 14px;font-size:13px}.project-filter a:hover{background:#111;color:#fff}
.case-hero{min-height:84vh;position:relative;display:flex;align-items:flex-end;color:#fff;overflow:hidden;background:#111}.case-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.case-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.82))}.case-hero__content{position:relative;z-index:2;padding-bottom:clamp(50px,8vw,110px);display:grid;grid-template-columns:1fr .45fr;gap:40px;align-items:end}.case-hero__meta{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;letter-spacing:.1em;text-transform:uppercase}.case-intro{padding:clamp(70px,10vw,150px) 0}.case-intro__grid{display:grid;grid-template-columns:.7fr 1.3fr;gap:clamp(40px,8vw,120px)}.case-facts{display:grid;gap:16px}.case-fact{border-top:1px solid rgba(0,0,0,.2);padding-top:12px}.case-fact b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.15em;margin-bottom:6px}.case-gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:18px;padding-bottom:clamp(80px,10vw,160px)}.case-gallery figure{grid-column:span 6;margin:0;overflow:hidden}.case-gallery figure.full{grid-column:1/-1}.case-gallery figure.portrait{grid-column:span 4}.case-gallery img{width:100%;height:100%;min-height:420px;object-fit:cover;cursor:zoom-in;transition:transform .7s ease}.case-gallery figure:hover img{transform:scale(1.02)}
.case-layout-editorial .case-gallery figure:nth-child(3n+1){grid-column:span 8}.case-layout-editorial .case-gallery figure:nth-child(3n+2){grid-column:span 4}.case-layout-editorial .case-gallery figure:nth-child(3n){grid-column:1/-1}.case-layout-cinematic .case-gallery{gap:0}.case-layout-cinematic .case-gallery figure{grid-column:1/-1;min-height:75vh}.case-layout-cinematic .case-gallery img{min-height:75vh}.case-layout-grid .case-gallery figure{grid-column:span 4}
.next-project{background:#111;color:#fff;padding:70px 0}.next-project a{color:#fff;text-decoration:none;display:flex;justify-content:space-between;align-items:center;gap:30px}
@media(max-width:900px){.portfolio-group__head,.case-hero__content,.case-intro__grid{grid-template-columns:1fr}.project-card,.project-card--wide{grid-column:span 6;min-height:430px}.case-gallery figure,.case-layout-editorial .case-gallery figure:nth-child(n),.case-layout-grid .case-gallery figure{grid-column:1/-1}.case-gallery img{min-height:320px}}
@media(max-width:620px){.project-card,.project-card--wide{grid-column:1/-1;min-height:390px}.case-hero{min-height:72vh}.project-filter{top:60px}.case-gallery{gap:10px}.case-gallery img{min-height:260px}.case-hero__meta{gap:10px}}

/* ================================================================
   V5 — original-composition portfolio system
   ================================================================ */
body { overflow-x: hidden; }
body.home .site-footer,
body.page-template-page-about-ahmed .site-footer { display: none; }
.project-card__title small,
.case-next h2 span,
.original-case__masthead h1 span,
.original-story__intro h2 span,
.architecture-story__intro h2 span { display: block; font-size: .65em; font-weight: 400; color: inherit; }

/* Home — follows the supplied presentation page while removing duplicate portfolio bands. */
.hero--home { min-height: clamp(540px, 72vw, 820px); }
.hero--home::after { background: rgba(0,0,0,.35); }
.hero__content--center { text-align: center; display: grid; justify-items: center; padding: 80px 0; }
.hero__content--center .display { max-width: 960px; font-size: clamp(2.7rem,5.7vw,5.7rem); line-height: .96; }
.hero__content--center p { max-width: 720px; font-family: var(--serif); font-size: clamp(1.05rem,1.9vw,1.45rem); line-height: 1.25; }
.home-about { position: relative; min-height: clamp(520px,50vw,720px); color:#fff; isolation:isolate; overflow:hidden; }
.home-about__background { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:grayscale(1); z-index:-3; }
.home-about__shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.34) 62%,rgba(0,0,0,.2)); z-index:-2; }
.home-about__inner { min-height:inherit; display:grid; grid-template-columns:1.1fr .7fr; gap:60px; align-items:center; padding-block:70px; }
.home-about__copy { max-width:760px; }
.home-about__copy h2 { font-size:clamp(2.2rem,4vw,4.3rem); }
.home-about__copy p { font-family:var(--serif); font-size:clamp(1.05rem,1.7vw,1.35rem); line-height:1.32; color:rgba(255,255,255,.9); }
.text-link--light { color:#fff; }
.home-about__portrait { display:flex; justify-content:center; align-items:center; }
.home-about__portrait-ring { width:min(430px,80%); aspect-ratio:1; border-radius:50%; overflow:hidden; background:rgba(255,255,255,.15); box-shadow:0 22px 80px rgba(0,0,0,.32); }
.home-about__portrait img { width:100%; height:100%; object-fit:cover; object-position:center top; filter:grayscale(1); }
.home-expertise { padding:50px 0 80px; background:#fff; }
.home-expertise__intro { max-width:760px; margin-bottom:32px; }
.home-expertise__intro .h2 { font-size:clamp(2.2rem,3.7vw,3.6rem); }
.home-expertise__intro p { margin:8px 0 0; font-family:var(--serif); font-size:clamp(1.02rem,1.55vw,1.25rem); line-height:1.3; }
.home-expertise__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(32px,6vw,88px); text-align:center; }
.home-expertise__card { min-width:0; }
.home-expertise__image { display:block; width:min(100%,320px); aspect-ratio:1.25; margin:0 auto 18px; overflow:hidden; }
.home-expertise__image img { width:100%; height:100%; object-fit:cover; transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.home-expertise__card:hover img { transform:scale(1.045); }
.home-expertise__card h3 { margin:0 auto; max-width:330px; font-family:var(--serif); font-size:clamp(1.75rem,2.5vw,2.45rem); line-height:1.02; font-weight:500; }
.home-expertise__card p { max-width:310px; margin:16px auto; font-family:var(--serif); line-height:1.25; }
.home-expertise__button { display:inline-flex; align-items:center; justify-content:center; min-width:150px; padding:9px 20px; background:#4b473e; color:#fff; font-family:var(--serif); transition:transform .25s ease,background .25s ease; }
.home-expertise__button:hover { transform:translateY(-3px); background:#171717; }
.home-contact { position:relative; min-height:650px; isolation:isolate; border-bottom:48px solid #363636; overflow:hidden; }
.home-contact__background { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.home-contact::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(0,0,0,.15),rgba(0,0,0,.03)); }
.home-contact__inner { min-height:650px; display:grid; grid-template-columns:minmax(300px,420px) 1fr; gap:clamp(40px,12vw,180px); align-items:center; }
.home-contact__card { background:#fff; border-radius:14px; padding:30px; box-shadow:0 26px 80px rgba(0,0,0,.24); }
.home-contact__card h2 { margin:0 0 18px; font-size:2rem; font-weight:500; }
.home-contact__card .contact-form { gap:13px; }
.home-contact__card input,.home-contact__card textarea { border:1px solid #696969; border-radius:3px; }
.home-contact__card button { width:100%; border-radius:999px; background:#000; }
.home-contact__location { align-self:start; margin-top:85px; color:#fff; text-shadow:0 2px 18px rgba(0,0,0,.35); }
.home-contact__location-title { display:flex; align-items:center; gap:12px; }
.home-contact__location-title>img { width:64px; height:72px; object-fit:contain; filter:brightness(0) invert(1); }
.home-contact__location h2 { margin:0; font-family:var(--serif); font-size:2rem; font-weight:500; }
.home-contact__location p { margin:0; font-family:var(--serif); font-size:1.1rem; }
.home-contact__location .socials { margin:8px 0 0 78px; }
.home-contact__location .socials svg { fill:#fff; }

/* About — close reconstruction of the supplied editorial timeline. */
.about-original { background:#fff; font-family:var(--serif); }
.about-original__intro { text-align:center; padding:70px 0 40px; }
.about-original__intro h1 { margin:0; font-size:clamp(3rem,6vw,6.1rem); line-height:.72; font-weight:400; text-transform:uppercase; letter-spacing:-.035em; }
.about-original__intro h1 span { font-size:.78em; }
.about-original__intro p { max-width:560px; margin:28px auto 0; font-size:1.05rem; line-height:1.25; }
.about-original__intro-rule { display:block; width:100px; height:1px; background:#aaa; margin:22px auto 0; }
.about-phase { padding:48px 0; }
.about-phase__number { margin:0 0 6px; color:#a29d96; letter-spacing:.22em; }
.about-phase h2 { margin:0; font-size:clamp(2.2rem,4vw,4.1rem); line-height:1; font-weight:500; }
.about-phase p { line-height:1.28; }
.about-phase--architect { padding-top:22px; }
.about-phase__architect-grid { display:grid; grid-template-columns:.9fr 1fr; gap:clamp(50px,10vw,150px); align-items:start; }
.about-phase__education dl { margin:30px 0 0; display:grid; gap:22px; }
.about-phase__education dt { color:#aaa; letter-spacing:.08em; }
.about-phase__education dd { margin:4px 0 0; line-height:1.22; color:#777; }
.about-phase__education dd strong { color:#111; }
.about-phase__quote blockquote { margin:8px 0 24px; font-size:clamp(1.55rem,2.6vw,2.55rem); line-height:1.12; }
.about-phase__quote p { max-width:600px; }
.about-phase__architect-drawing { display:grid; grid-template-columns:.35fr 1fr; align-items:end; margin-top:24px; }
.about-phase__architect-drawing span { height:1px; background:#333; }
.about-phase__architect-drawing img { width:100%; max-height:160px; object-fit:contain; object-position:center bottom; mix-blend-mode:multiply; }
.about-phase--builder { display:grid; grid-template-columns:1.35fr .65fr; gap:clamp(45px,8vw,120px); align-items:center; padding-block:45px 65px; }
.about-phase__builder-copy>p { max-width:800px; }
.about-phase__builder-points { display:grid; grid-template-columns:repeat(2,1fr); gap:45px; margin-top:34px; }
.about-phase__builder-points strong { display:block; letter-spacing:.18em; font-family:var(--sans); font-size:.78rem; }
.about-phase__builder-points span { display:block; margin-top:7px; line-height:1.25; }
.about-phase__builder-media { margin:0; min-height:390px; overflow:hidden; }
.about-phase__builder-media img { width:100%; height:100%; min-height:390px; object-fit:cover; }
.about-phase--experience { position:relative; min-height:520px; padding:0; color:#fff; isolation:isolate; overflow:hidden; }
.about-phase__experience-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-3; }
.about-phase__experience-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.62),rgba(0,0,0,.3)); z-index:-2; }
.about-phase__experience-grid { min-height:520px; display:grid; grid-template-columns:1fr .85fr; gap:clamp(50px,10vw,150px); align-items:center; padding-block:60px; }
.about-phase__experience-copy h2 { font-size:clamp(2.4rem,4.5vw,4.8rem); }
.about-phase__experience-copy p { max-width:620px; font-size:1.12rem; }
.about-phase__experience-list { display:grid; gap:12px; }
.about-phase__experience-list article { padding:18px 22px; background:rgba(30,30,30,.58); backdrop-filter:blur(10px); }
.about-phase__experience-list small { letter-spacing:.13em; text-transform:uppercase; }
.about-phase__experience-list h3 { margin:2px 0; font-size:1.35rem; font-weight:500; }
.about-phase__experience-list p { margin:0; font-size:.92rem; }
.about-phase--leader { padding:0; }
.about-phase__leader-grid { display:grid; grid-template-columns:1.5fr .5fr; gap:80px; padding-block:60px; align-items:center; }
.about-phase__leader-grid p { max-width:850px; }
.about-phase__metrics { display:grid; gap:38px; }
.about-phase__metrics strong { display:block; font-size:clamp(3.4rem,6vw,6.5rem); font-weight:400; line-height:.8; }
.about-phase__metrics span { display:block; margin-top:12px; color:#aaa; letter-spacing:.22em; text-transform:uppercase; font-size:.75rem; }
.about-phase__festive-strip { margin:0; overflow:hidden; }
.about-phase__festive-strip img { width:100%; min-height:220px; object-fit:cover; }
.about-current { padding:62px 0; background:#3b3b3b; color:#fff; text-align:center; }
.about-current p { margin:0; color:#aaa; letter-spacing:.18em; }
.about-current h2 { margin:4px 0 18px; font-size:clamp(2.3rem,4vw,4.1rem); font-weight:500; }
.about-current span { display:block; max-width:700px; margin:auto; line-height:1.28; }
.about-current ul { display:inline-block; margin:18px auto 0; text-align:left; }
.about-cta { padding:62px 20px 70px; text-align:center; }
.about-cta h2 { margin:0; font-size:clamp(2.5rem,5vw,5.2rem); line-height:.92; font-weight:400; text-transform:uppercase; }
.about-cta a { display:inline-flex; margin-top:35px; min-width:280px; justify-content:center; padding:15px 28px; border-radius:999px; background:#3b3b3b; color:#fff; font-family:var(--sans); font-weight:600; }
.about-social { display:flex; justify-content:center; padding:22px; background:#3b3b3b; }
.about-social .socials svg { fill:#fff; }

/* Project category indexes. */
.page-hero--discipline { min-height:52vh; }
.portfolio-index { padding-top:clamp(65px,8vw,115px); }
.project-card { border-radius:0; }
.project-card__title small { margin-top:4px; }
.project-card:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }

/* Original project compositions. */
.case-progress { position:fixed; left:0; right:0; top:0; height:3px; z-index:2000; pointer-events:none; }
.case-progress span { display:block; width:0; height:100%; background:var(--accent); }
.original-case { background:#fff; }
.case-toolbar { position:sticky; top:92px; z-index:20; border-bottom:1px solid var(--line); background:rgba(255,255,255,.9); backdrop-filter:blur(16px); }
.case-toolbar__inner { min-height:50px; display:flex; align-items:center; justify-content:space-between; gap:20px; font-size:.72rem; letter-spacing:.13em; text-transform:uppercase; }
.case-toolbar__inner a { font-weight:700; }
.case-toolbar__inner span { color:#888; }
.original-case__masthead { padding:70px 0 50px; text-align:center; font-family:var(--serif); }
.original-case__masthead>p { margin:0 0 8px; letter-spacing:.32em; text-transform:uppercase; color:#888; }
.original-case__masthead h1 { margin:0; font-size:clamp(3rem,6.4vw,7.2rem); line-height:.78; font-weight:400; text-transform:uppercase; letter-spacing:-.035em; }
.original-case__meta { display:flex; justify-content:center; flex-wrap:wrap; gap:10px 24px; margin-top:28px; font-family:var(--sans); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:#777; }
.original-story,.architecture-story { padding-bottom:clamp(80px,10vw,150px); display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:clamp(10px,1.4vw,22px); font-family:var(--serif); }
.original-story figure,.architecture-story figure { margin:0; overflow:hidden; background:#eee; min-width:0; }
.original-story img,.architecture-story img { width:100%; height:100%; object-fit:cover; transition:transform .85s cubic-bezier(.2,.7,.2,1); cursor:zoom-in; }
.original-story figure:hover img,.architecture-story figure:hover img { transform:scale(1.025); }
.original-story__intro,.architecture-story__intro { grid-column:1/span 6; align-self:center; padding:20px 30px 20px 0; }
.original-story__eyebrow { margin:0 0 6px; color:#999; letter-spacing:.15em; }
.original-story__intro h2,.architecture-story__intro h2 { margin:0; font-size:clamp(2.3rem,4vw,4.6rem); line-height:.95; font-weight:500; }
.original-story__intro p,.architecture-story__intro p { max-width:620px; font-size:1.05rem; line-height:1.35; }
.story-img--hero { grid-column:7/-1; min-height:380px; }
.original-story--bloomberg .story-img--a { grid-column:1/span 5; min-height:390px; }
.original-story--bloomberg .story-img--b { grid-column:6/-1; min-height:390px; }
.original-story--bloomberg .story-img--c { grid-column:1/span 4; min-height:330px; }
.original-story--bloomberg .story-img--d { grid-column:5/-1; min-height:330px; }
.original-story--bloomberg .story-img--e { grid-column:1/span 5; min-height:270px; }
.original-story--royal .story-img--a { grid-column:1/span 8; grid-row:2/span 2; min-height:620px; }
.original-story--royal .story-img--b { grid-column:9/-1; min-height:300px; }
.original-story--royal .story-img--c { grid-column:9/-1; min-height:300px; }
.original-story--banyan .story-img--hero { grid-row:1/span 2; min-height:700px; }
.original-story--banyan .story-img--a { grid-column:1/span 6; min-height:360px; }
.original-story--banyan .story-img--b { grid-column:1/span 6; min-height:300px; }
.original-story--ciel .story-img--hero { min-height:320px; }
.original-story--ciel .story-img--g1 { grid-column:1/span 5; min-height:380px; }
.original-story--ciel .story-img--g2 { grid-column:6/span 3; min-height:380px; }
.original-story--ciel .story-img--g3 { grid-column:9/-1; min-height:380px; }
.original-story--ciel .story-img--g4 { grid-column:1/span 5; min-height:280px; }
.original-story--ciel .story-img--g5 { grid-column:6/span 4; min-height:280px; }
.original-story--ciel .story-img--g6 { grid-column:10/-1; min-height:280px; }
.original-story--ciel .story-img--g7 { grid-column:1/span 4; min-height:280px; }
.original-story--ciel .story-img--g8 { grid-column:5/-1; min-height:280px; }
.architecture-story__intro ul { margin:24px 0 0; padding:0; list-style:none; display:grid; gap:9px; }
.architecture-story__intro li { position:relative; padding-left:20px; font-family:var(--sans); font-size:.9rem; }
.architecture-story__intro li::before { content:""; position:absolute; left:0; top:.7em; width:8px; height:1px; background:#111; }
.architecture-story__cover { grid-column:7/-1; min-height:420px; }
.architecture-story__board { grid-column:1/-1; }
.architecture-story__board img { height:auto; object-fit:contain; }
.architecture-story--faculty .architecture-img--1 { grid-column:7/-1; min-height:390px; }
.architecture-story--faculty .architecture-img--2 { grid-column:1/span 8; min-height:420px; }
.architecture-story--faculty .architecture-img--3 { grid-column:9/-1; min-height:420px; }
.architecture-story--faculty .architecture-img--4 { grid-column:1/span 5; min-height:350px; }
.architecture-story--faculty .architecture-img--5 { grid-column:6/span 3; min-height:350px; }
.architecture-story--faculty .architecture-img--6 { grid-column:9/-1; min-height:350px; }
.architecture-story--revitalization .architecture-img--1 { grid-column:7/-1; min-height:390px; }
.architecture-story--revitalization .architecture-img--2 { grid-column:1/-1; min-height:380px; }
.architecture-story--revitalization .architecture-img--3 { grid-column:1/span 5; min-height:330px; }
.architecture-story--revitalization .architecture-img--4 { grid-column:6/span 3; min-height:330px; }
.architecture-story--revitalization .architecture-img--5 { grid-column:9/-1; min-height:330px; }
.architecture-story--gated .architecture-img--1 { grid-column:7/-1; min-height:390px; }
.architecture-story--gated .architecture-img--2 { grid-column:1/span 8; min-height:390px; }
.architecture-story--gated .architecture-img--3 { grid-column:9/-1; min-height:390px; }
.architecture-story--gated .architecture-img--4 { grid-column:1/span 5; min-height:320px; }
.architecture-story--gated .architecture-img--5 { grid-column:6/-1; min-height:320px; }
.architecture-story--villa .architecture-img--1 { grid-column:7/-1; min-height:420px; }
.architecture-story--villa .architecture-img--2 { grid-column:1/span 4; min-height:360px; }
.architecture-story--villa .architecture-img--3 { grid-column:5/span 4; min-height:360px; }
.architecture-story--villa .architecture-img--4 { grid-column:9/-1; min-height:360px; }
.architecture-story--villa .architecture-img--5,
.architecture-story--villa .architecture-img--6,
.architecture-story--villa .architecture-img--7,
.architecture-story--villa .architecture-img--8,
.architecture-story--villa .architecture-img--9,
.architecture-story--villa .architecture-img--10,
.architecture-story--villa .architecture-img--11,
.architecture-story--villa .architecture-img--12 { grid-column:span 4; min-height:330px; }
.architecture-story--technical .architecture-story__intro { grid-column:1/span 7; }
.case-next { background:#333; color:#fff; }
.case-next__inner { min-height:260px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.case-next p { margin:0; color:#aaa; letter-spacing:.16em; text-transform:uppercase; font-size:.72rem; }
.case-next h2 { margin:7px 0 0; font-family:var(--serif); font-size:clamp(2.3rem,4.8vw,5rem); font-weight:400; line-height:.9; }
.case-next a { width:90px; height:90px; border:1px solid rgba(255,255,255,.45); border-radius:50%; display:grid; place-items:center; font-size:2.5rem; transition:background .25s ease,color .25s ease,transform .25s ease; }
.case-next a:hover { background:#fff; color:#111; transform:rotate(45deg); }

/* Reusable future-project templates. */
.custom-case__hero { position:relative; min-height:74vh; display:flex; align-items:flex-end; overflow:hidden; color:#fff; isolation:isolate; }
.custom-case__hero>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.custom-case__hero::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,0,0,.8),rgba(0,0,0,.08)); z-index:-1; }
.custom-case__hero-content { padding-bottom:70px; }
.custom-case__hero-content>p { letter-spacing:.18em; text-transform:uppercase; }
.custom-case__hero-content h1 { margin:0; max-width:1000px; font-family:var(--serif); font-size:clamp(3.2rem,7vw,7.5rem); line-height:.85; font-weight:400; }
.custom-case__hero-content>div { display:flex; gap:20px; margin-top:25px; font-size:.78rem; letter-spacing:.13em; text-transform:uppercase; }
.custom-case__content { padding-block:clamp(70px,10vw,150px); }
.custom-case__content>p,.custom-case__content>h2,.custom-case__content>h3 { max-width:850px; margin-left:auto; margin-right:auto; }
.custom-case__content .wp-block-gallery { margin:60px 0 0; gap:16px!important; }
.custom-case--editorial .wp-block-gallery figure:nth-child(3n+1) { width:calc(66.66% - 8px)!important; }
.custom-case--editorial .wp-block-gallery figure:nth-child(3n+2) { width:calc(33.33% - 8px)!important; }
.custom-case--cinematic .wp-block-gallery { display:block!important; }
.custom-case--cinematic .wp-block-gallery figure { width:100%!important; margin-bottom:18px!important; }
.custom-case--cinematic .wp-block-gallery img { width:100%; max-height:90vh; object-fit:cover; }
.custom-case--grid .wp-block-gallery figure { width:calc(33.33% - 11px)!important; }
.project-content img { cursor:zoom-in; }

/* Refined reveal and lightbox behavior. */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity:1; transform:none; }

@media (max-width: 1000px) {
  .home-about__inner { grid-template-columns:1fr .6fr; }
  .home-contact__inner { gap:70px; }
  .about-phase__architect-grid { gap:60px; }
  .original-story__intro,.architecture-story__intro { grid-column:1/span 5; }
  .story-img--hero,.architecture-story__cover { grid-column:6/-1; }
}
@media (max-width: 820px) {
  .hero--home { min-height:600px; }
  .home-about__inner,.home-contact__inner,.about-phase__architect-grid,.about-phase--builder,.about-phase__experience-grid,.about-phase__leader-grid { grid-template-columns:1fr; }
  .home-about__portrait { position:absolute; right:20px; bottom:20px; width:210px; opacity:.82; }
  .home-about__copy { max-width:70%; }
  .home-expertise__grid { grid-template-columns:1fr; gap:55px; }
  .home-expertise__image { width:min(100%,520px); }
  .home-expertise__card p { max-width:520px; }
  .home-contact__inner { padding-block:50px; }
  .home-contact__location { margin:0; }
  .about-phase__quote { padding-top:0; }
  .about-phase__architect-drawing { grid-template-columns:.15fr 1fr; }
  .about-phase__builder-media { min-height:320px; }
  .about-phase__experience-list { max-width:620px; }
  .about-phase__metrics { grid-template-columns:repeat(2,1fr); }
  .case-toolbar { top:76px; }
  .original-story,.architecture-story { grid-template-columns:1fr 1fr; }
  .original-story__intro,.architecture-story__intro,.story-img--hero,.architecture-story__cover,.architecture-story__board { grid-column:1/-1!important; }
  .original-story figure,.architecture-story figure { grid-column:span 1!important; min-height:320px!important; grid-row:auto!important; }
  .architecture-story__board { min-height:0!important; }
  .original-story--banyan .story-img--hero { min-height:500px!important; }
  .custom-case--editorial .wp-block-gallery figure,.custom-case--grid .wp-block-gallery figure { width:calc(50% - 8px)!important; }
}
@media (max-width: 600px) {
  .container,.container--narrow { width:min(calc(100% - 28px),var(--container)); }
  .hero--home { min-height:520px; }
  .hero__content--center .display { font-size:clamp(2.35rem,12vw,3.5rem); }
  .home-about { min-height:620px; }
  .home-about__inner { align-items:start; padding-top:55px; }
  .home-about__copy { max-width:100%; padding-bottom:210px; }
  .home-about__portrait { width:190px; left:50%; right:auto; transform:translateX(-50%); }
  .home-expertise { padding-top:38px; }
  .home-contact__inner { grid-template-columns:1fr; }
  .home-contact__card { padding:22px; }
  .home-contact__location .socials { margin-left:0; }
  .about-original__intro { padding-top:48px; }
  .about-original__intro h1 { line-height:.8; }
  .about-phase { padding-block:38px; }
  .about-phase__architect-drawing { grid-template-columns:1fr; }
  .about-phase__architect-drawing span { display:none; }
  .about-phase__builder-points,.about-phase__metrics { grid-template-columns:1fr; }
  .about-phase__experience-grid { padding-block:45px; }
  .about-phase__leader-grid { gap:45px; }
  .about-cta a { min-width:230px; }
  .case-toolbar__inner span { display:none; }
  .original-case__masthead { padding:50px 0 38px; }
  .original-case__masthead h1 { line-height:.84; }
  .original-story,.architecture-story { grid-template-columns:1fr; gap:10px; }
  .original-story__intro,.architecture-story__intro { padding-right:0; }
  .original-story figure,.architecture-story figure { grid-column:1/-1!important; min-height:270px!important; }
  .original-story--banyan .story-img--hero { min-height:420px!important; }
  .architecture-story__board { min-height:0!important; }
  .case-next__inner { min-height:230px; }
  .case-next a { width:68px; height:68px; flex:0 0 68px; }
  .custom-case--editorial .wp-block-gallery figure,.custom-case--grid .wp-block-gallery figure { width:100%!important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .reveal { opacity:1; transform:none; transition:none; }
  .original-story img,.architecture-story img,.home-expertise__image img,.case-next a { transition:none; }
}
.home-contact__card .form-grid { gap:13px; margin-top:0; }
.home-contact__card .field label { text-transform:none; letter-spacing:0; font-weight:500; }
.home-contact__card .field input,.home-contact__card .field textarea { border:1px solid #696969; border-radius:3px; padding:10px 12px; }
.home-contact__card .field textarea { min-height:92px; }
.home-contact__card .btn { width:100%; border-radius:999px; background:#000; }

/* --------------------------------------------------------------------------
   V6 — immersive portfolio foundations
   Scoped to .studio-page so the approved V5 homepage remains unchanged.
   -------------------------------------------------------------------------- */
:root {
  --studio-serif: "Cormorant Garamond", Georgia, serif;
  --studio-sans: "Inter", Arial, sans-serif;
  --studio-ink: #171717;
  --studio-muted: #747474;
  --studio-soft: #f7f7f5;
  --studio-grid-line: rgba(20, 20, 20, .045);
  --studio-ease: cubic-bezier(.22, 1, .36, 1);
}

.studio-page { position: relative; overflow: clip; background: #fff; color: var(--studio-ink); }
.studio-page h1,
.studio-page h2,
.studio-page h3,
.studio-page blockquote { font-family: var(--studio-serif); }
.studio-page h2 { margin: 0; font-size: clamp(2.7rem, 5.4vw, 6rem); font-weight: 500; letter-spacing: -.035em; line-height: .92; }
.studio-page h3 { margin: 0; font-size: clamp(2rem, 3.6vw, 4rem); font-weight: 500; line-height: 1; }
.studio-page em { display: block; color: #9a9a9a; font-weight: 400; }
.studio-page p { max-width: 70ch; }
.studio-label { margin: 0 0 18px; color: #9b9b9b; font-size: .66rem; font-weight: 700; letter-spacing: .42em; line-height: 1.5; text-transform: uppercase; }
.studio-lead { margin: 26px 0 0; color: #666; font-size: clamp(1.05rem, 1.65vw, 1.32rem); font-weight: 300; line-height: 1.75; }
.studio-grid { display: grid; align-items: center; }
.studio-grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.studio-blueprint { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, var(--studio-grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--studio-grid-line) 1px, transparent 1px); background-size: 52px 52px; }
.studio-blueprint--fine { background-size: 38px 38px; }

.studio-hero { position: relative; min-height: calc(100svh - 92px); display: grid; place-items: center; overflow: hidden; text-align: center; isolation: isolate; }
.studio-hero__inner { position: relative; z-index: 2; padding: clamp(100px, 14vw, 190px) 0; }
.studio-title { margin: 0; font-family: var(--studio-serif); font-size: clamp(4rem, 9vw, 9rem); font-weight: 500; letter-spacing: -.055em; line-height: .82; }
.studio-title em { color: #a0a0a0; }
.studio-hero .studio-lead { margin-inline: auto; max-width: 760px; }
.studio-hero__ghost { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .08; filter: grayscale(1); transform: scale(1.04); }
.studio-hero--creative .studio-hero__ghost { opacity: .12; }
.studio-scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; display: grid; justify-items: center; gap: 10px; color: #777; font-size: .58rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; transform: translateX(-50%); }
.studio-scroll-cue span { display: block; width: 1px; height: 48px; background: currentColor; transform-origin: top; animation: studio-scroll-line 2.2s ease-in-out infinite; }
.studio-scroll-cue--light { color: rgba(255,255,255,.72); }
@keyframes studio-scroll-line { 0%, 100% { transform: scaleY(.55); opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }

.studio-progress { position: fixed; z-index: 70; right: 28px; top: 23%; width: 1px; height: 54vh; background: rgba(0,0,0,.11); }
.studio-progress > span { display: block; width: 100%; height: 0; background: #111; }
.studio-progress small { position: absolute; left: 12px; bottom: 0; color: #999; font-size: .55rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; writing-mode: vertical-rl; }

.studio-phase { position: relative; padding: clamp(100px, 12vw, 180px) 0; }
.studio-phase--blueprint,
.studio-index-section--blueprint,
.studio-case-section--blueprint { background-color: #fafaf8; background-image: linear-gradient(to right, var(--studio-grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--studio-grid-line) 1px, transparent 1px); background-size: 48px 48px; }
.studio-grid--phase-one { gap: 38px 64px; }
.studio-phase__heading { grid-column: 1 / span 5; align-self: start; }
.studio-phase__statement { grid-column: 7 / -1; align-self: start; }
.studio-phase__statement blockquote { margin: 0 0 34px; font-size: clamp(1.65rem, 3vw, 3.2rem); font-style: italic; line-height: 1.08; }
.studio-phase__statement > p,
.studio-phase__copy > p:not(.studio-label):not(.studio-lead) { color: #777; }
.studio-facts { display: grid; gap: 30px; margin-top: 42px; }
.studio-facts div { padding-top: 18px; border-top: 1px solid rgba(0,0,0,.12); }
.studio-facts span,
.studio-facts small { display: block; color: #989898; font-size: .7rem; line-height: 1.6; }
.studio-facts span { margin-bottom: 7px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.studio-facts strong { display: block; font-family: var(--studio-serif); font-size: 1.45rem; font-weight: 600; }
.studio-board { margin: 0; overflow: hidden; border: 1px solid rgba(0,0,0,.08); background: #efefec; box-shadow: 0 28px 70px -42px rgba(0,0,0,.46); }
.studio-board img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--studio-ease), filter .8s ease; }
.studio-board:hover img { transform: scale(1.025); }
.studio-board--wide { grid-column: 1 / -1; min-height: min(38vw, 500px); margin-top: 20px; }
.studio-board--wide img { object-fit: cover; }
.studio-board--portrait { min-height: 620px; }
.studio-board--hero { min-height: 560px; }
.studio-board--cinematic { height: min(70vw, 760px); margin-top: 76px; }
.studio-board--inspect { min-height: 650px; margin-top: 76px; cursor: zoom-in; }
.studio-board--inspect img { object-fit: contain; background: #fff; }

.studio-grid--builder { gap: 70px; }
.studio-grid--builder .studio-phase__copy { grid-column: 1 / span 7; }
.studio-grid--builder .studio-board { grid-column: 9 / -1; }
.studio-phase__copy h2 { margin-bottom: 30px; }
.studio-duo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-top: 42px; padding-top: 28px; border-top: 1px solid rgba(0,0,0,.1); }
.studio-duo strong { display: block; font-family: var(--studio-serif); font-size: 1.75rem; font-weight: 500; }
.studio-duo span { display: block; margin-top: 4px; color: #999; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.studio-phase--experience { min-height: 760px; display: grid; align-items: center; color: #fff; overflow: hidden; }
.studio-phase__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-phase__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.9), rgba(5,5,5,.24) 60%, rgba(5,5,5,.55)); }
.studio-grid--experience { position: relative; z-index: 2; gap: 70px; }
.studio-grid--experience .studio-phase__copy { grid-column: 1 / span 6; }
.studio-project-ledger { grid-column: 8 / -1; padding: 30px; border: 1px solid rgba(255,255,255,.18); background: rgba(15,15,15,.52); backdrop-filter: blur(18px); }
.studio-project-ledger article { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.studio-project-ledger article:last-child { border-bottom: 0; }
.studio-project-ledger span { color: rgba(255,255,255,.52); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.studio-project-ledger strong { display: block; margin-top: 4px; font-family: var(--studio-serif); font-size: 1.55rem; font-weight: 500; }
.studio-project-ledger p { margin: 3px 0 0; color: rgba(255,255,255,.65); font-size: .82rem; }
.studio-phase__copy--light .studio-lead,
.studio-phase__copy--light > p,
.studio-case-copy--light .studio-lead { color: rgba(255,255,255,.72); }
.studio-phase--leader { padding-bottom: 0; }
.studio-phase__center { max-width: 800px; margin: 0 auto 90px; text-align: center; }
.studio-phase__center .studio-lead { margin-inline: auto; }
.studio-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1050px; margin: 0 auto 80px; border-block: 1px solid rgba(0,0,0,.12); }
.studio-stats div { padding: 52px 30px; text-align: center; border-right: 1px solid rgba(0,0,0,.12); }
.studio-stats div:last-child { border-right: 0; }
.studio-stats strong { display: block; font-family: var(--studio-serif); font-size: clamp(4rem, 7vw, 7rem); font-weight: 400; line-height: .8; }
.studio-stats span { display: block; margin-top: 22px; color: #999; font-size: .62rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.studio-filmstrip { margin: 0; height: clamp(220px, 32vw, 480px); overflow: hidden; background: #111; }
.studio-filmstrip img { width: 100%; height: 100%; object-fit: cover; }
.studio-phase--current { color: #fff; background: #1d1d1d; }
.studio-grid--current { gap: 80px; }
.studio-grid--current .studio-phase__copy { grid-column: 1 / span 6; }
.studio-floating-card { grid-column: 8 / -1; justify-self: center; width: min(100%, 420px); height: 540px; margin: 0; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.45); animation: studio-float 7s ease-in-out infinite; }
.studio-floating-card img { width: 100%; height: 100%; object-fit: cover; }
@keyframes studio-float { 0%,100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-14px) rotate(.6deg); } }
.studio-list { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.studio-list li { position: relative; padding-left: 20px; color: #777; }
.studio-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.studio-phase__copy--light .studio-list li,
.studio-case-copy--light .studio-list li { color: rgba(255,255,255,.68); }

.studio-cta { padding: clamp(130px, 17vw, 230px) 0; text-align: center; }
.studio-cta h2 { font-size: clamp(3rem, 6.4vw, 7rem); }
.studio-cta .studio-label { margin-bottom: 26px; }
.studio-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 54px; padding: 0 34px; border-radius: 999px; background: #141414; color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; box-shadow: 0 18px 40px rgba(0,0,0,.16); transition: transform .35s var(--studio-ease), background .35s ease; }
.studio-button:hover { transform: translateY(-4px) scale(1.02); background: #333; }
.studio-button--light { background: #fff; color: #111; }
.studio-cta--dark { background: #171717; color: #fff; }

.studio-index { position: sticky; z-index: 40; top: 92px; border-block: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.studio-index .container { display: flex; justify-content: center; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.studio-index .container::-webkit-scrollbar { display: none; }
.studio-index a { flex: 0 0 auto; padding: 19px 0; color: #777; font-size: .61rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; transition: color .25s ease; }
.studio-index a:hover { color: #111; }
.studio-index-section { padding: clamp(105px, 12vw, 180px) 0; }
.studio-index-section--dark { background: #151515; color: #fff; }
.studio-section-heading { display: grid; grid-template-columns: minmax(0, .85fr) minmax(280px, .65fr); gap: 70px; align-items: end; margin-bottom: 70px; }
.studio-section-heading h2 { font-size: clamp(3rem, 5vw, 5.6rem); }
.studio-section-heading > p { justify-self: end; margin: 0; color: #777; }
.studio-section-heading--light > p { color: rgba(255,255,255,.62); }
.studio-project-grid { display: grid; gap: 28px; }
.studio-project-grid--editorial { grid-template-columns: repeat(2, minmax(0,1fr)); }
.studio-project-grid--cinematic { grid-template-columns: minmax(0,1fr); }
.studio-project-grid--boards { grid-template-columns: repeat(2, minmax(0,1fr)); }
.studio-project-card { position: relative; display: grid; min-height: 520px; overflow: hidden; background: #111; color: #fff; isolation: isolate; box-shadow: 0 24px 55px -38px rgba(0,0,0,.65); }
.studio-project-card figure { position: absolute; inset: 0; z-index: -2; margin: 0; overflow: hidden; }
.studio-project-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--studio-ease), filter .8s ease; }
.studio-project-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5,5,5,.9), rgba(5,5,5,.08) 68%); transition: background .45s ease; }
.studio-project-card__body { align-self: end; display: grid; padding: clamp(28px, 4vw, 50px); }
.studio-project-card__body small { margin-bottom: 12px; color: rgba(255,255,255,.58); font-size: .58rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.studio-project-card__body strong { font-family: var(--studio-serif); font-size: clamp(2.2rem, 3.8vw, 4.2rem); font-weight: 500; line-height: .9; }
.studio-project-card__body strong em { color: rgba(255,255,255,.58); }
.studio-project-card__body > span { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.28); font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.studio-project-card:hover figure img { transform: scale(1.055); }
.studio-project-card:hover::after { background: linear-gradient(to top, rgba(5,5,5,.92), rgba(5,5,5,.02) 75%); }
.studio-project-card--feature { grid-row: span 2; min-height: 720px; }
.studio-project-card--cinematic { min-height: min(66vw, 760px); }
.studio-project-card--board { min-height: 500px; background: #f1f1ef; color: #111; border: 1px solid rgba(0,0,0,.08); }
.studio-project-card--board::after { background: linear-gradient(to top, rgba(255,255,255,.98), rgba(255,255,255,0) 66%); }
.studio-project-card--board .studio-project-card__body small { color: #878787; }
.studio-project-card--board .studio-project-card__body strong em { color: #9a9a9a; }
.studio-project-card--board .studio-project-card__body > span { color: #555; border-color: rgba(0,0,0,.14); }
.studio-project-card--board figure { inset: 0 0 26%; }
.studio-project-card--board figure img { object-fit: contain; background: #f4f4f2; }
.studio-project-card--board-feature { grid-column: 1 / -1; min-height: 650px; }
.studio-project-card--board-feature figure { inset: 0 42% 0 0; }
.studio-project-card--board-feature .studio-project-card__body { align-self: center; justify-self: end; width: 42%; }

.studio-workbench { padding: clamp(110px, 13vw, 190px) 0; }
.studio-tabs { padding: 26px; border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.88); box-shadow: 0 30px 80px -58px rgba(0,0,0,.65); }
.studio-tabs__nav { display: flex; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid rgba(0,0,0,.08); overflow-x: auto; scrollbar-width: none; }
.studio-tabs__nav::-webkit-scrollbar { display: none; }
.studio-tabs__nav button { flex: 0 0 auto; min-height: 46px; padding: 0 22px; border: 1px solid transparent; background: transparent; color: #999; cursor: pointer; font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transition: color .25s ease, border-color .25s ease, background .25s ease; }
.studio-tabs__nav button[aria-selected="true"] { border-color: rgba(0,0,0,.12); background: #f6f6f4; color: #111; }
.studio-tabs__panels { padding-top: 30px; }
.studio-tab-panel { animation: studio-panel-in .55s var(--studio-ease); }
@keyframes studio-panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.studio-grid--creative-panel { gap: 60px; }
.studio-grid--creative-panel .studio-phase__copy { grid-column: 1 / span 5; }
.studio-grid--creative-panel .studio-board { grid-column: 7 / -1; min-height: 500px; }
.studio-creative-sequence { padding: clamp(110px, 13vw, 190px) 0; background: #191919; color: #fff; }
.studio-creative-sequence__intro { max-width: 760px; margin-bottom: 80px; }
.studio-method-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-block: 1px solid rgba(255,255,255,.15); }
.studio-method-grid article { min-height: 300px; padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.15); }
.studio-method-grid article:last-child { border-right: 0; }
.studio-method-grid article > span { color: rgba(255,255,255,.36); font-family: var(--studio-serif); font-size: 2.6rem; }
.studio-method-grid h3 { margin-top: 75px; font-size: 2rem; }
.studio-method-grid p { color: rgba(255,255,255,.55); font-size: .9rem; }

.studio-case-progress { position: fixed; z-index: 90; left: 0; right: 0; top: 0; height: 2px; background: transparent; }
.studio-case-progress span { display: block; width: 0; height: 100%; background: #a98e68; }
.studio-case-toolbar { position: sticky; z-index: 50; top: 92px; background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(0,0,0,.08); backdrop-filter: blur(18px); }
.studio-case-toolbar .container { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #777; font-size: .59rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.studio-case-hero { position: relative; min-height: calc(100svh - 140px); display: grid; align-items: end; overflow: hidden; color: #fff; isolation: isolate; }
.studio-case-hero__media { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.studio-case-hero__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(to top, rgba(5,5,5,.9), rgba(5,5,5,.12) 70%), linear-gradient(to right, rgba(5,5,5,.45), transparent 70%); }
.studio-case-hero .studio-blueprint { z-index: -1; opacity: .32; --studio-grid-line: rgba(255,255,255,.07); }
.studio-case-hero__content { padding: 120px 0 100px; }
.studio-case-hero h1 { max-width: 1050px; margin: 0; font-family: var(--studio-serif); font-size: clamp(4rem, 8.5vw, 9rem); font-weight: 500; letter-spacing: -.05em; line-height: .8; }
.studio-case-hero h1 em { color: rgba(255,255,255,.58); }
.studio-case-hero__meta { display: flex; flex-wrap: wrap; gap: 18px 38px; margin-top: 38px; color: rgba(255,255,255,.68); font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.studio-case-section { padding: clamp(100px, 12vw, 180px) 0; }
.studio-case-section--festive-dark { background: #111; color: #fff; }
.studio-grid--case-intro { gap: 70px; align-items: center; }
.studio-grid--case-intro .studio-case-copy { grid-column: 1 / span 5; }
.studio-grid--case-intro .studio-board { grid-column: 7 / -1; }
.studio-case-copy h2 { margin: 0; font-size: clamp(3rem, 5.8vw, 6.3rem); }
.studio-case-copy--center { margin-bottom: 70px; text-align: center; }
.studio-case-copy--center .studio-lead { margin-inline: auto; }
.studio-note { margin-top: 36px; padding: 24px; border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.76); }
.studio-note span { color: #888; font-size: .61rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.studio-note p { margin: 8px 0 0; color: #777; font-size: .88rem; }
.studio-grid--banyan { gap: 80px; }
.studio-grid--banyan .studio-board { grid-column: 1 / span 6; }
.studio-grid--banyan .studio-case-copy { grid-column: 8 / -1; }

.studio-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-rows: minmax(150px, 18vw); gap: 18px; margin-top: 90px; }
.studio-mosaic figure,
.studio-gallery figure { margin: 0; overflow: hidden; background: #eaeae7; cursor: zoom-in; }
.studio-mosaic img,
.studio-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--studio-ease), filter .7s ease; }
.studio-mosaic figure:hover img,
.studio-gallery figure:hover img { transform: scale(1.04); }
.studio-mosaic--bloomberg .studio-mosaic__a { grid-column: 1 / span 7; grid-row: span 2; }
.studio-mosaic--bloomberg .studio-mosaic__b { grid-column: 8 / -1; }
.studio-mosaic--bloomberg .studio-mosaic__c { grid-column: 8 / -1; }
.studio-mosaic--bloomberg .studio-mosaic__d { grid-column: 1 / span 5; }
.studio-mosaic--bloomberg .studio-mosaic__e { grid-column: 6 / -1; }
.studio-mosaic--ciel { grid-auto-rows: minmax(170px, 20vw); }
.studio-mosaic--ciel .studio-mosaic__item--1 { grid-column: 1 / span 7; grid-row: span 2; }
.studio-mosaic--ciel .studio-mosaic__item--2 { grid-column: 8 / -1; }
.studio-mosaic--ciel .studio-mosaic__item--3 { grid-column: 8 / -1; }
.studio-mosaic--ciel .studio-mosaic__item--4 { grid-column: 1 / span 4; }
.studio-mosaic--ciel .studio-mosaic__item--5 { grid-column: 5 / span 4; }
.studio-mosaic--ciel .studio-mosaic__item--6 { grid-column: 9 / -1; }
.studio-mosaic--ciel .studio-mosaic__item--7 { grid-column: 1 / span 6; }
.studio-mosaic--ciel .studio-mosaic__item--8 { grid-column: 7 / -1; }
.studio-gallery { display: grid; gap: 22px; margin-top: 68px; }
.studio-gallery--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.studio-gallery--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.studio-gallery--four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.studio-gallery__item { aspect-ratio: 4 / 3; }
.studio-gallery--three .studio-gallery__item { aspect-ratio: 3 / 4; }
.studio-gallery--boards .studio-gallery__item { aspect-ratio: auto; min-height: 430px; }
.studio-gallery--boards img { object-fit: contain; background: #fff; }
.studio-tabs--interiors { margin-top: 80px; }
.studio-tabs__header { margin-bottom: 28px; }
.studio-tabs__header h3 { font-size: clamp(2.4rem, 4vw, 4.5rem); }
.studio-technical-workspace { display: grid; grid-template-columns: minmax(220px,.35fr) minmax(0,1fr); gap: 35px; align-items: start; margin-top: 75px; padding: 28px; border: 1px solid rgba(0,0,0,.1); background: rgba(255,255,255,.9); }
.studio-technical-workspace aside { position: sticky; top: 170px; padding: 20px; }
.studio-technical-workspace aside ul { display: grid; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.studio-technical-workspace aside li { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); color: #777; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.studio-technical-workspace .studio-board { margin-top: 0; }
.studio-case-next { padding: 100px 0; background: #191919; color: #fff; }
.studio-case-next .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.studio-case-next h2 { font-size: clamp(3rem, 5vw, 5.8rem); }
.studio-case-next h2 em { color: rgba(255,255,255,.45); }
.studio-case-next a { display: grid; place-items: center; width: clamp(90px, 11vw, 150px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: clamp(2rem, 5vw, 4rem); transition: background .35s ease, color .35s ease, transform .35s var(--studio-ease); }
.studio-case-next a:hover { background: #fff; color: #111; transform: rotate(10deg) scale(1.03); }

@media (max-width: 1100px) {
  .studio-progress { display: none; }
  .studio-phase__heading { grid-column: 1 / span 6; }
  .studio-phase__statement { grid-column: 7 / -1; }
  .studio-grid--builder .studio-phase__copy { grid-column: 1 / span 7; }
  .studio-grid--builder .studio-board { grid-column: 8 / -1; }
  .studio-project-card--board-feature figure { inset: 0 38% 0 0; }
  .studio-project-card--board-feature .studio-project-card__body { width: 38%; }
  .studio-method-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .studio-method-grid article:nth-child(2) { border-right: 0; }
  .studio-method-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
}

@media (max-width: 980px) {
  .studio-hero { min-height: calc(100svh - 78px); }
  .studio-index,
  .studio-case-toolbar { top: 78px; }
  .studio-grid--phase-one,
  .studio-grid--builder,
  .studio-grid--experience,
  .studio-grid--current,
  .studio-grid--case-intro,
  .studio-grid--banyan,
  .studio-grid--creative-panel { grid-template-columns: 1fr; }
  .studio-phase__heading,
  .studio-phase__statement,
  .studio-grid--builder .studio-phase__copy,
  .studio-grid--builder .studio-board,
  .studio-grid--experience .studio-phase__copy,
  .studio-project-ledger,
  .studio-grid--current .studio-phase__copy,
  .studio-floating-card,
  .studio-grid--case-intro .studio-case-copy,
  .studio-grid--case-intro .studio-board,
  .studio-grid--banyan .studio-board,
  .studio-grid--banyan .studio-case-copy,
  .studio-grid--creative-panel .studio-phase__copy,
  .studio-grid--creative-panel .studio-board { grid-column: auto; }
  .studio-project-ledger { width: min(100%, 620px); }
  .studio-floating-card { width: min(100%, 520px); height: 520px; }
  .studio-board--portrait { min-height: 500px; }
  .studio-section-heading { grid-template-columns: 1fr; gap: 25px; }
  .studio-section-heading > p { justify-self: start; }
  .studio-project-grid--boards { grid-template-columns: 1fr; }
  .studio-project-card--board-feature { grid-column: auto; min-height: 560px; }
  .studio-project-card--board-feature figure { inset: 0 0 36% 0; }
  .studio-project-card--board-feature .studio-project-card__body { align-self: end; justify-self: stretch; width: auto; }
  .studio-grid--creative-panel .studio-board { min-height: 420px; }
  .studio-gallery--four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .studio-technical-workspace { grid-template-columns: 1fr; }
  .studio-technical-workspace aside { position: static; }
}

@media (max-width: 720px) {
  .studio-page h2 { font-size: clamp(2.5rem, 12vw, 4.2rem); }
  .studio-title { font-size: clamp(3.25rem, 16vw, 5.9rem); }
  .studio-hero__inner { padding-inline: 12px; }
  .studio-scroll-cue { bottom: 18px; }
  .studio-index .container { justify-content: flex-start; }
  .studio-index a { padding: 16px 0; }
  .studio-phase,
  .studio-index-section,
  .studio-workbench,
  .studio-case-section { padding-block: 90px; }
  .studio-board--wide { min-height: 300px; }
  .studio-board--portrait,
  .studio-board--hero { min-height: 420px; }
  .studio-board--cinematic { height: 72vw; min-height: 420px; margin-top: 45px; }
  .studio-board--inspect { min-height: 400px; margin-top: 45px; }
  .studio-duo { grid-template-columns: 1fr; }
  .studio-phase--experience { min-height: auto; }
  .studio-stats { grid-template-columns: 1fr; }
  .studio-stats div { border-right: 0; border-bottom: 1px solid rgba(0,0,0,.12); }
  .studio-stats div:last-child { border-bottom: 0; }
  .studio-floating-card { height: 430px; }
  .studio-project-grid--editorial { grid-template-columns: 1fr; }
  .studio-project-card,
  .studio-project-card--feature { min-height: 540px; grid-row: auto; }
  .studio-project-card--cinematic { min-height: 520px; }
  .studio-project-card--board { min-height: 500px; }
  .studio-tabs { padding: 15px; }
  .studio-tabs__nav button { padding: 0 15px; }
  .studio-method-grid { grid-template-columns: 1fr; }
  .studio-method-grid article { min-height: 240px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .studio-method-grid article:last-child { border-bottom: 0; }
  .studio-method-grid h3 { margin-top: 45px; }
  .studio-case-toolbar .container { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 9px; gap: 2px; }
  .studio-case-hero { min-height: calc(100svh - 150px); }
  .studio-case-hero__content { padding: 120px 0 95px; }
  .studio-case-hero h1 { font-size: clamp(3.6rem, 17vw, 6.1rem); }
  .studio-case-hero__meta { gap: 10px 18px; }
  .studio-mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; margin-top: 55px; }
  .studio-mosaic figure,
  .studio-mosaic--bloomberg .studio-mosaic__a,
  .studio-mosaic--bloomberg .studio-mosaic__b,
  .studio-mosaic--bloomberg .studio-mosaic__c,
  .studio-mosaic--bloomberg .studio-mosaic__d,
  .studio-mosaic--bloomberg .studio-mosaic__e,
  .studio-mosaic--ciel [class*="studio-mosaic__item--"] { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .studio-gallery--two,
  .studio-gallery--three,
  .studio-gallery--four { grid-template-columns: 1fr; }
  .studio-gallery--three .studio-gallery__item,
  .studio-gallery__item { aspect-ratio: 4 / 3; }
  .studio-gallery--boards .studio-gallery__item { min-height: 320px; }
  .studio-case-next .container { align-items: flex-start; flex-direction: column; }
  .studio-case-next a { width: 90px; }
}

@media (max-width: 430px) {
  .studio-label { letter-spacing: .28em; }
  .studio-page h2 { font-size: 2.7rem; }
  .studio-title { font-size: 3.6rem; }
  .studio-hero .studio-lead { font-size: 1rem; }
  .studio-project-card__body strong { font-size: 2.65rem; }
  .studio-board--portrait,
  .studio-board--hero { min-height: 360px; }
  .studio-case-hero h1 { font-size: 3.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-scroll-cue span,
  .studio-floating-card { animation: none !important; }
  .studio-board img,
  .studio-project-card figure img,
  .studio-mosaic img,
  .studio-gallery img { transition: none !important; }
}

.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .8s var(--studio-ease), transform .8s var(--studio-ease); }
.reveal-left.is-visible { opacity: 1; transform: none; }
.lightbox__stage { max-width: min(94vw, 1600px); max-height: 88vh; overflow: auto; display: grid; place-items: center; }
.lightbox__stage .lightbox__image { max-width: none; width: auto; height: auto; }
.studio-index-section--creative-projects { background: #fff; }
@media (max-width: 720px) {
  .reveal-left { transform: translateY(22px); }
  .lightbox__stage .lightbox__image { max-width: 94vw; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-left { opacity: 1; transform: none; transition: none; }
}

/* Reusable layouts for future WordPress portfolio projects. */
.studio-custom-project__story .project-content { width: min(calc(100% - 40px), 1120px); }
.studio-custom-project__story .project-content > * { max-width: 780px; margin-inline: auto; }
.studio-custom-project__story .project-content > h2,
.studio-custom-project__story .project-content > h3 { margin-top: 80px; }
.studio-custom-project__story .project-content > p { color: #666; font-size: 1.04rem; }
.studio-custom-project__story .wp-block-image,
.studio-custom-project__story .wp-block-gallery { max-width: none; margin-block: 55px; }
.studio-custom-project__story .wp-block-image img,
.studio-custom-project__story .wp-block-gallery img { width: 100%; cursor: zoom-in; }
.studio-custom-project--editorial .wp-block-gallery { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 18px; }
.studio-custom-project--editorial .wp-block-gallery figure { width: auto !important; grid-column: span 6; margin: 0; overflow: hidden; }
.studio-custom-project--editorial .wp-block-gallery figure:nth-child(5n+1) { grid-column: span 8; }
.studio-custom-project--editorial .wp-block-gallery figure:nth-child(5n+2) { grid-column: span 4; }
.studio-custom-project--cinematic .studio-custom-project__story { background: #151515; color: #fff; background-image: none; }
.studio-custom-project--cinematic .project-content > p { color: rgba(255,255,255,.68); }
.studio-custom-project--cinematic .wp-block-image,
.studio-custom-project--cinematic .wp-block-gallery { width: min(92vw, 1480px); margin-left: 50%; transform: translateX(-50%); }
.studio-custom-project--cinematic .wp-block-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.studio-custom-project--cinematic .wp-block-gallery figure { width: auto !important; margin: 0; min-height: 420px; }
.studio-custom-project--cinematic .wp-block-gallery img { height: 100%; object-fit: cover; }
.studio-custom-project--grid .wp-block-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.studio-custom-project--grid .wp-block-gallery figure { width: auto !important; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.studio-custom-project--grid .wp-block-gallery img { height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .studio-custom-project--editorial .wp-block-gallery,
  .studio-custom-project--cinematic .wp-block-gallery,
  .studio-custom-project--grid .wp-block-gallery { grid-template-columns: 1fr; }
  .studio-custom-project--editorial .wp-block-gallery figure,
  .studio-custom-project--editorial .wp-block-gallery figure:nth-child(n) { grid-column: auto; }
  .studio-custom-project--cinematic .wp-block-gallery figure { min-height: 280px; }
}

/* --------------------------------------------------------------------------
   V7 — hybrid refinement
   Original portfolio composition + V5 homepage + immersive V6 interactions.
   -------------------------------------------------------------------------- */
:root {
  --atelier-ivory: #f7f4ee;
  --atelier-paper: #fbfaf7;
  --atelier-warm: rgba(148, 122, 82, .09);
  --atelier-line: rgba(24, 24, 24, .035);
}

/* Do not clip fixed or sticky navigation descendants. */
.site-shell { overflow: visible; overflow-x: clip; }
body.menu-is-open { overflow: hidden; }

/* Mobile navigation: use a visible slide-down panel rather than translating it
   behind the sticky header. This also fixes menu clicks in theme previews. */
@media (max-width: 980px) {
  .site-header { z-index: 3000; }
  .header-inner { position: static; }
  .menu-toggle { position: relative; z-index: 3002; flex: 0 0 46px; }
  .site-nav {
    position: absolute;
    z-index: 3001;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100dvh - 78px);
    padding: 12px max(20px, calc((100vw - var(--container)) / 2));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255,255,255,.985);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 60px rgba(0,0,0,.13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    clip-path: inset(0 0 100% 0);
    transition: opacity .28s ease, transform .28s ease, clip-path .34s cubic-bezier(.22,1,.36,1), visibility .28s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
  .site-nav__list { display: grid; width: 100%; gap: 0; }
  .site-nav__list li { width: 100%; }
  .site-nav a { display: block; width: 100%; padding: 17px 4px; border-bottom: 1px solid var(--line); }
  .site-nav__list li:last-child a { border-bottom: 0; }
}

/* Homepage portrait: on tablet and mobile it becomes a centred, larger visual
   anchor instead of a small absolutely-positioned badge. */
@media (max-width: 900px) {
  .home-about { min-height: auto; }
  .home-about__inner {
    grid-template-columns: 1fr;
    gap: 38px;
    align-items: center;
    padding-block: clamp(58px, 10vw, 90px);
  }
  .home-about__copy { max-width: 760px; padding-bottom: 0; }
  .home-about__portrait {
    position: relative;
    inset: auto;
    width: 100%;
    opacity: 1;
    transform: none;
    justify-self: center;
  }
  .home-about__portrait-ring {
    width: min(72vw, 430px);
    border: 1px solid rgba(255,255,255,.32);
    box-shadow: 0 30px 90px rgba(0,0,0,.38);
  }
}
@media (max-width: 600px) {
  .home-about__inner { padding-block: 52px 58px; }
  .home-about__copy { max-width: 100%; padding-bottom: 0; text-align: left; }
  .home-about__portrait { left: auto; right: auto; width: 100%; transform: none; }
  .home-about__portrait-ring { width: min(84vw, 360px); }
}

/* Atelier Vellum — a warmer, more artistic alternative to the repetitive grid.
   It retains an architectural feeling through light axes, gradients and arcs. */
.studio-blueprint {
  background:
    radial-gradient(circle at 76% 28%, rgba(148,122,82,.095), transparent 23%),
    radial-gradient(circle at 18% 74%, rgba(20,20,20,.045), transparent 24%),
    linear-gradient(112deg, transparent 0 49.85%, rgba(20,20,20,.04) 49.9% 50.02%, transparent 50.08%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,244,238,.7));
  background-size: auto;
}
.studio-blueprint::before,
.studio-blueprint::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(20,20,20,.045);
  border-radius: 50%;
}
.studio-blueprint::before { width: min(54vw, 760px); aspect-ratio: 1; right: -17%; top: -20%; }
.studio-blueprint::after { width: min(32vw, 430px); aspect-ratio: 1; left: -10%; bottom: -16%; border-color: rgba(148,122,82,.07); }

.studio-phase--blueprint,
.studio-index-section--blueprint,
.studio-case-section--blueprint {
  background-color: var(--atelier-paper);
  background-image:
    linear-gradient(118deg, transparent 0 53.75%, var(--atelier-line) 53.8% 53.86%, transparent 53.92%),
    radial-gradient(circle at 14% 18%, var(--atelier-warm), transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(20,20,20,.035), transparent 27%),
    linear-gradient(180deg, #fbfaf7 0%, #f4f0e9 100%);
  background-size: auto;
}

/* Images used in the source portfolio as chapter transitions, not gallery cards. */
.studio-visual-divider {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(150px, 19vw, 275px);
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.studio-visual-divider::before,
.studio-visual-divider::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.studio-visual-divider::before { background: linear-gradient(180deg, #fff 0, transparent 18%, transparent 82%, #fff 100%); }
.studio-visual-divider::after { background: linear-gradient(90deg, #fff 0, transparent 7%, transparent 93%, #fff 100%); }
.studio-visual-divider img {
  position: relative;
  z-index: 1;
  width: min(96vw, 1600px);
  max-height: clamp(155px, 20vw, 285px);
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.02) saturate(.78);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.studio-visual-divider--architecture { margin-top: -20px; margin-bottom: -12px; }

/* Keep elegant whitespace and prevent the enhanced sections from colliding. */
.studio-page { overflow: visible; overflow-x: clip; }
.studio-phase,
.studio-index-section,
.studio-case-section { scroll-margin-top: 130px; }
.studio-board img,
.studio-mosaic img,
.studio-gallery img { backface-visibility: hidden; }

/* Touch devices should not depend on hover to understand cards. */
@media (hover: none) {
  .studio-project-card::after { background: linear-gradient(to top, rgba(5,5,5,.9), rgba(5,5,5,.12) 74%); }
  .studio-project-card__body > span { opacity: 1; }
  .studio-board:hover img,
  .studio-project-card:hover figure img,
  .studio-mosaic figure:hover img,
  .studio-gallery figure:hover img { transform: none; }
}

/* Tablet and small-screen polish across portfolio pages. */
@media (max-width: 980px) {
  .studio-title { font-size: clamp(4rem, 12vw, 7rem); }
  .studio-phase--blueprint,
  .studio-index-section--blueprint,
  .studio-case-section--blueprint { background-position: center; }
  .studio-visual-divider { min-height: 185px; }
  .studio-visual-divider img { width: 110vw; max-width: none; }
}
@media (max-width: 720px) {
  .studio-hero__inner { width: min(calc(100% - 28px), 880px); }
  .studio-title { font-size: clamp(3.35rem, 16vw, 5.6rem); line-height: .86; }
  .studio-lead { line-height: 1.62; }
  .studio-visual-divider { min-height: 145px; }
  .studio-visual-divider img { width: 132vw; max-height: 170px; }
  .studio-blueprint::before { width: 88vw; right: -48%; top: -5%; }
  .studio-blueprint::after { width: 56vw; left: -30%; bottom: -8%; }
  .studio-project-card,
  .studio-project-card--feature,
  .studio-project-card--cinematic,
  .studio-project-card--board { min-height: 470px; }
  .studio-project-card__body { padding: 26px 22px; }
  .studio-tabs__nav { scroll-snap-type: x proximity; }
  .studio-tabs__nav button { scroll-snap-align: start; }
}
@media (max-width: 430px) {
  .studio-visual-divider img { width: 150vw; }
  .studio-project-card,
  .studio-project-card--feature,
  .studio-project-card--cinematic,
  .studio-project-card--board { min-height: 430px; }
}

/* --------------------------------------------------------------------------
   V8 — contemporary identity, native mobile navigation and modular projects
   -------------------------------------------------------------------------- */
:root {
  --identity-ink: #171614;
  --identity-charcoal: #24221f;
  --identity-stone: #d8d0c4;
  --identity-ivory: #f4f0e9;
  --identity-warm: #aa8d65;
  --identity-burgundy: #4b282c;
  --identity-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Horizontal logo lockup. The Custom Logo is treated as the symbol; the site
   title remains editable and sits beside it, matching the original portfolio. */
.brand--horizontal {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 0 1 auto;
}
.brand--horizontal .brand__mark {
  width: 52px;
  height: 58px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}
.brand--horizontal .brand__name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.38rem, 2vw, 1.92rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1;
  white-space: nowrap;
}

/* The mobile navigation uses native <details>, so it remains functional even
   if a cache, preview frame or optimization plugin delays JavaScript. */
.mobile-menu { display: none; }
.mobile-menu > summary { list-style: none; }
.mobile-menu > summary::-webkit-details-marker { display: none; }

@media (max-width: 980px) {
  .header-inner { position: relative; }
  .site-nav--desktop { display: none !important; }
  .mobile-menu {
    display: block;
    margin-left: auto;
    position: static;
  }
  .mobile-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 76px;
    min-height: 46px;
    padding: 0;
    cursor: pointer;
    color: var(--ink);
    user-select: none;
  }
  .mobile-menu__label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .mobile-menu__icon { width: 25px; display: grid; gap: 5px; }
  .mobile-menu__icon i {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
  }
  .mobile-menu[open] .mobile-menu__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu[open] .mobile-menu__icon i:nth-child(2) { opacity: 0; }
  .mobile-menu[open] .mobile-menu__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu[open] .site-nav--mobile {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 5000 !important;
    display: block !important;
    max-height: calc(100dvh - 78px);
    padding: 12px max(20px, calc((100vw - var(--container)) / 2)) 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255,255,255,.99);
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 34px 80px rgba(0,0,0,.18);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    clip-path: none !important;
  }
  .mobile-menu:not([open]) .site-nav--mobile { display: none !important; }
  .site-nav__list--mobile { display: grid !important; width: 100%; gap: 0; }
  .site-nav__list--mobile li { width: 100%; }
  .site-nav__list--mobile a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    font-size: 1.08rem;
  }
  .site-nav__list--mobile a::after { content: "↗"; position: static; width: auto; height: auto; background: none; opacity: .35; }
  .brand--horizontal .brand__mark { width: 43px; height: 48px; }
  .brand--horizontal .brand__name { font-size: clamp(1.2rem, 4vw, 1.55rem); }
}
@media (max-width: 430px) {
  .brand--horizontal { gap: 9px; }
  .brand--horizontal .brand__mark { width: 37px; height: 42px; }
  .brand--horizontal .brand__name { font-size: 1.12rem; }
  .mobile-menu__label { display: none; }
  .mobile-menu > summary { min-width: 48px; }
}

/* Home remains compositionally unchanged. Only the requested logo lockup in
   the location panel is refined. */
.home-contact__location-title { display: flex; align-items: center; gap: 18px; }
.home-contact__brand-mark { width: clamp(58px, 7vw, 86px); height: clamp(64px, 8vw, 94px); object-fit: contain; flex: 0 0 auto; }
.home-contact__brand-name { display: block; margin-bottom: 2px; color: #fff; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -.02em; }
.footer-brand__lockup { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand__lockup img { width: 58px; height: 64px; object-fit: contain; filter: invert(1) grayscale(1); }
.footer-brand__lockup span { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; letter-spacing: -.025em; }

/* Contemporary identity surface. No square grid and no empty-image feeling:
   warm paper, subtle grain and controlled pools of light. */
.studio-blueprint {
  background-image:
    url('assets/images/paper-grain.png'),
    radial-gradient(circle at 78% 24%, rgba(188,156,111,.18), transparent 28%),
    radial-gradient(circle at 15% 78%, rgba(20,20,20,.07), transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 220px 220px, auto, auto, auto;
}
.studio-blueprint::before,
.studio-blueprint::after { display: none; }
.studio-phase--blueprint,
.studio-index-section--blueprint,
.studio-case-section--blueprint {
  position: relative;
  background-color: var(--identity-ivory);
  background-image:
    url('assets/images/paper-grain.png'),
    radial-gradient(circle at 12% 12%, rgba(170,141,101,.12), transparent 25%),
    radial-gradient(circle at 88% 82%, rgba(35,32,28,.055), transparent 28%),
    linear-gradient(180deg, #f7f4ee 0%, #eee8df 100%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 220px 220px, auto, auto, auto;
}

/* Category heroes use real portfolio imagery, visible material colour and an
   editorial veil rather than a pale technical grid. */
.studio-hero--discipline,
.studio-hero--creative,
.studio-hero--identity {
  color: #fff;
  background: var(--identity-charcoal);
}
.studio-hero--discipline::before,
.studio-hero--creative::before,
.studio-hero--identity::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, rgba(12,11,10,.86), rgba(12,11,10,.28) 58%, rgba(12,11,10,.6)),
    linear-gradient(0deg, rgba(12,11,10,.58), transparent 58%);
}
.studio-hero--discipline::after,
.studio-hero--creative::after,
.studio-hero--identity::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url('assets/images/paper-grain.png');
  background-size: 220px 220px;
  opacity: .45;
  mix-blend-mode: soft-light;
}
.studio-hero--discipline .studio-hero__ghost,
.studio-hero--creative .studio-hero__ghost,
.studio-hero--identity .studio-hero__ghost {
  z-index: 0;
  opacity: .52;
  filter: saturate(.72) contrast(1.06);
  transform: scale(1.035);
}
.studio-hero--events .studio-hero__ghost { opacity: .6; filter: saturate(.82) contrast(1.04); }
.studio-hero--events::before { background: linear-gradient(105deg, rgba(29,17,18,.88), rgba(67,29,34,.35) 62%, rgba(15,13,12,.68)), linear-gradient(0deg, rgba(8,8,8,.62), transparent 62%); }
.studio-hero--architecture .studio-hero__ghost { opacity: .53; filter: saturate(.45) contrast(1.06); }
.studio-hero--architecture::before { background: linear-gradient(105deg, rgba(20,20,19,.9), rgba(53,50,45,.32) 62%, rgba(17,17,16,.69)), linear-gradient(0deg, rgba(12,12,12,.64), transparent 62%); }
.studio-hero--creative .studio-hero__ghost { opacity: .57; filter: saturate(.78) contrast(1.08); }
.studio-hero--creative::before { background: linear-gradient(105deg, rgba(24,15,17,.9), rgba(76,34,39,.36) 60%, rgba(18,16,15,.7)), linear-gradient(0deg, rgba(10,10,10,.6), transparent 62%); }
.studio-hero--identity { background-image: url('assets/images/about-architecture.jpg'); background-size: cover; background-position: center; }
.studio-hero--identity::before { background: linear-gradient(100deg, rgba(13,13,13,.91), rgba(29,28,26,.45) 62%, rgba(10,10,10,.72)); }
.studio-hero--identity .studio-blueprint { opacity: .34; mix-blend-mode: screen; }
.studio-hero--discipline .studio-title,
.studio-hero--creative .studio-title,
.studio-hero--identity .studio-title { text-shadow: 0 12px 55px rgba(0,0,0,.28); }
.studio-hero--discipline .studio-title em,
.studio-hero--creative .studio-title em,
.studio-hero--identity .studio-title em { color: rgba(255,255,255,.57); }
.studio-hero--discipline .studio-label,
.studio-hero--creative .studio-label,
.studio-hero--identity .studio-label { color: #d7bd98; }
.studio-hero--discipline .studio-lead,
.studio-hero--creative .studio-lead,
.studio-hero--identity .studio-lead { color: rgba(255,255,255,.76); }
.studio-hero--discipline .studio-scroll-cue,
.studio-hero--creative .studio-scroll-cue,
.studio-hero--identity .studio-scroll-cue { z-index: 3; color: rgba(255,255,255,.82); }
.studio-hero__inner { z-index: 3; }

/* More polished preview cards. */
.studio-project-card {
  border: 1px solid rgba(24,22,19,.09);
  box-shadow: 0 34px 80px -58px rgba(12,11,10,.7);
}
.studio-project-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(8,8,8,.18));
  pointer-events: none;
}
.studio-project-card__body { backdrop-filter: blur(5px); }

/* Clickable executive-drawing workspace modelled on the supplied HTML. */
.studio-technical-tabs {
  display: grid;
  grid-template-columns: minmax(250px,.36fr) minmax(0,1fr);
  gap: 0;
  margin-top: 75px;
  border: 1px solid rgba(20,20,20,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 36px 100px -72px rgba(0,0,0,.75);
  overflow: hidden;
}
.studio-technical-tabs__nav {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 30px 24px;
  background: rgba(31,29,27,.97);
  color: #fff;
}
.studio-technical-tabs__nav .studio-label { color: rgba(255,255,255,.45); }
.studio-technical-tabs__nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 61px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: transparent;
  color: rgba(255,255,255,.58);
  cursor: pointer;
  text-align: left;
  transition: color .24s ease, padding-left .24s ease, background .24s ease;
}
.studio-technical-tabs__nav button span { font-size: .68rem; font-weight: 700; letter-spacing: .13em; line-height: 1.45; text-transform: uppercase; }
.studio-technical-tabs__nav button small { color: rgba(255,255,255,.28); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; }
.studio-technical-tabs__nav button[aria-selected="true"] { padding-left: 12px; background: linear-gradient(90deg, rgba(170,141,101,.18), transparent); color: #fff; }
.studio-technical-tabs__nav button[aria-selected="true"] small { color: #d2b488; }
.studio-technical-tabs__stage { min-width: 0; padding: clamp(20px,3vw,36px); background: #f9f7f3; }
.studio-technical-tabs__stage-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,.09); }
.studio-technical-tabs__stage-head span { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.studio-technical-tabs__stage-head small { color: #888; }
.studio-technical-sheet { margin: 0; }
.studio-technical-sheet img { display: block; width: 100%; max-height: 74vh; object-fit: contain; background: #fff; cursor: zoom-in; box-shadow: 0 20px 58px -44px rgba(0,0,0,.65); }
.studio-technical-sheet figcaption { display: flex; justify-content: space-between; gap: 18px; padding-top: 15px; }
.studio-technical-sheet figcaption strong { font-family: var(--serif); font-size: 1.18rem; }
.studio-technical-sheet figcaption span { color: #777; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; text-align: right; }

/* Expandable Creative Direction taxonomy. Additional section names entered in
   the project editor create additional groups without editing the template. */
.studio-index-section--creative-library { background: #f2eee7; }
.studio-creative-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.studio-creative-category {
  position: relative;
  min-height: 290px;
  padding: clamp(28px,4vw,52px);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.73);
  box-shadow: 0 28px 70px -60px rgba(0,0,0,.8);
}
.studio-creative-category::after { content: ""; position: absolute; right: -45px; bottom: -65px; width: 190px; aspect-ratio: 1; border: 1px solid rgba(170,141,101,.18); border-radius: 50%; }
.studio-creative-category > span { color: var(--identity-warm); font-family: var(--serif); font-size: 2.1rem; }
.studio-creative-category h3 { margin-top: 40px; font-size: clamp(1.8rem,3vw,3.2rem); }
.studio-creative-category p { color: #68635d; }
.studio-category-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 62px; }
.studio-category-chips a { padding: 10px 15px; border: 1px solid rgba(0,0,0,.12); background: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.studio-creative-project-group { scroll-margin-top: 130px; padding: 65px 0; border-top: 1px solid rgba(0,0,0,.1); }
.studio-creative-project-group__head { margin-bottom: 35px; }
.studio-creative-project-group__head h3 { font-size: clamp(2.3rem,4.5vw,5rem); }

/* Reusable Gutenberg patterns for future project pages. */
.ae-pattern { margin-block: clamp(70px,9vw,140px); }
.ae-pattern__eyebrow { color: var(--identity-warm); font-size: .68rem; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; }
.ae-pattern h2 { font-family: var(--serif); font-size: clamp(2.5rem,5vw,5.5rem); line-height: .94; }
.ae-pattern h3 { font-family: var(--serif); font-size: clamp(2rem,4vw,4rem); }
.ae-pattern h4 { margin-top: 15px; font-family: var(--serif); font-size: 1.55rem; }
.ae-pattern img { width: 100%; }
.ae-comparison { gap: clamp(18px,3vw,40px); margin-top: 45px; }
.ae-comparison__image img { aspect-ratio: 4/3; object-fit: cover; }
.ae-pattern--installation { padding: clamp(34px,6vw,90px); background: #171614; color: #fff; }
.ae-pattern--installation p { color: rgba(255,255,255,.67); }
.ae-pattern--creative { padding-block: clamp(30px,5vw,75px); }
.ae-pattern-gallery { margin-top: 35px; }
.studio-custom-project--installation .studio-custom-project__story { background: #171614; color: #fff; background-image: none; }
.studio-custom-project--installation .project-content > p { color: rgba(255,255,255,.7); }
.studio-custom-project--creative-case .studio-custom-project__story { background: #f2eee7; }

@media (max-width: 980px) {
  .studio-technical-tabs { grid-template-columns: 1fr; }
  .studio-technical-tabs__nav { display: flex; flex-direction: row; overflow-x: auto; padding: 14px; scroll-snap-type: x proximity; }
  .studio-technical-tabs__nav .studio-label { display: none; }
  .studio-technical-tabs__nav button { flex: 0 0 min(270px,78vw); padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); scroll-snap-align: start; }
  .studio-technical-tabs__nav button[aria-selected="true"] { padding-left: 14px; }
  .studio-creative-category-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .studio-hero--discipline,
  .studio-hero--creative,
  .studio-hero--identity { min-height: calc(88svh - 78px); }
  .studio-hero--discipline .studio-hero__ghost,
  .studio-hero--creative .studio-hero__ghost { opacity: .44; object-position: center; }
  .studio-creative-category-grid { grid-template-columns: 1fr; }
  .studio-creative-category { min-height: 250px; }
  .studio-technical-tabs__stage { padding: 16px; }
  .studio-technical-tabs__stage-head { display: block; }
  .studio-technical-tabs__stage-head small { display: block; margin-top: 7px; }
  .studio-technical-sheet img { max-height: 62vh; }
  .studio-technical-sheet figcaption { display: block; }
  .studio-technical-sheet figcaption span { display: block; margin-top: 4px; text-align: left; }
  .home-contact__location-title { align-items: flex-start; }
  .home-contact__brand-mark { width: 62px; height: 68px; }
  .wp-block-columns.ae-comparison { display: grid; grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   Final V8 refinement patch - preserves approved V8 design
   -------------------------------------------------------------------------- */
.brand { gap: 14px; }
.brand img { width: 68px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.brand__name { font-family: var(--serif); font-size: clamp(1.55rem,2.2vw,2.25rem); font-weight: 500; line-height: 1; white-space: nowrap; }
.hero--home .hero__content { text-align: center; }
.hero--home .display { font-size: clamp(2.8rem,4.8vw,5.55rem); white-space: nowrap; }
.hero--home .hero__content p { margin-inline: auto; }
.home-about__portrait img { object-fit: cover; object-position: center 28%; transform: scale(1.04); transform-origin: center; }

.portfolio-band__copy { display: grid !important; place-items: center; gap: 12px; max-width: 1100px; padding: 28px 30px !important; text-align: center; text-transform: none !important; }
.portfolio-band__copy strong { display: block; font-family: var(--serif); font-size: clamp(2.35rem,5vw,5.8rem); font-weight: 500; line-height: .92; letter-spacing: -.025em; text-transform: uppercase; }
.portfolio-band__copy small { display: block; color: rgba(255,255,255,.78); font-family: var(--sans); font-size: clamp(.8rem,1.1vw,1rem); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

.studio-hero__inner { text-align: center; }
.studio-hero .studio-label, .studio-hero .studio-lead { margin-inline: auto; text-align: center; }
.studio-visual-divider { width: 100%; min-height: clamp(220px,30vw,480px); margin: 0; background: #fff; }
.studio-visual-divider img { width: 100%; max-width: none; height: 100%; max-height: none; object-fit: contain; padding: clamp(8px,2vw,28px) 0; mix-blend-mode: multiply; }
.studio-visual-divider::before,.studio-visual-divider::after { display: none; }

.studio-case-hero__subtitle { max-width: 760px; margin: 24px 0 0; color: rgba(255,255,255,.82); font-family: var(--serif); font-size: clamp(1.15rem,2vw,1.7rem); line-height: 1.2; }
.studio-custom-project__story { background: #fff; }
.project-content { width: 100%; max-width: none; }
.project-content > .wp-block-group { margin: 0; }
.project-content .section { padding: clamp(76px,9vw,124px) 0; }
.project-content .container { width: min(calc(100% - 40px), var(--container)); }
.project-content .wp-block-columns { margin: 0; }
.project-content .wp-block-image { margin: 0; }
.project-content h2,.project-content h3,.project-content h4 { font-family: var(--serif); }
.project-content .h2 { font-size: clamp(2.45rem,4.8vw,5rem); }
.project-content .lead { max-width: 800px; }

.wp-block-columns.ae-project-intro { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(250px,.7fr); gap: clamp(40px,7vw,90px); align-items: start; }
.ae-project-intro__scope { padding-left: 30px; border-left: 1px solid var(--line); }
.ae-project-intro__scope h4 { margin-top: 0; font-size: 1.35rem; }

.wp-block-columns.ae-sketch-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(18px,3vw,34px); margin-top: 48px; align-items: stretch; }
.ae-sketch { overflow: hidden; background: #f4f0e8; box-shadow: 0 18px 48px rgba(20,18,15,.08); }
.ae-sketch img { width: 100%; height: auto; object-fit: contain; }

/* Natural-ratio editorial collages: no forced crop and no empty image frames. */
.ae-editorial-gallery { columns: 3 300px; column-gap: 16px; margin-top: 46px; }
.ae-editorial-gallery > .wp-block-image { display: inline-block; width: 100%; margin: 0 0 16px; break-inside: avoid; overflow: hidden; background: transparent; }
.ae-editorial-gallery > .wp-block-image img { width: 100%; height: auto; object-fit: contain; transition: transform .55s ease; }
.ae-editorial-gallery > .wp-block-image:hover img { transform: scale(1.015); }

.ae-catalogue-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 46px; }
.ae-catalogue-gallery > .wp-block-image { background: #fff; box-shadow: 0 16px 44px rgba(0,0,0,.08); }
.ae-catalogue-gallery img { width: 100%; height: auto; object-fit: contain; }
.ae-campaign-gallery { columns: 3 280px; column-gap: 18px; margin-top: 46px; }
.ae-campaign-gallery > .wp-block-image,.ae-social-grid > .wp-block-image { display: inline-block; width: 100%; margin: 0 0 18px; break-inside: avoid; background: #f3efe8; }
.ae-campaign-gallery img,.ae-social-grid img { width: 100%; height: auto; object-fit: contain; }
.ae-wide-banner-gallery { display: grid; gap: 18px; margin-top: 46px; }
.ae-wide-banner-gallery img { width: 100%; height: auto; object-fit: contain; }
.wp-block-columns.ae-social-layout { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(0,1.35fr); gap: clamp(34px,6vw,76px); align-items: start; }
.ae-social-video { position: sticky; top: 112px; }
.ae-vertical-video video { display: block; width: 100%; max-height: 780px; background: #111; }
.ae-social-grid { columns: 2 240px; column-gap: 18px; }
.wp-block-columns.ae-browser-grid,.wp-block-columns.ae-capabilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.ae-browser-card { padding: 22px; background: #fff; border: 1px solid var(--line); }
.ae-browser-card__image img { width: 100%; height: auto; object-fit: cover; }

.ae-media-tabs { padding: clamp(76px,9vw,120px) 0; background: var(--paper); }
.ae-tabs { display: grid; grid-template-columns: minmax(220px,.33fr) minmax(0,1fr); gap: 30px; margin-top: 42px; }
.ae-tabs__nav { display: grid; align-content: start; gap: 2px; }
.ae-tabs__nav button { width: 100%; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; color: var(--muted); cursor: pointer; }
.ae-tabs__nav button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 700; }
.ae-tabs__panels figure { margin: 0; min-height: 520px; display: grid; place-items: center; background: #fff; overflow: auto; }
.ae-tabs__panels img { width: 100%; height: auto; max-height: 780px; object-fit: contain; cursor: zoom-in; }

.ae-contact-form { display: grid; gap: 14px; }
.ae-contact-form .field label { display: block; margin-bottom: 5px; font-size: .78rem; font-weight: 600; }
.ae-contact-form input,.ae-contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #696969; border-radius: 3px; background: #fff; }
.ae-contact-form textarea { min-height: 92px; resize: vertical; }
.ae-contact-form .button { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: #000; color: #fff; cursor: pointer; }

/* Keep project previews clean and correctly fitted. */
.studio-project-card figure { background: #e9e6e0; }
.studio-project-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.studio-project-card--feature figure img { object-position: center; }

@media (max-width: 980px) {
  .hero--home .display { white-space: normal; max-width: 900px; }
  .wp-block-columns.ae-project-intro,.wp-block-columns.ae-social-layout { grid-template-columns: 1fr; }
  .ae-project-intro__scope { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
  .ae-social-video { position: static; max-width: 500px; }
  .ae-tabs { grid-template-columns: 1fr; }
  .ae-tabs__nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ae-tabs__panels figure { min-height: 380px; }
}
@media (max-width: 700px) {
  .brand { min-width: 0; }
  .brand img { width: 52px; height: 58px; }
  .brand__name { font-size: 1.45rem; }
  .hero--home .display { font-size: clamp(2.35rem,11vw,4.4rem); line-height: .96; }
  .home-about__portrait-ring { width: min(84vw,360px); }
  .portfolio-band__copy strong { font-size: clamp(2rem,10vw,3.5rem); }
  .portfolio-band__copy small { max-width: 320px; }
  .studio-visual-divider { min-height: 150px; }
  .studio-visual-divider img { width: 120%; margin-left: -10%; }
  .wp-block-columns.ae-sketch-grid,.ae-catalogue-gallery,.wp-block-columns.ae-browser-grid,.wp-block-columns.ae-capabilities { grid-template-columns: 1fr; }
  .ae-editorial-gallery,.ae-campaign-gallery,.ae-social-grid { columns: 1; }
  .ae-tabs__nav { grid-template-columns: 1fr; }
  .ae-tabs__panels figure { min-height: 260px; }
  .project-content .container { width: min(calc(100% - 28px),var(--container)); }
}


/* --------------------------------------------------------------------------
   V8.2 final lock patch — approved home + centered editable portfolios
   -------------------------------------------------------------------------- */

/* Fresh transparent PNG logo assets. No image background is introduced by CSS. */
.brand--horizontal .brand__mark,
.footer-brand__lockup img,
.home-contact__brand-mark,
.ae-location-mark img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.brand--horizontal .brand__mark {
  object-fit: contain;
  filter: none !important;
}
.footer-brand__lockup img {
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
  opacity: .96;
}

/* Architecture index: equal premium cards, with any orphan card centered. */
.studio-project-grid--architecture {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 36px);
  width: min(100%, 1240px);
  margin-inline: auto;
}
.studio-project-grid--architecture .studio-project-card {
  min-height: clamp(460px, 45vw, 610px);
}
.studio-project-grid--architecture > .studio-project-card:only-child,
.studio-project-grid--architecture > .studio-project-card:last-child:nth-child(odd):not(:first-child) {
  grid-column: 1 / -1;
  width: min(100%, 610px);
  justify-self: center;
}

/* Architecture detail pages: centered editorial sequences with natural ratios.
   This removes left-heavy masonry while preserving every image without distortion. */
.studio-custom-project--architecture .ae-architecture-chapter .container,
.studio-custom-project--architecture .ae-final-gallery .container,
.studio-custom-project--architecture .ae-case-intro .container {
  width: min(calc(100% - 48px), 1320px);
  margin-inline: auto;
}
.studio-custom-project--architecture .ae-architecture-chapter > .container > .eyebrow,
.studio-custom-project--architecture .ae-architecture-chapter > .container > .h2,
.studio-custom-project--architecture .ae-architecture-chapter > .container > .lead,
.studio-custom-project--architecture .ae-final-gallery > .container > .eyebrow,
.studio-custom-project--architecture .ae-final-gallery > .container > .h2,
.studio-custom-project--architecture .ae-final-gallery > .container > .lead {
  text-align: center;
  margin-inline: auto;
}
.studio-custom-project--architecture .ae-editorial-gallery {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  width: min(100%, 1240px);
  margin: clamp(40px, 5vw, 68px) auto 0;
  align-items: start;
}
.studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image {
  display: block;
  grid-column: span 6;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
  break-inside: auto;
  box-shadow: 0 24px 65px -48px rgba(15, 15, 15, .65);
}
.studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image:nth-child(3n+1) {
  grid-column: 2 / span 10;
}
.studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image:last-child:nth-child(3n+2) {
  grid-column: 4 / span 6;
}
.studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  transform: none;
}
.studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image:hover img {
  transform: none;
}

/* Christmas index: concise 3 / 2 / 1 responsive project grid. */
.studio-project-grid--christmas {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  width: min(100%, 1400px);
  margin-inline: auto;
}
.studio-project-grid--christmas > .studio-project-card {
  grid-column: span 2;
  min-height: clamp(430px, 37vw, 570px);
}
.studio-project-grid--christmas > .studio-project-card:nth-last-child(2):nth-child(3n+1) {
  grid-column: 2 / span 2;
}
.studio-project-grid--christmas > .studio-project-card:last-child:nth-child(3n+1) {
  grid-column: 3 / span 2;
}
.studio-project-grid--christmas .studio-project-card__body {
  padding: clamp(24px, 2.5vw, 36px);
}
.studio-project-grid--christmas .studio-project-card__body strong {
  font-size: clamp(1.85rem, 2.55vw, 3.15rem);
  line-height: .95;
}
.studio-project-grid--christmas .studio-project-card__body > span {
  margin-top: 20px;
}

/* Equivalent Gutenberg project grids when a page is edited or rebuilt using
   the Project Grid block rather than the protected V8 category template. */
.ae-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin-top: 44px;
}
.ae-project-card { min-width: 0; }
.ae-project-card__link {
  position: relative;
  display: grid;
  min-height: 480px;
  overflow: hidden;
  background: #171717;
  color: #fff;
  isolation: isolate;
}
.ae-project-card__image { position: absolute; inset: 0; z-index: -2; }
.ae-project-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ae-project-card__link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.06) 72%); }
.ae-project-card__body { align-self: end; padding: 28px; }
.ae-project-card__meta { font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .68; }
.ae-project-card__body h3 { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.25rem); line-height: .94; }
.ae-project-card__subtitle { margin: 8px 0 0; color: rgba(255,255,255,.68); }
.ae-project-card__cue { display: block; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.28); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ae-project-grid--architecture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ae-project-grid--architecture > .ae-project-card:only-child,
.ae-project-grid--architecture > .ae-project-card:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; width: min(100%, 610px); justify-self: center; }

@media (max-width: 1100px) {
  .studio-project-grid--christmas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-project-grid--christmas > .studio-project-card,
  .studio-project-grid--christmas > .studio-project-card:nth-last-child(2):nth-child(3n+1),
  .studio-project-grid--christmas > .studio-project-card:last-child:nth-child(3n+1) { grid-column: auto; }
  .studio-project-grid--christmas > .studio-project-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: min(100%, 560px); justify-self: center; }
  .ae-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .studio-project-grid--architecture,
  .studio-project-grid--christmas,
  .ae-project-grid,
  .ae-project-grid--architecture {
    grid-template-columns: 1fr;
  }
  .studio-project-grid--architecture > .studio-project-card:only-child,
  .studio-project-grid--architecture > .studio-project-card:last-child:nth-child(odd):not(:first-child),
  .studio-project-grid--christmas > .studio-project-card,
  .studio-project-grid--christmas > .studio-project-card:last-child:nth-child(odd),
  .ae-project-grid--architecture > .ae-project-card:only-child,
  .ae-project-grid--architecture > .ae-project-card:last-child:nth-child(odd):not(:first-child) {
    grid-column: auto;
    width: 100%;
  }
  .studio-custom-project--architecture .ae-architecture-chapter .container,
  .studio-custom-project--architecture .ae-final-gallery .container,
  .studio-custom-project--architecture .ae-case-intro .container {
    width: min(calc(100% - 28px), 1320px);
  }
  .studio-custom-project--architecture .ae-editorial-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image,
  .studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image:nth-child(3n+1),
  .studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image:last-child:nth-child(3n+2) {
    grid-column: 1;
  }
}

/* --------------------------------------------------------------------------
   V8.3 final portfolio centering + architecture restoration
   Homepage styles remain untouched.
   -------------------------------------------------------------------------- */

/* Remove the inherited 780/1120px left-anchored constraint from earlier
   custom-project experiments. Every case-study section now owns a centered
   inner container, matching the approved V8 composition. */
.studio-custom-project__story .project-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.studio-custom-project__story .project-content > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.project-content .wp-block-group.container,
.project-content > .wp-block-group.section > .wp-block-group.container {
  width: min(calc(100% - 64px), 1320px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Balanced overview: preserve an editorial two-column hierarchy while
   centering the complete composition within the viewport. */
.project-content .ae-case-intro > .container {
  width: min(calc(100% - 64px), 1180px) !important;
}
.project-content .wp-block-columns.ae-project-intro {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
  gap: clamp(52px, 7vw, 110px);
}
.project-content .ae-project-intro__copy,
.project-content .ae-project-intro__scope {
  min-width: 0;
}
.project-content .ae-project-intro__copy .lead {
  max-width: 660px;
}
.project-content .ae-project-intro__scope {
  align-self: start;
}

/* All case-study chapter headings are intentionally centred over the visual
   sequence, while overview copy retains its editorial left alignment. */
.project-content .ae-final-gallery > .container > .eyebrow,
.project-content .ae-final-gallery > .container > .h2,
.project-content .ae-final-gallery > .container > .lead,
.project-content .ae-architecture-chapter > .container > .eyebrow,
.project-content .ae-architecture-chapter > .container > .h2,
.project-content .ae-architecture-chapter > .container > .lead,
.project-content .ae-concept-section > .container > .eyebrow,
.project-content .ae-concept-section > .container > .h2,
.project-content .ae-concept-section > .container > .lead {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Premium editorial collage: uses the full centred canvas, keeps natural
   image ratios, and creates balanced alternating rows without blank columns. */
.project-content .ae-editorial-gallery {
  columns: auto !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  width: min(100%, 1240px);
  margin: clamp(42px, 5vw, 72px) auto 0 !important;
  align-items: start;
}
.project-content .ae-editorial-gallery > .wp-block-image {
  display: block !important;
  grid-column: span 6;
  width: 100% !important;
  margin: 0 !important;
  break-inside: auto;
  overflow: hidden;
  background: transparent;
}
.project-content .ae-editorial-gallery > .wp-block-image:nth-child(4n+1) { grid-column: span 7; }
.project-content .ae-editorial-gallery > .wp-block-image:nth-child(4n+2) { grid-column: span 5; }
.project-content .ae-editorial-gallery > .wp-block-image:nth-child(4n+3) { grid-column: span 5; }
.project-content .ae-editorial-gallery > .wp-block-image:nth-child(4n+4) { grid-column: span 7; }
.project-content .ae-editorial-gallery > .wp-block-image:last-child:nth-child(4n+1) {
  grid-column: 3 / span 8;
}
.project-content .ae-editorial-gallery > .wp-block-image:last-child:nth-child(4n+3) {
  grid-column: 4 / span 6;
}
.project-content .ae-editorial-gallery > .wp-block-image img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}

/* Architectural boards receive an intentional paper field and subtle depth;
   photographs remain edge-to-edge without artificial top or bottom gaps. */
.studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image {
  padding: clamp(10px, 1.4vw, 18px);
  background: #f4f3ef;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 26px 70px -54px rgba(0,0,0,.72);
}
.studio-custom-project--architecture .ae-editorial-gallery > .wp-block-image img {
  background: #fff;
}

/* Restored V8 architecture index: presentation-board cards, a wide lead
   project, and centred orphan cards. */
.studio-project-grid--architecture.studio-project-grid--boards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 38px);
  width: min(100%, 1240px);
  margin-inline: auto;
}
.studio-project-grid--architecture .studio-project-card--board {
  min-height: 510px;
  width: 100%;
}
.studio-project-grid--architecture .studio-project-card--board-feature {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-height: 650px;
  justify-self: stretch !important;
}
.studio-project-grid--architecture > .studio-project-card--board:last-child:nth-child(even):not(.studio-project-card--board-feature) {
  /* Even project counts already form a complete row. */
  width: 100%;
}
.studio-project-grid--architecture > .studio-project-card--board:last-child:nth-child(odd):not(:first-child):not(.studio-project-card--board-feature) {
  grid-column: 1 / -1;
  width: min(100%, 610px);
  justify-self: center;
}

/* A section containing one selected work should read as a deliberate feature,
   not as a left-aligned half-empty grid. */
.studio-project-grid--editorial > .studio-project-card:only-child {
  grid-column: 1 / -1;
  width: min(100%, 820px);
  min-height: clamp(560px, 58vw, 760px);
  justify-self: center;
}
.studio-project-grid--editorial > .studio-project-card:only-child.studio-project-card--feature {
  grid-row: auto;
}

/* Catalogue, campaign and website-design content also remains centred if a
   user adds or removes blocks later in Gutenberg. */
.project-content .ae-catalogue-gallery,
.project-content .ae-campaign-gallery,
.project-content .ae-wide-banner-gallery,
.project-content .ae-social-layout,
.project-content .ae-browser-grid,
.project-content .ae-capabilities {
  width: min(100%, 1240px);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Tablet and mobile: stack cleanly, preserve complete imagery and remove the
   possibility of a large empty right side. */
@media (max-width: 980px) {
  .project-content .wp-block-group.container,
  .project-content > .wp-block-group.section > .wp-block-group.container,
  .project-content .ae-case-intro > .container {
    width: min(calc(100% - 40px), 1320px) !important;
  }
  .project-content .wp-block-columns.ae-project-intro {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 34px;
  }
  .project-content .ae-project-intro__scope {
    padding-left: 0;
    padding-top: 26px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .studio-project-grid--architecture.studio-project-grid--boards {
    grid-template-columns: 1fr;
  }
  .studio-project-grid--architecture .studio-project-card--board-feature,
  .studio-project-grid--architecture > .studio-project-card--board:last-child:nth-child(odd):not(:first-child):not(.studio-project-card--board-feature) {
    grid-column: auto !important;
    width: 100% !important;
  }
  .studio-project-grid--architecture .studio-project-card--board-feature {
    min-height: 580px;
  }
}

@media (max-width: 720px) {
  .project-content .wp-block-group.container,
  .project-content > .wp-block-group.section > .wp-block-group.container,
  .project-content .ae-case-intro > .container {
    width: min(calc(100% - 28px), 1320px) !important;
  }
  .project-content .ae-editorial-gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .project-content .ae-editorial-gallery > .wp-block-image,
  .project-content .ae-editorial-gallery > .wp-block-image:nth-child(4n+1),
  .project-content .ae-editorial-gallery > .wp-block-image:nth-child(4n+2),
  .project-content .ae-editorial-gallery > .wp-block-image:nth-child(4n+3),
  .project-content .ae-editorial-gallery > .wp-block-image:nth-child(4n+4),
  .project-content .ae-editorial-gallery > .wp-block-image:last-child:nth-child(4n+1),
  .project-content .ae-editorial-gallery > .wp-block-image:last-child:nth-child(4n+3) {
    grid-column: 1;
  }
  .studio-project-grid--editorial > .studio-project-card:only-child {
    width: 100%;
    min-height: 500px;
  }
}


/* ========================================================================
   V14 EDITABLE BLOCK COMPATIBILITY
   Core Gutenberg blocks add figure/group wrappers around the original V8
   classes. These rules make those wrappers behave exactly like the original
   direct image elements so the approved frontend composition is preserved.
   ======================================================================== */
.wp-block-group.hero,
.wp-block-group.home-about,
.wp-block-group.home-expertise,
.wp-block-group.home-contact,
.wp-block-group.studio-hero,
.wp-block-group.studio-phase,
.wp-block-group.studio-index-section,
.wp-block-group.studio-cta,
.wp-block-group.contact-panel { margin-block: 0; }

.hero > .wp-block-image.hero__media,
.home-about > .wp-block-image.home-about__background,
.home-contact > .wp-block-image.home-contact__background,
.studio-hero > .wp-block-image.studio-hero__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.hero > .wp-block-image.hero__media { z-index: -2; }
.home-about > .wp-block-image.home-about__background { z-index: -3; filter: grayscale(1); }
.home-contact > .wp-block-image.home-contact__background { z-index: -2; }
.studio-hero > .wp-block-image.studio-hero__ghost { z-index: -2; opacity: .22; }
.hero > .wp-block-image.hero__media img,
.home-about > .wp-block-image.home-about__background img,
.home-contact > .wp-block-image.home-contact__background img,
.studio-hero > .wp-block-image.studio-hero__ghost img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-about__portrait-ring > .wp-block-image,
.studio-board > .wp-block-image,
.studio-visual-divider > .wp-block-image,
.ae-sketch > .wp-block-image,
.ae-browser-card__image.wp-block-image {
  width: 100%;
  height: 100%;
  margin: 0;
}
.home-about__portrait-ring > .wp-block-image img,
.studio-board > .wp-block-image img,
.studio-visual-divider > .wp-block-image img,
.ae-sketch > .wp-block-image img {
  width: 100%;
  height: 100%;
  display: block;
}
.home-about__portrait-ring > .wp-block-image img { object-fit: cover; object-position: center 30%; }

.contact-panel > .wp-block-image:first-child {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
}
.contact-panel > .wp-block-image:first-child img { width:100%; height:100%; object-fit:cover; display:block; }

/* WordPress applies default top/bottom margins to blocks. V8 spacing is
   controlled by the section classes, so suppress only the unintended gaps. */
.entry-content > .wp-block-group,
.studio-page > .wp-block-group,
.portfolio-index > .wp-block-html,
.portfolio-index > .wp-block-ae-linked-cards { margin-block-start: 0; margin-block-end: 0; }
.wp-block-group.container,
.wp-block-group.container--narrow { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.wp-block-group.container--narrow { width: min(calc(100% - 40px), 980px); }

/* Editable V8 card block. */
.portfolio-index__cards { display: contents; }
.ae-linked-cards-editor { border:1px solid #d6d1c8; padding:20px; background:#fbfaf7; }
.ae-linked-card-editor { padding:18px; border:1px solid #ddd7ce; background:#fff; margin-bottom:14px; }
.ae-linked-card-editor__media { display:flex; align-items:center; gap:14px; margin-bottom:12px; }

/* Keep editorial galleries centred and use the available canvas rather than
   collapsing against the left edge. */
.ae-case-intro .container,
.ae-final-gallery .container,
.ae-architecture-chapter .container,
.ae-concept-section .container { width:min(calc(100% - 48px), 1380px); margin-inline:auto; }
.ae-project-intro { width:100%; align-items:start; }
.ae-editorial-gallery,
.ae-catalogue-gallery,
.ae-campaign-gallery,
.ae-wide-banner-gallery,
.ae-social-grid { width:100%; margin-inline:auto; }
.ae-editorial-gallery > .wp-block-image,
.ae-catalogue-gallery > .wp-block-image,
.ae-campaign-gallery > .wp-block-image,
.ae-wide-banner-gallery > .wp-block-image,
.ae-social-grid > .wp-block-image { margin:0; min-width:0; }
.ae-editorial-gallery > .wp-block-image img,
.ae-catalogue-gallery > .wp-block-image img,
.ae-campaign-gallery > .wp-block-image img,
.ae-wide-banner-gallery > .wp-block-image img,
.ae-social-grid > .wp-block-image img { width:100%; height:auto; display:block; }

/* Editor-generated section header columns need the same alignment as V8. */
.studio-section-heading > .wp-block-group:first-child { min-width:0; }
.studio-section-heading > p { max-width:560px; }

@media (max-width: 782px) {
  .wp-block-group.container,
  .wp-block-group.container--narrow,
  .ae-case-intro .container,
  .ae-final-gallery .container,
  .ae-architecture-chapter .container,
  .ae-concept-section .container { width:min(calc(100% - 28px), var(--container)); }
  .home-about__portrait-ring > .wp-block-image img { object-position:center 28%; }
}


/* --------------------------------------------------------------------------
   V14 — premium alignment, same-category project navigation and drawing viewer
   -------------------------------------------------------------------------- */

/* About phase 03: the Gutenberg figure is the positioned background wrapper.
   Make its actual image fill the entire section so no grey/empty panel appears. */
.studio-phase--experience { position: relative; isolation: isolate; }
.studio-phase__background { margin: 0 !important; overflow: hidden; }
.studio-phase__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Portfolio category bands: retain readable text while restoring the stronger,
   less faded image treatment from the approved V8 direction. */
.portfolio-band img {
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
}
.portfolio-band::after { background: linear-gradient(90deg, rgba(8,8,8,.27), rgba(8,8,8,.18)); }
.portfolio-band:hover::after { background: linear-gradient(90deg, rgba(8,8,8,.18), rgba(8,8,8,.1)); }
.portfolio-band__copy strong,
.portfolio-band__copy small { text-shadow: 0 3px 28px rgba(0,0,0,.65); }

/* Footer external links: full-width rows, consistent baselines and no overlapping text. */
.site-footer .socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  width: min(100%, 330px);
}
.site-footer .socials a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 48px;
  padding: 12px 14px;
  text-align: left;
  line-height: 1.2;
  letter-spacing: .08em;
  white-space: normal;
}
.site-footer .socials a::after {
  content: "↗";
  flex: 0 0 auto;
  margin-left: 16px;
  font-size: 1rem;
  opacity: .75;
}
.portfolio-social-bar .socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.portfolio-social-bar .socials a {
  width: auto;
  min-width: 160px;
  height: auto;
  min-height: 48px;
  padding: 10px 16px;
}

/* Architecture project grids: consistent two-column rows. The old feature-card
   stagger is removed so cards align cleanly and the final orphan is centered. */
.studio-project-grid--architecture,
.studio-project-grid--architecture.studio-project-grid--boards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(24px, 2.7vw, 38px);
  width: min(100%, 1240px);
  margin-inline: auto;
}
.studio-project-grid--architecture .studio-project-card,
.studio-project-grid--architecture .studio-project-card--board,
.studio-project-grid--architecture .studio-project-card--board-feature {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  min-height: clamp(500px, 46vw, 620px);
  justify-self: stretch;
}
.studio-project-grid--architecture .studio-project-card--board-feature figure {
  inset: 0 0 26%;
}
.studio-project-grid--architecture .studio-project-card--board-feature .studio-project-card__body {
  align-self: end;
  justify-self: stretch;
  width: 100%;
}
.studio-project-grid--architecture > .studio-project-card:only-child,
.studio-project-grid--architecture > .studio-project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(100%, 610px);
  justify-self: center;
}

/* Same-category next-project panel. */
.studio-case-next { position: relative; overflow: hidden; isolation: isolate; }
.studio-case-next__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.05);
}
.studio-case-next::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12,12,12,.96), rgba(12,12,12,.72));
}
.studio-case-next__meta {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,.62);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Premium dark technical drawing viewer. */
.ae-media-tabs {
  background: #111312;
  color: #fff;
}
.ae-media-tabs > .container { width: min(calc(100% - 48px), 1380px); }
.ae-media-tabs .eyebrow { color: #b9a47c; }
.ae-media-tabs .h2 { color: #fff; }
.ae-tabs {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(38px, 5vw, 70px);
  border: 1px solid rgba(255,255,255,.14);
  background: #171918;
  box-shadow: 0 36px 100px -58px rgba(0,0,0,.95);
}
.ae-tabs__nav {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.12);
  background: #0c0e0d;
}
.ae-tabs__nav button {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: transparent;
  color: rgba(255,255,255,.56);
  cursor: pointer;
  text-align: left;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: none;
  transition: color .25s ease, background .25s ease, padding-left .25s ease;
}
.ae-tabs__nav button:hover,
.ae-tabs__nav button[aria-selected="true"] {
  padding-left: 22px;
  background: #242824;
  color: #fff;
}
.ae-tabs__nav button[aria-selected="true"] { box-shadow: inset 3px 0 0 #b9a47c; }
.ae-tabs__panels { min-width: 0; padding: clamp(18px, 3vw, 38px); background: #1a1d1b; }
.ae-tabs__panels figure {
  min-height: clamp(420px, 52vw, 760px);
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f4f4f1;
}
.ae-tabs__panels figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
}
.ae-tabs__panels figcaption { display: none; }
.ae-tabs__empty {
  width: 100%;
  min-height: clamp(420px, 52vw, 760px);
  display: grid;
  place-items: center;
  padding: 40px;
  color: rgba(255,255,255,.72);
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    #191c1a;
  background-size: 28px 28px;
  text-align: center;
}
.ae-tabs__empty strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
}
.ae-tabs__empty span {
  display: block;
  max-width: 460px;
  margin-top: 10px;
  color: rgba(255,255,255,.55);
  font-size: .82rem;
}

@media (max-width: 900px) {
  .ae-tabs { grid-template-columns: 1fr; }
  .ae-tabs__nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .ae-tabs__nav button { border-right: 1px solid rgba(255,255,255,.08); border-bottom: 0; }
  .studio-project-grid--architecture,
  .studio-project-grid--architecture.studio-project-grid--boards { grid-template-columns: 1fr; }
  .studio-project-grid--architecture > .studio-project-card,
  .studio-project-grid--architecture > .studio-project-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .site-footer .socials { width: 100%; }
  .portfolio-social-bar .socials { display: grid; width: 100%; }
  .portfolio-social-bar .socials a { width: 100%; min-width: 0; }
  .ae-media-tabs > .container { width: min(calc(100% - 28px), 1380px); }
  .ae-tabs__panels { padding: 12px; }
  .ae-tabs__panels figure,
  .ae-tabs__empty { min-height: 320px; }
}
