/* MARTER Studio — Palette Option B "Architectural Warmth"
   Chalk / Limestone dominate · Navy / Midnight give structure · Graphite for text · Bronze as a rare accent */

:root {
  --navy: #082E72;
  --marter-blue: #0059B3; /* logo blue — used only for the wordmark and brand surfaces */
  --navy-700: #0A3A8C;
  --midnight: #132334;
  --limestone: #E7E0D6;
  --chalk: #F8F6F2;
  --bronze: #9A8068;
  --bronze-ink: #7A6350;   /* bronze darkened for AA text on light surfaces */
  --graphite: #343A40;
  --white: #FFFFFF;

  --ink: var(--midnight);
  --text: var(--graphite);
  --muted: #5E646B;
  --line: rgba(19, 35, 52, .14);
  --line-strong: rgba(19, 35, 52, .28);

  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 112px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--chalk); color: var(--text);
  font: 400 16px/1.6 var(--f-sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
svg { width: 1.25em; height: 1.25em; flex: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy); color: var(--white); }
.skip:focus { top: 8px; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); line-height: 1.02; color: var(--ink);
  max-width: 16ch; text-wrap: balance;
}
.display-wide { max-width: 22ch; }
.display-m {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -.005em;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1.05; text-wrap: balance;
}
.lead { margin-top: var(--s3); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; max-width: 52ch; color: var(--graphite); }
.lead-wide { max-width: 64ch; }
.lead-light { margin-top: var(--s2); font-size: 1.125rem; max-width: 52ch; color: rgba(248, 246, 242, .78); }
.eyebrow, .label {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow { margin-bottom: var(--s3); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--bronze); }
.eyebrow-light { color: rgba(248, 246, 242, .7); }
.num { font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--bronze-ink); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--midnight); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-light { background: var(--chalk); color: var(--midnight); }
.btn-light:hover { background: var(--white); }
.btn-outline-light { border-color: rgba(248, 246, 242, .35); color: var(--chalk); }
.btn-outline-light:hover { border-color: var(--chalk); }
.btn-wa { background: var(--midnight); color: var(--white); padding-inline: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 242, .92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; margin: 0; }
/* Wordmark rebuilt from the logo: Cinzel ≈ "MARTER", Montserrat ≈ "STUDIO" */
.brand-mark { font-family: "Cinzel", var(--f-display); font-weight: 400; font-size: 1.875rem; letter-spacing: .2em; margin-right: -.2em; color: var(--marter-blue); line-height: 1; }
.brand-sub { margin-top: 5px; font-family: "Montserrat", var(--f-sans); font-weight: 400; font-size: .625rem; letter-spacing: .55em; margin-right: -.55em; color: var(--marter-blue); }
.brand-logo { height: 40px; width: auto; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--ink);
}
.menu-icon { position: relative; width: 22px; height: 10px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-icon::before { top: 0; } .menu-icon::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 4.25px; transform: rotate(-45deg); }

.nav-panel {
  /* header's backdrop-filter makes it the containing block, so size the panel explicitly */
  position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; z-index: 40; background: var(--chalk);
  display: flex; flex-direction: column; gap: var(--s5); padding: var(--s5) var(--gutter);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.nav-panel.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.nav ul { display: flex; flex-direction: column; gap: 6px; }
.nav a { font-family: var(--f-display); font-size: 2.5rem; line-height: 1.15; color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 12px; background: var(--bronze); vertical-align: middle; }
.lang { display: flex; gap: 4px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-decoration: none; border-radius: var(--radius);
}
.lang a:hover { color: var(--navy); }
.lang a[aria-current="true"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); }
.nav-cta { align-self: flex-start; }
body.menu-open { overflow: hidden; }

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .nav-panel {
    position: static; inset: auto; height: auto; overflow: visible; flex-direction: row; align-items: center; gap: var(--s4); padding: 0;
    background: none; transform: none; opacity: 1; visibility: visible;
  }
  .nav ul { flex-direction: row; gap: var(--s4); }
  .nav a { font-family: var(--f-sans); font-size: .9375rem; font-weight: 500; position: relative; padding: 8px 0; }
  .nav a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav a:hover::before, .nav a[aria-current="page"]::before { transform: scaleX(1); }
  .nav a[aria-current="page"]::after { display: none; }
  .lang { padding-left: var(--s3); border-left: 1px solid var(--line); }
  .lang a { min-width: 34px; min-height: 36px; }
  .nav-cta { min-height: 42px; padding: 8px 18px; font-size: .875rem; }
}
@media (min-width: 960px) and (max-width: 1180px) { .nav-panel { gap: var(--s3); } .nav ul { gap: var(--s3); } }

/* ---------- hero (Proyectos root) ---------- */
.hero { padding: var(--s5) 0 var(--s5); }
.hero-grid { display: grid; gap: var(--s5); }
.hero-method { border-top: 1px solid var(--line-strong); padding-top: var(--s3); }
.method li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.method li:last-child { border-bottom: 0; }
.method .num { padding-top: 5px; }
.method h3 { font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.method p { margin-top: 4px; font-size: .9375rem; color: var(--graphite); }
@media (min-width: 960px) {
  .hero { padding: var(--s6) 0 var(--s5); }
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: var(--s6); align-items: end; }
  .hero-method { border-top: 0; border-left: 1px solid var(--line-strong); padding: 0 0 0 var(--s4); }
}

/* ---------- section heads ---------- */
.section-head { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
.section-head p { max-width: 52ch; color: var(--graphite); }
@media (min-width: 800px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s5); }
  .section-head p { justify-self: end; }
}

/* ---------- chips (filters with own URLs) ---------- */
.chips {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) var(--s4); padding: 4px var(--gutter);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: .875rem; font-weight: 500;
  color: var(--ink); text-decoration: none; white-space: nowrap; background: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
@media (min-width: 960px) { .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* ---------- project cards ---------- */
.projects { padding: var(--s4) 0 var(--s6); }
.cards { display: grid; gap: var(--s4) var(--s3); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card a { position: relative; display: block; text-decoration: none; color: inherit; }
.media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--limestone); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media-drawing img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.card:nth-child(3n+2) .media-drawing { background: #EDE7DE; }
.card:nth-child(3n+3) .media-drawing { background: #E2DACD; }
.card a:hover .media img { transform: scale(1.03); }
.card-body { padding-top: var(--s2); }
.card-cat { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.card-title { margin-top: 6px; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.card a:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card-place { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: rgba(248, 246, 242, .9);
  border: 1px dashed var(--bronze); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze-ink);
}

/* ---------- services list ---------- */
.services { padding: var(--s6) 0; background: var(--limestone); }
.service-list { border-top: 1px solid var(--line-strong); }
.service-row {
  display: grid; grid-template-columns: 40px 1fr 28px; gap: 4px 12px; align-items: baseline;
  padding: var(--s3) 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: inherit;
}
.service-name { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; color: var(--ink); }
.service-short { grid-column: 2 / 3; font-size: .9375rem; color: var(--graphite); }
.service-go { grid-row: 1; grid-column: 3; color: var(--navy); transition: transform .25s var(--ease); }
.service-go svg { width: 24px; height: 24px; }
.service-row:hover .service-go { transform: translateX(6px); }
.service-row:hover .service-name { color: var(--navy); }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 40px; align-items: center; padding: var(--s4) 0; }
  .service-short { grid-column: 3; }
  .service-go { grid-column: 4; justify-self: end; }
}

/* ---------- integral (dark) ---------- */
.integral { padding: var(--s6) 0; background: var(--midnight); color: var(--chalk); }
.integral h2, .integral h3 { color: var(--chalk); }
.integral .display-m { max-width: 24ch; }
.steps { display: grid; gap: 0; margin-top: var(--s5); counter-reset: s; }
.steps li { position: relative; padding: var(--s3) 0 var(--s3) var(--s5); border-top: 1px solid rgba(248, 246, 242, .16); }
.steps li::before { content: ""; position: absolute; left: 6px; top: 32px; width: 9px; height: 9px; border: 1px solid var(--bronze); background: var(--midnight); }
.steps li::after { content: ""; position: absolute; left: 10px; top: 41px; bottom: -32px; width: 1px; background: rgba(154, 128, 104, .45); }
.steps li:last-child::after { display: none; }
.step-n { font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: #C2AA93; }
.steps h3 { margin-top: 4px; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
.steps p { margin-top: 6px; color: rgba(248, 246, 242, .72); font-size: .9375rem; }
.integral-note { margin-top: var(--s4); max-width: 60ch; color: rgba(248, 246, 242, .72); font-size: .9375rem; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: var(--s4) var(--s3) 0 0; border-top: 0; }
  .steps li::before { left: 0; top: -5px; }
  .steps li::after { left: 9px; right: 0; top: -1px; bottom: auto; width: auto; height: 1px; }
  .steps li:last-child::after { display: block; right: 40%; }
}

/* ---------- reasons ---------- */
.reasons { padding: var(--s6) 0; }
.reasons-grid { display: grid; gap: var(--s4); }
.reason-list { display: grid; gap: var(--s3); }
.reason-list li { padding-top: var(--s2); border-top: 1px solid var(--navy); }
.reason-list h3 { font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.reason-list p { margin-top: 8px; color: var(--graphite); }
@media (min-width: 900px) {
  .reasons-grid { grid-template-columns: 1fr 2fr; gap: var(--s6); }
  .reason-list { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
}

/* ---------- CTA band ---------- */
.cta-band { padding: var(--s6) 0; background: var(--navy); color: var(--chalk); }
.cta-band h2 { color: var(--chalk); }
.cta-inner { display: grid; gap: var(--s3); }
.cta-inner .actions { margin-top: 0; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; align-items: end; } .cta-inner .actions { justify-content: flex-end; } }

/* ---------- inner page hero ---------- */
.page-hero { padding: var(--s5) 0 var(--s4); }
.page-hero-legal { padding-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); font-size: .8125rem; color: var(--muted); }
.crumbs a { color: var(--navy); }
.page-hero-grid { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.big-num { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: .9; color: var(--bronze); }
@media (min-width: 900px) {
  .page-hero { padding: var(--s6) 0 var(--s4); }
  .page-hero-grid { grid-template-columns: 160px 1fr; gap: var(--s4); }
}

/* ---------- scope (category) ---------- */
.scope { padding: var(--s4) 0 var(--s6); }
.scope-grid { display: grid; gap: var(--s5); }
.includes { margin-top: var(--s3); border-top: 1px solid var(--line-strong); counter-reset: inc; }
.includes li {
  counter-increment: inc; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0;
  border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink);
}
.includes li::before { content: counter(inc, decimal-leading-zero); font-size: .75rem; font-weight: 600; color: var(--bronze-ink); padding-top: 5px; }
.note { margin-top: var(--s3); max-width: 56ch; font-size: .9375rem; color: var(--muted); }
.side-card { align-self: start; padding: var(--s4); background: var(--white); border: 1px solid var(--line); }
.method-compact li { padding: 12px 0; }
.side-actions { display: grid; gap: 10px; margin-top: var(--s3); }
.side-note { margin-top: var(--s2); font-size: .875rem; color: var(--muted); }
@media (min-width: 960px) {
  .scope-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: var(--s6); }
  .side-card { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* ---------- cases ---------- */
.cases { padding: var(--s6) 0; background: var(--limestone); }
.cases .display-m { margin-bottom: var(--s5); }
.case-list { display: grid; gap: var(--s6); }
.case { display: grid; gap: var(--s3); }
.case-media { position: relative; }
.case-media .media { background: #EFEAE2; }
.case-title { margin-top: 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem); line-height: 1.08; }
.case-dl { margin: var(--s3) 0 0; }
.case-dl > div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.case-dl dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.case-dl dd { margin: 0; color: var(--graphite); }
@media (min-width: 900px) {
  .case { grid-template-columns: 1.2fr 1fr; gap: var(--s5); align-items: center; }
  .case:nth-child(even) .case-media { order: 2; }
  .case-dl > div { grid-template-columns: 140px 1fr; gap: var(--s3); }
}

/* ---------- faq ---------- */
.faq { padding: var(--s6) 0; }
.faq-grid { display: grid; gap: var(--s4); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; gap: var(--s3); padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--f-display); font-size: 1.75rem; line-height: .8; color: var(--navy); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 64ch; color: var(--graphite); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 2fr; gap: var(--s6); } }

/* ---------- other services ---------- */
.others { padding: 0 0 var(--s6); }
.other-list { display: grid; margin-top: var(--s2); border-top: 1px solid var(--line-strong); }
.other {
  display: grid; grid-template-columns: 40px 1fr 24px; align-items: center; gap: 12px; padding: 18px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500;
}
.other svg { color: var(--navy); transition: transform .25s var(--ease); }
.other:hover { color: var(--navy); }
.other:hover svg { transform: translateX(4px); }
@media (min-width: 900px) { .other-list { grid-template-columns: repeat(2, 1fr); column-gap: var(--s5); } }

/* ---------- studio ---------- */
.principles { padding: var(--s4) 0 var(--s6); }
.principle-list { display: grid; gap: var(--s4); margin-top: var(--s3); }
.principle-list li { padding-top: var(--s2); border-top: 1px solid var(--navy); }
.principle-list h3 { margin-top: 10px; font-family: var(--f-display); font-weight: 400; font-size: 1.625rem; }
.principle-list p { margin-top: 8px; color: var(--graphite); }
@media (min-width: 700px) { .principle-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .principle-list { grid-template-columns: repeat(4, 1fr); } }

.people { padding: var(--s6) 0; background: var(--limestone); }
.people-grid { display: grid; gap: var(--s5); }
.people-grid > div > p { margin-top: var(--s2); max-width: 44ch; }
.person-list { display: grid; gap: var(--s4); }
.person-photo {
  display: grid; place-items: center; aspect-ratio: 4 / 5; background: #DDD4C7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.person-photo span { font-family: var(--f-display); font-size: 5rem; color: var(--navy); opacity: .5; }
.person h3 { margin-top: var(--s2); font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; }
.person-cred { margin: -4px 0 8px; font-size: .8125rem; color: var(--muted); }
.person-role { margin: 4px 0 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
@media (min-width: 640px) { .person-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .people-grid { grid-template-columns: 1fr 2fr; gap: var(--s6); } }

.facts { padding: var(--s6) 0; }
.facts-grid { display: grid; gap: var(--s5); }
.facts-grid > div { padding-top: var(--s2); border-top: 1px solid var(--line-strong); }
.fact-big { margin: 12px 0; font-family: var(--f-display); font-size: 2.5rem; color: var(--navy); letter-spacing: .04em; }
.area-list, .presence-list { margin-top: 12px; }
.area-list li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.presence-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.presence-list h3 { font-size: 1rem; font-weight: 600; }
.presence-list p { font-size: .9375rem; color: var(--graphite); }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }

.partners { padding: 0 0 var(--s6); }
.partner-slot { margin-top: var(--s2); padding: var(--s5) var(--s3); border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); font-size: .9375rem; }

/* ---------- contact ---------- */
.contact-options { padding: var(--s2) 0 var(--s5); }
.option-list { display: grid; gap: 12px; }
.option {
  position: relative; display: grid; gap: 8px; height: 100%; padding: var(--s4); text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.option svg { width: 28px; height: 28px; color: var(--navy); margin-top: 8px; }
.option h2 { font-size: 1.125rem; font-weight: 600; }
.option p { color: var(--graphite); font-size: .9375rem; }
.option .num { position: absolute; top: var(--s3); right: var(--s3); }
.option:hover { border-color: var(--navy); transform: translateY(-2px); }
.option-primary { background: var(--navy); border-color: var(--navy); color: var(--chalk); }
.option-primary h2, .option-primary svg { color: var(--white); }
.option-primary p { color: rgba(248, 246, 242, .8); }
.option-primary .num { color: #C2AA93; }
.option-meta { font-weight: 600; font-size: 1.0625rem; color: var(--ink) !important; }
.option-primary .option-meta { color: var(--white) !important; }
@media (min-width: 800px) { .option-list { grid-template-columns: repeat(3, 1fr); gap: var(--s3); } }

.contact-main { padding: var(--s5) 0 var(--s6); background: var(--limestone); }
.contact-grid { display: grid; gap: var(--s5); }
.contact-grid .display-m { margin-bottom: var(--s4); }
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 8px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink); }
.req { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.field input:not([type="checkbox"]):not([type="file"]), .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius); font-size: 1rem; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23082E72' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 44px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8, 46, 114, .15); }
/* File picker: native input hidden but focusable; translated label acts as the button */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px; cursor: pointer;
  background: rgba(255, 255, 255, .6); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-weight: 400 !important; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.file-drop:hover { border-color: var(--navy); background: var(--white); }
.file-input:focus-visible + .file-drop { outline: 2px solid var(--navy); outline-offset: 3px; }
.file-btn { padding: 8px 14px; background: var(--navy); color: var(--white); font-size: .8125rem; font-weight: 500; }
.file-status { font-size: .875rem; color: var(--muted); }
.field-check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.field-check label { font-weight: 400; color: var(--graphite); }
.hint { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.file-names { font-size: .8125rem; color: var(--ink); }
.file-names li::before { content: "— "; color: var(--bronze); }
.hp { position: absolute; left: -9999px; }
.sent { margin-bottom: var(--s3); padding: var(--s3); background: var(--white); border-left: 3px solid var(--navy); }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }

.visit { align-self: start; padding: var(--s4); background: var(--chalk); border: 1px solid var(--line); }
.visit > p { margin-top: 8px; color: var(--graphite); }
.visit address { display: grid; gap: 12px; margin-top: var(--s3); }
.visit-line { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); text-decoration: none; }
.visit-line svg { color: var(--navy); margin-top: 2px; }
a.visit-line:hover span { text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s3); color: var(--navy); font-weight: 500; }
.link-arrow svg { width: 18px; }
.map-drawing { margin-top: var(--s3); background: var(--limestone); }
/* Form sits centred as a single card */
.contact-grid { max-width: 880px; margin-inline: auto; }
.contact-grid > div { padding: var(--s4) var(--s3); background: var(--chalk); border: 1px solid var(--line); }
.contact-grid > div > .display-m { text-align: center; }
@media (min-width: 700px) { .contact-grid > div { padding: var(--s5); } }

/* ---------- legal ---------- */
.legal { padding: var(--s4) 0 var(--s6); }
.prose { max-width: 760px; margin-inline: 0; }
.prose p { margin-top: var(--s2); }
.draft-note { display: inline-block; padding: 6px 12px; border: 1px dashed var(--bronze); color: var(--bronze-ink); font-size: .8125rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--midnight); color: rgba(248, 246, 242, .78); padding: var(--s6) 0 calc(var(--s4) + 72px); font-size: .9375rem; }
.site-footer a { color: var(--chalk); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .btn-light { color: var(--midnight); }
.site-footer .btn:hover { text-decoration: none; }
.footer-grid { display: grid; gap: var(--s5); }
.footer-brand .brand-mark { color: var(--chalk); font-size: 2.25rem; }
.footer-brand .brand-sub { color: var(--chalk); font-size: .75rem; margin-top: 8px; }
.footer-descriptor { margin-top: 12px; max-width: 32ch; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s3); }
.footer-h { margin-bottom: var(--s2); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #C2AA93; }
.footer-list li + li { margin-top: 8px; }
.site-footer .muted { color: rgba(248, 246, 242, .55); }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgba(248, 246, 242, .14); font-size: .8125rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s3); }
.lang-footer a { color: rgba(248, 246, 242, .6); min-height: 36px; }
.lang-footer a[aria-current="true"] { color: var(--chalk); box-shadow: inset 0 -2px 0 var(--bronze); }
@media (min-width: 900px) {
  .site-footer { padding-bottom: var(--s4); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

/* ---------- floating CTAs ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 246, 242, .96);
  border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-cta .btn-primary { flex: 1; }
.wa-float { display: none; }
@media (min-width: 900px) {
  .mobile-cta { display: none; }
  .wa-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 45; display: grid; place-items: center; width: 56px; height: 56px;
    border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 0 0 2px var(--chalk), 0 8px 24px rgba(19, 35, 52, .25);
    transition: transform .2s var(--ease), background-color .2s var(--ease);
  }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float:hover { transform: translateY(-2px); background: var(--midnight); }
}
body.menu-open .mobile-cta, body.menu-open .wa-float { display: none; }

/* ---------- language suggestion + cookie ---------- */
.lang-suggest {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px var(--gutter);
  background: var(--navy); color: var(--chalk); font-size: .875rem;
}
.lang-suggest a { color: var(--white); font-weight: 600; }
.lang-suggest button { background: none; border: 0; color: rgba(248, 246, 242, .7); cursor: pointer; min-height: 32px; padding: 0 8px; font-size: 1.25rem; line-height: 1; }
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 60; display: grid; gap: 12px; max-width: 460px; padding: var(--s3);
  background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 12px 40px rgba(19, 35, 52, .18); font-size: .875rem;
}
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (min-width: 900px) { .cookie { left: 24px; right: auto; bottom: 24px; } }

/* ---------- UX review fixes ---------- */
/* Mobile: projects must appear almost immediately. The method collapses to one line and the
   hero buttons give way to the sticky bottom bar, which already carries Book + WhatsApp. */
.method-inline { margin-top: var(--s3); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
@media (max-width: 959px) {
  .hero { padding: var(--s4) 0 var(--s3); }
  .hero .display { font-size: clamp(2.25rem, 1.5rem + 3.6vw, 3rem); }
  .hero .lead { margin-top: var(--s2); }
  .hero-method { display: none; }
  .projects { padding-top: var(--s3); }
  .projects .section-head { margin-bottom: var(--s3); }
}
@media (max-width: 899px) { .hero-actions { display: none; } }
@media (min-width: 960px) { .method-inline { display: none; } .hero { padding-top: var(--s5); } }

/* Language suggestion: one compact line on phones */
@media (max-width: 599px) { .lang-suggest > span { display: none; } }
.lang-suggest a { display: inline-flex; align-items: center; min-height: 44px; }
.lang-suggest button { min-width: 44px; min-height: 44px; }

/* Footer links: comfortable touch targets */
.footer-list li + li { margin-top: 0; }
.footer-list a, .footer-legal a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-legal { column-gap: var(--s3); row-gap: 0; }

/* Arriving from a project card: mark the case you landed on */
.case:target .case-title { color: var(--navy); }
.case:target .case-media::after { content: ""; position: absolute; inset: -6px; border: 1px solid var(--navy); pointer-events: none; }

/* Long words (Russian/Ukrainian) must wrap instead of widening the page */
h1, h2, h3, p, li, dd, dt, label, summary { overflow-wrap: break-word; }
.scope-grid > *, .case > *, .faq-grid > *, .people-grid > *, .reasons-grid > *, .contact-grid > * { min-width: 0; }
.mobile-cta .btn-primary { min-width: 0; }
.mobile-cta .btn-primary span { overflow: hidden; text-overflow: ellipsis; }
.crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
.crumbs { align-items: center; }

/* Very narrow phones: long RU/UK button labels wrap instead of overflowing */
@media (max-width: 479px) { .btn { white-space: normal; text-align: center; } }

/* ---------- Mobile readability pass ---------- */
/* Dotted lists ("Arquitectura · Ingeniería · …"): each item wraps whole, separator belongs to the next item */
.eyebrow-list, .method-inline { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.dot-item { white-space: nowrap; }
.dot-item + .dot-item::before { content: "·"; margin: 0 .55em; color: var(--bronze); }
.eyebrow-list::before { flex: none; margin-right: 12px; }
.eyebrow-list { column-gap: 0; }
@media (max-width: 599px) {
  /* Phones: a small square marks every item, so wrapped lines read as a clean tag list */
  .eyebrow { letter-spacing: .12em; }
  .eyebrow-list::before { display: none; }
  .eyebrow-list, .method-inline { column-gap: 16px; }
  .dot-item::before, .dot-item + .dot-item::before {
    content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 0 0; vertical-align: 2px; background: var(--bronze);
  }
}

@media (max-width: 959px) {
  /* Inner-page titles: long German/Russian words must fit without splitting */
  .page-hero .display { font-size: clamp(2rem, 1.3rem + 3.2vw, 2.75rem); max-width: none; }
  .page-hero-grid { margin-bottom: var(--s4); }
  .big-num { font-size: 2.75rem; }
  /* Service pages: method already appears on the home page; keep only the actions */
  .side-card .method { display: none; }
  .side-actions { margin-top: 0; }
  .side-card { padding: var(--s3); }
  /* Shorter project images so the list scrolls less */
  .cards .media, .case-media .media { aspect-ratio: 3 / 2; }
  /* Tighter timeline */
  .steps li { padding: 18px 0 18px var(--s5); }
  .steps li::before { top: 24px; }
  .steps li::after { top: 33px; bottom: -24px; }
  .steps h3 { font-size: 1.375rem; }
}
/* No automatic hyphenation: words wrap whole (overflow-wrap only breaks a word that cannot fit at all) */
@media (max-width: 400px) { .page-hero .display { font-size: 1.75rem; } }
.page-hero .display { max-width: 21ch; }

/* Social links in the footer */
.footer-social { display: flex; gap: 16px; margin-top: var(--s3); }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--chalk); font-size: .875rem; }
.footer-social svg { width: 20px; height: 20px; }

/* Wide screens show the full method column, so hide the one-line version (must follow the flex rule above) */
@media (min-width: 960px) { .method-inline { display: none; } }

/* Partner logos (Studio page) */
.partner-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: var(--s2); background: var(--line); border: 1px solid var(--line); }
.partner { display: grid; place-items: center; min-height: 110px; padding: var(--s3); background: var(--chalk); text-align: center; }
.partner a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; color: var(--ink); }
.partner img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s var(--ease), opacity .2s var(--ease); }
.partner a:hover img { filter: none; opacity: 1; }
.partner span { font-size: .9375rem; font-weight: 500; color: var(--ink); }
@media (min-width: 700px) { .partner-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Phones: centred layout ----------
   Titles, intros, actions, cards and footer are centred. Lists with numbers,
   the form and the case details stay left-aligned so they scan easily. */
@media (max-width: 699px) {
  .hero-copy, .section-head, .page-hero, .integral > .wrap > .eyebrow,
  .integral .display-m, .integral .lead-light, .integral-note,
  .reasons-grid > h2, .reason-list li, .cta-inner, .faq-grid > h2,
  .cases .display-m, .scope .label, .note, .side-note,
  .principles .label, .principle-list li, .people-grid > div, .person,
  .facts-grid > div, .others .label, .card-body, .option,
  .contact-grid .display-m, .site-footer { text-align: center; }

  .display, .display-m, .lead, .lead-light, .section-head p, .note,
  .integral-note, .people-grid > div > p, .footer-descriptor { margin-inline: auto; }

  .eyebrow, .eyebrow-list, .method-inline, .actions, .crumbs,
  .footer-actions, .footer-social, .footer-base, .footer-legal, .lang-footer { justify-content: center; }
  .page-hero-grid { justify-items: center; }
  .integral .eyebrow { display: flex; }

  /* Stacked buttons share one width */
  .actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }

  .option { justify-items: center; }
  .option .num { right: var(--s2); top: var(--s2); }
  .person-photo { max-width: 280px; margin-inline: auto; }
  .area-list li, .presence-list li { text-align: center; }
  .site-footer .brand { align-items: center; }
  .footer-list { text-align: center; }
  .footer-base { flex-direction: column; text-align: center; }
}
