/* ==========================================================================
   Northline Heating & Cooling - demonstration site stylesheet

   Self-contained on purpose. This file shares nothing with the MareCraftAI
   marketing site: not a token, not a component class, not a typeface. The
   website tiers are sold on work designed per client, and a portfolio in one
   palette disproves that on sight.

   Identity: workwear. Dark ground, safety orange, steel greys, condensed
   uppercase display type, zero corner radius, hard 2-3px rules. The language
   is trade signage rather than software marketing.

   Theme is locked dark. Northline's brand is dark the way Rivergate's is
   light; responding to prefers-color-scheme would mean shipping a second
   identity for a business that has one. Contrast is verified in the locked
   mode: body 7.1:1, orange on ground 6.4:1, ground on orange 6.7:1.
   ========================================================================== */

/* Self-hosted: the files come from @fontsource via site/build.mjs. */
@font-face{ font-family: "Barlow Condensed"; src: url("/assets/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face{ font-family: "Barlow Condensed"; src: url("/assets/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face{ font-family: "Barlow"; src: url("/assets/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face{ font-family: "Barlow"; src: url("/assets/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face{ font-family: "Barlow"; src: url("/assets/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root{
  /* Ground. No pure black anywhere: it flattens the steel gradients. */
  --void:      #0D0F12;
  --base:      #14171B;
  --panel:     #1B1F25;
  --panel-2:   #232830;

  /* Structure */
  --rule:      #2B313A;
  --rule-lit:  #3E4854;

  /* Text */
  --chalk:     #E8EAED;
  --mist:      #98A2AE;
  --white:     #F7F8F9;

  /* One accent, used on the whole site and nowhere diluted. */
  --orange:      #FF6A13;
  --orange-deep: #D4520A;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, sans-serif;

  /* Shape lock: everything is square. No radius token exists because no
     component is allowed one. */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --t: .18s cubic-bezier(.2,.7,.3,1);
}

*,*::before,*::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--base);
  color: var(--chalk);
  font: 400 clamp(1rem, .97rem + .16vw, 1.0625rem)/1.65 var(--body);
  /* Every sample page is dark-locked, so paint the scrollbar to match rather
     than leaving a light gutter down the side of the window. */
  color-scheme: dark;
  overflow-x: hidden;
}

img,svg{ max-width: 100%; display: block; }

a{ color: inherit; }

::selection{ background: var(--orange); color: var(--void); }

:focus-visible{
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: var(--void);
  padding: .75rem 1.25rem;
  font: 600 .95rem/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skip-link:focus{ left: 0; }

/* --- display type --------------------------------------------------------
   Condensed, uppercase, tight. Weight and tracking carry the hierarchy so
   the scale never has to shout. */

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .96;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}

h1{ font-size: clamp(2.9rem, 1.6rem + 6.2vw, 6.2rem); }
h2{ font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); }
h3{ font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); line-height: 1.05; }
h4{
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.2;
  color: var(--mist);
}

p{ margin: 0 0 1.1em; max-width: 62ch; }
p:last-child{ margin-bottom: 0; }

.lede{
  font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem);
  line-height: 1.55;
  color: var(--chalk);
  max-width: 52ch;
}

.muted{ color: var(--mist); }

/* --- hazard stripe -------------------------------------------------------
   The one decorative device on the site, and the reason it earns its place:
   diagonal caution striping is the actual visual vocabulary of the trade,
   the way a red cross is a clinic's. Used as a rule, an edge and a divider,
   never as a background behind text. */
.stripe{
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 12px,
    var(--void) 12px 24px
  );
}

/* --- demo banner ---------------------------------------------------------
   Sits above everything, on every page, with no dismiss control. */
.demo-banner{
  background: var(--void);
  border-bottom: 2px solid var(--orange);
  position: relative;
}
.demo-banner::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 8px,
    var(--void) 8px 16px
  );
}
.demo-banner__inner{
  max-width: var(--wrap);
  margin-inline: auto;
  padding: .7rem var(--gutter) .7rem calc(var(--gutter) + .5rem);
}
.demo-banner p{
  margin: 0;
  max-width: 96ch;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--mist);
}
.demo-banner strong{
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-right: .35rem;
}
.demo-banner a{ color: var(--chalk); text-decoration-color: var(--rule-lit); }
.demo-banner a:hover{ color: var(--orange); }

/* --- header --------------------------------------------------------------
   64px on desktop, one line, no dropdowns. */
.masthead{
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--base) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner{
  height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.mark{
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
  margin-right: auto;
  flex: 0 0 auto;
}
.mark__bar{
  width: 6px;
  height: 22px;
  background: var(--orange);
  align-self: center;
}
.mark__name{
  font: 700 1.35rem/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
}
.mark__name span{ color: var(--orange); }

.nav{
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav a{
  font: 600 .95rem/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  padding: .55rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
}
.nav a:hover{ color: var(--white); border-bottom-color: var(--rule-lit); }
.nav a[aria-current="page"]{ color: var(--white); border-bottom-color: var(--orange); }

/* --- buttons -------------------------------------------------------------
   Square, heavy, condensed caps. The push on :active is the whole motion
   budget for a button and it is there to acknowledge the click. */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border: 2px solid transparent;
  font: 700 1rem/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn--solid{
  background: var(--orange);
  color: var(--void);
  border-color: var(--orange);
}
.btn--solid:hover{ background: var(--orange-deep); border-color: var(--orange-deep); }
.btn--ghost{
  background: transparent;
  color: var(--white);
  border-color: var(--rule-lit);
}
.btn--ghost:hover{ border-color: var(--orange); color: var(--orange); }
.btn:active{ transform: translateY(1px); }

.masthead .btn{
  padding: .6rem 1.05rem;
  font-size: .9rem;
  flex: 0 0 auto;
}

/* --- section rhythm ------------------------------------------------------ */
.band{ padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.band--tight{ padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.band--panel{ background: var(--panel); }
.band--void{ background: var(--void); }
.band + .band--panel,
.band--panel + .band{ border-top: 1px solid var(--rule); }

.section-head{ max-width: 46ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem); }
.section-head h2{ margin-bottom: .9rem; }

/* --- hero ----------------------------------------------------------------
   Poster composition. The type is the visual: at this scale condensed caps
   against a steel field read as trade signage, which is the point. Left
   weighted rather than centred, and the whole thing sits inside one viewport
   with the banner and header above it. */
.hero{
  position: relative;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(255,106,19,.14) 0%, transparent 58%),
    linear-gradient(180deg, var(--panel) 0%, var(--base) 72%);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(3rem, 2rem + 5vw, 5.5rem);
  overflow: hidden;
}
/* Steel rake: three slabs of graded grey angled off the right edge. Sits
   behind the type at low contrast and gives the field some depth without
   pretending to be a photograph. */
.hero::after{
  content: "";
  position: absolute;
  top: -20%;
  right: -18%;
  width: 62%;
  height: 150%;
  background: repeating-linear-gradient(
    100deg,
    rgba(255,255,255,.035) 0 2px,
    transparent 2px 46px
  );
  transform: skewX(-12deg);
  pointer-events: none;
}
.hero > .wrap{ position: relative; z-index: 1; }

/* 24ch, not narrower. text-wrap:balance splits the headline across whatever
   measure it is given, so a tight max-width forces a third line at desktop no
   matter how small the type gets. The measure is the constraint here, not the
   scale. */
.hero h1{ margin-bottom: 1.5rem; max-width: 24ch; }
.hero h1 em{
  font-style: normal;
  color: var(--orange);
}
.hero .lede{ margin-bottom: 2.25rem; }

.hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* --- fact strip ----------------------------------------------------------
   Directly under the hero, never inside it. Three plain facts, divided by
   rules rather than boxed into cards. */
.facts{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.facts > div{
  padding: 1.75rem clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--rule);
}
.facts > div:first-child{ border-left: 0; padding-left: 0; }
.facts h4{ margin-bottom: .5rem; }
.facts p{
  font: 600 clamp(1.05rem, .95rem + .5vw, 1.35rem)/1.25 var(--display);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--white);
  margin: 0;
}

/* --- service blocks ------------------------------------------------------
   Asymmetric 2x2: the first block spans two columns so the grid has a
   dominant entry rather than four equal tiles. */
.services{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.services > article{
  background: var(--base);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: background var(--t);
}
.services > article:first-child{
  grid-column: 1 / -1;
  background: var(--panel);
  border-left: 4px solid var(--orange);
}
.services > article:hover{ background: var(--panel-2); }
.services h3{ color: var(--white); }
.services p{ margin: 0; color: var(--mist); max-width: 54ch; }

/* --- statement band ------------------------------------------------------
   Three claims stacked full width and separated by orange rules. Not cards,
   not numbered steps: the sentence is the whole unit. */
.statements{ display: grid; gap: 0; }
.statements > div{
  display: grid;
  grid-template-columns: minmax(0,7rem) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  border-top: 2px solid var(--rule);
}
.statements > div:last-child{ border-bottom: 2px solid var(--rule); }
.statements h3{
  color: var(--orange);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  letter-spacing: .08em;
}
.statements p{ margin: 0; max-width: 60ch; }

/* --- coverage grid -------------------------------------------------------
   A dense typographic list of the communities served. Twelve short items
   want a grid, not a bulleted column. */
.coverage{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.coverage li{
  background: var(--base);
  padding: .9rem 1.1rem;
  font: 600 1.05rem/1.2 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--chalk);
}

/* --- callout band --------------------------------------------------------
   The one full-bleed orange moment on the site. Used once, for the after
   hours line, because that is the message worth spending it on. */
.callout{
  background: var(--orange);
  color: var(--void);
}
.callout h2,.callout h3{ color: var(--void); }
.callout p{ color: color-mix(in srgb, var(--void) 82%, transparent); max-width: 56ch; }
.callout__inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.callout .btn{
  background: var(--void);
  color: var(--orange);
  border-color: var(--void);
}
.callout .btn:hover{ background: #000; border-color: #000; }

/* --- prose pages --------------------------------------------------------- */
.prose{ max-width: 68ch; }
.prose h2{ margin-top: 2.75rem; margin-bottom: .9rem; }
.prose h2:first-child{ margin-top: 0; }
.prose h3{ margin-top: 2rem; margin-bottom: .6rem; color: var(--orange); }
.prose ul{ padding-left: 1.1rem; margin: 0 0 1.1em; }
.prose li{ margin-bottom: .45rem; }
.prose li::marker{ color: var(--orange); }

/* --- form ----------------------------------------------------------------
   Label above input, helper below, no placeholder-as-label. Inert on the
   demonstration, and it says so rather than pretending to submit. */
.form{
  display: grid;
  gap: 1.35rem;
  max-width: 34rem;
}
.field{ display: grid; gap: .45rem; }
.field label{
  font: 600 .95rem/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--chalk);
}
.field input,
.field textarea,
.field select{
  font: 400 1rem/1.5 var(--body);
  color: var(--white);
  background: var(--void);
  border: 2px solid var(--rule-lit);
  padding: .8rem .9rem;
  width: 100%;
  transition: border-color var(--t);
}
.field textarea{ min-height: 8rem; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus{
  outline: 0;
  border-color: var(--orange);
}
.field input::placeholder,
.field textarea::placeholder{ color: #7C8794; }
.field .hint{
  font-size: .875rem;
  color: var(--mist);
  margin: 0;
}
.form__note{
  border-left: 4px solid var(--orange);
  background: var(--panel);
  padding: 1rem 1.15rem;
  font-size: .925rem;
  color: var(--chalk);
  margin: 0;
  max-width: 34rem;
}

/* --- contact detail list ------------------------------------------------- */
.details{ display: grid; gap: 1.75rem; }
.details h4{ margin-bottom: .4rem; }
.details p{ margin: 0; }

/* --- footer -------------------------------------------------------------- */
.footer{
  background: var(--void);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
.footer__inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  align-items: start;
}
.footer h4{ margin-bottom: .9rem; }
.footer p{ color: var(--mist); font-size: .95rem; }
.footer nav{ display: grid; gap: .55rem; }
.footer nav a{
  font: 600 .95rem/1.3 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color var(--t);
}
.footer nav a:hover{ color: var(--orange); }
.footer__base{
  margin-top: clamp(2rem, 1rem + 3vw, 3rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  font-size: .85rem;
  color: var(--mist);
}
.footer__base p{ max-width: 80ch; font-size: .85rem; }
.footer__base a{ color: var(--chalk); }

/* ==========================================================================
   Chat dock
   The launcher script (/chat-launcher.js) is shared with the main site: it
   binds to these four hooks and carries no styling of its own. The widget
   bundle injects .marecraft-messages, the bubbles and a bare input into
   #sample-chat, and the main site's chat CSS is not loaded here, so every
   one of those is styled below or it ships unstyled.
   ========================================================================== */
.chat-dock{
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 60;
}
.chat-dock__toggle{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.35rem;
  background: var(--orange);
  color: var(--void);
  border: 2px solid var(--orange);
  font: 700 .95rem/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.9);
  transition: background var(--t), transform var(--t);
}
.chat-dock__toggle:hover{ background: var(--orange-deep); }
.chat-dock__toggle:active{ transform: translateY(1px); }

.chat-dock__panel{
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(370px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  max-height: min(540px, calc(100vh - 130px));
  background: var(--panel);
  border: 2px solid var(--rule-lit);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.95);
  overflow: hidden;
}
.chat-dock__panel[hidden]{ display: none; }
.chat-dock__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--void);
  border-bottom: 2px solid var(--orange);
}
.chat-dock__title{
  margin: 0;
  font: 700 1rem/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
}
.chat-dock__close{
  background: none;
  border: 0;
  color: var(--mist);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 .25rem;
  cursor: pointer;
  transition: color var(--t);
}
.chat-dock__close:hover{ color: var(--orange); }

#sample-chat{
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.marecraft-messages{
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 8rem;
}
.marecraft-message{
  padding: .65rem .85rem;
  font-size: .95rem;
  line-height: 1.5;
  max-width: 90%;
}
.marecraft-message--user{
  align-self: flex-end;
  background: var(--orange);
  color: var(--void);
  font-weight: 500;
}
.marecraft-message--assistant{
  align-self: flex-start;
  background: var(--base);
  border-left: 3px solid var(--rule-lit);
  color: var(--chalk);
}
#sample-chat input{
  border: 0;
  border-top: 2px solid var(--rule);
  background: var(--void);
  color: var(--white);
  font: 400 1rem/1.4 var(--body);
  padding: .9rem 1rem;
  width: 100%;
}
#sample-chat input::placeholder{ color: #7C8794; }
#sample-chat input:focus{ outline: 0; border-top-color: var(--orange); }
#sample-chat input:disabled{ color: var(--mist); }

/* ==========================================================================
   Responsive
   The main site's mobile fixes live in its own stylesheet and do not reach
   here, so this is Northline's own pass.
   ========================================================================== */
@media (max-width: 900px){
  .footer__inner{ grid-template-columns: 1fr 1fr; }
  .facts{ grid-template-columns: 1fr; }
  .facts > div{
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--rule);
  }
  .facts > div:first-child{ border-top: 0; }
  .callout__inner{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  /* The nav drops below the brand on its own line rather than compressing
     into a hamburger: four short condensed labels fit across 375px, and a
     visible nav beats a hidden one on a site whose visitors arrive in a
     hurry. */
  .masthead__inner{
    height: auto;
    flex-wrap: wrap;
    padding-block: .7rem;
    gap: .6rem 1rem;
  }
  .mark{ margin-right: auto; }
  .masthead .btn{ order: 2; }
  .nav{
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: .5rem;
    border-top: 1px solid var(--rule);
    padding-top: .5rem;
  }
  .nav a{
    font-size: .875rem;
    letter-spacing: .06em;
    /* 44px tap target on a site people use one-handed in a cold house. */
    padding: .6rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .services{ grid-template-columns: 1fr; }
  .services > article:first-child{ grid-column: auto; }

  .statements > div{ grid-template-columns: 1fr; gap: .5rem; }

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

  .demo-banner p{ font-size: .8125rem; }

  .hero{ padding-block: 2.5rem 3rem; }
  .hero::after{ display: none; }

  .btn{ width: 100%; }
  .hero__actions{ flex-direction: column; align-items: stretch; }
  .masthead .btn,
  .callout .btn{ width: auto; }
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* --- page head -----------------------------------------------------------
   Interior pages open with a rule under the title rather than repeating the
   home page's hero treatment. */
.page-head{ border-bottom: 1px solid var(--rule); }
.page-head h1{ max-width: 18ch; font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); }
.page-head .lede{ margin-top: 1.25rem; }

/* --- clusters ------------------------------------------------------------
   Eight services in one repeated row treatment is a list pretending to be a
   layout. Grouped into three clusters instead, each with a heading and a
   sparse divider, so the page has structure a reader can scan. */
.cluster{ margin-bottom: clamp(2.75rem, 1.5rem + 4vw, 4.5rem); }
.cluster:last-child{ margin-bottom: 0; }
.cluster > h2{
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  padding-bottom: .85rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--orange);
}

/* The dominant first tile belongs to the home page only. Clusters use an
   even grid so no service inside a group outranks its neighbours. */
.services--lead > article:first-child{
  grid-column: 1 / -1;
  background: var(--panel);
  border-left: 4px solid var(--orange);
}

/* --- contact layout ------------------------------------------------------ */
.contact-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 3vw, 4.5rem);
  align-items: start;
}
.contact-grid__title{
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  padding-bottom: .85rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--orange);
}
.contact-grid .form{ margin-top: 1.75rem; }
.contact-grid .btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
}
.contact-grid .btn[disabled]:active{ transform: none; }

.details__line{
  font: 700 clamp(1.5rem, 1.2rem + 1.4vw, 2rem)/1.1 var(--display);
  letter-spacing: .02em;
  color: var(--orange);
}
.details__small{ font-size: .85rem; margin-top: .35rem; }

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* --- touch targets -------------------------------------------------------
   Measured at 375px rather than assumed. The main nav already clears 44px
   from its own rule above; these three did not. The footer nav was the worst
   at 20px, which is a link you can see and cannot reliably hit. */
@media (max-width: 720px){
  .mark{
    min-height: 44px;
    align-items: center;
  }
  .masthead .btn{
    min-height: 44px;
    padding-block: .75rem;
  }
  .footer nav{ gap: 0; }
  .footer nav a{
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Keyboard-only, but there is no reason for it to be the one control under
   the threshold. */
.skip-link{ min-height: 44px; display: inline-flex; align-items: center; }
