/* ═══════════════════════════════════════════════════════
   BERTINI & SALAS — Design System
   ═══════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Tokens ────────────────────────────────────────── */
:root {
  /* Palette */
  --black: #0a0a0a;
  --black-soft: #111111;
  --charcoal: #1a1a1a;
  --graphite: #2a2a2a;
  --stone: #8a8578;
  --ash: #b3b0a8;
  --mist: #d4d1c9;
  --ivory: #f0ede6;
  --white: #fafaf7;
  --gold: #c8a86e;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Layout */
  --container-max: 1400px;
  --gutter: clamp(1.5rem, 5vw, 6rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.3s;
  --duration-med: 0.6s;
  --duration-slow: 1s;
  --duration-reveal: 1.2s;
}

/* ─── Base ──────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--black);
  overflow-x: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

::selection {
  background: var(--stone);
  color: var(--black);
}

/* ─── Container ─────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Section Label ─────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════ */
.reveal-text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition:
    clip-path var(--duration-reveal) var(--ease-out),
    opacity var(--duration-reveal) var(--ease-out);
}

.reveal-text.is-visible {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background-color var(--duration-fast) ease,
    padding var(--duration-fast) ease;
}

.nav.is-scrolled {
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-sm) 0;
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  text-decoration: none;
}

.nav__logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-right: -0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__logo-amp {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--stone);
}

.nav__links {
  display: flex;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ash);
  position: relative;
  transition: color var(--duration-fast) ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--white);
  transition: width var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--login {
  color: var(--gold);
  margin-left: var(--space-sm);
  padding-left: calc(var(--space-sm) + 4px);
  border-left: 1px solid var(--graphite);
}

.nav__link--login:hover {
  color: var(--white);
}


.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav__menu-line {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--white);
  transition: transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) ease;
}

.nav__menu-btn.is-active .nav__menu-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__menu-btn.is-active .nav__menu-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .nav__links {
    display: none;
  }

  .nav__menu-btn {
    display: flex;
  }
}

/* ─── Mobile Menu ───────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-med) var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.mobile-menu__link {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color var(--duration-fast) ease;
}

.mobile-menu__link:hover {
  color: var(--stone);
}

.mobile-menu__link--login {
  color: var(--gold);
  font-size: clamp(0.85rem, 3vw, 1.2rem);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--graphite);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--black);
}

/* Video background */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  filter: blur(6px);
}

.hero__video.is-visible {
  opacity: 0.15;
}

/* Hide mobile video on desktop, desktop videos on mobile */
.hero__video--mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero__video--desktop {
    display: none;
  }
  .hero__video--mobile {
    display: block;
    filter: blur(5px);
  }
}

/* Film grain overlay */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title-wrap {
  margin-bottom: var(--space-lg);
}

.hero__title {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  line-height: 1;
  white-space: nowrap;
}

.hero__title-name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.hero__title-amp {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--stone);
  margin: 0 0.2em 0 -0.05em;
}

.hero__rule {
  width: 60px;
  height: 1px;
  background-color: var(--stone);
  margin-bottom: var(--space-md);
}

.hero__tagline {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  margin-right: -0.35em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--space-xs);
}

.hero__sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.1em;
  margin-right: -0.1em;
  color: var(--stone);
}

.hero__breathe {
  display: inline-block;
  opacity: 0.3;
  animation: heroBreathe 6s ease-in-out infinite;
  animation-delay: calc(1.5s + var(--bd) * 2s);
}

.hero__breathe--dot {
  margin: 0 0.3em;
  animation: none;
  opacity: 0.3;
}

@keyframes heroBreathe {

  0%,
  100% {
    opacity: 0.3;
  }

  15%,
  25% {
    opacity: 1;
  }

  40% {
    opacity: 0.3;
  }
}

/* Trust badges */
.hero__trust {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(138, 133, 120, 0.25);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--stone);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.4s ease, color 0.4s ease;
}

.hero__trust-pill svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.hero__trust-pill:hover {
  border-color: rgba(138, 133, 120, 0.5);
  color: var(--ash);
}

@media (max-width: 600px) {
  .hero__trust {
    gap: 0.5rem;
    margin-top: var(--space-sm);
  }

  .hero__trust-pill {
    font-size: 0.6rem;
    padding: 0.35rem 0.7rem;
  }

  .hero__trust-pill:nth-child(n+2) {
    display: none;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: calc(2rem + 10px);
  z-index: 9990;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--stone);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  border-color: rgba(200, 168, 110, 0.3);
  color: var(--ash);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 168, 110, 0.08);
}

.back-to-top:active {
  transform: scale(0.92);
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 5.5rem;
    right: calc(1.25rem + 8px);
    width: 32px;
    height: 32px;
  }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 2;
}

.hero__scroll-text {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
  color: var(--stone);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--stone) 0%, transparent 100%);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 600px) {
  .hero {
    height: 100dvh;
    min-height: unset;
  }

  .hero__title {
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
  }

  .hero__title-name {
    letter-spacing: 0.15em;
  }

  .hero__scroll-indicator {
    bottom: var(--space-md);
  }
}

/* ═══════════════════════════════════════════════════════
   SERVICE PICKER
   ═══════════════════════════════════════════════════════ */
.service-picker {
  padding: var(--space-xl) 0 var(--space-lg);
  background-color: var(--black);
}

.service-picker__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.service-picker__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
  margin-top: var(--space-sm);
}

.service-picker__carousel {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  align-items: stretch;
}

.service-picker__carousel::-webkit-scrollbar {
  display: none;
}

.service-picker__card {
  display: block;
  flex: 0 0 260px;
  min-height: 180px;
  scroll-snap-align: start;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--graphite);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.service-picker__card:hover {
  border-color: var(--stone);
  background: rgba(255, 255, 255, 0.04);
}

.service-picker__icon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.service-picker__icon img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

img.service-picker__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.service-picker__badge {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 168, 110, 0.08);
  border: 1px solid rgba(200, 168, 110, 0.15);
  padding: 0.2em 0.6em;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  max-width: calc(100% - 50px);
}

.service-picker__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ivory);
  margin: 0 0 0.4rem;
}

.service-picker__desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--ash);
  line-height: 1.6;
  margin: 0;
}

.service-picker__arrow {
  position: absolute;
  bottom: 1.2rem;
  right: 1.4rem;
  font-size: 0.9rem;
  color: var(--stone);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.service-picker__card:hover .service-picker__arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 1100px) {
  .service-picker__carousel {
    justify-content: center;
    overflow-x: visible;
    scroll-snap-type: none;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .service-picker {
    padding: var(--space-lg) 0 6.5rem;
    border-bottom: 1px solid var(--graphite);
    margin: 0 var(--gutter);
  }

  .service-picker__carousel {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0 var(--gutter);
    gap: 0.5rem;
  }

  .service-picker__card {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.5rem;
  }

  .service-picker__icon {
    position: static !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    opacity: 0.7;
    flex-shrink: 0;
    order: 0;
  }

  .service-picker__title {
    display: inline;
    margin: 0;
    font-size: 0.95rem;
    order: 1;
  }

  .service-picker__badge {
    margin-bottom: 0;
    order: 2;
  }

  .service-picker__desc {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    order: 3;
    transition: max-height var(--duration-fast) var(--ease-out),
                opacity var(--duration-fast) ease;
  }

  .service-picker__arrow {
    display: none;
  }


  .service-picker__card.is-expanded .service-picker__arrow {
    display: none;
  }

  .service-picker__card::after {
    content: '﹀';
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 0.7rem;
    color: var(--stone);
    transition: transform var(--duration-fast) ease;
  }

  .service-picker__card.is-expanded::after {
    transform: rotate(180deg);
  }

  .service-picker__card.is-expanded .service-picker__desc {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.4rem;
  }

  .service-picker__chat-btn {
    flex-basis: 100%;
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold, #c8a86e);
    margin-top: 0.4rem;
    padding: 0.35rem 0;
    order: 5;
    opacity: 0;
    animation: msgIn 0.3s ease forwards;
  }
}

/* ═══════════════════════════════════════════════════════
   PHILOSOPHY
   ═══════════════════════════════════════════════════════ */
.philosophy {
  padding: var(--space-2xl) 0;
  background-color: var(--black);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.philosophy__text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ivory);
  max-width: 680px;
  margin-bottom: var(--space-xl);
}

.philosophy__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.philosophy__pillar {
  padding-top: var(--space-md);
  border-top: 1px solid var(--graphite);
}

.philosophy__pillar-num {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--stone);
  margin-bottom: var(--space-sm);
}

.philosophy__pillar-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
}

.philosophy__pillar-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ash);
}

@media (max-width: 1024px) {
  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .philosophy {
    padding-top: 6.5rem;
  }

  .philosophy__pillars {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .philosophy__pillar {
    display: flex;
    flex-direction: column;
  }

  .philosophy__pillar-visual {
    order: 4;
    height: auto;
    margin-bottom: 0;
    margin-top: var(--space-sm);
  }

  .philosophy__pillar-num {
    order: 1;
  }

  .philosophy__pillar-title {
    order: 2;
  }

  .philosophy__pillar-desc {
    order: 3;
  }
}

/* ═══════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════ */
.services {
  padding: var(--space-2xl) 0;
  background-color: var(--black-soft);
}

.services__teaser {
  max-width: 700px;
}

.services__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  margin-top: var(--space-md);
}

.services__sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ash);
  margin-top: var(--space-md);
  max-width: 550px;
}

.services__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding: 1em 2em;
  border: 1px solid var(--graphite);
  transition:
    border-color var(--duration-fast) ease,
    background-color var(--duration-fast) ease;
}

.services__cta:hover {
  border-color: var(--stone);
  background-color: rgba(255, 255, 255, 0.03);
}

.services__cta svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.services__cta:hover svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════
   BRAND MORPH
   ═══════════════════════════════════════════════════════ */
.morph {
  height: 700vh;
  position: relative;
}

.morph__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.morph__glow {
  display: none;
}

.morph__phase {
  position: absolute;
  top: 15%;
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  transition: opacity 0.3s ease;
  z-index: 2;
}

.morph__layer {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

/* Stage 1: Plain */
.morph__layer--plain {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(120, 120, 120, 0.35);
  letter-spacing: 0;
  opacity: 1;
}

/* Stage 2: Refined */
.morph__layer--refined {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.4em;
  margin-right: -0.4em;
}

/* Stage 3: Colour */
.morph__layer--colour {
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph__palette {
  display: flex;
  gap: 8px;
}

.morph__swatch {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}

.morph__swatch-hex {
  font-family: monospace;
  font-size: 0.4rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.morph__swatch-hex--dark {
  color: rgba(0, 0, 0, 0.5);
}

/* Stage 4: Mark */
.morph__layer--mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph__mark-img {
  width: clamp(120px, 22vw, 220px);
  height: auto;
  filter: brightness(0.95);
}

/* Stage 5: Logo */
.morph__layer--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph__logo-img {
  width: clamp(200px, 40vw, 350px);
  height: auto;
  filter: brightness(0.95);
}

/* Stage 4: Device */
.morph__layer--device {
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph__device {
  width: min(560px, 90vw);
  border: 1px solid rgba(139, 115, 85, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 115, 85, 0.06);
}

.morph__device-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(42, 42, 42, 0.4);
}

.morph__device-bar>span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.morph__device-bar>span:first-child {
  background: #ff5f57;
}

.morph__device-bar>span:nth-child(2) {
  background: #ffbd2e;
}

.morph__device-bar>span:nth-child(3) {
  background: #28c840;
}

.morph__device-url {
  margin-left: auto;
  font-family: monospace;
  font-size: 0.5rem;
  color: var(--ash);
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 10px;
  border-radius: 3px;
}

.morph__device-screen {
  padding: 0;
}

.morph__device-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Stage 7: Mobile */
.morph__layer--mobile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph__phone {
  width: 200px;
  height: 420px;
  border: 2px solid rgba(139, 115, 85, 0.3);
  border-radius: 28px;
  overflow: hidden;
  background: #0a0a0a;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 115, 85, 0.06);
}

.morph__phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #0a0a0a;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.morph__phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Progress bar */
.morph__progress {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
  z-index: 2;
}

.morph__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--stone);
  border-radius: 1px;
  transition: width 0.1s linear;
}

/* Shorter morph variants */
.morph--eng,
.morph--ecom,
.morph--infra {
  height: 400vh;
}

/* ─── Shared eng-visual card ─────────────────────── */
.eng-visual {
  padding: 24px;
  border: 1px solid rgba(42, 42, 42, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  min-width: 260px;
  max-width: 320px;
}

/* ─── Engineering: Wireframe ─────────────────────── */
.eng-wire-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 8px;
}

.eng-wire-hero {
  height: 40px;
  background: rgba(139, 115, 85, 0.1);
  border: 1px dashed rgba(139, 115, 85, 0.2);
  border-radius: 3px;
  margin-bottom: 8px;
}

.eng-wire-cols {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.eng-wire-cols span {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.eng-wire-footer {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1px;
}

/* ─── Engineering: Code ──────────────────────────── */
.eng-code {
  font-family: monospace;
  font-size: 0.6rem;
  line-height: 1.8;
  color: var(--ash);
}

.ec-kw {
  color: #c792ea;
}

.ec-fn {
  color: #82aaff;
}

.ec-num {
  color: #f78c6c;
}

.ec-str {
  color: #c3e88d;
}

/* ─── Engineering: Terminal ──────────────────────── */
.eng-terminal {
  font-family: monospace;
  font-size: 0.55rem;
  line-height: 2;
  color: var(--ash);
}

.eng-term-dim {
  color: rgba(255, 255, 255, 0.35);
}

.eng-term-ok {
  color: #4ade80;
}

/* ─── Engineering: Deploy ────────────────────────── */
.eng-deploy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.eng-server {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 0.55rem;
  color: var(--ivory);
}

.eng-server-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: dotGlow 2s ease-in-out infinite;
}

.eng-deploy-line {
  width: 1px;
  height: 20px;
  background: rgba(139, 115, 85, 0.3);
}

.eng-deploy-label {
  font-family: monospace;
  font-size: 0.45rem;
  color: var(--ash);
  letter-spacing: 0.1em;
}

/* ─── Engineering: Uptime ────────────────────────── */
.eng-uptime {
  text-align: center;
}

.eng-uptime-val {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.eng-uptime-label {
  font-family: monospace;
  font-size: 0.45rem;
  color: var(--ash);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eng-uptime-bars {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.eng-uptime-bars span {
  width: 8px;
  height: 20px;
  background: rgba(74, 222, 128, 0.4);
  border-radius: 2px;
}

.eng-uptime-bars span:nth-child(8) {
  height: 16px;
  background: rgba(74, 222, 128, 0.25);
}

/* ─── E-commerce: Product ────────────────────────── */
.ecom-product {
  text-align: center;
}

.ecom-img-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border: 1px dashed rgba(139, 115, 85, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash);
}

.ecom-product-name {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 4px;
}

.ecom-product-price {
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--stone);
}

/* ─── E-commerce: Catalogue ──────────────────────── */
.ecom-catalogue {
  display: flex;
  gap: 8px;
}

.ecom-grid-item {
  flex: 1;
  text-align: center;
}

.ecom-grid-item span {
  display: block;
  height: 50px;
  background: rgba(139, 115, 85, 0.08);
  border: 1px solid rgba(139, 115, 85, 0.15);
  border-radius: 4px;
  margin-bottom: 6px;
}

.ecom-grid-item div {
  font-family: monospace;
  font-size: 0.45rem;
  color: var(--ash);
}

/* ─── E-commerce: Cart ───────────────────────────── */
.ecom-cart-item {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.55rem;
  color: var(--ash);
  padding: 6px 0;
}

.ecom-cart-item span {
  color: var(--ivory);
}

.ecom-cart-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

.ecom-cart-total {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--white);
  padding: 6px 0;
}

.ecom-cart-total span {
  color: var(--stone);
}

/* ─── E-commerce: Checkout ───────────────────────── */
.ecom-stripe-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ash);
  font-family: monospace;
  font-size: 0.5rem;
  margin-bottom: 10px;
}

.ecom-input {
  font-family: monospace;
  font-size: 0.55rem;
  color: var(--ivory);
  padding: 8px 10px;
  border: 1px solid rgba(42, 42, 42, 0.5);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.ecom-pay-btn {
  text-align: center;
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--black);
  background: var(--stone);
  padding: 8px;
  border-radius: 4px;
}

/* ─── E-commerce: Confirmed ──────────────────────── */
.ecom-confirmed {
  text-align: center;
}

.ecom-check {
  font-size: 2.5rem;
  color: #4ade80;
  margin-bottom: 8px;
}

.ecom-confirm-text {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 4px;
}

.ecom-order-id {
  font-family: monospace;
  font-size: 0.5rem;
  color: var(--ash);
  letter-spacing: 0.1em;
}

/* ─── Infrastructure: DNS ────────────────────────── */
.infra-dns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.infra-domain {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--ivory);
}

.infra-arrow {
  color: var(--stone);
  font-size: 1rem;
}

.infra-ip {
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--ash);
}

/* ─── Infrastructure: SSL ────────────────────────── */
.infra-ssl {
  text-align: center;
}

.infra-lock {
  color: #4ade80;
  margin-bottom: 10px;
}

.infra-ssl-label {
  font-family: monospace;
  font-size: 0.5rem;
  color: var(--ash);
  margin-bottom: 4px;
}

.infra-ssl-status {
  font-family: monospace;
  font-size: 0.5rem;
  color: #4ade80;
  letter-spacing: 0.1em;
}

/* ─── Infrastructure: Server ─────────────────────── */
.infra-server-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 0.55rem;
  color: var(--ivory);
  padding: 5px 0;
}

.infra-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.infra-dot--green {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.infra-dot--amber {
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.4);
}

/* ─── Infrastructure: CDN ────────────────────────── */
.infra-cdn {
  text-align: center;
}

.infra-node {
  display: inline-block;
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--ivory);
  padding: 6px 14px;
  border: 1px solid rgba(139, 115, 85, 0.3);
  border-radius: 4px;
  background: rgba(139, 115, 85, 0.08);
}

.infra-node--sm {
  font-size: 0.45rem;
  padding: 4px 10px;
}

.infra-cdn-lines {
  width: 1px;
  height: 16px;
  background: rgba(139, 115, 85, 0.3);
  margin: 6px auto;
}

.infra-cdn-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* ─── Infrastructure: Monitor ────────────────────── */
.infra-monitor-metric {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.infra-monitor-label {
  font-family: monospace;
  font-size: 0.5rem;
  color: var(--ash);
}

.infra-monitor-val {
  font-family: monospace;
  font-size: 0.5rem;
  font-weight: 500;
  color: #4ade80;
}

.infra-monitor-status {
  text-align: center;
  font-family: monospace;
  font-size: 0.45rem;
  color: #4ade80;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════ */
.process {
  padding: var(--space-2xl) 0;
  background-color: var(--black);
  border-top: 1px solid var(--charcoal);
}

.process__header {
  margin-bottom: var(--space-xl);
}

.process__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  margin-top: var(--space-md);
}

.process__sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ash);
  margin-top: var(--space-md);
  max-width: 550px;
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--graphite);
}

.process__step {
  padding: var(--space-md);
  border: 1px solid var(--graphite);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s ease, opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.process__step:hover {
  border-color: rgba(138, 133, 120, 0.3);
}

@media (max-width: 768px) {
  .process__step {
    border-color: rgba(138, 133, 120, 0.3);
  }
}

.process__step-num {
  font-size: 1.8rem;
  font-weight: 300;
  font-family: var(--font-serif);
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.process__step-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.process__step-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ash);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--graphite);
}

.process__step-visual {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(42, 42, 42, 0.4);
}

/* Discovery — checklist */
.process__mini-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--ash);
  opacity: 0;
  animation: checkAppear 6s ease infinite;
}

.process__mini-check:nth-child(1) { animation-delay: 0s; }
.process__mini-check:nth-child(2) { animation-delay: 0.6s; }
.process__mini-check:nth-child(3) { animation-delay: 1.2s; }
.process__mini-check:nth-child(4) { animation-delay: 1.8s; }

@keyframes checkAppear {
  0%   { opacity: 0; transform: translateX(-6px); }
  10%  { opacity: 1; transform: translateX(0); }
  75%  { opacity: 1; transform: translateX(0); }
  90%  { opacity: 0; transform: translateX(0); }
  100% { opacity: 0; }
}

.process__check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--graphite);
  flex-shrink: 0;
}

.process__check-dot--done {
  background: rgba(74, 222, 128, 0.6);
  border-color: rgba(74, 222, 128, 0.3);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
  50%      { box-shadow: 0 0 6px 2px rgba(74, 222, 128, 0.3); }
}

/* Design — mini layout */
.process__mini-layout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(42, 42, 42, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.process__mini-nav {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  animation: layoutBuild 4s ease-in-out infinite;
  animation-delay: 0s;
  transform-origin: left center;
}

.process__mini-hero {
  height: 24px;
  background: rgba(139, 115, 85, 0.1);
  border-radius: 3px;
  border: 1px solid rgba(139, 115, 85, 0.15);
  animation: layoutBuild 4s ease-in-out infinite;
  animation-delay: 0.3s;
  transform-origin: left center;
}

.process__mini-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.process__mini-cols div {
  height: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
  border: 1px solid rgba(42, 42, 42, 0.4);
  animation: layoutBuild 4s ease-in-out infinite;
  animation-delay: 0.6s;
}

.process__mini-cols div:nth-child(2) {
  animation-delay: 0.8s;
}

@keyframes layoutBuild {
  0%   { opacity: 0; transform: scaleX(0); }
  15%  { opacity: 1; transform: scaleX(1); }
  75%  { opacity: 1; transform: scaleX(1); }
  90%  { opacity: 0; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}

/* Build — mini terminal */
.process__mini-term {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(42, 42, 42, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  font-family: monospace;
}

.process__term-line {
  font-size: 0.6rem;
  color: var(--ash);
  opacity: 0;
  animation: termLineAppear 5s ease infinite;
}

.process__term-line:nth-child(1) { animation-delay: 0s; }
.process__term-line:nth-child(2) { animation-delay: 0.8s; }
.process__term-line:nth-child(3) { animation-delay: 1.6s; }

@keyframes termLineAppear {
  0%   { opacity: 0; transform: translateY(4px); }
  10%  { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 0; transform: translateY(0); }
  100% { opacity: 0; }
}

.process__term-line--success {
  color: #4ade80;
}

.process__term-line--active {
  color: var(--stone);
}

.process__term-line--active::after {
  content: '▌';
  font-size: 0.5rem;
  margin-left: 2px;
  animation: termCursorBlink 1s step-end infinite;
}

@keyframes termCursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Launch — deploy status */
.process__mini-deploy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.process__deploy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--ash);
  opacity: 0;
  animation: deployRowAppear 6s ease infinite;
}

.process__deploy-row:nth-child(1) { animation-delay: 0s; }
.process__deploy-row:nth-child(2) { animation-delay: 0.5s; }
.process__deploy-row:nth-child(3) { animation-delay: 1.0s; }
.process__deploy-row:nth-child(4) { animation-delay: 1.5s; }

@keyframes deployRowAppear {
  0%   { opacity: 0; transform: translateX(-8px); }
  8%   { opacity: 1; transform: translateX(0); }
  75%  { opacity: 1; transform: translateX(0); }
  90%  { opacity: 0; transform: translateX(0); }
  100% { opacity: 0; }
}

.process__deploy-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.process__deploy-dot--green {
  background: #4ade80;
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.4);
  animation: deployDotPulse 2s ease-in-out infinite;
}

@keyframes deployDotPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.2); }
  50%      { box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
}

.process__extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.process__extra {
  padding: var(--space-md);
  border: 1px solid var(--graphite);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.process__extra-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.process__extra-desc {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ash);
}

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

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

/* ═══════════════════════════════════════════════════════
   SELECTED WORK
   ═══════════════════════════════════════════════════════ */
.work {
  padding: var(--space-2xl) 0;
  background-color: var(--black-soft);
}

.work__header {
  margin-bottom: var(--space-xl);
}

/* Case study card */
.case {
  margin-bottom: var(--space-xl);
}

.case:last-child {
  margin-bottom: 0;
}

.case__link {
  display: block;
  text-decoration: none;
}

.case__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--charcoal);
}

.case__image-inner {
  width: 100%;
  height: 100%;
  transition: transform var(--duration-slow) var(--ease-out);
}

.case__link:hover .case__image-inner {
  transform: scale(1.04);
}

.case__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Triptych variant — 3 images side by side in work card */
.case__triptych {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(0.4rem, 0.8vw, 0.75rem);
  padding: clamp(0.4rem, 0.8vw, 0.75rem);
  background-color: var(--charcoal);
}

.case__triptych-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.case__image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-med) var(--ease-out);
}

.case__link:hover .case__image-overlay {
  background-color: rgba(10, 10, 10, 0.4);
}

.case__view {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.8em 2em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.case__link:hover .case__view {
  opacity: 1;
  transform: translateY(0);
}

.case__info {
  padding: var(--space-md) 0;
}

.case__info-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.case__name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--white);
}

.case__year {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--stone);
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.case__tag {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0.4em 1em;
  border: 1px solid var(--graphite);
}

.case__desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ash);
  max-width: 600px;
}

/* ─── Work Controls & Filter Pills ───────────────── */
.work__controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  gap: var(--space-md);
}

.work__filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.work__filter-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-transform: uppercase;
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.work__filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.work__view-btn {
  background: transparent;
  border: 1px solid var(--graphite);
  color: var(--ash);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.work__view-btn:hover,
.work__view-btn.is-active {
  border-color: var(--stone);
  color: var(--white);
}

.work__view-btn .icon-focus {
  display: none;
}

.work__view-btn.is-active .icon-grid {
  display: none;
}

.work__view-btn.is-active .icon-focus {
  display: block;
}

@media (max-width: 768px) {
  .work__controls {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
  }

  .work__filters-wrapper {
    width: 100%;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  .work__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    padding-right: var(--space-xl);
    align-items: center;
  }

  .work__filters::-webkit-scrollbar {
    display: none;
  }

  .work__filter-label,
  .work__filter {
    flex-shrink: 0;
  }

  .work__view-btn {
    align-self: center;
  }
}

/* ─── Dense View Modifiers ───────────────────────── */
.work.is-dense .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl) var(--space-lg);
  align-items: start;
}

.work.is-dense .work__header,
.work.is-dense .work__controls {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.work.is-dense .work__grid {
  display: contents;
}

.work.is-dense .case {
  margin-bottom: 0;
}

.work.is-dense .case__image-wrap {
  aspect-ratio: 16 / 10;
}

.work.is-dense .case__name {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.work.is-dense .case__desc {
  display: none;
}

.work.is-dense .case__info {
  padding: var(--space-sm) 0;
}

@media (max-width: 1024px) {
  .work.is-dense .container {
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .work.is-dense .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-sm);
  }
  
  .work.is-dense .case__name {
    font-size: 0.95rem;
  }
  
  .work.is-dense .case__year {
    font-size: 0.75rem;
  }
}

/* ─── Filter Dynamic Promotion ─────────────────────── */
/* In standard view, the first visible result always promotes to full-width */
.work:not(.is-dense) .case.is-featured-result {
  grid-column: 1 / -1;
  margin-bottom: var(--space-xl);
}

.work:not(.is-dense) .case.is-featured-result .case__image-wrap {
  aspect-ratio: 16 / 9;
}

.work:not(.is-dense) .case.is-featured-result .case__name {
  font-size: clamp(2rem, 4vw, 3rem);
}

.work:not(.is-dense) .case.is-featured-result .case__info {
  padding: var(--space-md) 0 0;
}

.work:not(.is-dense) .case.is-featured-result .case__desc {
  display: block;
}
.work__filter {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  background: transparent;
  border: 1px solid var(--graphite);
  padding: 0.5em 1.4em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.work__filter:hover {
  border-color: var(--stone);
  color: var(--white);
}

.work__filter.is-active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ─── Compact Grid ───────────────────────────────── */
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

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

/* ─── Compact Card ───────────────────────────────── */
.case--compact {
  margin-bottom: 0;
}

.case--compact .case__image-wrap {
  aspect-ratio: 16 / 10;
}

.case--compact .case__name {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.case--compact .case__info {
  padding: var(--space-sm) 0;
}

.case--compact .case__desc {
  display: none;
}

/* ─── Filter Transitions ─────────────────────────── */
.case[data-category] {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ═══════════════════════════════════════════════════════
   THE LAB
   ═══════════════════════════════════════════════════════ */
.lab {
  padding: var(--space-2xl) 0;
  background-color: var(--black);
  border-top: 1px solid var(--charcoal);
}

.lab__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.lab__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.lab__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ash);
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

.lab__status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lab__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.lab__status-text {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
}

.lab__products {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lab__product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(42, 42, 42, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
}

.lab__product-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  overflow: hidden;
}

.lab__product-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.lab__product-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.lab__product-info {
  flex: 1;
  min-width: 0;
}

.lab__product-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.lab__product-desc {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--ash);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.lab__product-badge {
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
  padding: 4px 10px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 4px;
  white-space: nowrap;
}

.lab__product {
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.lab__product:hover {
  border-color: rgba(139, 115, 85, 0.3);
}

.lab__product-chevron {
  color: var(--ash);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.lab__product.is-open .lab__product-chevron {
  transform: rotate(180deg);
}

.lab__product.is-open {
  border-color: rgba(139, 115, 85, 0.3);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}

.lab__product-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  border: 1px solid transparent;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.015);
  padding: 0 16px;
}

.lab__product.is-open+.lab__product-details {
  max-height: 400px;
  padding: 16px;
  border-color: rgba(139, 115, 85, 0.3);
}

.lab__product-detail-text {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ash);
  margin-bottom: 16px;
}

.lab__product-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.lab__product-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--ivory);
  letter-spacing: 0.05em;
}

.lab__product-feature-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stone);
  flex-shrink: 0;
}

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

.lab__product-stack span {
  font-family: monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 4px 10px;
  border: 1px solid rgba(42, 42, 42, 0.4);
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .lab__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact {
  padding: var(--space-2xl) 0 var(--space-lg);
  background-color: var(--black);
  border-top: 1px solid var(--charcoal);
}

.contact__inner {
  display: flex;
  flex-direction: column;
}

.contact__heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.contact__sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ash);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.contact__form {
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.contact__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

@media (max-width: 600px) {
  .contact__form-row {
    grid-template-columns: 1fr;
  }
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 1em 1.2em;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--graphite);
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--ash);
  font-weight: 300;
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--stone);
}

.contact__textarea {
  margin-bottom: var(--space-sm);
  min-height: 120px;
}

.contact__form-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.contact__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  padding: 1em 2em;
  border: 1px solid var(--graphite);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.contact__submit:hover {
  border-color: var(--stone);
  background-color: rgba(255, 255, 255, 0.03);
}

.contact__submit svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.contact__submit:hover svg {
  transform: translateX(4px);
}

.contact__or {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--ash);
}

.contact__email-link {
  color: var(--stone);
  transition: color 0.3s ease;
}

.contact__email-link:hover {
  color: var(--white);
}

.contact__wa-icon svg {
  vertical-align: -3px;
}

.contact__form-status {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--stone);
  min-height: 1.5em;
}

.contact__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--charcoal);
}

.contact__founded {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ash);
  flex: 1;
  text-align: center;
}

.contact__copyright {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--stone);
  flex: 1;
  text-align: left;
  order: -1;
}

.contact__footer-right {
  display: flex;
  gap: var(--space-md);
  flex: 1;
  justify-content: flex-end;
}

.contact__social {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.contact__social:hover {
  color: var(--white);
}

.contact__social-icon {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.contact__social:hover .contact__social-icon {
  opacity: 1;
}

.contact__social-sep {
  width: 1px;
  height: 12px;
  background: var(--graphite);
}

@media (max-width: 768px) {
  .contact__footer {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
  }

  .contact__copyright {
    order: -1;
    text-align: center;
    flex: none;
  }

  .contact__founded {
    text-align: center;
    flex: none;
  }

  .contact__footer-right {
    justify-content: center;
    flex: none;
  }

  /* ─── Default hover states on mobile ─── */
  .services__icon-card {
    color: var(--stone);
    border-color: rgba(139, 115, 85, 0.3);
  }

  .process__step {
    border-color: rgba(138, 133, 120, 0.3);
  }

  .philosophy__pillar .philosophy__pillar-visual {
    border-color: rgba(138, 133, 120, 0.2);
  }

  .process__extra {
    border-color: rgba(138, 133, 120, 0.3);
  }
}

/* ═══════════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out);
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  animation: loaderFade 1.5s ease infinite;
}

@keyframes loaderFade {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════
   CURSOR (desktop only)
   ═══════════════════════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--white);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease-out);
  transform: translate(-50%, -50%);
}

.cursor.is-hovering {
  transform: translate(-50%, -50%) scale(2.5);
  opacity: 0.35;
}

@media (max-width: 1024px) {
  .cursor {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   SMOOTH SCROLL PADDING
   ═══════════════════════════════════════════════════════ */
section[id] {
  scroll-margin-top: 80px;
}

/* ═══════════════════════════════════════════════════════
   AMBIENT GLOW
   ═══════════════════════════════════════════════════════ */
.section-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.06;
  background: radial-gradient(circle, rgba(139, 115, 85, 0.4) 0%, rgba(139, 115, 85, 0.1) 40%, transparent 85%);
  z-index: 0;
}

.section-glow--right {
  top: -200px;
  right: -200px;
}

.section-glow--left {
  bottom: -200px;
  left: -200px;
}

.philosophy,
.lab {
  position: relative;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   SCROLLING MARQUEE
   ═══════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  background-color: var(--black);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 40s linear infinite;
}

.marquee__item {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0 var(--space-md);
  flex-shrink: 0;
}

.marquee__sep {
  color: var(--stone);
  font-size: 0.5rem;
  flex-shrink: 0;
}

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

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

/* ═══════════════════════════════════════════════════════
   LAB TERMINAL
   ═══════════════════════════════════════════════════════ */
.lab__terminal {
  max-width: 400px;
  border: 1px solid rgba(42, 42, 42, 0.6);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
  margin-bottom: var(--space-lg);
}

.lab__terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(42, 42, 42, 0.6);
}

.lab__terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.lab__terminal-body {
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.72rem;
  line-height: 2.2;
  min-height: 160px;
}

.lab__terminal-line {
  color: var(--ash);
}

.lab__terminal-line--success {
  color: #4ade80;
}

.lab__terminal-line--active {
  color: var(--stone);
}

.lab__terminal-line--anim {
  opacity: 0;
  animation: termAppear 0.3s ease forwards;
  animation-delay: calc(var(--d, 0) * 0.5s);
}

/* ═══════════════════════════════════════════════════════
   PHILOSOPHY FLOW VISUAL
   ═══════════════════════════════════════════════════════ */
.philosophy__visual {
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

/* ─── PHILOSOPHY PIPELINE ────────────────────────────── */
.philosophy__pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 20px 24px;
  border: 1px solid rgba(42, 42, 42, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(2px);
}

.philosophy__pipe-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 80px;
}

.philosophy__pipe-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 115, 85, 0.4);
  position: relative;
}

.philosophy__pipe-dot--active {
  border-color: rgba(139, 115, 85, 0.6);
  background: transparent;
  box-shadow: none;
}

.philosophy__pipe-dot--active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stone);
  transform: translate(-50%, -50%);
  animation: dotGlow 2.5s ease-in-out infinite;
}

.philosophy__pipe-stage:nth-child(3) .philosophy__pipe-dot--active::after {
  animation-delay: 0.4s;
}

.philosophy__pipe-stage:nth-child(5) .philosophy__pipe-dot--active::after {
  animation-delay: 0.8s;
}

@keyframes dotGlow {

  0%,
  100% {
    opacity: 0.4;
    box-shadow: 0 0 3px rgba(139, 115, 85, 0.2);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(139, 115, 85, 0.6);
  }
}

.philosophy__pipe-name {
  font-family: monospace;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
}

.philosophy__pipe-status {
  font-family: monospace;
  font-size: 0.45rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.philosophy__pipe-line {
  flex: 1;
  height: 1px;
  background: rgba(139, 115, 85, 0.15);
  margin: 0 12px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.philosophy__pipe-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--stone), transparent);
  animation: pipeSweep 2.5s ease-in-out infinite;
}

.philosophy__pipe-line:nth-of-type(4)::after {
  animation-delay: 0.5s;
}

@keyframes pipeSweep {
  0% {
    left: -30%;
  }

  100% {
    left: 130%;
  }
}

@media (max-width: 768px) {
  .philosophy__pipeline {
    gap: 0;
    padding: 14px 12px;
  }

  .philosophy__pipe-stage {
    min-width: 50px;
  }

  .philosophy__pipe-line {
    margin: 0 6px;
  }

  .philosophy__pipe-status {
    display: none;
  }
}

/* ─── PHILOSOPHY PILLAR VISUALS ──────────────────────── */
.philosophy__pillar-visual {
  margin-bottom: var(--space-md);
  padding: 10px;
  border: 1px solid rgba(42, 42, 42, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.4s ease, background 0.4s ease;
  height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.philosophy__pillar:hover .philosophy__pillar-visual {
  border-color: rgba(139, 115, 85, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

/* Strategy metrics */
.philosophy__pv-metrics {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.philosophy__pv-metric {
  display: flex;
  align-items: center;
  gap: 6px;
}

.philosophy__pv-metric-label {
  font-family: monospace;
  font-size: 0.5rem;
  font-weight: 400;
  color: var(--ash);
  width: 22px;
  flex-shrink: 0;
}

.philosophy__pv-metric-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.philosophy__pv-metric-bar span,
.pv-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.5), rgba(74, 222, 128, 0.8));
  border-radius: 2px;
  width: var(--bar-to, 50%);
  animation: barFillLoop 4s ease-in-out infinite;
  animation-delay: calc(var(--bar-d, 0) * 0.3s);
}

.philosophy__pv-metric-bar--low span,
.philosophy__pv-metric-bar--low .pv-bar-fill {
  background: linear-gradient(90deg, rgba(139, 115, 85, 0.5), rgba(139, 115, 85, 0.8));
}

.philosophy__pv-metric-val {
  font-family: monospace;
  font-size: 0.5rem;
  font-weight: 400;
  color: var(--stone);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

@keyframes barFillLoop {
  0% { width: 0; }
  30%, 85% { width: var(--bar-to, 50%); }
  100% { width: 0; }
}

/* ─── 02 DESIGN MORPH: icon → interface → brand ────────── */
.philosophy__pv-design-morph {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shared phase base */
.pv-dm-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: none;
}

/* Phase 1: Icon — visible 0-33% of 6s = 0s-2s */
.pv-dm-phase--icon {
  width: 36px;
  height: 36px;
  margin: auto;
  animation: dmPhase1 6s ease-in-out infinite;
}

/* Phase 2: Interface — visible 33-66% = 2s-4s */
.pv-dm-phase--interface {
  flex-direction: column;
  gap: 3px;
  padding: 4px 8px;
  animation: dmPhase2 6s ease-in-out infinite;
}

/* Phase 3: Brand — visible 66-100% = 4s-6s */
.pv-dm-phase--brand {
  gap: 4px;
  animation: dmPhase3 6s ease-in-out infinite;
}

@keyframes dmPhase1 {
  0%     { opacity: 0; transform: scale(0.7); }
  5%     { opacity: 1; transform: scale(1); }
  28%    { opacity: 1; transform: scale(1); }
  33%    { opacity: 0; transform: scale(1.1); }
  100%   { opacity: 0; }
}

@keyframes dmPhase2 {
  0%, 33%  { opacity: 0; transform: translateY(6px); }
  38%      { opacity: 1; transform: translateY(0); }
  61%      { opacity: 1; transform: translateY(0); }
  66%      { opacity: 0; transform: translateY(-6px); }
  100%     { opacity: 0; }
}

@keyframes dmPhase3 {
  0%, 66%  { opacity: 0; transform: scale(0.85); }
  71%      { opacity: 1; transform: scale(1); }
  94%      { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; transform: scale(1.05); }
}

/* Icon star */
.pv-dm-star {
  transition: none;
}

/* Interface wireframe mini */
.pv-dm-ui-bar {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
}

.pv-dm-ui-hero {
  height: 14px;
  width: 100%;
  background: rgba(139, 115, 85, 0.15);
  border: 1px solid rgba(139, 115, 85, 0.2);
  border-radius: 2px;
}

.pv-dm-ui-cols {
  display: flex;
  gap: 3px;
  width: 100%;
}

.pv-dm-ui-cols span {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1px;
}

/* Brand logotype */
.pv-dm-brand-letter {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--ivory, var(--white));
}

.pv-dm-brand-amp {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--stone);
}

/* Phase label */
.pv-dm-label {
  position: absolute;
  bottom: 2px;
  right: 6px;
  font-family: monospace;
  font-size: 0.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  opacity: 0.6;
}

/* Engineering code */
.philosophy__pv-code {
  font-family: monospace;
  font-size: 0.6rem;
  color: var(--ash);
  line-height: 1.6;
}

.philosophy__pv-code:last-child::after {
  content: '▌';
  animation: pvCursor 1s step-end infinite;
  color: var(--stone);
  font-size: 0.5rem;
}

@keyframes pvCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.philosophy__pv-kw {
  color: #c678dd;
}

.philosophy__pv-fn {
  color: #61afef;
}

.philosophy__pv-num {
  color: #d19a66;
}

/* ═══════════════════════════════════════════════════════
   CAPABILITY ICON CARDS
   ═══════════════════════════════════════════════════════ */
.services__icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: var(--space-lg);
}

.services__icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(42, 42, 42, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--graphite);
  transition: color 0.3s ease, border-color 0.3s ease;
  min-height: 74px;
}

.services__icon-card:hover {
  color: var(--stone);
  border-color: rgba(139, 115, 85, 0.3);
}

@media (max-width: 768px) {
  .services__icons {
    justify-content: center;
  }

  .services__icon-card {
    color: var(--stone);
    border-color: rgba(139, 115, 85, 0.3);
  }
}

.services__icon-card span {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

/* ─── SERVICE MINI VISUALS ─────────────────────────────── */

/* Web — mini browser */
.svc-mini__browser {
  border: 1px solid rgba(42, 42, 42, 0.6);
  border-radius: 4px;
  overflow: hidden;
  width: 36px;
}

.svc-mini__browser-bar {
  display: flex;
  gap: 2px;
  padding: 3px 4px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(42, 42, 42, 0.4);
}

.svc-mini__browser-bar span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.svc-mini__browser-body {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.svc-mini__browser-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
}

/* Design — mini swatches */
.svc-mini__swatches {
  display: flex;
  gap: 3px;
}

.svc-mini__swatches span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Code — syntax snippet */
.svc-mini__code {
  font-family: monospace;
  font-size: 0.5rem;
  color: var(--ash);
  white-space: nowrap;
}

.svc-mini__kw {
  color: #61afef;
}

/* Bots — notification dots */
.svc-mini__notifs {
  display: flex;
  gap: 4px;
}

.svc-mini__notif-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.svc-mini__notif-dot--green {
  background: #4ade80;
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.4);
}

.svc-mini__notif-dot--blue {
  background: #60a5fa;
  box-shadow: 0 0 4px rgba(96, 165, 250, 0.4);
}

.svc-mini__notif-dot--amber {
  background: #fbbf24;
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.4);
}

/* AI — chat bubble */
.svc-mini__ai {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.svc-mini__ai-bubble {
  font-size: 0.45rem;
  font-weight: 400;
  color: var(--ivory);
  padding: 2px 5px;
  background: rgba(139, 115, 85, 0.15);
  border: 1px solid rgba(139, 115, 85, 0.25);
  border-radius: 3px;
}

.svc-mini__ai-typing {
  display: flex;
  gap: 2px;
}

.svc-mini__ai-typing span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--stone);
  animation: svcTyping 1.4s ease-in-out infinite;
}

.svc-mini__ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.svc-mini__ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes svcTyping {

  0%,
  60%,
  100% {
    opacity: 0.2;
  }

  30% {
    opacity: 1;
  }
}

/* Infra — server LEDs */
.svc-mini__server {
  display: flex;
  gap: 4px;
}

.svc-mini__led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.svc-mini__led--green {
  background: #4ade80;
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.4);
}

.svc-mini__led--amber {
  background: #fbbf24;
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.4);
}

/* SEO — metric */
.svc-mini__seo {
  text-align: center;
}

.svc-mini__seo-num {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  white-space: nowrap;
  color: #4ade80;
}

/* E-Commerce — cart badge */
.svc-mini__cart {
  position: relative;
  font-size: 0.8rem;
  color: var(--ash);
}

.svc-mini__cart::before {
  content: '🛒';
  font-size: 0.7rem;
}

.svc-mini__cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  color: #000;
  font-size: 0.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* PWA — install ring */
.svc-mini__pwa {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-mini__pwa-ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(139, 115, 85, 0.4);
  border-top-color: var(--stone);
  animation: pwaRing 1.5s linear infinite;
}

@keyframes pwaRing {
  to {
    transform: rotate(360deg);
  }
}

/* Payments — currency */
.svc-mini__pay {
  display: flex;
  align-items: center;
  gap: 3px;
}

.svc-mini__pay-icon {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--ash);
}

.svc-mini__pay-check {
  font-size: 0.5rem;
  color: #4ade80;
}

/* Auth — lock */
.svc-mini__auth {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-mini__auth-lock {
  font-size: 0.9rem;
  color: var(--ash);
}

/* Database — rows */
.svc-mini__db {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 28px;
}

.svc-mini__db-row {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}

.svc-mini__db-row--short {
  width: 60%;
}

/* Analytics — mini bars */
.svc-mini__analytics {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.svc-mini__bar {
  width: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px 2px 0 0;
}

.svc-mini__bar--accent {
  background: rgba(74, 222, 128, 0.5);
}

/* API — method badge */
.svc-mini__api {
  display: flex;
  align-items: center;
  gap: 3px;
}

.svc-mini__api-method {
  font-size: 0.4rem;
  font-weight: 600;
  color: #4ade80;
  padding: 1px 3px;
  background: rgba(74, 222, 128, 0.1);
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.svc-mini__api-path {
  font-family: monospace;
  font-size: 0.5rem;
  color: var(--ash);
}

/* Hosting — uptime value */
.svc-mini__hosting {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-mini__hosting-val {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  color: #4ade80;
  white-space: nowrap;
}

/* CMS — edit icon */
.svc-mini__cms {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-mini__cms-icon {
  font-size: 0.9rem;
  color: var(--ash);
}

/* ═══════════════════════════════════════════════════════
   LIVE TERMINAL
   ═══════════════════════════════════════════════════════ */
.live-term {
  padding: var(--space-xl) 0;
  background-color: var(--black);
  border-top: 1px solid rgba(42, 42, 42, 0.4);
}

.live-term__label {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: var(--space-md);
}

.live-term__window {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(42, 42, 42, 0.6);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.9);
}

.live-term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.live-term__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.live-term__dot:first-child {
  background: #ff5f57;
}

.live-term__dot:nth-child(2) {
  background: #ffbd2e;
}

.live-term__dot:nth-child(3) {
  background: #28c840;
}

.live-term__title {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--ash);
  margin-left: auto;
  margin-right: auto;
}

.live-term__body {
  padding: 16px 18px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  min-height: 240px;
}

.live-term__line {
  color: var(--ash);
}

.live-term__line--cmd {
  color: var(--ivory);
  font-weight: 400;
}

.live-term__line--ok {
  color: #4ade80;
}

.live-term__line--tests {
  color: #fbbf24;
}

.live-term__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--stone);
  opacity: 0;
  vertical-align: middle;
  margin-top: 4px;
}

.is-visible .live-term__cursor {
  animation: termCursorIn 0.1s ease forwards 5.4s, termBlink 1s step-end infinite 5.4s;
}

@keyframes termAppear {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes termBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes termCursorIn {
  to {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION GLOW
   ═══════════════════════════════════════════════════════ */
.contact {
  position: relative;
  overflow: hidden;
}

.contact>.section-glow {
  opacity: 0.18;
  width: 800px;
  height: 800px;
  top: -300px;
  right: -300px;
}

/* ═══════════════════════════════════════════════════════
   PAGE TRANSITIONS
   ═══════════════════════════════════════════════════════ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.page-transition.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ═══════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1001;
  pointer-events: none;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), rgba(200, 168, 110, 0.3));
}

@media (max-width: 768px) {
  .scroll-progress {
    height: 3px;
  }
}

/* ═══════════════════════════════════════════════════════
   HERO GRAIN DRIFT
   ═══════════════════════════════════════════════════════ */
.hero__grain {
  animation: grainDrift 25s linear infinite;
}

@keyframes grainDrift {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-2%, 1%);
  }

  50% {
    transform: translate(1%, -1%);
  }

  75% {
    transform: translate(-1%, -2%);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE MENU — STAGGERED ANIMATION
   ═══════════════════════════════════════════════════════ */
.mobile-menu__link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) {
  transition-delay: 0.05s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(2) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(3) {
  transition-delay: 0.15s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(4) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(5) {
  transition-delay: 0.25s;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__link:nth-child(6) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   ABOUT / STORY SECTION
   ═══════════════════════════════════════════════════════ */
.about {
  padding: var(--space-2xl) 0;
  background-color: var(--black-soft);
  border-top: 1px solid var(--charcoal);
}

.about__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about__content {
  max-width: 640px;
}

.about__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--white);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.about__text {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ash);
  margin-bottom: var(--space-md);
}

.about__text:last-of-type {
  margin-bottom: 0;
}

.about__values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__value {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--graphite);
}

.about__value-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.about__value-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ash);
}

@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

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

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════ */
.testimonials {
  padding: var(--space-2xl) 0;
  background-color: var(--black);
  border-top: 1px solid var(--charcoal);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.testimonials__cards {
  position: relative;
  min-height: 180px;
  transition: height 0.4s ease;
}

.testimonial {
  position: absolute;
  inset: 0;
  padding: var(--space-md);
  border: 1px solid var(--graphite);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.testimonial.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--ivory);
  margin-bottom: var(--space-md);
}

.testimonial__author {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

.testimonial__role {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--ash);
  margin-top: 2px;
}

.testimonial__footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 4px;
}

.testimonial__footer--link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.testimonial__footer--link:hover {
  opacity: 0.8;
}

.testimonial__footer--link:hover .testimonial__logo {
  opacity: 1;
  filter: brightness(1.3);
}

.testimonial__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.85;
  filter: brightness(1.1);
}

.testimonial__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(138, 133, 120, 0.25);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  flex-shrink: 0;
}

/* Testimonial dots */
.testimonials__dots {
  display: flex;
  gap: 8px;
  margin-top: var(--space-md);
  justify-content: center;
  grid-column: 2;
}

.testimonials__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--graphite);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.testimonials__dot.is-active {
  background: var(--stone);
  transform: scale(1.4);
}

@media (max-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .testimonials__dots {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .testimonials__cards {
    min-height: auto;
  }

  .testimonial__quote {
    font-size: 0.95rem;
  }
}