/* Self-hosted Suisse Int’l — referenced from index.html */
@font-face {
  font-family: "Suisse Int'l";
  src: url("assets/fonts/SuisseIntl-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Int'l";
  src: url("assets/fonts/SuisseIntl-Book.woff2") format("woff2");
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Int'l";
  src: url("assets/fonts/SuisseIntl-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Int'l";
  src: url("assets/fonts/SuisseIntl-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Int'l";
  src: url("assets/fonts/SuisseIntl-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@keyframes float-cta-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-cta-in-mobile {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }
}

/* Floating glass CTA */
.float-cta {
  opacity: 0;
  transform: translateY(-8px);
  animation: float-cta-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards;
}

.float-cta .arr {
  display: inline-block;
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.float-cta:hover .arr {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .float-cta {
    animation: float-cta-in-mobile 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s forwards;
  }
  .float-cta:hover {
    transform: translateX(50%) translateY(-1px);
  }
}

/* Lucide icons inside pill buttons */
.btn .ico svg,
.btn .ico svg * {
  width: 14px !important;
  height: 14px !important;
  display: block;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Word reveal (script-driven) */
.tx .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.tx.in .w {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.tx .ws {
  display: inline-block;
  width: 0.25em;
}

.tx .ws .left {
  display: inline-block;
  width: 0;
}

/* Block reveal */
.r {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.1, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.r.in {
  opacity: 1;
  transform: none;
}

/* Journal carousel — silent auto-scroll */
@keyframes journal-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.journal-track {
  animation: journal-scroll 48s linear infinite;
  will-change: transform;
}

.journal-marquee:hover .journal-track,
.journal-marquee:focus-within .journal-track {
  animation-play-state: paused;
}

/* fade edges so cards dissolve into the page */
.journal-marquee::before,
.journal-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 6vw, 80px);
  pointer-events: none;
  z-index: 2;
}
.journal-marquee::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}
.journal-marquee::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

/* Work carousel — silent auto-scroll, same engine as the journal marquee */
@keyframes work-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.work-track {
  animation: work-scroll 40s linear infinite;
  will-change: transform;
}

.work-marquee:hover .work-track,
.work-marquee:focus-within .work-track {
  animation-play-state: paused;
}

.work-marquee::before,
.work-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 6vw, 80px);
  pointer-events: none;
  z-index: 2;
}
.work-marquee::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}
.work-marquee::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

@media (prefers-reduced-motion: reduce) {
  .float-cta,
  .r,
  .tx .w,
  .journal-track,
  .work-track {
    animation: none !important;
    transition: none !important;
  }
  .float-cta {
    opacity: 1 !important;
  }
  .r {
    opacity: 1;
    transform: none;
  }
  .tx .w {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .float-cta {
    transform: translateX(50%) !important;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .float-cta {
    transform: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   Case study cards (shared between index.html and case-studies.html)
   ────────────────────────────────────────────────────────────── */

.cs-card a {
  color: inherit;
}

.cs-thumb {
  isolation: isolate;
}

.cs-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(14, 14, 14, 0.06);
  border-radius: inherit;
  pointer-events: none;
}

.cs-thumb-art {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.cs-card:hover .cs-thumb-art {
  transform: scale(1.04);
}

/* Generative gradient/grid thumbnails — each case study gets its own
   palette so we don't depend on image assets. */
.cs-art-1 {
  background:
    radial-gradient(120% 80% at 20% 20%, #f3ead8 0%, transparent 60%),
    radial-gradient(120% 80% at 90% 80%, #d8c4a4 0%, transparent 55%),
    linear-gradient(135deg, #efe7d4 0%, #c9b78f 100%);
}

.cs-art-2 {
  background:
    radial-gradient(100% 70% at 80% 10%, #dde6e2 0%, transparent 60%),
    radial-gradient(100% 70% at 10% 90%, #2a3a35 0%, transparent 55%),
    linear-gradient(160deg, #cdd6cf 0%, #4a5b53 100%);
}

.cs-art-3 {
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 60%),
    linear-gradient(135deg, #1c1c1c 0%, #3a2f24 100%);
}

.cs-art-4 {
  background:
    radial-gradient(90% 70% at 70% 20%, #f4dcd0 0%, transparent 60%),
    linear-gradient(150deg, #e8c7b6 0%, #8a4e3b 100%);
}

.cs-art-5 {
  background:
    radial-gradient(120% 80% at 30% 70%, #e1d8ee 0%, transparent 60%),
    linear-gradient(135deg, #cdc2dd 0%, #514572 100%);
}

.cs-art-6 {
  background:
    radial-gradient(90% 70% at 20% 30%, #fff 0%, transparent 60%),
    linear-gradient(145deg, #eef0ef 0%, #b8c0bb 100%);
}

.cs-art-7 {
  background:
    radial-gradient(100% 80% at 80% 80%, #f5e7c4 0%, transparent 60%),
    linear-gradient(135deg, #2a3441 0%, #0f1620 100%);
}

.cs-art-8 {
  background:
    radial-gradient(100% 70% at 50% 0%, #d2e5db 0%, transparent 65%),
    linear-gradient(180deg, #b7cfc1 0%, #6a8a7a 100%);
}

.cs-art-9 {
  background:
    radial-gradient(120% 80% at 20% 80%, #ffd9b3 0%, transparent 60%),
    linear-gradient(135deg, #ffe7c8 0%, #c46a2a 100%);
}

.cs-art-10 {
  background:
    radial-gradient(100% 80% at 80% 20%, #e7e3d8 0%, transparent 60%),
    linear-gradient(160deg, #d4cfbe 0%, #3a382f 100%);
}

/* ──────────────────────────────────────────────────────────────
   Filter chips & dropdowns (case-studies.html)
   ────────────────────────────────────────────────────────────── */

.cs-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(14, 14, 14, 0.14);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #0e0e0e;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.cs-filter-btn:hover {
  border-color: rgba(14, 14, 14, 0.4);
}

.cs-filter-btn[aria-expanded="true"] {
  background: #0e0e0e;
  border-color: #0e0e0e;
  color: #fff;
}

.cs-filter-btn .caret {
  transition: transform 0.2s ease;
}

.cs-filter-btn[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.cs-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(14, 14, 14, 0.1);
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(14, 14, 14, 0.18);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.cs-filter-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cs-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0e0e0e;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

.cs-filter-option:hover {
  background: #f4f2ee;
}

.cs-filter-option input {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(14, 14, 14, 0.3);
  border-radius: 3px;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  background: #fff;
}

.cs-filter-option input:checked {
  background: #0e0e0e;
  border-color: #0e0e0e;
}

.cs-filter-option input:checked::after {
  content: "";
  width: 7px;
  height: 7px;
  background: #fff;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 20%, 86% 6%, 38% 70%);
}

.cs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f4f2ee;
  border-radius: 999px;
  font-size: 12px;
  color: #0e0e0e;
}

.cs-chip button {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  color: #6a6a66;
  cursor: pointer;
}

.cs-chip button:hover {
  color: #0e0e0e;
}

/* Card is hidden by filter logic */
.cs-card[hidden] {
  display: none;
}

/* Testimonial card */
.cs-quote {
  break-inside: avoid;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
  padding: 28px 0 0;
}

.cs-quote blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: #0e0e0e;
  text-wrap: pretty;
}

.cs-quote .cite {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a6a66;
}
