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

:root {
  --bg:           #faf8f3;
  --bg-hero:      #fff9e8;
  --bg-work:      #f4f0e6;
  --text:         #1c1c1a;
  --muted:        #6b665c;
  --primary:      #e8b400;
  --primary-dark: #c99a00;
  --grid-gap:     clamp(0.45rem, 1.2vw, 1rem);
  --tile-ratio:   3 / 4;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: auto; /* Lenis owns smooth scrolling */
  overflow-x: clip;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

/* ─── Page transition overlay ──────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  pointer-events: none;
}

.pt-panel {
  flex: 1 1 0;
  height: 100%;
  background: linear-gradient(180deg, #ffe680 0%, #ffd23d 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  will-change: transform;
}

.pt-panel:nth-child(even) {
  background: linear-gradient(180deg, #ffdd57 0%, #ffc61a 100%);
}

.pt-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.65rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #1c1c1a;
  opacity: 0;
  pointer-events: none;
}

/* Covered state on initial load (JS then wipes it away) */
.has-js .pt-panel {
  transform: scaleY(1);
  transform-origin: top;
}

.has-js .pt-label {
  opacity: 1;
}

/* ─── Navbar ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vh, 1.6rem) clamp(1.25rem, 5vw, 4rem);
  color: var(--text);
  pointer-events: none;
}

.nav a {
  pointer-events: auto;
  color: var(--text);
  text-decoration: none;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 120;
}

.nav-logo img {
  display: block;
  width: auto;
  height: clamp(2.66rem, 4.61vw, 3.38rem); /* +20% on desktop */
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.5rem);
  color: var(--text);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-index {
  font-family: var(--font-display);
  font-size: 0.62rem;
  opacity: 0.7;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.4rem;
  height: 1px;
  background: currentColor;
  transition: right 0.35s ease;
}

.nav-links a:hover::after {
  right: 0;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav.is-open .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav.is-open .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ─── Hero section ─────────────────────────────────────────── */

.hero {
  height: 300vh;
  position: relative;
  background: var(--bg-hero);
  /* Clip spreading tiles so they don't widen the page */
  overflow: hidden;
}

.hero-sticky {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(2.5rem, 6vh, 4.5rem);
  padding:
    max(clamp(1.25rem, 4vh, 2.5rem), env(safe-area-inset-top, 0px))
    clamp(0.75rem, 2vw, 1.25rem)
    clamp(1.5rem, 5vh, 3rem);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 80, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #fffdf5 0%, var(--bg-hero) 100%);
}

.hero-sticky::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23a)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 110px 110px;
}

.hero-sticky::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23b)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
}

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

/* ─── Tagline ──────────────────────────────────────────────── */

.tagline {
  flex: 0 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 3.35rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
  will-change: transform, opacity;
  max-width: min(16ch, 90vw);
  margin-inline: auto;
  color: var(--text);
}

.tagline-line {
  display: block;
  min-height: 2.5em;
}

.tagline-base {
  color: var(--text);
}

.tagline-accent {
  color: var(--primary-dark);
}

/* Blinking caret for the typewriter effect */
.tagline-caret {
  display: inline-block;
  width: 0.055em;
  height: 0.92em;
  margin-left: 0.04em;
  vertical-align: -0.1em;
  background: var(--primary-dark);
  animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

/* ─── Single-row image strip ───────────────────────────────── */

.grid-wrapper {
  flex: 0 0 auto;
  width: min(96%, 1120px);
  height: auto;
  min-height: 0;
  margin-top: clamp(0.75rem, 2.5vh, 1.75rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  position: relative;
  width: 100%;
}

.grid-item {
  aspect-ratio: var(--tile-ratio);
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 6px 28px rgba(28, 28, 26, 0.12);
}

.description {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.description-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.description-text {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 28ch;
  text-shadow:
    0 0 20px rgba(255, 249, 232, 0.95),
    0 0 40px rgba(255, 249, 232, 0.8);
}

/* ─── Work section (minimal — mirrors the hero's motion) ───── */

.work {
  height: 300vh;
  position: relative;
  background: var(--bg-hero);
}

.work-sticky {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  row-gap: clamp(1.25rem, 3.5vh, 2.5rem);
  padding:
    max(clamp(1.25rem, 4vh, 2.5rem), env(safe-area-inset-top, 0px))
    clamp(0.75rem, 2vw, 1.25rem)
    clamp(1.25rem, 4vh, 2.5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 80, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #fffdf5 0%, var(--bg-hero) 100%);
}

/* Same film grain as the hero, for a seamless texture between sections */
.work-grain {
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23a)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 110px 110px;
}

.work-sticky > *:not(.work-grain) {
  position: relative;
  z-index: 1;
}

.work-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 5.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  will-change: transform, opacity;
}

.work-title-line {
  display: block;
}

.work-title-accent {
  color: var(--primary-dark);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  width: min(94vw, 1000px);
}

.work-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 6px 28px rgba(28, 28, 26, 0.12);
  will-change: transform;
}

.work-caption {
  text-align: center;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
  opacity: 0;
  will-change: transform, opacity;
}

/* work-grid stays 3-col on mobile so the spread animation remains visible
   (see mobile block at end of file) */

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION SYSTEM + SCROLL ANIMATION PRIMITIVES
   ═══════════════════════════════════════════════════════════ */

.section {
  position: relative;
  padding: clamp(5rem, 14vh, 9rem) clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: 74rem;
  margin-inline: auto;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 20ch;
  color: var(--text);
}

/* Word-split reveal wrappers (created in JS) */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

/* Pre-hide animated elements only when JS is available */
.has-js [data-reveal],
.has-js [data-stagger] > *,
.has-js [data-split],
.has-js .why-list li,
.has-js .vm-card,
.has-js .svc-row {
  opacity: 0;
}

/* Floating parallax words */
.float-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-word {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: lowercase;
  font-size: clamp(3rem, 12vw, 10rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(232, 180, 0, 0.12);
  white-space: nowrap;
  will-change: transform;
}

.float-word--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(28, 28, 26, 0.12);
}

/* Oversized ghost word that drifts hard on scroll */
.section-ghost {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: lowercase;
  font-size: clamp(6rem, 26vw, 24rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 154, 0, 0.18);
  white-space: nowrap;
  will-change: transform;
}

/* Dark outline variant (testimonials “voices”) */
.section-ghost--ink {
  -webkit-text-stroke: 1.6px rgba(28, 28, 26, 0.32);
}

/* ─── About ────────────────────────────────────────────────── */

.about {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232, 180, 0, 0.12) 0%, transparent 45%),
    var(--bg-hero);
}

.about-copy {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  display: grid;
  gap: 1.5rem;
  max-width: 60ch;
}

.about-copy p {
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.75;
  color: var(--muted);
}

/* ─── Services (pinned horizontal scroll) ──────────────────── */

.services {
  position: relative;
  /* Same warm cream base as the rest of the homepage */
  background: var(--bg-hero);
}

/* Mobile list UI — hidden on desktop */
.services-mobile {
  display: none;
}

.services-pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 80, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #fffdf5 0%, var(--bg-hero) 100%);
}

/* Strong fine grain — more evident than other sections */
.services-pin::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='sn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23sn)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 90px 90px;
}

/* Second coarser grain layer for depth */
.services-pin::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='sc'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23sc)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
}

.services-head {
  position: relative;
  flex: 0 0 auto;
  z-index: 3;
  padding: clamp(2rem, 7vh, 4rem) clamp(1.25rem, 5vw, 4rem) clamp(1rem, 3vh, 1.75rem);
}

.services-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-top: 0.25rem;
}

.services-sub {
  margin-top: 0.6rem;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.5;
}

.services-hint {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.services-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(232, 180, 0, 0.6);
  animation: hint-pulse 1.8s ease-out infinite;
}

@keyframes hint-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 180, 0, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(232, 180, 0, 0); }
}

.services-track {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding-inline: clamp(1.25rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
  will-change: transform;
}

.service-card {
  flex: 0 0 auto;
  width: min(80vw, 350px);
  height: min(58vh, 480px);
  max-height: 100%;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.08);
  box-shadow: 0 16px 44px rgba(28, 28, 26, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(232, 180, 0, 0.28);
}

.service-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.06);
}

.service-num {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #1c1c1a;
  background: var(--primary);
  padding: 0.3rem 0.6rem;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(28, 28, 26, 0.2);
}

.service-body {
  flex: 0 0 auto;
  height: clamp(140px, 19vh, 172px);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid rgba(28, 28, 26, 0.08);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  /* Reserve two lines so descriptions start at the same place */
  min-height: 2.24em;
}

.service-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: auto;
}

/* Closing call-to-action card at the end of the track */
.service-card--cta {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-cta-inner {
  padding: 2rem;
}

.service-cta-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(28, 28, 26, 0.65);
  margin-bottom: 0.75rem;
}

.service-card--cta h3 {
  color: #1c1c1a;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.service-cta-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid #1c1c1a;
  border-radius: 2px;
  background: transparent;
  color: #1c1c1a;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.service-cta-link:hover {
  background: #1c1c1a;
  color: #fff;
}

/* ─── Why choose ───────────────────────────────────────────── */

.why {
  background:
    radial-gradient(ellipse at 10% 100%, rgba(232, 180, 0, 0.1) 0%, transparent 45%),
    #fffdf6;
}

.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  perspective: 1000px;
}

.why-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(28, 28, 26, 0.12);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--text);
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.why-index {
  font-family: var(--font-display);
  font-size: 0.85em;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .why-list {
    grid-template-columns: 1fr;
  }
}

/* ─── Vision & Mission ─────────────────────────────────────── */

.vm {
  background: var(--bg-hero);
}

.vm-grid {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  perspective: 1200px;
}

.vm-card {
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.vm-card .kicker {
  margin-bottom: 1.5rem;
}

.vm-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

/* ─── Testimonials ─────────────────────────────────────────── */

.testimonials {
  position: relative;
  overflow: hidden;
  /* One viewport tall — content scales to fit, not spill */
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  /* Tighter than default .section so head + quote fit on screen */
  padding-block: clamp(1.5rem, 5vh, 3.5rem);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(232, 180, 0, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(255, 220, 80, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #fffdf5 0%, var(--bg-work) 100%);
}

.testi-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 72rem;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testi-head {
  max-width: min(40rem, 100%);
  margin-bottom: clamp(0.55rem, 1.6vh, 1.15rem);
  flex-shrink: 0;
}

.testimonials .testi-head .kicker {
  margin-bottom: 0.4rem;
}

.testimonials .section-title {
  max-width: min(28ch, 100%);
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.testi-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  row-gap: 0.85rem;
  align-items: stretch;
  min-height: 0;
  flex: 0 1 auto;
}

.testi-progress {
  grid-row: 1;
  grid-column: 1;
  align-self: start;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  padding-top: 0.25rem;
}

.testi-progress-current {
  color: var(--primary-dark);
  font-weight: 600;
}

.testi-progress-sep {
  opacity: 0.35;
  margin: 0 0.2rem;
}

.testi-progress-total {
  opacity: 0.4;
  font-size: 0.85em;
}

.testi-viewport {
  grid-row: 1;
  grid-column: 2;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.testi-track {
  position: relative;
  height: 100%;
}

.testi-quote {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.85rem, 2vh, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}

.testi-quote.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.testi-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: min(38ch, 100%);
}

.testi-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testi-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.testi-role {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.testi-marks {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.testi-mark {
  display: block;
  height: 2px;
  width: 1.75rem;
  background: rgba(28, 28, 26, 0.15);
  transform-origin: left center;
  transition: background 0.3s ease, width 0.35s ease;
}

.testi-mark.is-on {
  background: var(--primary);
  width: 2.75rem;
}

.has-js .testimonials .testi-quote:not(.is-active) {
  opacity: 0;
}

/* Short desktop viewports — keep title + quote fully visible */
@media (max-height: 860px) and (min-width: 769px) {
  .testimonials {
    padding-block: clamp(1rem, 3vh, 1.75rem);
  }

  .testi-head {
    margin-bottom: 0.55rem;
  }

  .testimonials .section-title {
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    max-width: min(34ch, 100%);
  }

  .testi-text {
    font-size: clamp(0.95rem, 1.55vw, 1.25rem);
    line-height: 1.36;
    max-width: min(42ch, 100%);
  }

  .testi-quote {
    gap: 0.65rem;
  }

  .testi-progress {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
  }
}

@media (max-height: 700px) and (min-width: 769px) {
  .testimonials .section-title {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
  }

  .testi-text {
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  }

  .testimonials .testi-head .kicker {
    margin-bottom: 0.25rem;
    font-size: 0.65rem;
  }
}

/* ─── CTA ──────────────────────────────────────────────────── */

.cta {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(232, 180, 0, 0.3) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-hero) 0%, #fff6d8 100%);
}

.cta-ghost {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 16vw, 15rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 154, 0, 0.28);
  white-space: nowrap;
  will-change: transform;
}

.cta-inner {
  margin-inline: auto;
  max-width: 60rem;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 11vw, 8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.cta-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  border: 1px solid var(--text);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-btn:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .has-js [data-reveal],
  .has-js [data-stagger] > *,
  .has-js [data-split] {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   SUBPAGES (work.html / services.html)
   ═══════════════════════════════════════════════════════════ */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 20vh, 12rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vh, 5rem);
  background:
    radial-gradient(ellipse at 70% 0%, rgba(232, 180, 0, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #fffdf5 0%, var(--bg-hero) 100%);
  isolation: isolate;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 16ch;
}

.page-lede {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

/* ─── Blogs page ───────────────────────────────────────────── */

.blogs-section {
  max-width: 74rem;
  margin-inline: auto;
  padding-top: clamp(1.5rem, 4vh, 3rem);
}

.blog-feature {
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.blog-feature-link {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.blog-feature-media {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  background: rgba(28, 28, 26, 0.06);
}

.blog-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.blog-feature-link:hover .blog-feature-media img {
  transform: scale(1.04);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.blog-cat {
  color: var(--primary-dark);
  font-weight: 500;
}

.blog-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(28, 28, 26, 0.28);
}

.blog-feature-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 16ch;
  margin-bottom: 0.9rem;
}

.blog-feature-excerpt {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 1.35rem;
}

.blog-read {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.blog-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(28, 28, 26, 0.12);
}

.blog-list-head .kicker {
  margin-bottom: 0;
}

.blog-count {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-row {
  border-bottom: 1px solid rgba(28, 28, 26, 0.1);
  will-change: transform, opacity;
}

.blog-row-link {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: clamp(0.85rem, 2.5vw, 1.75rem);
  align-items: center;
  padding: clamp(1.15rem, 2.4vh, 1.65rem) 0.1rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease;
}

.blog-row-link:hover {
  opacity: 0.72;
}

.blog-row-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
  min-width: 1.6rem;
}

.blog-row-body .blog-meta {
  margin-bottom: 0.45rem;
}

.blog-row-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.blog-row-excerpt {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 48ch;
}

.blog-row-aside {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.blogs-cta {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(232, 180, 0, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #fff6d8 100%);
  text-align: center;
}

.blogs-cta-inner {
  margin-inline: auto;
  max-width: 40rem;
}

.blogs-cta .page-lede {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.blogs-cta .section-title {
  margin-inline: auto;
  max-width: 16ch;
}

.has-js .blog-row:not(.is-visible) {
  opacity: 0;
}

.has-js .blog-row.is-visible,
.blog-feature.is-visible {
  opacity: 1;
}

.blog-row-thumb {
  margin: 0;
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(28, 28, 26, 0.06);
}

.blog-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .blog-feature-link {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .blog-feature-title {
    max-width: 20ch;
  }
}

/* Work gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 74rem;
  margin-inline: auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(28, 28, 26, 0.12);
}

.gallery-item:nth-child(3n + 1) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

/* ─── Gallery showcase page ────────────────────────────────── */

.showcase-section {
  padding-top: clamp(0.5rem, 2vh, 1.5rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.showcase-toolbar {
  max-width: 74rem;
  margin: 0 auto clamp(1.75rem, 4vh, 2.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.showcase-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.showcase-filter {
  appearance: none;
  border: 1px solid rgba(28, 28, 26, 0.14);
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.showcase-filter:hover {
  color: var(--text);
  border-color: rgba(28, 28, 26, 0.28);
}

.showcase-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text);
}

.showcase-count {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.showcase-grid {
  max-width: 74rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.8vw, 1.35rem);
}

.showcase-item {
  position: relative;
  grid-column: span 4;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #efe8d6;
  box-shadow: 0 10px 30px rgba(28, 28, 26, 0.08);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.showcase-item.is-hidden {
  display: none;
}

.showcase-item--hero {
  grid-column: span 8;
  grid-row: span 2;
}

.showcase-item--wide {
  grid-column: span 8;
}

.showcase-item--tall {
  grid-column: span 4;
  grid-row: span 2;
}

.showcase-open {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  text-align: left;
  color: inherit;
}

.showcase-item--hero .showcase-open,
.showcase-item--tall .showcase-open {
  min-height: 100%;
  aspect-ratio: auto;
}

.showcase-item:not(.showcase-item--hero):not(.showcase-item--tall) .showcase-open {
  aspect-ratio: 4 / 5;
}

.showcase-item--wide .showcase-open {
  aspect-ratio: 16 / 9;
}

.showcase-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  filter: saturate(0.92);
}

.showcase-open:hover img,
.showcase-open:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.showcase-meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 18, 12, 0.62) 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.showcase-open:hover .showcase-meta,
.showcase-open:focus-visible .showcase-meta {
  opacity: 1;
  transform: translateY(0);
}

.showcase-index {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--primary);
}

.showcase-caption {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
}

/* Lightbox */
.showcase-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(20, 18, 12, 0.88);
  backdrop-filter: blur(10px);
}

.showcase-lightbox[hidden] {
  display: none;
}

.showcase-lightbox-figure {
  margin: 0 auto;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.showcase-lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.showcase-lightbox-figure figcaption {
  color: rgba(255, 249, 232, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.showcase-lightbox-close,
.showcase-lightbox-nav {
  appearance: none;
  border: 0;
  background: rgba(255, 249, 232, 0.1);
  color: #fff9e8;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
}

.showcase-lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 2;
}

.showcase-lightbox-close:hover,
.showcase-lightbox-nav:hover {
  background: var(--primary);
  color: var(--text);
}

body.showcase-open {
  overflow: hidden;
}

/* Services grid (subpage) */
.svc-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 78rem;
  margin-inline: auto;
}

.svc-page-grid .service-card {
  width: auto;
  height: auto;
  max-height: none;
}

.svc-page-grid .service-media {
  flex: 0 0 auto;
  height: 200px;
}

.svc-page-grid .service-body {
  height: auto;
  min-height: 132px;
}

/* ─── Services: interactive index list (hover-reveal) ──────── */
.svc-list-section {
  position: relative;
  overflow: hidden;
}

.svc-list {
  list-style: none;
  max-width: 78rem;
  margin-inline: auto;
  perspective: 1200px;
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3.5vw, 2.5rem) 0.5rem;
  border-top: 1px solid transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(28, 28, 26, 0.15);
  transform: scaleX(var(--line-scale, 0));
  transform-origin: left center;
  will-change: transform;
}

.svc-row:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(28, 28, 26, 0.15);
  transform: scaleX(var(--line-scale, 0));
  transform-origin: left center;
  will-change: transform;
}

.svc-row-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
  will-change: transform, opacity;
}

.svc-row-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
  will-change: transform, opacity;
  transition: color 0.3s ease;
}

.svc-row-desc {
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 30ch;
  will-change: transform, opacity;
}

.svc-row.is-active .svc-row-title {
  color: var(--primary-dark);
}

/* Floating image preview that follows the cursor */
.svc-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(210px, 22vw, 320px);
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  box-shadow: 0 24px 60px rgba(28, 28, 26, 0.3);
}

.svc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .svc-row {
    grid-template-columns: auto 1fr;
  }
  .svc-row-desc {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .svc-row {
    opacity: 1;
  }
}

/* ─── Contact page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  max-width: 74rem;
  margin-inline: auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.contact-item-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

a.contact-item-value:hover {
  color: var(--primary-dark);
}

.contact-socials {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-socials a {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 28, 26, 0.25);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-socials a:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(28, 28, 26, 0.18);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 180, 0, 0.2);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .cta-btn {
  justify-self: start;
  margin-top: 0.25rem;
}

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

/* ─── Site footer (minimal) ────────────────────────────────── */

.site-footer {
  border-top: 1px solid rgba(28, 28, 26, 0.1);
  background: var(--bg-hero);
  padding:
    1.5rem clamp(1.25rem, 5vw, 4rem)
    max(1.5rem, env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  max-width: 74rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 2.73rem; /* +30% from 2.1rem */
  object-fit: contain;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.footer-socials a:hover {
  color: var(--primary-dark);
  background: rgba(232, 180, 0, 0.14);
  transform: translateY(-1px);
}

.footer-socials i {
  line-height: 1;
}

.footer-end {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-credit {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(107, 102, 92, 0.72);
  font-weight: 400;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 1.25rem 1.15rem max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-brand {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem 1rem;
    width: 100%;
  }

  .footer-logo img {
    height: 2.42rem; /* +30% from 1.86rem */
  }

  .footer-socials {
    gap: 0.25rem;
  }

  .footer-socials a {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .footer-end {
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
  }

  .footer-copy {
    font-size: 0.65rem;
  }

  .footer-credit {
    font-size: 0.52rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE MOBILE (≤768px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* ── Nav: hamburger + full-screen menu ── */
  .nav {
    color: var(--text);
    padding:
      max(0.75rem, env(safe-area-inset-top, 0px))
      1rem
      0.75rem;
    pointer-events: none;
  }

  .nav-logo {
    pointer-events: auto;
  }

  .nav-logo img {
    height: 2.22rem;
  }

  .nav a {
    color: var(--text);
  }

  .nav-links {
    color: var(--text);
  }

  .nav-links a {
    color: var(--text);
  }

  .nav-toggle {
    display: block;
    color: var(--text);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 6rem 1.5rem 2rem;
    margin: 0;
    background: var(--bg-hero);
    transform: translateY(-105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.35s ease,
      visibility 0.35s;
  }

  .nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    border-top: 1px solid rgba(28, 28, 26, 0.12);
  }

  .nav-links li:last-child {
    border-bottom: 1px solid rgba(28, 28, 26, 0.12);
  }

  .nav-links a {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    width: 100%;
    padding: 1.25rem 0.15rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-index {
    display: inline;
    font-size: 0.85rem;
    color: var(--primary-dark);
    opacity: 1;
  }

  body.nav-open {
    overflow: hidden;
  }

  /* ── Hero: mobile-only collage (separate from desktop strip) ── */
  .hero {
    height: auto;
    overflow: hidden;
  }

  .hero-sticky {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    gap: 2.25rem;
    padding:
      max(5rem, calc(env(safe-area-inset-top, 0px) + 4.25rem))
      1.1rem
      max(1.75rem, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  .tagline {
    flex: 0 0 auto;
    align-self: center;
    text-align: center;
    font-size: clamp(1.45rem, 6.8vw, 2rem);
    max-width: min(14ch, 92vw);
    width: auto;
    line-height: 1.2;
    padding-inline: 0.35rem;
    letter-spacing: -0.03em;
  }

  .tagline-line {
    min-height: 2.6em;
  }

  .grid-wrapper {
    flex: 0 0 auto;
    align-self: center;
    width: min(100%, 400px);
    max-width: 400px;
    min-height: 0;
    height: auto;
    max-height: none;
    margin-top: 0.75rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
  }

  .image-grid {
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .grid-item {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(28, 28, 26, 0.1);
  }

  /* Copy sits under the collage — always readable, no overlay wait */
  .description {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    opacity: 1;
    padding: 0.9rem 0.25rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }

  .description-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.4rem;
  }

  .description-text {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 34ch;
    color: var(--muted);
    text-shadow: none;
  }

  /* ── Selected work (homepage): stacked, no pin blank space ── */
  .work {
    height: auto;
    overflow: visible;
  }

  .work-sticky {
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 2.75rem 0.85rem 2.25rem;
    overflow: visible;
  }

  .work-title {
    text-align: left;
    font-size: clamp(1.7rem, 8vw, 2.35rem);
    width: 100%;
    margin-bottom: 0.15rem;
  }

  .work-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 0.5rem;
  }

  .work-item {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(28, 28, 26, 0.1);
  }

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

  .work-caption {
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 36ch;
    padding-inline: 0.1rem;
    margin-top: 0.15rem;
    opacity: 1;
  }

  /* ── Work page (work.html) gallery ── */
  .page-head {
    padding:
      max(5rem, calc(env(safe-area-inset-top, 0px) + 4.5rem))
      1.15rem
      1.5rem;
  }

  .page-title {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .page-lede {
    font-size: 0.92rem;
    margin-top: 0.85rem;
  }

  /* ── Blogs page ── */
  .blogs-head .section-ghost--ink {
    display: block;
    font-size: clamp(4.25rem, 24vw, 7rem);
    top: 12% !important;
    right: -12% !important;
    -webkit-text-stroke: 1.3px rgba(28, 28, 26, 0.28);
  }

  .blogs-section {
    padding: 1.25rem 1.15rem 2.5rem;
  }

  .blog-feature {
    margin-bottom: 2rem;
  }

  .blog-feature-link {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-feature-media {
    aspect-ratio: 16 / 11;
    border-radius: 5px;
  }

  .blog-feature-title {
    max-width: none;
    font-size: clamp(1.4rem, 6.5vw, 1.85rem);
    margin-bottom: 0.65rem;
  }

  .blog-feature-excerpt {
    font-size: 0.92rem;
    max-width: none;
    margin-bottom: 0.95rem;
  }

  .blog-meta {
    font-size: 0.65rem;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }

  .blog-list-head {
    padding-bottom: 0.75rem;
    margin-bottom: 0.15rem;
  }

  .blog-count {
    font-size: 1rem;
  }

  .blog-row-link {
    grid-template-columns: auto 1fr;
    gap: 0.7rem 0.85rem;
    padding: 1rem 0;
  }

  .blog-row-thumb {
    display: none;
  }

  .blog-row-aside {
    display: none;
  }

  .blog-row-index {
    font-size: 0.72rem;
    padding-top: 0.15rem;
  }

  .blog-row-title {
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    margin-bottom: 0.25rem;
  }

  .blog-row-excerpt {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .blogs-cta {
    padding: 3.25rem 1.15rem max(3.25rem, env(safe-area-inset-bottom, 0px));
  }

  .blogs-cta .section-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .section:has(.gallery) {
    padding: 1.25rem 0.85rem 3rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .gallery-item {
    border-radius: 5px;
    box-shadow: 0 4px 16px rgba(28, 28, 26, 0.1);
  }

  .gallery-item:nth-child(3n + 1) {
    grid-row: span 1;
  }

  /* First + every 3rd spanning full width for rhythm without dead space */
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: 1 / -1;
  }

  .gallery-item img {
    min-height: 0;
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .gallery-item:nth-child(1) img,
  .gallery-item:nth-child(6) img {
    aspect-ratio: 16 / 10;
  }

  /* Gallery showcase page */
  .showcase-section {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .showcase-toolbar {
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .showcase-filter {
    padding: 0.55rem 0.8rem;
    font-size: 0.65rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .showcase-item,
  .showcase-item--hero,
  .showcase-item--wide,
  .showcase-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .showcase-item--hero,
  .showcase-item--wide {
    grid-column: 1 / -1;
  }

  .showcase-open {
    min-height: 0;
  }

  .showcase-item:not(.showcase-item--hero):not(.showcase-item--tall) .showcase-open,
  .showcase-item--tall .showcase-open {
    aspect-ratio: 4 / 5;
  }

  .showcase-item--hero .showcase-open,
  .showcase-item--wide .showcase-open {
    aspect-ratio: 16 / 10;
  }

  .showcase-meta {
    opacity: 1;
    transform: none;
    padding: 1.75rem 0.75rem 0.7rem;
  }

  .showcase-caption {
    font-size: 0.62rem;
  }

  .showcase-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 3.5rem 0.75rem 1rem;
  }

  .showcase-lightbox-nav {
    position: absolute;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .showcase-lightbox-prev { left: 0.75rem; }
  .showcase-lightbox-next { right: 0.75rem; }

  .showcase-lightbox-figure {
    max-height: none;
  }

  .showcase-lightbox-figure img {
    max-height: 68vh;
  }

  .gallery-item figcaption {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding: 1.1rem 0.65rem 0.65rem;
  }

  /* ── About / Why / Vision / CTA ── */
  .section {
    padding: 3.5rem 1.15rem;
  }

  .section-inner {
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
    max-width: 14ch;
  }

  .kicker {
    margin-bottom: 0.9rem;
  }

  .float-word,
  .section-ghost,
  .cta-ghost {
    display: none;
  }

  .about-copy {
    margin-top: 1.75rem;
    gap: 1.15rem;
    max-width: 100%;
  }

  .about-copy p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  /* ── Services: compact cascade list (no long pin) ── */
  .services-desktop {
    display: none;
  }

  .services-mobile {
    display: block;
    position: relative;
    isolation: isolate;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(255, 220, 80, 0.18) 0%, transparent 55%),
      linear-gradient(180deg, #fffdf5 0%, var(--bg-hero) 100%);
    overflow: hidden;
  }

  .services-mobile::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='sm'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23sm)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
  }

  .services-mobile-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 3rem 1.15rem 2.75rem;
  }

  .home-svc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
  }

  .services-mobile .services-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    margin-top: 0.25rem;
  }

  .services-mobile .services-sub {
    font-size: 0.85rem;
    max-width: 22ch;
    margin: 0.4rem 0 0;
  }

  .home-svc-progress {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1;
    padding-top: 0.35rem;
  }

  .home-svc-progress-current {
    color: var(--primary-dark);
    font-weight: 600;
  }

  .home-svc-progress-sep {
    opacity: 0.35;
    margin: 0 0.15rem;
  }

  .home-svc-progress-total {
    opacity: 0.4;
    font-size: 0.9em;
  }

  .home-svc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .home-svc-row {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.58rem 0.1rem;
    border-top: 1px solid rgba(28, 28, 26, 0.09);
    will-change: transform, opacity;
  }

  .home-svc-row:last-child {
    border-bottom: 1px solid rgba(28, 28, 26, 0.09);
  }

  .home-svc-row::before {
    content: none;
  }

  .home-svc-num {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
  }

  .home-svc-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(0.98rem, 4.2vw, 1.18rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--muted);
    transition: color 0.25s ease;
  }

  .home-svc-row.is-passed .home-svc-num,
  .home-svc-row.is-passed .home-svc-name {
    color: rgba(28, 28, 26, 0.72);
  }

  .home-svc-row.is-spotlight .home-svc-num {
    color: var(--primary-dark);
  }

  .home-svc-row.is-spotlight .home-svc-name {
    color: var(--text);
  }

  .home-svc-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 1.35rem;
  }

  .home-svc-more {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
  }

  .home-svc-cta {
    width: 100%;
    max-width: 18rem;
  }

  /* ── Why ── */
  .why-list {
    grid-template-columns: 1fr;
    margin-top: 1.75rem;
  }

  .why-list li {
    font-size: 0.98rem;
    padding: 0.95rem 0;
    gap: 0.75rem;
  }

  /* ── Vision / Mission ── */
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .vm-text {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
  }

  /* ── Testimonials: compact stack, no pin ── */
  .testimonials {
    height: auto;
    max-height: none;
    min-height: 0;
    display: block;
    padding: 3rem 1.15rem 2.75rem;
    overflow: hidden;
  }

  /* Keep “voices” ghost on mobile with dark lining */
  .testimonials .section-ghost--ink {
    display: block;
    font-size: clamp(4.5rem, 26vw, 7.5rem);
    top: 4% !important;
    right: -10% !important;
    -webkit-text-stroke: 1.35px rgba(28, 28, 26, 0.28);
    z-index: 0;
  }

  .testi-inner {
    max-height: none;
    display: block;
  }

  .testi-head {
    max-width: none;
    margin-bottom: 1.1rem;
    padding-right: 3.25rem;
  }

  .testimonials .testi-head .kicker {
    margin-bottom: 0.4rem;
  }

  .testimonials .section-title {
    max-width: min(22ch, 100%);
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
    line-height: 1.18;
  }

  .testi-stage {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
  }

  .testi-progress {
    position: absolute;
    top: 3.1rem;
    right: 1.15rem;
    font-size: 1.05rem;
    padding-top: 0;
    z-index: 2;
  }

  .testi-viewport {
    min-height: 0;
    overflow: visible;
  }

  .testi-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: auto;
  }

  .testi-quote,
  .testi-quote.is-active {
    position: static;
    inset: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    gap: 0.55rem;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(28, 28, 26, 0.1);
  }

  .testi-quote:last-child {
    border-bottom: 1px solid rgba(28, 28, 26, 0.1);
  }

  .testi-text {
    font-size: clamp(1.05rem, 4.5vw, 1.28rem);
    max-width: none;
    line-height: 1.4;
  }

  .testi-name {
    font-size: 0.88rem;
  }

  .testi-role {
    font-size: 0.75rem;
  }

  .testi-marks {
    order: -1;
    margin-bottom: 0.1rem;
    gap: 0.35rem;
  }

  .testi-mark {
    width: 1.25rem;
  }

  .testi-mark.is-on {
    width: 2rem;
  }

  .has-js .testimonials .testi-quote:not(.is-active),
  .has-js .testimonials .testi-quote {
    opacity: 1;
  }

  /* ── CTA ── */
  .cta {
    min-height: auto;
    padding: 4rem 1.15rem max(4rem, env(safe-area-inset-bottom, 0px));
  }

  .cta-title {
    font-size: clamp(1.9rem, 11vw, 2.8rem);
    margin-bottom: 1.15rem;
  }

  .cta-sub {
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
  }

  .cta-btn {
    width: 100%;
    max-width: 18rem;
  }

  .pt-label {
    font-size: clamp(0.78rem, 3.4vw, 1rem);
    letter-spacing: 0.14em;
    padding: 0 1rem;
    max-width: 100%;
    line-height: 1.35;
  }

  .svc-row {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 1.05rem 0.1rem;
  }

  .svc-row-title {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }

  .svc-row-desc,
  .svc-preview {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .contact-item-value {
    font-size: 1.15rem;
    word-break: break-word;
  }

  .contact-form .cta-btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .tagline,
  .work-title {
    font-size: 1.5rem;
  }

  .home-svc-name {
    font-size: 1.05rem;
  }

  .nav-links a {
    font-size: 1.3rem;
  }
}


/* Clients marquee */
.clients {
  padding-block: clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
}

.clients-head {
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
  text-align: center;
}

.clients-head .section-title {
  margin-inline: auto;
  max-width: 18ch;
}

.clients-marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
  overflow: hidden;
}

.clients-track-inner {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
  width: max-content;
  animation: clients-scroll 38s linear infinite;
  padding-block: 0.75rem;
}

.clients-marquee:hover .clients-track-inner {
  animation-play-state: paused;
}

.clients-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(4.75rem, 8vw, 6.5rem);
  min-width: clamp(9rem, 14vw, 13rem);
  opacity: 0.8;
  transition: opacity 0.25s ease;
  text-decoration: none;
}

.clients-logo:hover {
  opacity: 1;
}

.clients-logo img {
  max-height: 100%;
  max-width: clamp(10rem, 16vw, 14.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.25s ease;
}

.clients-logo:hover img {
  filter: grayscale(0);
}

.clients-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem;
}

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

.gallery-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .clients-track-inner {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 74rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
    gap: 2rem 2.5rem;
  }
}

@media (max-width: 768px) {
  .clients {
    padding-block: 2.75rem 3.25rem;
  }

  .clients-head {
    margin-bottom: 1.5rem;
    padding-inline: 1rem;
  }

  .clients-head .section-title {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    max-width: 14ch;
  }

  .clients-marquee {
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }

  .clients-track-inner {
    gap: 2.25rem;
    animation-duration: 28s;
    padding-block: 0.35rem;
  }

  .clients-logo {
    height: 4.25rem;
    min-width: 8.5rem;
    opacity: 0.85;
  }

  .clients-logo img {
    max-width: 11rem;
  }
}

/* PFC CMS empty / detail / contact status */
.blogs-loading,
.blogs-empty,
.testi-empty {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  padding: 2.5rem 1rem;
}

.blogs-empty--subtle {
  padding: 1.5rem 0;
  text-align: left;
}

.blog-feature-placeholder {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
}

.blog-detail {
  padding-top: clamp(5.5rem, 12vh, 7.5rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.blog-detail-inner {
  max-width: none;
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
  padding: 0;
}

.blog-article {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.blog-article-cover {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #1c1c1a;
}

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

.blog-article-main {
  max-width: 42rem;
  margin-inline: auto;
  width: 100%;
}

.blog-article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 1.25rem;
  transition: color 0.2s ease;
}

.blog-article-back:hover {
  color: var(--text);
}

.blog-article-meta {
  margin-bottom: 1rem;
}

.blog-article-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 16ch;
}

.blog-article-excerpt {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 38ch;
}

.blog-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-article-body p {
  margin: 0 0 1.15rem;
}

.blog-article-body h2,
.blog-article-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

.blog-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

.blog-article-body a {
  color: var(--primary-dark);
}

.blog-article-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(28, 28, 26, 0.1);
}

.blog-article-contact {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 28, 26, 0.25);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease;
}

.blog-article-contact:hover {
  border-color: var(--text);
}

.blog-article-empty {
  text-align: center;
  padding: 4rem 1rem;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

@media (max-width: 700px) {
  .blog-article-cover {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
  }

  .blog-row-link {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .blog-row-thumb {
    display: none;
  }

  .blog-row-aside {
    display: none;
  }

  .blog-row-index {
    padding-top: 0.2rem;
  }
}

.contact-form-status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.contact-form-status.is-success {
  color: #2d4a3e;
}

.contact-form-status.is-error {
  color: #b42318;
}
