    /* ─── TOKENS — warm light editorial palette ─────────────────── */
    :root {
      --page:      #FBFAF7;
      --surface:   #F2EEE5;
      --surface-2: #EAE4D6;

      /* Contrast-checked on --page (#FBFAF7): */
      --ink:       #1C1A16;  /* 16.6:1 */
      --ink-dim:   #55503F;  /*  7.7:1 */
      --muted:     #6B6552;  /*  5.6:1 */
      --line:      #E1DBCC;
      --line-2:    #EAE4D6;

      /* Flame — from "Ignis" (fire, Latin): the group's first business,
         and the origin of everything that followed. Not decorative. */
      --accent:       #C93A1A; /* 4.9:1 on --page  */
      --accent-ink:   #A62F14; /* 6.6:1 — safe for small text */
      --accent-soft:  #FBE4D9; /* pale ember tint, decorative only */
      --flame-bright: #F2661F; /* highlight — large/decorative only */
      --flame-deep:   #7A140D; /* shadow — large/decorative only */
      --flame-grad: linear-gradient(135deg, var(--flame-bright) 0%, var(--accent) 55%, var(--flame-deep) 100%);

      --serif: 'Fraunces', Georgia, serif;
      --sans:  'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    }

    /* ─── RESET ──────────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--sans);
      background: var(--page);
      color: var(--ink);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    a { color: inherit; text-decoration: none; }

    /* ─── NAV ────────────────────────────────────────────────────── */
    #nav {
      position: fixed;
      inset: 0 0 auto;
      z-index: 200;
      height: 72px;
      padding: 0 64px;
      background: rgba(251, 250, 247, 0.82);
      border-bottom: 1px solid var(--line);
      backdrop-filter: saturate(160%) blur(16px);
      -webkit-backdrop-filter: saturate(160%) blur(16px);
    }
    .nav-inner {
      max-width: 1240px;
      margin: 0 auto;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-brand { display: flex; align-items: center; }
    .nav-brand img { height: 32px; width: auto; display: block; }
    .nav-right  { display: flex; align-items: center; gap: 32px; }
    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-link  { font-size: 13px; color: var(--ink-dim); transition: color 0.18s; }
    .nav-link:hover { color: var(--ink); }
    .nav-link:focus-visible {
      outline: 2px solid var(--accent-ink);
      outline-offset: 3px;
      border-radius: 2px;
    }

    .lang-dd { position: relative; flex-shrink: 0; }
    .lang-dd-trigger {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.03em;
      color: var(--muted);
      background: transparent;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 9px 14px;
      cursor: pointer;
      transition: color 0.18s, background 0.18s, border-color 0.18s;
    }
    .lang-dd-trigger:hover { color: var(--ink); background: var(--surface-2); }
    .lang-dd-trigger:focus-visible {
      outline: 2px solid var(--accent-ink);
      outline-offset: 2px;
    }
    .lang-dd-trigger[aria-expanded="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
    .lang-dd-caret { transition: transform 0.18s; flex-shrink: 0; }
    .lang-dd-trigger[aria-expanded="true"] .lang-dd-caret { transform: rotate(180deg); }
    .lang-dd-menu {
      list-style: none;
      position: absolute;
      inset-inline-end: 0;
      top: calc(100% + 8px);
      min-width: 168px;
      background: var(--page);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 6px;
      box-shadow: 0 12px 32px rgba(28, 26, 22, 0.14);
      z-index: 10;
    }
    .lang-dd--up .lang-dd-menu { top: auto; bottom: calc(100% + 8px); }
    .lang-dd-item {
      display: block;
      font-size: 13px;
      color: var(--ink-dim);
      padding: 9px 14px;
      border-radius: 9px;
      transition: color 0.18s, background 0.18s;
    }
    .lang-dd-item:hover { color: var(--ink); background: var(--surface-2); }
    .lang-dd-item:focus-visible {
      outline: 2px solid var(--accent-ink);
      outline-offset: -2px;
    }
    .lang-dd-item.is-active { color: var(--ink); font-weight: 600; background: var(--surface); }

    /* ─── HERO ───────────────────────────────────────────────────── */
    #hero {
      min-height: 92svh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 140px 64px 80px;
      position: relative;
      overflow: hidden;
    }
    #hero::before {
      content: '';
      position: absolute;
      top: -15%; right: -10%;
      width: 55%; height: 65%;
      background: radial-gradient(ellipse at 100% 0%,
        rgba(242, 102, 31, 0.07) 0%, transparent 68%);
      pointer-events: none;
    }
    .hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; position: relative; }

    .hero-h1 {
      font-family: var(--serif);
      font-weight: 500;
      font-size: clamp(46px, 7vw, 92px);
      line-height: 1.06;
      letter-spacing: -0.01em;
      color: var(--ink);
      margin-bottom: 32px;
      max-width: 900px;
    }
    .hero-sub {
      font-size: clamp(16px, 1.6vw, 19px);
      font-weight: 300;
      color: var(--ink-dim);
      max-width: 560px;
      line-height: 1.65;
      margin-bottom: 44px;
    }
    .hero-sub em {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 500;
      color: var(--accent-ink);
    }
    .hero-sub b { font-weight: 600; color: var(--ink); }

    .hero-ctas { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
    .hero-cta-p {
      font-size: 15px; font-weight: 500;
      color: var(--accent-ink);
      transition: opacity 0.18s;
    }
    .hero-cta-p:hover { opacity: 0.72; }
    .hero-cta-s {
      font-size: 15px; font-weight: 400;
      color: var(--ink-dim);
      transition: color 0.18s;
    }
    .hero-cta-s:hover { color: var(--ink); }
    .hero-proof {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 56px;
      padding-top: 28px;
      border-top: 1px solid var(--line);
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      font-variant-numeric: tabular-nums;
    }
    .hero-proof-sep { color: var(--line); }

    /* ─── SECTION HEAD (shared) ──────────────────────────────────── */
    .sec-eyebrow {
      font-family: var(--sans);
      font-size: 11.5px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--accent-ink);
      margin-bottom: 14px;
    }
    .sec-title {
      font-family: var(--serif);
      font-weight: 600;
      font-size: clamp(32px, 4.2vw, 52px);
      letter-spacing: -0.015em;
      color: var(--ink);
      line-height: 1.1;
    }

    /* ─── HISTORIA — storytelling timeline ───────────────────────── */
    #historia {
      padding: 130px 64px;
      background: var(--surface);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .historia-inner {
      max-width: 1240px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 380px 1fr;
      gap: 80px;
      align-items: start;
    }
    .historia-head { position: sticky; top: 96px; }

    .story-beats { position: relative; }

    /* Spine — background track + animated fill */
    .spine-track {
      position: absolute;
      left: 31px; top: 6px; bottom: 6px;
      width: 2px;
      background: var(--line-2);
    }
    .spine-fill {
      position: absolute;
      left: 31px; top: 6px;
      width: 2px;
      height: 0%;
      background: linear-gradient(180deg, var(--flame-bright) 0%, var(--accent) 55%, var(--flame-deep) 100%);
      transform-origin: top;
    }

    .story-beat {
      display: grid;
      grid-template-columns: 64px 1fr;
      column-gap: 24px;
      padding-bottom: 60px;
      position: relative;
    }
    .story-beat:last-child { padding-bottom: 0; }

    .beat-marker { display: flex; justify-content: center; padding-top: 5px; }
    .beat-dot {
      width: 12px; height: 12px;
      border-radius: 50%;
      background: var(--page);
      border: 2px solid var(--line-2);
      transition: background 0.35s ease, border-color 0.35s ease;
      position: relative;
      z-index: 2;
    }
    .story-beat.is-active .beat-dot {
      background: var(--accent);
      border-color: var(--accent);
    }

    .beat-num {
      display: block;
      font-family: var(--serif);
      font-style: italic;
      font-weight: 500;
      font-size: 14px;
      color: var(--accent-ink);
      margin-bottom: 8px;
    }
    .beat-title {
      font-family: var(--serif);
      font-weight: 600;
      font-size: clamp(21px, 2.3vw, 28px);
      color: var(--ink);
      margin-bottom: 12px;
      line-height: 1.2;
    }
    .beat-text {
      font-size: 15.5px;
      font-weight: 300;
      color: var(--ink-dim);
      line-height: 1.75;
      max-width: 540px;
    }
    .beat-text b { font-weight: 600; color: var(--ink); }

    /* ─── ECOSISTEMA ──────────────────────────────────────────────── */
    #ecosistema { padding: 130px 64px; background: var(--page); }
    .eco-wrap { max-width: 1240px; margin: 0 auto; }

    .eco-header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      padding-bottom: 22px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 4px;
    }
    .eco-count {
      font-size: 12px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .eco-cols {
      display: grid;
      grid-template-columns: 40px 1fr 170px 20px;
      gap: 20px;
      padding: 16px 0 10px;
      border-bottom: 1px solid var(--line);
    }
    .eco-col-lbl {
      font-size: 10.5px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .eco-row {
      display: grid;
      grid-template-columns: 40px 1fr 170px 20px;
      gap: 20px;
      align-items: center;
      padding: 32px 0;
      border-bottom: 1px solid var(--line);
      transition: background 0.2s ease;
      position: relative;
      cursor: pointer;
    }
    .eco-row:hover { background: rgba(201, 58, 26, 0.035); }
    .eco-domain::after { content: ''; position: absolute; inset: 0; }

    .eco-idx {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 500;
      font-size: 15px;
      color: var(--muted);
      padding-top: 2px;
    }

    .eco-info { display: flex; flex-direction: column; gap: 8px; }
    .eco-name {
      font-family: var(--serif);
      font-weight: 600;
      font-size: clamp(20px, 2.2vw, 26px);
      color: var(--ink);
      letter-spacing: -0.01em;
    }

    .eco-tagline {
      font-size: 14px;
      font-weight: 300;
      color: var(--ink-dim);
      line-height: 1.55;
      max-width: 460px;
    }

    .eco-domain {
      font-size: 12.5px;
      color: var(--muted);
      letter-spacing: 0.01em;
    }

    .eco-arrow {
      font-size: 16px;
      color: var(--line);
      opacity: 0;
      transform: translateX(-6px);
      justify-self: end;
      transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease;
    }
    .eco-row:hover .eco-arrow {
      opacity: 1;
      color: var(--accent);
      transform: translateX(0);
    }

    /* ─── INFRAESTRUCTURA PROPIA ─────────────────────────────────── */
    #infra {
      padding: 130px 64px;
      background: var(--surface);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .infra-wrap { max-width: 1240px; margin: 0 auto; }
    .infra-head { max-width: 620px; margin-bottom: 20px; }
    .infra-lead {
      font-size: 15.5px;
      font-weight: 300;
      color: var(--ink-dim);
      line-height: 1.7;
      max-width: 560px;
      margin-top: 20px;
    }
    .infra-lead b { font-weight: 600; color: var(--ink); }

    .infra-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 56px;
    }
    .infra-card {
      background: var(--page);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 36px 32px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    /* ─── TOOL CARD — shared clickable behavior (infra + work cards) ─ */
    .tool-card {
      cursor: pointer;
      box-shadow: 0 1px 2px rgba(28, 26, 22, 0.04), 0 16px 40px rgba(28, 26, 22, 0.05);
      transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    }
    .tool-card:hover, .tool-card:focus-visible {
      border-color: var(--ink-dim);
      box-shadow: 0 2px 6px rgba(28, 26, 22, 0.07), 0 24px 56px rgba(28, 26, 22, 0.09);
      transform: translateY(-3px);
    }
    .tool-card:focus-visible {
      outline: 2px solid var(--accent-ink);
      outline-offset: -2px;
    }
    .tool-more {
      font-size: 12px;
      font-weight: 600;
      color: var(--accent-ink);
      margin-top: auto;
      padding-top: 4px;
    }
    .infra-tag {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent-ink);
    }
    .infra-name {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 22px;
      color: var(--ink);
    }
    .infra-desc {
      font-size: 13.5px;
      font-weight: 300;
      color: var(--ink-dim);
      line-height: 1.6;
    }
    /* ─── TOOL MODAL ─────────────────────────────────────────────── */
    .tool-modal {
      position: fixed;
      inset: 0;
      margin: auto;
      max-width: 480px;
      width: calc(100% - 48px);
      max-height: fit-content;
      border: none;
      border-radius: 14px;
      padding: 40px 36px;
      background: var(--page);
      box-shadow: 0 24px 64px rgba(28, 26, 22, 0.22);
    }
    .tool-modal::backdrop {
      background: rgba(28, 26, 22, 0.45);
      backdrop-filter: blur(2px);
    }
    .tool-modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 32px;
      height: 32px;
      border: none;
      background: transparent;
      font-size: 15px;
      color: var(--muted);
      cursor: pointer;
      transition: color 0.18s;
    }
    .tool-modal-close:hover, .tool-modal-close:focus-visible { color: var(--ink); }
    .tool-modal-name {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 26px;
      color: var(--ink);
      margin: 12px 0 16px;
    }
    .tool-modal-desc {
      font-size: 14.5px;
      font-weight: 300;
      color: var(--ink-dim);
      line-height: 1.7;
    }
    .tool-modal-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 20px;
      font-size: 13px;
      font-weight: 600;
      color: var(--accent-ink);
      transition: opacity 0.18s;
    }
    .tool-modal-link:hover { opacity: 0.72; }
    .tool-modal-link svg { display: block; flex-shrink: 0; }

    /* ─── TRABAJO — en qué más trabajamos ────────────────────────── */
    #trabajo {
      padding: 130px 64px;
      background: var(--page);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .work-wrap { max-width: 1240px; margin: 0 auto; }
    .work-head { max-width: 620px; margin-bottom: 20px; }
    .work-lead {
      font-size: 15.5px;
      font-weight: 300;
      color: var(--ink-dim);
      line-height: 1.7;
      max-width: 560px;
      margin-top: 20px;
    }
    .work-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin-top: 56px;
    }
    .work-card {
      background: var(--page);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 36px 32px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .work-tag {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent-ink);
    }
    .work-name {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 22px;
      color: var(--ink);
    }
    .work-desc {
      font-size: 13.5px;
      font-weight: 300;
      color: var(--ink-dim);
      line-height: 1.6;
    }

    /* ─── CIFRAS ─────────────────────────────────────────────────── */
    #cifras {
      padding: 110px 64px;
      background: var(--ink);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    #cifras .sec-eyebrow { color: var(--flame-bright); }
    #cifras .sec-title { color: var(--page); }
    #cifras .cl { color: rgba(251, 250, 247, 0.6); }
    .cifras-wrap { max-width: 1240px; margin: 0 auto; }
    .cifras-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      margin-top: 56px;
      border-left: 1px solid rgba(251, 250, 247, 0.16);
    }
    .cifras-cell { padding: 0 40px; border-right: 1px solid rgba(251, 250, 247, 0.16); }
    .cv {
      font-family: var(--serif);
      font-weight: 600;
      font-size: clamp(46px, 6vw, 80px);
      letter-spacing: -0.02em;
      line-height: 1;
      margin-bottom: 16px;
      font-variant-numeric: tabular-nums;
      /* Flame gradient text — solid fallback first for unsupported browsers */
      color: var(--flame-bright);
      background: var(--flame-grad);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .cv sup { font-size: 0.4em; font-weight: 600; margin-left: 2px; }
    .cl { font-size: 14.5px; font-weight: 400; color: var(--ink-dim); line-height: 1.5; }

    /* ─── FOOTER ─────────────────────────────────────────────────── */
    footer {
      padding: 40px 64px;
      border-top: 1px solid var(--line);
      background: var(--page);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 18px;
    }
    .f-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); }
    .f-meta { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.6; }
    .f-github { display: inline-flex; color: var(--muted); transition: color 0.18s; }
    .f-github svg { display: block; }
    .f-github:hover { color: var(--ink); }
    .f-github:focus-visible {
      outline: 2px solid var(--accent-ink);
      outline-offset: 3px;
      border-radius: 2px;
    }
    .f-right { display: flex; align-items: center; gap: 24px; }

    /* ─── RESPONSIVE ─────────────────────────────────────────────── */
    @media (max-width: 960px) {
      #hero     { padding: 120px 40px 64px; }
      #nav      { padding: 0 40px; }
      #historia { padding: 100px 40px; }
      .historia-inner { grid-template-columns: 1fr; gap: 0; }
      .historia-head  { position: static; max-width: 640px; margin-bottom: 56px; }
      #ecosistema{ padding: 100px 40px; }
      #infra    { padding: 100px 40px; }
      #trabajo  { padding: 100px 40px; }
      #cifras   { padding: 90px 40px; }
      footer    { padding: 32px 40px; }

      .eco-cols { grid-template-columns: 40px 1fr 20px; }
      .eco-row  { grid-template-columns: 40px 1fr 20px; }
      .eco-domain { display: none; }
      .eco-cols .hide-md { display: none; }

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

      .cifras-row { grid-template-columns: 1fr 1fr; border-left: none; }
      .cifras-cell { padding: 0 32px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
      .cifras-cell:nth-child(2) { border-right: none; }
      .cifras-cell:nth-child(3) { border-right: none; padding-top: 32px; }
    }

    @media (max-width: 680px) {
      #hero     { padding: 110px 24px 56px; }
      #nav      { padding: 0 24px; }
      #historia { padding: 80px 24px; }
      #ecosistema{ padding: 80px 24px; }
      #infra    { padding: 80px 24px; }
      #trabajo  { padding: 80px 24px; }
      #cifras   { padding: 72px 24px; }
      footer    { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
      .f-meta   { text-align: left; }
      .f-right  { flex-direction: column; align-items: flex-start; gap: 14px; }

      .nav-links { display: none; }
      .hero-ctas { flex-direction: column; align-items: flex-start; gap: 14px; }

      .story-beat  { grid-template-columns: 40px 1fr; column-gap: 16px; padding-bottom: 48px; }
      .spine-track, .spine-fill { left: 19px; }

      .eco-cols { display: none; }
      .eco-row  {
        grid-template-columns: 1fr;
        row-gap: 8px;
        padding: 26px 0;
      }
      .eco-idx  { display: none; }
      .eco-arrow{ display: none; }

      .infra-grid { grid-template-columns: 1fr; margin-top: 40px; }
      .work-grid  { grid-template-columns: 1fr; margin-top: 40px; }

      .cifras-row { grid-template-columns: 1fr; border-left: none; margin-top: 40px; }
      .cifras-cell {
        padding: 28px 0;
        border-right: none !important;
        border-bottom: 1px solid var(--line);
      }
      .cifras-cell:last-child { border-bottom: none; }
    }

    /* ─── REDUCED MOTION ─────────────────────────────────────────── */
    @media (prefers-reduced-motion: reduce) {
      .eco-arrow { transition: none; }
      .beat-dot  { transition: none; }
    }

    /* ─── RTL OVERRIDES (Arabic) ─────────────────────────────────── */
    [dir="rtl"] .f-meta { text-align: left; }
    @media (max-width: 680px) {
      [dir="rtl"] .f-meta { text-align: right; }
    }
    [dir="rtl"] .cv { direction: ltr; unicode-bidi: isolate; }
    @media (max-width: 960px) {
      [dir="rtl"] .cifras-cell { border-right: none; border-left: 1px solid var(--line); }
      [dir="rtl"] .cifras-cell:nth-child(2) { border-left: none; }
      [dir="rtl"] .cifras-cell:nth-child(3) { border-left: none; }
    }
    @media (max-width: 680px) {
      [dir="rtl"] .cifras-cell { border-left: none !important; }
    }
    [dir="rtl"] #hero::before {
      right: auto;
      left: -10%;
      background: radial-gradient(ellipse at 0% 0%, rgba(242, 102, 31, 0.07) 0%, transparent 68%);
    }
    [dir="rtl"] .spine-track, [dir="rtl"] .spine-fill { left: auto; right: 31px; }
    @media (max-width: 680px) {
      [dir="rtl"] .spine-track, [dir="rtl"] .spine-fill { right: 19px; }
    }
    [dir="rtl"] .tool-modal-close { right: auto; left: 16px; }
