  :root {
    --red: #D9181F;        /* brand red, darkened slightly so white text passes contrast */
    --red-deep: #9F1015;
    --red-tint: #FBE3E4;
    --ink: #231F20;
    --ground: #F5F5F5;
    --paper: #FFFFFF;
    --steel: #5B5556;
    --line: #DAD6D6;
    --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
  p { margin: 0; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
  section[id] { scroll-margin-top: 5rem; }

  /* Header */
  .site-header { border-bottom: 3px solid var(--red); background: var(--paper); position: sticky; top: 0; z-index: 10; }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
  .brand { display: inline-flex; align-items: center; }
  .brand img { height: 3rem; width: auto; display: block; }
  nav { display: flex; align-items: center; gap: 1.75rem; }
  nav a { text-decoration: none; font-weight: 600; font-size: 1rem; }
  nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }

  .btn {
    display: inline-block; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1rem;
    padding: .8rem 1.4rem; border-radius: 4px; background: var(--red); color: #fff; border: 2px solid var(--red);
    transition: background .15s, color .15s;
  }
  .btn:hover { background: #fff; color: var(--red); }
  .btn.on-dark { background: #fff; color: var(--red); border-color: #fff; }
  .btn.on-dark:hover { background: transparent; color: #fff; }

  /* Hero */
  .hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
  .hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
  .hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; font-stretch: 108%; }
  .hero .lede { margin-top: 1.5rem; max-width: 34em; color: var(--steel); font-size: 1.25rem; }
  .hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
  .hero .actions a.text { font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
  .media { width: 100%; }
  .media video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; object-fit: cover; background: #DAD6D6; border-radius: 4px; border-bottom: 4px solid var(--red); }

  /* Services */
  .services { background: var(--paper); border-block: 1px solid var(--line); padding: clamp(3rem, 7vw, 5.5rem) 0; }
  .split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4.5rem); }
  .split h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
  .split .intro { margin-top: 1rem; color: var(--steel); max-width: 24em; }
  .service-list { list-style: none; margin: 0; padding: 0; }
  .service-list li { padding: 1.4rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; }
  .service-list li:first-child { border-top: 3px solid var(--red); }
  .service-list li:last-child { border-bottom: 1px solid var(--line); }
  .service-list h3 { font-size: 1.25rem; font-weight: 700; }
  .service-list p { color: var(--steel); }

  /* Expertise */
  .expertise { background: var(--red); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; }
  .expertise :focus-visible { outline-color: #fff; }
  .expertise .intro { color: #FFE9EA; margin-top: 1rem; max-width: 28em; }
  .expertise .proof { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.45); max-width: 28em; }
  .solve { list-style: none; margin: 0; padding: 0; }
  .solve li { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.45); display: flex; gap: 1rem; align-items: baseline; }
  .solve li:last-child { border-bottom: 1px solid rgba(255,255,255,.45); }
  .solve li::before { content: ""; flex: none; width: 10px; height: 10px; background: #fff; transform: translateY(1px); }
  .solve strong { font-family: var(--display); font-weight: 600; }

  /* Contact */
  .contact { padding: clamp(3rem, 7vw, 5.5rem) 0; }
  .contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
  .contact .intro { margin-top: 1rem; color: var(--steel); max-width: 26em; }
  .mail-list { margin: 0 0 2rem; padding: 0; list-style: none; }
  .mail-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
  .mail-list li:first-child { border-top: 3px solid var(--red); }
  .mail-list li:last-child { border-bottom: 1px solid var(--line); }
  .mail-list a { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.9rem); text-decoration: none; }
  .mail-list a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 6px; }
  .hint { color: var(--steel); margin-top: 1.5rem; font-size: 1rem; max-width: 32em; }

  /* Footer */
  footer { background: var(--paper); border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--steel); font-size: .95rem; }
  footer .wrap { display: grid; gap: 1.25rem; }
  .foot-brand img { height: 4rem; width: auto; display: block; }
  .foot-brand p { margin-top: .5rem; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1rem; }
  footer .legal { display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between; }


  /* Contact page */
  .page-title { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; font-stretch: 108%; }
  .contact-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
  .contact-page .split { margin-top: clamp(2rem, 4vw, 3rem); }
  form.contact-form { display: grid; gap: 1.25rem; max-width: 36rem; }
  .field { display: grid; gap: .4rem; }
  .field label { font-weight: 600; font-size: 1rem; }
  .field .opt { font-weight: 400; color: var(--steel); }
  .field input, .field textarea {
    font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper);
    border: 1px solid #A9A3A3; border-radius: 4px; padding: .8rem .9rem; width: 100%;
  }
  .field textarea { min-height: 9rem; resize: vertical; }
  .field input:focus, .field textarea:focus { border-color: var(--red); outline: 3px solid var(--red-tint); outline-offset: 0; }
  .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
  button.btn { cursor: pointer; font-size: 1.05rem; }
  .form-error { color: var(--red-deep); font-weight: 600; min-height: 1.4em; }
  .thanks { max-width: 36rem; padding: 1.5rem 1.5rem 1.5rem 1.25rem; background: var(--paper); border-left: 6px solid var(--red); }
  .thanks h2 { font-size: 1.6rem; font-weight: 800; }
  .thanks p { margin-top: .6rem; color: var(--steel); }
  .thanks a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
  [hidden] { display: none !important; }

  @media (max-width: 860px) {
    .hero .wrap, .split { grid-template-columns: 1fr; }
    .service-list li { grid-template-columns: 1fr; gap: .35rem; }
    nav a:not(.btn) { display: none; }
    .brand img { height: 2.5rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
  }
