/* Kronos Controls — kronoshvac.com
   Mobile-first. Colours and type match the KCL Connect app. */

:root {
  --brown: #302112;
  --brown-deep: #261A0E;
  --brown-line: #45331F;
  --ink: #231A12;
  --orange: #E9983F;
  --page: #F5F4F0;
  --tint: #EFE9DF;
  --cream: #FEF8F0;
  --gold: #E9CB90;
  --band: #F3E6D0;
  --eyebrow: #8A5114;
  --text-2: #4F463C;
  --text-3: #696055;
  --on-dark: #F5EFE6;
  --on-dark-2: #CFC3B3;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: -apple-system, "Segoe UI", system-ui, sans-serif;
  --header-h: 68px;
  --shadow: 0 18px 40px -18px rgba(48, 33, 18, 0.55);
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.14;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 2.875rem); letter-spacing: 0.005em; }
h2 { font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.625rem); }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }

a { color: var(--eyebrow); }
a:hover { color: var(--brown); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.cta :focus-visible, .section-band :focus-visible { outline-color: var(--brown); }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 12px 16px; background: var(--orange); color: var(--ink);
  font-weight: 600; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--eyebrow);
}
.eyebrow-on-dark { color: var(--orange); }

.body-lg { font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 4px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-lg { min-height: 52px; padding: 10px 28px; font-size: 1.0625rem; }
.btn-xl { min-height: 56px; padding: 10px 30px; font-size: 1.125rem; }
.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: #F0A957; color: var(--ink); }
.btn-outline { border-color: #8A745C; color: var(--on-dark); }
.btn-outline:hover { border-color: var(--on-dark); color: #fff; }
.btn-dark { background: var(--brown); color: #fff; }
.btn-dark:hover { background: #45331F; color: #fff; }
.btn-cream { background: var(--cream); color: var(--brown); }
.btn-cream:hover { background: #fff; color: var(--brown); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brown); color: var(--on-dark);
  border-bottom: 1px solid var(--brown-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; padding: 0;
  background: none; border: 0; border-radius: 4px; color: var(--on-dark); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: flex; flex-direction: column; width: 100%; padding: 4px 0 20px; }
.site-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  color: var(--on-dark); text-decoration: none; font-weight: 500;
  border-top: 1px solid var(--brown-line);
}
.site-nav a:not(.btn):hover { color: var(--orange); }
.nav-cta { margin-top: 12px; }

/* With JS: collapse the menu behind the hamburger on small screens */
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: flex; }

/* Photo and screenshot presentation */
.photo-frame { position: relative; }
.photo-frame::before {
  content: ""; position: absolute; z-index: 0;
  top: 14px; left: 14px; right: -10px; bottom: -10px;
  border: 2px solid var(--gold); border-radius: 6px;
}
.photo-frame-dark::before { border-color: var(--orange); opacity: 0.85; }
.photo-frame img {
  position: relative; z-index: 1; width: 100%; object-fit: cover;
  border-radius: 6px; box-shadow: var(--shadow); background: #3D2C1C;
}

.screen { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.screen-window {
  display: block; position: relative; padding-top: 26px;
  background: var(--brown); border: 1px solid var(--brown-line); border-radius: 8px;
  overflow: hidden; box-shadow: var(--shadow);
}
.screen-window::before {   /* window bar */
  content: ""; position: absolute; top: 9px; left: 12px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); box-shadow: 14px 0 0 #8A745C, 28px 0 0 #8A745C;
}
.screen img { width: 100%; background: #fff; }
.screen figcaption { font-size: 0.875rem; line-height: 1.5; color: var(--text-3); }
.section-dark .screen-window { border-color: #6B5640; background: var(--brown-deep); }
.section-dark .screen figcaption { color: var(--on-dark-2); }

/* Hero */
.hero { background: var(--brown); color: var(--on-dark); padding: 48px 0 60px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero .lead { font-size: 1.125rem; line-height: 1.6; color: var(--on-dark-2); max-width: 35em; }
.hero .btn-row { padding-top: 6px; }
.hero .photo-frame { margin-right: 10px; }
.hero .photo-frame img { aspect-ratio: 3 / 2; }

/* Platforms strip */
.platforms { background: var(--brown-deep); color: var(--on-dark-2); border-top: 1px solid var(--brown-line); padding: 22px 0; }
.platforms-inner { display: flex; flex-direction: column; gap: 10px; }
.platforms-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.platform-list { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark); }

/* Sections */
.section { padding: 64px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 800px; margin-bottom: 36px; }
.stack { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.split { display: grid; gap: 36px; align-items: center; }
.split > * { min-width: 0; }
.section-tint { background: var(--tint); border-top: 1px solid #E2D8C6; border-bottom: 1px solid #E2D8C6; }

.section-dark { background: var(--brown); color: var(--on-dark); }
.section-dark .body-lg { color: var(--on-dark-2); }

/* Service cards */
.cards { display: grid; gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px;
  background: var(--cream); border: 1px solid var(--gold); border-radius: 6px;
}
.card svg { color: var(--brown); }
.card p { color: var(--text-3); }
.card-link {
  margin-top: auto; padding-top: 6px; align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--eyebrow);
}
.card-link::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.card-link:hover { color: var(--brown); text-decoration: underline; }

/* Chips and check lists */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 14px; border: 1px solid #6B5640; border-radius: 4px;
  font-weight: 600; font-size: 0.9375rem; color: var(--on-dark); background: rgba(255, 255, 255, 0.04);
}
.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em;
  width: 14px; height: 8px; border-left: 2.5px solid var(--eyebrow); border-bottom: 2.5px solid var(--eyebrow);
  transform: rotate(-45deg);
}
.check-list-on-dark li { color: var(--on-dark); font-weight: 400; }
.check-list-on-dark li::before { border-color: var(--orange); }

/* Feature lists (icon + heading + text) */
.features { display: grid; gap: 24px; }
.features li { display: flex; gap: 18px; align-items: flex-start; }
.features svg { flex-shrink: 0; margin-top: 2px; color: var(--eyebrow); }
.features h3 { margin-bottom: 4px; }
.features p { color: var(--text-3); }

/* Energy */
.energy-media { display: grid; gap: 36px; margin-top: 44px; align-items: start; }
.energy-media .photo-frame { margin-right: 10px; }
.energy-media .photo-frame img { aspect-ratio: 1; object-position: 50% 88%; }

/* Retrofit */
.retrofit-intro { display: grid; gap: 8px; margin-bottom: 36px; }
.retrofit-intro .section-head { margin-bottom: 16px; }
.retrofit-copy { display: flex; flex-direction: column; gap: 18px; font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery li {
  display: block; position: relative; overflow: hidden;
  border-radius: 6px; border: 1px solid var(--gold); background: #D9CFBF;
  box-shadow: 0 10px 24px -16px rgba(48, 33, 18, 0.6);
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Service agreements */
.section-band { background: var(--band); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.steps { background: var(--cream); border: 1px solid var(--gold); border-radius: 6px; }
.steps li { display: flex; gap: 18px; padding: 24px; }
.steps li + li { border-top: 1px solid #F0E2C8; }
.step-num { padding-top: 3px; font-size: 0.9375rem; font-weight: 600; color: var(--eyebrow); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-3); line-height: 1.55; }

/* About */
#about .photo-frame { margin-right: 10px; }
#about .photo-frame img { aspect-ratio: 3 / 2; }

/* CTA */
.cta { background: var(--orange); color: var(--ink); padding: 56px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 28px; }
.cta h2 { font-size: clamp(1.7rem, 1.2rem + 2.6vw, 2.875rem); margin-bottom: 10px; }
.cta p { font-size: 1.125rem; line-height: 1.5; color: #3D2C1C; }

/* Footer */
.site-footer { background: var(--brown); color: var(--on-dark-2); padding: 48px 0 32px; font-size: 0.9375rem; line-height: 1.7; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 6px; }
.footer-head { color: var(--on-dark); font-weight: 600; margin-bottom: 2px; }
.footer-list a { display: inline-block; padding: 3px 0; color: var(--on-dark-2); text-decoration: none; }
.footer-list a:hover { color: var(--orange); text-decoration: underline; }
.footer-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--brown-line); font-size: 0.8125rem; color: #B8A994; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: 28px 32px; }
  .platforms-inner { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 32px; }
}

/* ---------- Two-column layouts ---------- */
@media (min-width: 900px) {
  .wrap { padding: 0 48px; }

  .hero { padding: 84px 0 96px; }
  .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .hero-copy { gap: 26px; }
  .hero .lead { font-size: 1.25rem; }

  .section { padding: 100px 0; }
  .section-head { margin-bottom: 48px; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .split-top { align-items: start; }
  .body-lg { font-size: 1.125rem; }
  .features { gap: 28px; }

  .energy-media { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 64px; margin-top: 64px; }

  .retrofit-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; margin-bottom: 48px; }
  .retrofit-intro .section-head { margin-bottom: 0; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

  .cta { padding: 80px 0; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .cta .btn-row { flex-wrap: nowrap; flex-shrink: 0; }
  .site-footer { padding: 56px 0 32px; }
}

/* ---------- Full desktop: inline navigation, four cards across ---------- */
@media (min-width: 1100px) {
  :root { --header-h: 84px; }
  .js .nav-toggle, .nav-toggle { display: none; }
  .js .site-nav, .site-nav {
    display: flex; flex-direction: row; align-items: center; gap: 26px;
    width: auto; padding: 0;
  }
  .site-nav a:not(.btn) { min-height: 44px; border-top: 0; font-size: 0.9375rem; }
  .nav-cta { margin-top: 0; }
  .brand-name { font-size: 1.3125rem; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1240px) {
  .site-nav { gap: 34px; }
  .site-nav a:not(.btn) { font-size: 1rem; }
}

/* ==========================================================================
   Polish layer: depth, texture, motion. Everything below refines the base
   styles above; delete this block to go back to the plain version.
   ========================================================================== */

h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--orange); color: var(--ink); }

/* Eyebrow labels get a short lead-in rule */
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; flex-shrink: 0; width: 28px; height: 2px; background: currentColor; opacity: 0.75; }

/* Header: translucent, gains a shadow once the page scrolls */
.site-header {
  background: rgba(48, 33, 18, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: box-shadow 0.25s, background-color 0.25s;
}
.site-header.is-scrolled { background: rgba(38, 26, 14, 0.97); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.7); }
.brand svg { color: var(--orange); }

/* Buttons */
.btn { transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { box-shadow: 0 8px 18px -10px rgba(233, 152, 63, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.btn-dark { box-shadow: 0 8px 18px -10px rgba(48, 33, 18, 0.8); }
.btn-cream { box-shadow: 0 8px 18px -10px rgba(48, 33, 18, 0.45); }
.btn-outline { background: rgba(255, 255, 255, 0.03); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

/* Dark surfaces share a faint drafting-grid texture and a warm glow */
.hero, .section-dark, .site-footer { position: relative; isolation: isolate; }
.hero::before, .section-dark::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 239, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 230, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25));
}
.hero {
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(233, 152, 63, 0.20), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(233, 152, 63, 0.07), transparent 60%),
    linear-gradient(180deg, #33230F 0%, #291C0F 100%);
}
.section-dark {
  background:
    radial-gradient(800px 480px at 8% 0%, rgba(233, 152, 63, 0.13), transparent 60%),
    linear-gradient(180deg, #302112 0%, #291C0F 100%);
}

/* Hero */
h1 { font-size: clamp(2.05rem, 1.15rem + 3.7vw, 3.4rem); line-height: 1.08; }
h1 .accent { color: var(--orange); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 22px; margin-top: 6px; border-top: 1px solid rgba(245, 239, 230, 0.14); font-size: 0.9375rem; font-weight: 500; color: var(--on-dark); }
.hero-points li { position: relative; padding-left: 26px; }
.hero-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.36em;
  width: 12px; height: 7px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg);
}

/* Photos */
.photo-frame img { border-radius: 8px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(233, 203, 144, 0.22); }
.photo-frame::before { border-radius: 10px; transition: transform 0.35s ease; }
.photo-frame:hover::before { transform: translate(4px, 4px); }
.photo-tag {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  padding: 7px 12px 7px 11px; border-left: 3px solid var(--orange); border-radius: 0 4px 4px 0;
  background: rgba(38, 26, 14, 0.88); color: var(--on-dark);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.35;
}

/* Screens */
.screen-window {
  padding-top: 30px; border-radius: 10px; border-color: #5A4631;
  background: linear-gradient(180deg, #3D2C1C 0, #302112 30px);
  box-shadow: 0 30px 60px -30px rgba(48, 33, 18, 0.75), 0 0 0 1px rgba(233, 203, 144, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.screen-window::before { top: 11px; left: 14px; }
.screen-window::after {   /* address-bar pill */
  content: ""; position: absolute; top: 9px; left: 64px; right: 14px; height: 12px;
  border-radius: 6px; background: rgba(245, 239, 230, 0.10);
}
.screen:hover .screen-window { transform: translateY(-4px); box-shadow: 0 40px 70px -32px rgba(48, 33, 18, 0.8), 0 0 0 1px rgba(233, 152, 63, 0.5); }
.screen figcaption { padding-left: 14px; border-left: 2px solid var(--gold); }
.section-dark .screen figcaption { border-left-color: var(--orange); }

/* Platforms strip */
.platforms { background: #21160B; border-bottom: 1px solid #000; }
.platform-list { gap: 6px 22px; }
.platform-list li { display: inline-flex; align-items: center; }
@media (min-width: 900px) {   /* diamond separators only where the names sit on one line */
  .platform-list { gap: 8px 0; }
  .platform-list li + li::before { content: ""; width: 6px; height: 6px; margin: 0 16px; background: var(--orange); transform: rotate(45deg); opacity: 0.85; }
}

/* Section rhythm */
.section-head h2 { position: relative; }
.section-tint { background: linear-gradient(180deg, #F1EBE1 0%, #EBE3D6 100%); }
.section-band { background: linear-gradient(180deg, #F5E9D5 0%, #EFDFC4 100%); }

/* Cards */
.card {
  position: relative; overflow: hidden; border-radius: 8px; padding: 28px 26px 22px;
  background: linear-gradient(180deg, #FFFBF5 0%, #FCF3E6 100%);
  box-shadow: 0 14px 30px -24px rgba(48, 33, 18, 0.55), inset 0 1px 0 #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--orange), #F3C27A);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: #DDB56E; box-shadow: 0 26px 44px -26px rgba(48, 33, 18, 0.6), inset 0 1px 0 #fff; }
.card:hover::before { transform: scaleX(1); }
.card > svg, .features li > svg {
  box-sizing: content-box; padding: 10px; border-radius: 8px;
  background: linear-gradient(135deg, #FBEACB 0%, #F3D49B 100%);
  border: 1px solid var(--gold); color: var(--brown);
}
.card > svg { margin-bottom: 4px; }
.card h3 { font-size: 1.125rem; }

/* Feature lists */
.features li { padding-bottom: 24px; border-bottom: 1px solid rgba(138, 81, 20, 0.16); }
.features li:last-child { padding-bottom: 0; border-bottom: 0; }
.features li > svg { margin-top: 0; }

/* Chips */
.chips li { transition: border-color 0.2s, background-color 0.2s; }
.chips li:hover { border-color: var(--orange); background: rgba(233, 152, 63, 0.12); }

/* Gallery */
.gallery li { border-radius: 8px; position: relative; }
.gallery li::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 -60px 60px -50px rgba(38, 26, 14, 0.55); }
.gallery img { height: 100%; transition: transform 0.5s ease; }
.gallery li:hover img { transform: scale(1.05); }

/* Steps */
.steps { border-radius: 8px; box-shadow: 0 24px 44px -30px rgba(48, 33, 18, 0.6); overflow: hidden; }
.steps li { align-items: flex-start; transition: background-color 0.2s; }
.steps li:hover { background: #FFFCF7; }
.step-num {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: var(--brown); color: var(--orange); font-size: 0.875rem; letter-spacing: 0.04em;
}

/* CTA */
.cta {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(48, 33, 18, 0.045) 0 2px, transparent 2px 16px),
    linear-gradient(120deg, #E9983F 0%, #F0AC57 100%);
  border-top: 1px solid #F6C583;
}

/* Footer */
.site-footer { border-top: 3px solid var(--orange); background: #291C0F; }

/* Outcomes: the four reasons, straight after the hero */
.section-outcomes { background: linear-gradient(180deg, #FBF6EC 0%, var(--page) 100%); }
.outcomes { display: grid; gap: 18px; }
.outcomes li {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 26px;
  background: #fff; border: 1px solid var(--gold); border-top: 4px solid var(--orange); border-radius: 8px;
  box-shadow: 0 18px 36px -26px rgba(48, 33, 18, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.outcomes li:hover { transform: translateY(-5px); box-shadow: 0 28px 46px -26px rgba(48, 33, 18, 0.65); }
.outcomes svg { color: var(--eyebrow); }
.outcomes h3 { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.2; }
.outcomes p { color: var(--text-2); }

/* Dark callout panel */
.callout {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  padding: 30px 28px; border-radius: 10px; color: var(--on-dark);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(233, 152, 63, 0.22), transparent 65%),
    linear-gradient(180deg, #33230F 0%, #291C0F 100%);
  border: 1px solid #5A4631; box-shadow: var(--shadow);
}
.callout h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--orange); }

/* Contact section: intro on the left, request form on the right */
.contact-grid { display: grid; gap: 36px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact-intro h2 { margin-bottom: 0; }
.contact-points { display: grid; gap: 10px; margin-top: 8px; font-weight: 500; color: var(--ink); }
.contact-points li { position: relative; padding-left: 28px; }
.contact-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em;
  width: 13px; height: 7px; border-left: 2.5px solid var(--brown); border-bottom: 2.5px solid var(--brown);
  transform: rotate(-45deg);
}

.request-form {
  display: flex; flex-direction: column; gap: 16px; padding: 26px 22px;
  background: var(--cream); border: 1px solid #F6D9A8; border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(48, 33, 18, 0.7);
}
.request-form h3 { font-family: var(--display); font-weight: 700; font-size: 1.375rem; text-transform: uppercase; letter-spacing: 0.02em; }
.form-note { margin-top: -8px; font-size: 0.875rem; color: var(--text-3); }
.field-row { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #D8C7A6; border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B99A63; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--eyebrow); box-shadow: 0 0 0 3px rgba(233, 152, 63, 0.35);
}
.field.has-error input, .field.has-error textarea { border-color: #A3301C; }
.field-error { font-size: 0.875rem; font-weight: 500; color: #A3301C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-form .btn { align-self: flex-start; cursor: pointer; }
.request-form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-ok { padding: 12px 14px; border-radius: 6px; background: #E5F1E1; color: #1F5A2A; border: 1px solid #A9CFA6; }
.form-status.is-error { padding: 12px 14px; border-radius: 6px; background: #FBE7E2; color: #8C2413; border: 1px solid #E5B1A6; }

@media (min-width: 640px) {
  .request-form { padding: 32px; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
  .contact-intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Company logo: mark in the header, full logo in the footer (light versions for the dark background) */
.brand-mark { height: 40px; width: auto; flex-shrink: 0; }
.footer-logo { width: 190px; height: auto; margin-bottom: 16px; }
@media (min-width: 900px) { .brand-mark { height: 46px; } }

/* Contact links in the footer */
.site-footer p a { display: inline-block; padding: 2px 0; color: var(--on-dark-2); text-decoration: none; }
.site-footer p a:hover { color: var(--orange); text-decoration: underline; }

/* License line in the footer */
.license-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 12px;
  border: 1px solid #6B5640; border-radius: 4px; color: var(--on-dark); font-weight: 600; font-size: 0.875rem;
}
.license-badge svg { color: var(--orange); flex-shrink: 0; }

@media (min-width: 640px) {
  .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (min-width: 1100px) {
  .outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* eight controls services: two rows of four */
}

/* ---------- Service groups ---------- */
.group-label {
  display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  font-family: var(--body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--eyebrow);
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.cards + .group-label { margin-top: 48px; }
.card-wide {
  display: grid; overflow: hidden; border-radius: 8px; text-decoration: none; color: var(--on-dark);
  background: linear-gradient(135deg, #3A2814 0%, #291C0F 100%); border: 1px solid #5A4631; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-wide:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -24px rgba(48, 33, 18, 0.75); }
.card-wide img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-wide-body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 26px 24px 28px; }
.card-wide-body strong { font-family: var(--display); font-weight: 700; font-size: 1.3125rem; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; }
.card-wide-body > span { color: var(--on-dark-2); }
.card-wide .card-link { color: var(--orange); }
.card-wide:hover .card-link { color: var(--orange); text-decoration: underline; }

/* ---------- Overlapping screens ---------- */
.screen-column { display: grid; gap: 30px; min-width: 0; }
.screen-stack { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
.screen-stack > .screen-window { grid-row: 1; grid-column: 1 / 12; }
.screen-stack > .screen-float {
  grid-column: 6 / 13; align-self: end; z-index: 2; margin-bottom: -11%;
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(233, 152, 63, 0.55);
}
.screen-stack figcaption { grid-column: 1 / -1; margin-top: calc(11% + 18px); }
.screen-stack-left > .screen-window { grid-column: 2 / 13; }
.screen-stack-left > .screen-float { grid-column: 1 / 8; }
.screen-stack-left { padding-bottom: 11%; }

/* ---------- Mechanical services ---------- */
.mech-intro { display: grid; gap: 8px; margin-bottom: 40px; }
.mech-intro .section-head { margin-bottom: 12px; }
.mech-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.mech-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mech-gallery li {
  position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(233, 203, 144, 0.22), 0 24px 44px -26px rgba(0, 0, 0, 0.8);
}
.mech-gallery li::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -70px 60px -50px rgba(20, 13, 7, 0.7); }
.mech-gallery .mech-wide, .mech-gallery li:last-child { grid-column: span 2; aspect-ratio: 3 / 2; }
.mech-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mech-gallery li:hover img { transform: scale(1.04); }
.mech-gallery .photo-tag { left: 12px; bottom: 12px; }

@media (min-width: 640px) {
  .card-wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .card-wide img { aspect-ratio: auto; position: absolute; inset: 0; }
  .card-wide { position: relative; }
  .card-wide::before { content: ""; grid-column: 1; grid-row: 1; min-height: 220px; }
  .card-wide img { width: 40%; }
  .card-wide-body { grid-column: 2; padding: 34px 36px; justify-content: center; }
}
@media (min-width: 900px) {
  .mech-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 56px; }
  .mech-intro .section-head { margin-bottom: 0; }
  .mech-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .mech-gallery .mech-wide { grid-column: span 3; aspect-ratio: 3 / 2; }
  .mech-gallery li, .mech-gallery li:last-child { grid-column: span 2; aspect-ratio: 1; }
}

/* Scroll reveal (added by js/main.js; no JS = everything simply visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .hero { padding: 96px 0 108px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; }
  .section-head { margin-bottom: 56px; }

  /* Gallery becomes a mixed-size grid: one large photo, one wide photo */
  .gallery { grid-auto-flow: dense; }
  .gallery li { aspect-ratio: 1; }
  .gallery img { aspect-ratio: auto; }
  .gallery li:nth-child(3) { grid-column: span 2; grid-row: span 2; }
  .gallery li:nth-child(7) { grid-column: span 2; aspect-ratio: auto; }
  .gallery li:nth-child(7) img { position: absolute; inset: 0; }   /* takes its height from the row, not the photo */
}

@media (min-width: 1100px) {
  /* Nav links: underline that draws in */
  .site-nav a:not(.btn) { position: relative; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
  }
  .site-nav a:not(.btn):hover::after, .site-nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
  .site-nav a:not(.btn):hover { color: #fff; }
}

/* ---------- Lighting and motion ---------- */

/* Reading-progress line under the header */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none;
  transform: scaleX(var(--progress, 0)); transform-origin: left;
  background: linear-gradient(90deg, #E9983F, #FFD79A); box-shadow: 0 0 12px rgba(233, 152, 63, 0.9);
}
/* Warm light that follows the pointer across dark sections */
.hero::after, .section-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s ease;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 196, 120, 0.13), transparent 65%);
}
.hero.is-lit::after, .section-dark.is-lit::after { opacity: 1; }
/* Buttons: a light sweep on hover */
.btn-accent { position: relative; overflow: hidden; }
.btn-accent::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); transition: left 0.6s ease;
}
.btn-accent:hover::after { left: 125%; }
/* Photos and cards: light on hover */
.mech-gallery li::before, .gallery li::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: linear-gradient(135deg, rgba(255, 236, 205, 0.28) 0%, transparent 45%);
}
.mech-gallery li:hover::before, .gallery li:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 26px 44px -26px rgba(48, 33, 18, 0.6), 0 0 0 1px rgba(233, 152, 63, 0.55), 0 0 34px -14px rgba(233, 152, 63, 0.6); }
.outcomes svg { filter: drop-shadow(0 0 9px rgba(233, 152, 63, 0.5)); }
.screen-window { box-shadow: 0 30px 60px -30px rgba(48, 33, 18, 0.75), 0 0 0 1px rgba(233, 203, 144, 0.25), 0 0 60px -20px rgba(255, 214, 150, 0.45); }

/* Hero photo runs out toward the right edge of the screen on wide displays */
@media (min-width: 1240px) {
  .hero .hero-photo { margin-right: clamp(-170px, calc(624px - 50vw), 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .screen:hover .screen-window { transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  }
