@charset "UTF-8";
/* =============================================================
   TRAMA CARPINTERÍA — 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 — warm stone neutrals + walnut accent */
  --bg:        #e8e1d0;
  --bg-2:      #ddd0b3;
  --paper:      #362c1f;
  --paper-text: #f4efe2;
  --paper-mute: #c2b39a;
  --paper-line: rgba(244, 239, 226, .18);
  --ink:       #211d18;
  --ink-soft:  #34302a;
  --ink-mute:  #766e60;
  --accent:    #7c4a2d;
  --accent-soft: #c9a367;
  --accent-2:  #4b5240;
  --line:      rgba(33, 29, 24, .14);
  --line-soft: rgba(33, 29, 24, .08);
  --shadow-soft: 0 20px 60px -20px rgba(33, 29, 24, .25);
  --shadow-lift: 0 30px 80px -24px rgba(33, 29, 24, .35);

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

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

  --nav-h: 84px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 2px;
}

@property --mesh-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* =============================================================
   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;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

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; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; }

::selection { background: var(--accent); color: var(--bg); }

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

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  max-width: 1360px; margin-inline: auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right));
}
.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: .6em;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-mute); font-size: 1.08rem; max-width: 38rem; }

.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section-alt { background: var(--paper); color: var(--paper-text); }
.section-alt h2 { color: var(--paper-text); }
.section-alt .eyebrow { color: var(--accent-soft); }
.section-alt .eyebrow::before { background: var(--accent-soft); }
.section-alt .section-head p { color: var(--paper-mute); }
.section-alt .filter-pill { border-color: var(--paper-line); color: var(--paper-mute); }
.section-alt .filter-pill:hover { border-color: var(--paper-text); color: var(--paper-text); }
.section-alt .filter-pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--paper-text); }
.section-alt .gallery-empty { color: var(--paper-mute); }

.numeral { font-family: var(--mono); }

/* reveal-on-scroll */
.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; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3.1rem); color: var(--ink); letter-spacing: -0.01em; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
em, i { font-style: italic; color: var(--accent); }

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

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95rem 1.9rem; font-family: var(--sans); font-size: .95rem; font-weight: 500;
  border-radius: var(--radius); transition: transform .45s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-whatsapp {
  background: #2f4a3a; color: #f2ede0;
}
.btn-whatsapp:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-whatsapp svg { width: 18px; height: 18px; }

.btn-sm { padding: .7rem 1.3rem; font-size: .85rem; }

/* --- Nav --- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 500;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), height .4s var(--ease-out), backdrop-filter .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav.is-solid {
  background: rgba(232, 225, 208, .88);
  border-bottom-color: var(--line);
  height: calc(var(--nav-h) - 16px);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { backdrop-filter: blur(14px) saturate(160%); background: rgba(232, 225, 208, .74); }
}

.nav-logo {
  position: relative; display: inline-flex; align-items: center; height: 30px;
  filter: drop-shadow(0 1px 8px rgba(0,0,0,.3));
  transition: filter .5s var(--ease-out);
}
.nav.is-solid .nav-logo { filter: none; }
.logo-img { height: 100%; width: auto; display: block; transition: opacity .5s var(--ease-out); }
.logo-img-dark { position: absolute; inset: 0; opacity: 0; }
.nav.is-solid .logo-img-light { opacity: 0; }
.nav.is-solid .logo-img-dark { opacity: 1; }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-size: .92rem; color: #f0e9d8; position: relative; padding-block: .3rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
  transition: color .5s var(--ease-out), text-shadow .5s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent-soft); transition: right .4s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
.nav.is-solid .nav-links a { color: var(--ink-soft); text-shadow: none; }
.nav.is-solid .nav-links a::after { background: var(--accent); }

.nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(247,243,231,.4);
  color: #f7f3e7; filter: drop-shadow(0 1px 8px rgba(0,0,0,.25));
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out), filter .35s var(--ease-out);
}
.nav-social svg { width: 16px; height: 16px; }
.nav-social:hover { background: var(--accent); border-color: var(--accent); color: #f7f3e7; }
.nav.is-solid .nav-social { color: var(--ink); border-color: var(--line); filter: none; }
.nav.is-solid .nav-social:hover { background: var(--accent); border-color: var(--accent); color: #f7f3e7; }

.nav-burger {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; height: 44px; margin-right: -.5rem; z-index: 60;
}
.nav-burger span { width: 22px; height: 1.5px; background: #f7f3e7; filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), background-color .5s var(--ease-out); }
.nav.is-solid .nav-burger span { background: var(--ink); filter: none; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; top: var(--nav-h); z-index: 490;
  background: var(--bg); display: flex; flex-direction: column;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  gap: 1.6rem; overflow-y: auto;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.nav-mobile .btn { align-self: flex-start; margin-top: 1rem; font-family: var(--sans); font-size: .95rem; }
.nav-mobile .btn-primary { color: var(--bg); }
.nav-mobile-social {
  display: inline-flex !important; align-items: center; gap: .6rem;
  font-family: var(--mono) !important; font-size: .82rem !important; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute) !important; margin-top: .6rem;
}
.nav-mobile-social svg { width: 18px; height: 18px; }

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.02) contrast(1.02);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,.15) 0%, rgba(20,17,13,.12) 38%, rgba(20,17,13,.72) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  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>');
}
.hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding: 0 var(--gutter) clamp(3.5rem, 9vw, 6.5rem);
  color: #f4efe2;
}
.hero-inner .eyebrow { color: #d9c7ad; margin-bottom: 1.4rem; }
.hero-inner .eyebrow::before { background: #d9c7ad; }
.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  max-width: 15ch;
  color: #f7f3e7;
  text-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.hero-title em { color: #e3b98b; font-style: italic; }
.hero-sub {
  margin-top: 1.4rem; max-width: 34ch; font-size: 1.1rem; color: #e6dfcd;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-actions .btn-ghost { border-color: rgba(244,239,226,.4); color: #f4efe2; }
.hero-actions .btn-ghost:hover { border-color: #f4efe2; }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 2.4rem; z-index: 2;
  display: none; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: #e6dfcd; writing-mode: vertical-rl;
}
.scroll-cue-line { width: 1px; height: 46px; background: rgba(230,223,205,.5); position: relative; overflow: hidden; }
.scroll-cue-line::after {
  content: ""; position: absolute; top: -46px; left: 0; width: 100%; height: 100%;
  background: #e6dfcd; animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue { 0% { transform: translateY(0); } 100% { transform: translateY(92px); } }

/* --- Materials marquee --- */
.marquee-strip {
  background: var(--ink); color: var(--bg-2); overflow: hidden;
  padding-block: 1rem;
}
.marquee-track {
  display: flex; width: max-content; gap: 3.5rem;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap; color: var(--bg-2); display: flex; align-items: center; gap: 3.5rem;
}
.marquee-track span::after { content: "\2014"; color: var(--accent-soft); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Quiénes somos --- */
.about-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-mark {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; color: var(--accent);
}
.about-mark-label {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: .8rem; max-width: 16ch;
}
.about-copy p { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 1.3rem; max-width: 46ch; }
.about-copy p:first-of-type { font-size: 1.3rem; color: var(--ink); margin-top: 1.3rem; }
.about-figure { margin-top: 2.4rem; position: relative; }
.about-figure img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: var(--radius); }
.about-figure figcaption {
  margin-top: .8rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
  color: var(--ink-mute); text-transform: uppercase;
}

/* --- Proyectos --- */
.filter-row {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2rem, 5vw, 3rem);
}
.filter-pill {
  padding: .55rem 1.15rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .84rem; color: var(--ink-mute); transition: all .35s var(--ease-out);
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.gallery {
  column-count: 1; column-gap: 1.1rem;
}
.project-card {
  break-inside: avoid; margin-bottom: 1.1rem; position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  clip-path: inset(0% 0% 0% 0% round var(--radius));
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  background: var(--bg-2);
}
.project-card.reveal { clip-path: inset(4% 4% 4% 4% round var(--radius)); }
.project-card.reveal.is-visible { clip-path: inset(0% 0% 0% 0% round var(--radius)); }
.project-card.is-hidden { display: none; }
.project-card img {
  width: 100%; display: block; object-fit: cover;
  transition: transform 1s var(--ease-out), filter .6s var(--ease-out);
}
.project-card:hover img { transform: scale(1.07); filter: saturate(1.1); }
.project-card:hover { box-shadow: var(--shadow-lift); }
.project-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px rgba(33, 29, 24, .14);
  transition: box-shadow .6s var(--ease-out);
}
.project-card:hover::after { box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px var(--accent-soft); }
.project-card-overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.3rem; background: linear-gradient(180deg, transparent 45%, rgba(20,17,13,.82) 100%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.project-card:hover .project-card-overlay, .project-card:focus-visible .project-card-overlay { opacity: 1; }
.project-card-cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #d9c7ad; }
.project-card-title { font-family: var(--serif); font-size: 1.15rem; color: #f7f3e7; margin-top: .25rem; }

.gallery-empty { display: none; color: var(--ink-mute); font-size: .95rem; padding: 2rem 0; }
.gallery-empty.is-visible { display: block; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; max-width: min(760px, 88vw); max-height: 84vh; width: auto;
  background: var(--paper); border-radius: 6px; overflow: visible;
  box-shadow: var(--shadow-lift);
  margin: auto;
  opacity: 0; transform: scale(.97) translateY(8px);
  transition: opacity .38s var(--ease-out), transform .38s var(--ease-out);
}
.lightbox.is-open { opacity: 1; transform: scale(1) translateY(0); }
.lightbox::backdrop { background: rgba(20, 17, 13, .8); backdrop-filter: blur(6px); }
.lightbox-body { display: flex; flex-direction: column; max-height: 84vh; position: relative; }
.lightbox-frame { padding: 10px; overflow: hidden; border-radius: 6px 6px 0 0; }
.lightbox img { width: 100%; max-height: 66vh; object-fit: contain; background: var(--paper); border-radius: 3px; display: block; }
.lightbox-meta { padding: .2rem 1.6rem 1.4rem; text-align: center; }
.lightbox-cat { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); }
.lightbox-title { font-family: var(--serif); font-size: 1.15rem; color: var(--paper-text); margin-top: .3rem; }
.lightbox-close {
  position: absolute; top: -16px; right: -16px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--paper-line);
  background: var(--paper); color: var(--paper-text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.lightbox-close:hover { background: var(--accent); color: var(--paper-text); border-color: var(--accent); transform: rotate(90deg); }

/* --- Cómo trabajamos --- */
.process-list {
  display: grid; gap: 2.4rem;
  counter-reset: step;
}
.process-item { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.process-num {
  font-family: var(--mono); font-size: .85rem; color: var(--accent); letter-spacing: .06em;
  display: block; margin-bottom: 1rem;
}
.process-item h3 { margin-bottom: .7rem; }
.process-item p { color: var(--ink-mute); font-size: 1rem; max-width: 32ch; }

/* --- Por qué Trama --- */
.values-grid { display: grid; gap: 1.3rem; }
.value-card {
  padding: 2.1rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.value-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-soft); }
.value-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--paper);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem; color: var(--accent-soft);
}
.value-icon svg { width: 20px; height: 20px; }
.value-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.value-card p { color: var(--ink-mute); font-size: .96rem; }

/* --- Contacto --- */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.contact-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .5rem; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--paper-text); background: var(--paper);
  border: 1px solid var(--paper-line); border-radius: var(--radius); padding: .9rem 1rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--paper-mute); }
.field input:focus, .field textarea:focus { border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(201,163,103,.18); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form-status { font-size: .9rem; color: var(--accent-2); min-height: 1.2em; }
.form-status[data-state="error"] { color: #a02824; }

.contact-info {
  background: var(--ink); color: var(--bg-2); padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius); display: flex; flex-direction: column; gap: 1.8rem;
}
.contact-info h3 { color: var(--bg); font-family: var(--serif); font-style: italic; font-size: 1.7rem; }
.contact-line { display: flex; flex-direction: column; gap: .3rem; }
.contact-line span:first-child { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); }
.contact-line a, .contact-line p { color: var(--bg-2); font-size: 1.02rem; }
.contact-line a:hover { color: var(--bg); }
.contact-info .btn-whatsapp { align-self: flex-start; margin-top: .4rem; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line); padding-block: 3rem;
  display: flex; flex-direction: column; gap: 1.6rem;
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem; align-items: flex-start; }
.footer-logo { display: inline-flex; }
.footer-logo-img { height: 46px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { font-size: .88rem; color: var(--ink-mute); }
.footer-nav a:hover { color: var(--ink); }
.footer-social { display: flex; gap: .9rem; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease-out);
}
.footer-social a:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  font-size: .8rem; color: var(--ink-mute); border-top: 1px solid var(--line-soft); padding-top: 1.6rem;
}

/* Placeholder for photos not uploaded yet (removed automatically once real files load) */
.img-placeholder {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, var(--bg-2), var(--bg-2) 12px, var(--paper) 12px, var(--paper) 24px);
  color: var(--ink-mute); font-family: var(--mono); font-size: .68rem; letter-spacing: .04em;
  padding: 1rem; line-height: 1.5;
}
.project-card, .about-figure { position: relative; }
.hero-bg { background: var(--ink); }
.hero-bg .img-placeholder { background: linear-gradient(160deg, #2a241d, #1a1611); color: #d9c7ad; z-index: 1; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; z-index: 400;
  right: calc(1.4rem + env(safe-area-inset-right));
  bottom: calc(1.4rem + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; background: #2f4a3a; color: #f2ede0;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift);
  transition: transform .4s var(--ease-bounce, var(--ease-out));
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { column-count: 2; }
}

@media (min-width: 720px) {
  .about-grid { grid-template-columns: .8fr 1.2fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.4rem; }
  .contact-grid { grid-template-columns: 1.1fr .9fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
  .scroll-cue { display: flex; }
  .gallery { column-count: 3; }
  .process-list { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .gallery { column-count: 3; }
  .about-mark { font-size: 7.5rem; }
}

@media (min-width: 1600px) {
  .gallery { column-count: 4; }
}

/* =============================================================
   9. Reduced-motion — only genuinely intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
  .scroll-cue-line::after { animation: none; }
  .hero-bg img { transform: none; }
  /* Do NOT disable: reveals, hovers, tilt, card transitions, lightbox */
}
