/* ==========================================================================
   Despacho Lamas — home styles
   Tokens come from the original Framer project (tokens.css export).
   ========================================================================== */

/* Fonts are self-hosted: no request leaves for third parties. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/geist-500.woff2") format("woff2");
}

:root {
  /* Palette */
  --c-brown-900: #392615;      /* headings, dark UI */
  --c-brown-nav: rgba(57, 38, 21, 0.9);
  --c-brown-700: #585048;      /* body copy */
  --c-taupe: #736557;          /* big display words, secondary text */
  --c-bronze: #956e4b;         /* accents */
  --c-sand: #dbc0a9;           /* section indexes */
  --c-cream: #fceAD9;          /* team names */
  --c-line: #cfc5b8;
  /* Warm neutrals instead of pure white/grey: depth and a boutique feel. */
  --c-paper: #f6f1ea;          /* page background */
  --c-soft: #ece4d9;           /* alternate sections */
  --c-deep: #2b2119;           /* dark sections */
  --c-white: #fff;
  --c-card: #171210;
  --c-card-text: #eae3d9;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(5rem, 12.5vw, 11.25rem);    /* 180px @1440 */
  --fs-display: clamp(3rem, 6.95vw, 6.25rem);  /* 100px @1440 */
  --fs-h3: clamp(1.75rem, 2.8vw, 2.5rem);      /* 40px */
  --fs-h4: clamp(1.25rem, 1.8vw, 1.625rem);    /* 26px */
  --fs-body: 1.125rem;                         /* 18px */
  --fs-small: 1rem;                            /* 16px */

  /* Layout */
  --gutter: clamp(16px, 2vw, 28px);
  --max: 1440px;
  --radius: 10px;
  --nav-h: 86px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.4;
  letter-spacing: -0.05em;
  color: var(--c-brown-700);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--c-bronze); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--c-brown-900); color: var(--c-white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; display: flex; justify-content: center; }
.accent { color: var(--c-bronze); }

/* ---------- Type ---------- */
.display {
  font-size: var(--fs-display); font-weight: 400; line-height: 1;
  letter-spacing: -0.08em; color: var(--c-taupe);
}
.display--center { text-align: center; }
/* Long, sentence-like headlines read better a step smaller. */
.display--md { font-size: clamp(2.6rem, 5.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.065em; }
.display--light { color: var(--c-white); }
.h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.1; letter-spacing: -0.07em; color: var(--c-brown-900); }
.h4, .eyebrow-title { font-size: var(--fs-h4); font-weight: 400; line-height: 1.1; letter-spacing: -0.07em; color: var(--c-brown-900); }
.body { font-size: var(--fs-body); line-height: 1.4; letter-spacing: -0.05em; color: var(--c-brown-700); }
.small { font-size: var(--fs-small); line-height: 1.3; letter-spacing: -0.03em; color: var(--c-brown-700); }

/* ---------- Sections ---------- */
.eyebrow { margin-bottom: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-bronze); }
.section-head { display: grid; gap: 26px; max-width: 900px; margin-bottom: clamp(64px, 7vw, 110px); }
.section-head .eyebrow { margin-bottom: 0; }
.section-head--center { margin-inline: auto; justify-items: center; text-align: center; }
.section-head__lead { max-width: 760px; font-size: var(--fs-body); line-height: 1.55; letter-spacing: -0.03em; color: var(--c-brown-700); }
.section--dark { background: var(--c-deep); color: var(--c-soft); }
.section--dark .eyebrow { color: var(--c-sand); }
.section--dark .section-head__lead, .section--dark .small { color: rgba(236, 228, 217, 0.78); }
.section--dark .h4 { color: var(--c-white); }
.section { padding-block: clamp(120px, 13vw, 200px) 36px; }
.section--soft { background: var(--c-soft); }
.section-footer {
  display: flex; justify-content: space-between; align-items: end;
  padding-block: clamp(48px, 5vw, 72px) 28px; font-size: var(--fs-small); letter-spacing: -0.03em; color: var(--c-taupe);
}
.section-footer--light { color: var(--c-white); }
.section-index { color: var(--c-sand); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font-size: var(--fs-small); letter-spacing: -0.03em; cursor: pointer;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn__arrow { width: 19px; height: 8px; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--outline-light { border: 1px solid rgba(255,255,255,.7); color: var(--c-white); background: transparent; }
.btn--outline-light:hover { background: var(--c-white); color: var(--c-brown-900); }
.btn--light { background: var(--c-paper); color: var(--c-brown-900); }
.btn--light:hover { background: var(--c-white); }
.btn--outline { border: 1px solid var(--c-bronze); color: var(--c-bronze); background: transparent; }
.btn--outline:hover { background: var(--c-bronze); color: var(--c-white); }
.btn--solid { width: 100%; border: 0; background: var(--c-taupe); color: var(--c-white); }
.btn--solid:hover { background: var(--c-brown-900); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Text that slides up on hover (Framer "Link-button") */
.link-slide { display: inline-block; overflow: hidden; line-height: 1.3; vertical-align: bottom; }
.link-slide span { display: inline-block; position: relative; transition: transform .45s var(--ease-out); }
.link-slide span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%;
}
.link-slide:hover span, .link-slide:focus-visible span { transform: translateY(-100%); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--c-white);
  transition: background-color .4s var(--ease-out);
}
.site-nav__bar {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  min-height: var(--nav-h);
}
.site-nav__left { display: flex; align-items: center; gap: 20px; }
.site-nav__logo { width: 40px; color: var(--c-white); }
.site-nav__logo svg { width: 40px; height: 30px; }
.site-nav__toggle {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.site-nav__dots { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; transition: transform .4s var(--ease-out); }
.site-nav__dots i { width: 5px; height: 5px; border-radius: 1px; background: currentColor; }
.site-nav__toggle[aria-expanded="true"] .site-nav__dots { transform: rotate(45deg); }
.site-nav__address, .site-nav__claim { font-size: 14px; line-height: 1.3; letter-spacing: -0.03em; }
.site-nav__address { margin-left: clamp(0px, 5vw, 80px); opacity: .9; }
.site-nav__claim { display: none; max-width: 280px; }
.site-nav .btn { justify-self: end; }
/* Nav buttons stay slim: 40px, small type; they shrink with the screen (see below). */
.site-nav .btn { min-height: 40px; padding: 8px 18px; gap: 10px; font-size: 14px; white-space: nowrap; }
.site-nav .btn .btn__arrow { width: 16px; }
.site-nav__actions { grid-column: -2; justify-self: end; display: flex; align-items: center; gap: 10px; }
/* Always the last column: when the claim hides on scroll the buttons must not slide into its narrow slot. */
.site-nav .btn span, .site-nav .svc-all__label { white-space: nowrap; }
/* EN · DE · ES — quiet text links in the nav colour; the current one is underlined. */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; }
.lang-switch a { position: relative; padding: 8px 7px; opacity: 0.55; transition: opacity .3s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; }
.lang-switch a[aria-current]::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 4px; height: 1px; background: currentColor; }
.lang-switch--nav { margin-right: 4px; margin-left: 12px; padding-left: 10px; border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.lang-switch--menu { max-width: var(--max); margin: 28px auto 0; padding-inline: var(--gutter); font-size: 15px; }
.lang-switch--menu a { padding: 8px 12px 8px 0; }
.lang-switch--menu a[aria-current]::after { left: 0; right: 12px; }
@media (max-width: 899px) { .lang-switch--nav { display: none; } }

/* "All services" in the nav takes the nav's colour (dark over the stone hero, light elsewhere). */
.site-nav .svc-all--nav {
  height: 40px; padding: 0 16px 0 14px; font-size: 13.5px; color: currentColor; background: transparent;
  border-color: color-mix(in srgb, currentColor 45%, transparent);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-nav .svc-all--nav:hover { background: color-mix(in srgb, currentColor 12%, transparent); border-color: currentColor; }

.site-nav.is-scrolled, .site-nav.is-open { background: var(--c-brown-nav); backdrop-filter: blur(8px); }
/* Pages that open on paper (legal, blog): the bar is solid from the top so it stays legible. */
[data-nav-solid] .site-nav { background: var(--c-brown-nav); backdrop-filter: blur(8px); }
.site-nav.is-scrolled .site-nav__address { display: none; }

.site-menu { border-top: 1px solid rgba(255,255,255,.15); padding-block: 24px 40px; }
.site-menu__list { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 6px; }
.site-menu__list a { font-size: var(--fs-h3); letter-spacing: -0.07em; line-height: 1.2; opacity: .85; transition: opacity .2s; }
.site-menu__list a:hover { opacity: 1; color: var(--c-sand); }

@media (max-width: 1199px) {
  .site-nav .btn { padding: 8px 16px; }
  .site-nav .btn .btn__arrow { display: none; }
}
@media (max-width: 699px) {
  .site-nav .btn .btn__arrow { display: block; }
}
@media (min-width: 1000px) {
  .site-nav__bar { grid-template-columns: 1fr minmax(0, 360px) auto; }
  .site-nav__claim { display: block; }
  .site-nav.is-scrolled .site-nav__claim { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: var(--c-white);
  display: grid; grid-template-rows: 1fr auto; background: var(--c-deep); overflow: hidden;
}
.hero__bg, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { object-fit: cover; object-position: center 40%; }
.hero__shade {
  background:
    linear-gradient(90deg, rgba(33, 24, 16, 0.82) 0%, rgba(33, 24, 16, 0.55) 45%, rgba(33, 24, 16, 0.12) 100%),
    linear-gradient(180deg, rgba(33, 24, 16, 0.45) 0%, rgba(33, 24, 16, 0) 30%, rgba(33, 24, 16, 0.45) 100%);
}
.hero__content { position: relative; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 48px; }
.hero__intro { max-width: 860px; display: grid; gap: 22px; }
.hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-sand); }
.hero__title { font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 400; line-height: 0.98; letter-spacing: -0.06em; }
/* Long German compounds ("Immobilienanwälte") break with a hyphen rather than overflow on phones. */
@media (max-width: 699px) {
  html[lang="de"] .hero__title { -webkit-hyphens: auto; hyphens: auto; }
}
.hero__title { overflow-wrap: break-word; }
.hero__lead { max-width: 520px; font-size: var(--fs-h4); line-height: 1.25; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.88); }
.hero__values { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.35); font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-sand); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 8px; }
.hero__link { font-size: var(--fs-small); color: var(--c-white); border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.hero__menu {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-block: 18px 24px; font-size: var(--fs-small); letter-spacing: -0.03em;
  border-top: 1px solid rgba(255,255,255,.25);
}
.hero__menu a { align-self: start; } /* a stretched cell would reveal the hover copy */
.hero__menu a:last-child { justify-self: end; }
.hero .section-index { color: var(--c-sand); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

/* Light hero: Mallorcan marès stone background with dark copy; the nav over it
   stays dark until it turns solid on scroll. */
.hero--stone { color: var(--c-brown-900); background: var(--c-soft); }
.hero--stone .hero__bg { object-position: 25% center; }
.hero--stone .hero__shade {
  background:
    linear-gradient(90deg, rgba(246, 241, 234, 0.85) 0%, rgba(246, 241, 234, 0.6) 40%, rgba(246, 241, 234, 0) 70%),
    linear-gradient(180deg, rgba(246, 241, 234, 0.35) 0%, rgba(246, 241, 234, 0) 25%, rgba(246, 241, 234, 0) 80%, rgba(246, 241, 234, 0.4) 100%);
}
.hero--stone .hero__eyebrow, .hero--stone .hero__values, .hero--stone .section-index { color: var(--c-bronze); }
.hero--stone .hero__lead { color: var(--c-brown-700); }
.hero--stone .hero__values { border-top-color: rgba(57, 38, 21, 0.25); }
.hero--stone .hero__link { color: var(--c-brown-900); border-bottom-color: rgba(57, 38, 21, 0.35); }
.hero--stone .hero__menu { border-top-color: rgba(57, 38, 21, 0.2); }
.hero--stone .btn--light { background: var(--c-brown-900); color: var(--c-paper); }
.hero--stone .btn--light:hover { background: var(--c-deep); }
/* Light pages (stone hero, legal pages): the nav starts dark. */
body:is(:has(.hero--stone), :has(.legal)) .site-nav:not(.is-scrolled):not(.is-open) { color: var(--c-brown-900); }
body:is(:has(.hero--stone), :has(.legal)) .site-nav:not(.is-scrolled):not(.is-open) .site-nav__logo { color: var(--c-brown-900); }
body:is(:has(.hero--stone), :has(.legal)) .site-nav:not(.is-scrolled):not(.is-open) .btn--outline-light { border-color: rgba(57, 38, 21, 0.6); color: var(--c-brown-900); }
body:is(:has(.hero--stone), :has(.legal)) .site-nav:not(.is-scrolled):not(.is-open) .btn--outline-light:hover { background: var(--c-brown-900); color: var(--c-paper); }

/* ---------- Expertise: the property journey (modules/journey.js) ---------- */
.journey { position: relative; margin-top: clamp(24px, 3vw, 48px); }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.journey__ghost { fill: none; stroke: var(--c-line); stroke-width: 1; stroke-dasharray: 2 7; stroke-linecap: round; }
.journey__line { fill: none; stroke: var(--c-bronze); stroke-width: 1.6; stroke-linecap: round; }
.journey__pen { fill: var(--c-bronze); opacity: 0; filter: drop-shadow(0 0 6px rgba(149, 110, 75, 0.55)); transition: opacity .3s; }
.journey:not(.is-ready) .journey__svg { display: none; }
.journey__stages { position: relative; display: grid; gap: clamp(96px, 11vw, 170px); padding-block: clamp(48px, 6vw, 90px); }

.jstage { display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); align-items: center; }
.jstage__media { grid-column: 1; grid-row: 1; margin: 0; justify-self: end; width: min(100%, 380px); }
.jstage__node { grid-column: 2; grid-row: 1; justify-self: center; transform: translateX(var(--dx, -34px)); }
.jstage__body { grid-column: 3; grid-row: 1; max-width: 420px; }
.jstage--right .jstage__media { grid-column: 3; justify-self: start; }
.jstage--right .jstage__body { grid-column: 1; justify-self: end; text-align: right; }
.jstage--right .jstage__node { --dx: 34px; }
.jstage--right .jstage__list { justify-items: end; }

.jstage__node {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; color: var(--c-taupe);
  background: var(--c-soft); border: 1px solid var(--c-line);
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s, box-shadow .6s;
}
.jstage.is-reached .jstage__node { background: var(--c-bronze); border-color: var(--c-bronze); color: var(--c-white); box-shadow: 0 0 0 8px rgba(149, 110, 75, 0.14); }

.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden;
  display: grid; place-content: center; gap: 10px; padding: 32px; text-align: center;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(165deg, #e8dccb, #d3bea2);
  color: var(--c-brown-900);
}
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch__label { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-bronze); }
.arch__brief { font-size: 14px; line-height: 1.4; letter-spacing: -0.02em; opacity: 0.8; }

.jstage__label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-bronze); }
.jstage__title { margin: 12px 0 20px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; line-height: 1.08; letter-spacing: -0.05em; color: var(--c-brown-900); }
.jstage__list { display: grid; gap: 6px; font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; color: var(--c-brown-700); }
.jstage__promise { margin: 22px 0 16px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 17px; line-height: 1.4; letter-spacing: -0.03em; color: var(--c-brown-900); }
.jstage__link { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-bronze); transition: color .2s; }
.jstage__link:hover { color: var(--c-brown-900); }

/* Stages wait, softly, until the line reaches them. */
.js .journey.is-ready .jstage__media, .js .journey.is-ready .jstage__body {
  opacity: 0.25; transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}
.js .journey.is-ready .jstage__media .arch { transform: scale(1.04); transition: transform 1.4s var(--ease-out); }
.js .journey.is-ready .jstage.is-reached .jstage__media,
.js .journey.is-ready .jstage.is-reached .jstage__body { opacity: 1; transform: none; }
.js .journey.is-ready .jstage.is-reached .arch { transform: none; }
.js .journey.is-ready .jstage.is-reached .jstage__body { transition-delay: .12s; }

/* Desktop: the six stages travel sideways. The section pins to the screen while the page
   scrolls and the track slides left (modules/journey.js sets the height and the offset).
   The same drawn line as on tablets winds along the numbers, with a small loop between
   stages; the SVG slides with the track. */
@media (min-width: 1000px) {
  .journey.is-horizontal { margin-top: 0; margin-inline: calc(50% - 50vw); }
  .journey.is-horizontal .journey__pin {
    position: sticky; top: 0; height: 100svh; overflow: hidden;
    display: flex; align-items: center;
  }
  .journey.is-horizontal .journey__svg { inset: auto; left: 0; top: 0; max-width: none; will-change: transform; }
  .journey.is-horizontal .journey__stages {
    display: flex; align-items: flex-start; gap: clamp(56px, 5.5vw, 96px);
    padding: calc(var(--nav-h) + 8px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 0;
    will-change: transform;
  }
  .journey.is-horizontal .jstage {
    flex: none; width: clamp(280px, 23vw, 340px);
    display: grid; grid-template-columns: 1fr; align-items: start; row-gap: 22px;
  }
  .journey.is-horizontal .jstage__media { grid-column: 1; grid-row: 1; width: 100%; justify-self: stretch; }
  .journey.is-horizontal .arch { width: min(100%, 32svh); aspect-ratio: 1; margin: 0; }
  .journey.is-horizontal .jstage__node { grid-column: 1; grid-row: 2; justify-self: start; transform: none; margin-block: 16px; }
  .journey.is-horizontal .jstage__body { grid-column: 1; grid-row: 3; justify-self: start; max-width: none; text-align: left; }
  .journey.is-horizontal .jstage__list { justify-items: start; }
  .journey.is-horizontal .jstage__title { margin: 10px 0 14px; font-size: clamp(24px, 2vw, 30px); }
  .journey.is-horizontal .jstage__promise { margin: 16px 0 12px; padding-top: 12px; }
}
@media (min-width: 1000px) and (max-height: 760px) {
  .journey.is-horizontal .jstage__list { display: none; }
}

.expertise__foot { display: grid; justify-items: center; gap: 14px; margin-top: clamp(40px, 5vw, 72px); text-align: center; }
.expertise__motto { font-size: 13px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-taupe); }
.expertise__trust { margin-bottom: 14px; font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.06em; color: var(--c-brown-900); }

@media (max-width: 899px) {
  /* A rail on the left: node, then image and text stacked. */
  .jstage, .jstage--right { grid-template-columns: 56px minmax(0, 1fr); align-items: start; row-gap: 24px; }
  .jstage__node, .jstage--right .jstage__node { grid-column: 1; grid-row: 1; justify-self: start; --dx: 0px; }
  .jstage:nth-child(even) .jstage__node { --dx: 8px; }
  .jstage__media, .jstage--right .jstage__media { grid-column: 2; grid-row: 1; justify-self: start; width: min(100%, 320px); }
  .jstage__body, .jstage--right .jstage__body { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; }
  .jstage--right .jstage__list { justify-items: start; }
  .journey__stages { gap: 88px; }
}
@media (max-width: 699px) {
  .expertise__motto span { display: block; }
}

/* ---------- 360º ---------- */
.pillars { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-brown-900); }
.pillars span { margin-inline: 10px; color: var(--c-bronze); }

/* ---------- Horizontal gallery ---------- */
.gallery { position: relative; height: 300vh; }
.gallery__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
.gallery__track { display: flex; gap: 16px; padding-inline: var(--gutter); will-change: transform; }
.gallery__track img { height: min(70svh, 630px); width: auto; border-radius: var(--radius); object-fit: cover; flex: none; }
.gallery__track img:nth-child(2) { aspect-ratio: 3 / 4; }
.gallery__track img:nth-child(4) { aspect-ratio: 6 / 7; }
.gallery .section-footer { position: absolute; bottom: 0; left: 0; right: 0; }

/* ---------- Vision ---------- */
.vision__grid { display: grid; gap: 48px; align-items: center; }
.vision__text { display: grid; gap: 28px; max-width: 600px; }
.vision__text .eyebrow { margin-bottom: 0; }
.vision__photo { position: relative; margin: 0; }
.vision__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% center; border-radius: var(--radius); }
.vision__photo figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px; padding: 14px 18px; border-radius: 8px;
  background: rgba(43, 33, 25, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--c-soft); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.badge-rotating {
  position: relative; width: 130px; aspect-ratio: 1; margin-top: 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--c-brown-900); color: var(--c-white);
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
}
.badge-rotating > span { max-width: 76px; text-align: center; font-size: 10px; line-height: 1.25; letter-spacing: .06em; }
.badge-rotating svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 14s linear infinite; }
.badge-rotating text { fill: var(--c-sand); font-size: 9px; letter-spacing: .25em; }
.badge-rotating:hover svg { animation-duration: 5s; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .vision__grid { grid-template-columns: 1.05fr 1fr; gap: clamp(80px, 9vw, 140px); }
}

/* ---------- 360º orbit (home) — see service-card.css ---------- */
.service360 { overflow: hidden; }
.service360 .orbit { margin-block: 8px 32px; }

/* ---------- How we work (modules/how-we-work.js) ---------- */
/* Stone background, the picture in an arch that stays in view, and four steps that
   light up one after another as you read them. */
.how__grid { display: grid; gap: clamp(48px, 7vw, 120px); align-items: start; }
.how__figure { margin: 0; }
.how__frame { overflow: hidden; border-radius: 999px 999px 18px 18px; aspect-ratio: 4 / 5; background: var(--c-line); }
.how__image { width: 100%; height: 100%; object-fit: cover; object-position: 42% center; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.how__figure.is-visible .how__image { transform: scale(1.02); }
.how__figure figcaption { margin-top: 18px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-taupe); text-align: center; }
.how__text .section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.how__steps { border-top: 1px solid var(--c-line); }
.how__step {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px;
  padding: clamp(26px, 2.6vw, 34px) 0 clamp(26px, 2.6vw, 34px) 22px; border-bottom: 1px solid var(--c-line);
}
.how__step::before {
  content: ""; position: absolute; left: 0; top: clamp(26px, 2.6vw, 34px); bottom: clamp(26px, 2.6vw, 34px); width: 1px;
  background: var(--c-bronze); transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease-out);
}
.how__num { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; color: var(--c-bronze); font-variant-numeric: tabular-nums; padding-top: 4px; }
.how__title { font-size: var(--fs-h4); font-weight: 400; line-height: 1.1; letter-spacing: -0.06em; color: var(--c-brown-900); }
.how__desc { max-width: 460px; margin-top: 10px; font-size: var(--fs-small); line-height: 1.55; letter-spacing: -0.02em; color: var(--c-brown-700); }
.js .how__steps.is-ready .how__step > * { opacity: 0.38; transition: opacity .8s var(--ease-out); }
.js .how__steps.is-ready .how__step.is-active > * { opacity: 1; }
.js .how__steps.is-ready .how__step.is-active::before { transform: scaleY(1); }
@media (min-width: 900px) {
  .how__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); }
  .how__figure { position: sticky; top: calc(var(--nav-h) + 40px); }
}
@media (max-width: 899px) {
  .how__frame { aspect-ratio: 5 / 4; border-radius: 160px 160px 14px 14px; }
}

/* ---------- Results ---------- */
.results { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.results__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.results__inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: calc(var(--nav-h) + 40px); }
.results__intro { margin-top: 44px; }
.results dl { display: grid; gap: 28px; margin-top: 12px; }
.results dt { color: var(--c-brown-900); }
.results dd { font-size: var(--fs-small); letter-spacing: -0.03em; color: var(--c-brown-900); max-width: 150px; margin-top: 8px; }
.results__title { color: var(--c-brown-900); align-self: start; }
.results > .section-footer--light { color: var(--c-brown-900); }

/* ---------- Team ---------- */
.team__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(56px, 6vw, 88px); }
.team__sub { margin-top: 22px; max-width: 640px; }
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.member-card { position: relative; border-radius: var(--radius); overflow: hidden; }
.member-card img { width: 100%; aspect-ratio: 318 / 519; object-fit: cover; transition: transform .8s var(--ease-out); }
.member-card:hover img { transform: scale(1.04); }
.member-card__info { position: absolute; inset: auto 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.member-card__name { font-weight: 500; letter-spacing: -0.07em; color: var(--c-cream); }
.member-card__role { font-size: var(--fs-small); color: var(--c-white); letter-spacing: -0.03em; }
@media (min-width: 900px) { .team__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

/* ---------- Our story ---------- */
.story-home__grid { display: grid; gap: 48px; align-items: center; }
.story-home__text { display: grid; gap: 28px; max-width: 640px; }
.story-home__text .eyebrow { margin-bottom: 0; }
.story-home__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: sepia(0.18) saturate(0.9); }
@media (min-width: 900px) { .story-home__grid { grid-template-columns: 1fr 1fr; gap: clamp(80px, 9vw, 140px); } }

/* ---------- Closing (every page) ---------- */
.closing { padding-block: clamp(120px, 13vw, 210px); background: var(--c-soft); text-align: center; }
.closing__inner { display: grid; justify-items: center; }
.closing__title { color: #7a6249; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 500; text-wrap: balance; }
.closing__sub { margin: 18px 0 30px; color: #7a6249; font-size: clamp(15px, 1.7vw, 21px); letter-spacing: 0.055em; font-weight: 500; }
.closing__office { margin-top: 28px; font-size: 14px; line-height: 1.6; letter-spacing: -0.01em; color: #7a6e63; }

/* ---------- Contact: an invitation and a quiet, hairline form ---------- */
.contact { position: relative; padding-top: clamp(110px, 12vw, 180px); background: var(--c-paper); }
.contact__grid { display: grid; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__intro { display: grid; gap: 26px; align-content: start; }
.contact__intro .eyebrow { margin-bottom: 0; }
.contact__details { margin-top: 10px; border-top: 1px solid var(--c-line); }
.contact__details > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.contact__details dt { padding-top: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-bronze); }
.contact__details dd { font-size: var(--fs-small); letter-spacing: -0.02em; color: var(--c-brown-900); }
.contact__details a { border-bottom: 1px solid var(--c-line); transition: border-color .3s, color .3s; }
.contact__details a:hover { color: var(--c-bronze); border-color: var(--c-bronze); }

.contact-form { display: grid; gap: 26px; padding: clamp(28px, 3.4vw, 48px); border-radius: 22px; background: var(--c-soft); }
.contact-form__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.contact-form__topics legend { width: 100%; margin-bottom: 14px; padding: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-bronze); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--c-line);
  font-size: 14px; letter-spacing: -0.02em; color: var(--c-brown-700); background: rgba(255, 255, 255, 0.35);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.chip:hover span { border-color: var(--c-bronze); }
.chip input:checked + span { background: var(--c-brown-900); border-color: var(--c-brown-900); color: var(--c-paper); }
.chip input:focus-visible + span { outline: 2px solid var(--c-bronze); outline-offset: 2px; }
.contact-form__row { display: grid; gap: 26px; }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }

/* Fields: a single hairline; the label rests inside and rises as you type. */
.field { position: relative; display: block; padding-top: 18px; }
.field input, .field textarea {
  width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; background: transparent;
  font-size: 17px; letter-spacing: -0.02em; color: var(--c-brown-900); resize: vertical; outline: none;
}
.field span {
  position: absolute; left: 0; top: 26px; font-size: 16px; letter-spacing: -0.02em; color: var(--c-taupe); pointer-events: none;
  transform-origin: left top; transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus + span, .field textarea:focus + span,
.field input:not(:placeholder-shown) + span, .field textarea:not(:placeholder-shown) + span {
  transform: translateY(-24px) scale(0.72); color: var(--c-bronze);
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--c-brown-900);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.field textarea { min-height: 110px; }

.contact-form__consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; letter-spacing: -0.01em; color: var(--c-brown-700); cursor: pointer; }
.contact-form__consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--c-brown-900); }
.contact-form__consent a, .contact-form__legal a { color: var(--c-brown-900); border-bottom: 1px solid var(--c-line); }
.contact-form__send { display: grid; gap: 14px; }
.contact-form .btn--solid { width: auto; justify-self: start; min-height: 52px; padding: 14px 28px; background: var(--c-brown-900); }
.contact-form .btn--solid:hover { background: var(--c-bronze); }
.contact-form__legal { max-width: 520px; font-size: 11.5px; line-height: 1.55; letter-spacing: -0.005em; color: var(--c-taupe); }
.contact-card__status { font-size: 14px; line-height: 1.5; color: var(--c-brown-900); min-height: 1em; }
.contact-card__status:empty { display: none; }
.contact-card__status a { border-bottom: 1px solid var(--c-line); }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .contact__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- Footer ---------- */
.footer { position: relative; padding-bottom: 28px; background: var(--c-paper); overflow: hidden; }
/* "Lamas" spans the whole footer and bleeds a little past both edges: the word is
   2.69em wide, so 38.6vw makes it ~104vw, centred (flex centres the overflow evenly). */
.footer__wordmark {
  display: flex; justify-content: center; white-space: nowrap; padding-top: 24px;
  font-size: 38.6vw; line-height: .8; letter-spacing: -0.08em;
  color: var(--c-soft); user-select: none; pointer-events: none;
}
.footer__grid { display: grid; gap: 40px; margin-top: 24px; }
.footer__social { display: grid; gap: 8px; font-size: var(--fs-small); color: var(--c-brown-700); }
.footer__social a:hover, .footer__bottom a:hover { color: var(--c-bronze); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__mail { display: block; margin-top: 6px; color: var(--c-brown-900); }
.footer__mail:hover { color: var(--c-bronze); }
.footer__address { font-size: var(--fs-small); line-height: 1.4; letter-spacing: -0.03em; color: var(--c-brown-700); }
.footer__phone { display: block; margin-top: 10px; font-size: var(--fs-h4); letter-spacing: -0.07em; color: var(--c-brown-900); }
.newsletter { display: grid; gap: 10px; }
.newsletter__field { display: flex; align-items: center; border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 6px 4px 16px; margin-top: 12px; }
.newsletter__field input { flex: 1; border: 0; background: none; font-size: 14px; min-width: 0; outline: none; }
.newsletter__field button { width: 44px; height: 36px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--c-brown-900); }
.newsletter__field svg { width: 19px; height: 8px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--c-line);
  font-size: 13px; letter-spacing: -0.02em; color: var(--c-brown-700);
}
.to-top {
  position: absolute; right: var(--gutter); top: clamp(80px, 18vw, 260px);
  width: 56px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-brown-900); color: var(--c-white);
}
.to-top svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.to-top:hover svg { transform: translateY(-3px); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1.3fr; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 699px) {
  .site-nav .btn span { display: none; }
  .site-nav .btn { width: 40px; min-height: 40px; padding: 0; }
  .site-nav .svc-all--nav { width: 40px; padding: 0; justify-content: center; }
  .site-nav .svc-all--nav .svc-all__label { display: none; }
  .site-nav__address { display: none; }
  .hero__menu { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .hero__menu a:last-child { justify-self: start; }
  .gallery { height: auto; }
  .gallery__sticky { position: static; height: auto; padding-block: 40px 0; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gallery__track { transform: none !important; }
  .gallery__track img { height: 60svh; scroll-snap-align: center; }
  .gallery .section-footer { position: static; }
}

/* Phones: the hero text sits over the bright window and lamp; a veil keeps it legible. */
@media (max-width: 699px) {
  .hero--stone .hero__shade {
    background: linear-gradient(180deg, rgba(246, 241, 234, 0.55) 0%, rgba(246, 241, 234, 0.9) 22%, rgba(246, 241, 234, 0.78) 60%, rgba(246, 241, 234, 0.6) 78%, rgba(246, 241, 234, 0.92) 100%);
  }
}

/* ---------- Swipe rows (phones) ----------
   Lists marked data-swipe (journey, how we work, team, service pages) become a row of
   cards you swipe sideways, with the next card peeking in; modules/swipe.js adds the dots.
   The doubled attribute outranks each list's own grid rules. */
.swipe-dots { display: none; }
@media (max-width: 699px) {
  body [data-swipe][data-swipe] {
    display: flex; flex-wrap: nowrap; align-items: stretch; gap: 12px;
    margin-inline: calc(-1 * var(--swipe-pad, var(--gutter))); padding-inline: var(--swipe-pad, var(--gutter));
    scroll-padding-inline: var(--swipe-pad, var(--gutter));
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  body [data-swipe][data-swipe]::-webkit-scrollbar { display: none; }
  body [data-swipe][data-swipe] > * { flex: 0 0 var(--swipe-w, 84%); min-width: 0; scroll-snap-align: start; }
  .swipe-dots { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
  .swipe-dots button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
  .swipe-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-line); transition: background-color .3s, width .3s; }
  .swipe-dots button[aria-current]::before { width: 16px; border-radius: 3px; background: var(--c-bronze); }

  /* At every stage: one card per stage (photo, number, text), all fully shown. */
  .journey { margin-top: 32px; }
  .journey__svg { display: none; }
  body .journey__stages[data-swipe] { --swipe-w: 86%; gap: 14px; padding-block: 0; }
  .journey .jstage, .journey .jstage--right {
    grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 14px;
    padding: 12px 12px 22px; border-radius: 22px; background: var(--c-white); border: 1px solid var(--c-line);
  }
  .journey .jstage__media, .journey .jstage--right .jstage__media { grid-column: 1 / -1; grid-row: 1; width: 100%; }
  .journey .arch { aspect-ratio: 16 / 11; border-radius: 160px 160px 12px 12px; }
  .journey .jstage__node, .journey .jstage--right .jstage__node { grid-column: 1; grid-row: 2; --dx: 0px; width: 38px; height: 38px; font-size: 13px; margin-left: 6px; }
  .journey .jstage__body, .journey .jstage--right .jstage__body { grid-column: 1 / -1; grid-row: 3; padding-inline: 6px; text-align: left; }
  .journey .jstage__title { margin: 8px 0 14px; font-size: 25px; }
  .journey .jstage__list { font-size: 14px; }
  .journey .jstage__promise { margin: 16px 0 12px; padding-top: 12px; font-size: 16px; }
  .js .journey.is-ready .jstage__media, .js .journey.is-ready .jstage__body { opacity: 1; transform: none; }
  .js .journey.is-ready .jstage__media .arch { transform: none; }

  /* How we work: the four steps as cards, every one fully readable. */
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  body .how__steps[data-swipe] { --swipe-w: 80%; border-top: 0; }
  .how__step {
    grid-template-columns: 1fr; gap: 14px; padding: 24px 22px 26px;
    border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-paper);
  }
  .how__step::before { display: none; }
  .js .how__steps.is-ready .how__step > * { opacity: 1; }

  /* Team: portraits in a row. */
  body .team__grid[data-swipe] { --swipe-w: 64%; }

  /* Results: the figures sit on a soft veil so they stay legible over the photo. */
  .results::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(243 239 232 / 0.92) 0%, rgb(243 239 232 / 0.7) 60%, rgb(243 239 232 / 0.2) 100%); }
  .results__inner, .results > .section-footer { position: relative; z-index: 1; }
  .results__title, .results .section-footer--light { color: var(--c-brown-900); }

  /* Top bar: say what the two buttons do instead of two bare icons. */
  .site-nav .svc-all--nav, .site-nav .btn { width: auto; min-height: 36px; padding: 0 13px; font-size: 13px; }
  .site-nav .svc-all--nav .svc-all__label { display: inline; }
  .site-nav .svc-all--nav .svc-all__icon { display: none; }
  .site-nav .btn span { display: inline; }
  .site-nav .btn .btn__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
