/* ─────────────────────────────────────────────────────────────────
   FineFinish — marketing site styles
   Tokens · Reset · Type · Base
   See docs/superpowers/specs/2026-05-18-marketing-visual-redesign.md
   ──────────────────────────────────────────────────────────────── */

:root {
  /* Palette — gentle gold + bronze on warm cream */
  --ff-gold-50:   #FBF7EF;
  --ff-gold-100:  #F4EAD4;
  --ff-gold-300:  #DBBE82;
  --ff-gold-500:  #C5A572;
  --ff-gold-700:  #A6884F;
  --ff-gold-900:  #7A5E32;

  --ff-ink-900:   #1F1A14;
  --ff-ink-700:   #4A4036;
  --ff-ink-500:   #807767;
  --ff-ink-300:   #B5AB99;
  --ff-ink-100:   #E8E2D6;

  --ff-bg:        #FFFFFF;
  --ff-bg-warm:   var(--ff-gold-50);
  --ff-bg-dark:   #1F1A14;

  --ff-success:   #5E7A4D;
  --ff-warning:   #C99B5F;
  --ff-danger:    #A6442B;

  /* Type */
  --ff-font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --ff-font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --ff-text-display-1: clamp(2.75rem, 6vw, 5rem);
  --ff-text-display-2: clamp(2rem,    4vw, 3.25rem);
  --ff-text-h1:        2.25rem;
  --ff-text-h2:        1.75rem;
  --ff-text-h3:        1.25rem;
  --ff-text-body:      1rem;
  --ff-text-small:     0.875rem;
  --ff-text-caption:   0.75rem;

  /* Space (4 px grid) */
  --ff-space-1:  0.25rem;
  --ff-space-2:  0.5rem;
  --ff-space-3:  0.75rem;
  --ff-space-4:  1rem;
  --ff-space-6:  1.5rem;
  --ff-space-8:  2rem;
  --ff-space-12: 3rem;
  --ff-space-16: 4rem;
  --ff-space-24: 6rem;

  /* Radii */
  --ff-radius-sm:   2px;
  --ff-radius-md:   6px;
  --ff-radius-pill: 999px;

  /* Shadows (warm-tinted) */
  --ff-shadow-sm: 0 1px 2px rgba(31, 26, 20, 0.06);
  --ff-shadow-md: 0 4px 12px rgba(31, 26, 20, 0.08),
                  0 1px 2px rgba(31, 26, 20, 0.04);
  --ff-shadow-lg: 0 16px 40px rgba(31, 26, 20, 0.12),
                  0 4px 12px rgba(31, 26, 20, 0.06);

  /* Motion */
  --ff-ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ff-duration-fast:  150ms;
  --ff-duration-base:  250ms;
  --ff-duration-slow:  400ms;
}

/* ─── Self-hosted fonts ──────────────────────────────────────── */
/* Marcellus — split into Latin + Latin Extended subsets */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Marcellus-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Marcellus-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter — variable weight, split into Latin + Latin Extended subsets */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-Variable-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Inter-Variable-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--ff-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ff-ink-900);
  background: var(--ff-bg-warm);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* ─── Layout primitives ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ff-space-6);
}

.section {
  padding: var(--ff-space-16) 0;
}

@media (min-width: 768px) {
  .section { padding: var(--ff-space-24) 0; }
}

/* ─── Reusable typography ────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ff-gold-900);
  font-weight: 600;
  margin-bottom: var(--ff-space-3);
}

.section-title {
  font-family: var(--ff-font-display);
  font-size: var(--ff-text-display-2);
  color: var(--ff-ink-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: var(--ff-space-12);
}

/* ─── CTA pill ───────────────────────────────────────────────── */
.cta-button {
  display: inline-block;
  background: var(--ff-gold-500);
  color: var(--ff-ink-900);
  padding: var(--ff-space-3) var(--ff-space-8);
  border-radius: var(--ff-radius-pill);
  font-family: var(--ff-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--ff-duration-base) var(--ff-ease),
              transform 100ms var(--ff-ease);
  min-height: 44px;
  min-width: 44px;
  text-align: center;
}
.cta-button:hover { background: var(--ff-gold-700); }
.cta-button:active { transform: scale(0.97); }
.cta-button:focus-visible {
  outline: 2px solid var(--ff-gold-900);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER · NAV
   ═══════════════════════════════════════════════════════════════ */

.site-header {
  background: var(--ff-bg-warm);
  border-bottom: 1px solid rgba(122, 94, 50, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--ff-space-4);
  padding-bottom: var(--ff-space-4);
  gap: var(--ff-space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--ff-space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-wordmark {
  font-family: var(--ff-font-display);
  font-size: 1.375rem;
  color: var(--ff-ink-900);
  letter-spacing: 0.02em;
}

.brand-caption {
  font-family: var(--ff-font-body);
  font-size: 0.625rem;
  color: var(--ff-ink-700);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: var(--ff-space-8);
}

.nav-links {
  display: flex;
  gap: var(--ff-space-6);
}

.nav-link {
  font-family: var(--ff-font-body);
  font-size: 0.8125rem;
  color: var(--ff-ink-700);
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--ff-duration-base) var(--ff-ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--ff-gold-500);
  transition: all var(--ff-duration-base) var(--ff-ease);
}
.nav-link:hover, .nav-link.active {
  color: var(--ff-gold-900);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-btn {
  font-family: var(--ff-font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  padding: 6px 10px;
  border-radius: var(--ff-radius-sm);
  color: var(--ff-ink-700);
  background: transparent;
  border: none;
  transition: all var(--ff-duration-base) var(--ff-ease);
  min-height: 36px;
}
.lang-btn:hover { color: var(--ff-ink-900); background: rgba(197, 165, 114, 0.10); }
.lang-btn.active {
  background: var(--ff-gold-500);
  color: var(--ff-ink-900);
}

/* Mobile hamburger — hidden on desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ff-ink-900);
  transition: all var(--ff-duration-base) var(--ff-ease);
}
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
  background: var(--ff-bg-warm);
  padding: var(--ff-space-24) 0;
  text-align: center;
}

.hero .eyebrow {
  display: block;
  margin-bottom: var(--ff-space-4);
}

.hero h1 {
  font-family: var(--ff-font-display);
  font-size: var(--ff-text-display-1);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ff-ink-900);
  margin-bottom: var(--ff-space-4);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-family: var(--ff-font-body);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ff-ink-700);
  margin-bottom: var(--ff-space-8);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

/* Stagger entrance animation */
.hero .eyebrow,
.hero h1,
.hero p,
.hero .cta-button {
  opacity: 0;
  transform: translateY(10px);
  animation: ff-rise 600ms var(--ff-ease) forwards;
}
.hero .eyebrow     { animation-delay:  80ms; }
.hero h1           { animation-delay: 240ms; }
.hero p            { animation-delay: 400ms; }
.hero .cta-button  { animation-delay: 560ms; }

@keyframes ff-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES — Editorial vertical list
   ═══════════════════════════════════════════════════════════════ */

.services {
  background: var(--ff-gold-100);
}

.services .section-head {
  text-align: center;
  margin-bottom: var(--ff-space-12);
}

.services-list {
  max-width: 760px;
  margin: 0 auto;
}

.service-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--ff-space-6);
  align-items: baseline;
  padding: var(--ff-space-6) var(--ff-space-3);
  border-bottom: 1px solid rgba(122, 94, 50, 0.18);
  transition: background var(--ff-duration-base) var(--ff-ease);
}
.service-row:last-child { border-bottom: none; }
.service-row:hover { background: rgba(197, 165, 114, 0.06); }

.service-num {
  font-family: var(--ff-font-display);
  font-size: 1.75rem;
  color: var(--ff-gold-900);
  letter-spacing: -0.02em;
  transition: color var(--ff-duration-base) var(--ff-ease);
}
.service-row:hover .service-num { color: var(--ff-ink-900); }

.service-row h3 {
  font-family: var(--ff-font-display);
  font-size: var(--ff-text-h3);
  color: var(--ff-ink-900);
  font-weight: 400;
  margin-bottom: var(--ff-space-2);
  letter-spacing: -0.005em;
}

.service-row p {
  font-family: var(--ff-font-body);
  font-size: var(--ff-text-body);
  color: var(--ff-ink-700);
  line-height: 1.65;
  max-width: 56ch;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT — Eyebrow + heading + paragraph + rule + quote + sig
   ═══════════════════════════════════════════════════════════════ */

.about {
  background: var(--ff-bg-warm);
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-family: var(--ff-font-display);
  font-size: var(--ff-text-display-2);
  font-weight: 400;
  color: var(--ff-ink-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--ff-space-6);
}

.about-paragraph {
  font-family: var(--ff-font-body);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ff-ink-700);
  max-width: 580px;
  margin: 0 auto var(--ff-space-8);
}

.about-rule {
  width: 40px;
  height: 1px;
  background: var(--ff-gold-500);
  margin: 0 auto var(--ff-space-6);
  border: none;
}

.about-quote {
  font-family: var(--ff-font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ff-ink-900);
  line-height: 1.35;
  max-width: 540px;
  margin: 0 auto var(--ff-space-4);
  position: relative;
}
.about-quote::before,
.about-quote::after {
  color: var(--ff-gold-500);
  font-style: normal;
}
.about-quote::before { content: '\201C'; }
.about-quote::after  { content: '\201D'; }

.about-signature {
  font-family: var(--ff-font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ff-gold-900);
  font-weight: 600;
  margin-top: var(--ff-space-4);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT — 2x2 info grid
   ═══════════════════════════════════════════════════════════════ */

.contact {
  background: var(--ff-gold-100);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-family: var(--ff-font-display);
  font-size: var(--ff-text-display-2);
  font-weight: 400;
  color: var(--ff-ink-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--ff-space-12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ff-space-8) var(--ff-space-12);
  text-align: center;
}

.contact-cell {
  padding: var(--ff-space-2) 0;
}

.contact-label {
  font-family: var(--ff-font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ff-gold-900);
  font-weight: 600;
  margin-bottom: var(--ff-space-2);
}

.contact-value {
  font-family: var(--ff-font-body);
  font-size: 1.0625rem;
  color: var(--ff-ink-900);
  line-height: 1.5;
  font-weight: 500;
}
.contact-value a {
  color: var(--ff-gold-900);
  transition: color var(--ff-duration-base) var(--ff-ease);
}
.contact-value a:hover { color: var(--ff-gold-700); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Dark warm-ink panel with brand quote
   ═══════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--ff-bg-dark);
  color: rgba(251, 247, 239, 0.92);
  padding: var(--ff-space-16) 0 var(--ff-space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--ff-space-12);
  margin-bottom: var(--ff-space-12);
}

.footer-brand .footer-wordmark {
  font-family: var(--ff-font-display);
  font-size: 1.5rem;
  color: var(--ff-gold-50);
  margin-bottom: var(--ff-space-2);
}

.footer-brand .footer-caption {
  font-family: var(--ff-font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 247, 239, 0.6);
  margin-bottom: var(--ff-space-4);
  font-weight: 500;
}

.footer-quote {
  font-family: var(--ff-font-display);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: rgba(251, 247, 239, 0.85);
  border-left: 1px solid var(--ff-gold-500);
  padding-left: var(--ff-space-4);
  max-width: 320px;
}

.footer-col-label {
  font-family: var(--ff-font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ff-gold-500);
  font-weight: 600;
  margin-bottom: var(--ff-space-3);
}

.footer-col-value {
  font-family: var(--ff-font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(251, 247, 239, 0.92);
}

.footer-col-value a {
  color: var(--ff-gold-300);
  transition: color var(--ff-duration-base) var(--ff-ease);
}
.footer-col-value a:hover { color: var(--ff-gold-100); }

.footer-bottom {
  padding-top: var(--ff-space-6);
  border-top: 1px solid rgba(197, 165, 114, 0.18);
  text-align: center;
  font-family: var(--ff-font-body);
  font-size: 0.75rem;
  color: rgba(251, 247, 239, 0.65);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY PAGE — Hero + Before/After Carousel
   ═══════════════════════════════════════════════════════════════ */

.gallery-hero {
  background: var(--ff-bg-warm);
  text-align: center;
  padding: var(--ff-space-16) 0 var(--ff-space-8);
}

.gallery-hero h1 {
  font-family: var(--ff-font-display);
  font-size: var(--ff-text-display-2);
  font-weight: 400;
  color: var(--ff-ink-900);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Before/after carousel */
.ba-carousel {
  max-width: 1200px;
  margin: 0 auto var(--ff-space-16);
  padding: 0 var(--ff-space-6);
}

.ba-frame {
  position: relative;
  border-radius: var(--ff-radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--ff-shadow-lg);
}

.ba-divider {
  background: var(--ff-gold-500);
}

.ba-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms var(--ff-ease);
  z-index: 0;
}
.ba-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.ba-panel {
  position: relative;
  overflow: hidden;
}

.ba-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(180deg,
    rgba(31, 26, 20, 0.55) 0%,
    rgba(31, 26, 20, 0) 100%);
  pointer-events: none;
}

.ba-label {
  position: absolute;
  top: var(--ff-space-3);
  z-index: 2;
  font-family: var(--ff-font-body);
  font-size: 0.75rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ff-gold-50);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.ba-label.is-before { left: var(--ff-space-4); }
.ba-label.is-after  { right: var(--ff-space-4); }

.ba-label .marker {
  width: 6px;
  height: 6px;
  background: var(--ff-gold-500);
  border-radius: 50%;
}

/* Prev/Next buttons */
.ba-prev,
.ba-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 247, 239, 0.88);
  color: var(--ff-ink-900);
  border: none;
  cursor: pointer;
  font-family: var(--ff-font-display);
  font-size: 1.5rem;
  line-height: 1;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ff-duration-base) var(--ff-ease),
              transform var(--ff-duration-base) var(--ff-ease);
  box-shadow: var(--ff-shadow-sm);
}
.ba-prev { left: var(--ff-space-4); }
.ba-next { right: var(--ff-space-4); }
.ba-prev:hover,
.ba-next:hover {
  background: var(--ff-gold-500);
  transform: translateY(-50%) scale(1.06);
}
.ba-prev:focus-visible,
.ba-next:focus-visible {
  outline: 2px solid var(--ff-gold-900);
  outline-offset: 2px;
}

/* Caption below the before/after frame — swapped per active slide */
.ba-caption {
  padding: var(--ff-space-6) var(--ff-space-6) 0;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.ba-caption-title {
  font-family: var(--ff-font-display);
  font-size: 1.5rem;
  color: var(--ff-ink-900);
  margin-bottom: var(--ff-space-2);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.ba-caption-body {
  font-family: var(--ff-font-body);
  font-size: 0.9375rem;
  color: var(--ff-ink-700);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY — Categorized project tile grid
   ═══════════════════════════════════════════════════════════════ */

.projects {
  background: var(--ff-bg-warm);
  padding: var(--ff-space-12) 0 var(--ff-space-24);
}

.projects-header {
  text-align: center;
  margin-bottom: var(--ff-space-12);
}

.projects-header h2 {
  font-family: var(--ff-font-display);
  font-size: var(--ff-text-display-2);
  font-weight: 400;
  color: var(--ff-ink-900);
  letter-spacing: -0.01em;
}

.project-category {
  max-width: 1200px;
  margin: 0 auto var(--ff-space-16);
  padding: 0 var(--ff-space-6);
}
.project-category:last-child { margin-bottom: 0; }

.category-header {
  display: flex;
  align-items: baseline;
  gap: var(--ff-space-4);
  margin-bottom: var(--ff-space-6);
}

.category-num {
  font-family: var(--ff-font-display);
  font-size: 1.5rem;
  color: var(--ff-gold-500);
}

.category-title {
  font-family: var(--ff-font-display);
  font-size: var(--ff-text-h2);
  font-weight: 400;
  color: var(--ff-ink-900);
  letter-spacing: -0.005em;
}

.category-rule {
  flex: 1;
  height: 1px;
  background: rgba(122, 94, 50, 0.25);
  align-self: center;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ff-space-3);
}

.project-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--ff-radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--ff-ink-300);
  transition: transform var(--ff-duration-base) var(--ff-ease);
}
.project-tile:hover {
  transform: translateY(-3px);
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ff-duration-slow) var(--ff-ease);
}
.project-tile:hover img {
  transform: scale(1.05);
}

.project-tile .tile-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--ff-space-3) var(--ff-space-4);
  background: linear-gradient(180deg,
    rgba(31, 26, 20, 0) 0%,
    rgba(31, 26, 20, 0.85) 100%);
  color: var(--ff-gold-50);
  pointer-events: none;
}

.tile-meta .tile-eye {
  font-family: var(--ff-font-body);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ff-gold-500);
  font-weight: 600;
  margin-bottom: 3px;
}

.tile-meta .tile-title {
  font-family: var(--ff-font-display);
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX — Restyled to warm-ink overlay
   ═══════════════════════════════════════════════════════════════ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 20, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ff-duration-base) var(--ff-ease);
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  border-radius: var(--ff-radius-sm);
  transition: opacity var(--ff-duration-base) var(--ff-ease);
}
.lightbox-img.is-loading { opacity: 0.3; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(251, 247, 239, 0.92);
  color: var(--ff-ink-900);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ff-duration-base) var(--ff-ease);
  z-index: 2001;
}

.lightbox-close {
  top: var(--ff-space-4);
  right: var(--ff-space-4);
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-close:hover {
  background: var(--ff-gold-500);
  transform: scale(1.05);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
  font-family: var(--ff-font-display);
}
.lightbox-nav.is-prev { left: var(--ff-space-6); }
.lightbox-nav.is-next { right: var(--ff-space-6); }
.lightbox-nav:hover {
  background: var(--ff-gold-500);
  transform: translateY(-50%) scale(1.05);
}

.lightbox-counter {
  position: absolute;
  bottom: var(--ff-space-6);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(251, 247, 239, 0.92);
  color: var(--ff-ink-900);
  padding: var(--ff-space-2) var(--ff-space-4);
  border-radius: var(--ff-radius-pill);
  font-family: var(--ff-font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  z-index: 2001;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL FADE-INS — driven by IntersectionObserver in main.js
   ═══════════════════════════════════════════════════════════════ */

.ff-fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--ff-duration-slow) var(--ff-ease),
              transform var(--ff-duration-slow) var(--ff-ease);
}
.ff-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION — collapse animations to instant opacity
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero .eyebrow,
  .hero h1,
  .hero p,
  .hero .cta-button {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .ff-fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — tablet ≤ 1024 px, mobile ≤ 768 px, small ≤ 480 px
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--ff-space-4);
  }

  /* Header */
  .nav-group {
    display: none;
  }
  .mobile-menu-toggle { display: flex; }
  .site-header.is-menu-open .nav-group {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ff-bg-warm);
    border-bottom: 1px solid rgba(122, 94, 50, 0.18);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ff-space-4);
    padding: var(--ff-space-6) var(--ff-space-4);
  }
  .site-header.is-menu-open .nav-links {
    flex-direction: column;
    width: 100%;
    gap: var(--ff-space-2);
  }
  .site-header.is-menu-open .nav-link {
    font-size: 1.0625rem;
    padding: var(--ff-space-2) 0;
  }
  .site-header.is-menu-open .lang-switcher {
    padding-top: var(--ff-space-4);
    border-top: 1px solid rgba(122, 94, 50, 0.18);
    width: 100%;
  }
  .brand-logo { height: 40px; }
  .brand-wordmark { font-size: 1rem; }
  .brand-caption { font-size: 0.5rem; }

  /* Hero */
  .hero { padding: var(--ff-space-16) 0; }
  .hero h1 { max-width: 14ch; }
  .hero p { font-size: 1.0625rem; }

  /* Services */
  .services-list { max-width: 100%; padding: 0 var(--ff-space-2); }
  .service-row {
    grid-template-columns: 40px 1fr;
    gap: var(--ff-space-4);
    padding: var(--ff-space-4) var(--ff-space-2);
  }
  .service-num { font-size: 1.375rem; }
  .service-row h3 { font-size: 1.125rem; }
  .service-row p { font-size: 0.9375rem; }

  /* About */
  .about-paragraph { font-size: 1.0625rem; }
  .about-quote { font-size: 1.25rem; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--ff-space-6);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--ff-space-8);
  }
  .footer-quote { max-width: 100%; }

  /* Gallery */
  .ba-frame { aspect-ratio: 4/3; }
  .ba-label { font-size: 0.625rem; }
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ff-space-2);
  }
  .lightbox-close,
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  .lightbox-nav.is-prev { left: var(--ff-space-2); }
  .lightbox-nav.is-next { right: var(--ff-space-2); }
}

@media (max-width: 480px) {
  /* Hero */
  .hero h1 { line-height: 1.08; }

  /* Gallery */
  .ba-frame { aspect-ratio: 1/1; }
  .tile-grid { grid-template-columns: 1fr; }
  .category-num { font-size: 1.25rem; }
  .category-title { font-size: 1.375rem; }

  /* Lightbox */
  .lightbox-content { max-width: 100vw; padding: 0 var(--ff-space-3); }
}
