/* =============================================================
   STRATUX AGENCY — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0b0b0c;
  --bg-soft:   #121213;
  --bg-card:   #17171a;
  --bg-card-2: #1d1d20;
  --ink:       #ffffff;
  --ink-soft:  rgba(255,255,255,0.76);
  --ink-mute:  rgba(255,255,255,0.48);
  --line:      rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.07);

  --yellow:    #f6ec12;
  --yellow-2:  #d8d10f;
  --lime:      #e6ff4b;

  --display: "Archivo Black", "Arial Black", sans-serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1320px;
  --gutter: 1.5rem;
  --nav-h: 84px;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Desktop-only cap for project case-study cover photos (see .case-cover).
     Edit this single value to resize them on desktop — mobile/tablet are
     unaffected since they use their own percentage-based max-width. */
  --project-image-max-width: 850px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: #0b0b0c; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--yellow); color: #0b0b0c;
  border-radius: var(--r-sm); font-weight: 700; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.big-number {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.big-number.ghost {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
  color: transparent;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.kicker::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--yellow);
  display: inline-block;
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.9rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform .45s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn-primary {
  background: var(--yellow);
  color: #0b0b0c;
  box-shadow: 0 0 0 0 rgba(246,236,18,0);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(246,236,18,0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
}
.btn-sm { padding: .7rem 1.4rem; font-size: .85rem; }
.btn-lg { padding: 1.15rem 2.4rem; font-size: 1rem; }

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11,11,12,0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), height .3s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(11,11,12,0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 22px;
  width: auto;
}
.brand-badge {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .3em .7em;
}
.main-nav ul { display: flex; gap: 2.1rem; }
.main-nav a {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding-block: .3rem;
  transition: color .3s var(--ease-out);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--yellow);
  transition: right .35s var(--ease-out);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(9,9,10,0.98);
  backdrop-filter: blur(20px);
  z-index: 490;
  display: flex;
  align-items: center;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.6rem; padding: 2rem var(--gutter); width: 100%; }
.mobile-nav a { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: var(--ink); }
.mobile-nav .btn { margin-top: .5rem; align-self: flex-start; }

/* --- Custom cursor (fine pointers only) --- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  transform: translate3d(-50%,-50%,0);
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: var(--ink); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid var(--ink); transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s; }
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--yellow); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --- Grain overlay --- */
.grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --- Global cursor glow ---
   ONE fixed, viewport-relative light source that follows the cursor across
   the whole page (main.js: initGlobalGlow). --gx/--gy are always percentages
   of the viewport, so there is a single coordinate system everywhere — no
   per-section math, no scrollY offsets, no second copy. Intensity/size are
   tuned per section via --glow-opacity/--glow-size, set on <html> by an
   IntersectionObserver watching which section is currently in view. */
:root {
  --gx: 50%;
  --gy: 32%;
  --glow-opacity: 0.42;
  --glow-size: 560px;
}
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--glow-opacity);
  background: radial-gradient(
    var(--glow-size) circle at var(--gx) var(--gy),
    rgba(246, 236, 18, 0.22) 0%,
    rgba(230, 255, 75, 0.10) 34%,
    transparent 68%
  );
  transition: opacity .6s var(--ease-out);
  will-change: opacity;
}
html[data-glow-zone="inicio"]      { --glow-opacity: 0.85; --glow-size: 760px; }
html[data-glow-zone="case-hero"]   { --glow-opacity: 0.85; --glow-size: 760px; }
html[data-glow-zone="nosotros"]    { --glow-opacity: 0.32; --glow-size: 500px; }
html[data-glow-zone="areas"]       { --glow-opacity: 0.36; --glow-size: 520px; }
html[data-glow-zone="servicios"]   { --glow-opacity: 0.50; --glow-size: 560px; }
html[data-glow-zone="portafolio"]  { --glow-opacity: 0.55; --glow-size: 620px; }
html[data-glow-zone="proceso"]     { --glow-opacity: 0.26; --glow-size: 460px; }
html[data-glow-zone="cta"]         { --glow-opacity: 0.72; --glow-size: 680px; }
html[data-glow-zone="footer"]      { --glow-opacity: 0.24; --glow-size: 440px; }

/* --- Reveal system --- */
.reveal { opacity: 0; transform: translateY(36px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal[data-split] { opacity: 1; transform: none; }
.split-word { display: inline-block; white-space: nowrap; }
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.is-visible .split-char, .is-visible .split-word { opacity: 1; transform: translateY(0); }

/* =============================================================
   6. Sections
   ============================================================= */

.section { padding-block: clamp(5rem, 10vw, 9rem); position: relative; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.hero-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(3rem, 8.4vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-accent { color: var(--yellow); }
.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; height: clamp(320px, 46vw, 560px); }
/* Stratux prism — pixel-faithful animated asset (pre-rendered WebP/GIF with
   real alpha transparency baked in). No CSS transform/rotation/glow is
   added here — the source animation is the only motion, unmodified. */
.prism-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.prism-img {
  width: clamp(320px, 46vw, 725px);
  height: auto;
  max-width: none;
}
.floating-chip {
  position: absolute;
  top: 8%; right: 2%;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .6em 1.1em;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  z-index: 2;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--yellow), transparent); animation: scrollCue 2s ease-in-out infinite; }
@keyframes scrollCue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- About / Nosotros --- */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 3rem;
}
.about-index { grid-row: 1 / 3; }
.about-copy { max-width: 52ch; }
.about-lead { font-size: 1.2rem; color: var(--ink); margin-bottom: 1.1rem; }
.about-body { color: var(--ink-soft); }
.about-media {
  grid-column: 2;
  position: relative;
  margin-top: 3rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/8.4;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.about-media:hover img { transform: scale(1.05); }
.media-chip {
  position: absolute; bottom: 1.2rem; left: 1.2rem;
  background: var(--yellow); color: #0b0b0c;
  font-weight: 800; font-size: .8rem;
  border-radius: var(--r-sm);
  padding: .5em .9em;
}

/* --- Work areas --- */
.areas-interactive { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.areas-list { border-top: 1px solid var(--line-soft); }
.area-item {
  display: flex; align-items: baseline; gap: 1.4rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: padding-left .4s var(--ease-out);
}
.area-index { font-family: var(--display); font-size: .95rem; color: var(--ink-mute); }
.area-name { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.55rem); text-transform: uppercase; color: var(--ink-mute); transition: color .35s var(--ease-out); line-height: 1.15; }
.area-item.is-active { padding-left: 1rem; }
.area-item.is-active .area-name, .area-item:hover .area-name { color: var(--ink); }
.area-item.is-active .area-index { color: var(--yellow); }
.area-item.is-active .area-name { color: var(--yellow); }

.area-preview {
  position: sticky; top: calc(var(--nav-h) + 2rem);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  min-height: 220px;
}
.area-preview-label {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.area-preview-desc { color: var(--ink-soft); font-size: 1.05rem; max-width: 42ch; }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem; align-items: center; }
.services-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; }
.services-media img { width: 100%; height: 100%; object-fit: cover; }
.services-list { margin-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.services-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.05rem;
  color: var(--ink-soft);
  position: relative;
  padding-left: 1.6rem;
  transition: color .3s var(--ease-out), padding-left .3s var(--ease-out);
}
.services-list li::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
}
.services-list li:hover { color: var(--ink); padding-left: 2rem; }

.hashtag-banner {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 9vw, 7rem);
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.16);
  margin-top: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
}

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
  padding-inline: var(--gutter);
  max-width: calc(var(--container) + 3rem);
  margin-inline: auto;
}
.project-card {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-column: span 3;
  aspect-ratio: 4/5;
  background: var(--bg-card);
}
.project-card:nth-child(1) { grid-column: span 4; }
.project-card:nth-child(2) { grid-column: span 2; }
.project-card:nth-child(3) { grid-column: span 2; }
.project-card:nth-child(4) { grid-column: span 2; }
.project-card:nth-child(5) { grid-column: span 2; }

.project-media { position: absolute; inset: 0; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s var(--ease-out); filter: saturate(0.94); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0) 30%, rgba(11,11,12,0.92) 100%);
  transition: opacity .4s var(--ease-out);
}
.project-card:hover .project-media img { transform: scale(1.08); filter: saturate(1.05); }
.project-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.6rem; }
.project-category { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); font-weight: 700; margin-bottom: .4rem; }
.project-name { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.2rem, 2.1vw, 1.7rem); color: var(--ink); }
.project-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .8rem; font-size: .85rem; font-weight: 700; color: var(--ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.project-card:hover .project-cta { opacity: 1; transform: translateY(0); }
.project-cta i { transition: transform .35s var(--ease-out); }
.project-card:hover .project-cta i { transform: translateX(4px); }

/* --- Process --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.process-step {
  border-top: 2px solid var(--line);
  padding-top: 1.4rem;
  transition: border-color .4s var(--ease-out);
}
.process-step:hover { border-color: var(--yellow); }
.process-num { font-family: var(--display); font-size: 1rem; color: var(--yellow); display: block; margin-bottom: 1.2rem; }
.process-step h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; color: var(--ink); margin-bottom: .7rem; }
.process-step p { font-size: .92rem; color: var(--ink-mute); }

/* --- CTA final --- */
.cta-final { text-align: center; }
.cta-final-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.96;
  color: var(--ink);
  margin-bottom: 3rem;
}
.cta-title .line { display: block; }
.cta-title .line-accent { color: var(--yellow); }

.contact-form { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  color: var(--ink);
  resize: vertical;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ink-mute); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--yellow); background: var(--bg-card-2); outline: none; }
.contact-form .btn { align-self: center; margin-top: .5rem; }
.form-note { font-size: .78rem; color: var(--ink-mute); margin-top: .4rem; }
.contact-form.is-sent .form-note { color: var(--yellow); }

/* --- Case study pages --- */
.case-hero { padding-top: calc(var(--nav-h) + 3rem); }
.case-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 700; color: var(--ink-mute);
  margin-bottom: 2rem; transition: color .3s var(--ease-out), gap .3s var(--ease-out);
}
.case-back:hover { color: var(--yellow); gap: .8rem; }
.case-category { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.case-title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 6rem); line-height: 0.94; color: var(--ink);
  margin-bottom: 1.4rem;
}
.case-summary { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; margin-bottom: 2.5rem; }
/* Project cover photo — one reusable system for every case-study page.
   The image always keeps its own intrinsic aspect ratio; the container
   never forces a fixed height or crops via object-fit. Only the wrapper's
   max-width changes per breakpoint, so portrait, landscape and square
   photos alike are always shown complete, just larger on wider screens. */
.case-cover {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  margin-inline: auto;
  max-width: 100%;
}
.case-cover img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 720px) { .case-cover { max-width: 90%; } }
/* Desktop only: independent, editable cap so tall/vertical photos don't
   grow into oversized, low-density blocks — image still shows complete,
   centered, at its own aspect ratio; just visually bounded. */
@media (min-width: 1280px) {
  .case-cover { max-width: var(--project-image-max-width); }
}

.case-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.case-meta-block h3 { font-family: var(--display); text-transform: uppercase; font-size: 1rem; color: var(--yellow); margin-bottom: 1.1rem; letter-spacing: .02em; }
.case-meta-block ul li { color: var(--ink-soft); padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.case-meta-block ul li:last-child { border-bottom: none; }
.case-meta-block p { color: var(--ink-soft); font-size: .98rem; }
.case-result-value { font-family: var(--display); font-size: 1.7rem; color: var(--ink); text-transform: uppercase; }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.case-gallery img { border-radius: var(--r-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .6s var(--ease-out); }
.case-gallery a, .case-gallery > img { display: block; overflow: hidden; border-radius: var(--r-md); }
.case-gallery img:hover { transform: scale(1.04); }

.case-screens { display: flex; gap: 1.2rem; overflow-x: auto; overflow-y: visible; padding-block: .5rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.case-screens img { flex: 0 0 auto; height: 420px; width: auto; border-radius: var(--r-md); border: 1px solid var(--line-soft); }

/* Project videos — reusable across any case study. Never autoplays (some
   clips carry real audio/narration); native controls, lazy via
   preload="metadata" so nothing downloads until the visitor presses play. */
.case-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.case-videos video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: #000;
}

/* Before / After slider */
.before-after {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  user-select: none;
  max-width: 820px;
}
.ba-label { text-align: center; font-family: var(--display); text-transform: uppercase; font-size: 1.1rem; color: var(--ink); margin-bottom: 1.2rem; }
.before-after img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #050505;
}
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-tag { position: absolute; top: 1rem; z-index: 3; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,0.55); color: var(--ink); padding: .4em .8em; border-radius: var(--r-pill); backdrop-filter: blur(4px); }
.ba-tag-before { left: 1rem; }
.ba-tag-after { right: 1rem; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
  width: 3px; background: var(--yellow);
  transform: translateX(-50%);
  cursor: ew-resize;
}
.ba-handle::after {
  content: "⟷";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: #0b0b0c;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
}

.case-next {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-soft);
}
.case-next-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin-bottom: .5rem; }
.case-next-name { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--ink); transition: color .3s var(--ease-out); }
.case-next:hover .case-next-name { color: var(--yellow); }
.case-next i { font-size: 1.6rem; color: var(--yellow); }

/* --- Footer --- */
.site-footer { padding-block: 3.5rem; border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-logo { height: 24px; width: auto; }
.footer-tag { font-size: .8rem; letter-spacing: .06em; color: var(--yellow); font-weight: 700; }
.footer-copy { font-size: .8rem; color: var(--ink-mute); }

/* =============================================================
   7. Effects
   ============================================================= */
[data-tilt] { will-change: transform; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: unset; padding-bottom: 4rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; height: clamp(260px, 70vw, 380px); margin-bottom: 1rem; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .scroll-cue { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-index { grid-row: auto; }
  .about-media { grid-column: 1; }

  .areas-interactive { grid-template-columns: 1fr; }
  .area-preview { position: static; margin-top: 1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .services-media { order: -1; aspect-ratio: 16/10; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card, .project-card:nth-child(n) { grid-column: span 1; }

  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .case-meta-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 539px) {
  :root { --nav-h: 72px; }
  .section { padding-block: 4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-lead, .about-body { max-width: none; }
}

@media (min-width: 1600px) {
  .container { max-width: 1480px; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floating-chip { animation: none; }
  .scroll-cue i { animation: none; }
}
