/*
Theme Name: MESMER Architects
Theme URI: https://example.com/
Author: MESMER Architects
Description: Lightweight editorial architecture theme rebuilt from the supplied MESMER static design. English only. No page builder required.
Version: 2.3.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mesmer-architects
*/

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
  /* Core palette */
  --ink: #1c1e21;
  --ink-soft: #292c30;

  --paper: #f7f1e5;
  --paper-warm: #f7ead2;
  --paper-deep: #f5d9b2;

  --surface: #f9f8f6;
  --text: #1c1e21;

  --muted: #74716c;
  --border: #d8d2ca;

  --accent: #fb0000;
  --accent-dark: #63150f;

  --red: #c30202;
  --white: #fff;

  /* Typography */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, Helvetica, sans-serif;

  /* Motion */
  --motion: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 8px 24px rgba(30, 32, 29, 0.06);
  --shadow-lg: 0 24px 60px rgba(20, 22, 20, 0.16);
}

/* =========================================================
   02. RESET / GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image:
    linear-gradient(
      rgba(28, 30, 33, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(28, 30, 33, 0.025) 1px,
      transparent 1px
    );
  background-size: 48px 48px;

  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.container {
  width: min(1400px, 88%);
  margin-inline: auto;
}

/* =========================================================
   03. TYPOGRAPHY UTILITIES
   ========================================================= */

.eyebrow,
.num,
.service-tag,
.project-type,
.modal-spec-label,
.material-strip-title {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.09em;
}

/* =========================================================
   04. LOGO / BRAND
   ========================================================= */

.custom-logo {
  display: flex;
  align-items: center;
  width: 80px;
  height: 80px;
  max-width: 100%;
  filter:
    drop-shadow(1px 0 0 #fff)
    drop-shadow(-1px 0 0 #fff)
    drop-shadow(0 1px 0 #fff)
    drop-shadow(0 -1px 0 #fff);
}

.custom-logo .mesmer-logo-img {
  width: auto;
  max-width: 100%;
  max-height: 70px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 220px;
  max-height: 50px;
  flex-shrink: 0;
}

.brand-link .mesmer-logo-img {
  width: auto;
  max-width: 140px;
  max-height: 50px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font: 600 24px/1 var(--serif);
  letter-spacing: 3.5px;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 10px;
  font: 600 15px/1 var(--sans);
  letter-spacing: 2.6px;
	color:var(--ink);
  opacity: 0.85;
}

/* =========================================================
   05. NAVIGATION
   ========================================================= */

.nav {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 24px 5.5%;

  color: var(--red);

  border-bottom: 1px solid transparent;

  transition:
    background 0.45s var(--motion),
    color 0.45s var(--motion),
    transform 0.45s var(--motion),
    padding 0.45s var(--motion);
}

.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav.scrolled .links a {
  color: var(--ink);
}

.nav.scrolled .brand {
  color: var(--ink);
}

.nav.scrolled .brand small {
  color: var(--accent-dark);
}

.nav.scrolled .menu span {
  background: var(--ink);
}

.links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.links a {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.links a:hover {
  color: var(--accent);
  opacity: 0.62;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid currentColor;
}

.nav-cta span {
  color: var(--accent);
  font-size: 14px;
}

.menu {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 8px;

  border: 0;
  background: none;
  color: inherit;
}

.menu span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 6px auto;
  background: #fff;

  transition: 0.3s var(--motion);
}

.menu.open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* =========================================================
   06. HERO
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 80vh;

  display: flex;
  align-items: center;

  padding-top: 100px;
  padding-bottom: 40px;

  overflow: hidden;

  background-color: var(--ink);
  color: #fff;
}

.hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;

  width: 100%;
  height: 100%;

  object-fit: cover;
  opacity: 0.62;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(28, 30, 33, 0.78),
      rgba(28, 30, 33, 0.08)
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.38),
      transparent 45%
    );

  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  padding: 0 7% 8%;

  animation: heroIn 1.1s var(--motion) both;
}

.hero-content {
  max-width: 720px;
}

.hero-content > * {
  animation: heroItem 0.9s var(--motion) both;
}

.hero-content .eyebrow {
  animation-delay: 0.08s;
}

.hero-content h1 {
  animation-delay: 0.16s;
}

.hero-content p {
  animation-delay: 0.24s;
}

.hero-content .hero-actions {
  animation-delay: 0.32s;
}

.hero h1 {
  max-width: 20ch;
  margin: 0 0 25px;

  font: 400 clamp(48px, 6.8vw, 72px) / 0.88 var(--serif);
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: #fff;
  font-style: italic;
}

.hero p {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.85;
}

.eyebrow {
  margin-bottom: 18px;

  color: var(--accent);
  font-size: 14px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.hero-switcher {
  width: 310px;
  animation: heroItem 1s 0.42s var(--motion) both;
}

.hero-switcher-label {
  margin-bottom: 8px;

  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;

  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-switcher-title {
  margin-bottom: 20px;
  font: 400 25px/1.1 var(--serif);
}

.hero-thumbs {
  display: flex;
  gap: 4px;

  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-thumb {
  padding: 0 8px 0 0;

  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);

  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-thumb.active,
.hero-thumb:hover {
  color: var(--accent);
}

.hero-main-img,
.hero img#heroMainImg {
  transform: scale(1.02);

  transition:
    opacity 0.28s ease,
    transform 8s var(--motion);
}

.hero:hover img#heroMainImg {
  transform: scale(1.045);
}

img.image-swap {
  opacity: 0.45;
}

/* =========================================================
   07. BUTTONS / CTA
   ========================================================= */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;

  padding: 13px 19px;

  border: 1px solid currentColor;

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.7px;

  transition:
    background 0.35s var(--motion),
    color 0.35s var(--motion),
    border-color 0.35s var(--motion),
    transform 0.35s var(--motion);
}

.cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.cta-solid,
.form button,
.contact-form button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.cta-solid:hover,
.form button:hover {
  box-shadow: 0 12px 30px rgba(180, 0, 0, 0.18);
  transform: translateY(-3px);
}

.cta-dark {
  color: var(--ink);
  border-color: var(--ink);
}

/* =========================================================
   08. METRICS
   ========================================================= */

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  padding: 28px 7%;

  background: var(--ink);
  color: #fff;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item {
  padding: 0 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.metric-item:first-child {
  padding-left: 0;
}

.metric-item:last-child {
  border-right: 0;
}

.metric-val {
  color: var(--accent);
  font: 400 20px var(--serif);
}

.metric-lbl {
  margin-top: 4px;

  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;

  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* =========================================================
   09. GENERIC SECTIONS
   ========================================================= */

.section {
  padding: 70px 5%;
}

.section h2 {
  margin: 0;

  font: 400 clamp(36px, 5vw, 62px) / 0.95 var(--serif);
  letter-spacing: -1.2px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 35px;
}

/* =========================================================
   10. INTRO
   ========================================================= */

.intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 9%;
  align-items: center;
}

.intro-copy {
  font: 400 clamp(26px, 3.6vw, 48px) / 1.08 var(--serif);
}

.intro-copy p {
  max-width: 590px;
  margin: 30px 0;

  color: var(--muted);
  font: 400 13px/1.9 var(--sans);
}

.intro-copy > .cta {
  font-family: var(--sans);
}

.intro-img-wrap {
  position: relative;
}

.intro-img {
  height: 560px;
  overflow: hidden;
}

.intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 1.4s var(--motion),
    filter 1s ease;
}

.intro-img:hover img {
  transform: scale(1.045);
  filter: saturate(1.02);
}

.intro-badge {
  position: absolute;
  left: -28px;
  bottom: 25px;

  max-width: 300px;
  padding: 24px 25px;

  background: var(--ink);
  color: #fff;

  box-shadow: var(--shadow-lg);
}

.intro-badge strong {
  display: block;
  color: var(--accent);
  font: 500 21px var(--serif);
}

.intro-badge span {
  display: block;
  margin-top: 6px;

  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  line-height: 1.7;
}

/* =========================================================
   11. MATERIALS
   ========================================================= */

.material-strip {
  margin-top: 55px;
  font-family: var(--sans);
}

.material-strip-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
}

.material-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.material-pill {
  position: relative;
  overflow: hidden;

  padding: 9px 11px;

  border: 1px solid var(--border);
  background: var(--paper);

  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.6px;

  transition:
    background 0.35s var(--motion),
    color 0.35s var(--motion),
    border-color 0.35s var(--motion),
    transform 0.35s var(--motion);
}

.material-pill:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;

  background: var(--accent);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.4s var(--motion);
}

.material-pill:hover:after,
.material-pill.active:after {
  transform: scaleX(1);
}

.material-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.material-dot {
  display: inline-block;

  width: 7px;
  height: 7px;
  margin-right: 6px;

  border-radius: 50%;
}

.material-caption {
  max-width: 520px;
  margin: 12px 0 0;

  color: var(--muted);
  font-size: 11px;
}

/* =========================================================
   12. FILTERS
   ========================================================= */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter {
  padding: 9px 13px;

  border: 1px solid var(--border);
  background: transparent;

  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;

  transition:
    background 0.35s var(--motion),
    color 0.35s var(--motion),
    border-color 0.35s var(--motion),
    transform 0.35s var(--motion);
}

.filter.active,
.filter:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* =========================================================
   13. PROJECTS
   ========================================================= */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px 28px;
}

.project {
  padding: 0;

  border: 0;
  background: none;

  color: inherit;
  text-align: left;
  cursor: pointer;

  transition:
    opacity 0.4s ease,
    transform 0.65s var(--motion);
}

.project:nth-child(even) {
  margin-top: 100px;
}

.project.is-hidden {
  display: none;
}

.project-image {
  position: relative;
  height: 360px;

  overflow: hidden;

  background: var(--paper-warm);

  clip-path: inset(0);

  transition:
    clip-path 0.8s var(--motion),
    transform 0.8s var(--motion);
}

.project-image:after {
  content: attr(data-badge);

  position: absolute;
  top: 15px;
  left: 15px;

  padding: 6px 9px;

  background: rgba(30, 32, 29, 0.88);
  color: #fff;

  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.project:hover .project-image {
  clip-path: inset(7px);
}

.project-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: saturate(0.92);

  transition:
    transform 1.2s var(--motion),
    filter 0.8s ease;
}

.project:hover .project-image img {
  transform: scale(1.06);
  filter: saturate(1);
}

.project-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  padding: 15px 0;

  border-bottom: 1px solid var(--border);

  transition: padding 0.5s var(--motion);
}

.project:hover .project-meta {
  padding-inline: 8px;
}

.project-name {
  font: 500 21px/1.2 var(--serif);
}

.project-type {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.arrow {
  color: var(--accent);
  font-size: 20px;

  transition:
    transform 0.45s var(--motion),
    color 0.25s;
}

.project:hover .arrow {
  color: var(--accent);
  transform: translate(6px, -6px);
}

.note {
  margin-top: 35px;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   14. STUDIO
   ========================================================= */

.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;

  background: var(--ink);
  color: #fff;
}

.studio h2 {
  color: #fff;
}

.studio p {
  max-width: 590px;

  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  line-height: 1.9;
}

.studio-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  margin: 35px 0;
}

.studio-pillar {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.studio-pillar strong {
  display: block;
  color: var(--accent);
  font: 500 20px var(--serif);
}

.studio-pillar span {
  display: block;
  margin-top: 5px;

  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.studio-visual {
  overflow: hidden;
}

.studio-visual img {
  width: 100%;
  height: 620px;
  object-fit: cover;

  transition:
    transform 1.4s var(--motion),
    filter 1s ease;
}

.studio-visual:hover img {
  transform: scale(1.045);
  filter: saturate(1.02);
}

.studio-caption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
}

/* =========================================================
   15. LEGACY / GENERIC SERVICES
   ========================================================= */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  margin-top: 40px;

  border-top: 1px solid var(--border);
}

.service {
  position: relative;

  min-height: 300px;
  padding: 30px 30px 30px 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border-bottom: 1px solid var(--border);

  transition:
    background 0.5s var(--motion),
    padding 0.5s var(--motion),
    transform 0.5s var(--motion);
}

.service:nth-child(even) {
  padding-left: 30px;
  border-left: 1px solid var(--border);
}

.service:before {
  content: "";

  position: absolute;
  inset: 0;

  transform: scaleY(0);
  transform-origin: bottom;

  background: var(--ink);

  z-index: 0;

  transition: transform 0.55s var(--motion);
}

.service > div {
  position: relative;
  z-index: 1;
}

.service:hover:before {
  transform: scaleY(1);
}

.service:hover {
  padding-left: 24px;
  color: #fff;
}

.service:hover p {
  color: rgba(255, 255, 255, 0.62);
}

.service:hover .num {
  color: var(--accent);
}

.service:hover .service-tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.num {
  color: var(--accent-dark);
  font-size: 9px;
  letter-spacing: 1.5px;
}

.service h3 {
  margin: 20px 0 5px;
  font: 500 23px/1.2 var(--serif);
}

.service p {
  max-width: 500px;
  color: var(--muted);
  font-size: 12px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  padding: 6px 8px;

  border: 1px solid var(--border);

  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================================
   16. ESTIMATOR
   ========================================================= */

.estimator-box {
  display: grid;
  grid-template-columns: 1fr 1fr;

  margin-top: 70px;

  background: var(--paper-warm);
  border: 1px solid var(--border);

  overflow: hidden;

  transition:
    transform 0.6s var(--motion),
    box-shadow 0.6s var(--motion);
}

.estimator-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(30, 32, 29, 0.09);
}

.estimator-controls,
.estimator-output {
  padding: 38px;
}

.estimator-output {
  background: var(--ink);
  color: #fff;
}

.estimator-row {
  margin-top: 28px;
}

.estimator-row label {
  display: flex;
  justify-content: space-between;

  margin-bottom: 8px;

  color: var(--muted);
  font-size: 10px;
}

.estimator-row label strong {
  color: var(--ink);
  font: 500 16px var(--serif);
}

.estimator-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent-dark);
}

.estimator-row select {
  width: 100%;
  padding: 10px;

  border: 1px solid var(--border);
  background: var(--paper);
}

.estimator-result-title {
  margin: 12px 0;

  color: #fff;
  font: 500 28px/1.1 var(--serif);
}

.estimator-result-meta {
  margin-bottom: 25px;

  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  line-height: 1.8;
}

/* =========================================================
   17. CONTACT
   ========================================================= */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;

  background: var(--paper-deep);
}

.contact p {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 12px;
}

.contact-card {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.contact-card strong {
  font-size: 15px;
  letter-spacing: 1.5px;
}

.contact-detail-list {
  display: grid;
  gap: 7px;

  margin-top: 12px;

  color: var(--ink-soft);
  font-size: 14px;
}

/* =========================================================
   18. GENERIC FORM
   ========================================================= */

.form {
  display: grid;
  gap: 13px;

  padding: 35px;

  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.form input,
.form select,
.form textarea {
  width: 100%;

  padding: 12px 0;

  border: 0;
  border-bottom: 1px solid var(--border);

  background: transparent;
  color: var(--ink);

  outline: 0;

  transition:
    border-color 0.35s ease,
    padding-left 0.35s var(--motion);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  padding-left: 8px;
  border-bottom-color: var(--ink);
}

.form textarea {
  min-height: 150px;
  resize: vertical;
}

.form button {
  padding: 14px;

  border: 1px solid var(--ink);

  background: var(--ink);
  color: #fff;

  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 9px;
}

.form button:hover {
  background: var(--accent-dark);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-status {
  padding-top: 8px;
  font-size: 10px;
  line-height: 1.6;
}

.form-status.is-success {
  color: #3d5a45;
}

.form-status.is-error {
  color: #9b3c31;
}

.form-status.is-loading {
  color: var(--muted);
}

/* =========================================================
   19. FOOTER
   ========================================================= */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;

  padding: 35px 7%;

  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);

  font-size: 11px;
  letter-spacing: 0.5px;
}

.footer .brand {
  color: #fff;
}

.footer .brand small {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* =========================================================
   20. MODAL
   ========================================================= */

.modal {
  position: fixed;
  z-index: 2000;
  inset: 0;

  display: none;

  padding: 6vh 7%;

  background: rgba(10, 12, 10, 0.78);

  overflow: auto;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.4s ease,
    visibility 0.4s;
}

.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;
}

.modalbox {
  position: relative;

  width: min(1050px, 100%);

  background: var(--paper);
  box-shadow: var(--shadow-lg);

  transform: translateY(35px) scale(0.985);

  transition: transform 0.65s var(--motion);
}

.modal.open .modalbox {
  transform: none;
}

.modalbox > img {
  width: 100%;
  height: 430px;

  object-fit: cover;

  transition: opacity 0.4s;
}

.modalbody {
  padding: 35px;
}

.modalbody h3 {
  margin: 0 0 5px;
  font: 500 32px var(--serif);
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  margin: 25px 0;
  padding: 15px 0;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.modal-spec-label {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

.modal-spec-val {
  font: 500 16px var(--serif);
}

.modalbody p {
  max-width: 800px;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 15px;

  width: 38px;
  height: 38px;

  border: 0;
  background: rgba(0, 0, 0, 0.5);

  color: #fff;
  font-size: 25px;

  transition:
    transform 0.3s var(--motion),
    background 0.3s;
}

.close:hover {
  transform: rotate(90deg);
  background: var(--accent-dark);
}

/* =========================================================
   21. PAGE TEMPLATE
   ========================================================= */

.page-shell {
  position: relative;
  min-height: 100vh;
  background: var(--paper);
}

.page-hero {
  max-width: 1250px;
  padding: 170px 7% 90px;
}

.page-hero h1 {
  margin: 12px 0 25px;

  color: var(--ink);

  font: 400 clamp(52px, 8vw, 72px) / 0.84 var(--serif);
  letter-spacing: -2px;
}

.page-hero h1 em {
  color: var(--accent-dark);
  font-style: italic;
}

.page-lead {
  max-width: 700px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.service-page-grid {
  margin-top: 0;
}

.service-detail {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10%;
}

.service-detail-copy {
  max-width: 850px;
  font: 400 21px/1.55 var(--serif);
}

.service-detail-copy p {
  margin: 0 0 1.2em;
}

.service-detail-copy ul,
.service-detail-copy ol {
  color: var(--muted);
  font: 400 13px/1.9 var(--sans);
}

.service-detail-aside {
  display: grid;
  align-content: start;
  gap: 10px;

  height: max-content;
  padding-top: 18px;

  border-top: 1px solid var(--border);
}

.service-detail-aside > span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.service-detail-aside .cta {
  width: max-content;
  margin-top: 20px;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 45px;
}

.section-more .cta {
  min-width: 220px;
  justify-content: center;
}

/* =========================================================
   22. STUDIO CONTENT
   ========================================================= */

.studio-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.studio-story-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studio-story-grid article {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.studio-story-grid h2 {
  margin: 0 0 18px;
  font: 500 clamp(24px, 2.7vw, 38px) / 1.08 var(--serif);
}

.studio-story-grid p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.9;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.advantage-card {
  min-height: 260px;
  padding: 28px;

  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.28);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.advantage-card:hover {
  transform: translateY(-6px);

  border-color: var(--accent);
  background: rgba(169, 0, 0, 0.035);
}

.advantage-number {
  display: block;
  margin-bottom: 55px;

  color: var(--accent);
  font-size: 11px;
  letter-spacing: 2px;
}

.advantage-card h3 {
  margin: 0 0 14px;
  font: 500 27px/1.1 var(--serif);
}

.advantage-card p {
  margin: 0;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.studio-tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;

  border-top: 1px solid var(--border);
}

.studio-tech p {
  margin: 0;
  padding-top: 4px;

  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 1px;

  border: 1px solid var(--border);
  background: var(--border);
}

.team-card {
  min-height: 130px;
  padding: 28px;

  background: var(--paper);

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-2px);
  background: var(--paper-warm);
}

.team-name {
  margin-bottom: 9px;
  font: 500 25px/1.15 var(--serif);
}

.team-role {
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

.studio-page-copy {
  margin-top: 28px;
  color: var(--muted);
  line-height: 1.9;
}

/* =========================================================
   23. PROJECT DETAIL
   ========================================================= */

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;

  margin-top: 22px;

  color: var(--muted);
  font: 500 10px/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.project-detail-feature {
  padding-top: 0 !important;
}

.project-detail-feature img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: cover;
}

.project-detail-copy {
  max-width: 860px;
  font: 400 19px/1.65 var(--serif);
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;

  margin-top: 55px;
}

.project-gallery-image {
  display: block;
  overflow: hidden;
  background: var(--paper-warm);
}

.project-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;

  object-fit: cover;

  transition:
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-gallery-image:hover img {
  transform: scale(1.035);
}

/* =========================================================
   24. BLUEPRINT REVEAL
   ========================================================= */

.hero-blueprint-layer {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(14, 16, 14, 0.94);

  opacity: 0.78;

  pointer-events: none;

  transition:
    opacity 1.2s var(--motion),
    visibility 2.2s;
}

.hero-blueprint-layer.is-faded {
  opacity: 0;
  visibility: hidden;
}

.blueprint-container {
  width: 75%;
  height: 75%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-container svg {
  width: 100%;
  height: 100%;
  max-height: 550px;

  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5px;

  opacity: 0.85;
}

.blueprint-container svg path,
.blueprint-container svg line,
.blueprint-container svg polyline,
.blueprint-container svg rect {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;

  animation:
    drawBlueprint 2.4s var(--motion) 0.3s forwards;
}

.blueprint-label {
  position: absolute;
  left: 7%;
  bottom: 30px;

  color: rgba(255, 255, 255, 0.5);
  font-family: var(--sans);
  font-size: 14px;

  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.blueprint-label span {
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

.blueprint-label span::before {
  content: "";

  position: absolute;
  left: 0;
  top: 50%;

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: var(--accent);

  transform: translateY(-50%);

  animation: pulseBlueprintDot 1.5s infinite;
}

/* =========================================================
   25. PARTNERS
   ========================================================= */

.partners-section {
  overflow: hidden;
}

.partner-marquee {
  position: relative;

  margin: 24px 0;

  overflow: hidden;

  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.partner-track {
  display: flex;
  align-items: center;
  gap: clamp(36px, 6vw, 90px);

  width: max-content;

  animation: partnerScroll 38s linear infinite;
}

.partner-marquee.reverse .partner-track {
  animation-direction: reverse;
  animation-duration: 46s;
}

.partner-marquee:hover .partner-track {
  animation-play-state: paused;
}

.partner-logo {
  display: grid;
  place-items: center;

  width: clamp(130px, 16vw, 210px);
  height: 88px;

  filter: grayscale(1);
  opacity: 0.68;

  transition:
    filter 0.35s,
    opacity 0.35s,
    transform 0.35s;
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
  transform: translateY(-4px);
}

.partner-logo img {
  width: auto;
  max-width: 170px;
  max-height: 68px;
  object-fit: contain;
}

.partner-logo a {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;
}

/* =========================================================
   26. CONTACT REDESIGN
   ========================================================= */

.contact-hero {
  position: relative;

  padding: clamp(90px, 13vw, 170px) 7vw 80px;

  overflow: hidden;

  background: var(--ink);
  color: var(--paper);
}

.contact-hero:after,
.contact-map-pattern:before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(200, 157, 124, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(200, 157, 124, 0.08) 1px,
      transparent 1px
    );

  background-size: 36px 36px;

  mask-image: linear-gradient(
    120deg,
    #000,
    transparent 75%
  );
}

.contact-hero h1 {
  margin: 18px 0;

  font: 500 clamp(42px, 6.5vw, 62px) / 0.98 var(--serif);
}

.contact-hero .page-lead {
  max-width: 650px;
  color: #d4d0ca;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 100px);
  align-items: start;
}

.contact-directory h2,
.contact-form h2 {
  font: 500 clamp(28px, 3.4vw, 44px) / 1.08 var(--serif);
}

.contact-form {
  padding: clamp(24px, 4vw, 54px);

  background: #fff;
  border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 0;

  border-color: var(--accent);

  box-shadow:
    0 0 0 3px rgba(200, 157, 124, 0.16);
}

.contact-map-pattern {
  position: relative;

  min-height: 160px;
  margin-top: 32px;
  padding: 24px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  overflow: hidden;

  background: var(--ink);
  color: var(--accent);

  font:
    12px ui-monospace,
    monospace;

  letter-spacing: 0.08em;
}

.contact-map-pattern strong,
.contact-map-pattern span {
  position: relative;
  z-index: 1;
}

.contact-map-pattern strong {
  color: #f9f8f6;
}

/* =========================================================
   27. SERVICES v2.3.2
   ========================================================= */

.services-page {
  background: var(--paper);
}

.services-intro {
  position: relative;

  padding: clamp(145px, 17vw, 220px) 7vw 78px;

  overflow: hidden;

  background: var(--paper);
}

.services-intro:after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(200, 157, 124, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(200, 157, 124, 0.055) 1px,
      transparent 1px
    );

  background-size: 52px 52px;

  mask-image: linear-gradient(
    135deg,
    #000,
    transparent 72%
  );
}

.services-intro-inner,
.services-intro-meta {
  position: relative;
  z-index: 1;
}

.services-intro-inner {
  max-width: 1050px;
}

.services-intro h1 {
  margin: 16px 0 28px;

  color: var(--ink);

  font: 400 clamp(48px, 6.5vw, 62px) / 0.88 var(--serif);
  letter-spacing: -2.5px;
}

.services-intro h1 em {
  color: var(--accent-dark);
  font-style: italic;
}

.services-intro-copy {
  max-width: 650px;
  margin: 0;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.services-intro-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  margin-top: 78px;
  padding-top: 16px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font:
    9px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.services-list-section {
  padding-top: 35px;
}

.services-section-head {
  grid-template-columns: 1fr 0.75fr;
  align-items: end;
  margin-bottom: 36px;
}

.services-section-head p {
  max-width: 430px;
  margin: 0;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.services-redesign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 475px;

  overflow: hidden;

  background: #fff;
  border: 1px solid var(--border);

  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.45s,
    border-color 0.35s;
}

.service-card:hover {
  transform: translateY(-7px);

  border-color: rgba(200, 157, 124, 0.5);

  box-shadow:
    0 22px 55px rgba(28, 30, 33, 0.09);
}

.service-card-link {
  height: 100%;
  min-height: 475px;

  display: grid;
  grid-template-rows: 1fr 185px;

  color: inherit;
  text-decoration: none;
}

.service-card-main {
  min-height: 290px;
  padding: 27px 30px 24px;

  display: flex;
  flex-direction: column;
}

.service-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-number {
  color: var(--accent-dark);

  font:
    9px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  letter-spacing: 0.16em;
}

.service-card-arrow {
  color: var(--accent-dark);
  font: 20px/1 var(--sans);

  transition: transform 0.35s;
}

.service-card:hover .service-card-arrow {
  transform: translate(4px, -4px);
}

.service-card h3 {
  max-width: 480px;
  margin: 36px 0 14px;

  color: var(--ink);

  font: 500 clamp(24px, 2.7vw, 34px) / 1.04 var(--serif);
  letter-spacing: -0.5px;
}

.service-card p {
  max-width: 540px;
  margin: 0;

  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.service-card .service-tags {
  margin-top: auto;
  padding-top: 28px;
}

.service-card .service-tag {
  padding: 7px 9px;

  background: var(--paper);
  border-color: var(--border);

  color: var(--ink);
  font-size: 8px;
}

.service-card-media {
  height: 185px;
  margin: 0;

  overflow: hidden;

  background: var(--paper-warm);
}

.service-card-media img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: saturate(0.72);

  transition:
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.5s;
}

.service-card:hover .service-card-media img {
  transform: scale(1.045);
  filter: saturate(0.95);
}

/* =========================================================
   28. SERVICES PROCESS
   ========================================================= */

.services-process {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(360px, 0.78fr);

  gap: clamp(45px, 8vw, 110px);

  align-items: stretch;

  padding-top: 105px;
  padding-bottom: 110px;
}

.services-process-copy {
  padding-top: 4px;
}

.services-process-copy h2 {
  max-width: 650px;
  margin: 15px 0 22px;

  font: 400 clamp(34px, 4.1vw, 58px) / 1 var(--serif);
  letter-spacing: -1px;
}

.services-process-intro {
  max-width: 560px;
  margin: 0 0 42px;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.process-steps {
  max-width: 720px;
  margin: 0;
  padding: 0;

  border-top: 1px solid var(--border);

  list-style: none;
}

.process-steps li {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 22px;

  padding: 22px 0;

  border-bottom: 1px solid var(--border);

  transition: padding 0.35s;
}

.process-steps li:hover {
  padding-left: 8px;
}

.process-number {
  padding-top: 6px;

  color: var(--accent-dark);

  font:
    9px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  letter-spacing: 0.13em;
}

.process-steps h3 {
  margin: 0 0 7px;

  color: var(--ink);
  font: 500 21px/1.1 var(--serif);
}

.process-steps p {
  max-width: 520px;
  margin: 0;

  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.services-process-media {
  position: relative;

  min-height: 620px;

  overflow: hidden;

  background: var(--ink);
}

.services-process-media img {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 620px;

  object-fit: cover;

  filter: saturate(0.7);

  transition:
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.6s;
}

.services-process:hover .services-process-media img {
  transform: scale(1.025);
  filter: saturate(0.9);
}

.services-process-media:after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 48%,
      rgba(28, 30, 33, 0.7)
    );

  pointer-events: none;
}

.services-process-media figcaption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 20px;

  color: #f9f8f6;

  font:
    9px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =========================================================
   29. SERVICES CLOSING CTA
   ========================================================= */

.services-close {
  padding-top: 40px;
  padding-bottom: 135px;
}

.services-close-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;

  padding-top: 35px;

  border-top: 1px solid var(--border);
}

.services-close h2 {
  margin: 15px 0 0;

  font: 400 clamp(28px, 4.7vw, 52px) / 0.95 var(--serif);
  letter-spacing: -1px;
}

.services-close h2 em {
  color: var(--accent-dark);
  font-style: italic;
}

.services-close .cta {
  margin-bottom: 5px;
}

/* =========================================================
   30. MOTION SYSTEM
   ========================================================= */

@keyframes heroIn {
  from {
    opacity: 0;
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroItem {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drawBlueprint {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseBlueprintDot {
  0% {
    opacity: 0.5;
    transform: translateY(-50%) scale(0.8);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
  }

  100% {
    opacity: 0.5;
    transform: translateY(-50%) scale(0.8);
  }
}

@keyframes partnerScroll {
  to {
    transform: translateX(-50%);
  }
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(42px);

  transition:
    opacity 0.85s var(--motion),
    transform 0.95s var(--motion);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 {
  transition-delay: 0.08s;
}

.reveal.delay-2 {
  transition-delay: 0.16s;
}

.reveal.delay-3 {
  transition-delay: 0.24s;
}

/* =========================================================
   31. PAGE TRANSITION
   ========================================================= */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--ink);
  color: #fff;

  pointer-events: none;

  clip-path: inset(100% 0 0 0);

  transition:
    clip-path 0.55s var(--motion);
}

.page-transition span {
  color: var(--accent);

  font: 500 34px var(--serif);
  letter-spacing: 7px;

  opacity: 0;
  transform: translateY(20px);

  transition: 0.35s var(--motion);
}

.page-transition.is-active {
  clip-path: inset(0);
}

.page-transition.is-active span {
  opacity: 1;
  transform: none;
}

/* =========================================================
   32. ADMIN BAR
   ========================================================= */

.admin-bar .nav {
  top: 32px;
}

.admin-bar .modal {
  top: 32px;
}

/* =========================================================
   33. RESPONSIVE — 900PX
   ========================================================= */

@media (max-width: 900px) {
  .studio-story-grid,
  .studio-story-grid.two-col,
  .advantage-grid,
  .studio-tech {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   34. RESPONSIVE — 850PX
   ========================================================= */

@media (max-width: 850px) {
  .links {
    display: none;

    position: absolute;
    top: 75px;
    left: 0;
    right: 0;

    padding: 20px 6%;

    flex-direction: column;
    align-items: flex-start;

    background: var(--paper);
    color: var(--ink);
  }

  .links.show {
    display: flex;
  }

  .menu {
    display: block;
  }

  .hero {
    min-height: 720px;
    height: auto;
  }

  .hero-inner {
    display: block;
    padding: 150px 6% 55px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-switcher {
    width: 100%;
    margin-top: 60px;
  }

  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 6%;
  }

  .metric-item {
    margin: 10px 0;
  }

  .section {
    padding: 70px 6%;
  }

  .intro,
  .studio,
  .contact,
  .estimator-box {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .intro-img {
    height: 420px;
  }

  .intro-badge {
    position: static;
    max-width: none;
    margin-top: 12px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .project:nth-child(even) {
    margin-top: 0;
  }

  .project-image {
    height: 420px;
  }

  .studio img {
    height: 420px;
  }

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

  .service:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .modalbox > img {
    height: 300px;
  }

  .modalbody {
    padding: 25px;
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-hero {
    padding: 135px 6% 60px;
  }

  .page-hero h1 {
    font-size: 58px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .service-detail-copy {
    font-size: 23px;
  }

  .page-transition span {
    font-size: 26px;
  }

  .services-intro {
    padding: 125px 6% 65px;
  }

  .services-intro h1 {
    font-size: 58px;
  }

  .services-section-head {
    grid-template-columns: 1fr;
  }

  .services-section-head p {
    margin-top: 20px;
  }

  .services-redesign-grid {
    grid-template-columns: 1fr;
  }

  .services-process {
    grid-template-columns: 1fr;
    padding-top: 75px;
  }

  .services-process-media,
  .services-process-media img {
    min-height: 520px;
  }

  .services-close-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .services-close .cta {
    width: max-content;
  }

  .studio-story-grid,
  .studio-story-grid.two-col,
  .advantage-grid,
  .studio-tech {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   35. RESPONSIVE — 760PX
   ========================================================= */

@media (max-width: 760px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .partner-logo {
    height: 70px;
  }

  .partner-logo img {
    max-height: 52px;
  }
}

/* =========================================================
   36. RESPONSIVE — 700PX
   ========================================================= */

@media (max-width: 700px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-copy {
    font-size: 19px;
  }
}

/* =========================================================
   37. RESPONSIVE — 640PX
   ========================================================= */

@media (max-width: 640px) {
  .studio-story-grid,
  .studio-story-grid.two-col,
  .advantage-grid,
  .studio-tech {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card {
    min-height: auto;
  }

  .advantage-number {
    margin-bottom: 35px;
  }
}

/* =========================================================
   38. RESPONSIVE — 560PX
   ========================================================= */

@media (max-width: 560px) {
  .services-intro {
    padding: 112px 6% 55px;
  }

  .services-intro h1 {
    font-size: 42px;
    letter-spacing: -1.5px;
  }

  .services-intro-meta {
    display: grid;
    gap: 8px;

    margin-top: 55px;
  }

  .service-card,
  .service-card-link {
    min-height: 430px;
  }

  .service-card-link {
    grid-template-rows: 1fr 155px;
  }

  .service-card-media {
    height: 155px;
  }

  .service-card-main {
    padding: 23px 22px;
  }

  .service-card h3 {
    margin-top: 29px;
    font-size: 26px;
  }

  .services-process {
    padding-bottom: 80px;
  }

  .services-process-media,
  .services-process-media img {
    min-height: 430px;
  }

  .process-steps li {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .services-close {
    padding-bottom: 95px;
  }
}

/* =========================================================
   39. RESPONSIVE — 520PX
   ========================================================= */

@media (max-width: 520px) {
  .hero h1 {
    font-size: 48px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .metrics-bar {
    grid-template-columns: 1fr;
  }

  .project-image {
    height: 330px;
  }

  .intro-copy {
    font-size: 30px;
  }

  .studio-pillars {
    grid-template-columns: 1fr;
  }

  .estimator-controls,
  .estimator-output {
    padding: 25px;
  }
}

/* =========================================================
   40. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .partner-track {
    animation: none;
  }
}


/* =========================================================
   PROJECT JOURNEY
   ========================================================= */

.journey-strip {
    margin-top: 55px;
    font-family: var(--sans);
}

.journey-strip-title {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.journey-strip-title span {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: none;
}

.journey-stages {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.journey-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.journey-stage:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.journey-stage.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.journey-stage-number {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    opacity: .7;
}

.journey-stage-label {
    font-weight: 500;
}

.journey-stage:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Journey image transition */
.journey-image-wrap {
    overflow: hidden;
}

.journey-image {
    display: block;
    width: 100%;
    transition: opacity .35s ease, transform .6s ease;
}

.journey-image.is-changing {
    opacity: .35;
}

/* Stage title and description */
.journey-caption strong {
    display: block;
    margin-bottom: 8px;
}

.journey-caption span {
    display: block;
    line-height: 1.65;
}

/* Responsive stage controls */
@media (max-width: 767px) {
    .journey-strip {
        margin-top: 35px;
    }

    .journey-stages {
        gap: 7px;
    }

    .journey-stage {
        padding: 9px 10px;
        font-size: 11px;
    }

    .journey-strip-title span {
        display: block;
        margin-top: 5px;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .journey-stage,
    .journey-image {
        transition: none !important;
    }

    .journey-stage:hover {
        transform: none;
    }
}

/* Pagination Styling */
.mesmer-pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mesmer-pagination ul li span,
.mesmer-pagination ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s var(--motion);
}

.mesmer-pagination ul li a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.mesmer-pagination ul li span.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 600;
}

/* =========================================================
   SINGLE PROJECT — ASYMMETRIC SPLIT & STICKY SIDEBAR
   ========================================================= */
.project-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* Left Scrolling Column */
.project-main-column {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.project-lead-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
}

.project-lead-visual img {
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-lead-visual:hover img {
  transform: scale(1.015);
}

.project-narrative {
  padding-top: 8px;
}

.narrative-heading {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--ink);
}

.project-detail-copy {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.88;
}

.project-detail-copy p + p {
  margin-top: 16px;
}

/* Multi-Image Gallery Grid */
.project-masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--paper);
}

/* Make every 3rd image span full width for an editorial rhythm */
.project-gallery-card:nth-child(3n) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.project-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-gallery-card:hover img {
  transform: scale(1.04);
}

.project-gallery-card .zoom-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;
}

.project-gallery-card:hover .zoom-badge {
  opacity: 1;
  transform: translateY(0);
}

/* Right Sticky Specification Card */
.project-sidebar-column {
  position: sticky;
  top: 110px;
}

.project-sticky-card {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: clamp(24px, 3vw, 36px);
}

.project-sticky-card .card-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.project-sticky-card .card-header h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 6px 0 0;
}

.project-specs-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.spec-row dt {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.spec-row dd {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  text-align: right;
  color: var(--ink);
}

.project-sticky-card .card-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-sticky-card .back-link {
  display: inline-block;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.75;
  padding-top: 4px;
  transition: opacity 0.2s ease;
}

.project-sticky-card .back-link:hover {
  opacity: 1;
}

/* Lightbox Overlay */
.mesmer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(18, 18, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mesmer-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mesmer-lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mesmer-lightbox button {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mesmer-lightbox button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Lightbox Close Button */
.mesmer-lightbox .lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
  height: 42px;
  padding: 0 16px;
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mesmer-lightbox .lb-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
}

.mesmer-lightbox .lb-close-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mesmer-lightbox .lb-close-symbol {
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
}

/* Navigation arrows styling */
.mesmer-lightbox .lb-prev,
.mesmer-lightbox .lb-next {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.mesmer-lightbox .lb-prev { left: 24px; }
.mesmer-lightbox .lb-next { right: 24px; }

.mesmer-lightbox .lb-counter {
  position: absolute;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .project-showcase-layout {
    grid-template-columns: 1fr;
  }
  .project-sidebar-column {
    position: static;
    order: -1; /* Places key specs right below hero on mobile/tablet */
  }
}

@media (max-width: 640px) {
  .project-masonry-grid {
    grid-template-columns: 1fr;
  }
  .project-gallery-card:nth-child(3n) {
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
   STUDIO PAGE REDESIGN — EDITORIAL & INTERACTIVE UI
   ========================================================= */

/* Section 1: Split Hero */
.studio-hero-split {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 48px;
  align-items: end;
  max-width: 100%;
}

.studio-hero-badge-card {
  background: var(--ink);
  color: #fff;
  padding: 28px 30px;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.studio-hero-badge-card .badge-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}

.studio-hero-badge-card strong {
  display: block;
  font: 500 22px/1.2 var(--serif);
  margin-bottom: 10px;
}

.studio-hero-badge-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* Section 3: Editorial Pillars (Philosophy, Vision, Mission) */
.studio-pillars-editorial {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pillar-editorial-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--motion), background 0.4s var(--motion), border-color 0.4s ease;
}

.pillar-editorial-card:hover {
  transform: translateY(-6px);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pillar-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.pillar-editorial-card:hover .pillar-index {
  color: var(--accent);
}

.pillar-editorial-card h3 {
  font: 500 clamp(22px, 2.2vw, 30px)/1.12 var(--serif);
  margin: 0 0 16px;
}

.pillar-editorial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  transition: color 0.3s ease;
}

.pillar-editorial-card:hover p {
  color: rgba(255, 255, 255, 0.72);
}

/* Section 4: Strategic Intent (Goals & Objectives with Image) */
.studio-intent-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  padding: clamp(28px, 4.5vw, 56px);
}

.studio-intent-visual {
  overflow: hidden;
  height: 460px;
}

.studio-intent-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--motion);
}

.studio-intent-visual:hover img {
  transform: scale(1.04);
}

.studio-intent-content h2 {
  margin-bottom: 28px;
}

.intent-block {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.intent-block h3 {
  font: 500 22px/1.2 var(--serif);
  margin: 0 0 8px;
  color: var(--ink);
}

.intent-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.85;
}

/* Section 6A: Interactive Tech Stack & Software Logos */
.studio-tech-interactive {
  border-top: 1px solid var(--border);
}

.tech-preview-readout {
  max-width: 520px;
  background: var(--ink);
  color: #fff;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
}

.tech-readout-tag {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.tech-preview-readout strong {
  display: block;
  font: 500 20px/1.2 var(--serif);
  margin-bottom: 6px;
}

.tech-preview-readout p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.tech-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tech-logo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  padding: 22px;
  text-align: left;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: all 0.35s var(--motion);
}

.tech-logo-card:hover,
.tech-logo-card.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.tech-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.tech-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.tech-logo-card.is-active .tech-monogram,
.tech-logo-card:hover .tech-monogram {
  border-color: var(--accent);
  color: var(--accent);
}

.tech-version {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  opacity: 0.65;
}

.tech-card-bottom {
  margin-top: 24px;
}

.tech-name {
  display: block;
  font: 500 20px/1.2 var(--serif);
  margin-bottom: 4px;
}

.tech-cat {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

/* Section 6B: Photo-Covered Team Cards with Hover Reveal */
.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.team-photo-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--border);
  cursor: pointer;
}

.team-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.04);
  transition: transform 0.75s var(--motion), filter 0.5s ease;
}

.team-photo-card:hover img,
.team-photo-card:focus-within img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(1.08);
}

/* Architectural Monogram Fallback when no photo URL is set yet */
.team-portrait-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, #2c3036 0%, var(--ink) 75%);
  color: rgba(255, 255, 255, 0.85);
}

.portrait-grid-lines {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.portrait-initials {
  font: 400 44px/1 var(--serif);
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: transform 0.5s var(--motion), opacity 0.4s ease;
}

.portrait-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
}

.team-photo-card:hover .portrait-initials {
  transform: translateY(-16px);
  opacity: 0.35;
}

/* Hover Reveal Name & Role Overlay */
.team-hover-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 18, 20, 0.94) 55%);
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--motion), transform 0.45s var(--motion);
}

.team-photo-card:hover .team-hover-overlay,
.team-photo-card:focus-within .team-hover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-hover-role {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
}

.team-hover-name {
  margin: 0;
  font: 500 23px/1.15 var(--serif);
  color: #fff;
}

/* Section 7B: Closing CTA + Google Map Block */
.studio-closing-cta {
  padding-bottom: 100px;
}

.closing-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.closing-cta-info {
  padding: clamp(32px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.closing-cta-info h2 {
  color: #fff;
  margin-bottom: 16px;
}

.closing-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.85;
  max-width: 480px;
  margin: 0 0 30px;
}

.closing-contact-meta {
  display: grid;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 30px;
}

.closing-meta-row span {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 4px;
}

.closing-meta-row strong {
  font-weight: 400;
  font-size: 14px;
  color: #fff;
}

.closing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.closing-cta-map {
  position: relative;
  min-height: 440px;
  background: #141618;
}

.closing-cta-map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  filter: grayscale(85%) invert(90%) contrast(92%);
  transition: filter 0.4s ease;
}

.closing-cta-map:hover iframe {
  filter: grayscale(20%) invert(0%) contrast(100%);
}

.map-overlay-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--ink);
  color: var(--accent);
  padding: 7px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
  .studio-hero-split,
  .studio-pillars-editorial,
  .studio-intent-grid,
  .closing-cta-grid {
    grid-template-columns: 1fr;
  }

  .tech-logo-grid,
  .team-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-intent-visual {
    height: 340px;
  }
}

@media (max-width: 560px) {
  .tech-logo-grid,
  .team-photo-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   APPROACH B: MOBILE CAROUSEL & FLUID BENTO SCALING
   ========================================================= */

@media (max-width: 1024px) {
  /* Prevent horizontal blowout */
  .page-shell {
    overflow-x: hidden;
  }
  
  /* Fluid heading scaling */
  .page-hero h1,
  .careers-sidebar h1,
  .hero h1,
  .services-intro h1 {
    font-size: clamp(34px, 7.5vw, 48px) !important;
    line-height: 1.08 !important;
  }

  /* Turn multi-column grids into swipeable horizontal flex trays on mobile/tablet */
  .tech-logo-grid,
  .team-photo-grid,
  .advantage-grid,
  .studio-pillars-editorial {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 16px;
    margin-inline: -5%;
    padding-inline: 5%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for clean UI */
  }

  .tech-logo-grid::-webkit-scrollbar,
  .team-photo-grid::-webkit-scrollbar,
  .advantage-grid::-webkit-scrollbar,
  .studio-pillars-editorial::-webkit-scrollbar {
    display: none;
  }

  /* Set fixed, compact mobile card widths so swiping feels natural */
  .tech-logo-card,
  .team-photo-card,
  .advantage-card,
  .pillar-editorial-card {
    flex: 0 0 260px !important;
    min-height: auto !important;
    scroll-snap-align: start;
  }

  /* Stack complex asymmetric grids vertically with tight spacing */
  .careers-split-layout,
  .studio-intent-grid,
  .closing-cta-grid,
  .studio-tech,
  .service-detail {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 5% !important;
  }

  .page-hero,
  .careers-split-layout {
    padding-top: 100px !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
  }

  /* Make mobile swipe cards slightly more compact */
  .tech-logo-card,
  .team-photo-card,
  .advantage-card,
  .pillar-editorial-card {
    flex: 0 0 220px !important;
  }

  .team-photo-card {
    aspect-ratio: 1 / 1 !init; /* Square avatars on small screens to save vertical space */
    height: 280px;
  }

  .studio-intent-visual {
    height: 260px !important;
  }
  
  .closing-cta-info {
    padding: 24px 20px !important;
  }
}

/* =========================================================
   FOOTER SOCIAL ICON BUTTONS
   ========================================================= */

.footer-social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  transition:
    background 0.3s var(--motion),
    border-color 0.3s var(--motion),
    color 0.3s var(--motion),
    transform 0.3s var(--motion);
}

.footer-social-icon-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-3px);
}
