/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body copy is Suisse Intl, served from assets/fonts so every visitor sees it (2026-12-06, before launch). */
@font-face { font-family: 'Suisse Intl'; src: url('assets/fonts/SuisseIntl-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('assets/fonts/SuisseIntl-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* The Adurant 3.0 type: Castoro (the logo's face) for headings, Suisse Intl (above) for body copy. */
@font-face { font-family: 'Castoro'; src: url('assets/fonts/castoro-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Castoro'; src: url('assets/fonts/castoro-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #f8f8f7;
  --black: #0B0B0B;
  --gray-dark: #383838;
  --gray-mid: #7e7e7e;
  --gray-light: #e7e7e7;
  --white: #ffffff;
  --font: 'Suisse Intl', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Castoro', Georgia, 'Times New Roman', serif;
}

html {
  font-family: var(--font);
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
}

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

.cursor-label {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: var(--black);
  color: white;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.36px;
  padding: 8px 16px;
  border-radius: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.cursor-label.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Navbar */
.navbar {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--bg);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1760px;
  padding: 16px 60px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-icon {
  width: 19px;
  height: 23px;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: rotateY(0deg);
}

.navbar-logo:hover .logo-icon {
  transform: rotateY(360deg);
}

.cs-navbar .logo-icon {
  transition: none;
}

.cs-navbar .navbar-logo:hover .logo-icon {
  transform: none;
}

.cs-navbar .logo-text {
  max-width: none;
  overflow: visible;
  opacity: 1;
  transition: none;
}

.navbar-logo {
  cursor: pointer;
}

.logo-text {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.66px;
  color: #0B0B0B;
  display: inline-block;
  white-space: nowrap;
  margin-left: 9px;
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar-logo:hover .logo-text {
  max-width: 120px;
}

.btn-schedule {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: #0B0B0B;
  color: white;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.56px;
  cursor: pointer;
  border: none;
  border-radius: 0;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.3s ease;
}

.btn-schedule .btn-text {
  display: inline-block;
  white-space: nowrap;
}

#nav-schedule {
  margin-left: auto;
  direction: rtl;
}

#nav-schedule .btn-text {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.btn-schedule:hover {
  opacity: 0.85;
}

.cta-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #0B0B0B;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-telegram img {
  width: 20px;
  height: auto;
}

.btn-telegram:hover {
  opacity: 0.85;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 200px 0 0;
  background: var(--bg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 653px;
  max-width: calc(100% - 120px);
}

.hero-heading {
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -2.08px;
  line-height: 1.12;
  color: var(--black);
}

.hero-line {
  display: block;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-in {
  opacity: 0;
  animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade {
  opacity: 0;
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-instant {
  opacity: 0;
  animation: instantReveal 0.01s step-end forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes instantReveal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.dot-blink {
  opacity: 0;
  animation: dotFlicker 0.5s step-end forwards;
}

@keyframes dotFlicker {
  0% { opacity: 0; }
  10% { opacity: 1; }
  20% { opacity: 0; }
  35% { opacity: 1; }
  45% { opacity: 0; }
  60% { opacity: 1; }
  70% { opacity: 0; }
  85% { opacity: 1; }
  100% { opacity: 1; }
}

.scroll-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-availability {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.36px;
  color: var(--black);
}

.dot {
  width: 8px;
  height: 8px;
}

.hero-media {
  width: 100%;
  height: 100vh;
  background: var(--white);
  margin-top: 220px;
  overflow: hidden;
}

/* Selected Clients */
.clients {
  padding: 120px 60px;
  background: var(--bg);
  max-width: 1760px;
  margin: 0 auto;
}

.clients + .work {
  padding-top: 24px;
}

.clients-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 80px 0;
}

.clients-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 104px;
}

.client-logo-wrap {
  display: inline-block;
}

.client-logo-wrap .client-logo {
  opacity: 0;
  transform: scale(0.95);
}

.client-logo-wrap .client-logo.revealed {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.08s ease, transform 0.08s ease;
}

.client-logo {
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  height: auto;
}

/* About */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 260px 60px;
  background: var(--bg);
  max-width: 1760px;
  margin: 0 auto;
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 729px;
}

.about-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 0;
}

.about-text {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.68px;
  color: var(--black);
  line-height: 1.48;
  text-align: left;
}

.about-text p {
  margin: 0;
}

/* Work Grid */
.work {
  padding: 69px 60px;
  background: var(--bg);
  max-width: 1760px;
  margin: 0 auto;
}

#work-grid-2 {
  padding-bottom: 160px;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  height: 650px;
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

.work-card-narrow {
  min-width: 0;
}

.work-card-wide {
  grid-column: span 2;
  min-width: 0;
}

.work-card-equal {
  min-width: 0;
}

.work-card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  background: transparent;
  overflow: visible;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.work-card-icon {
  width: 40px;
  min-width: 40px;
  height: 40px;
  background: var(--gray-light);
  border-radius: 0;
  flex-shrink: 0;
  object-fit: cover;
}

.work-card-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.work-card-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.36px;
  color: var(--black);
  line-height: normal;
  height: 24px;
  display: flex;
  align-items: center;
}

.work-card-desc {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.14px;
  color: var(--gray-mid);
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
}

.work-card-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.work-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  background: #F2F2F2;
  padding: 4px 10px;
  border-radius: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.08s ease, transform 0.08s ease;
}

.work-card:hover .work-card-tag {
  opacity: 1;
  transform: translateY(0);
}

.work-card:hover .work-card-tag:nth-child(1) {
  transition-delay: 0.08s;
}

.work-card:hover .work-card-tag:nth-child(2) {
  transition-delay: 0.04s;
}

.work-card:hover .work-card-tag:nth-child(3) {
  transition-delay: 0s;
}

.work-card-image {
  flex: 1;
  background: var(--gray-light);
  min-height: 0;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
}

.work-card-image:has(.work-card-logo-over) {
  position: relative;
}

.work-card-logo-over {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(120px, 13vw, 220px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.work-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

.hero-video,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

/* Testimonials */
.testimonials {
  background: #0B0B0B;
  padding: 400px 0;
  display: flex;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}

.testimonials-inner {
  width: 100%;
  max-width: 1760px;
  padding: 0 60px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.testimonials-title {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -2.08px;
  color: white;
  margin-bottom: 0;
  line-height: normal;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.testimonials-grid {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: flex-end;
  align-items: flex-start;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  width: 280px;
  flex-shrink: 0;
}


.testimonial-image-wrap {
  background: transparent;
  border-radius: 0;
  aspect-ratio: 3/4;
  padding: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
}

.testimonial-avatar {
  display: none;
}

.testimonial-person {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}

.testimonial-quote {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.8px;
  color: white;
  line-height: 1.4;
}

.testimonial-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial-author {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #D2CBCB;
  letter-spacing: -0.36px;
}

.testimonial-logo-wrap {
  height: 28px;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.testimonial-company-logo {
  height: 24px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.testimonial-role-tag {
  font-size: 12px;
  font-weight: 500;
  color: #CCCCCC;
  background: #161616;
  padding: 4px 10px;
  border-radius: 0;
  display: inline-block;
  margin-top: -4px;
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 280px 60px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #F8F8F7;
  z-index: 0;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta-card {
  background: #0B0B0B;
  padding: 48px;
  width: 800px;
  max-width: 100%;
  border-radius: 0;
}

.cta-heading {
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -2.08px;
  line-height: normal;
  color: white;
  margin-bottom: 48px;
}

.cta-heading span {
  display: block;
}

.mobile-br {
  display: none;
}

.cta-dot-blink {
  opacity: 0;
}

.cta-dot-blink.active {
  animation: dotFlicker 0.5s step-end forwards;
}

.cta-availability-text {
  opacity: 0;
}

.cta-availability-text.active {
  opacity: 1;
}

.cta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.cta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cta-availability {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.36px;
  color: white;
}

.cta-availability .dot {
  filter: brightness(0) invert(1);
}

.cta .btn-schedule {
  background: white;
  color: #0B0B0B;
}

.cs-page .footer {
  background: #0B0B0B;
  border-top: 1px solid #222;
}

.cs-page .footer-inner {
  color: white;
}

.cs-page .footer a {
  color: white;
}

/* Footer */
.footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--white);
  display: flex;
  justify-content: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1760px;
  padding: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.48px;
  color: var(--black);
  white-space: nowrap;
}

/* Case Study */
.cs-navbar {
  background: #F8F8F7;
}

.cs-navbar .cs-navbar-inner {
  max-width: 1200px;
  padding: 16px 0;
  margin: 0 auto;
}

.cs-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  object-fit: cover;
  background: var(--gray-light);
}

.cs-nav-text {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.48px;
}

.cs-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #F2F2F2;
  border: none;
  border-radius: 0;
  font-size: 24px;
  color: var(--black);
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s;
}

.cs-close:hover {
  opacity: 0.7;
}

.cs-hero {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 80px;
  height: 700px;
  position: relative;
  overflow: hidden;
}

.cs-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.cs-hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: auto;
  object-fit: contain;
}

.cs-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -2.5px;
  color: var(--white);
  white-space: nowrap;
}

.cs-info {
  display: flex;
  gap: 60px;
  padding: 120px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.cs-info-left {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cs-meta-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.36px;
  color: var(--gray-mid);
}

.cs-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cs-meta-tag {
  opacity: 1 !important;
  transform: none !important;
}

.cs-info-right {
  flex: 1;
}

.cs-description {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -0.68px;
  color: var(--black);
}

.cs-slides *,
.cs-slides img,
.cs-slides div {
  border-radius: 0 !important;
}

.cs-slides {
  padding: 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cs-slide-full {
  width: 100%;
}

.cs-slide-full .cs-slide-img {
  width: 100%;
  height: 800px;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

.cs-slide-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cs-slide-half .cs-slide-img {
  width: 100%;
  height: 800px;
  display: block;
  border-radius: 0;
  object-fit: cover;
}

/* Wrapper for slides that ship separate desktop + mobile artwork */
.cs-slide-picture {
  display: block;
  width: 100%;
}

.cs-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.cs-separator-line {
  flex: 1;
  height: 1px;
  background: var(--gray-light);
}

.cs-separator-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  color: var(--black);
  white-space: nowrap;
}

.cs-upnext {
  background: #0B0B0B;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 80px 0;
  box-sizing: border-box;
}

.cs-upnext-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cs-upnext-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.cs-upnext-card:hover {
  opacity: 0.85;
}

.cs-upnext-image {
  width: 100%;
  height: 650px;
  background: var(--gray-light);
  overflow: hidden;
}

.cs-upnext-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-upnext-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.cs-upnext-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.36px;
  color: white;
  margin: 0;
}

.cs-upnext-tags {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.cs-upnext-tags .work-card-tag {
  background: #161616;
  color: #CCCCCC;
}

.cs-upnext-card:hover .work-card-tag {
  opacity: 1;
  transform: translateY(0);
}

.cs-upnext-card:hover .work-card-tag:nth-child(1) {
  transition-delay: 0.08s;
}

.cs-upnext-card:hover .work-card-tag:nth-child(2) {
  transition-delay: 0.04s;
}

.cs-upnext-card:hover .work-card-tag:nth-child(3) {
  transition-delay: 0s;
}

/* Responsive — Small desktop / MacBook Air */
@media (max-width: 1440px) {
  .testimonials {
    padding: 200px 0;
  }

  .testimonials-inner {
    padding: 0 40px;
    gap: 40px;
  }

  .testimonials-title {
    font-size: 42px;
  }

  .testimonial-card {
    width: 0;
    flex: 1;
    flex-shrink: 1;
    min-width: 0;
  }

  .testimonial-image-wrap {
    aspect-ratio: 3/4;
    max-height: 280px;
  }

  .testimonial-quote {
    font-size: 16px;
  }

  .testimonial-author {
    font-size: 16px;
  }

  /* Work grid: 50/50 on small desktop */
  .work-row {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .work-card-wide {
    grid-column: span 1;
  }

  .work-card {
    height: 500px;
  }
}

/* Responsive — Tablet */
@media (max-width: 1200px) {
  .hero {
    padding: 120px 80px 0;
  }

  .cta {
    padding: 100px 60px;
  }

  .cta-heading {
    font-size: 36px;
    letter-spacing: -1.44px;
  }

  .cta-heading span {
    display: inline;
  }

  .mobile-br {
    display: none;
  }

  .testimonials {
    padding: 100px 0;
  }

  .testimonials-inner {
    flex-direction: column;
    gap: 40px;
    padding: 0 40px;
  }

  .testimonials-title {
    position: static;
    font-size: 40px;
  }

  .testimonials-grid {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .testimonial-card {
    width: calc(50% - 12px);
  }

  .testimonial-image-wrap {
    aspect-ratio: 1/1;
    max-height: 200px;
    width: auto;
    align-self: flex-start;
  }

  /* Clients: shrink and space on tablet */
  .clients-row {
    gap: 40px;
    justify-content: center;
  }

  .client-logo {
    transform: scale(0.75);
  }

  /* Work grid: all 50/50 on tablet */
  .work-row {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }

  .work-card-wide {
    grid-column: span 1;
  }

  .work-card {
    height: 450px;
  }

  /* Case study */
  .cs-hero {
    height: 500px;
    margin-left: 40px;
    margin-right: 40px;
  }

  .cs-info {
    padding: 80px 40px;
  }

  .cs-slides {
    padding: 0 40px;
  }

  .cs-description {
    font-size: 26px;
  }

  .cs-separator {
    padding: 60px 40px;
  }

  .cs-upnext-inner {
    padding: 0 40px;
  }

  .cs-upnext-image {
    height: 450px;
  }

  .cs-slide-full .cs-slide-img,
  .cs-slide-half .cs-slide-img {
    height: 500px;
  }
}

/* Responsive — Mobile */
@media (max-width: 700px) {
  /* Navbar */
  .navbar-inner {
    padding: 16px 20px;
  }

  .btn-schedule {
    font-size: 12px;
    height: 36px;
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    padding: 24px 20px 0;
    align-items: flex-start;
  }

  .hero-media {
    width: 100vw;
    margin-left: -20px;
    margin-right: -20px;
    height: auto !important;
    aspect-ratio: 1/1;
    margin-top: 120px;
  }

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

  .hero-heading {
    font-size: 28px;
    letter-spacing: -1.1px;
  }

  .cta-heading {
    font-size: 17px;
    letter-spacing: -0.68px;
  }

  .mobile-br {
    display: block;
  }

  /* About */
  .about {
    padding: 80px 20px;
  }

  .about-text {
    width: 100%;
    font-size: 15px;
  }

  /* Clients */
  .clients {
    padding: 40px 20px 40px;
  }

  .clients-grid {
    padding: 40px 0;
    gap: 0;
  }

  .clients-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px 24px;
    justify-items: center;
    align-items: center;
  }


  .client-logo {
    max-width: 90px !important;
  }

  /* Reorder logos on mobile: Multicoin, Maple, Galaxy, Framework, Plasma → 3+2 rows */
  .clients-row .client-logo-wrap:nth-child(1) { order: 4; } /* Maple → row 2 */
  .clients-row .client-logo-wrap:nth-child(2) { order: 5; } /* Multicoin → row 2 */
  .clients-row .client-logo-wrap:nth-child(3) { order: 1; } /* Galaxy → row 1 */
  .clients-row .client-logo-wrap:nth-child(4) { order: 2; } /* Framework → row 1 */
  .clients-row .client-logo-wrap:nth-child(5) { order: 3; } /* Plasma → row 1 */

  /* Center the bottom 2 logos using a 6-col subgrid trick */
  .clients-row {
    grid-template-columns: repeat(6, 1fr);
  }
  .clients-row .client-logo-wrap:nth-child(3) { grid-column: 1 / 3; } /* Galaxy */
  .clients-row .client-logo-wrap:nth-child(4) { grid-column: 3 / 5; } /* Framework */
  .clients-row .client-logo-wrap:nth-child(5) { grid-column: 5 / 7; } /* Plasma */
  .clients-row .client-logo-wrap:nth-child(1) { grid-column: 2 / 4; } /* Maple */
  .clients-row .client-logo-wrap:nth-child(2) { grid-column: 4 / 6; } /* Multicoin */

  .clients-row .client-logo-wrap:nth-child(1) .client-logo {
    max-width: 80px !important;
  }
  .clients-row .client-logo-wrap:nth-child(2) .client-logo {
    max-width: 100px !important;
  }
  .clients-row .client-logo-wrap:nth-child(3) .client-logo {
    max-width: 80px !important;
  }

  /* Work grid: stack on mobile */
  .work {
    padding: 32px 20px;
  }

  #work-grid-2 {
    padding-bottom: 80px;
  }

  .work-row {
    grid-template-columns: 1fr;
    height: auto;
    gap: 40px;
  }

  .work-card-wide {
    grid-column: span 1;
  }

  .work-card {
    height: auto;
  }

  .work-card-image {
    aspect-ratio: 1/1;
  }

  .work-card-tag {
    opacity: 1;
    transform: translateY(0);
  }

  /* Testimonials — swipeable carousel on mobile */
  .testimonials {
    padding: 80px 0;
    overflow: hidden;
  }

  .testimonials-inner {
    flex-direction: column;
    gap: 40px;
    padding: 0 24px;
    overflow: visible;
  }

  .testimonials-title {
    position: static;
    font-size: 32px;
  }

  .testimonials-grid {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 -24px;
    padding: 0 24px;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    width: 65vw;
    flex: 0 0 65vw;
    scroll-snap-align: center;
  }

  .testimonial-image-wrap {
    aspect-ratio: 4/4.5;
    max-height: none;
    width: 100%;
  }

  /* CTA */
  .cta {
    padding: 60px 20px;
  }

  .cta-card {
    width: 100%;
    padding: 24px 20px;
  }

  .cta-heading {
    margin-bottom: 24px;
  }

  .cta-heading {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .cta-bottom {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .cta .btn-schedule {
    height: 36px;
    padding: 0 16px;
    font-size: 12px;
  }

  /* Footer */
  .footer-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    font-size: 11px;
  }

  /* Case Study — Mobile */
  .cs-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .cs-navbar .cs-navbar-inner {
    padding: 16px 20px;
  }

  .cs-nav-icon {
    width: 36px;
    height: 36px;
  }

  .cs-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .cs-hero {
    height: auto;
    aspect-ratio: 4/5;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    max-width: 100%;
  }

  .cs-hero-bg {
    object-position: center center;
  }

  .cs-info {
    flex-direction: column-reverse;
    padding: 40px 20px;
    gap: 32px;
  }

  .cs-info-left {
    width: 100%;
  }

  .cs-description {
    font-size: 22px;
  }

  .cs-slides {
    padding: 0 20px 40px;
    gap: 20px;
  }

  .cs-slide-full .cs-slide-img,
  .cs-slide-half .cs-slide-img {
    height: auto !important;
    aspect-ratio: 1/1;
  }

  .cs-slide-full div,
  .cs-slide-half div {
    height: auto !important;
    aspect-ratio: 1/1;
  }

  /* Slides with purpose-made mobile artwork keep its 3:4 frame, uncropped */
  .cs-slides .cs-slide-img.has-mobile {
    aspect-ratio: 3 / 4;
  }

  .cs-slide-half {
    grid-template-columns: 1fr;
  }

  /* Prevent horizontal scroll — use clip not hidden to preserve sticky */
  html, body, .cs-page {
    overflow-x: clip;
  }

  .footer,
  .cs-upnext,
  .testimonials,
  .cta,
  .navbar {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .cs-separator {
    padding: 40px 20px;
  }

  .cs-upnext-inner {
    padding: 0 20px;
  }

  .cs-upnext-image {
    height: 300px;
  }

  .cs-upnext-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cs-upnext-tags {
    margin-left: 0;
  }

  .cs-upnext-card:hover .work-card-tag,
  .cs-upnext-tags .work-card-tag {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Email Copied Toast */
.email-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 1000px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.52px;
  color: var(--black);
  white-space: nowrap;
  box-shadow: 0px 22px 24px rgba(0,0,0,0.12), 0px 87px 43.5px rgba(0,0,0,0.1), 0px 195px 58.5px rgba(0,0,0,0.06);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.email-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Adurant 3.0 type: headings in Castoro ---------- */
.hero-heading, .testimonials-title, .cta-heading, .cs-hero-title, .cs-description {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.hero-heading, .testimonials-title, .cta-heading, .cs-hero-title { line-height: 1.2; }

/* ---------- Work: staggered layout (Figma 86:1742–1744, frame 1354 wide) ----------
   Cards keep their look; only their places change. 1u = 1 Figma px at 1354. In a cycle of three: a large card on
   the left, a small one on the right starting where the large picture ends, a medium one on the left beside it. */
.work:has(.work-stagger) { max-width: 1354px; padding-left: 0; padding-right: 0; }
.work-stagger { container-type: inline-size; }
.work-stagger .work-card { --u: calc(100cqw / 1354); --cap: 56px; height: auto; width: calc(542 * var(--u)); margin-left: calc(207 * var(--u)); }
.work-stagger .work-card-image { flex: none; aspect-ratio: 542 / 658; }
.work-stagger .work-card:nth-child(3n+2) .work-card-image { aspect-ratio: 338 / 414; }
.work-stagger .work-card:nth-child(3n+3) .work-card-image { aspect-ratio: 425 / 521; }
.work-stagger .work-card:nth-child(3n+2) { width: calc(338 * var(--u)); margin-left: calc(822 * var(--u)); margin-top: calc(-1 * var(--cap)); }
.work-stagger .work-card:nth-child(3n+3) { width: calc(425 * var(--u)); margin-left: calc(317 * var(--u)); margin-top: calc(-151 * var(--u) - var(--cap)); }
.work-stagger .work-card:nth-child(3n+4) { margin-top: calc(120 * var(--u)); }
@media (max-width: 700px) {
  .work:has(.work-stagger) { padding-left: 20px; padding-right: 20px; }
  .work-stagger { display: flex; flex-direction: column; gap: 40px; }
  .work-stagger .work-card, .work-stagger .work-card:nth-child(n) { width: 100%; margin: 0; }
  .work-stagger .work-card-image { aspect-ratio: 1 / 1; }
}

/* ---------- Logo: the name in Castoro, the logo's own face ---------- */
.logo-text { font-family: var(--serif); letter-spacing: 0.01em; }

/* ---------- Placeholders (2026-12-01, "for now") ----------
   Every picture and clip is painted flat grey while <html> carries the class "placeholders". Remove the class from
   index.html and case-study.html to bring them back; nothing else was changed. */
html.placeholders .work-card-media:not(.work-card-cover),
html.placeholders .cs-hero-bg, html.placeholders .cs-slide-img, html.placeholders .cs-upnext-media,
html.placeholders .testimonial-person, html.placeholders .testimonial-avatar { filter: brightness(0) invert(0.906) !important; }
html.placeholders .work-card-logo-over { display: none; }

/* ---------- Hero: 1.25× (46 → 57.5 px), three set lines that never wrap on desktop ---------- */
@media (min-width: 701px) {
  .hero-content { width: max-content; }
  .hero-heading { font-size: min(57.5px, 5.6vw); }
  .hero-line { white-space: nowrap; }
}

/* ---------- About: body copy, as the text block in the Adurant 3.0 layout (Söhne 16 / 1.76, 405 wide) ---------- */
.about-text { width: 456px; max-width: 100%; font-family: var(--font); font-size: 18px; font-weight: 400; line-height: 1.76; letter-spacing: 0.02em; }
.about-text p + p { margin-top: 1.76em; }
@media (max-width: 700px) { .about-text { width: 100%; font-size: 15px; } }

/* ---------- Services (Figma 86:1472: four cards, 267 × 325, 25 apart, in the 1354 frame) ---------- */
#work-grid-2 { padding-bottom: 0; }
.services { max-width: 1354px; margin: 0 auto; padding: 240px 105px 200px; background: var(--bg); }
.services-title { font-family: var(--serif); font-size: 46px; font-weight: 400; line-height: 1.3; letter-spacing: 0.01em; text-align: center; color: var(--black); }
.services-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 81px; }
.service-card { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 267 / 325; padding: 25px 21px 20px; background: var(--white); }
.service-icon { width: 36px; height: 36px; background: var(--gray-light); }
.service-name { font-size: 18px; font-weight: 500; letter-spacing: -0.36px; line-height: 24px; color: var(--black); }
.service-desc { margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: 0.01em; color: var(--gray-mid); }
@media (max-width: 1100px) { .services { padding: 160px 60px 140px; } .services-grid { grid-template-columns: repeat(2, 1fr); } .service-card { aspect-ratio: auto; min-height: 260px; } }
@media (max-width: 700px) { .services { padding: 100px 20px 80px; } .services-title { font-size: 32px; } .services-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; } .service-card { min-height: 200px; } }

/* ---------- Header: lower on desktop (74 → 52, then up 15% to 60 px) ---------- */
@media (min-width: 701px) {
  .navbar-inner { padding-top: 12px; padding-bottom: 12px; }
  .btn-schedule { padding: 9px 15px; font-size: 14px; }
}

/* ---------- Work cards: one "View Case Study" pill on hover, in place of the discipline pills ---------- */
/* (2026-12-01, later) it keeps the pill's grey ground after all */

/* ---------- Second work section: the same stagger, mirrored (right, left, right) ---------- */
@media (min-width: 701px) {
  #work-grid-2 .work-stagger .work-card { margin-left: calc(605 * var(--u)); }
  #work-grid-2 .work-stagger .work-card:nth-child(3n+2) { margin-left: calc(194 * var(--u)); }
  #work-grid-2 .work-stagger .work-card:nth-child(3n+3) { margin-left: calc(612 * var(--u)); }
}

/* ---------- Services: larger cards, names in Castoro, a stroke globe for now ---------- */
.services { max-width: 1560px; padding-left: 60px; padding-right: 60px; }
.service-card { aspect-ratio: 267 / 340; padding: 30px 28px 28px; }
.service-icon { width: 44px; height: 44px; background: none; fill: none; stroke: var(--black); stroke-width: 1; }
.service-name { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: 0.01em; line-height: 1.3; }
.service-desc { font-size: 16px; }
@media (max-width: 1100px) { .service-card { aspect-ratio: auto; } }
@media (max-width: 700px) { .services { padding-left: 20px; padding-right: 20px; } }

/* ---------- Closer and footer in one: heading, then contact on the left and offices on the right ---------- */
.services { padding-bottom: 240px; }
.closer { background: var(--white); }
.closer-inner { --u: min(1px, 100vw / 1354); max-width: 1354px; margin: 0 auto; padding: 200px calc(105 * var(--u)) 40px calc(317 * var(--u)); }
.closer-heading { font-family: var(--serif); font-size: min(46px, 4.4vw); font-weight: 400; line-height: 1.2; letter-spacing: 0.01em; color: var(--black); }
.closer-heading span { display: block; }
.closer-grid { display: grid; grid-template-columns: 1fr auto; column-gap: 60px; margin-top: 140px; }
.closer-label { all: unset; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 16px; color: var(--gray-mid); transition: color 0.2s ease; }
.closer-label:hover { color: var(--black); }
.closer-label:focus-visible { outline: 1px solid var(--black); outline-offset: 4px; }
.closer-badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gray-light); flex: none; font-size: 8px; font-weight: 500; letter-spacing: 0; color: var(--white); }
.closer-badge svg { width: 14px; height: 14px; fill: none; stroke: var(--gray-mid); stroke-width: 1; }
.closer-badge-light { background: #b9b9b9; }
.closer-badge-dark { background: var(--gray-mid); }
.closer-email { display: inline-block; margin-top: 8px; font-size: 30px; letter-spacing: -0.3px; line-height: 1.3; color: var(--black); }
.closer-links { display: flex; flex-direction: column; gap: 6px; margin-top: 48px; font-size: 18px; }
.closer-links a { color: var(--gray-mid); transition: color 0.2s ease; width: fit-content; }
.closer-links a:hover, .closer-email:hover { color: var(--black); text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 4px; }
.closer-offices { display: flex; flex-direction: column; gap: 48px; min-width: 220px; }
.closer-office { display: flex; align-items: flex-start; gap: 8px; font-size: 18px; line-height: 1.55; color: var(--black); }
.closer-office b { font-weight: 500; }
.closer-office .closer-badge { margin-top: 0; }
.closer-legal { margin-top: 200px; font-size: 13px; color: var(--gray-mid); }
@media (max-width: 700px) {
  .services { padding-bottom: 100px; }
  .closer-inner { padding: 100px 20px 32px; }
  .closer-heading { font-size: 28px; }
  .closer-grid { grid-template-columns: 1fr; row-gap: 56px; margin-top: 72px; }
  .closer-email { font-size: 24px; }
  .closer-legal { margin-top: 96px; }
}

/* Services: cards closer together (25 → 10 px) */
@media (min-width: 701px) { .services-grid { gap: 10px; } }

/* ---------- Closer, second pass: a "Work with us" button, then Twitter, Telegram and the year in one column ---------- */
.closer-grid { grid-template-columns: 1fr auto; align-items: start; margin-top: 72px; }
.closer .closer-button { justify-self: start; padding: 14px 20px; font-size: 15px; }
.closer-links { margin-top: 0; min-width: 180px; font-size: 16px; gap: 8px; }
.closer-links span { color: var(--gray-mid); margin-top: 24px; }
.closer-inner { padding-bottom: 160px; }
@media (max-width: 700px) { .closer-inner { padding-bottom: 64px; } .closer-grid { margin-top: 48px; } }

/* ---------- Closer sits in the page container: the same edges as the service cards (1560 wide, 60 px margins) ---------- */
.closer-inner { max-width: 1560px; padding-left: 60px; padding-right: 60px; }
.closer-links { min-width: 0; text-align: left; }
@media (max-width: 700px) { .closer-inner { padding-left: 20px; padding-right: 20px; } }

/* ---------- Closer: a narrower block, centred on the page ---------- */
.closer-inner { max-width: 1120px; }

/* ---------- Services: its own full-width band, a touch brighter than the page (#f8f8f7 → #fcfcfb) ---------- */
#work-grid-2 { padding-bottom: 200px; }
.services { background: #fcfcfb; box-shadow: 0 0 0 100vmax #fcfcfb; clip-path: inset(0 -100vmax); padding-top: 160px; padding-bottom: 180px; }
@media (max-width: 700px) { #work-grid-2 { padding-bottom: 80px; } .services { padding-top: 80px; padding-bottom: 90px; } }

/* ---------- Closer: Twitter, Telegram and the year in one row on the button's line, ending at the right edge ---------- */
@media (min-width: 701px) {
  .closer-grid { align-items: end; }
  .closer-links { flex-direction: row; align-items: baseline; gap: 96px; }
  .closer-links span { margin-top: 0; }
}

/* ---------- Services: three written cards, a picture as the fourth, and a link out ---------- */
.service-card-image { padding: 0; overflow: hidden; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card > div { margin-top: 48px; }
.services-link { display: inline-flex; gap: 8px; margin-top: 40px; font-size: 16px; font-weight: 500; color: var(--black); }
.services-link span { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
.services-link:hover span { transform: translateX(4px); }
@media (max-width: 1100px) { .service-card-image { min-height: 320px; } }

/* Services: every description holds the same height, so the three titles share one line */
@media (min-width: 1101px) { .service-desc { min-height: calc(1.6em * 4); } }

/* ---------- Reveal behind the closer ----------
   The picture is pinned to the bottom of the window; the page above slides up off it. The outer box is the
   opening it shows through (clip-path keeps the pinned picture inside it). */
.reveal { --h: min(86vh, 62vw); height: var(--h); clip-path: inset(0); }
.reveal-pin { position: fixed; left: 0; right: 0; bottom: 0; height: var(--h); }
.reveal-pin img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
@media (max-width: 700px) { .reveal { --h: 70vh; } }

/* Services, inverted: a white band with the cards in the page's grey */
.services { background: var(--white); box-shadow: 0 0 0 100vmax var(--white); }
.service-card { background: var(--bg); }

/* Reveal: the page can only be pushed up to half the window */
.reveal { --h: 50vh; }
@media (max-width: 700px) { .reveal { --h: 50vh; } }

/* Buttons that change their words: the label is its own layer so it can lift, blur and settle */
.btn-schedule .btn-text { will-change: transform, opacity, filter; }
.btn-schedule { transition: background 0.3s ease, opacity 0.2s ease; }

/* ---------- Text that rises in line by line (script at the foot of index.html) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-rise] > *, [data-rise="wrap"] p { opacity: 0; }
  [data-rise="wrap"] p:has(.rise-line), [data-rise].rise-in[data-rise="wrap"] p { opacity: 1; }
  /* The resting (hidden) state has no transition of its own: with one, a line that was already on the page (the
     hero heading) would glide towards "lower and blurred" over 0.9 s and be turned back at once, so it only faded.
     The transition belongs to the arriving state. (2026-12-02) */
  [data-rise] .rise-line { opacity: 0; transform: translateY(16px); filter: blur(8px); will-change: transform, opacity, filter; }
  [data-rise].rise-in .rise-line { opacity: 1; transform: none; filter: blur(0);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease; transition-delay: var(--rise-delay, 0ms); }
  .rise-row { display: block; white-space: nowrap; }
}

/* Services: on narrower desktops a long title may take two lines; every title keeps room for two and sits on its last line */
@media (min-width: 1101px) and (max-width: 1700px) { .service-name { min-height: 2.6em; display: flex; align-items: flex-end; } }

/* Services: smaller body copy, and the text block sits in the bottom-left corner on equal padding (28 px left and below) */
.service-card { padding: 28px; }
.service-desc { font-size: 14px; line-height: 1.6; }
@media (min-width: 1101px) { .service-desc { min-height: calc(1.6em * 3); } }
.service-card { padding-bottom: 26px; }
@media (min-width: 1101px) and (max-width: 1400px) { .service-desc { min-height: calc(1.6em * 4); } }

/* Closer: the very light grey the Services band had (#fcfcfb), in place of white */
.closer { background: #fcfcfb; }

/* ---------- Service illustrations: small, hairline, each with one quiet move when its card is hovered ---------- */
.service-icon { width: 32px; height: 32px; stroke-width: 0.75; overflow: visible; }
.service-icon * { vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), rx 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.ic-brand .b { fill: var(--black); stroke: none; }
.service-card:hover .ic-brand .a { transform: translate(-4px, 4px) scale(1.4); }
.ic-strategy .a { transform: rotate(0deg); }
.service-card:hover .ic-strategy .a { transform: rotate(45deg); }
.ic-direction .a circle:last-child { fill: var(--black); stroke: none; }
.service-card:hover .ic-direction .a { transform: translateX(3.5px); }
.ic-systems .a { rx: 0; }
.service-card:hover .ic-systems .a { transform: translate(2.5px, 2.5px) rotate(90deg); rx: 4.5px; }
@media (prefers-reduced-motion: reduce) { .service-icon * { transition: none; } }

/* Header: less air above and below, a taller button (36 → 42 px) in the same 60 px bar */
@media (min-width: 701px) {
  .navbar-inner { padding-top: 9px; padding-bottom: 9px; }
  .navbar .btn-schedule { padding-top: 12px; padding-bottom: 12px; }
}

/* ---------- Services: a short intro on the left in place of the centred title ---------- */
.services-intro { max-width: 560px; }
.services-label { font-size: 14px; font-weight: 500; letter-spacing: -0.14px; color: var(--gray-mid); margin-bottom: 14px; }
.services-title { text-align: left; font-size: 32px; line-height: 1.3; }
.services-grid { margin-top: 64px; }
@media (max-width: 700px) { .services-title { font-size: 24px; } .services-grid { margin-top: 36px; } }

.services-title { text-wrap: balance; }

/* Work cards: the name and the hover pill in the regular weight */
.work-stagger .work-card-name, .work-stagger .work-card-tag { font-weight: 400; }

/* Cards that show their real media even while placeholders are on: Liquidity's clip, Saturn's renders with its logo */
html.placeholders .work-card-live .work-card-media { filter: none !important; }
html.placeholders .work-card-live .work-card-logo-over { display: block; }

/* Multicoin cover: the bird at 70% of its size, on the cover's own navy */
.work-card-image:has(img[src*="cover-multicoin"]) { background: #172a41; }
.work-card-media[src*="cover-multicoin"] { transform: scale(0.7); }

/* ---------- Work: larger cards with more air between them (same stagger, same proportions) ----------
   Still in units of the 1354 frame, but the frame may now grow to 1640 px on wide windows. */
@media (min-width: 701px) {
  .work:has(.work-stagger) { max-width: 1640px; }
  .work-stagger .work-card { width: calc(600 * var(--u)); margin-left: calc(150 * var(--u)); }
  .work-stagger .work-card:nth-child(3n+2) { width: calc(380 * var(--u)); margin-left: calc(862 * var(--u)); margin-top: calc(90 * var(--u) - var(--cap)); }
  .work-stagger .work-card:nth-child(3n+3) { width: calc(470 * var(--u)); margin-left: calc(290 * var(--u)); margin-top: calc(-70 * var(--u) - var(--cap)); }
  .work-stagger .work-card:nth-child(3n+4) { margin-top: calc(180 * var(--u)); }
  #work-grid-2 .work-stagger .work-card { margin-left: calc(604 * var(--u)); }
  #work-grid-2 .work-stagger .work-card:nth-child(3n+2) { margin-left: calc(112 * var(--u)); }
  #work-grid-2 .work-stagger .work-card:nth-child(3n+3) { margin-left: calc(594 * var(--u)); }
}

/* Services intro: smaller type (32 → 24 px); the block keeps its old height so the cards below stay where they were */
@media (min-width: 701px) { .services-title { font-size: 24px; } .services-intro { min-height: 125px; } }

/* Service illustrations: a fuller, softer line to sit with Castoro (0.75 → 1.3 px, round ends and corners) */
.service-icon { stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ic-systems .a { rx: 2.5px; }
.service-card:hover .ic-systems .a { rx: 5px; }

/* ---------- Service illustrations, redrawn (2026-12-01): four small line drawings on a 44 grid ---------- */
.service-icon { width: 44px; height: 44px; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.service-icon .d { fill: var(--black); stroke: none; }
.service-icon .g { opacity: 0.4; }
.service-icon * { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
/* Brand: a Castoro capital in outline; on hover its guides run out and the apex is marked */
.il-brand .a { font-family: var(--serif); font-size: 31px; fill: none; }
.il-brand .g { transform: scaleX(0.55); }
.il-brand .d { opacity: 0; transform: scale(0.2); }
.service-card:hover .il-brand .g { transform: scaleX(1); opacity: 0.6; }
.service-card:hover .il-brand .d { opacity: 1; transform: scale(1); }
/* Strategy: the route is dotted; on hover it draws through to the target */
.il-strategy .a { stroke-dasharray: 1.5 3.5; stroke-dashoffset: 0; }
.service-card:hover .il-strategy .a { stroke-dashoffset: -20; }
.il-strategy .d { transform: scale(1); }
.service-card:hover .il-strategy .d { transform: scale(1.8); }
/* Direction: the frame opens a little and the subject grows into it */
.service-card:hover .il-direction .tl { transform: translate(-2px, -2px); }
.service-card:hover .il-direction .tr { transform: translate(2px, -2px); }
.service-card:hover .il-direction .br { transform: translate(2px, 2px); }
.service-card:hover .il-direction .bl { transform: translate(-2px, 2px); }
.service-card:hover .il-direction .a { transform: scale(1.18); }
/* Systems: the parts answer the source one after another */
.service-card:hover .il-systems .m { transform: translateY(2.5px); }
.il-systems .m2 { transition-delay: 0.07s; } .il-systems .m3 { transition-delay: 0.14s; }

/* Services: the intro sits closer to the cards */
@media (min-width: 701px) { .services-intro { min-height: 0; } .services-grid { margin-top: 36px; } }

/* ---------- Responsive pass (2026-12-02) ---------- */
/* Work: below 901 px the cards stack in one column, all the same shape. The stagger starts at 901 px. */
@media (max-width: 900px) {
  .work:has(.work-stagger) { max-width: 600px; padding-left: 20px; padding-right: 20px; }
  .work-stagger { display: flex; flex-direction: column; gap: 48px; }
  .work-stagger .work-card:nth-child(n), #work-grid-2 .work-stagger .work-card:nth-child(n) { width: 100%; margin: 0; }
  .work-stagger .work-card:nth-child(n) .work-card-image { aspect-ratio: 4 / 5; }
}
/* Client logos: the row may wrap instead of pushing the page sideways */
@media (min-width: 701px) and (max-width: 1100px) {
  .clients-row { flex-wrap: wrap; gap: 28px 40px; }
}
/* Services: four columns share the width evenly, whatever their text needs */
.services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .services-grid { grid-template-columns: minmax(0, 1fr); } }
/* Hero video: on an upright window (tablet held upright) it keeps a landscape shape instead of the full window height */
@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  .hero-media { height: auto; aspect-ratio: 4 / 3; }
}
/* Services, 1101–1199 px: the four cards are narrow here, so they take one shared height from their text */
@media (min-width: 1101px) and (max-width: 1199px) { .service-card { aspect-ratio: auto; min-height: 334px; } }
@media (min-width: 1101px) and (max-width: 1199px) { .service-desc { min-height: calc(5 * 1.6em); } }

/* ---------- Performance pass (2026-12-02) ---------- */
/* The hero clip opens on black, so its box is black while the first frame arrives (it was white) */
.hero-media { background: #000; }
/* Pictures now carry their real width and height, so the page keeps their place before they load */
.client-logo { height: auto; }

/* ---------- Case studies: slides kept in assets/case-studies (2026-12-02) ----------
   They show whole, in the shape of their Figma frame, on every screen, and are real pictures even while
   placeholders are on. */
.cs-slides .cs-slide-img.cs-slide-local { height: auto !important; object-fit: contain; }
html.placeholders .cs-slide-img.cs-slide-local { filter: none !important; }

/* Case-study header: the project name is centred on the logo by its capital letters, not by its line box
   (Castoro's line box sits high, which left the name about 2.5 px above the logo's middle) */
.cs-navbar .navbar-logo { display: flex; align-items: center; }
.cs-navbar .logo-text { line-height: 1; position: relative; top: 2.4px; }
@supports (text-box-trim: trim-both) {
  .cs-navbar .logo-text { text-box-trim: trim-both; text-box-edge: cap alphabetic; top: 0; }
}
/* A case study with separate desktop and phone artwork: one set shows, the rows keep the normal slide spacing */
.cs-set { display: contents; }
.cs-set-mobile { display: none; }
@media (max-width: 700px) { .cs-set-desktop { display: none; } .cs-set-mobile { display: contents; } }
/* Case-study hero with real media (Saturn): shown even while placeholders are on; the logo sits in the centre */
html.placeholders .cs-media-live { filter: none !important; }
.cs-hero-logo-live { width: clamp(150px, 19vw, 280px); pointer-events: none; }

/* "Next Project" card: it shows the first picture of the page it leads to; a centred logo may sit on it */
.cs-upnext-image { position: relative; }
.cs-media-multicoin { object-fit: contain; background: #172a41; padding: 0 30%; box-sizing: border-box; }
/* Picture behind the closer: the desk photo (2026-12-02), at the camera's full width (3024 px). The strip is
   centred on the desk top: screen, lamp, books. */
.reveal-pin img { object-position: center 45%; }

/* "Soon" pill that follows the cursor over the Mural and Multicoin cards (2026-12-06) */
.soon-pill {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  translate: 0 -50%; /* centred on the cursor's height, just to its right */
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 1000px;
  padding: 5px 11px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.36px;
  line-height: 1.2;
  color: var(--black);
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  z-index: 9999;
  opacity: 0;
  scale: 0.8;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), scale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.soon-pill.visible { opacity: 1; scale: 1; }
/* Mural and Multicoin cards do not open yet */
.work-card[href*="slug=mural"], .work-card[href*="slug=multicoin"] { cursor: default; }

/* Case study: "Next Project" stays hidden until the slides are in, so it never jumps down the page (2026-12-06) */
.cs-slides:empty ~ .cs-separator { visibility: hidden; }
