  /* Fraunces: warm wonky serif for headings (self-hosted, variable opsz/wght); see assets/fonts/OFL.txt */
  @font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../assets/fonts/fraunces-latin-var.woff2") format("woff2");
  }
  /* Illustrations (.figure, .svc-card, .svc-arrow) keep the light palette in dark mode, like the photos */
  :root, .figure, .svc-card, .svc-arrow {
    color-scheme: light;
    --cream: #FCF8EF;
    --paper: #F5EDDE;
    --line: #E6D9C3;
    --ink: #1E2A2F;
    --ink-2: #4A5459;
    --terra: #D9572B;
    --terra-ink: #A23C16;
    --river: #A8CFE3;
    --river-ink: #2B6684;
    --petrol: #274B57;
    --surface: #FFFFFF;
    --terra-tint: #FBE6DA;
    --river-tint: #E2EFF6;
    --serif: "Fraunces", ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.22,.8,.26,1);
  }
  /* Dark mode is a user toggle (src/theme.mjs); light is the default; the <head> script applies a saved dark choice before paint */
  :root[data-theme="dark"] {
      color-scheme: dark;
      --cream: #12191C;
      --paper: #182327;
      --surface: #1C282D;
      --line: #2E3C42;
      --ink: #EEE8DC;
      --ink-2: #AFB9BC;
      --terra: #E8693A;
      --terra-ink: #F4A47F;
      --terra-tint: #3A2219;
      --river-ink: #8FC3DC;
      --river-tint: #18303A;
      --iso-pylon: #8FB6C8;
  }
  /* Text roles and accents on the petrol bands; the same in both themes */
  :root {
    --on-petrol: #F4F8F9;
    --on-petrol-2: #DBE6E8;
    --on-petrol-3: #B9CBD0;
    --terra-soft: #F4A47F;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
  .skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 16px; z-index: 99; }
  .skip:focus { left: 8px; }
  .wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
  .eyebrow { font: 500 14px/1.2 var(--mono); color: var(--terra-ink); }
  h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; margin: 0; }
  /* emphasis in headlines is color only, never italic */
  h1 em, h2 em { font-style: normal; }
  h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; }
  .lead { color: var(--ink-2); font-size: 19px; max-width: 56ch; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); transition: transform .15s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); cursor: pointer; font-size: 16px; }
  .btn:active { transform: scale(.98); }
  .btn-primary { background: var(--ink); color: var(--cream); }
  .btn-primary:hover { background: var(--terra-ink); border-color: var(--terra-ink); }
  .btn-ghost { background: transparent; color: var(--ink); }
  .btn .arrow { transition: transform .2s var(--ease); }
  .btn:hover .arrow { transform: translateX(4px); }

  /* Nav */
  .nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--cream) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), background-color .3s var(--ease); }
  .nav.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--cream) 94%, transparent); }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .brand { display: flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; font-size: 18px; }
  .iso { flex: none; overflow: visible; }
  .footer .iso { --iso-pylon: var(--river); }
  .nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
  .nav ul a { text-decoration: none; color: var(--ink-2); }
  .nav ul a:hover { color: var(--ink); }
  .nav .btn { padding: 10px 16px; font-size: 15px; }
  .nav-actions { display: flex; align-items: center; gap: 8px; }
  .theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease); }
  .theme-toggle:hover { border-color: var(--ink); }
  .theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .theme-toggle .icon-sun, [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
  [data-theme="dark"] .theme-toggle .icon-sun { display: block; }
  .menu-toggle { display: none; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease); }
  .menu-toggle:hover { border-color: var(--ink); }
  .menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .brand { white-space: nowrap; }
  .nav .wrap { gap: 12px; }
  .theme-toggle { flex: none; }

  /* Hero */
  .hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 96px); overflow: hidden; }
  .hero-copy { position: relative; z-index: 2; max-width: 880px; text-align: center; }
  .hero h1 { margin-top: 16px; font-size: clamp(40px, 6vw, 80px); line-height: 1; text-wrap: balance; }
  .hero h1 em { color: var(--terra-ink); }
  .hero .lead { margin: 24px auto 32px; }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-copy .hero-ctas { justify-content: center; }
  /* The dotted bridge sits behind the whole hero (src/hero-dots.mjs), faint under the text; without JS there is no scene and the copy stands alone */
  .hero-scene { display: none; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .js .hero-scene { display: block; -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
  .hero-dots { display: block; width: 100%; height: 100%; }


  section { padding: clamp(64px, 10vw, 120px) 0; }
  /* the first section hugs the hero, which already carries the bottom gap for the bridge */
  #problemas { padding-top: 0; }
  /* home CTA: the FAQ section already carries the bottom gap (keep other pages' .cta spacing) */
  #hablemos { padding-top: 0; }
  .sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
  .sec-head .eyebrow { display: block; margin-bottom: 16px; }

  /* Problems */
  .problems { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
  .problem { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
  .problem + .problem { padding-left: 24px; }
  .problem:last-child { border-right: 0; }
  /* three lines of quote, so the four answers start on the same line */
  .problem .q { font: 500 22px/1.25 var(--serif); margin: 0 0 12px; min-height: calc(3 * 1.25em); }
  .problem .a { font-size: 15px; color: var(--ink-2); margin: 0; }
  .problem .a b { color: var(--river-ink); }
  .problem .n { font: 600 13px var(--mono); color: var(--terra-ink); }

  /* Grid children default to min-width:auto, so a wide figure could push the page sideways */
  .split > * { min-width: 0; }
  .figure { max-width: 100%; overflow: hidden; }
  .figure { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-height: 380px; position: relative; box-shadow: 0 30px 60px -40px rgba(30,42,47,.35); }
  .fig-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font: 600 12px var(--mono); color: var(--ink-2); }
  .dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--terra); opacity: .8; }


  .flow-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
  .counter { font: 600 13px var(--mono); color: var(--ink-2); }
  .counter b { color: var(--terra-ink); font-size: 18px; }
  .mini { min-height: 44px; padding: 8px 16px; font-size: 14px; }


  /* Services carousel: petrol band, tall cards with a screenshot cropped by the bottom edge, native scroll-snap */
  .svc { background: var(--petrol); color: var(--on-petrol-2); }
  .svc :focus-visible { outline-color: var(--terra-soft); }
  .svc .eyebrow { display: block; color: var(--terra-soft); margin-bottom: 16px; }
  .svc h2 { color: var(--on-petrol); text-wrap: balance; }
  .svc .lead { color: var(--on-petrol-3); margin: 16px 0 0; }
  .svc .lead a { color: var(--terra-soft); font-weight: 600; text-underline-offset: 3px; }
  .svc .lead a:hover { color: var(--on-petrol); }
  .svc-head { text-align: center; }
  .svc-head .lead { margin-inline: auto; }
  /* gutter lines the first card up with .wrap; percentages resolve against the full-width track */
  .svc-track { --gutter: max(24px, calc((100% - 1200px) / 2)); display: flex; gap: 20px; list-style: none; margin: 48px 0 0; padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .svc-track::-webkit-scrollbar { display: none; }
  .svc-track:focus-visible { outline-offset: -3px; border-radius: 0; }
  .svc-card { position: relative; flex: 0 0 360px; height: 560px; scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden; background: var(--cream); color: var(--ink); border-radius: 20px; text-align: center; }
  .svc-text { padding: 32px 24px 0; }
  .svc-card h3 { font-size: 28px; line-height: 1.1; text-wrap: balance; }
  .svc-card p { margin: 12px 0 0; min-height: 4.5em; color: var(--ink-2); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
  /* the card edge crops the screen image; a short fade into the cream makes the cut read as intended */
  .svc-card .link { display: inline-block; margin-top: 14px; }
  .svc-card::after { content: ""; position: absolute; inset: auto 0 0; height: 48px; background: linear-gradient(to bottom, transparent, var(--cream)); pointer-events: none; }
  /* the screenshot's cream is the card's cream, so only the bottom edge crops it */
  .svc-card img { display: block; flex: 1 1 0; min-height: 0; width: 100%; margin-top: 16px; object-fit: cover; object-position: top center; }
  .svc-ctl { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
  .svc-prog { position: relative; flex: 1; max-width: 240px; height: 4px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--on-petrol-2) 24%, transparent); }
  .svc-prog i { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; border-radius: 4px; background: var(--terra-soft); }
  .svc-arrows { display: flex; gap: 8px; }
  .svc-arrow { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease); }
  .svc-arrow:hover:not(:disabled) { border-color: var(--terra-soft); }
  .svc-arrow:active:not(:disabled) { transform: scale(.96); }
  .svc-arrow:disabled { background: transparent; border-color: color-mix(in srgb, var(--on-petrol-2) 24%, transparent); color: color-mix(in srgb, var(--on-petrol-2) 40%, transparent); cursor: default; }
  .svc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* Process banner (also used by the process and team pages) */
  .process-banner { position: relative; overflow: hidden; margin-top: 28px; background: var(--petrol); color: var(--on-petrol); border-radius: 20px; padding: 48px 56px 48px 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .process-banner p { position: relative; margin: 0; font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--serif); }
  .process-banner .btn { position: relative; flex: none; background: var(--terra-ink); border-color: var(--terra-ink); color: var(--cream); }
  .process-banner .btn:hover { background: var(--ink); border-color: var(--ink); }
  .process-banner svg.arcs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

  /* About */
  .about { background: var(--petrol); color: var(--on-petrol-2); }
  .about .eyebrow { color: var(--terra-soft); }
  .about .lead { color: var(--on-petrol-3); }
  .about-head { text-align: center; max-width: 760px; margin: 0 auto; }
  .about-head .lead { margin: 0 auto; }
  .about h2 em { color: var(--terra-soft); }
  /* Team as the isotype: two cards are the two pylons, standing on one deck with the sun rising between them */
  .team-wrap { margin-top: 80px; }
  .team { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; }
  .member { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 24px 24px; border: 1px solid rgba(255,255,255,.16); border-bottom: 0; border-radius: 20px 20px 0 0; background: rgba(255,255,255,.055); transition: background-color .2s var(--ease); }
  .member:hover { background: rgba(255,255,255,.09); }
  .member .kicker { font: 500 14px var(--mono); color: var(--terra-soft); }
  .member h3 { font-size: 30px; line-height: 1.05; margin: 8px 0 8px; color: var(--on-petrol); }
  .member .role { font: 500 14px var(--mono); color: var(--on-petrol-2); margin: 0 0 16px; }
  .member .bio { color: var(--on-petrol-3); font-size: 15px; margin: 0 0 16px; }
  .member .text { display: flex; flex-direction: column; }
  /* Photo slot: add class has-photo and a <figure class="portrait"> as first child (see the comment in the template) */
  .member.has-photo { grid-template-columns: 196px 1fr; }
  .portrait { margin: 0; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--cream); }
  .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .member .link::after { content: ""; position: absolute; inset: -10px -8px; }
  .member .link { position: relative; margin-top: auto; align-self: flex-start; font-weight: 600; text-decoration: none; color: var(--terra-soft); border-bottom: 1.5px solid color-mix(in srgb, var(--terra-soft) 40%, transparent); padding-bottom: 2px; transition: border-color .2s var(--ease), color .2s var(--ease); }
  .member .link:hover { color: var(--on-petrol); border-color: var(--on-petrol); }
  .sun { align-self: center; justify-self: center; width: 64px; height: 64px; border-radius: 50%; background: var(--terra-soft); transform: translateY(70px); opacity: 0; transition: transform 1.4s var(--ease) .3s, opacity 1s .3s; }
  .team-wrap.in .sun { transform: none; opacity: 1; }
  .deck { height: 12px; background: var(--terra); clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 24px 100%); transform: scaleX(0); transition: transform 1.2s var(--ease); }
  .team-wrap.in .deck { transform: none; }
  .team-caption { text-align: center; margin: 16px 0 0; font: 500 14px var(--mono); color: var(--on-petrol-3); }

  /* FAQ */
  .faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
  details { border-top: 1px solid var(--line); }
  details:last-child { border-bottom: 1px solid var(--line); }
  summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; font: 500 22px/1.3 var(--serif); }
  summary::-webkit-details-marker { display: none; }
  summary .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s var(--ease); font: 400 18px/1 var(--sans); }
  details[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--cream); }
  details p { margin: 0 0 24px; color: var(--ink-2); max-width: 60ch; }
  .help { margin-top: 32px; padding: 24px; border-radius: 16px; background: var(--paper); }
  .help b { font: 500 22px var(--serif); display: block; }

  /* CTA */
  .cta { text-align: center; padding: clamp(80px, 11vw, 140px) 0 clamp(88px, 12vw, 160px); position: relative; overflow: hidden; }
  .cta h2 { font-size: clamp(48px, 7vw, 96px); line-height: .95; }
  .cta h2 em { color: var(--terra-ink); }
  .cta .lead { margin: 24px auto 32px; }
  .cta .hero-ctas { justify-content: center; }
  .cta-arc { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 1400px; max-width: none; opacity: .5; }

  /* Footer */
  .footer { position: relative; background: var(--petrol); color: var(--on-petrol-2); }
  /* Crop the empty sky and the table legs: the sky matches --petrol, so the cut is seamless */
  .footer img { display: block; width: 100%; height: auto; aspect-ratio: 1944 / 380; object-fit: cover; object-position: 50% 85%; }
  .footer-content { padding-top: 48px; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
  .footer h4 { font: 500 14px var(--mono); color: var(--terra-soft); margin: 0 0 12px; }
  .footer ul { list-style: none; padding: 0; margin: -10px 0 0; display: grid; gap: 0; font-size: 15px; }
  .footer ul a { display: inline-block; padding-block: 10px; text-decoration: none; color: var(--on-petrol-2); }
  .footer ul a:hover { color: var(--on-petrol); text-decoration: underline; }
  .footer .tag { color: var(--on-petrol-3); max-width: 34ch; margin: 12px 0 0; font-size: 15px; }
  .legal { position: absolute; left: 0; right: 0; bottom: 16px; }
  .legal .wrap { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--on-petrol-2); }
  .legal span { background: rgba(30,42,47,.82); padding: 4px 8px; border-radius: 6px; }

  /* Reveal */
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease) var(--d, 0s), transform .75s var(--ease) var(--d, 0s); }
    .js .reveal-items > * { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s); }
    .js .reveal.in, .js .reveal-items.in > * { opacity: 1; transform: none; }
    .js .instant, .js .instant > * { transition: none; }
  }
  .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.4em); animation: rise .9s var(--ease) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  /* entrance of the rest of the hero copy, timed with the bridge build (src/hero-dots.mjs) */
  .js .hero-copy .eyebrow, .js .hero-copy .lead, .js .hero-copy .hero-ctas { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
  .js .hero-copy .eyebrow { display: inline-block; animation-delay: .05s; }
  .js .hero-copy .lead { animation-delay: .65s; }
  .js .hero-copy .hero-ctas { animation-delay: .85s; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal, .reveal-items > * { opacity: 1; transform: none; }
    .hero h1 .w, .js .hero-copy .eyebrow, .js .hero-copy .lead, .js .hero-copy .hero-ctas { opacity: 1; transform: none; }
  }
  @media (max-width: 900px) {
    .nav ul { display: none; }
    .menu-toggle { display: grid; }
    .nav.open ul { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 24px 16px; background: var(--cream); border-bottom: 1px solid var(--line); font-size: 17px; }
    .nav.open ul a { display: block; padding: 12px 0; color: var(--ink); }
    .sec-head, .faq-grid { grid-template-columns: 1fr; }
    .process-banner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
    .problems, .footer-grid { grid-template-columns: 1fr 1fr; }
    .problem .q { min-height: 0; }
    .svc-card { flex-basis: 320px; height: 520px; }
    .svc-card h3 { font-size: 26px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
    .team { grid-template-columns: 1fr; gap: 16px; }
    .member { border-radius: 20px; border-bottom: 1px solid rgba(255,255,255,.16); }
    .sun { width: 44px; height: 44px; }
  }
  @media (max-width: 640px) {
    .hero { padding-bottom: calc(22vw + 40px); } /* room for the whole bridge under the copy */
    .js .hero-scene { -webkit-mask-image: linear-gradient(to bottom, #000 94%, transparent); mask-image: linear-gradient(to bottom, #000 94%, transparent); }
    .svc-head { text-align: left; }
    .svc-head .lead { margin-inline: 0; font-size: 17px; }
    .svc h2 { font-size: 34px; }
    .svc-track { margin-top: 32px; gap: 12px; }
    .svc-card { flex-basis: 82vw; height: 500px; }
    .svc-text { padding: 28px 20px 0; }
    .svc-card h3 { font-size: 26px; }
    .svc-card p { font-size: 16px; }
    .problems { grid-template-columns: 1fr; }
    .problem, .problem + .problem { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .step .pin { align-self: flex-start; }
    .cta-arc { display: none; }
    .legal { position: static; padding: 16px 0 20px; }
    .legal .wrap { flex-wrap: wrap; gap: 8px; }
  }
  @media (max-width: 560px) {
    .nav .btn { padding: 10px 12px; }
    .nav-actions { gap: 8px; }
  }
  @media (max-width: 400px) {
    /* icon-only brand on small phones; the link keeps its aria-label */
    .nav .brand { font-size: 0; }
    .member.has-photo { grid-template-columns: 1fr; }
    .portrait { max-width: 220px; }
  }
