/* Roadware public site. Tokens from the Roadware design system (light theme only).
   Ink on paper; a sign colour appears only where a highway sign of that colour would
   say the same thing, always with words on it. No shadows, no gradients (the painted
   logo is artwork, not a surface), no italics. */
:root {
  --paper: #ffffff;
  --ground: #e9e7e0;
  --band: #fcfbf9; /* ground lightened for the page bands */
  /* Light grain for the bands: grey fractal noise with low alpha, tiled. */
  --band-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.38 0 0 0 0 0.33 0.2 0 0 0 -0.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --ink: #111111;
  --ink-muted: #4a4a4a;
  --rule: #767676;
  --guide-green: #006747;
  --guide-green-light: #38886f; /* logo only: guide-green mixed 22% toward white */
  --on-guide: #ffffff;
  --service-blue: #002f6c;
  --stop-red: #a6192e;
  --warning-yellow: #ffcd00;
  --work-orange: #e57200;

  --font-sign: "Overpass", "Highway Gothic", "Arial Narrow", Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --space-16: 64px;

  --radius-plaque: 3px;
  --radius-panel: 8px;
  --radius-sign: 12px;
  --border-hair: 1px;
  --border-sign: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sign);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  font-style: normal;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--service-blue); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--service-blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 760px) { .wrap { padding: 0 var(--space-6); } }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--paper); padding: var(--space-2) var(--space-3); border: var(--border-sign) solid var(--ink); border-radius: var(--radius-plaque); z-index: 10; }
.skip:focus { top: var(--space-2); }

/* Type. Weight does the work: 500 for text, 800 for headings, 900 for the wordmark only. */
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: 0.01em; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; margin-bottom: var(--space-4); padding-bottom: var(--space-1); border-bottom: var(--border-sign) solid var(--ink); }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0 0 var(--space-4); }
.label { margin: 0 0 var(--space-3); font-size: 13px; line-height: 1.3; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.45; max-width: 34em; }
.aside { margin-top: var(--space-6); font-weight: 800; }

/* Sections. Lightly grained bands alternate with paper. */
main > section { padding: var(--space-16) 0; }
.band, .hero { background: var(--band-grain) var(--band); }

/* Colour panels and buttons: round corners, no inset border. The inset sign border
   belongs to the logo alone. */
.sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 26px 10px;
  border: var(--border-sign) solid transparent;
  border-radius: var(--radius-panel);
  font: inherit;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.sign--blue { background: var(--service-blue); color: var(--on-guide); }
.sign--blue:hover { color: var(--on-guide); background: #0a3f86; }
.sign--ink { background: var(--ink); color: var(--paper); }
a.sign--ink:hover, button.sign--ink:hover { color: var(--paper); background: #3a3a3a; }
.sign--paper { background: var(--paper); color: var(--ink); }
.sign--paper:hover { color: var(--ink); background: var(--ground); }
.sign--small { min-height: 44px; padding: 9px 18px 7px; font-size: 16px; }
.sign--panel { display: block; padding: var(--space-10) var(--space-6); border: 0; border-radius: var(--radius-sign); font-weight: 500; line-height: 1.5; cursor: auto; }
@media (min-width: 760px) { .sign--panel { padding: var(--space-10) 56px; } }

/* Logo, the workshop's primary guide panel (A): ROADWARE in sign 900 at 0.06em, white
   on a guide-green panel lightened toward its top left, with grain, a slight paint
   wobble, a 1deg tilt and a border set in from the edge. Sized by font-size; it
   appears once, in the header. */
.logo {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-size: 44px;
  padding: 0.14em;
  border-radius: 0.21em;
  color: var(--on-guide);
  text-decoration: none;
  background: linear-gradient(160deg, var(--guide-green-light) 0%, var(--guide-green) 75%);
  filter: url(#rw-paint);
  transform: rotate(-1deg);
}
.logo:hover { color: var(--on-guide); }
.logo__face { position: relative; display: block; border: 0.088em solid var(--on-guide); border-radius: 0.12em; padding: 0.45em 0.6em 0.36em; }
.logo__word { display: flex; font-weight: 900; font-size: 1em; line-height: 1; letter-spacing: 0.06em; color: var(--on-guide); }
.logo__grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; mix-blend-mode: overlay; pointer-events: none; }
.logo--header { font-size: 24px; }
.logo__word span { display: inline-block; }
/* Per-letter tilt and offset from workshop A; offsets are its px values at 66 px type. */
.logo__word span:nth-child(1) { transform: rotate(-0.8deg) translateY(0.003em); }
.logo__word span:nth-child(2) { transform: rotate(0.4deg) translateY(-0.0015em); }
.logo__word span:nth-child(3) { transform: rotate(-0.4deg) translateY(0.0045em); }
.logo__word span:nth-child(4) { transform: rotate(0.6deg) translateY(0.0015em); }
.logo__word span:nth-child(5) { transform: rotate(-0.2deg) translateY(-0.003em); }
.logo__word span:nth-child(6) { transform: rotate(0.8deg) translateY(0.0015em); }
.logo__word span:nth-child(7) { transform: rotate(-0.6deg) translateY(0.003em); }
.logo__word span:nth-child(8) { transform: rotate(0.4deg) translateY(-0.0015em); }

/* Masthead: ink on paper; the hero band below marks where it ends. */
.masthead { background: var(--paper); }
.masthead__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-top: var(--space-3); padding-bottom: var(--space-3); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-6); }
.nav a:not(.sign) { color: var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; padding: 10px 0; }
.nav a:not(.sign):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 759px) { .nav a:not(.sign) { display: none; } }

/* Hero: the words over a simulated point-cloud street that fills the band. */
main > section.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); min-height: clamp(640px, calc(100svh - 68px), 920px); padding: var(--space-10) 0 var(--space-6); }
@media (min-width: 900px) { main > section.hero { padding-top: var(--space-16); } }
.hero__scene { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero__words { position: relative; }
/* Narrow: room below the words for the street. */
@media (max-width: 899px) { main > section.hero { padding-bottom: clamp(300px, 80vw, 440px); } }
.hero h1 { margin-bottom: var(--space-6); font-size: clamp(48px, 8vw, 88px); line-height: 1; }
.hero .lead { max-width: 22em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }

/* Plaques: a word in a small sign. Work orange marks pre-production, as on a work zone. */
.plaque {
  display: inline-block;
  vertical-align: middle;
  padding: 3px 7px 1px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-plaque);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.plaque--work { background: var(--work-orange); }
.plaque--warning { background: var(--warning-yellow); }
.label .plaque { margin-right: var(--space-2); }

/* Product preview (r1.html): the words, then the rendering across the column. */
main > section.product-hero { padding: var(--space-10) 0 var(--space-16); }
.product-hero h1 { margin-bottom: var(--space-4); font-size: clamp(44px, 7vw, 76px); line-height: 1; }
.product-hero__figure { margin: var(--space-10) 0 0; }
.product-hero__figure img { width: 100%; border-radius: var(--radius-panel); }
.product-hero__figure figcaption { margin-top: var(--space-2); font-size: 15px; color: var(--ink-muted); }
main > section.notice { padding: var(--space-10) 0; }
.notice h2 { border-bottom: 0; padding-bottom: 0; }
.notice p { max-width: 44em; margin: 0; font-size: 16px; }

/* Steps: numbered like notes in a Roadware document. */
.steps { list-style: none; counter-reset: step; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-10) var(--space-10); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 40px; line-height: 1; font-weight: 900; margin-bottom: var(--space-3); }
.steps h3 { margin-bottom: var(--space-2); }
.steps p { margin: 0; }
/* Each step's number, heading, text and figure share the row's tracks, so figures line up across a row whatever the text or caption length. */
.steps li { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.step__figure { margin: var(--space-6) 0 0; }
.step__figure img { width: 100%; }
.step__figure figcaption { margin-top: var(--space-3); font-size: 15px; line-height: 1.4; color: var(--ink-muted); }
/* Screenshots: hairline edge so the light chart doesn't melt into the paper. */
.step__figure--screen img { border: var(--border-hair) solid var(--rule); }

/* Specifications: label and value pairs between two ink rules. */
.section-lead { max-width: 44em; }
.specs { display: grid; grid-template-columns: 1fr; margin: var(--space-6) 0 0; background: var(--paper); border-top: var(--border-sign) solid var(--ink); border-bottom: var(--border-sign) solid var(--ink); }
@media (min-width: 640px) { .specs { grid-template-columns: 220px 1fr; } }
.specs dt, .specs dd { margin: 0; padding: 12px var(--space-4) 10px; border-top: var(--border-hair) solid var(--rule); }
.specs dt:first-of-type, .specs dt:first-of-type + dd { border-top: 0; }
.specs dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); padding-bottom: 0; }
@media (min-width: 640px) { .specs dt { padding-bottom: 10px; line-height: 27px; } }
@media (max-width: 639px) { .specs dd { border-top: 0; padding-top: 2px; } }
/* A small second line under a label, in the case it is written. */
.specs__note { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.3; }

/* Pilot: an ink panel with a paper button. */
.pilot { position: relative; z-index: 1; display: grid; gap: var(--space-6); align-items: end; }
@media (min-width: 900px) { .pilot { grid-template-columns: 1fr auto; gap: var(--space-10); } }
.pilot h2 { color: var(--on-guide); border-bottom-color: var(--on-guide); }
.pilot p { max-width: 40em; }
.pilot p:last-child { margin-bottom: 0; }
.label--on-sign { color: var(--on-guide); }
.pilot .sign--paper { justify-self: start; }

/* Dimensions drawing: one SVG in mm, front and side side by side at every width, beside
   the table on a wide screen. Lines and text are in the drawing's units, so the text grows
   and shrinks with it: 7.5 mm reads at about 13 px at the 420 px cap, 11 px on a phone. */
.dims-layout { display: grid; gap: var(--space-6) var(--space-10); align-items: start; margin-top: var(--space-6); }
@media (min-width: 900px) { .dims-layout { grid-template-columns: 420px 1fr; } .dims-layout .specs { margin-top: 0; } }
.dims { margin: 0; max-width: 420px; }
.dims__svg { display: block; width: 100%; height: auto; }
.dims__svg text { font-family: var(--font-sign); font-size: 7.5px; font-weight: 700; fill: var(--ink); }
.dims__svg marker path { fill: var(--ink); }
.dims__ext { fill: none; stroke: var(--rule); stroke-width: 0.35; }
.dims__dim { fill: none; stroke: var(--ink); stroke-width: 0.5; }
.dims figcaption { margin-top: var(--space-2); font-size: 15px; line-height: 1.4; color: var(--ink-muted); }

.two-col { display: grid; gap: var(--space-10); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }

/* Contact form. */
.form { display: grid; gap: var(--space-1); background: var(--paper); padding: var(--space-6); border: var(--border-sign) solid var(--ink); border-radius: var(--radius-panel); }
.form label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-top: var(--space-3); }
.form label:first-child { margin-top: 0; }
.form .optional { font-weight: 500; letter-spacing: 0; text-transform: none; }
.form textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px 8px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: var(--border-sign) solid var(--rule);
  border-radius: var(--radius-plaque);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: 3px solid var(--service-blue); outline-offset: 1px; }
.form button { justify-self: start; margin-top: var(--space-6); }
.form__status { margin: var(--space-3) 0 0; font-weight: 700; }
.form__status:empty { display: none; }
/* Shown in the form's place once Formspree accepts a message. */
.form--sent { align-self: start; }
.form--sent h3 { margin: 0 0 var(--space-2); font-size: 20px; line-height: 1.25; font-weight: 800; }
.form--sent p { margin: 0; }
.form--sent:focus { outline: 3px solid var(--service-blue); outline-offset: 2px; }

/* Footer: one muted line under a hairline rule. */
.footer { padding: var(--space-6) 0 var(--space-10); }
.footer .wrap { padding-top: var(--space-4); border-top: var(--border-hair) solid var(--rule); }
.footer p { margin: 0; font-size: 15px; color: var(--ink-muted); }
