/* Fluid layout refinements for tablets, small laptops and narrow screens. */
img { display: block; max-width: 100%; }
body { overflow-x: hidden; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* Keep the Spanish about statement as three intentional lines at every width. */
.about-copy h2 { font-size: clamp(48px, 4.2vw, 74px); line-height: 1.03; }
.about-copy h2 .about-line { display: block; white-space: nowrap; line-height: 1.03; }

@media (min-width: 801px) {
  .site-header { justify-content: flex-start; }
  .site-header .nav { margin-left: auto; }
  .site-header .language-switch { flex: 0 0 92px; justify-content: center; margin-left: 30px; }
}

@media (min-width: 1181px) {
  .hero {
    height: calc(100dvh - 149px) !important;
    max-height: calc(100dvh - 149px) !important;
    min-height: 0 !important;
    padding-bottom: 42px;
  }

  .hero-image {
    width: min(40vw, 640px, calc(100dvh - 340px)) !important;
    height: min(40vw, 640px, calc(100dvh - 340px)) !important;
  }

  .hero h1 {
    font-size: clamp(68px, 6.3vw, 96px) !important;
  }

  .hero-content {
    padding-top: 2vh !important;
    padding-bottom: 3vh !important;
  }

  .hero-caption {
    bottom: clamp(34px, 4vh, 58px) !important;
  }

  .hero-secondary-image {
    width: clamp(170px, min(18vw, 24vh), 260px) !important;
    height: clamp(170px, min(18vw, 24vh), 260px) !important;
    bottom: clamp(58px, 7vh, 105px) !important;
  }
}

@media (min-width: 801px) and (max-width: 1180px) {
  .site-header { padding: 0 4vw; }
  .nav { gap: 20px; }
  .hero { height: calc(100dvh - 149px) !important; max-height: calc(100dvh - 149px) !important; min-height: 0 !important; padding: 28px 0 42px; align-items: center; }
  .hero-content { padding: 48px 4vw 48px 6vw !important; align-self: center !important; }
  .hero h1 { font-size: clamp(54px, 7.2vw, 82px) !important; max-width: 430px; }
  .hero-intro { font-size: 20px; max-width: 255px; }
  .hero-image { width: min(40vw, 470px, calc(100dvh - 320px)) !important; height: min(40vw, 470px, calc(100dvh - 320px)) !important; }
  .hero-secondary-image { width: clamp(160px, min(18vw, 22vh), 205px) !important; height: clamp(160px, min(18vw, 22vh), 205px) !important; right: 3vw !important; bottom: 8% !important; border-width: 8px !important; }
  .hero-caption { right: 3vw !important; font-size: 9px; }
  .section, .image-break { padding-left: 7vw; padding-right: 7vw; }
  .service-list h3 { font-size: 37px; }
}

@media (max-width: 800px) {
  .site-header { gap: 8px; }
  .site-header .logo { font-size: 18px; white-space: nowrap; flex: 0 0 auto; }
  .site-header .logo span { font-size: 22px; }
  .hero h1 { font-size: clamp(54px, 15vw, 78px) !important; max-width: none !important; }
  .hero-intro { font-size: 21px; max-width: 290px; }
  .marquee { height: 58px; font-size: 20px; }
  .image-break h2 { font-size: clamp(56px, 14vw, 78px); }
  .service-list article { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 12px; }
  .service-list h3 { font-size: clamp(31px, 9vw, 42px); }
  .contact h2 { font-size: clamp(56px, 14vw, 82px); }
}

@media (max-width: 600px) {
  .site-header { padding: 0 6vw; }
  .hero-content { padding-left: 6vw !important; padding-right: 6vw !important; }
  .hero h1 { font-size: clamp(52px, 16vw, 72px) !important; line-height: .93 !important; }
  .hero-intro { max-width: 270px; font-size: 20px; }
  .circle-link { width: 92px !important; height: 92px !important; font-size: 15px; }
  .hero-image { width: min(78vw, 330px) !important; height: min(78vw, 330px) !important; min-height: 0 !important; }
  .hero-secondary-image { width: 158px !important; height: 158px !important; right: 5vw !important; bottom: 68px !important; border-width: 7px !important; }
  .hero-caption { right: 5vw !important; bottom: 14px !important; font-size: 8px; white-space: nowrap; }
  .marquee { height: 54px; font-size: 18px; }
  .marquee i { margin-left: 20px; margin-right: 20px; }
  .section { padding-left: 6vw; padding-right: 6vw; }
  .services-head { gap: 32px; margin-bottom: 48px; }
  .service-row { grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 10px; }
  .service-row p { font-size: 13px; line-height: 1.6; }
}

@media (max-width: 380px) {
  .hero-content { width: 100%; }
  .kicker { max-width: 100%; font-size: 8px; letter-spacing: .12em; line-height: 1.45; }
  .hero h1 { font-size: clamp(45px, 14.5vw, 58px) !important; letter-spacing: -.055em; }
  .hero-image { width: min(72vw, 230px) !important; height: min(72vw, 230px) !important; }
  .hero-secondary-image { width: 128px !important; height: 128px !important; right: 4vw !important; bottom: 56px !important; border-width: 6px !important; }
  .hero-caption { right: 4vw !important; bottom: 10px !important; font-size: 7px; }
}

/* Soft-launch mobile type safety: keep translated headings readable and prevent accidental word-by-word stacking. */
@media (max-width: 800px) {
  .hero { height: auto !important; max-height: none !important; min-height: 0 !important; overflow: visible !important; display: flex !important; flex-direction: column !important; padding-bottom: 12px !important; }
  .hero-content { order: 1 !important; align-self: stretch !important; width: 100% !important; min-width: 0 !important; max-width: none !important; padding: 64px 7vw 92px !important; overflow: visible !important; }
  .hero-content h1 { max-width: 100% !important; overflow: visible !important; }
  .hero-intro { width: 100% !important; max-width: 280px !important; white-space: normal !important; overflow: visible !important; overflow-wrap: normal !important; word-break: normal !important; }
  .hero-cta-slot { min-height: 142px !important; margin-top: 30px !important; display: flex !important; align-items: flex-start !important; position: relative !important; z-index: 1 !important; }
  .circle-link { display: flex !important; flex: 0 0 auto !important; margin-top: 0 !important; margin-bottom: 0 !important; position: relative !important; z-index: 1 !important; }
  .hero-image { order: 2 !important; flex: 0 0 auto !important; display: block !important; }
  .hero-caption { order: 3 !important; }
  .about-copy { min-width: 0 !important; width: 100% !important; }
  .about-copy h2,
  .services-head h2,
  .service-intro h2,
  .service-note h2,
  .service-cta h2 { font-size: clamp(42px, 11vw, 66px) !important; line-height: .9; letter-spacing: -.045em; word-break: normal; overflow-wrap: normal; }
  .about-copy h2 { font-size: clamp(36px, 10.8vw, 58px) !important; line-height: 1.02 !important; }
  .about-copy h2 .about-line { line-height: 1.02; }
  .service-hero h1 { line-height: .9; word-break: normal; overflow-wrap: normal; }
  .service-blocks h3 { font-size: clamp(34px, 9vw, 46px); line-height: .92; word-break: normal; }
  .language-switch { margin-left: 0; padding-left: 10px; gap: 5px; font-size: 9px; }
}

/* Stable homepage hero layout: text, imagery and caption occupy separate flow areas. */
@media (min-width: 801px) {
  .hero {
    display: grid !important;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
    height: auto !important;
    max-height: none !important;
    min-height: calc(100dvh - 149px) !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .hero-content {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: clamp(48px, 7vh, 86px) 6vw 58px 10vw !important;
  }
  .hero-content h1 { max-width: 500px !important; }
  .hero-cta-slot {
    min-height: 150px !important;
    margin-top: 28px !important;
    padding-bottom: 42px !important;
    display: flex !important;
    align-items: flex-start !important;
    position: relative !important;
    z-index: 1 !important;
  }
  .hero-visual {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 20px 4vw 24px !important;
    overflow: visible !important;
  }
  .hero-image-wrap {
    position: relative !important;
    flex: 0 0 auto !important;
    width: min(40vw, 640px, calc(100dvh - 250px)) !important;
    aspect-ratio: 1 !important;
  }
  .hero-image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    background-position: center !important;
    background-size: cover !important;
  }
  .hero-secondary-image {
    position: absolute !important;
    width: clamp(170px, 18vw, 250px) !important;
    height: clamp(170px, 18vw, 250px) !important;
    right: -8% !important;
    bottom: 4% !important;
    border: 9px solid var(--paper) !important;
    border-radius: 50% !important;
    background-position: center !important;
    background-size: cover !important;
    z-index: 2 !important;
  }
  .hero-caption {
    position: static !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding: 0 !important;
    color: var(--ink) !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
    text-align: right !important;
    white-space: nowrap !important;
    z-index: 3 !important;
  }
  .hero-caption span { color: var(--muted) !important; }
  .hero { padding: 0 0 22px !important; }
  .hero-visual { order: 1 !important; padding: 28px 7vw 0 !important; }
  .hero-image-wrap { width: min(86vw, 360px) !important; aspect-ratio: 1 / .94 !important; }
  .hero-image { border-radius: 48% !important; }
  .hero-secondary-image { width: clamp(112px, 31vw, 150px) !important; height: clamp(112px, 31vw, 150px) !important; right: -2% !important; bottom: 3% !important; border-width: 6px !important; }
  .hero-caption { margin-top: 10px !important; text-align: right !important; padding-right: 2px !important; }
  .hero-content { order: 2 !important; padding: 44px 7vw 28px !important; }
  .hero-content .kicker { margin-bottom: 20px !important; }
  .hero h1 { font-size: clamp(52px, 14.5vw, 68px) !important; line-height: .9 !important; }
  .hero-intro { margin-top: 24px !important; max-width: 300px !important; font-size: 20px !important; }
  .hero-cta-slot { min-height: 104px !important; margin-top: 28px !important; padding-bottom: 0 !important; }
  .circle-link { width: 104px !important; height: 104px !important; font-size: 15px !important; }
  .circle-link b { margin-top: 8px !important; }
}

/* Contact form readability: keep the taupe panel refined, but make every piece of
   instructional and input text pass a clear contrast check on small screens. */
.contact h2 em {
  color: #4b3c2d !important;
}

.contact-layout > div > p {
  color: #3f362d !important;
}

.form-field label,
.form-field label span {
  color: #302a24 !important;
}

.form-field input,
.form-field textarea {
  color: #292621 !important;
  border-bottom-color: rgba(41, 38, 33, .62) !important;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #4b443c !important;
  opacity: 1 !important;
  font-family: var(--serif) !important;
  font-size: 19px !important;
  line-height: 1.3 !important;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: #292621 !important;
}

/* Clearer commercial path without breaking the editorial composition. */
.hero-cta-slot {
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.hero-direct-cta {
  margin-top: 34px !important;
  white-space: nowrap;
}

.process {
  background: var(--paper);
}

.process-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12vw;
  align-items: end;
  margin-bottom: 72px;
}

.process-head h2 {
  font-size: clamp(58px, 7vw, 106px);
}

.process-head > p {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.85;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.process-step {
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--line);
}

.process-step + .process-step {
  padding-left: 28px;
}

.process-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.process-step > span {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 32px;
}

.process-step h3 {
  font-size: clamp(34px, 4vw, 54px);
  margin-bottom: 16px;
}

.process-step p {
  max-width: 300px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-response-note {
  margin-top: 22px !important;
  font-family: var(--sans) !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
  color: #4b4035 !important;
  max-width: 330px;
}

@media (max-width: 800px) {
  .hero-cta-slot {
    gap: 18px;
  }

  .hero-direct-cta {
    margin-top: 4px !important;
  }

  .process-head {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 52px;
  }

  .process-head h2 {
    font-size: clamp(52px, 14vw, 76px);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step + .process-step,
  .process-step:last-child {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .process-step > span {
    margin-bottom: 15px;
  }

  .contact-response-note {
    max-width: 300px;
  }
}

/* Final mobile composition: the image leads the first impression, with copy and CTA below it. */
@media (max-width: 800px) {
  .hero { padding: 0 0 22px !important; }
  .hero-visual { order: 1 !important; padding: 28px 7vw 0 !important; }
  .hero-image-wrap { width: min(86vw, 360px) !important; aspect-ratio: 1 / .94 !important; }
  .hero-image { border-radius: 48% !important; }
  .hero-secondary-image { width: clamp(112px, 31vw, 150px) !important; height: clamp(112px, 31vw, 150px) !important; right: -2% !important; bottom: 3% !important; border-width: 6px !important; }
  .hero-caption { margin-top: 10px !important; text-align: right !important; padding-right: 2px !important; }
  .hero-content { order: 2 !important; padding: 44px 7vw 28px !important; }
  .hero-content .kicker { margin-bottom: 20px !important; }
  .hero h1 { font-size: clamp(52px, 14.5vw, 68px) !important; line-height: .9 !important; }
  .hero-intro { margin-top: 24px !important; max-width: 300px !important; font-size: 20px !important; }
  .hero-cta-slot { min-height: 104px !important; margin-top: 28px !important; padding-bottom: 0 !important; }
  .circle-link { width: 104px !important; height: 104px !important; font-size: 15px !important; }
  .circle-link b { margin-top: 8px !important; }
}

@media (max-width: 380px) {
  .hero-visual { padding-top: 22px !important; }
  .hero-content { padding-top: 36px !important; }
  .hero h1 { font-size: clamp(48px, 14vw, 58px) !important; }
  .hero-intro { font-size: 19px !important; }
  .hero-cta-slot { min-height: 96px !important; margin-top: 22px !important; }
  .circle-link { width: 94px !important; height: 94px !important; }
}

/* Mobile first impression: show the visual before the copy and keep every element in normal flow. */
@media (max-width: 800px) {
  .hero {
    padding: 0 0 22px !important;
  }
  .hero-visual {
    order: 1 !important;
    padding: 28px 7vw 0 !important;
  }
  .hero-image-wrap {
    width: min(86vw, 360px) !important;
    aspect-ratio: 1 / .94 !important;
  }
  .hero-image {
    border-radius: 48% !important;
  }
  .hero-secondary-image {
    width: clamp(112px, 31vw, 150px) !important;
    height: clamp(112px, 31vw, 150px) !important;
    right: -2% !important;
    bottom: 3% !important;
    border-width: 6px !important;
  }
  .hero-caption {
    margin-top: 10px !important;
    text-align: right !important;
    padding-right: 2px !important;
  }
  .hero-content {
    order: 2 !important;
    padding: 44px 7vw 28px !important;
  }
  .hero-content .kicker { margin-bottom: 20px !important; }
  .hero h1 {
    font-size: clamp(52px, 14.5vw, 68px) !important;
    line-height: .9 !important;
  }
  .hero-intro {
    margin-top: 24px !important;
    max-width: 300px !important;
    font-size: 20px !important;
  }
  .hero-cta-slot {
    min-height: 104px !important;
    margin-top: 28px !important;
    padding-bottom: 0 !important;
  }
  .circle-link {
    width: 104px !important;
    height: 104px !important;
    font-size: 15px !important;
  }
  .circle-link b { margin-top: 8px !important; }
}

@media (max-width: 380px) {
  .hero-visual { padding-top: 22px !important; }
  .hero-content { padding-top: 36px !important; }
  .hero h1 { font-size: clamp(48px, 14vw, 58px) !important; }
  .hero-intro { font-size: 19px !important; }
  .hero-cta-slot { min-height: 96px !important; margin-top: 22px !important; }
  .circle-link { width: 94px !important; height: 94px !important; }
}

/* Keep arrows text-shaped and editorial on every browser, including iOS. */
.nav-contact b,
.line-link span,
.button span,
.service-more b,
.service-arrow {
  font-variant-emoji: text;
}

/* Desktop first-viewport lock: header + hero + marquee fit exactly without clipping. */
@media (min-width: 801px) {
  .hero {
    height: calc(100dvh - 149px) !important;
    max-height: calc(100dvh - 149px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .hero-content {
    padding-top: clamp(28px, 3.5vh, 52px) !important;
    padding-bottom: 18px !important;
  }
  .hero-content .kicker { margin-bottom: 16px !important; }
  .hero-content h1 {
    font-size: clamp(52px, 5.8vw, 88px) !important;
    line-height: .84 !important;
  }
  .hero-intro { margin-top: 24px !important; font-size: clamp(18px, 1.6vw, 22px) !important; }
  .hero-cta-slot { min-height: 120px !important; margin-top: 22px !important; padding-bottom: 18px !important; }
  .hero-visual { padding-top: 12px !important; padding-bottom: 16px !important; }
  .hero-image-wrap { width: min(40vw, 640px, calc(100dvh - 230px)) !important; }
  .hero-caption { margin-top: 8px !important; font-size: 9px !important; }
}

@media (max-width: 800px) {
  .hero {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 0 28px !important;
  }
  .hero-content {
    order: 1 !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    padding: 64px 7vw 38px !important;
  }
  .hero-cta-slot {
    min-height: 150px !important;
    margin-top: 30px !important;
    padding-bottom: 42px !important;
    display: flex !important;
    align-items: flex-start !important;
  }
  .hero-visual {
    order: 2 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 7vw 20px !important;
  }
  .hero-image-wrap {
    position: relative !important;
    width: min(78vw, 360px) !important;
    aspect-ratio: 1 !important;
  }
  .hero-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    background-size: cover !important;
  }
  .hero-secondary-image {
    position: absolute !important;
    width: clamp(118px, 38vw, 178px) !important;
    height: clamp(118px, 38vw, 178px) !important;
    right: -7% !important;
    bottom: 4% !important;
    border: 7px solid var(--paper) !important;
    border-radius: 50% !important;
    background-size: cover !important;
    z-index: 2 !important;
  }
  .hero-caption {
    position: static !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding: 0 !important;
    color: var(--ink) !important;
    font-size: 8px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    white-space: normal !important;
    z-index: 3 !important;
  }
  .hero-caption span { color: var(--muted) !important; } /* terminal mobile block */
  .site-header { height: 78px !important; }
  .site-header .logo { font-size: 22px !important; }
  .site-header .logo span { font-size: 26px !important; }
  .menu-toggle { font-size: 11px !important; letter-spacing: .12em !important; }
  .language-switch { font-size: 10px !important; gap: 7px !important; padding-left: 12px !important; }
  .hero .hero-image-wrap { width: min(76vw, 310px) !important; }
  .hero .hero-secondary-image { width: clamp(96px, 26vw, 128px) !important; height: clamp(96px, 26vw, 128px) !important; border-width: 5px !important; }
  .hero { padding: 0 0 22px !important; }
  .hero-visual { order: 1 !important; padding: 28px 7vw 0 !important; }
  .hero-image-wrap { width: min(86vw, 360px) !important; aspect-ratio: 1 / .94 !important; }
  .hero-image { border-radius: 48% !important; }
  .hero-secondary-image { width: clamp(112px, 31vw, 150px) !important; height: clamp(112px, 31vw, 150px) !important; right: -2% !important; bottom: 3% !important; border-width: 6px !important; }
  .hero-caption { margin-top: 10px !important; text-align: right !important; padding-right: 2px !important; }
  .hero-content { order: 2 !important; padding: 44px 7vw 28px !important; }
  .hero-content .kicker { margin-bottom: 20px !important; }
  .hero h1 { font-size: clamp(52px, 14.5vw, 68px) !important; line-height: .9 !important; }
  .hero-intro { margin-top: 24px !important; max-width: 300px !important; font-size: 20px !important; }
  .hero-cta-slot { min-height: 104px !important; margin-top: 28px !important; padding-bottom: 0 !important; }
  .circle-link { width: 104px !important; height: 104px !important; font-size: 15px !important; }
  .circle-link b { margin-top: 8px !important; }
}
