@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;1,500&family=UnifrakturMaguntia&family=Work+Sans:wght@400;500;600&display=swap');

@font-face {
  font-family: 'Control Upright Web';
  src: url('fonts/ControlUpright-Regular-Web.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Grave Shade';
  src: url('fonts/Grave Shade.otf') format('opentype'),
       url('fonts/Grave Shade.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dala Floda Arabic Web';
  src: url('fonts/DalaFlodaArabic-Medium-Web.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #f5f5f0;
  --muted: #9a9a95;
  --rule: #2a2a2a;
  --serif: 'Times New Roman', Times, Georgia, serif;
  --sans: 'Control Upright Web', 'Work Sans', -apple-system, Helvetica, Arial, sans-serif;
  --blackletter: 'Grave Shade', cursive;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  min-height: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--fg); }
a:hover { color: var(--muted); }

.logo-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: 0;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}
.logo-bar .logo-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: block;
  pointer-events: auto;
}
.logo-bar .logo-link img {
  width: clamp(198px, 43.4vw, 620px);
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  transform: translateY(calc(-100% + clamp(24px, 3.75vw, 44px)));
}

@media (max-width: 700px) {
  .logo-bar {
    padding: 0;
    min-height: 0;
  }
  .logo-bar .logo-link img {
    width: clamp(140px, 55vw, 300px);
    transform: translateY(calc(-100% + clamp(22px, 5.5vw, 32px)));
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
header.nav-visible { transform: translateY(0); }
header a { text-decoration: none; }
header .header-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}
header .header-nav a { color: var(--fg); }
header .header-nav a:hover { color: var(--muted); }
.filter-section {
  padding: 0 20px;
  margin-bottom: 16px;
}
.filter-label {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
}
.filter-bubbles {
  display: flex;
  gap: 8px;
}
.filter-bubble-wrap {
  position: relative;
}
.filter-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 8px;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  list-style: none;
  margin: 0;
  z-index: 20;
  flex-direction: column;
  gap: 4px;
}
.filter-dropdown li {
  padding: 3px 0;
  white-space: nowrap;
}
.filter-bubble-wrap:hover .filter-dropdown {
  display: flex;
}
.filter-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.filter-bubble .close-icon {
  display: none;
  width: 10px;
  height: 10px;
}
.filter-bubble.is-active .close-icon {
  display: block;
}
.filter-bubble[data-filter="brand"]:hover,
.filter-bubble[data-filter="brand"].is-active { background: #a8f5a2; color: #000; }
.filter-bubble[data-filter="print"]:hover,
.filter-bubble[data-filter="print"].is-active { background: #fff06b; color: #000; }
.filter-bubble[data-filter="web"]:hover,
.filter-bubble[data-filter="web"].is-active { background: #a0f0f0; color: #000; }
header .header-nav .nav-home {
  display: inline-flex;
  align-items: center;
}
header .header-nav .nav-home svg {
  width: 16px;
  height: 16px;
}
header .nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 4px;
}
header .nav-menu-toggle svg {
  width: 20px;
  height: 20px;
}
header .nav-menu-dropdown {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 170px;
  background: #111;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 60;
}
header .nav-menu-dropdown.is-open { display: flex; }
header .nav-menu-dropdown a {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--fg);
}
header .nav-menu-dropdown a:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 850px) {
  header .nav-menu-toggle { display: inline-flex; }
  header .message-us .about-link { display: none; }
  header .message-us-toggle {
    padding: 10px 14px;
    font-size: 12px;
  }
}

.message-us {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
}
.message-us .about-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg);
  text-decoration: none;
}
.message-us .about-link:hover { color: var(--muted); }
.message-us-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  border-radius: 30px;
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.message-us-toggle:hover { background: var(--muted); }
.message-us-toggle-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.message-us-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transform-origin: top right;
  transform: scale(0.85);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.message-us-panel.is-open {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.message-us-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.message-us-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #000;
  font-family: var(--sans);
}
.message-us-form select,
.message-us-form textarea,
.message-us-form input[type="email"] {
  font-family: var(--sans);
  font-size: 14px;
  color: #000;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  resize: vertical;
}
.message-us-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #000;
  font-family: var(--sans);
}
.message-us-form .form-field-label { color: #000; }
.message-us-form .form-label-iam {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

.form-field-stage { position: relative; }
.form-toasty {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: auto;
  opacity: 0.8;
}

.switch-field { display: flex; flex-direction: column; gap: 8px; }
.switch-track {
  position: relative;
  display: block;
  width: 100%;
  height: 36px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
}
.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(33.333% - 4px);
  height: calc(100% - 6px);
  background: #000;
  border-radius: 16px;
  transition: left 0.25s ease;
}
.switch-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.switch-label {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 11px;
  color: #888;
  cursor: pointer;
  text-align: center;
}
.switch-label:first-child { text-align: left; }
.switch-label:last-child { text-align: right; }
.switch-label.is-active { color: #000; font-weight: 500; }

.scale-field { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.scale-track {
  position: relative;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 7px;
}
.scale-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #000;
  border-radius: 2px;
  transition: width 0.25s ease;
}
.scale-hotspot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.scale-hotspot.is-active {
  background: #000;
  border-color: #000;
  transform: scale(1.15);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
  color: #888;
}
.scale-labels span { flex: 1; text-align: center; }
.scale-labels span:first-child { text-align: left; }
.scale-labels span:last-child { text-align: right; }
.scale-labels span.is-active { color: #000; font-weight: 500; }
.message-us-submit {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
}
.message-us-submit:hover { background: #333; }
.message-us-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}
.message-us-submit:disabled:hover { background: #ccc; }
.message-us-success {
  font-size: 13px;
  color: #000;
  margin: 4px 0 0;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.message-us-success.is-fading { opacity: 0; }

@media (max-width: 700px) {
  .message-us-toggle { padding: 10px 14px; font-size: 12px; }
  .message-us-panel { width: calc(100vw - 24px); right: 0; }
}

.grid-hero-wrapper {
  position: relative;
  margin-top: 85px;
  margin-bottom: 60px;
}
.grid-headline {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 10;
  text-align: left;
  font-family: var(--blackletter);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(180px, 42vw, 480px);
  line-height: 0.75;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  color: #000;
  padding: 0;
}
.story-intro {
  text-align: center;
  padding: clamp(80px, 14vw, 128px) clamp(16px, 4vw, 20px) 0;
  max-width: 1120px;
  margin: 0 auto;
}
.story-intro h2 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 6.5vw, 56px);
  line-height: 1.05;
  text-transform: none;
  margin: 0 0 16px;
}
.story-intro p {
  color: var(--fg);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto;
}
.story-intro-text {
  text-align: center;
  color: var(--fg);
  max-width: 820px;
  margin: 80px auto 0;
  padding: 0 clamp(16px, 4vw, 20px);
}
.story-headline {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 24px;
}
.story-body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 80px;
}
.word-swap {
  position: relative;
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
}
.word-swap-item {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.15em);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.word-swap-item.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero {
  text-align: left;
  padding: clamp(48px, 9vw, 80px) 20px 0;
  max-width: 800px;
  margin: 0;
}
.hero h1 {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(20px, 4vw, 32px);
  line-height: 0.95;
  text-transform: none;
  margin: 0 0 8px;
}
.hero p { color: var(--fg); font-size: 16px; font-weight: 400; max-width: 100%; margin: 0 0 16px; }

.logo-strip {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 12px 20px;
  margin: 32px auto 16px;
}
.logo-strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
@keyframes logoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.logo-strip img {
  display: block;
  width: clamp(80px, 10vw, 112px);
  height: clamp(32px, 4vw, 44px);
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 1;
}
.logo-strip img[src*="jll-logo"],
.logo-strip img[src*="cbre-logo"],
.logo-strip img[src*="ruca.png"] {
  width: clamp(50px, 6vw, 70px);
  height: clamp(20px, 2.5vw, 28px);
}
.logo-strip img[src*="uleague"],
.logo-strip img[src*="gvets"],
.logo-strip img[src*="le.png"],
.logo-strip img[src*="cbx.png"] {
  width: clamp(100px, 12vw, 140px);
  height: clamp(40px, 5vw, 56px);
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 16px;
  width: 100%;
  margin: 8px 0 0;
  padding: 0 20px;
  text-align: left;
}
.services h3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  width: 100%;
  margin-bottom: 0;
}
.services-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}
.services-bubble { position: relative; }
.services-bubble .bubble-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: normal;
  text-transform: none;
  padding: 3px 10px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.services-bubble .bubble-label .close-icon {
  display: none;
  width: 10px;
  height: 10px;
}
#services-brand .bubble-label:hover {
  background: #a8f5a2;
  color: #000;
}
#services-print .bubble-label:hover {
  background: #fff06b;
  color: #000;
}
#services-web .bubble-label:hover {
  background: #a0f0f0;
  color: #000;
}
#services-brand .bubble-label.is-active {
  background: #a8f5a2;
  color: #000;
}
#services-print .bubble-label.is-active {
  background: #fff06b;
  color: #000;
}
#services-web .bubble-label.is-active {
  background: #a0f0f0;
  color: #000;
}
.services-bubble .bubble-label.is-active .close-icon {
  display: block;
}
.services-bubble .bubble-label:hover {
  background: #fff;
  color: #000;
  border-radius: 30px;
  box-shadow: none;
}
.services-bubble ul {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  min-width: 180px;
  color: #fff;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 10;
}
.services-bubble:hover ul,
.services-bubble .bubble-label:focus ~ ul {
  display: block;
}
.services li { margin: 6px 0; }

.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}
.thumb {
  flex-grow: 0;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  border-radius: 0;
}
.thumb.reveal-left,
.thumb.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.thumb.reveal-left { transform: translateX(-70px); }
.thumb.reveal-right { transform: translateX(70px); }
.thumb.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.cta-block {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 320px;
  border-radius: 0;
  overflow: hidden;
  margin-top: 80px;
  margin-bottom: 80px;
}
.cta-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.5s ease;
}
.cta-video-hover {
  opacity: 0;
}
.cta-block:hover .cta-video-default {
  opacity: 0;
}
.cta-block:hover .cta-video-hover {
  opacity: 1;
}
.cta-content {
  position: relative;
  z-index: 1;
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.cta-block h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  color: #fff;
}
.cta-block p {
  font-family: var(--sans);
  font-size: 16px;
  margin: 0 0 12px;
  color: #fff;
}
.cta-button {
  display: inline-block;
  background: #fff;
  color: #000;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.cta-button:hover {
  background: #000;
  color: #fff;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .thumb.reveal-left,
  .thumb.reveal-right,
  .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.case-study {
  display: flex;
  gap: 40px;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  min-height: 480px;
}
.case-study .media {
  flex: 1 1 60%;
  position: relative;
  overflow: visible;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-study .media > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.media-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.media-nav:hover { background: rgba(0, 0, 0, 0.65); }
.media-nav.prev { left: 16px; }
.media-nav.next { right: 16px; }
.media-nav img {
  width: 10px;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
}
.media-nav.prev img { transform: scaleX(-1); }
.case-study .info {
  flex: 1 1 40%;
  padding: 0 40px 40px 0;
  color: #fff;
  background: transparent;
  position: sticky;
  top: 80px;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
}
.case-study .info h2,
.case-study .info p {
  color: #fff;
}
.case-study .info .client-link {
  color: #fff;
  opacity: 0.8;
}
.case-study .info .client-link:hover {
  opacity: 1;
}
.case-study .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.case-study .tags .tag-pill {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 5px 14px;
  border-radius: 30px;
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.case-study h2 {
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: 79px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 14px;
}
.case-study p { max-width: 480px; }
.case-study .client-link { display: inline-block; margin-top: 16px; font-size: 13px; text-decoration: underline; }

@media (max-width: 800px) {
  .case-study { flex-direction: column; gap: 24px; }
  .case-study .media, .case-study .info { flex: 1 1 100%; }
  .case-study .info { padding: 0 20px 40px; position: static; max-height: none; order: -1; }
}

/* Case studies now live inside the modal; hidden until opened. */
.case-study { display: none; border-top: none; margin-top: 0; padding-top: 0; }
.case-study.is-active { display: flex; }
@media (max-width: 800px) {
  .case-study.is-active { display: flex; flex-direction: column; }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: calc(100% - 24px);
  margin: 0 12px 60px;
  padding: 0;
}
.work-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  padding: 0;
  border: none;
  background: #000;
  cursor: pointer;
}
.work-tile-media {
  position: absolute;
  inset: 0;
}
.work-tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.work-tile-media img.is-active { opacity: 1; }
.work-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.03s ease;
  background: rgba(0,0,0,0.5);
}
.work-tile:hover .work-tile-caption,
.work-tile:focus-visible .work-tile-caption {
  opacity: 1;
}
.tag-chip {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  padding: 5px 14px;
  border-radius: 30px;
}
.tag-chip {
  background: rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tag-chip.tag-brand { background: rgba(255,255,255,0.25); color: #fff; }
.tag-chip.tag-print { background: rgba(255,255,255,0.25); color: #fff; }
.tag-chip.tag-web { background: rgba(255,255,255,0.25); color: #fff; }
.tag-chip.tag-brand:hover { background: #a8f5a2; color: #000; }
.tag-chip.tag-print:hover { background: #fff06b; color: #000; }
.tag-chip.tag-web:hover { background: #a0f0f0; color: #000; }
.tag-chip.tag-brand.is-active { background: #a8f5a2; color: #000; }
.tag-chip.tag-print.is-active { background: #fff06b; color: #000; }
.tag-chip.tag-web.is-active { background: #a0f0f0; color: #000; }
.work-tile-name {
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}
.work-tile-line,
.work-tile-arrow {
  display: none !important;
}
.work-tile-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.work-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0,0,0,0.5);
  background-blend-mode: multiply;
  padding: 0;
  overflow-y: auto;
}
.work-modal-backdrop::before {
  content: '';
  position: fixed;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(50px) saturate(1.5) brightness(0.7);
  transform: scale(1.2);
  z-index: -1;
}
.work-modal-backdrop::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}
.work-modal-backdrop.is-open { display: flex; align-items: flex-start; justify-content: center; }
.work-modal-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0 auto;
  padding: 60px 40px;
  overflow: visible;
}
.work-modal-close {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 210;
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 56px;
  font-weight: 100;
  line-height: 1;
  cursor: pointer;
  font-family: system-ui, -apple-system, sans-serif;
}
.work-modal-close:hover { background: transparent; color: rgba(255,255,255,0.7); }
body.work-modal-open { overflow: hidden; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 80px 40px;
}
@media (max-width: 800px) {
  .testimonials { grid-template-columns: 1fr; gap: 60px; padding: 0 20px; }
}
.testimonial {
  text-align: center;
  margin: 0;
  padding: 0;
}
.testimonial p { font-family: var(--sans); font-style: normal; font-size: 16px; line-height: 1.4; }
.testimonial .logos { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 24px; }
.testimonial .client-logo { display: block; width: 90px; height: auto; filter: brightness(0) invert(1); opacity: 1; }
.testimonial cite { display: block; margin-top: 16px; font-style: normal; font-size: 8px; line-height: 1.6; color: var(--fg); text-transform: uppercase; letter-spacing: 0.15em; }

.closing {
  text-align: center;
  max-width: 780px;
  padding: 90px 20px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.closing h2 { font-family: var(--serif); font-style: normal; font-weight: 500; font-size: 30px; line-height: 1.15; text-transform: none; }
.closing .cta {
  display: inline-block;
  margin-top: 24px;
  background: #fff;
  color: #000;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
}

footer {
  text-align: center;
  padding: 0;
  margin-top: auto;
}
footer .footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 4px 0 0;
  padding: 0 48px 0;
  min-height: 50px;
}
footer .footer-icons-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  margin-left: -2px;
}
footer .footer-icons-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  margin-right: -2px;
}
footer .icon-link {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.2s ease;
}
footer .icon-link svg { width: 18px; height: 18px; }
footer .icon-link[title="Instagram"]:hover { color: #E1306C; }
footer .icon-link[title="GitHub"]:hover { color: #8B5CF6; }
footer .icon-link[title="LinkedIn"]:hover { color: #0A66C2; }
footer .icon-link[title="Contact"]:hover { color: #87CEEB; }
footer .icon-link[title="Studio Location"]:hover { color: #32CD32; }
footer .map-pin { position: relative; }
footer .map-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 280px;
  height: 190px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  z-index: 20;
}
footer .map-popover iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
footer .map-pin:hover .map-popover,
footer .map-pin:focus .map-popover,
footer .map-pin:focus-within .map-popover {
  display: block;
}
footer .footer-live {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  justify-items: start;
  gap: 12px 16px;
  margin: 0 0 32px;
  padding: 0 48px;
  font-size: 11px;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}
footer .footer-live-item { display: grid; grid-template-columns: 18px 1fr; gap: 0 6px; align-items: start; }
footer .footer-live-item .live-icon { grid-row: 1 / 3; }
footer .footer-live-item .live-text { line-height: 1.3; }
footer .live-date,
footer .live-timezones,
footer .live-forecast,
footer .live-zodiac-info,
footer .live-sky { font-size: 9px; color: var(--muted); line-height: 1.3; margin-top: 1px; }
footer .live-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  footer .footer-live {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
    justify-items: start;
  }
}
@media (max-width: 700px) {
  footer .footer-live {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 16px;
    font-size: 10px;
    justify-items: start;
  }
  footer .footer-live-item[data-live="iss"] {
    grid-column: 1 / -1;
  }
  footer .footer-live-item { grid-template-columns: 16px 1fr; }
  footer .live-date,
  footer .live-timezones,
  footer .live-forecast,
  footer .live-zodiac-info,
  footer .live-sky { font-size: 8px; }
  footer .live-icon { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  footer .footer-live {
    grid-template-columns: 1fr;
    gap: 14px;
    font-size: 10px;
    justify-items: start;
  }
}
footer .footer-rents {
  margin: 40px 0 16px;
  padding: 0 48px;
  font-size: 11px;
  color: var(--fg);
  text-align: left;
}
footer .footer-rents-label {
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  font-size: 14px;
}
footer .footer-rents-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 6px;
}
footer .rent-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-width: 70px;
  line-height: 1.1;
}
footer .rent-city {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
footer .rent-price {
  font-family: var(--sans);
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 700px) {
  footer .footer-rents { margin: 24px auto 12px; text-align: center; }
  footer .footer-rents-label { font-size: 12px; margin-bottom: 8px; text-align: center; }
  footer .footer-rents-grid { 
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 8px;
    justify-content: center;
  }
  footer .rent-item { min-width: auto; }
  footer .rent-city { font-size: 8px; }
  footer .rent-price { font-size: 8px; }
}
@media (max-width: 480px) {
  footer .footer-rents-grid { gap: 10px 12px; }
  footer .rent-item { min-width: 55px; }
}
footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
  padding: 24px 48px 0;
}
footer .footer-top a {
  color: var(--muted);
  transition: color 0.2s ease;
  text-decoration: none;
}
footer .footer-top a:hover {
  color: #fff;
  text-decoration: underline;
}
footer .footer-real {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
footer .footer-real svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
footer .footer-real:hover svg {
  color: #fff;
}
footer .footer-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
footer .footer-figma,
footer .footer-commits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer .footer-commits:hover {
  color: #fff;
}
footer .footer-commits:hover .stat-icon {
  color: #8B5CF6;
}
footer .stat-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--muted);
  opacity: 1;
}
@media (max-width: 700px) {
  footer .footer-top { 
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 10px;
    padding: 24px 24px 0;
  }
  footer .footer-top > * { flex: 0 0 auto; }
  footer .footer-stats { 
    align-items: center; 
    gap: 6px;
    flex-direction: column;
  }
  footer .footer-stats .footer-real { order: 1; }
  footer .footer-stats .footer-commits { order: 2; }
  footer .footer-stats .footer-copyright { order: 3; }
}
footer .wordmark-crop {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  height: clamp(16px, 2.5vw, 32px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
@media (max-width: 700px) {
  footer .footer-bottom { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 32px 24px 0;
  }
  footer .footer-icons-left, footer .footer-icons-right { 
    display: flex;
    gap: 24px;
    padding: 0;
    margin: 0 !important;
    order: 1;
  }
  footer .wordmark-crop { 
    position: relative;
    left: auto;
    transform: none;
    width: 100vw;
    margin-left: -24px;
    margin-right: -24px;
    order: 2;
    display: flex;
    justify-content: center;
    margin-top: 32px;
    overflow: hidden;
  }
  footer .wordmark-img {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 480px) {
  footer .footer-bottom { gap: 24px; }
  footer .footer-icons-left, footer .footer-icons-right { gap: 20px; }
  footer .icon-link svg { width: 22px; height: 22px; }
  footer .wordmark-img { width: 100%; }
}
footer .wordmark-img {
  width: clamp(198px, 43.4vw, 620px);
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.asset-note {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 14px 20px;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ===================== RESPONSIVE STYLES ===================== */

/* Tablet */
@media (max-width: 1024px) {
  .grid-hero-wrapper { margin-top: 70px; margin-bottom: 40px; }
  .grid-headline { font-size: clamp(150px, 36vw, 420px); }
  .story-headline { font-size: 28px; }
  .story-body { margin-bottom: 60px; }
  .cta-block h3 { font-size: 22px; }
  .cta-block, .cta-content { min-height: 280px; }
}

/* Small tablet / Large mobile */
@media (max-width: 800px) {
  .grid-hero-wrapper { margin-top: 60px; margin-bottom: 32px; }
  .grid-headline { 
    font-size: clamp(120px, 32vw, 320px); 
    left: 16px;
  }
  .filter-section { padding: 0 16px; }
  .filter-bubbles { flex-wrap: wrap; gap: 6px; }
  .filter-bubble { font-size: 10px; padding: 6px 12px; }
  .story-intro-text { margin: 60px auto 0; }
  .story-headline { font-size: 24px; margin-bottom: 16px; }
  .story-body { font-size: 15px; margin-bottom: 48px; }
  .logo-strip { padding: 12px 16px; gap: 16px; margin: 24px auto 12px; }
  .logo-strip img { width: clamp(60px, 12vw, 90px); height: clamp(24px, 4vw, 36px); }
  .logo-strip img[src*="jll-logo"],
  .logo-strip img[src*="cbre-logo"],
  .logo-strip img[src*="ruca.png"] { width: clamp(40px, 8vw, 55px); height: clamp(16px, 3vw, 22px); }
  .logo-strip img[src*="uleague"],
  .logo-strip img[src*="gvets"],
  .logo-strip img[src*="le.png"],
  .logo-strip img[src*="cbx.png"] { width: clamp(70px, 14vw, 100px); height: clamp(28px, 5vw, 40px); }
  .cta-block h3 { font-size: 20px; }
  .cta-block p { font-size: 14px; }
  .cta-block, .cta-content { min-height: 240px; }
  .work-modal-inner { padding: 40px 20px; }
  .work-modal-close { top: 16px; right: 16px; font-size: 64px; }
  .case-study .info { padding: 32px 24px 48px; }
  .case-study h2 { font-size: 48px; }
  .case-study .tags { gap: 4px; margin-bottom: 10px; }
  .case-study .tags .tag-pill { font-size: 10px; padding: 4px 10px; }
}

/* Mobile */
@media (max-width: 600px) {
  header .header-nav { display: none; }
  .work-grid { grid-template-columns: 1fr; gap: 12px; margin: 0 16px 40px; }
  .work-tile { aspect-ratio: 4/3; }
  .work-tile-name { font-size: 22px; }
  .work-tile-tags { top: 12px; left: 12px; gap: 4px; }
  .tag-chip { font-size: 8px; padding: 3px 6px; }
  .grid-hero-wrapper { margin-top: 50px; margin-bottom: 24px; }
  .grid-headline { 
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: clamp(110px, 38vw, 240px);
    padding: 0;
    margin-bottom: 0;
    color: #fff;
  }
  .grid-hero-wrapper { display: block; position: relative; margin-top: 60px; margin-bottom: 24px; }
  .thumb-grid { margin-top: 0; }
  .filter-section { margin-bottom: 16px; }
  .story-intro-text { margin: 40px auto 0; padding: 0 16px; }
  .story-headline { font-size: 22px; }
  .story-body { font-size: 14px; margin-bottom: 40px; }
  .logo-strip { gap: 16px; padding: 12px 24px; }
  .logo-strip-row { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
    align-items: center;
  }
  .logo-strip img { width: 65px; height: 26px; }
  .cta-block h3 { font-size: 18px; }
  .cta-block p { font-size: 13px; }
  .cta-button { padding: 12px 20px; font-size: 12px; }
  .cta-block, .cta-content { min-height: 200px; }
  .work-modal-inner { padding: 60px 16px 32px; }
  .work-modal-close { top: 12px; right: 12px; font-size: 56px; width: 60px; height: 60px; }
  .case-study .media { gap: 8px; }
  .case-study .info { padding: 24px 16px 32px; }
  .case-study h2 { font-size: 42px; }
  .case-study p { font-size: 14px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .grid-headline { font-size: clamp(90px, 34vw, 180px); }
  header .header-nav .nav-home svg { height: 16px; }
  .message-us-toggle { padding: 8px 12px; font-size: 11px; }
  .message-us-panel { padding: 20px 16px; }
  .message-us-form .form-label-iam { font-size: 20px; }
  .switch-field { margin-bottom: 16px; }
  .switch-labels { gap: 4px; }
  .switch-label { font-size: 9px; padding: 5px 6px; }
  .scale-labels { font-size: 8px; }
  .scale-labels span { min-width: auto; }
  .story-headline { font-size: 20px; }
  .story-body { font-size: 13px; line-height: 1.5; }
  .logo-strip { gap: 12px; padding: 12px 16px; }
  .logo-strip-row { 
    gap: 12px 16px;
  }
  .logo-strip img { width: 55px; height: 22px; }
  .cta-block h3 { font-size: 16px; }
  .cta-block p { font-size: 12px; }
  .case-study h2 { font-size: 36px; }
  .case-study .tags .tag-pill { font-size: 9px; padding: 3px 8px; }
  .testimonials { padding: 40px 16px; gap: 40px; }
  .testimonial p { font-size: 14px; }
  .testimonial .logos { gap: 16px; }
  .testimonial .client-logo { width: 70px; }
  .work-tile-caption { padding: 12px; }
}
