/* ─── 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.65rem, 1.5vw, 1.25rem);
  --tile-ratio:   2 / 1;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -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;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 14vw, 10rem);
  letter-spacing: 0.12em;
  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 (primitive, blend-inverted) ───────────────────── */
/* mix-blend-mode: difference makes the text invert against whatever
   scrolls behind it — near-black over cream, wild hues over yellow. */
.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);
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
}

.nav a {
  pointer-events: auto;
  color: #fff;
  text-decoration: none;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0.18em;
}

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

.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;
}

.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);
  overflow: visible;
}

.hero-sticky {
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  row-gap: clamp(1.5rem, 5vh, 3.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: visible;
  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 {
  align-self: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  will-change: transform, opacity;
  max-width: 18ch;
  margin-inline: auto;
}

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

.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; }
}

/* ─── 2×2 image grid ───────────────────────────────────────── */

.grid-wrapper {
  align-self: end;
  /* ~10% smaller than full bleed; capped by viewport height */
  width: min(90%, 79vh);
  height: auto;
  min-height: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 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;
}

/* ─── 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;
  }
}

/* ─── 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;
}

/* 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));
}

/* 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;
  }
}

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

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

  .nav-logo {
    position: relative;
    z-index: 120;
    font-size: 1.15rem;
    letter-spacing: 0.16em;
    color: var(--text);
    pointer-events: auto;
  }

  .nav a {
    color: inherit;
  }

  .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: tagline under nav, images fill the rest ── */
  .hero {
    height: 280vh;
    overflow: visible;
  }

  .hero-sticky {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    gap: 0.85rem;
    padding:
      max(4.5rem, calc(env(safe-area-inset-top, 0px) + 3.75rem))
      0.75rem
      max(0.85rem, env(safe-area-inset-bottom, 0px));
    /* Allow tiles to float off-screen as they disperse */
    overflow: visible;
  }

  .tagline {
    flex: 0 0 auto;
    align-self: stretch;
    text-align: left;
    font-size: clamp(1.7rem, 8.5vw, 2.4rem);
    max-width: none;
    width: 100%;
    line-height: 1.1;
    padding-inline: 0.15rem;
    letter-spacing: -0.04em;
  }

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

  .grid-wrapper {
    flex: 1 1 auto;
    align-self: center;
    width: 90%;
    max-width: 90%;
    min-height: 0;
    height: 90%;
    max-height: 90%;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
  }

  .image-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 0.4rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: visible;
  }

  .grid-item {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 4px;
  }

  .description {
    padding: 0.75rem;
  }

  .description-eyebrow {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
  }

  .description-text {
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 24ch;
  }

  /* ── Selected work ── */
  .work {
    height: 260vh;
    overflow: clip;
  }

  .work-sticky {
    height: 100dvh;
    min-height: 100dvh;
    row-gap: 0.75rem;
    padding:
      max(4rem, calc(env(safe-area-inset-top, 0px) + 3.25rem))
      0.85rem
      max(1rem, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  .work-title {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 0.35rem;
  }

  .work-item {
    border-radius: 3px;
  }

  .work-caption {
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 30ch;
    padding-inline: 0.5rem;
  }

  /* ── 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: swap cards for vertical animated list ── */
  .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;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding:
      max(4rem, calc(env(safe-area-inset-top, 0px) + 3.5rem))
      1.15rem
      max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

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

  .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: 20ch;
    margin: 0.45rem 0 0;
  }

  .home-svc-progress {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 1.35rem;
    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;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .home-svc-row {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    padding: 0.7rem 0.15rem 0.7rem 0.65rem;
    border-top: 1px solid rgba(28, 28, 26, 0.1);
    will-change: transform, opacity;
    transition: none;
  }

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

  .home-svc-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
  }

  .home-svc-row.is-spotlight::before {
    transform: scaleY(1);
  }

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

  .home-svc-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.05rem, 4.6vw, 1.3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--muted);
  }

  .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-cta {
    margin-top: 1.25rem;
    width: 100%;
    max-width: 18rem;
    opacity: 0.35;
  }

  .home-svc-cta.is-ready {
    opacity: 1;
  }

  /* ── 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);
  }

  /* ── 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(2.25rem, 16vw, 3.5rem);
  }

  /* Subpages (shared) */
  .page-head {
    padding:
      max(5.25rem, calc(env(safe-area-inset-top, 0px) + 4.75rem))
      1.15rem
      2.25rem;
  }

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

  .page-lede {
    font-size: 0.95rem;
  }

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

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

  .gallery-item img {
    min-height: 200px;
    aspect-ratio: 4 / 3;
  }

  .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;
  }
}
