  :root {
    --bg: #faf5ef;
    --ink: #3a2f28;
    --ink-soft: #7a6754;
    --gold: #997c35;
    --rose: #ad6156;
    --hairline: rgba(153, 124, 53, 0.32);
    --grad: linear-gradient(100deg, var(--gold), var(--rose));
    --serif: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif;
    --display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
    --label: "Helvetica Neue", Helvetica, Arial, sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { font-size: 18px; scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
  }

  ::selection { background: rgba(154, 106, 46, 0.22); color: var(--ink); }

  main {
    width: min(88vw, 680px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* ---------- hero ---------- */
  .hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.6rem;
    position: relative;
    width: 100%;
  }

  .glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(120vw, 900px);
    aspect-ratio: 1.6;
    transform: translate(-50%, -58%);
    background:
      radial-gradient(ellipse 42% 38% at 42% 50%, rgba(212, 168, 106, 0.20), transparent 70%),
      radial-gradient(ellipse 40% 36% at 62% 52%, rgba(207, 138, 118, 0.16), transparent 70%);
    pointer-events: none;
    animation: breathe 9s ease-in-out infinite alternate;
  }

  @keyframes breathe {
    from { opacity: 0.55; }
    to   { opacity: 1; }
  }

  .hero img {
    width: min(72vw, 420px);
    height: auto;
    display: block;
    position: relative;
  }

  .tagline {
    font-family: var(--label);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.46em;
    text-indent: 0.46em; /* re-centers letterspaced caps */
    text-transform: uppercase;
    color: var(--ink-soft);
    position: relative;
  }

  .thread {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 68px;
    background: linear-gradient(180deg, transparent, var(--gold) 40%, var(--rose));
    opacity: 0.55;
  }


  /* ---------- menu ---------- */
  .menu-toggle {
    position: fixed;
    top: 1.7rem;
    left: 1.7rem;
    z-index: 30;
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 7px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }

  .menu-bar {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--grad);
    transition: transform 0.35s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .menu-toggle:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 6px;
  }

  /* panel chico anclado abajo a la izquierda del boton */
  .site-menu {
    position: fixed;
    top: 3.9rem;
    left: 1.7rem;
    z-index: 20;
    min-width: 13rem;
    padding: 1rem 1.6rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--hairline);
    animation: menu-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* la clase gana al display:none del navegador, hay que declararlo */
  .site-menu[hidden] { display: none; }

  @keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }

  .site-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    text-align: left;
  }

  .site-menu a {
    font-family: var(--display);
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 0.22rem;
    background-image: var(--grad);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size 0.45s ease, color 0.35s ease;
  }

  .site-menu a:hover,
  .site-menu a:focus-visible {
    color: var(--gold);
    background-size: 100% 1px;
  }

  .site-menu a:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 6px;
  }

  @media (prefers-reduced-motion: reduce) {
    .menu-bar, .site-menu a { transition: none; }
    .site-menu { animation: none; }
  }

  /* ---------- sections ---------- */
  section {
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    width: 100%;
  }

  .eyebrow {
    font-family: var(--label);
    font-size: clamp(1.15rem, 3.2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
  }

  .rule {
    width: 72px;
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--gold) 35%, var(--rose) 65%, transparent);
    opacity: 0.5;
  }

  /* ---------- statement ---------- */
  .about p {
    font-size: clamp(1.4rem, 4.2vw, 1.8rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    max-width: 30ch;
    text-wrap: balance;
    color: var(--ink);
  }

  .about p em {
    font-style: italic;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold); /* fallback */
  }

  /* ---------- contact ---------- */
  .contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.2rem 4.5rem;
    list-style: none;
  }

  .contact-list li {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .contact-list .role {
    font-family: var(--label);
    font-size: 0.65rem;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .contact-list a {
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 0.25rem;
    background-image: linear-gradient(90deg, var(--hairline), var(--hairline)), var(--grad);
    background-repeat: no-repeat;
    background-position: 0 100%, 0 100%;
    background-size: 100% 1px, 0% 1px;
    transition: background-size 0.5s ease, color 0.35s ease;
  }

  .contact-list a:hover,
  .contact-list a:focus-visible {
    color: var(--gold);
    background-size: 100% 1px, 100% 1px;
  }

  .contact-list a:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 5px;
  }

  /* ---------- shared lead/sub text (used by several sections) ---------- */
  .lead {
    font-size: clamp(1.1rem, 2.8vw, 1.28rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    max-width: 26ch;
    text-wrap: balance;
    color: var(--ink);
  }

  .sub {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 42ch;
    color: var(--ink-soft);
    margin-top: -0.6rem;
  }

  .body-text {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 46ch;
    color: var(--ink-soft);
  }

  /* ---------- services (same rhythm and type as the process list) ---------- */
  .service-groups {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    list-style: none;
    width: 100%;
    max-width: 46ch;
  }

  .service-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .service-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink);
  }

  .service-list {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-soft);
  }

  /* ---------- process ---------- */
  .process-list {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    list-style: none;
    width: 100%;
    max-width: 46ch;
  }

  .step-num {
    font-family: var(--label);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold); /* fallback */
  }

  .step-title {
    display: block;
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--ink);
    margin-top: 0.3rem;
  }

  .step-desc {
    display: block;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-top: 0.35rem;
  }



  .dash {
    width: 32px;
    height: 1px;
    background: var(--grad);
    opacity: 0.6;
  }




  .team-cta {
    margin-top: 0.8rem;
  }

  .team-cta a {
    font-family: var(--display);
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 0.2rem;
    background-image: linear-gradient(90deg, var(--hairline), var(--hairline)), var(--grad);
    background-repeat: no-repeat;
    background-position: 0 100%, 0 100%;
    background-size: 100% 1px, 0% 1px;
    transition: background-size 0.5s ease, color 0.35s ease;
  }

  .team-cta a:hover,
  .team-cta a:focus-visible {
    color: var(--gold);
    background-size: 100% 1px, 100% 1px;
  }

  .team-cta a:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 5px;
  }


  /* ---------- roster (meet the team) ---------- */
  .team-groups {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    width: 100%;
    margin-top: 0.6rem;
  }

  .team-group {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
  }

  /* etiqueta discreta: agrupa sin competir con el titulo de seccion */
  .team-group-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    font-family: var(--label);
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .team-group-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--rose) 45%, transparent);
    opacity: 0.5;
  }

  .roster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem 2.6rem;
    list-style: none;
    width: 100%;
    text-align: left;
  }

  .roster-person {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
  }

  /* el ancla es el rol, no un nombre: a 1.32rem envolvia en 3 lineas */
  /* Italiana tiene trazo muy fino y a este tamano las astas se pierden.
     Cormorant en peso 500 da mas cuerpo sin salirse de la paleta tipografica. */
  .roster-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.16rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--ink);
  }

  .roster-years {
    white-space: nowrap;
  }

  .roster-title {
    font-size: 1rem;
    line-height: 1.45;
    color: var(--ink);
  }

  /* los anios viven dentro de la linea del rol, no en un bloque aparte */
  .roster-years {
    color: var(--ink-soft);
  }

  .roster-tech {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-top: 0.2rem;
  }

  @media (max-width: 620px) {
    .roster { grid-template-columns: 1fr; gap: 2rem; }
  }


  .roster-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-top: 0.35rem;
  }

  .roster-support {
    font-family: var(--serif);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin-top: 0.35rem;
  }

  /* en la pagina de equipo el rol es el ancla y los perfiles son mas altos */
  .page-header ~ .team .roster {
    gap: 2.8rem 2.6rem;
  }

  /* ---------- team page ---------- */
  .page-header .lead {
    font-size: clamp(1.7rem, 5vw, 2.3rem);
  }

  .page-header {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    text-align: center;
  }

  .back-link {
    font-family: var(--label);
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
  }

  .back-link:hover,
  .back-link:focus-visible {
    color: var(--gold);
  }

  .person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.6rem 1.8rem;
    list-style: none;
    width: 100%;
    text-align: left;
  }

  /* una sola tarjeta: columna centrada de medida legible, no estirada a todo el ancho */
  .person-grid.is-single {
    grid-template-columns: minmax(0, 46ch);
    justify-content: center;
  }

  .person-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .person-role {
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--ink);
  }

  .person-stack {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--gold);
  }

  .person-desc {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink-soft);
  }

  .person-support {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--ink-soft);
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--label);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-indent: 0.02em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  /* ---------- reviews ---------- */
  .review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.4rem;
    list-style: none;
    width: 100%;
    text-align: left;
  }

  .review-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .review-quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--ink);
  }

  .review-quote::before { content: "“"; }
  .review-quote::after { content: "”"; }

  /* roman serif under the italic quote: the contrast is the style, not a second family */
  .review-attribution {
    font-family: var(--serif);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
  }


  /* nota al pie de los testimonios */
  .reviews-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.4rem;
    text-align: center;
  }

  .reviews-note .dash {
    margin-bottom: 0.7rem;
  }

  .reviews-note-q {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ink);
  }

  .reviews-note-a {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink-soft);
  }

  /* ---------- footer ---------- */
  footer {
    padding: 3.5rem 0 2.6rem;
    font-family: var(--label);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
  }

  /* hereda el tratamiento completo de footer: misma familia, mayusculas y
     tracking que la linea de copyright */
  footer .legal {
    margin-top: 0.7rem;
    color: var(--ink);
  }

  /* ---------- entrance ---------- */
  .fade {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .fade-2 { animation-delay: 0.4s; }
  .fade-3 { animation-delay: 0.75s; }

  @keyframes rise {
    to { opacity: 1; transform: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .fade { animation: none; opacity: 1; transform: none; }
    .glow { animation: none; opacity: 0.8; }
    html { scroll-behavior: auto; }
  }

  @media (max-width: 620px) {
    section { padding: 6.4rem 0; }

    .service-groups,
    .process-list   { gap: 3rem; }

    .team-groups    { gap: 4rem; }
    .team-group     { gap: 1.7rem; }

    .roster,
    .team-grid,
    .person-grid    { gap: 2.9rem; }

    .review-grid    { gap: 3.2rem; }
    .contact-list   { gap: 2.6rem; }

    .body-text,
    .step-desc,
    .service-list,
    .roster-desc,
    .person-desc    { line-height: 1.7; }
  }
