/* ---------- Contact page specific ---------- */
  .page-hero h1{ font-size:clamp(2rem,3.6vw,3rem); max-width:16ch; }
  .page-hero p{ max-width:52ch; }

  .intent-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:1px;
    background:rgba(22,32,43,0.12);
    border:1px solid rgba(22,32,43,0.12);
  }
  .intent-card{
    background:var(--gen-frost);
    padding:32px 28px;
    display:flex;
    flex-direction:column;
    min-height:220px;
  }
  .intent-card .tag{
    font-family:var(--gen-font);
    font-size:11px;
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--gen-teal-text);
  }
  .intent-card h3{
    font-family:var(--gen-font);
    font-size:1.3rem;
    font-weight:700;
    margin:12px 0 10px;
    color:var(--gen-navy);
  }
  .intent-card p{
    font-size:14.5px;
    color:var(--gen-text-dim);
    line-height:1.6;
    flex:1;
  }
  .intent-card a{
    margin-top:16px;
    font-family:var(--gen-font);
    font-size:12.5px;
    color:var(--gen-navy);
    text-decoration:none;
    border-bottom:1px solid var(--gen-gold);
    align-self:flex-start;
    padding-bottom:2px;
  }
  .intent-card a:hover{ color:var(--gen-teal-text); }
  .intent-card a{ display:inline-flex; align-items:center; min-height:44px; }

  @media (min-width:860px){
    .intent-grid{ grid-template-columns:repeat(3,1fr); }
  }

  /* Newsletter block */
  .newsletter-card{
    padding:40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:32px;
    flex-wrap:wrap;
  }
  .newsletter-card h3{
    font-family:var(--gen-font);
    font-size:1.3rem;
    font-weight:700;
    color:var(--gen-navy);
    margin-bottom:6px;
  }
  .newsletter-card p{ color:var(--gen-text-dim); font-size:14px; max-width:36ch; }
  .newsletter-form{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }
  .newsletter-form input[type="email"]{
    font-family:var(--gen-font);
    font-size:14px;
    padding:13px 16px;
    border:1px solid rgba(22,32,43,0.25);
    border-radius:2px;
    background:var(--gen-frost);
    color:var(--gen-navy);
    min-width:240px;
  }
  .newsletter-form input[type="email"]:focus{ outline:2px solid var(--gen-gold); outline-offset:2px; }

  /* A row of the card, not the last item in the form: the form is sized by
     its own contents, so a percentage basis inside it resolves to nothing and
     the message lands beside the button. Its own treatment is shared with the
     message form's status, below. */
  .newsletter-status{ flex-basis:100%; }

  /* And the same for the noscript, for the same reason: left to itself it
     becomes a third column beside the input and the button, which is where a
     sentence is hardest to read. */
  .newsletter-card noscript{ flex-basis:100%; }

  .direct-line{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:24px;
    padding:36px 0;
    border-top:1px solid rgba(22,32,43,0.14);
    border-bottom:1px solid rgba(22,32,43,0.14);
    font-family:var(--gen-font);
    font-size:13px;
  }
  .direct-line .k{ color:var(--gen-teal-text); text-transform:uppercase; letter-spacing:0.06em; font-size:11px; margin-bottom:6px; }

  /* Contact form */
  .contact-form-card{ padding:40px; }
  .contact-form-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
    margin-top:20px;
  }
  @media (min-width:520px){
    .contact-form-grid{ grid-template-columns:1fr 1fr; }
  }
  .contact-form-grid .full{ grid-column:1 / -1; }
  .contact-form-grid label{
    display:block;
    font-size:12.5px;
    font-weight:700;
    color:var(--gen-navy);
    margin-bottom:6px;
  }
  .contact-form-grid input[type="text"],
  .contact-form-grid input[type="email"],
  .contact-form-grid select,
  .contact-form-grid textarea{
    width:100%;
    font-family:var(--gen-font);
    font-size:14px;
    padding:12px 14px;
    border:1px solid var(--gen-navy-line);
    border-radius:2px;
    background:var(--gen-white);
    color:var(--gen-navy);
  }
  .contact-form-grid select{
    appearance:none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230D2240'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5H5.5z'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;
    padding-right:36px;
  }
  .contact-form-grid textarea{ min-height:110px; resize:vertical; }
  .contact-form-grid input:focus,
  .contact-form-grid select:focus,
  .contact-form-grid textarea:focus{ outline:2px solid var(--gen-teal); outline-offset:1px; }
  .contact-form-submit{ margin-top:22px; }

  .contact-form-intro{
    font-size:13px;
    color:var(--gen-teal-text);
    margin:0;
  }

  /* How both forms on this page report. The left border differentiates the
     two states, but the sentence in it is what actually says which one it is
     — the palette has no error colour, and inventing a red here is a brand
     decision rather than a CSS one.

     .form-noscript is only ever painted with scripts off, where it is the one
     thing on the card that matters: it borrows the same treatment because it
     is the same kind of sentence, one telling you what to do instead. */
  .contact-form-status,
  .newsletter-status,
  .form-noscript{
    padding:12px 14px;
    font-size:14px;
    color:var(--gen-navy);
    background:var(--gen-white);
    border-left:3px solid var(--gen-teal);
  }
  .contact-form-status{ margin:18px 0 0; }
  .contact-form-status.is-error,
  .newsletter-status.is-error{ border-left-color:var(--gen-gold); }
  .form-noscript{ border-left-color:var(--gen-gold); margin:0 0 18px; }
  /* Inline, and staying inline: giving this the 44px box the standalone links
     on this page get pushed the address onto a line of its own and left a hole
     in the middle of the sentence. A link inside a run of text is the one case
     the target-size rule exempts, and prose that reads properly is worth more
     here than a rule applied where it was not meant to go. */
  .form-noscript a{ color:var(--gen-teal-text); }

  /* Targets, not prose: the email address and the social links are the only
     way out of this block. */
  .direct-line a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
    /* These were browser-default blue and the only links on the site that
       were. Underline stays — it is what marks them as links in body copy. */
    color:var(--gen-teal-text);
  }
