:root {
  --ink: #14110f;
  --ink-2: #2a241f;
  --muted: #9b9489;
  --muted-2: #6f6a62;
  --paper: #f5f2ea;
  --paper-2: #ece7db;
  --soft: #e3ddcf;
  --gold: #c2a06a;
  --gold-deep: #a67f47;
  --taupe: #a99a85;
  --line: rgba(20, 17, 15, 0.14);
  --line-light: rgba(245, 242, 234, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.container,
.container-wide {
  width: min(100% - 80px, 1280px);
  margin: 0 auto;
}

.container-wide {
  width: min(100% - 80px, 1440px);
}

/* ============ Display type ============ */
h1,
h2,
h3 {
  font-family: "Syne", "Hanken Grotesk", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============ Preloader ============ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  transition: opacity 800ms var(--ease), visibility 800ms;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.loader-aperture {
  width: 64px;
  height: 64px;
  color: var(--gold);
  animation: apertureSpin 3.4s linear infinite;
}

.loader-blades {
  transform-origin: 50% 50%;
  animation: apertureClose 2.4s var(--ease) infinite alternate;
}

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

@keyframes apertureClose {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0.6);
  }
}

.loader-word {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
  opacity: 0.9;
}

.loader-count {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
}

/* ============ Scroll progress ============ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  pointer-events: none;
}

/* ============ Custom cursor ============ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 300ms ease;
}

.cursor.is-active {
  opacity: 1;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--paper);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 242, 234, 0.7);
  transition: width 350ms var(--ease-out), height 350ms var(--ease-out), background 350ms ease, border-color 350ms ease;
}

.cursor.is-hover .cursor-ring {
  width: 64px;
  height: 64px;
  background: rgba(245, 242, 234, 0.12);
  border-color: transparent;
}

.cursor.is-hover .cursor-dot {
  opacity: 0;
}

.cursor-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 250ms ease;
}

.cursor.has-text .cursor-label {
  opacity: 1;
}

/* ============ Nav ============ */
/* Respaldo para anclas (#work, #services…): evita que el nav fijo
   tape la parte superior del heading al saltar a la sección. */
:where(#work, #services, #about, #contact) {
  scroll-margin-top: 76px;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  transition: background 450ms ease, border-color 450ms ease, backdrop-filter 450ms ease, color 450ms ease, transform 500ms var(--ease);
}

.nav.is-solid {
  color: var(--paper);
  border-color: rgba(178, 170, 142, 0.22);
  background: rgba(50, 50, 61, 0.88);
  backdrop-filter: saturate(150%) blur(22px);
  -webkit-backdrop-filter: saturate(150%) blur(22px);
  box-shadow: 0 22px 55px rgba(34, 26, 37, 0.18);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand,
.nav-links a {
  text-decoration: none;
}

.nav-brand {
  display: block;
  width: 230px;
  flex: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
}

.nav-brand img {
  width: 100%;
}

.nav.is-solid .nav-brand {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
}

.nav-links a:not(.nav-cta) {
  position: relative;
  font-size: 18px;
  font-weight: 600;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 400ms var(--ease);
}

.nav-links a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: 1px solid rgba(245, 242, 234, 0.4);
  border-radius: 100px;
  padding: 14px 26px;
  font-size: 17px;
  font-weight: 600;
  transition: background 300ms ease, border-color 450ms ease, color 300ms ease;
}

.nav.is-solid .nav-cta {
  border-color: rgba(178, 170, 142, 0.48);
  color: var(--paper);
}

.nav-cta:hover {
  background: var(--olive);
  color: var(--ink);
  border-color: var(--olive);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  left: -3%;
  right: -3%;
  top: -8%;
  height: 122%;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) contrast(1.06) saturate(0.88);
  transform: scale(1.12);
  animation: kenburns 22s var(--ease-out) forwards;
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 100%, rgba(20, 17, 15, 0.85), transparent 66%),
    radial-gradient(ellipse 70% 50% at 50% 46%, rgba(20, 17, 15, 0.45), transparent 70%),
    linear-gradient(to bottom, rgba(20, 17, 15, 0.55) 0%, rgba(20, 17, 15, 0.12) 40%, rgba(20, 17, 15, 0.6) 100%);
  pointer-events: none;
}

/* Corner meta labels */
.hero-corner {
  position: absolute;
  z-index: 2;
  color: rgba(245, 242, 234, 0.45);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: heroIn 1s var(--ease) 1100ms both;
}
.hero-corner-tl { top: 28px; left: 40px; }
.hero-corner-tr { top: 28px; right: 40px; }
.hero-corner-bl { bottom: 28px; left: 40px; }
.hero-corner-br { bottom: 28px; right: 40px; }

/* Hero centered layout */
.hero-center {
  position: absolute;
  /* reserva espacio del nav arriba, simétrico abajo */
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 40px 40px;
  color: var(--paper);
  will-change: transform, opacity;
}

/* Badge above logo */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  animation: heroIn 0.9s var(--ease) 300ms both;
}
.hero-badge-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}
.hero-badge-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.75);
}

.hero-logo-wrap {
  position: relative;
  /* tamaño contenido para que quepa completo en cualquier pantalla */
  width: min(560px, 72vw);
  max-height: 56vh;
  animation: heroLogoIn 1.4s var(--ease-out) 120ms both;
}

/* The logo: full protagonist */
.hero-logo-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 40px rgba(0, 0, 0, 0.7))
    drop-shadow(0 24px 60px rgba(0, 0, 0, 0.6))
    brightness(1.18);
  pointer-events: none;
}

.hero-propellers {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 4 propellers — one per drone arm */
.tip-propeller {
  opacity: 1;
}

/* Hub centre dot */
.tip-core {
  fill: rgba(194, 160, 106, 0.90);
  opacity: 0;
  animation: droneCore 3.8s linear 680ms both;
}
.tip-propeller-2 .tip-core { animation-delay: 700ms; }
.tip-propeller-3 .tip-core { animation-delay: 720ms; }
.tip-propeller-4 .tip-core { animation-delay: 740ms; }

/* Tip blade pairs — diagonal pairs spin opposite ways (real quadcopter) */
.tip-blades {
  fill: rgba(194, 160, 106, 0.82);
  filter: blur(0.5px) drop-shadow(0 0 8px rgba(194, 160, 106, 0.22));
  transform-box: fill-box;
  transform-origin: center;
  animation: droneBlades 3.8s linear 680ms both;
}
.tip-propeller-2 .tip-blades {
  animation-name: droneBladesAlt;
  animation-delay: 700ms;
}
.tip-propeller-3 .tip-blades {
  animation-name: droneBladesAlt;
  animation-delay: 720ms;
}
.tip-propeller-4 .tip-blades { animation-delay: 740ms; }

/* ---- Blade spin: accel → full speed → decel + fade ----
   Phase 1 (0–28% / 1.06s): ease-in  — 4 turns, blades visible then blur
   Phase 2 (28–62% / 1.29s): linear  — 12 more turns ≈ 9 RPS (disc blur)
   Phase 3 (62–90% / 1.06s): ease-out — 3 more turns, fade out
*/
@keyframes droneBlades {
  0% {
    transform: rotate(0turn);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
  }
  28% {
    transform: rotate(4turn);
    opacity: 0.86;
    animation-timing-function: linear;
  }
  62% {
    transform: rotate(16turn);
    opacity: 0.86;
    animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
  }
  90% {
    transform: rotate(19turn);
    opacity: 0;
  }
  100% {
    transform: rotate(19turn);
    opacity: 0;
  }
}

/* Counter-rotation for adjacent props (realistic drone physics) */
@keyframes droneBladesAlt {
  0% {
    transform: rotate(0turn);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
  }
  28% {
    transform: rotate(-4turn);
    opacity: 0.86;
    animation-timing-function: linear;
  }
  62% {
    transform: rotate(-16turn);
    opacity: 0.86;
    animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
  }
  90% {
    transform: rotate(-19turn);
    opacity: 0;
  }
  100% {
    transform: rotate(-19turn);
    opacity: 0;
  }
}

/* Hub dot: appear while spinning, vanish with blades */
@keyframes droneCore {
  0%, 6% { opacity: 0; }
  14%, 62% { opacity: 0.92; }
  88%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-propellers { display: none; }
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Tagline below logo */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  animation: heroIn 0.9s var(--ease) 560ms both;
}
.hero-tagline-rule {
  display: block;
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: rgba(194, 160, 106, 0.55);
}
.hero-tagline p {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.36em;
  color: var(--gold);
  white-space: nowrap;
}

/* CTAs below logo */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
  animation: heroIn 1s var(--ease) 680ms both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ============ Buttons & links ============ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 100px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 350ms var(--ease-out), box-shadow 350ms ease, background 300ms ease, color 300ms ease;
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 350ms var(--ease-out);
}

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

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.text-link {
  display: inline-flex;
  width: max-content;
  border-bottom: 1px solid rgba(20, 17, 15, 0.25);
  padding-bottom: 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 300ms ease;
}

.text-link:hover {
  border-color: var(--gold);
}

.text-link-light {
  color: var(--paper);
  border-color: rgba(245, 242, 234, 0.4);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  animation: heroIn 1s ease 1.2s both;
}

.scroll-cue span {
  color: rgba(245, 242, 234, 0.62);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgba(245, 242, 234, 0.18);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--gold), transparent);
  animation: cueDrop 1.8s var(--ease) infinite;
}

@keyframes cueDrop {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-family: "Syne", sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  white-space: nowrap;
}

.marquee-track i {
  color: var(--gold);
  font-style: normal;
  font-size: 14px;
}

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

/* ============ Section headings ============ */
.difference,
.about,
.clients,
.contact {
  background: var(--paper);
}

.difference {
  padding: clamp(96px, 13vh, 170px) 0;
}

.section-intro {
  max-width: 1040px;
}

h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.02;
  text-wrap: balance;
}

.accent {
  color: var(--taupe);
}

/* Split text */
.split-line {
  display: block;
  overflow: hidden;
}

.split-word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease-out);
}

.split-word-inner {
  display: inline-block;
}

[data-split].is-visible .split-word {
  transform: translateY(0);
}

/* ============ Difference ============ */
.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(56px, 8vh, 96px);
}

.difference-grid article {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  transition: transform 600ms var(--ease-out);
  transform-style: preserve-3d;
}

.diff-num {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 600;
}

.difference-grid p,
.about-lead,
.contact-sub {
  margin: 0;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.62;
}

/* ============ Work — pinned horizontal ============ */
.work {
  background: var(--ink);
  color: var(--paper);
}

.work-pin {
  position: relative;
}

.work-sticky {
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(64px, 9vh, 110px);
  overflow: hidden;
}

.work-head {
  width: min(100% - 80px, 1440px);
  margin: 0 auto;
  padding-top: clamp(80px, 12vh, 130px);
  padding-bottom: clamp(28px, 4vh, 48px);
}

.work-head .eyebrow {
  color: var(--gold);
}

.work-head h2 {
  color: var(--paper);
  font-size: clamp(30px, 4vw, 56px);
}

.work-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: rgba(245, 242, 234, 0.5);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-hint i {
  width: 40px;
  height: 1px;
  background: var(--gold);
  animation: hintSlide 2s var(--ease) infinite;
  transform-origin: left;
}

@keyframes hintSlide {
  0%,
  100% {
    transform: scaleX(0.4);
    opacity: 0.4;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.work-track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  padding: 0 40px 16px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  /* hide scrollbar */
  scrollbar-width: none;
}
.work-track::-webkit-scrollbar { display: none; }

.work-card {
  position: relative;
  flex: none;
  width: clamp(280px, 32vw, 460px);
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.work-card-media {
  overflow: hidden;
  border-radius: 6px;
  background: #1c1814;
}

.work-card-media img,
.work-card-media video {
  width: 100%;
  height: clamp(340px, 52vh, 540px);
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter 1.1s ease;
  filter: saturate(0.95) brightness(0.92);
}

.work-card-tall .work-card-media img,
.work-card-tall .work-card-media video {
  height: clamp(420px, 66vh, 660px);
}

.work-card:hover .work-card-media img,
.work-card:hover .work-card-media video {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}

/* Ken Burns sobre todas las fotos del portfolio.
   4 variantes que se reparten cíclicamente (foco y ritmo distintos)
   para que ninguna foto se mueva igual que su vecina. */
.work-image {
  transform-origin: center;
  animation: kenburnsPhoto 24s ease-in-out infinite alternate;
}
.work-card:nth-child(4n + 1) .work-image {
  transform-origin: top left;
  animation-duration: 24s;
}
.work-card:nth-child(4n + 2) .work-image {
  transform-origin: bottom right;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}
.work-card:nth-child(4n + 3) .work-image {
  transform-origin: top right;
  animation-duration: 26s;
}
.work-card:nth-child(4n + 4) .work-image {
  transform-origin: bottom left;
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}

@keyframes kenburnsPhoto {
  from {
    transform: scale(1.14) translate(-4%, 3%);
  }
  to {
    transform: scale(1.36) translate(4%, -3%);
  }
}

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

.work-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px 0;
}

.work-card figcaption strong {
  font-size: 17px;
  font-weight: 600;
}

.work-card figcaption span {
  color: rgba(245, 242, 234, 0.5);
  font-size: 13px;
}

.work-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(220px, 22vw, 300px);
  align-self: stretch;
  min-height: clamp(340px, 52vh, 540px);
  padding: 32px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  font-family: "Syne", sans-serif;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.05;
  transition: background 400ms ease, border-color 400ms ease;
}

.work-card-cta:hover {
  background: rgba(245, 242, 234, 0.05);
  border-color: var(--gold);
}

.work-card-cta svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  align-self: flex-end;
  transition: transform 400ms var(--ease-out);
}

.work-card-cta:hover svg {
  transform: translateX(8px);
}


/* ============ Services ============ */
.services {
  padding: clamp(96px, 13vh, 170px) 0;
  background: var(--paper-2);
}

.services .section-intro {
  margin-bottom: clamp(48px, 7vh, 84px);
  max-width: 820px;
}

.service-panel {
  position: relative;
  min-height: clamp(360px, 56vh, 560px);
  margin-top: 24px;
  overflow: hidden;
  border-radius: 8px;
}

.service-media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}

.service-media img,
.service-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.service-panel:hover .service-media img,
.service-panel:hover .service-media video {
  transform: scale(1.05);
}

.service-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 15, 0.78), rgba(20, 17, 15, 0.05) 58%);
  pointer-events: none;
}

.service-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(28px, 4vw, 56px);
  pointer-events: none;
}

.service-body span {
  display: block;
  margin-bottom: 14px;
  color: rgba(245, 242, 234, 0.72);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.service-body h3 {
  margin: 0 0 12px;
  color: var(--paper);
  font-family: "Syne", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
}

.service-body p {
  max-width: 46ch;
  margin: 0;
  color: rgba(245, 242, 234, 0.84);
  font-size: 17px;
  line-height: 1.55;
}

/* ============ About ============ */
.about {
  padding: clamp(96px, 13vh, 180px) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.about h2 {
  font-size: clamp(32px, 4.6vw, 66px);
}

.about-lead {
  max-width: 48ch;
  margin-top: 28px;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
}

.about ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.about li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 16px;
}

.about li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}

.about-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: clamp(420px, 64vh, 660px);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-out);
}

.about-media.is-visible {
  clip-path: inset(0 0 0 0);
}

.about-media > div {
  position: absolute;
  inset: -16% 0;
  will-change: transform;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ Results ============ */
.results {
  padding: clamp(96px, 14vh, 180px) 0;
  background: var(--ink);
  color: var(--paper);
}

.results-heading {
  max-width: 760px;
  margin: 0 auto clamp(56px, 8vh, 90px);
  text-align: center;
}

.results .eyebrow {
  color: var(--gold);
}

.results h2 {
  color: var(--paper);
  font-size: clamp(30px, 4vw, 56px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.stats-grid article {
  border-top: 1px solid var(--line-light);
  padding-top: 26px;
}

.stats-grid strong {
  display: block;
  color: var(--paper);
  font-family: "Syne", sans-serif;
  font-size: clamp(46px, 5.6vw, 82px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats-grid span {
  display: block;
  margin-top: 16px;
  color: rgba(245, 242, 234, 0.6);
  font-size: 15px;
}

/* ============ Clients ============ */
.clients {
  padding: clamp(88px, 12vh, 160px) 0;
}

.client-list {
  margin-top: clamp(40px, 6vh, 64px);
  border-bottom: 1px solid var(--line);
}

.client-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: clamp(22px, 3vh, 36px) 0;
  color: var(--ink);
  font-family: "Syne", sans-serif;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 400;
  text-decoration: none;
  text-indent: 0;
  transition: text-indent 450ms var(--ease-out), color 300ms ease;
  overflow: hidden;
}

.client-list a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 450ms var(--ease-out);
  z-index: -1;
}

.client-list a:hover {
  color: var(--paper);
  text-indent: 22px;
}

.client-list a:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.client-list span {
  width: 34px;
  flex: none;
  color: var(--gold);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.client-list i {
  margin-left: auto;
  color: var(--gold);
  font-style: normal;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 350ms var(--ease-out);
}

.client-list a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* ============ Contact ============ */
.contact {
  padding: clamp(96px, 13vh, 180px) 0;
}

.contact-inner {
  width: min(100% - 80px, 920px);
  margin: 0 auto;
}

.contact-heading {
  text-align: center;
}

.contact-heading h2 {
  font-size: clamp(34px, 5.2vw, 76px);
  line-height: 1.0;
}

.contact-sub {
  max-width: 46ch;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.6;
}

.contact-form {
  margin-top: clamp(48px, 7vh, 80px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 40px;
}

.contact-form label {
  display: block;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-wide {
  margin-top: 34px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-bottom: 1px solid rgba(20, 17, 15, 0.22);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  font: inherit;
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 300ms ease;
}

.contact-form select {
  appearance: none;
  cursor: pointer;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form label > span {
  display: none;
  margin-top: 8px;
  color: var(--gold-deep);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.contact-form label.has-error > span {
  display: block;
}

.contact-form label.has-error input,
.contact-form label.has-error select,
.contact-form label.has-error textarea {
  border-color: #b3261e;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 44px;
}

.form-actions button {
  border: 0;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  padding: 17px 36px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 300ms var(--ease-out), background 300ms ease, box-shadow 300ms ease;
}

.form-actions button:hover {
  background: var(--gold-deep);
  box-shadow: 0 16px 36px rgba(166, 127, 71, 0.3);
}

.form-actions p {
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
}

.form-actions a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 17, 15, 0.25);
}

.success {
  display: none;
  margin-top: clamp(48px, 7vh, 72px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 56px 40px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
}

.success h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.success p {
  margin: 0;
  color: var(--muted-2);
}

/* ============ Footer ============ */
.footer {
  padding: clamp(64px, 9vh, 110px) 0 40px;
  background: var(--ink);
  color: var(--paper);
}

.footer-cta {
  padding-bottom: clamp(48px, 7vh, 80px);
  border-bottom: 1px solid var(--line-light);
}

.footer-logo {
  width: min(620px, 80%);
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.4));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(150px, 1fr));
  gap: 48px;
  padding: clamp(48px, 7vh, 80px) 0 56px;
  border-bottom: 1px solid var(--line-light);
}

.footer-brand p {
  max-width: 34ch;
  margin: 0;
  color: rgba(245, 242, 234, 0.62);
  font-family: "Syne", sans-serif;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
}

.footer h4 {
  margin: 0 0 18px;
  color: rgba(245, 242, 234, 0.45);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin-bottom: 12px;
  color: rgba(245, 242, 234, 0.7);
  font-size: 15px;
  text-decoration: none;
  transition: color 300ms ease;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
}

.footer-bottom > span {
  color: rgba(245, 242, 234, 0.45);
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
}

.footer-bottom a {
  color: rgba(245, 242, 234, 0.55);
  font-size: 13px;
  text-decoration: none;
  transition: color 300ms ease;
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============ Reveal ============ */
[data-reveal],
[data-reveal-img] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

[data-reveal].is-visible,
[data-reveal-img].is-visible {
  opacity: 1;
  transform: none;
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-img {
    transform: none;
  }

  .hero-propellers {
    display: none;
  }

  [data-reveal],
  [data-reveal-img] {
    opacity: 1;
    transform: none;
  }

  .split-word {
    transform: none;
  }

  .about-media {
    clip-path: none;
  }
}

/* ============ Responsive ============ */
@media (hover: none) {
  .cursor {
    display: none;
  }
}

@media (max-width: 980px) {
  .container,
  .container-wide,
  .contact-inner {
    width: min(100% - 40px, 1280px);
  }

  .nav-inner {
    padding: 16px 20px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-content {
    padding: 110px 24px 14vh;
  }

  .hero-edge {
    display: none;
  }

  .difference-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .about-media {
    height: clamp(360px, 56vh, 520px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

@media (max-width: 560px) {
  .nav-brand {
    width: 150px;
  }

  .nav-cta {
    padding: 9px 16px;
    font-size: 13px;
  }

  .hero-logo {
    width: min(240px, 64vw);
  }

  .work-track {
    padding: 0 20px;
  }

  .work-card {
    width: 78vw;
  }

  .work-card-cta {
    width: 64vw;
  }

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

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