/* ==========================================================================
   ENTITY DESIGN — Design Tokens
   ========================================================================== */

:root {
  /* Color */
  --bg: #0a0a12;
  --bg-elevated: #14141f;
  --bg-elevated-2: #1c1c2c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #ece9e4;
  --text-secondary: #a8a9ae;
  --text-muted: #6e7075;
  --accent: #2cc2d1;
  --accent-bright: #64e2ee;
  --accent-dim: #175c63;
  --accent-blue: #565cf2;
  --accent-pink: #ff8de0;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1440px;
  --gutter: clamp(24px, 4.5vw, 80px);
  --section-pad: clamp(80px, 9vw, 140px);
  --section-pad-sm: clamp(56px, 6vw, 96px);
  --section-pad-xs: clamp(40px, 4vw, 64px);

  /* Motion */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-120: 120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: default;
}

input, textarea, select, [contenteditable] {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
  cursor: text;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #071417;
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ==========================================================================
   NAV
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(9, 10, 13, 0.78), rgba(9, 10, 13, 0.24));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 12, 14, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text-primary); }

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.services-menu { position: relative; }
.services-menu > a::before { content: '⌄'; display: inline-block; margin-right: 6px; color: var(--accent); transform: translateY(-1px); }
.services-dropdown { position: absolute; top: calc(100% + 16px); left: -18px; z-index: 101; min-width: 250px; padding: 10px; background: rgba(16, 17, 20, 0.98); border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0,0,0,0.24); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.services-menu:hover .services-dropdown, .services-menu:focus-within .services-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .services-dropdown a { display: block; padding: 10px 12px; font-size: 11px; color: var(--text-secondary); }
.nav-links .services-dropdown a::after { display: none; }
.nav-links .services-dropdown a:hover { color: var(--text-primary); background: var(--bg-elevated); }
.mobile-service-links { padding: 0 0 8px 18px; }
.mobile-nav .mobile-service-links a { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); padding: 9px 0; border: 0; }
.mobile-services-menu { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-services-menu > a { flex: 1; border-bottom: 0; }
.mobile-services-toggle { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; color: var(--text-secondary); background: transparent; border: 0; font-family: var(--font-display); font-size: 32px; font-weight: 400; line-height: 1; cursor: pointer; }
.mobile-services-toggle span { display: block; transition: transform 0.2s var(--ease); }
.mobile-services-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.mobile-services-toggle:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
.mobile-services-menu + .mobile-service-links { margin-top: 0; }

/* CMS-created pages use the same measured editorial rhythm as service pages. */
.page-content { max-width: 820px; }
.page-content-section { padding: 0 0 var(--section-pad-xs); margin-bottom: var(--section-pad-xs); border-bottom: 1px solid var(--line); }
.page-content-section h2 { font-size: clamp(25px, 3vw, 36px); margin-bottom: 18px; }
.page-content-section p { color: var(--text-secondary); line-height: 1.8; max-width: 68ch; white-space: pre-line; }

.nav-cta {
  display: none;
}

/* Show desktop nav CTA on large screens */
@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .nav-links { gap: 28px; }
  .nav-links a { font-size: 11.5px; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
}
.mobile-nav a.is-active { color: var(--accent); }

@media (min-width: 768px) {
  .mobile-nav { display: none; }
}

/* ==========================================================================
   HERO — viewport / render-frame treatment
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--gutter) 0;
  overflow: hidden;
}

.hero-render {
  position: absolute;
  inset: 12px;
  border-radius: 2px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 75% 20%, rgba(86, 92, 242, 0.14), transparent 55%),
    linear-gradient(180deg, #1c1d21 0%, #101114 55%, #0b0c0e 100%);
}

.hero-render-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-render::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 90px),
    repeating-linear-gradient(25deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 140px);
}

.hero-render .placeholder-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  max-width: 300px;
}

.hero-render .placeholder-tag strong {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  margin-bottom: 4px;
}

.viewport-frame span {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(236, 233, 228, 0.55);
}
.viewport-frame .vf-tl { top: 24px; left: 24px; border-right: none; border-bottom: none; }
.viewport-frame .vf-tr { top: 24px; right: 24px; border-left: none; border-bottom: none; }
.viewport-frame .vf-bl { bottom: 24px; left: 24px; border-right: none; border-top: none; }
.viewport-frame .vf-br { bottom: 24px; right: 24px; border-left: none; border-top: none; }

.render-meta {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  z-index: 2;
}
.render-meta span { color: var(--text-secondary); }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 72px;
  max-width: 880px;
}

.hero-content .eyebrow { margin-bottom: 20px; display: block; }

.hero-content h1 {
  font-size: clamp(36px, 4.9vw, 60px);
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.05;
  max-width: 820px;
}

.hero-content p {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1023px) {
  .hero { padding-top: 120px; }
  .hero-content { padding-bottom: 48px; }
}

@media (max-width: 767px) {
  .hero { align-items: flex-end; padding-top: 100px; }
  .hero-render { inset: 8px; }
  .hero-content { padding: 0 12px 40px; }
  .hero-content h1 { font-size: clamp(28px, 8vw, 40px); }
  .render-meta { display: none; }
  .viewport-frame .vf-tl,
  .viewport-frame .vf-tr,
  .viewport-frame .vf-bl,
  .viewport-frame .vf-br { width: 16px; height: 16px; top: 16px; bottom: 16px; left: 16px; right: 16px; }
  .viewport-frame .vf-tl { top: 16px; left: 16px; }
  .viewport-frame .vf-tr { top: 16px; right: 16px; }
  .viewport-frame .vf-bl { bottom: 16px; left: 16px; }
  .viewport-frame .vf-br { bottom: 16px; right: 16px; }
}

/* ==========================================================================
   WORK HIGHLIGHTS
   ========================================================================== */

.section {
  padding: var(--section-pad) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-top: 12px;
  line-height: 1.1;
}

.section-head .link-out {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.section-head .link-out:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.highlight-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  grid-column: span 3;
  grid-row: span 1;
  border: 1px solid var(--line);
}

.highlight-card.is-lead {
  grid-column: span 4;
  grid-row: span 2;
}
.highlight-card.is-tall {
  grid-column: span 2;
  grid-row: span 2;
}

.highlight-card .card-render {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--c1, #23262b), var(--c2, #101114));
  transition: transform 0.6s var(--ease);
  overflow: hidden;
}

.highlight-card .card-render img,
.work-item .card-render img,
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-card:hover .card-render { transform: scale(1.04); }

.highlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 45%, transparent 65%);
}

.highlight-card .placeholder-label {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(236,233,228,0.4);
  letter-spacing: 0.05em;
}

.highlight-card .card-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
}

.highlight-card .card-caption .cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 6px;
}

.highlight-card[data-category="archviz"] .cat { color: var(--accent-blue); }
.highlight-card[data-category="residential"] .cat { color: var(--accent-blue); }
.highlight-card[data-category="commercial"] .cat { color: var(--accent); }
.highlight-card[data-category="product"] .cat { color: var(--accent-pink); }

.highlight-card .card-caption .title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .highlight-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .highlight-card,
  .highlight-card.is-lead,
  .highlight-card.is-tall { grid-column: span 2; grid-row: span 1; }
  .highlight-card.is-lead { grid-row: span 2; }
}

@media (max-width: 480px) {
  .highlight-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .highlight-card,
  .highlight-card.is-lead,
  .highlight-card.is-tall { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--text-primary);
}
.stat-number span { color: var(--accent); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

/* ==========================================================================
   SERVICES TEASER
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.3s var(--ease);
}
.service-card:hover { background: var(--bg-elevated); }

.service-card .index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.service-card h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 44ch;
}

.service-card .card-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-top: auto;
}

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

/* ==========================================================================
   CLIENT LOGOS — infinite marquee
   ========================================================================== */

.logo-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 48s linear infinite;
}

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

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-cell {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.logo-cell img {
  max-height: 30px;
  max-width: 120px;
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
}
.logo-cell img:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ==========================================================================
   CLIENT LOGOS — infinite marquee
   ========================================================================== */

.logo-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 48s linear infinite;
}

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

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-cell {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.logo-cell img {
  display: block;
  max-width: 120px;
  max-height: 30px;
  width: auto;
  height: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.55;
  transition: opacity 0.25s var(--ease);
}

.logo-cell img:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

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

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--accent);
}

.testimonial-stars .star-filled { color: var(--accent); }
.testimonial-stars .star-empty { color: var(--line-strong); }

.testimonial-quote {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-primary);
}

.testimonial-country {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 1000px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */

.cta-band {
  border-top: 1px solid var(--line);
  padding: var(--section-pad-sm) 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-band p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
  display: inline-block;
}
.footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
  }

  .footer-col:first-child {
    width: 100%;
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .footer-col:first-child .logo-img {
    height: 40px;
    margin: 0 auto;
  }

  .footer-col:not(:first-child) {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  .footer-col h4 {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    color: var(--text-muted);
  }

  .footer-col ul {
    gap: 0;
  }

  .footer-col ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .footer-col ul li:last-child {
    border-bottom: none;
  }

  .footer-col a {
    display: block;
    font-size: 16px;
    padding: 14px 0;
    color: var(--text-secondary);
    min-height: 48px;
    line-height: 1.3;
  }

  .footer-col a:active {
    color: var(--accent-bright);
    background: rgba(44, 194, 209, 0.06);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-top: 20px;
    font-size: 13px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   WORK — page header
   ========================================================================== */

.page-header {
  padding: 150px 0 60px;
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow { display: block; margin-bottom: 18px; }

.page-header h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  max-width: 700px;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 520px;
  margin-top: 18px;
  font-size: 16px;
}

@media (max-width: 767px) {
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: clamp(26px, 7vw, 36px); }
}

/* ==========================================================================
   WORK — filter tabs
   ========================================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.filter-tab {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 8px;
  position: relative;
  transition: color 0.2s var(--ease);
}

.filter-tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.filter-tab:hover { color: var(--text-secondary); }

.filter-tab.is-active {
  color: var(--text-primary);
}
.filter-tab.is-active::after { transform: scaleX(1); }

.filter-tab[data-filter="archviz"]::after { background: var(--accent-blue); }
.filter-tab[data-filter="residential"]::after { background: var(--accent-blue); }
.filter-tab[data-filter="commercial"]::after { background: var(--accent); }
.filter-tab[data-filter="product"]::after { background: var(--accent-pink); }

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .filter-bar { gap: 20px; }
  .filter-tab { font-size: 11.5px; }
  .filter-count { width: 100%; margin-left: 0; margin-top: 8px; }
}

/* ==========================================================================
   WORK — portfolio grid
   ========================================================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
  padding: 48px 0 var(--section-pad);
}

.work-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
  grid-column: span 3;
  grid-row: span 1;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.work-item[data-size="lead"] { grid-column: span 4; grid-row: span 2; }
.work-item[data-size="tall"] { grid-column: span 2; grid-row: span 2; }
.work-item[data-size="wide"] { grid-column: span 6; grid-row: span 1; }

.work-item.is-hidden {
  display: none;
}

.work-item .card-render {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--c1, #23262b), var(--c2, #101114));
  transition: transform 0.6s var(--ease);
}
.work-item:hover .card-render { transform: scale(1.04); }

.work-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 50%, transparent 68%);
  transition: opacity 0.3s var(--ease);
}

.work-item .placeholder-label {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(236,233,228,0.38);
  letter-spacing: 0.05em;
}

.work-item .item-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-item:hover .item-caption,
.work-item:focus-visible .item-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .work-item .item-caption { opacity: 1; transform: translateY(0); }
  .work-item::after { background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 55%, transparent 72%); }
}

.work-item .item-caption .cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 6px;
}

.work-item[data-category="archviz"] .cat { color: var(--accent-blue); }
.work-item[data-category="residential"] .cat { color: var(--accent-blue); }
.work-item[data-category="commercial"] .cat { color: var(--accent); }
.work-item[data-category="product"] .cat { color: var(--accent-pink); }

.work-item .item-caption .title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .work-item,
  .work-item[data-size="lead"],
  .work-item[data-size="tall"],
  .work-item[data-size="wide"] { grid-column: span 2; grid-row: span 1; }
  .work-item[data-size="lead"] { grid-row: span 2; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .work-item,
  .work-item[data-size="lead"],
  .work-item[data-size="tall"],
  .work-item[data-size="wide"] { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================================
   CASE STUDY — header + metadata
   ========================================================================== */

.case-header {
  padding: 150px 0 0;
}

.case-header .eyebrow { display: block; margin-bottom: 18px; }

.case-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  max-width: 820px;
  margin-bottom: 36px;
}

.meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-item {
  padding: 20px 24px 20px 0;
  border-left: 1px solid var(--line);
}
.meta-item:first-child { border-left: none; padding-left: 0; }

.meta-item .meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.meta-item .meta-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-primary);
}

@media (max-width: 700px) {
  .meta-bar { grid-template-columns: repeat(2, 1fr); }
  .meta-item { border-left: none; border-top: 1px solid var(--line); padding: 16px 0; }
  .meta-item:nth-child(odd) { padding-right: 16px; }
  .meta-item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .meta-item:first-child, .meta-item:nth-child(2) { border-top: none; }
}

/* ==========================================================================
   CASE STUDY — brief / approach
   ========================================================================== */

.case-intro {
  padding: 56px 0 var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.case-intro-block .eyebrow { display: block; margin-bottom: 14px; }

.case-intro-block p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 46ch;
}

.case-intro-block:first-child p {
  color: var(--text-primary);
  font-size: 19px;
}

@media (max-width: 800px) {
  .case-intro { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   CASE STUDY — media blocks (rhythm: full / split / full / full-beauty)
   ========================================================================== */

.case-media {
  padding-bottom: 16px;
}

.media-full {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.media-full.is-tall { aspect-ratio: 16 / 10; }

.media-render {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--c1, #23262b), var(--c2, #101114));
}

.media-full .placeholder-label,
.media-split .placeholder-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(236,233,228,0.4);
  letter-spacing: 0.05em;
}

.media-caption {
  margin-top: 10px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.media-split .split-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--line);
}

.split-item .split-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(11,12,14,0.7);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
}

.split-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 45%);
}

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

/* ==========================================================================
   CASE STUDY — footer link back to Work
   ========================================================================== */

.case-footer-nav {
  padding: 40px 0 var(--section-pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.case-footer-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.case-footer-nav a:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

/* ==========================================================================
   SERVICES — discipline blocks
   ========================================================================== */

.discipline-block {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  scroll-margin-top: 100px;
}

.discipline-block.is-reverse .discipline-media { order: 2; }
.discipline-block.is-reverse .discipline-copy { order: 1; }

.discipline-copy .index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}

.discipline-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 20px;
  line-height: 1.1;
}

.discipline-copy > p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 52ch;
  margin-bottom: 32px;
  line-height: 1.7;
}

.deliverable-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deliverable-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15px;
  color: var(--text-primary);
  padding: 14px 0;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

.deliverable-list li:last-child { border-bottom: none; padding-bottom: 0; }

.deliverable-list .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-bright);
  flex-shrink: 0;
  min-width: 60px;
}

#archviz .deliverable-list .tag,
#archviz .discipline-copy .index { color: var(--accent-blue); }
#product .deliverable-list .tag,
#product .discipline-copy .index { color: var(--accent-pink); }

.discipline-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.discipline-media .media-render { position: absolute; inset: 0; }
.discipline-media { transition: border-color .25s var(--ease); }
a.discipline-media:hover { border-color: var(--accent); }
.service-detail-link { display: inline-flex; gap: 10px; margin-top: 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-bright); border-bottom: 1px solid var(--line-strong); padding-bottom: 5px; }
.service-detail-link:hover { border-color: var(--accent-bright); }

/* Service detail pages reuse the existing page-header, media, list, and process rhythm. */
.service-detail-hero { padding-bottom: 0; }
.service-detail-intro { padding: 56px var(--gutter) var(--section-pad); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.service-detail-intro > p { font-size: 19px; color: var(--text-primary); line-height: 1.65; max-width: 42ch; }
.service-detail-intro > div > p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 52ch; }
.service-detail-media { margin-bottom: var(--section-pad); }
.service-detail-media .media-render { background-size: contain; background-repeat: no-repeat; background-position: center; }
.service-detail-media .media-render:not(.has-image)::after { content: 'Image available through the admin panel'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.service-detail-columns { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; padding-bottom: var(--section-pad); }
.service-detail-columns h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 20px; }
.service-detail-columns p { color: var(--text-secondary); line-height: 1.7; max-width: 54ch; }
.service-detail-columns + .section .process-steps { grid-template-columns: repeat(3, 1fr); }
.service-primary-layout + .section .process-steps { grid-template-columns: repeat(3, 1fr); }
#serviceBenefits { grid-template-columns: repeat(3, 1fr); }
.service-primary-layout { display: grid; grid-template-columns: 600px minmax(0, 1fr); column-gap: 56px; row-gap: 36px; align-items: start; padding-top: var(--section-pad-sm); padding-bottom: var(--section-pad); }
.service-primary-layout > .service-detail-media { margin: 0; width: 600px; max-width: 100%; }
.service-primary-layout > .service-detail-media .media-full { aspect-ratio: 16 / 10; margin: 0; }
.service-primary-layout > .service-detail-media .media-render { background-size: cover; background-repeat: no-repeat; background-position: center; }
.service-primary-scope { display: block; padding: 0; }
.service-primary-scope h2 { font-size: clamp(24px, 2.8vw, 32px); }
.service-primary-intro { margin: 0; font-size: 19px; color: var(--text-primary); line-height: 1.65; max-width: 42ch; }
.service-primary-overview h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 0 0 8px; }
.service-primary-overview p { margin: 0; font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 52ch; }
.service-detail-media ~ .service-detail-media,
.service-detail-media:has(#serviceProcessImage) { display: none; }
.service-content-section { padding: 0 0 var(--section-pad-sm); }
.service-image-text-grid { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 56px; align-items: start; }
.service-image-text-section.is-reversed .service-section-media { order: 2; }
.service-section-media { width: 600px; max-width: 100%; margin: 0; min-width: 0; }
.service-image-text-section.is-reversed .service-section-media { justify-self: end; }
.service-section-media .media-full { aspect-ratio: 4 / 3; margin: 0; }
.service-section-media .media-render { background-size: cover; background-position: center; }
.service-section-media .media-render:not(.has-image)::after { content: 'Image available through the admin panel'; position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.service-section-copy { min-width: 0; padding-top: 4px; }
.service-section-copy h2, .service-logistics h2, .service-content-section > .wrap > h2 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 14px; }
.service-section-body { margin-top: 24px; }
.service-section-body p { color: var(--text-secondary); line-height: 1.75; max-width: 62ch; }
.service-section-body p + p { margin-top: 18px; }
.service-logistics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; border-top: 1px solid var(--line); padding-top: var(--section-pad-xs); }
.service-logistics h2 { margin-bottom: 24px; }
.service-faq { border-top: 1px solid var(--line); margin-top: 28px; }
.service-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.service-faq summary { cursor: pointer; font-family: var(--font-display); font-size: 18px; color: var(--text-primary); }
.service-faq details p { color: var(--text-secondary); margin-top: 12px; max-width: 68ch; }
.service-page-state { margin: 0 var(--gutter) 32px; padding: 16px; border: 1px solid var(--line-strong); color: var(--text-secondary); font-size: 14px; }
.image-upload-status { min-height: 18px; margin-top: 6px; color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.image-upload-status.ok { color: var(--accent); }
.image-upload-status.err { color: #e87979; }
@media (max-width: 1100px) and (min-width: 801px) { .service-primary-layout, .service-image-text-grid { grid-template-columns: 1fr; } .service-image-text-section.is-reversed .service-section-media { order: 0; justify-self: start; } }
@media (max-width: 800px) { .service-detail-intro, .service-detail-columns, .service-detail-columns + .section .process-steps, .service-primary-layout, .service-image-text-grid, .service-logistics-grid { grid-template-columns: 1fr; gap: 28px; } .service-primary-layout > .service-detail-media, .service-section-media { width: 100%; } .service-image-text-section.is-reversed .service-section-media { order: 0; justify-self: stretch; } }
@media (max-width: 900px) { #serviceBenefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #serviceBenefits { grid-template-columns: 1fr; } }

.discipline-media .placeholder-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(236,233,228,0.4);
}

@media (max-width: 800px) {
  .discipline-block { grid-template-columns: 1fr; gap: 32px; }
  .discipline-block.is-reverse .discipline-media,
  .discipline-block.is-reverse .discipline-copy { order: initial; }
}

/* ==========================================================================
   SERVICES — process steps
   ========================================================================== */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-steps:has(.process-step:nth-child(7)) {
  grid-template-columns: repeat(3, 1fr);
}

.process-step {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}

.process-step .step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.process-step h4 {
  font-size: 18px;
  line-height: 1.2;
}

.process-step p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* A process CTA is a full-width banner, not a fifth grid cell. */
.process-step.process-cta {
  grid-column: 1 / -1;
  min-height: 0;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.process-cta-copy { max-width: 680px; display: flex; flex-direction: column; gap: 10px; }
.process-cta .step-number, .process-cta h4 { color: var(--accent-bright); }
.process-cta .btn { flex: 0 0 auto; }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps:has(.process-step:nth-child(7)) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-steps:has(.process-step:nth-child(7)) { grid-template-columns: 1fr; }
  .process-step.process-cta { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   ABOUT — bio, tools, team
   ========================================================================== */

.about-bio {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  padding: 56px 0 var(--section-pad);
  border-bottom: 1px solid var(--line);
}

.about-bio p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 18px;
  max-width: 52ch;
}
.about-bio p:first-child { color: var(--text-primary); font-size: 18px; }

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.tool-list li {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.tool-list li span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 1100px) {
  .tool-list { grid-template-columns: 1fr; }
}

.about-additional {
  padding: 32px 0 var(--section-pad);
  border-bottom: 1px solid var(--line);
}
.about-additional p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 56ch;
  margin-bottom: 18px;
  line-height: 1.7;
}
.about-additional p:last-child {
  margin-bottom: 0;
}
.about-additional p a {
  color: var(--accent-bright);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease);
}
.about-additional p a:hover {
  border-color: var(--accent-bright);
}

@media (max-width: 800px) {
  .about-bio { grid-template-columns: 1fr; gap: 32px; }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  background: linear-gradient(150deg, #23262b, #101114);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo .placeholder-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(236,233,228,0.4);
  text-align: center;
  padding: 0 16px;
}

.team-card .name {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-primary);
}

.team-card .role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  padding: 150px 0 var(--section-pad);
  align-items: start;
}

.contact-info .eyebrow { display: block; margin-bottom: 18px; }

.contact-info h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 42ch;
}

.contact-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 32px;
}

.contact-visual .media-render { position: absolute; inset: 0; }

.contact-visual .placeholder-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(236,233,228,0.4);
  max-width: 220px;
}

.expectation-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.expectation-list .exp-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.expectation-list .exp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  flex-shrink: 0;
  width: 92px;
  padding-top: 2px;
}

.expectation-list .exp-text {
  font-size: 14.5px;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .expectation-list .exp-item { flex-direction: column; gap: 4px; }
  .expectation-list .exp-label { width: auto; }
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(28px, 4vw, 44px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 13px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8D93' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-submit {
  width: 100%;
  justify-content: center;
  border: none;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

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

/* ==========================================================================
   CASE STUDY PAGE
   ========================================================================== */

.case-study-header .back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.case-study-header .back-link:hover { color: var(--accent); }

.cs-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 340px;
  border-radius: 2px;
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 8px 0 var(--section-pad, 48px);
  background-size: cover;
  background-position: center;
}

.cs-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: var(--section-pad, 48px);
}

.cs-gallery .cs-gallery-item {
  position: relative;
  border-radius: 2px;
  border: 1px solid var(--line);
  overflow: hidden;
  height: 360px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}

@media (max-width: 900px) {
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-gallery .cs-gallery-item { height: auto; }
}

.cs-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 8px 0 var(--section-pad, 48px);
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.cs-details-col .eyebrow { display: block; margin-bottom: 18px; }

.cs-feature-list,
.cs-viz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs-feature-list li,
.cs-viz-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.cs-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.cs-viz-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
}

@media (max-width: 900px) {
  .cs-details { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   NEW COMPONENTS — Conversion Audit Additions
   ========================================================================== */

.mid-cta {
  padding: 64px 0 80px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.mid-cta h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
  line-height: 1.15;
}
.mid-cta p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.6;
}

.trust-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  text-align: center;
}
.trust-band p {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.overseas-trust {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}
.overseas-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.trust-point {
  background: var(--bg);
  padding: clamp(32px, 3.5vw, 48px) clamp(24px, 2.8vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trust-point .trust-icon {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trust-point h4 {
  font-size: 18px;
  line-height: 1.2;
}
.trust-point p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .overseas-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .overseas-trust-grid { grid-template-columns: 1fr; }
}

.what-next {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.what-next .eyebrow {
  display: block;
  margin-bottom: 20px;
}
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.next-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.next-step .step-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}
.next-step h4 {
  font-size: 16px;
}
.next-step p {
  font-size: 14px;
  color: var(--text-secondary);
}
@media (max-width: 700px) {
  .next-steps { grid-template-columns: 1fr; gap: 20px; }
}

.team-credential {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
  max-width: 90%;
}

.additional-capabilities {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.additional-capabilities p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
}
.additional-capabilities a {
  color: var(--accent-bright);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease);
}
.additional-capabilities a:hover {
  border-color: var(--accent-bright);
}

/* ==========================================================================
   AUDIENCE SPLIT — Why Architects and Builders Choose Entity Design
   ========================================================================== */

.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 8px 0 var(--section-pad);
}

.audience-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.audience-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.15;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.audience-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audience-block h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}

.audience-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.audience-block p a {
  color: var(--accent-bright);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s var(--ease);
}

.audience-block p a:hover {
  border-color: var(--accent-bright);
}

@media (max-width: 1023px) {
  .audience-split { gap: 48px; }
}

@media (max-width: 800px) {
  .audience-split {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: var(--section-pad-sm);
  }
  .audience-col { gap: 28px; }
}

/* ==========================================================================
   CASE STUDY — Semantic Images
   ========================================================================== */

.cs-hero img,
.cs-gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.cs-hero .placeholder-label {
  z-index: 2;
}

.cs-gallery-item {
  position: relative;
  overflow: hidden;
}

/* Preserve the complete render on narrow screens instead of forcing every
   gallery item into a fixed-height crop. */
@media (max-width: 767px) {
  .cs-hero {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  .cs-hero img,
  .cs-gallery-item img {
    position: static !important;
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    inset: auto !important;
  }

  .cs-gallery .cs-gallery-item {
    height: auto;
  }
}

.cs-gallery-item .placeholder-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(236,233,228,0.4);
}

.project-responsibility { padding-top: 0; }
.project-responsibility .wrap { border-top: 1px solid var(--line); padding-top: 32px; }
.project-responsibility p { max-width: 78ch; color: var(--text-secondary); line-height: 1.7; margin-top: 14px; }
