/* ── Design tokens (single source of truth) ───────────────── */
:root{
  /* spacing scale: 0,5,10,15,20,30,40,60 */
  --sp-1:5px; --sp-2:10px; --sp-3:15px; --sp-4:20px; --sp-6:30px; --sp-8:40px; --sp-12:60px;
  --gutter:40px;    /* desktop outer page gutter */
  --gap:40px;       /* desktop column gap */
  --section:96px;   /* between stacked blocks */
  --card-pad:15px;  /* bordered card internal padding */
  /* type scale (hero kept large) */
  --hero:64px; --h1:48px; --h2:30px; --h3:24px; --body:18px;
  --field-val:32px; /* contact form big field value */
  /* blueprint palette */
  --surface:#f4f4f4;        /* unified light surface (matches services) */
  --surface-alt:#e7e9ec;    /* differentiated tone for contact bands */
  --blueprint-bg:#f4f4f4;
  --blueprint-ink:#2b2621;
  --blueprint-grey:#a9adb4;
  --pill-bg:#e6e6e6;
}
@media (max-width:1728px){
  :root{ --hero:56px; --h1:42px; --h2:27px; --h3:21px; --field-val:28px; }
}
@media (max-width:768px){
  :root{
    --gutter:20px; --gap:20px; --section:48px;
    --hero:40px; --h1:38px; --h2:24px; --h3:19px; --body:14px; --field-val:24px;
  }
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a, button { cursor: pointer; border: none; background: none; text-decoration: none; }
button:focus-visible { outline: 2px solid #FCB214; outline-offset: 2px; }

/* ── Nav ──────────────────────────────────────────────────── */
#navbar { transition: background-color 0.35s ease, transform 0.35s ease; }
/* Auto-hide: slides out of view when scrolling down, back in when scrolling up */
#navbar.nav-hidden { transform: translateY(-100%); }

/* Logo swaps: white over the black bar, colour horizontal once transparent */
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-logo .logo-color { display: none; }

/* Scrolled past the hero → fully transparent bar (no fill, no shadow, no
   border); only the icons float over the content. Links flip to dark. */
#navbar.nav-transparent {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
#navbar.nav-transparent .nav-logo .logo-white { display: none; }
#navbar.nav-transparent .nav-logo .logo-color { display: block; }
#navbar.nav-transparent .nav-link { color: #000; }
#navbar.nav-transparent .lang-btn { color: #000; border-color: rgba(0,0,0,0.4); }
#navbar.nav-transparent .lang-btn:hover { color: #000; border-color: #000; }

.nav-link {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 0;
  transition: color 0.18s;
}
.nav-link:hover { color: #fff; }
.nav-link.active-link { color: #fff; }
.nav-projects { color: #FCB214 !important; }
.nav-logo { cursor: pointer; }

/* Language toggle */
.lang-btn {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 46px;
  transition: color 0.18s, border-color 0.18s;
}
.lang-btn:hover { color: #fff; border-color: #fff; }

/* ── Mobile hamburger + dropdown menu ─────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  margin-left: 14px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.18s;
}
#navbar.nav-transparent .nav-burger span { background: #000; }
#navbar.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navbar.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
#navbar.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 48px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(12,12,12,0.98);
    padding: 6px 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.25s ease;
  }
  #navbar.menu-open .nav-links {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }
  /* Links always readable on the dark panel, even when the bar is transparent */
  .nav-links .nav-link,
  #navbar.nav-transparent .nav-links .nav-link { color: #fff; }
  .nav-links .nav-link {
    padding: 14px var(--gutter);
    font-size: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links .nav-link:last-child { border-bottom: none; }
}

/* ── View system ──────────────────────────────────────────── */
#view-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;   /* full viewport: content scrolls under the nav */
  overflow: hidden;
}
/* Non-home views keep their content clear of the fixed nav */
#view-about, #view-services, #view-contact { padding-top: 48px; }
.view {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  overflow-x: hidden;
  will-change: transform;
}
.view.active-view  { transform: translateX(0); }
.view.exit-left    { transform: translateX(-100%); }
.view.exit-right   { transform: translateX(100%); }

/* ── Home hero — scroll-scrubbed video ────────────────────── */
.hero-scrub {
  position: relative;
  /* Tall scroll region; the sticky child pins while the video scrubs.
     Travel = (this height) − (one view height) maps to the full clip. */
  height: calc(100vh * 3);
  background: #000;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
#hero-canvas {
  background: #000;
  pointer-events: none;
  display: block;
}
.hero-copy {
  transition: opacity 0.2s linear;
}

.hero-gradient {
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 30%, transparent 48%);
}
.teaser-gradient {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FCB214;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 12px 24px;
  border-radius: 2px;
  transition: background 0.15s, transform 0.12s;
}
.btn-primary:hover { background: #e6d200; }
.btn-primary:active { transform: scale(0.98); }

/* ── Section overline ─────────────────────────────────────── */
.section-overline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Projects layout ──────────────────────────────────────── */
.proj-title-badge {
  position: absolute;
  top: 84px;   /* 36px + 48px nav, since the view is now full-height */
  left: 48px;
  z-index: 10;
}

/* ── Circular split roll ──────────────────────────────────── */
.csr-scrub { position: relative; }          /* height set inline by JS (N × screens) */
.csr-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.csr-stage { position: relative; display: flex; height: 100%; width: 100%; }
.csr-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 50vw;
}
.csr-left  { transform: translateX(calc(5vw - 500px)); }
.csr-right { transform: translateX(calc(500px - 5vw)); }

.csr-title {
  position: absolute;
  left: 50%; top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  text-align: center;
  color: var(--blueprint-ink);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.csr-title-name {
  font-size: clamp(28px, 3vw, 56px);
  font-weight: 700;                 /* nombre en negritas */
  line-height: 1;
  letter-spacing: -0.04em;
}
.csr-title-meta {
  margin-top: 8px;
  font-size: clamp(12px, 1vw, 15px);   /* info adicional, más chica */
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.55;
}
.csr-card {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--css-card-width, 384px);
  height: var(--css-card-height, 216px);
  opacity: 0;
  will-change: transform, opacity;
}
.csr-card-inner {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 0;                 /* esquinas rectas */
  background: #f5f2eb;
  box-shadow: 0 30px 60px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.16);
}

/* In-place image carousel (roll cards + grid items) */
.csr-carousel-track {
  display: flex;
  width: 100%; height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.csr-carousel-track img,
.csr-carousel-track video {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
.csr-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.42);
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  z-index: 3;
}
.csr-arrow:hover { background: rgba(0,0,0,0.68); }
.csr-arrow-prev { left: 10px; }
.csr-arrow-next { right: 10px; }
.csr-card-inner:hover .csr-arrow { opacity: 1; }
.csr-grid-img .csr-arrow { opacity: 1; background: rgba(0,0,0,0.4); }

/* Grid fallback (mobile / reduced-motion) */
.csr-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(var(--section) + 48px) var(--gutter) var(--section);
}
.csr-grid-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: #f5f2eb;
  box-shadow: 0 18px 38px rgba(0,0,0,0.28);
}
.csr-grid-title {
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--blueprint-ink);
}
.csr-grid-title .csr-title-name { font-size: clamp(18px, 4vw, 26px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.csr-grid-title .csr-title-meta { margin-top: 5px; font-size: clamp(11px, 3vw, 13px); font-weight: 500; opacity: 0.55; }

/* Below 1025px or reduced-motion → static grid instead of the animation */
@media (max-width: 1025px) {
  .csr-sticky { display: none; }
  .csr-scrub  { height: auto !important; }
  .csr-grid   { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .csr-sticky { display: none; }
  .csr-scrub  { height: auto !important; }
  .csr-grid   { display: grid; }
}

/* ── Detail overlay ───────────────────────────────────────── */
.detail-overlay {
  position: fixed;
  top: 48px; left: 0;
  width: 100vw;
  height: calc(100vh - 48px);
  background: #fff;
  z-index: 900;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.detail-overlay.hidden { display: none; }
.detail-overlay.open { transform: translateX(0); }

/* Back button */
.detail-back {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 46px;
  transition: background 0.15s, transform 0.12s;
}
.detail-back:hover { background: #fff; transform: translateX(-2px); }

/* Detail layout */
.detail-content {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: 100%;
}
.detail-left {
  padding: 80px 40px 40px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.detail-right {
  position: relative;
  overflow: hidden;
}
.detail-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.detail-year-wrap {
  position: absolute;
  bottom: 24px;
  left: 24px;
}

/* Detail typography */
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.detail-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #FCB214;
  color: #000;
  padding: 3px 10px;
  border-radius: 46px;
}
.detail-location {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.06em;
}
.detail-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 0.95;
  color: #000;
  margin-bottom: 16px;
}
.detail-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 32px;
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #111;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
}
.gallery-nav:hover { background: rgba(0,0,0,0.75); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.gallery-dots .gdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.gallery-dots .gdot.active {
  background: #FCB214;
  transform: scale(1.3);
}

/* ── Shared: arrow link ("Label →") ───────────────────────── */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--body);
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.01em;
  transition: gap 0.2s;
}
.arrow-link .al-arrow { transition: transform 0.2s; }
.arrow-link:hover { gap: var(--sp-3); }
.arrow-link:hover .al-arrow { transform: translateX(3px); }

/* ── Shared: blueprint corner-box + registration marks ────── */
.corner-box {
  position: relative;
  border: 1px solid var(--blueprint-ink);
}
/* flat-head screw: circle with a single slot line */
.cmark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--blueprint-ink);
  background: var(--blueprint-bg);
  z-index: 2;
  pointer-events: none;
}
.cmark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1.5px;
  background: var(--blueprint-ink);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.cmark.tl { top: -6px;    left: -6px; }
.cmark.tr { top: -6px;    right: -6px; }
.cmark.bl { bottom: -6px; left: -6px; }
.cmark.br { bottom: -6px; right: -6px; }

/* ── About page ───────────────────────────────────────────── */
.about-photo-wrap { padding: calc(var(--section) * 1.25) var(--gutter) var(--sp-12); }
.about-photo {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;              /* centrada */
  aspect-ratio: 16/9;
  object-fit: cover;
}
.about-intro { padding: 0 var(--gutter) var(--section); text-align: center; }
.about-headline {
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.05;
  color: var(--blueprint-ink);
  margin: var(--sp-4) auto var(--sp-6);
  max-width: 22ch;
}
.about-lead {
  font-size: var(--body);
  line-height: 1.7;
  color: var(--blueprint-ink);
  opacity: 0.85;
  max-width: 68ch;
  margin: 0 auto;             /* centrado bajo la imagen */
}

/* ── Home scroll-accordion ────────────────────────────────── */
.acc-section {
  display: grid;
  gap: var(--gap);
  padding: var(--section) var(--gutter);
  align-items: start;
}
.acc-section.has-image {
  grid-template-columns: 2fr 1fr;   /* image 2/3, text 1/3 */
  /* Match the top gap to the combined gap below, plus a little extra */
  padding-top: calc(var(--section) * 2.25);
}
.acc-section.thirds { grid-template-columns: 1fr 2fr; }       /* label 1/3, rows 2/3 */
.acc-label {
  font-size: var(--body);
  font-weight: 600;
  color: var(--blueprint-ink);
  margin-bottom: var(--sp-4);
}
.acc-intro {
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.12;
  color: var(--blueprint-ink);
  margin-bottom: var(--section);
  max-width: 22ch;
}
.acc-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;   /* keep full column width, natural photo proportion */
  overflow: hidden;
  background: #cfd4dc;
}
.acc-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.acc-image-wrap img.active { opacity: 1; }
.acc-rows { display: flex; flex-direction: column; }
.acc-row {
  position: relative;
  border: 1px solid var(--blueprint-ink);
  padding: var(--sp-4) var(--sp-3);
  cursor: pointer;
  transition: background 0.25s;
}
.acc-rows .acc-row + .acc-row { margin-top: -1px; }
.acc-row-head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}
.acc-num {
  font-size: var(--body);
  font-weight: 700;
  color: var(--blueprint-ink);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
.acc-title {
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.1;
  color: var(--blueprint-ink);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.45s ease,
              margin-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.acc-row.expanded .acc-body {
  max-height: 420px;
  opacity: 1;
  margin-top: var(--sp-3);
}
.acc-desc {
  font-size: var(--body);
  line-height: 1.5;
  color: var(--blueprint-ink);
  max-width: 52ch;
}
.acc-desc .arrow-link { margin-top: var(--sp-3); }

/* ── Persistent "Get in Touch →" pill ─────────────────────── */
.cta-pill {
  position: fixed;
  bottom: var(--gutter);
  left: var(--gutter);
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--pill-bg);
  color: var(--blueprint-ink);
  font-size: var(--body);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 2px;
  transition: opacity 0.3s, transform 0.2s, background 0.2s;
}
.cta-pill:hover { background: #d0d5dd; transform: translateY(-2px); }
.cta-pill.pill-hidden { opacity: 0; pointer-events: none; }
.cta-pill .al-arrow { transition: transform 0.2s; }
.cta-pill:hover .al-arrow { transform: translateX(3px); }

/* ── Contact: blueprint conditional form ──────────────────── */
#view-contact { background: var(--blueprint-bg) !important; color: var(--blueprint-ink); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;   /* head 1/3, form 2/3 */
  gap: var(--gap);
  padding: var(--section) var(--gutter);
  align-items: start;
}
.contact-head { position: sticky; top: var(--section); }
.contact-head .contact-title { font-size: var(--h2); }

/* Home-page contact — smaller and a different tone */
.home-contact {
  background: var(--surface-alt);
  --field-val: 22px;
}
.home-contact .field { min-height: 72px; }
.home-contact .contact-head .contact-title { font-size: var(--h3); }
.home-contact .contact-submit { font-size: var(--body); }
.contact-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blueprint-ink);
  opacity: 0.5;
  margin-bottom: var(--sp-3);
}
.contact-title {
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--sp-4);
}
.contact-intro {
  font-size: var(--body);
  line-height: 1.5;
  max-width: 52ch;
  opacity: 0.8;
}
.contact-form { display: flex; flex-direction: column; }
.contact-fields { position: relative; display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; }
.form-row.single { grid-template-columns: 1fr; }
/* single-line grid: outer frame owns top+left, each cell owns right+bottom */
.contact-fields { border-top: 1px solid var(--blueprint-ink); border-left: 1px solid var(--blueprint-ink); }

.field {
  position: relative;
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--blueprint-ink);
  border-bottom: 1px solid var(--blueprint-ink);
}
.field-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--blueprint-ink);
  margin-bottom: var(--sp-1);
}
.field-value {
  font-size: var(--field-val);
  font-weight: 600;
  color: var(--blueprint-ink);
  line-height: 1.05;
}
.field-value.placeholder { opacity: 0.4; font-weight: 500; }
/* text inputs */
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--blueprint-ink);
  font-family: inherit;
  font-size: var(--field-val);
  font-weight: 600;
  line-height: 1.1;
  padding: 0;
  resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--blueprint-grey); font-weight: 500; }
.field.field-message { min-height: 200px; align-items: stretch; }
.field.field-message textarea { flex: 1; resize: vertical; min-height: 150px; }

/* custom dropdown */
.field.dropdown { cursor: pointer; }
.field .dd-caret {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 14px;
  color: var(--blueprint-ink);
  transition: transform 0.2s;
}
.field.dropdown.open .dd-caret { transform: rotate(180deg); }
/* collapsed value — cross-fades out as the list expands */
.field .dd-value {
  display: flex;
  align-items: center;
  max-height: 60px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}
.field.dropdown.open .dd-value { max-height: 0; opacity: 0; }
/* inline option list — same smooth expand as the home accordion */
.field .dd-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.45s ease,
              margin-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.field.dropdown.open .dd-options { max-height: 420px; opacity: 1; margin-top: var(--sp-3); }
.dd-option {
  font-size: var(--field-val);
  font-weight: 600;
  line-height: 1.1;
  color: var(--blueprint-grey);
  cursor: pointer;
  transition: color 0.15s;
}
.dd-option:hover, .dd-option.selected { color: var(--blueprint-ink); }

/* submit + success */
.contact-submit {
  align-self: flex-start;
  margin-top: var(--section);
  font-size: var(--h3);
  font-weight: 700;
  color: var(--blueprint-ink);
  background: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: gap 0.2s;
}
.contact-submit:hover { gap: var(--sp-3); }
.contact-success {
  margin-top: var(--section);
  font-size: var(--h3);
  font-weight: 700;
  color: var(--blueprint-ink);
}
.contact-error {
  margin-top: var(--sp-4);
  font-size: var(--body);
  font-weight: 500;
  color: #b91c1c;
}
/* Honeypot — off-screen, unreachable to humans, invisible but present */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Contact intro block (centered, alt tone, roomy) ──────── */
.contact-hero {
  background: linear-gradient(rgba(20,18,16,0.3), rgba(20,18,16,0.3)),
              url("../Fotos/AT/f1.JPG") center / cover no-repeat;
  padding: calc(var(--section) * 1.5) var(--gutter);
  color: #fff;
  text-align: center;
}
.contact-hero .contact-eyebrow,
.contact-hero .cm-label,
.contact-hero .cm-value { color: #fff; }
.contact-hero-title {
  font-size: var(--h1);
  font-weight: 700;
  line-height: 1.05;
  margin: var(--sp-3) auto var(--sp-4);
  max-width: 20ch;
}
.contact-hero-sub {
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.5;
  max-width: 52ch;
  margin: 0 auto;
  opacity: 0.75;
}
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--section);
  margin-top: calc(var(--section) * 1.25);
}
.contact-methods .cm { display: flex; flex-direction: column; gap: var(--sp-1); align-items: center; }
.cm-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
}
.cm-value {
  font-size: var(--h3);
  font-weight: 600;
  color: var(--blueprint-ink);
}
a.cm-value:hover { text-decoration: underline; }

/* ── Site footer (injected into each view) ────────────────── */
.site-footer {
  background: var(--ink, #000);
  color: rgba(255,255,255,0.7);
  padding: var(--section) var(--gutter) var(--sp-6);
  margin-top: var(--section);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: var(--section);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}
.footer-logo-img { height: 34px; width: auto; display: block; margin-bottom: var(--sp-4); }
.footer-tagline { font-size: var(--body); line-height: 1.5; max-width: 34ch; }
.footer-col h4 {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col a, .footer-col button, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: var(--body);
  text-align: left;
  margin-bottom: var(--sp-2);
  transition: color 0.15s;
}
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-bottom {
  padding-top: var(--sp-4);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-4);
}
.footer-privacy {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  transition: color 0.15s;
}
.footer-privacy:hover { color: #fff; text-decoration: underline; }

/* ── Privacy policy modal ─────────────────────────────────── */
.privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(10,10,10,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.privacy-overlay.open { opacity: 1; }
.privacy-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--blueprint-bg, #f5f2eb);
  color: var(--blueprint-ink, #1a1a1a);
  padding: calc(var(--section) * 0.8) clamp(20px, 5vw, 56px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.4);
  transform: translateY(12px);
  transition: transform 0.3s ease;
}
.privacy-overlay.open .privacy-panel { transform: translateY(0); }
.privacy-close {
  position: absolute;
  top: 16px; right: 18px;
  width: 34px; height: 34px;
  font-size: 18px; line-height: 1;
  color: var(--blueprint-ink, #1a1a1a);
  opacity: 0.55;
  transition: opacity 0.15s;
}
.privacy-close:hover { opacity: 1; }
.privacy-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.5;
}
.privacy-title {
  font-size: var(--h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: var(--sp-2) 0 var(--sp-1);
}
.privacy-updated {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: var(--sp-6);
}
.privacy-body {
  font-size: var(--body);
  line-height: 1.7;
}
.privacy-body strong { font-weight: 700; }

@media (max-width:680px){
  .footer-bottom { justify-content: space-between; }
}

@media (max-width:768px){
  .contact-methods { gap: var(--sp-6); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .acc-section.has-image,
  .acc-section.thirds { grid-template-columns: 1fr; }
  .acc-image-wrap { aspect-ratio: 16/9; margin-bottom: var(--section); }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-head { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .csr-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  /* Give the pill a shadow so it clearly floats above the content */
  .cta-pill { box-shadow: 0 8px 24px rgba(0,0,0,0.28); }
}

/* Phones: single-column projects (bigger photos), badge clears the grid */
@media (max-width:680px){
  .proj-title-badge { top: 64px; left: var(--gutter); }
  .csr-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    max-width: 460px;
    padding-top: 120px;
  }
  .csr-arrow { width: 44px; height: 44px; font-size: 24px; }
}

/* ── Utility ──────────────────────────────────────────────── */
.hidden { display: none !important; }
