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

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Palette — charcoal / soft black base, olive identity, earth accent, white for breathing room */
  --bg:          #FAF9F6;
  --bg-2:        #F0EEE7;
  --paper:       #FFFFFF;
  --ink:         #1B1B18;
  --ink-soft:    #2E2D28;
  --ink-mute:    #6C6A62;
  --line:        rgba(27,27,24,0.12);
  --line-soft:   rgba(27,27,24,0.07);

  --carbon:      #1B1B18;
  --carbon-2:    #232320;
  --carbon-3:    #2C2B27;
  --cream:       #F3F1EA;
  --cream-mute:  rgba(243,241,234,0.68);
  --cream-dim:   rgba(243,241,234,0.4);

  --olive:       #6E7350;
  --olive-dark:  #565A3E;
  --olive-light: #9BA179;
  --earth:       #B08A63;
  --earth-light: #D9C4A8;
  --sand:        #E7DFCF;

  --accent:      var(--olive);
  --accent-2:    var(--earth);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", "Consolas", monospace;

  --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);

  --nav-h: 84px;
  --container: 1320px;
  --radius: 2px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--font-display); }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--cream); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 4px; font-weight: 600; font-size: .85rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.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;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--olive); font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--olive);
}
.eyebrow.on-dark { color: var(--olive-light); }
.eyebrow.on-dark::before { background: var(--olive-light); }

.section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; margin-top: .9rem; }
.section-lede { font-size: 1.05rem; color: var(--ink-mute); margin-top: 1.1rem; line-height: 1.7; }

.dark-section { background: var(--carbon); color: var(--cream); }
.dark-section .ink-mute, .dark-section .section-lede { color: var(--cream-mute); }

.divider { height: 1px; background: var(--line); border: 0; }

/* reveal-on-scroll — gated behind .js so content stays visible if JS never runs */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .44s; }

/* =============================================================
   4. Typography
   ============================================================= */
.h-xl { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 600; line-height: .98; letter-spacing: -0.02em; }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.015em; }
.italic-accent { font-style: italic; color: var(--olive); font-weight: 500; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-mute); line-height: 1.7; }
.mono-tag { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }

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

/* --- Logo --- */
.logo { display: inline-flex; align-items: center; gap: .65rem; }

/* Real logo artwork, both ink variants — swapped by nav background so it's always legible */
.logo-img { display: none; height: 32px; width: auto; }
.nav.is-solid .logo-img-dark { display: block; }
.nav:not(.is-solid) .logo-img-light { display: block; }
.logo-img-footer { height: 34px; width: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem; font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  border-radius: var(--radius); transition: transform .45s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--olive); color: var(--cream); }
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(110,115,80,.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.on-dark .btn-ghost, .dark-section .btn-ghost { border-color: rgba(243,241,234,.28); color: var(--cream); }
.btn-ghost:hover { border-color: var(--olive); color: var(--olive); transform: translateY(-2px); }
.dark-section .btn-ghost:hover { color: var(--olive-light); border-color: var(--olive-light); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--carbon-2); transform: translateY(-2px); }
.btn-lg { padding: 1.15rem 2.4rem; font-size: .98rem; }
.btn-sm { padding: .7rem 1.3rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-arrow { width: 16px; height: 16px; flex-shrink: 0; transition: transform .35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(250,249,246,.97); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
@supports not (backdrop-filter: blur(1px)) {
  .nav.is-solid { background: rgba(250,249,246,.99); }
}
.nav.theme-dark:not(.is-solid) { --ink: var(--cream); }
.nav.theme-dark:not(.is-solid) .logo-word .l1 { color: var(--cream); }
.nav.theme-dark:not(.is-solid) .logo-mark { color: var(--cream); }
.nav.theme-dark:not(.is-solid) .nav-link { color: var(--cream); }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link { position: relative; font-size: .89rem; font-weight: 600; color: var(--ink); padding-block: .3rem; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--olive);
  transition: right .4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--olive); }
.nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 1.2rem; }

.nav-dropdown { position: relative; display: inline-flex; align-items: center; gap: .15rem; }
.nav-dropdown-caret { display: inline-flex; align-items: center; padding: .3rem; color: var(--ink); background: none; border: none; cursor: pointer; }
.nav-dropdown-caret svg { width: 11px; height: 11px; transition: transform .3s var(--ease-out); }
.nav-dropdown.is-open .nav-dropdown-caret svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 300px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(27,27,24,.25);
  padding: .6rem; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  z-index: 20;
}
/* Click-only (no :hover trigger) — a hover-driven panel fades and loses pointer-events
   while the cursor crosses the gap to reach it, making the links impossible to click. */
.nav-dropdown.is-open .nav-dropdown-panel { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-item { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: 4px; transition: background .25s var(--ease-out); }
.nav-dropdown-item:hover, .nav-dropdown-item:focus-visible { background: var(--bg-2); }
.nav-dropdown-item .di-title { font-weight: 700; font-size: .95rem; color: var(--ink); transition: color .25s var(--ease-out); }
.nav-dropdown-item:hover .di-title, .nav-dropdown-item:focus-visible .di-title { color: var(--olive-dark); }
.nav-dropdown-item .di-sub { font-size: .78rem; color: var(--ink-mute); margin-top: .1rem; }

.nav-burger { display: flex; flex-direction: column; gap: 5px; width: 26px; padding: .4rem; }
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .35s var(--ease-out), opacity .3s var(--ease-out); }
.nav.theme-dark:not(.is-solid) .nav-burger span { background: var(--cream); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 890; background: var(--ink); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.5rem;
  transform: translateY(-100%); transition: transform .55s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu-links { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.mobile-menu-links a { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.mobile-menu-sub { display: flex; flex-direction: column; gap: .6rem; padding-left: 1rem; margin-top: .6rem; font-size: 1rem; color: var(--cream-mute); }
.mobile-menu-foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .8rem; font-size: .92rem; color: var(--cream-mute); }

/* --- Cards --- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 2rem; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(27,27,24,.28); border-color: var(--olive-light); }

.service-card {
  display: flex; flex-direction: column; gap: 1.3rem; padding: 2.1rem 1.9rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  height: 100%;
}
.service-card:hover { transform: translateY(-7px); border-color: var(--olive); box-shadow: 0 34px 64px -30px rgba(27,27,24,.25); }
.service-icon { width: 46px; height: 46px; color: var(--olive); }
.service-card h3 { font-size: 1.22rem; font-weight: 600; }
.service-card p { color: var(--ink-mute); font-size: .93rem; line-height: 1.6; flex-grow: 1; }
.service-card .card-link { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); display: inline-flex; align-items: center; gap: .4rem; }
.service-card .card-link svg { width: 13px; height: 13px; transition: transform .35s var(--ease-out); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* --- Stats --- */
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.2rem; }
.stat { display: flex; flex-direction: column; gap: .4rem; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 700; color: var(--ink); line-height: 1; }
.stat-num .plus { color: var(--olive); }
.stat-label { font-size: .82rem; color: var(--ink-mute); letter-spacing: .02em; }
.dark-section .stat-num { color: var(--cream); }
.dark-section .stat-label { color: var(--cream-mute); }

/* --- Process / methodology --- */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 1.6rem; align-items: start;
  padding-block: 1.9rem; border-top: 1px solid var(--line);
}
.dark-section .process-item { border-color: rgba(243,241,234,.14); }
.process-item:last-child { border-bottom: 1px solid var(--line); }
.dark-section .process-item:last-child { border-color: rgba(243,241,234,.14); }
.process-num { font-family: var(--font-mono); font-size: 1rem; color: var(--olive); padding-top: .2rem; }
.process-body h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: .5rem; }
.process-body p { color: var(--ink-mute); max-width: 60ch; }
.dark-section .process-body p { color: var(--cream-mute); }

/* --- Why us --- */
.why-photo { position: relative; min-height: 46svh; display: flex; align-items: center; overflow: hidden; }
.why-photo .hero-bg::after { background: linear-gradient(90deg, rgba(20,20,17,.22) 0%, rgba(20,20,17,.05) 55%); }
.why-photo-inner { position: relative; z-index: 1; width: 100%; display: flex; padding-block: 3rem; }
.why-card {
  background: var(--paper); padding: 2.4rem 2rem; border-radius: 4px; width: 100%;
  box-shadow: 0 24px 60px rgba(20,20,17,.16);
}
.why-card .section-lede { margin-top: 1.1rem; }
.why-card .section-lede + .section-lede { margin-top: .9rem; }

/* --- Tech strip (auto-scrolling marquee) --- */
.tech-strip {
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tech-track { display: flex; align-items: center; gap: 1rem; width: max-content; animation: tech-scroll 28s linear infinite; }
.tech-strip:hover .tech-track { animation-play-state: paused; }
@keyframes tech-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-family: var(--font-mono); font-size: .85rem; letter-spacing: .03em; color: var(--ink-soft); font-weight: 500;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.tech-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive-light); flex-shrink: 0; }
.tech-badge:hover { border-color: var(--olive); color: var(--olive-dark); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .tech-track { animation: none; }
}

/* --- Mid-page CTA banner --- */
.cta-banner { background: var(--olive); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; max-width: 22ch; margin: 0 auto 1.1rem; }
.cta-banner p { color: rgba(243,241,234,.85); max-width: 48ch; margin: 0 auto 1.7rem; font-size: 1rem; }

/* --- Project card / gallery: title over image, organic masonry rhythm --- */
.project-card {
  position: relative; display: block; overflow: hidden; border-radius: 6px;
  break-inside: avoid; margin-bottom: 1.8rem; background: var(--carbon);
}
.project-card .pc-media { aspect-ratio: 4/5; overflow: hidden; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.project-card:hover img { transform: scale(1.045); }
.project-card .pc-overlay {
  position: absolute; left: 0; top: 50%; max-width: 78%; text-align: left;
  transform: translateY(-50%);
  padding: 1.6rem 2rem 1.6rem 1.6rem;
  background: var(--paper);
  color: var(--ink);
  transition: opacity 1.5s var(--ease-out), transform 1.5s var(--ease-out);
}
.project-card .pc-cat { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.project-card .pc-title {
  font-size: 1.85rem; font-weight: 700; margin-top: .45rem; color: var(--ink); line-height: 1.1;
  transition: color .3s var(--ease-out);
}
.project-card:hover .pc-title { color: var(--olive-dark); }
.project-card .pc-loc { display: none; }

/* Reveal the caption on hover only — devices with real hover keep the photo clean by default.
   Fades and slides up gently rather than popping in. */
@media (hover: hover) and (pointer: fine) {
  .project-card .pc-overlay { opacity: 0; transform: translateY(calc(-50% + 18px)); }
  .project-card:hover .pc-overlay, .project-card:focus-within .pc-overlay { opacity: 1; transform: translateY(-50%); }
}

/* organic height rhythm — repeats every 6 cards so the grid never feels static */
.project-card:nth-child(6n+1) .pc-media { aspect-ratio: 3/4; }
.project-card:nth-child(6n+2) .pc-media { aspect-ratio: 4/3; }
.project-card:nth-child(6n+3) .pc-media { aspect-ratio: 4/5; }
.project-card:nth-child(6n+4) .pc-media { aspect-ratio: 1/1; }
.project-card:nth-child(6n+5) .pc-media { aspect-ratio: 4/3; }
.project-card:nth-child(6n+6) .pc-media { aspect-ratio: 3/4; }

.projects-filter { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 3rem; }
.filter-pill {
  padding: .55rem 1.15rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--ink-mute); transition: all .3s var(--ease-out);
}
.filter-pill:hover { border-color: var(--olive); color: var(--olive); }
.filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.projects-grid { column-count: 1; column-gap: 1.8rem; }
.projects-grid .project-card[data-hidden="true"] { display: none; }

/* --- Featured projects on home (same masonry treatment) --- */
.featured-grid { column-count: 1; column-gap: 1.6rem; }

/* --- Forms --- */
.form-field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.35rem; }
.form-field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  font-size: .94rem; transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--olive); box-shadow: 0 0 0 3px rgba(110,115,80,.14); outline: none;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .78rem; color: var(--ink-mute); margin-top: .6rem; }
.form-success { display: none; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; border: 1px solid var(--olive); border-radius: 6px; background: rgba(110,115,80,.08); }
.form-success.is-visible { display: flex; }
.form-success svg { width: 22px; height: 22px; color: var(--olive); flex-shrink: 0; }
.form-error { display: none; align-items: center; gap: .8rem; padding: 1.1rem 1.3rem; border: 1px solid var(--earth); border-radius: 6px; background: rgba(176,138,99,.1); margin-top: 1rem; }
.form-error.is-visible { display: flex; }
.form-error svg { width: 22px; height: 22px; color: var(--earth); flex-shrink: 0; }

/* --- Accordion (future section) --- */
.coming-soon {
  border: 1px dashed var(--line); border-radius: 8px; padding: 2.4rem;
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
.coming-soon .badge {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--earth); border: 1px solid var(--earth); padding: .3rem .7rem; border-radius: 999px;
}

/* --- Footer --- */
.footer { background: var(--carbon); color: var(--cream-mute); padding-block: 4.5rem 2rem; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2.6rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(243,241,234,.12); }
.footer-brand p { margin-top: 1.1rem; max-width: 34ch; font-size: .92rem; line-height: 1.65; }
.footer-col h5 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-light); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a, .footer-col li { font-size: .89rem; color: var(--cream-mute); transition: color .3s var(--ease-out); }
.footer-col a:hover { color: var(--cream); }
.footer-social { display: flex; gap: .9rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(243,241,234,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease-out); }
.footer-social a:hover { border-color: var(--olive-light); background: rgba(155,161,121,.12); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding-top: 1.8rem; font-size: .78rem; }
.footer-bottom-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-slogan { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--cream); }

/* --- WhatsApp float button --- */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 950;
  width: 60px; height: 60px; border-radius: 50%; background: #3d7a4f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -10px rgba(61,122,79,.55);
  transition: transform .4s var(--ease-bounce);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: #3d7a4f; animation: waPulse 2.6s ease-out infinite; z-index: -1; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }

/* --- Cursor-free; tilt on cards --- */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* --- Marquee (tech / values) --- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: 1.1rem; }
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .05em; color: var(--ink-mute); text-transform: uppercase; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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

/* --- Hero (home) --- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: var(--cream); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,17,.55) 0%, rgba(20,20,17,.35) 38%, rgba(15,15,13,.88) 100%);
}
.hero-inner {
  position: relative; z-index: 1; padding-block: clamp(2.5rem, 8vw, 5rem) clamp(3rem, 7vw, 4.5rem);
  width: 100%; max-width: 780px; margin-inline: auto;
}
.hero-title { font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero-title em { font-style: italic; color: var(--olive-light); font-weight: 500; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--cream-mute); max-width: 46ch; margin-top: 1.3rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-scroll { position: absolute; right: 1.6rem; bottom: 2rem; z-index: 1; display: none; flex-direction: column; align-items: center; gap: .6rem; color: var(--cream-mute); }
.hero-scroll .line { width: 1px; height: 46px; background: linear-gradient(180deg, currentColor, transparent); }

/* --- Generic page hero (interior pages) --- */
.page-hero {
  position: relative; min-height: 62svh; display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden; padding-top: var(--nav-h);
}
.page-hero .hero-bg::after { background: linear-gradient(180deg, rgba(20,20,17,.42) 0%, rgba(15,15,13,.82) 100%); }
.page-hero-inner { position: relative; z-index: 1; padding-block: 3rem 3.4rem; }
.page-hero-title { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; margin-top: .9rem; max-width: 32ch; }
.page-hero-sub { font-size: 1.05rem; color: var(--cream-mute); margin-top: 1rem; max-width: 52ch; }

/* --- Manifesto split --- */
.manifesto { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.manifesto-num { font-family: var(--font-mono); font-size: 4.6rem; color: var(--sand); line-height: 1; font-weight: 700; }
.manifesto-text p { font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.55; color: var(--ink-soft); }
.manifesto-text p + p { margin-top: 1.2rem; }

/* --- Services grid (home) --- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }


/* --- Final CTA --- */
.cta-final { position: relative; min-height: 62svh; display: flex; align-items: center; color: var(--cream); overflow: hidden; }
.cta-final .hero-bg::after { background: linear-gradient(180deg, rgba(15,15,13,.42), rgba(15,15,13,.62)); }
.cta-final .btn-ghost { border-color: rgba(243,241,234,.4); color: var(--cream); }
.cta-final .btn-ghost:hover { color: var(--olive-light); border-color: var(--olive-light); }
.cta-final-inner { position: relative; z-index: 1; text-align: center; width: 100%; }
.cta-final h2 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; max-width: 38ch; margin: 1rem auto 0; }
.cta-final .lede { max-width: 46ch; margin: 1.1rem auto 0; }
.cta-final-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* --- Service detail page --- */
.svc-points { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
.svc-point { display: flex; gap: 1.1rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: 6px; }
.svc-point .sp-icon { width: 40px; height: 40px; color: var(--olive); flex-shrink: 0; }
.svc-point h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.svc-point p { font-size: .89rem; color: var(--ink-mute); }
.svc-gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.svc-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.svc-trust {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .04em; color: var(--olive-light); background: rgba(155,161,121,.14);
  border: 1px solid rgba(155,161,121,.3); padding: .55rem 1rem; border-radius: 999px; margin-top: 1.2rem;
}
.svc-closing { text-align: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.svc-closing h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 20ch; margin: 0 auto 1.6rem; }

/* --- Services index cards grid --- */
.svc-index-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.svc-index-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; display: flex; }
.svc-index-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.svc-index-card:hover img { transform: scale(1.08); }
.svc-index-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,17,.15) 30%, rgba(15,15,13,.9) 100%); }
.svc-index-card-body { position: relative; z-index: 1; margin-top: auto; padding: 1.8rem; color: var(--cream); }
.svc-index-card-num { font-family: var(--font-mono); font-size: .78rem; color: var(--olive-light); }
.svc-index-card-body h3 { font-size: 1.35rem; font-weight: 600; margin-top: .5rem; }
.svc-index-card-body p { font-size: .85rem; color: var(--cream-mute); margin-top: .5rem; }
.svc-index-card-arrow { position: absolute; top: 1.6rem; right: 1.6rem; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(243,241,234,.4); display: flex; align-items: center; justify-content: center; transition: all .4s var(--ease-out); }
.svc-index-card:hover .svc-index-card-arrow { background: var(--olive); border-color: var(--olive); transform: rotate(45deg); }
.svc-index-card-arrow svg { width: 15px; height: 15px; color: var(--cream); }

/* --- About page --- */
.about-origin { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.about-origin-media { border-radius: 8px; overflow: hidden; min-height: 320px; height: 100%; }
.about-origin-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.studio-glimpse { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.studio-glimpse-item { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.studio-glimpse-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.studio-glimpse-item:hover img { transform: scale(1.045); }
.mv-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.mv-card { padding: 2.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.mv-card h3 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: .9rem; }
.mv-card p { font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.value-pill { padding: 1.7rem 1.4rem; text-align: left; border: 1px solid var(--line); border-radius: 6px; transition: all .35s var(--ease-out); }
.value-pill:hover { border-color: var(--olive); background: var(--bg-2); }
.value-pill h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .55rem; }
.value-pill:hover h4 { color: var(--olive-dark); }
.value-pill p { font-size: .87rem; color: var(--ink-mute); line-height: 1.55; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
.contact-info-card { padding: 2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.contact-info-row { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1rem; border-top: 1px solid var(--line); }
.contact-info-row:first-child { border-top: 0; }
.contact-info-row svg { width: 20px; height: 20px; color: var(--olive); flex-shrink: 0; margin-top: .15rem; }
.contact-info-row h4 { font-size: .84rem; font-weight: 600; margin-bottom: .2rem; }
.contact-info-row p, .contact-info-row a { font-size: .9rem; color: var(--ink-mute); }
.contact-visual { border-radius: 8px; overflow: hidden; min-height: 320px; height: 100%; }
.contact-visual img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.contact-bottom-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; }
.contact-map { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; filter: grayscale(45%) contrast(1.05); transition: filter .4s var(--ease-out); }
.contact-map:hover { filter: none; }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* =============================================================
   7. Effects
   ============================================================= */
[data-count] { font-variant-numeric: tabular-nums; }

.credits-list li { padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-mute); }
.credits-list a { color: var(--olive); text-decoration: underline; }

.chip-future {
  display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--earth);
}
.chip-future::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--earth); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .mv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .manifesto { grid-template-columns: 120px 1fr; }
  .why-photo { min-height: 64svh; }
  .why-photo-inner { justify-content: flex-end; }
  .why-card { max-width: 440px; padding: 2.8rem 3rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-points { grid-template-columns: repeat(2, 1fr); }
  .svc-gallery { grid-template-columns: repeat(2, 1fr); }
  .about-origin { grid-template-columns: 1fr 1fr; }
  .studio-glimpse { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-bottom-grid { grid-template-columns: 1fr 1fr; }
  .svc-index-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { column-count: 2; }
  .featured-grid { column-count: 2; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .hero-scroll { display: flex; }
  .process-item { grid-template-columns: 90px 1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { column-count: 3; }
  .featured-grid { column-count: 3; }
  .svc-index-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { gap: 2.6rem; }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
  .featured-grid { column-count: 4; }
}

/* =============================================================
   9. Reduced-motion (only INTRUSIVE effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-pulse { animation: none; }
  .marquee-track { animation-duration: 60s; }
  .hero-bg img { transform: none; }
}
