@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Rubik:wght@300;400;500;600&family=Caveat:wght@600;700&display=swap');

:root {
  --color-ink: #0a0a0a;
  --color-paper: #fbfaf8;
  --color-paper-alt: #f2efe9;
  --color-teal: #17a0b5;
  --color-teal-dark: #0e7c8d;
  --color-coral: #f2a48c;
  --color-coral-dark: #d97a5f;
  --color-muted: #6b6b6b;
  --color-border: #e4e0d8;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --font-script: 'Caveat', cursive;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 140px;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.27, 1.55);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --max-width: 1280px;
}

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain — subtle fractal-noise texture over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 140px 140px;
}
@media (prefers-reduced-motion: reduce) { body::before { opacity: 0.035; } }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

p { margin: 0; }

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

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-5); }
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Cursor */
.clickable, a, button { cursor: pointer; }

/* ---------- Custom cursor dot (desktop only, decorative) ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-coral);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo-mark {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.logo-mark img,
.logo-mark svg { height: 77px; width: auto; }

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--color-paper);
  letter-spacing: -0.01em;
}
.footer-logo span { color: var(--color-coral); }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 6px 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-coral);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease-elastic), background 0.25s ease;
}

.nav-cta:hover {
  background: var(--color-coral);
  transform: translateY(-2px) scale(1.03);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  padding: 8px;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--color-paper);
  z-index: 999;
  padding: var(--space-4) var(--space-3);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu ul { display: flex; flex-direction: column; gap: var(--space-3); }

.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease-elastic), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--color-coral);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); background: var(--color-coral-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover { transform: translateY(-3px) scale(1.03); background: var(--color-ink); color: var(--color-paper); }

.btn-teal { background: var(--color-teal); color: #fff; }
.btn-teal:hover { transform: translateY(-3px) scale(1.03); background: var(--color-teal-dark); }

/* ---------- Sections ---------- */
main { padding-top: 84px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-7);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: inline-block; will-change: transform; }

.hero-sub {
  margin-top: var(--space-3);
  font-size: 19px;
  color: var(--color-muted);
  max-width: 44ch;
}

.hero-cta-row {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .blob {
  position: absolute;
  inset: 6%;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(135deg, var(--color-teal), var(--color-coral));
  opacity: 0.16;
}

.floating-dot {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero-mark {
  position: relative;
  width: 82%;
  max-width: 420px;
}

/* ---------- Marquee ---------- */
.marquee {
  padding: var(--space-3) 0;
  overflow: hidden;
  background: var(--color-ink);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: marquee 26s linear infinite;
}

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

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

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-paper);
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  white-space: nowrap;
}

.marquee-track span::after {
  content: '\2726';
  color: var(--color-teal);
  font-size: 18px;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo);
}

.service-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 24px 48px rgba(10,10,10,0.10);
}

.service-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-muted);
}

.service-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-3) 0 var(--space-2);
  transition: transform 0.4s var(--ease-elastic);
}

.service-card:hover .icon-wrap { transform: rotate(14deg) scale(1.08); }

.service-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--color-muted);
  font-size: 15px;
}

.service-card:nth-child(1) .icon-wrap { background: rgba(23,160,181,0.14); color: var(--color-teal); }
.service-card:nth-child(2) .icon-wrap { background: rgba(242,164,140,0.18); color: var(--color-coral); }
.service-card:nth-child(3) .icon-wrap { background: rgba(23,160,181,0.14); color: var(--color-teal); }
.service-card:nth-child(4) .icon-wrap { background: rgba(242,164,140,0.18); color: var(--color-coral); }

/* ---------- Work / portfolio grid ---------- */
.work-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.work-card .bg,
.case-hero-img .bg,
.gallery-item .bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out-expo);
}

.work-card:hover .bg { transform: scale(1.08) rotate(-1deg); }

.work-card .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.85) 100%);
}

.work-card .info {
  position: relative;
  padding: var(--space-3);
  color: #fff;
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform 0.4s var(--ease-out-expo);
}

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

.work-card .tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  display: block;
  margin-bottom: 4px;
}

.work-card h3 { font-size: 22px; color: #fff; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

@media (min-width: 800px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: transform 0.4s var(--ease-out-expo);
}

.testimonial-card:hover { transform: translateY(-6px); z-index: 40; }

.stars { display: flex; gap: 4px; color: var(--color-coral); }
.stars svg { width: 16px; height: 16px; }

.testimonial-quote {
  font-size: 17px;
  line-height: 1.6;
}

/* Hover-to-expand: long quotes clamp to 4 lines by default. A duplicate, unclamped
   copy sits absolutely over the card and pops open on hover/focus — same popped-out,
   drop-shadowed language as the gallery's reveal-overlay, just full height instead
   of full bleed. Touch devices never get a hover, so they just get the full text. */
@media (hover: hover) and (pointer: fine) {
  .testimonial-card > .testimonial-quote {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .testimonial-card:has(.testimonial-expand) { cursor: pointer; }
}

.testimonial-expand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(10,10,10,0.06);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.45s var(--ease-out-expo), box-shadow 0.4s ease;
}

.testimonial-card:hover .testimonial-expand,
.testimonial-card:focus-within .testimonial-expand {
  opacity: 1;
  transform: scale(1.03);
  pointer-events: auto;
  box-shadow: 0 28px 64px rgba(10,10,10,0.3);
}

@media (hover: none) {
  .testimonial-expand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-expand { transition-duration: 0.01ms; }
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.author-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.author-role { font-size: 13px; color: var(--color-muted); }

/* ---------- Stats ---------- */
.stats-strip {
  background: var(--color-ink);
  color: var(--color-paper);
  padding: var(--space-6) 0;
}

.stats-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

@media (min-width: 800px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--color-teal);
}

.stat-label {
  font-size: 14px;
  color: rgba(251,250,248,0.7);
  margin-top: 6px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-teal), var(--color-coral));
  padding: var(--space-6) var(--space-4);
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
}

.cta-band p {
  margin-top: var(--space-2);
  font-size: 17px;
  opacity: 0.92;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-ink);
  margin-top: var(--space-4);
}
.cta-band .btn-primary:hover { background: var(--color-ink); color: #fff; }

/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.form-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: #fff;
  transition: border-color 0.25s ease;
}

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

.form-field .hint { font-size: 13px; color: var(--color-muted); }

.info-card {
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(251,250,248,0.12);
}
.info-row:last-child { border-bottom: none; }

.info-row .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(23,160,181,0.2);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: rgba(251,250,248,0.75);
  padding: var(--space-6) 0 var(--space-3);
}

.footer-top {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-top h4 {
  color: var(--color-paper);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.footer-top ul { display: flex; flex-direction: column; gap: 10px; }
.footer-top a { font-size: 14px; transition: color 0.2s ease; }
.footer-top a:hover { color: var(--color-teal); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(251,250,248,0.12);
  font-size: 13px;
}

.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(251,250,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.3s var(--ease-elastic);
}
.social-row a:hover { background: var(--color-coral); transform: translateY(-3px); border-color: var(--color-coral); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}

.page-hero h1 { font-size: clamp(40px, 6vw, 72px); }
.page-hero .hero-sub { margin-top: var(--space-2); }

/* ---------- Reveal utility (GSAP targets) ----------
   Initial hidden state is applied by gsap.from() at runtime (main.js),
   never in CSS, so content is fully visible if JS fails to load. */

/* ---------- Torn paper divider ---------- */
.torn-divider {
  position: relative;
  height: 44px;
  line-height: 0;
  overflow: hidden;
}
.torn-divider svg { display: block; width: 100%; height: 100%; }
.torn-divider.torn-up { margin-bottom: -1px; }
.torn-divider.torn-down { margin-top: -1px; }

/* ---------- Chunky halftone texture ---------- */
.halftone-patch {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, currentColor 2.8px, transparent 3px);
  background-size: 17px 17px;
  -webkit-mask-image: radial-gradient(circle at var(--mask-x, 50%) var(--mask-y, 50%), black, transparent 68%);
  mask-image: radial-gradient(circle at var(--mask-x, 50%) var(--mask-y, 50%), black, transparent 68%);
}

.work-card .halftone-overlay,
.story-visual .halftone-overlay,
.service-visual .halftone-overlay,
.case-hero-img .halftone-overlay,
.gallery-item .halftone-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.55) 2.1px, transparent 2.3px);
  background-size: 10px 10px;
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
}

/* ---------- Collage: torn color blocks ---------- */
.torn-block {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.torn-block svg { display: block; width: 100%; height: 100%; overflow: visible; }
.torn-block.with-shadow svg { filter: drop-shadow(0 14px 22px rgba(10,10,10,0.16)); }

.torn-divider svg { overflow: visible; }
.torn-divider.with-shadow svg { filter: drop-shadow(0 6px 10px rgba(10,10,10,0.14)); }

/* ---------- Real torn-paper divider (image asset) ---------- */
.paper-divider {
  height: 70px;
  background-image: url('../assets/tornedgeBEIGE.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.paper-divider.flip { transform: scaleY(-1); }
.paper-divider.dark {
  background-image: url('../assets/tornedge.png');
}

.splat-dot { transform-box: fill-box; transform-origin: center; }

/* ---------- Collage: script accents ---------- */
.script-note {
  font-family: var(--font-script);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-coral-dark);
  line-height: 1.15;
  transform: rotate(-4deg);
  position: relative;
  display: inline-block;
}
.script-note .squiggle {
  display: block;
  width: 70%;
  height: 8px;
  margin-top: 2px;
}
.script-note.on-dark { color: #fff; }

/* ---------- Collage: pastel service tiles ---------- */
.pastel-grid {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
@media (min-width: 640px) { .pastel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pastel-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pastel-tile {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease-out-expo);
  position: relative;
  color: inherit;
  text-decoration: none;
}
.pastel-tile:hover { transform: translateY(-6px); }
.pastel-tile .icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.06);
  margin-bottom: var(--space-2);
}
.pastel-tile h3 { font-size: 17px; margin-bottom: 4px; }
.pastel-tile p { font-size: 14px; color: var(--color-muted); }
.pastel-tile .go {
  position: absolute; top: var(--space-3); right: var(--space-3);
  width: 26px; height: 26px; opacity: 0.6;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease;
}
.pastel-tile:hover .go { transform: translate(4px,-4px); opacity: 1; }
.pastel-tile.tint-coral { background: #fbe3da; }
.pastel-tile.tint-grey { background: #eef0ef; }
.pastel-tile.tint-teal { background: #dcedf0; }

/* ---------- Collage: split section layout ---------- */
.split-section {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}
@media (min-width: 860px) {
  .split-section { grid-template-columns: 0.85fr 2fr; gap: var(--space-6); }
}
.split-label { font-size: 13px; }
.split-heading { font-size: clamp(26px, 3.4vw, 38px); margin-top: 10px; line-height: 1.1; }
.split-heading .rule { display: block; width: 46px; height: 3px; background: var(--color-coral); margin-top: 14px; }

/* ---------- Collage hero photo panel ---------- */
.collage-hero {
  position: relative;
  overflow: visible;
  background: var(--color-paper);
}
.collage-hero-grid {
  position: relative;
  display: grid;
  gap: var(--space-4);
  z-index: 1;
}
@media (min-width: 980px) {
  .collage-hero-grid { grid-template-columns: 1fr 1.3fr; align-items: center; }
}
.collage-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.collage-photo .halftone-overlay {
  background-image: radial-gradient(circle, rgba(10,10,10,0.65) 1.6px, transparent 1.8px);
  background-size: 7px 7px;
  opacity: 0.6;
}
.halftone-patch-solid {
  background-image: radial-gradient(circle, currentColor 3.4px, transparent 3.6px);
  background-size: 14px 14px;
}
@media (max-width: 720px) {
  .hero-corner-patch { width: 120px !important; height: 120px !important; opacity: 0.1 !important; }
}

@media (max-width: 860px) {
  .collage-hero {
    min-height: 640px !important;
    padding-top: var(--space-6) !important;
    padding-bottom: var(--space-4) !important;
    background-position: 78% center !important;
  }
  .hero-text-col {
    max-width: 100% !important;
    background: rgba(251,250,248,0.9);
    padding: 22px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(3px);
  }
  .hero-script { display: none !important; }
}

/* ---------- Decorative palm silhouette ---------- */
.palm-deco { position: absolute; pointer-events: none; opacity: 0.5; z-index: -1; }

/* ---------- Case study ---------- */
.case-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-4);
}

.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.case-meta-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.case-meta-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-top: 4px;
}

.case-narrative {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
@media (min-width: 860px) {
  .case-narrative { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}
.case-narrative-block .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-coral);
}
.case-narrative-block h3 { font-size: 21px; margin-top: 8px; margin-bottom: 10px; }
.case-narrative-block p { color: var(--color-muted); font-size: 15px; line-height: 1.7; }

.case-gallery {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
@media (min-width: 720px) {
  .case-gallery { grid-template-columns: repeat(2, 1fr); }
}
.case-gallery .gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  isolation: isolate;
  cursor: pointer;
}
.case-gallery .gallery-item.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }

/* Hover-to-reveal: crossfade to the full, uncropped image, popped out above the grid.
   Two stacked <img> tags (same src) avoid animating non-animatable object-fit/position —
   the base crop fades out while the contain-fit overlay fades + scales in, so the whole
   transition eases smoothly instead of snapping. */
.case-gallery .gallery-item > img:first-child {
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
}
.case-gallery .gallery-item .reveal-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  background: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92) rotate(0deg);
  pointer-events: none;
  border-radius: var(--radius-md);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.55s var(--ease-out-expo), box-shadow 0.5s ease;
}
.case-gallery .gallery-item:hover {
  overflow: visible;
  z-index: 40;
}
.case-gallery .gallery-item:hover > img:first-child {
  opacity: 0;
  transform: scale(0.97);
}
.case-gallery .gallery-item:hover .reveal-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.35) rotate(var(--tilt, -2deg));
  box-shadow: 0 28px 64px rgba(10,10,10,0.4);
}
@media (hover: none) {
  .case-gallery .gallery-item:hover { overflow: hidden; z-index: 1; }
  .case-gallery .gallery-item:hover > img:first-child { opacity: 1; transform: none; }
  .case-gallery .gallery-item:hover .reveal-overlay { opacity: 0; transform: translate(-50%, -50%) scale(0.92) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .case-gallery .gallery-item > img:first-child,
  .case-gallery .gallery-item .reveal-overlay {
    transition-duration: 0.01ms;
  }
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-2);
  padding: var(--space-5);
  background: var(--color-ink);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
}
.case-stats .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-teal);
}
.case-stats .lbl { font-size: 13px; opacity: 0.75; margin-top: 4px; }

.case-quote {
  margin-top: var(--space-2);
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.case-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  line-height: 1.4;
}
.case-quote cite {
  display: block;
  margin-top: var(--space-3);
  font-style: normal;
  font-size: 14px;
  color: var(--color-muted);
}

.case-nav-links {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.case-nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.case-nav-links a:hover { color: var(--color-teal); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-5 { margin-top: var(--space-5); }
.section-head { max-width: 640px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
