/* Kilcock Radiators: one stylesheet, rules in page order, motion last. */

:root {
  /* Graphite inks, darkest first. */
  --ink-0: #06080a;
  --ink-1: #0b0e12;
  --ink-2: #10141a;
  --ink-3: #161b22;
  --ink-4: #1e242c;
  --line: rgba(205, 216, 228, 0.1);
  --line-2: rgba(205, 216, 228, 0.2);

  --text: #eef2f6;
  --text-2: #b3bdc8;
  --text-3: #808b97;

  /* The KR logo: red K, blue R. The -2 tints are for small text and icons on dark. */
  --red: #e20613;
  --red-2: #ff4952;
  --blue: #1d70b7;
  --blue-2: #55a6f0;
  --alu: #d4dbe2;
  --star: #f5b82e;
  --open: #3ad07c;

  /* Hot side, aluminium core, cold side: the site's signature accent. */
  --thermal: linear-gradient(90deg, var(--red-2) 0%, var(--alu) 50%, var(--blue-2) 100%);
  --thermal-v: linear-gradient(180deg, var(--red-2) 0%, var(--alu) 50%, var(--blue-2) 100%);

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --radius: 6px;
  --section: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--ink-1);
}

body {
  margin: 0;
  background: var(--ink-1);
  color: var(--text-2);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.menu-open { overflow: hidden; }

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

img { height: auto; }

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

strong { color: var(--text); font-weight: 600; }

::selection { background: var(--red); color: #fff; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--ink-1);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* Film grain: a real element (not a pseudo-element) so iOS Safari still tints the
   status bar from the header behind it. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared pieces ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: none;
  background: var(--thermal);
}
.eyebrow--inline { margin: 0; }
.eyebrow--inline::before { display: none; }

.thermal-bar {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--thermal);
}
.hero__eyebrow::before { display: none; }

.muted { color: var(--text-3); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 0.98rem;
  font-stretch: 106%;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { background: #f5121f; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }

.btn--ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: rgba(205, 216, 228, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.btn--small {
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.9rem;
}
.btn--small .icon { width: 16px; height: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  font-weight: 600;
  font-stretch: 106%;
  text-decoration: none;
  transition: border-color 0.25s;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { border-color: var(--text); }
.link-arrow:hover .icon { transform: translateX(4px); }

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(2rem, 1.15rem + 2.9vw, 3.5rem);
  font-weight: 750;
  line-height: 1.03;
}
.section-head__lede {
  max-width: 62ch;
  margin-top: 1.4rem;
  color: var(--text-2);
  font-size: 1.1rem;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .section-head__lede { margin-inline: auto; }

.mini-title {
  margin-bottom: 1rem;
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Star rating: --rating out of 5 sets how far the gold fill runs. */
.stars {
  --size: 15px;
  --gap: 3px;
  display: inline-block;
  width: calc(var(--size) * 5 + var(--gap) * 4);
  height: var(--size);
  flex: none;
  background: linear-gradient(90deg, var(--star) calc(var(--rating, 5) / 5 * 100%), rgba(205, 216, 228, 0.22) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9Z'/%3E%3C/svg%3E") 0 0 / calc(var(--size) + var(--gap)) var(--size) repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9Z'/%3E%3C/svg%3E") 0 0 / calc(var(--size) + var(--gap)) var(--size) repeat-x;
}
.stars--lg { --size: 22px; --gap: 4px; }

/* Live open/closed status, filled in by main.js from the hours table. */
.status { display: inline-flex; align-items: center; gap: 0.6rem; }
.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--text-3);
}
.status.is-open .dot {
  background: var(--open);
  box-shadow: 0 0 0 4px rgba(58, 208, 124, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
.status.is-closed .dot { background: var(--red-2); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 14, 18, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
/* iOS Safari tints its status bar from a solid fixed header only. */
@supports (-webkit-touch-callout: none) {
  .header.is-scrolled {
    background: var(--ink-1);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  text-decoration: none;
}
.brand__mark { width: 62px; height: 25px; }
.brand__text { display: flex; flex-direction: column; gap: 0.3rem; }
.brand__name {
  font-size: 0.86rem;
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}
.brand__meta {
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding-block: 0.4rem;
  color: var(--text-2);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--thermal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover,
.nav a[aria-current="true"] { color: var(--text); }
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 500 0.78rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__icon {
  position: relative;
  width: 18px;
  height: 10px;
}
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(226, 6, 19, 0.12), transparent 70%),
    radial-gradient(80% 50% at 0% 100%, rgba(29, 112, 183, 0.16), transparent 70%),
    var(--ink-1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease), visibility 0s;
}
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-stretch: 115%;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.menu__foot { display: grid; gap: 0.75rem; }
.menu__foot .btn { width: 100%; }
.menu__status {
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink-0);
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero__media img {
  object-fit: cover;
  object-position: 32% 46%;
  filter: saturate(0.85) contrast(1.06) brightness(0.86);
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 8, 10, 0.72) 0%, rgba(6, 8, 10, 0) 24%),
    linear-gradient(90deg, rgba(6, 8, 10, 0.95) 0%, rgba(6, 8, 10, 0.88) 34%, rgba(6, 8, 10, 0.5) 60%, rgba(6, 8, 10, 0.16) 100%),
    linear-gradient(0deg, var(--ink-1) 0%, rgba(11, 14, 18, 0.55) 22%, rgba(11, 14, 18, 0) 48%),
    radial-gradient(55% 60% at 92% 12%, rgba(226, 6, 19, 0.2), transparent 70%),
    radial-gradient(50% 55% at 82% 100%, rgba(29, 112, 183, 0.26), transparent 70%);
}

.hero__inner {
  padding-top: calc(var(--header-h) + 8vh);
  padding-bottom: clamp(44px, 8vh, 96px);
}
.hero__eyebrow { margin-bottom: 1.6rem; color: var(--text-2); }

.hero__title {
  max-width: 11.5em;
  font-size: clamp(2.7rem, 0.9rem + 6vw, 6.4rem);
  font-stretch: 114%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.028em;
}
.hero__title-em {
  /* "specialists." runs hot to cold across the word. */
  background: linear-gradient(90deg, #ff5a62 0%, #f1f4f7 46%, #f1f4f7 58%, #6db4f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 40rem;
  margin-top: 1.75rem;
  color: var(--text-2);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 2.5rem;
  max-width: 54rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 0.92rem;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 0.7rem; }
.hero__fact-mono {
  padding: 0.18rem 0.4rem;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

/* ---------- Ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  padding: 1.05rem 0 1.05rem 2.4rem;
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker span::after {
  content: "";
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--red-2), var(--blue-2));
  transform: rotate(45deg);
}

/* ---------- Intro ---------- */

.intro {
  position: relative;
  padding-block: var(--section);
  overflow: hidden;
}
/* Faint radiator fins, fading out from the top right. */
.intro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(760px, 70%);
  height: 100%;
  background: repeating-linear-gradient(180deg, rgba(205, 216, 228, 0.07) 0 1px, transparent 1px 10px);
  -webkit-mask: radial-gradient(70% 60% at 100% 0%, #000, transparent 75%);
  mask: radial-gradient(70% 60% at 100% 0%, #000, transparent 75%);
  pointer-events: none;
}

.intro__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.intro__title {
  font-size: clamp(2rem, 1.1rem + 2.9vw, 3.6rem);
  font-stretch: 108%;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.intro__body { display: grid; gap: 1.1rem; }
.intro__body .link-arrow { margin-top: 0.6rem; }

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(56px, 8vw, 104px) 0 0;
  border-top: 1px solid var(--line-2);
}
.stat {
  padding: 1.6rem 1.5rem 0;
  border-left: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dt {
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stat dd { margin: 0.9rem 0 0; display: grid; gap: 0.45rem; }
.stat__num {
  color: var(--text);
  font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem);
  font-stretch: 116%;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num small { color: var(--text-3); font-size: 0.45em; font-weight: 600; letter-spacing: 0; }
.stat__note { color: var(--text-3); font-size: 0.92rem; line-height: 1.4; }

/* ---------- Services ---------- */

.services {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-3);
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--thermal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card:hover::after { transform: scaleX(1); }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__media--graphic {
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(226, 6, 19, 0.14), transparent 70%),
    radial-gradient(60% 50% at 80% 85%, rgba(29, 112, 183, 0.18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(205, 216, 228, 0.035) 0 1px, transparent 1px 22px),
    var(--ink-2);
}
.matrix { width: 78%; height: auto; overflow: visible; }
.matrix__flow {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 4 9;
  animation: flow 1.6s linear infinite;
}
.matrix__flow--in { stroke: var(--red-2); }
.matrix__flow--out { stroke: var(--blue-2); }
.matrix__air {
  fill: none;
  stroke: var(--red-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.6;
}
.card__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(6, 8, 10, 0.55);
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.5rem 1.75rem;
}
.card__index {
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.card h3 { font-size: 1.5rem; font-stretch: 110%; }
.card p { font-size: 0.98rem; line-height: 1.55; }
.card .tags,
.card .link-arrow { margin-top: auto; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.8rem;
}
.tags li {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card .link-arrow { margin-top: auto; padding-top: 0.8rem; border-bottom: 0; }
.card .link-arrow:hover { color: var(--text); }

.services__parts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-top: 20px;
  padding: 1.3rem 1.5rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--text-2);
}

/* ---------- Process ---------- */

.process { padding-block: var(--section); }

.process__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.process__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.process__intro .section-head { margin-bottom: 0; }

.process__figure {
  position: relative;
  margin: 2.5rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.process__figure img { width: 100%; }
.process__figure figcaption {
  position: absolute;
  inset: 1rem 1rem auto;
  display: flex;
  justify-content: space-between;
}
.process__figure figcaption span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(6, 8, 10, 0.72);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.process__figure figcaption span:first-child { box-shadow: inset 0 -2px 0 var(--red-2); }
.process__figure figcaption span:last-child { box-shadow: inset 0 -2px 0 var(--blue-2); }

.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  color: transparent;
  font-size: 3rem;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.9;
  -webkit-text-stroke: 1px rgba(205, 216, 228, 0.42);
  transition: color 0.4s;
}
.step:hover .step__num { color: rgba(205, 216, 228, 0.12); }
.step h3 { margin-bottom: 0.65rem; font-size: 1.35rem; font-stretch: 108%; }

/* ---------- Plant & industrial ---------- */

.industrial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block: 1px solid var(--line);
  background: var(--ink-0);
}
.industrial__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.industrial__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.industrial__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--ink-0) 100%);
}
.industrial__content {
  max-width: 700px;
  padding: var(--section) var(--gutter) var(--section) clamp(32px, 5vw, 72px);
}
.industrial__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.checks li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.45;
}
.checks .icon { margin-top: 0.1rem; color: var(--blue-2); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chips li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.3;
}

/* ---------- Vintage & classic ---------- */

.classic { padding-block: var(--section); }

.classic__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.classic__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.classic__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.classic__content .section-head { margin-bottom: 2.5rem; }

.cores ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cores li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
}
.cores__n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
}

.pull {
  position: relative;
  margin: 2.5rem 0 0;
  padding-left: 1.6rem;
}
.pull::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0;
  width: 2px;
  background: var(--thermal-v);
}
.pull p {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.5;
}
.pull footer {
  margin-top: 0.9rem;
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pull footer span { color: var(--text-3); }

/* ---------- Story ---------- */

.story {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}

.story__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.story__photo { margin: 0; }
.story__photo picture {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.story__photo img { width: 100%; filter: saturate(0.8) contrast(1.02); }
.story__photo figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 0.9rem;
  color: var(--text-2);
  font-size: 0.95rem;
}
.story__photo figcaption .eyebrow { color: var(--text); }
.story__content .section-head { margin-bottom: 2.5rem; }

.timeline { position: relative; display: grid; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: 5px;
  width: 1px;
  background: var(--thermal-v);
  opacity: 0.6;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0 0 1.6rem 2.2rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--alu);
  border-radius: 50%;
  background: var(--ink-2);
}
.timeline__year {
  color: var(--text);
  font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.iso {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 2.5rem;
}
.iso li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.iso__code {
  color: var(--text);
  font-size: 1.15rem;
  font-stretch: 118%;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.iso__what { color: var(--text-3); font-size: 0.86rem; line-height: 1.4; }

/* ---------- Reviews ---------- */

.reviews { padding-block: var(--section); }

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.reviews__head .section-head { max-width: 640px; }
.reviews__head .section-head { margin-bottom: 0; }
.reviews__score {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.reviews__num {
  color: var(--text);
  font-size: clamp(4rem, 2.8rem + 4vw, 6.75rem);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.reviews__score p { margin-top: 0.6rem; color: var(--text-2); font-size: 0.95rem; }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.quote blockquote { margin: 0; }
.quote blockquote::before {
  content: "";
  display: block;
  width: 84px;
  height: 14px;
  margin-bottom: 1.1rem;
  background: var(--star);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9Z'/%3E%3C/svg%3E") 0 0 / 17px 14px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9Z'/%3E%3C/svg%3E") 0 0 / 17px 14px repeat-x;
}
.quote blockquote p { color: var(--text); font-size: 1.08rem; line-height: 1.5; }
.quote__by {
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reviews__more { margin-top: 2.25rem; }

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding-block: var(--section);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(29, 112, 183, 0.12), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(226, 6, 19, 0.08), transparent 70%),
    var(--ink-2);
}

.contact__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.contact__main h2 {
  font-size: clamp(2rem, 1.15rem + 2.9vw, 3.5rem);
  font-weight: 750;
  line-height: 1.03;
}
.contact__lede { margin-top: 1.2rem; font-size: 1.1rem; }

.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin: 2rem 0 1.6rem;
  color: var(--text);
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.6rem);
  font-stretch: 116%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(var(--text), var(--text)) 0 100% / 0 2px no-repeat;
  padding-bottom: 0.12em;
  transition: background-size 0.5s var(--ease);
}
.contact__phone:hover { background-size: 100% 2px; }
.contact__phone .icon { width: 0.62em; height: 0.62em; color: var(--red-2); }

.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.contact__list {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: var(--text-2);
}
.contact__list .icon { margin-top: 0.22rem; color: var(--text-3); }
.contact__list address { font-style: normal; }
.contact__list a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact__list a:hover { border-color: var(--text); }

.hours {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink-3);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.hours__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.hours__head h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-stretch: 108%;
}
.hours__head h3 .icon { color: var(--text-3); }
.status--pill {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.hours__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours__table th,
.hours__table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.hours__table th { color: var(--text-2); font-weight: 500; text-align: left; }
.hours__table td { color: var(--text); text-align: right; }
.hours__table tr:not([data-open]) td { color: var(--text-3); }
.hours__table tr.is-today th,
.hours__table tr.is-today td { color: var(--text); font-weight: 700; }
.hours__table tr.is-today th::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.6rem 0.12rem 0;
  border-radius: 50%;
  background: var(--thermal);
  vertical-align: middle;
}
.hours__note { margin-top: 1.25rem; color: var(--text-3); font-size: 0.9rem; }

/* ---------- Footer ---------- */

.footer {
  padding: clamp(56px, 8vw, 88px) 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--ink-0);
  color: var(--text-3);
  font-size: 0.95rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}
.footer__mark { width: 124px; height: 50px; margin-bottom: 0.6rem; }
.footer__name {
  font-size: 1.05rem;
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.footer__tag {
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  align-content: start;
}
.footer__nav a,
.footer__contact a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__nav a:hover,
.footer__contact a:hover { color: var(--text); }
.footer__contact { display: grid; gap: 0.6rem; align-content: start; }
.footer__contact a:first-child {
  color: var(--text);
  font-size: 1.3rem;
  font-stretch: 112%;
  font-weight: 700;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* ---------- Breakpoints ---------- */

/* Must match matchMedia('(min-width: 1081px)') in main.js. */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .js .menu-toggle { display: inline-flex; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .intro__grid,
  .process__grid,
  .classic__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { margin-top: 1.5rem; border-top: 1px solid var(--line); }

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

  .process__intro { position: static; }
  .process__figure { max-width: 640px; }

  .industrial { grid-template-columns: 1fr; }
  .industrial__media { aspect-ratio: 16 / 10; min-height: 0; }
  .industrial__media::after { background: linear-gradient(0deg, var(--ink-0) 0%, transparent 45%); }
  .industrial__content { max-width: none; padding: clamp(40px, 7vw, 64px) var(--gutter) var(--section); }

  .classic__media { max-width: 640px; }

  .story__grid { grid-template-columns: 1fr; }
  .story__photo { max-width: 520px; }

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

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 1rem; }

  .brand__meta { display: none; }
  .brand__mark { width: 52px; height: 21px; }
  .brand__name { font-size: 0.78rem; }
  .header__cta { display: none; }
  .js .menu-toggle { margin-left: auto; }
  html:not(.js) .header__cta { display: inline-flex; margin-left: auto; }

  .hero__inner { padding-bottom: 36px; }
  .hero__facts { gap: 0.8rem 1.6rem; font-size: 0.88rem; }

  /* Service cards become a swipeable row. */
  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }

  .step { grid-template-columns: 3.6rem 1fr; gap: 1rem; padding-block: 1.8rem; }
  .step__num { font-size: 2.2rem; }

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

  .cores ul { grid-template-columns: 1fr; }

  .timeline li { grid-template-columns: 1fr; gap: 0.4rem; }
  .iso { grid-template-columns: 1fr; }

  .quotes {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { scroll-snap-align: start; }

  .hours { padding: 1.5rem; }

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

@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__actions .btn { flex: 1 1 100%; }
}

/* Phones in portrait: the tall crop becomes a photo block at the top that fades to dark,
   and the copy is pulled up over its faded edge, so text never sits on the bright fins. */
@media (max-aspect-ratio: 4/5) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    background: var(--ink-1);
  }
  .hero__media {
    position: relative;
    inset: auto;
    height: 50svh;
    min-height: 320px;
  }
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 8, 10, 0.6) 0%, rgba(6, 8, 10, 0) 24%, rgba(11, 14, 18, 0.25) 48%, rgba(11, 14, 18, 0.88) 80%, var(--ink-1) 100%);
  }
  .hero__media img { object-position: 50% 30%; }
  .hero__shade {
    background:
      radial-gradient(90% 30% at 100% 4%, rgba(226, 6, 19, 0.22), transparent 70%),
      radial-gradient(90% 24% at 0% 40%, rgba(29, 112, 183, 0.18), transparent 70%);
  }
  .hero__inner {
    position: relative;
    margin-top: -13svh;
    padding-top: 0;
  }
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.hero__media img { animation: hero-settle 2.6s var(--ease) both; }
.hero__inner > * { animation: rise 1.1s var(--ease) both; }
.hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.hero__inner > :nth-child(3) { animation-delay: 0.16s; }
.hero__inner > :nth-child(4) { animation-delay: 0.24s; }
.hero__inner > :nth-child(5) { animation-delay: 0.32s; }

@keyframes hero-settle {
  from { transform: scale(1.08); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes rise {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes flow { to { stroke-dashoffset: -26; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(58, 208, 124, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(58, 208, 124, 0.06); }
}

.ticker:hover .ticker__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker__track span:nth-child(n + 11) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
