/* ==========================================================================
   Anmol Star Rice Engineering — stylesheet
   Design tokens live on :root. Section themes (.theme-dark, .theme-steel,
   .theme-light) remap surface and text tokens so sections can alternate.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #071321;
  --steel-900: #10273B;
  --steel-800: #16364D;
  --orange: #FF792E;
  --orange-hover: #FF9158;
  --orange-ink: #B9400A;      /* orange text on light backgrounds (AA contrast) */
  --warm: #F3F0E9;
  --silver: #C5CED6;
  --muted: #9AABBA;

  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --section-y: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::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;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--navy-950);
  color: var(--warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }

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

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  background: var(--orange); color: var(--navy-950);
  padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Section themes ---------- */
.theme-dark {
  --bg: var(--navy-950); --text: var(--warm); --text-2: var(--muted);
  --line: rgba(197, 206, 214, .14); --eyebrow: var(--orange);
  background: var(--bg); color: var(--text);
}
.theme-steel {
  --bg: var(--steel-900); --text: var(--warm); --text-2: var(--muted);
  --line: rgba(197, 206, 214, .16); --eyebrow: var(--orange);
  background: var(--bg); color: var(--text);
}
.theme-light {
  --bg: var(--warm); --text: var(--navy-950); --text-2: #4A5D6E;
  --line: rgba(7, 19, 33, .14); --eyebrow: var(--orange-ink);
  background: var(--bg); color: var(--text);
}

.section { position: relative; padding-block: var(--section-y); }

.section-head {
  display: grid; gap: 20px;
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head p { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 60ch; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 600 .74rem/1.2 var(--font-head);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }

.accent { color: var(--orange); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 2px;
  font: 600 .95rem/1.2 var(--font-body);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--navy-950); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: rgba(243, 240, 233, .32); color: var(--warm); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .88rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--orange); font: 600 .9rem/1.2 var(--font-body);
  text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, gap .3s var(--ease);
}
.text-link:hover { border-bottom-color: currentColor; gap: 14px; }
.theme-light .text-link { color: var(--orange-ink); }

.theme-light .btn-ghost { border-color: rgba(7, 19, 33, .3); color: var(--navy-950); }
.theme-light .btn-ghost:hover { border-color: var(--orange-ink); color: var(--orange-ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 19, 33, .96);
  border-bottom-color: rgba(197, 206, 214, .12);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--warm); text-decoration: none;
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--orange); border-radius: 2px;
  font: 700 .95rem/1 var(--font-head);
  letter-spacing: .02em; color: var(--orange);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
/* Logo: transparent PNG, shown at its natural proportions (no plate, no recolouring). */
.brand-logo { display: block; flex: none; height: 68px; width: auto; }
.site-footer .brand-logo { height: 76px; }
.brand-name { font: 700 .95rem/1 var(--font-head); letter-spacing: .14em; }
.brand-sub {
  margin-top: 6px;
  font: 500 .6rem/1 var(--font-body);
  letter-spacing: .32em; color: var(--silver);
}

.header-inner > .brand { margin-right: auto; }


.primary-nav ul {
  list-style: none;
  display: flex; gap: clamp(14px, 1.8vw, 26px);
}
.primary-nav a {
  position: relative; display: inline-block;
  padding: 10px 0;
  color: var(--silver); text-decoration: none;
  font: 500 .9rem/1 var(--font-body);
  transition: color .25s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="true"] { color: var(--warm); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.primary-nav .nav-cta-item { display: none; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: 1px solid rgba(197, 206, 214, .24); border-radius: 2px;
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--warm);
  transition: transform .35s var(--ease), opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.header-cta { flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  background:
    radial-gradient(900px 520px at 80% 38%, rgba(22, 54, 77, .85), transparent 70%),
    var(--navy-950);
  color: var(--warm);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(197, 206, 214, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 206, 214, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted); line-height: 1.65; max-width: 52ch;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 2.25rem;
}

.hero-visual {
  margin: 0; position: relative;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid rgba(197, 206, 214, .14);
  background: linear-gradient(160deg, rgba(22, 54, 77, .5), rgba(7, 19, 33, .2));
}
.hero-visual svg { width: 100%; height: auto; }
.hero-visual figcaption {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 14px;
  font: 500 .68rem/1.4 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Credibility strip ---------- */
.strip {
  background: var(--steel-900);
  border-top: 1px solid rgba(197, 206, 214, .1);
  border-bottom: 1px solid rgba(197, 206, 214, .1);
  color: var(--warm);
}
.strip-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strip-list li {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px;
  border-left: 1px solid rgba(197, 206, 214, .14);
}
.strip-list li:first-child { border-left: 0; padding-left: 0; }
.strip-label {
  font: 600 .66rem/1 var(--font-body);
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.strip-value { font: 600 1.1rem/1.25 var(--font-head); color: var(--warm); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-copy { display: grid; gap: 1.1rem; }
.about-title { margin-bottom: .5rem; }
.about-copy > p:not(.eyebrow) {
  color: var(--text-2); font-size: 1.05rem; line-height: 1.75; max-width: 62ch;
}
.about-copy > p:nth-of-type(1) { color: var(--text); font-size: 1.15rem; }
.about-copy .text-link { justify-self: start; }

.spec-panel {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--navy-950); color: var(--warm);
  border-top: 2px solid var(--orange);
}
.spec-panel .eyebrow { color: var(--orange); }
.spec-year {
  margin: 14px 0 0;
  font: 700 clamp(4.5rem, 10vw, 7.5rem)/.9 var(--font-head);
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--silver);
}
.spec-list { margin: 32px 0 0; border-top: 1px solid rgba(197, 206, 214, .16); }
.spec-list > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(197, 206, 214, .12);
}
.spec-list dt { color: var(--muted); font-size: .92rem; }
.spec-list dd { margin: 0; font-weight: 500; font-size: .98rem; }

/* ---------- Services ---------- */
.service-list {
  list-style: none;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  counter-reset: none;
}
.service-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease);
}
.service-item:nth-child(odd) { padding-right: 44px; border-right: 1px solid var(--line); }
.service-item:nth-child(even) { padding-left: 44px; }
.service-item:hover {
  background: linear-gradient(90deg, rgba(255, 121, 46, .06), transparent 72%);
}
.service-icon { padding-top: 4px; }
.service-icon svg {
  width: 40px; height: 40px;
  fill: none; stroke: var(--silver); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .35s var(--ease), transform .45s var(--ease);
}
.service-item:hover .service-icon svg { stroke: var(--orange); transform: translateX(4px); }
.service-num {
  display: block; margin-bottom: 10px;
  font: 500 .75rem/1 var(--font-head); letter-spacing: .16em; color: var(--orange);
}
.service-item h3 { margin-bottom: 12px; font-size: 1.4rem; }
.service-item p { color: var(--muted); line-height: 1.65; font-size: .97rem; margin-bottom: 18px; max-width: 56ch; }
.service-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0;
  color: var(--orange); font: 600 .9rem/1.2 var(--font-body); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, gap .3s var(--ease);
}
.service-cta:hover { border-bottom-color: var(--orange); gap: 12px; }

/* ---------- Machinery ---------- */
.machinery-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.machine-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 300px;
  padding: 34px 30px 28px;
  background: var(--bg);
}
.machine-card::before {
  content: ""; position: absolute; left: 30px; top: 0;
  width: 44px; height: 2px; background: var(--orange);
  transition: width .5s var(--ease);
}
.machine-card:hover::before { width: calc(100% - 60px); }
.machine-card .tag {
  font: 600 .68rem/1 var(--font-body);
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.machine-icon svg {
  width: 38px; height: 38px; margin-top: 6px;
  fill: none; stroke: var(--text); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.machine-card h3 { font-size: 1.25rem; }
.machine-card p { color: var(--text-2); line-height: 1.65; font-size: .97rem; max-width: 40ch; }
.machine-card .text-link { margin-top: auto; }

/* ---------- Media tiles (projects & gallery) ---------- */
.media-tile {
  position: relative; display: block;
  width: 100%; margin: 0; padding: 0; border: 0;
  overflow: hidden;
  background: var(--steel-800); color: var(--warm);
  font: inherit; text-align: left; cursor: zoom-in;
}
.media-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.media-tile:hover img { transform: scale(1.035); filter: saturate(1.05); }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(to top, rgba(7, 19, 33, .92), rgba(7, 19, 33, 0));
  font-size: .9rem; font-weight: 500; color: var(--warm);
}

.empty-state {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px;
  min-height: 260px;
  padding: clamp(32px, 5vw, 64px);
  border: 1px dashed rgba(197, 206, 214, .28);
  background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(197, 206, 214, .03) 18px 19px);
}
.theme-light .empty-state { border-color: rgba(7, 19, 33, .25); background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(7, 19, 33, .03) 18px 19px); }
.empty-state strong { font: 600 1.3rem/1.2 var(--font-head); letter-spacing: -.01em; }
.empty-state p { color: var(--text-2); max-width: 52ch; line-height: 1.65; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px);
}
.project-grid .media-tile { grid-column: span 6; aspect-ratio: 4 / 3; }

/* ---------- Gallery (masonry via CSS columns) ---------- */
.gallery-grid { column-count: 3; column-gap: 18px; }
.gallery-grid .media-tile { display: block; break-inside: avoid; margin-bottom: 18px; }
.gallery-grid .media-tile img { height: auto; }
.gallery-grid .empty-state { column-span: all; }

/* ---------- Videos ---------- */
.video-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px);
}
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; }
.video-card h3 { margin: 18px 0 6px; font-size: 1.15rem; }
.video-card p { color: var(--text-2); font-size: .95rem; line-height: 1.6; }
.video-thumb {
  position: relative; display: block;
  width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--steel-800), var(--navy-950));
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video-thumb:hover img { transform: scale(1.03); }
.play-icon {
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--orange);
  transition: transform .35s var(--ease);
}
.play-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  border-left: 20px solid var(--navy-950);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.video-thumb:hover .play-icon { transform: scale(1.08); }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.why-grid h2 { margin: 20px 0 18px; }
.why-intro { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 44ch; }
.why-list { list-style: none; }
.why-list li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list .n {
  padding-top: 6px;
  font: 500 .8rem/1 var(--font-head); letter-spacing: .08em; color: var(--orange);
}
.why-list h3 { margin-bottom: 8px; font-size: 1.2rem; }
.why-list p { color: var(--muted); line-height: 1.65; font-size: .97rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-grid h2 { margin: 20px 0 18px; }
.contact-intro { color: var(--text-2); font-size: 1.05rem; line-height: 1.7; max-width: 52ch; margin-bottom: 36px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list dt { color: var(--text-2); font-size: .92rem; padding-top: 2px; }
.contact-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.contact-list a:hover { border-bottom-color: currentColor; color: var(--orange-ink); }

.contact-panel {
  padding: clamp(28px, 4vw, 48px);
  background: var(--navy-950); color: var(--warm);
  border-top: 2px solid var(--orange);
}
.contact-panel .eyebrow { color: var(--orange); margin-bottom: 1.25rem; }
.contact-panel h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.contact-panel p { color: var(--muted); line-height: 1.7; margin-bottom: 32px; max-width: 46ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: var(--silver);
  border-top: 1px solid rgba(197, 206, 214, .1);
  padding-top: 72px;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.footer-brand p { margin-top: 22px; color: var(--muted); max-width: 40ch; line-height: 1.7; font-size: .95rem; }
.footer-heading {
  margin-bottom: 18px;
  font: 600 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.footer-nav ul, .footer-contact ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a, .footer-contact a { color: var(--silver); text-decoration: none; transition: color .25s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--orange); }
.footer-contact li { overflow-wrap: anywhere; }
.footer-bottom {
  margin-top: 64px; padding-block: 26px 32px;
  border-top: 1px solid rgba(197, 206, 214, .1);
  color: var(--muted); font-size: .86rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px 0 16px;
  background: var(--orange); color: var(--navy-950);
  border-radius: 26px;
  font: 600 .92rem/1 var(--font-body); text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease), background-color .3s;
}
.wa-float:hover { background: var(--orange-hover); transform: translateY(-2px); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1200px, calc(100vw - 32px));
  max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--warm);
}
.lightbox::backdrop { background: rgba(7, 19, 33, .93); }
.lightbox[open] { display: block; }
.lightbox-inner { display: flex; flex-direction: column; gap: 14px; }
.lightbox-bar { display: flex; justify-content: flex-end; }
.lightbox-close {
  min-height: 42px; padding: 0 18px;
  background: transparent; color: var(--warm);
  border: 1px solid rgba(197, 206, 214, .36); border-radius: 2px;
  font: 600 .9rem/1 var(--font-body); cursor: pointer;
}
.lightbox-close:hover { border-color: var(--orange); color: var(--orange); }
#lightbox-img {
  width: auto; height: auto;
  max-width: 100%; max-height: 78vh;
  margin: 0 auto; object-fit: contain;
}
.lightbox-caption { color: var(--silver); font-size: .95rem; line-height: 1.6; max-width: 80ch; }

/* ---------- Reveal motion (only when JS is available) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet & below: compact navigation drawer */
@media (max-width: 1079px) {
  .header-cta { display: none; }
  .brand-logo { height: 58px; }
  .menu-toggle { display: inline-flex; }

  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 40px;
    background: var(--navy-950);
    border-top: 1px solid rgba(197, 206, 214, .1);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a {
    display: block; padding: 18px 0;
    border-bottom: 1px solid rgba(197, 206, 214, .12);
    font: 600 1.5rem/1.1 var(--font-head); letter-spacing: -.01em;
  }
  .primary-nav a::after { display: none; }
  .primary-nav a[aria-current="true"] { color: var(--orange); }
  .primary-nav .nav-cta-item { display: block; margin-top: 28px; }
  .primary-nav a.btn {
    display: flex; width: 100%; min-height: 56px; padding: 0 22px;
    border: 0; border-radius: 2px;
    font: 600 1rem/1.2 var(--font-body); letter-spacing: 0;
    color: var(--navy-950);
  }
  .primary-nav a.btn:hover { color: var(--navy-950); background: var(--orange-hover); }
}

@media (max-width: 960px) {
  .hero-inner, .about-grid, .why-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: 2; }
  .hero { padding-bottom: 64px; }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .service-item:nth-child(n) { padding: 32px 0; border-right: 0; }
  .service-item:nth-child(even) { padding-left: 0; }
  .machinery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { column-count: 2; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-list li:nth-child(n + 3) { border-top: 1px solid rgba(197, 206, 214, .14); }
  .project-grid .media-tile { grid-column: span 12; aspect-ratio: 4 / 3; }
  .project-grid .media-tile:nth-child(5n + 1) { aspect-ratio: 4 / 3; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  /* Mobile type & spacing scale: keeps headings proportionate on phones */
  h1 { font-size: 2.2rem; line-height: 1.1; }
  h2 { font-size: 1.75rem; line-height: 1.12; }
  h3 { font-size: 1.1rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .16em; gap: 10px; }
  .eyebrow::before { width: 22px; }
  .hero .lead { font-size: .98rem; line-height: 1.6; }
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 48px; min-height: auto; }
  .hero h1 { margin-bottom: 1.1rem; }
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero-actions { margin-top: 1.5rem; gap: 10px; }
  .btn { min-height: 46px; padding: 0 18px; font-size: .9rem; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 32px; gap: 14px; }
  .section-head p, .contact-intro, .about-copy > p:not(.eyebrow) { font-size: .95rem; line-height: 1.65; }
  .about-copy > p:nth-of-type(1) { font-size: 1.02rem; }
  .spec-year { font-size: 4rem; }
  .service-item { padding: 26px 0; }
  .service-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .service-item p { font-size: .9rem; margin-bottom: 12px; }
  .service-cta { font-size: .85rem; }
  .machine-card { padding: 24px 20px; gap: 10px; }
  .machine-card p { font-size: .9rem; }
  .why-list li { padding: 20px 0; }
  .why-list h3 { font-size: 1.05rem; }
  .why-list p, .video-card p { font-size: .9rem; }
  .why-intro { font-size: .95rem; }
  .contact-panel { padding: 24px 20px; }
  .contact-panel h3 { font-size: 1.4rem; }
  .contact-panel p { font-size: .92rem; margin-bottom: 22px; }
  .strip-value { font-size: 1rem; }
  .empty-state { min-height: 200px; padding: 24px; }
  .empty-state strong { font-size: 1.1rem; }
  .footer-brand p { font-size: .9rem; }
  .footer-bottom { margin-top: 40px; }
  .brand-logo { height: 54px; }
  .site-footer .brand-logo { height: 64px; }
  .machinery-grid { grid-template-columns: minmax(0, 1fr); }
  .machine-card { min-height: 0; padding: 30px 24px 26px; }
  .machine-card::before { left: 24px; }
  .machine-card:hover::before { width: calc(100% - 48px); }
  .gallery-grid { column-count: 1; }
  .strip-list { grid-template-columns: minmax(0, 1fr); }
  .strip-list li, .strip-list li:nth-child(3) { padding: 20px 0; border-left: 0; }
  .strip-list li:nth-child(n + 2) { border-top: 1px solid rgba(197, 206, 214, .14); }
  .hero-actions .btn { width: 100%; }
  .spec-list > div, .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-bottom { font-size: .8rem; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-label { display: none; }
  .why-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .service-item { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .service-icon svg { width: 34px; height: 34px; }
}

@media (max-width: 420px) {
  .brand-logo { height: 50px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Modern mobile navigation drawer (overrides the base drawer rules)
   ========================================================================== */
.nav-foot { display: none; }

@media (max-width: 1079px) {
  .primary-nav {
    display: flex; flex-direction: column;
    background:
      radial-gradient(120% 55% at 100% 0%, rgba(22, 54, 77, .7), transparent 60%),
      var(--navy-950);
    padding: 6px var(--gutter) 28px;
  }

  .primary-nav ul a:not(.btn) {
    display: flex; align-items: center; gap: 16px;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(197, 206, 214, .1);
    font: 500 1.2rem/1.2 var(--font-head); letter-spacing: -.005em;
    color: var(--silver);
    transition: color .25s, padding-left .35s var(--ease);
  }
  .primary-nav ul a:not(.btn)::after {
    content: "\2192";
    position: static; display: block; margin-left: auto;
    height: auto; background: none;
    font: 400 1.1rem/1 var(--font-body); color: var(--orange);
    opacity: 0; transform: translateX(-8px);
    transition: opacity .3s var(--ease), transform .35s var(--ease);
  }
  .primary-nav ul a:not(.btn):hover,
  .primary-nav ul a:not(.btn):focus-visible,
  .primary-nav ul a:not(.btn)[aria-current="true"] { color: var(--warm); padding-left: 10px; }
  .primary-nav ul a:not(.btn):hover::after,
  .primary-nav ul a:not(.btn):focus-visible::after,
  .primary-nav ul a:not(.btn)[aria-current="true"]::after { opacity: 1; transform: none; }

  .primary-nav .nav-cta-item { margin-top: 26px; }
  .primary-nav a.btn { min-height: 58px; border-radius: 2px; font-size: 1.02rem; }

  .nav-foot {
    display: grid; gap: 6px;
    margin-top: auto; padding-top: 22px;
    font-size: .9rem; color: var(--muted);
  }
  .nav-foot a {
    color: var(--warm); text-decoration: none; font-weight: 500; font-size: .98rem;
    overflow-wrap: anywhere;
  }
  .nav-foot a:hover { color: var(--orange); }
  .nav-foot .foot-note { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
  .nav-foot .p-line { margin: 0; line-height: 1.5; }

  .primary-nav.is-open li:not(.nav-cta-item) { animation: navIn .55s var(--ease) both; }
.primary-nav.is-open li:nth-child(1) { animation-delay: 85ms; }
.primary-nav.is-open li:nth-child(2) { animation-delay: 130ms; }
.primary-nav.is-open li:nth-child(3) { animation-delay: 175ms; }
.primary-nav.is-open li:nth-child(4) { animation-delay: 220ms; }
.primary-nav.is-open li:nth-child(5) { animation-delay: 265ms; }
.primary-nav.is-open li:nth-child(6) { animation-delay: 310ms; }
.primary-nav.is-open li:nth-child(7) { animation-delay: 355ms; }
.primary-nav.is-open li:nth-child(8) { animation-delay: 400ms; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.contact-label { color: var(--muted); }

/* Phone rows: label + number + person name */
.p-label { color: var(--text-2); }
.p-name { color: var(--text-2); font-weight: 400; font-size: .92em; margin-left: .3em; white-space: nowrap; }
.site-footer .p-name { color: var(--muted); }

/* Location & map */
.map-block { margin-top: 28px; display: grid; gap: 16px; }
.map-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid var(--line); background: var(--bg-2, #E7E2D8); overflow: hidden;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.btn-directions { justify-self: start; }
.contact-list dd[data-bind="address"] { line-height: 1.55; }
.site-footer li[data-bind="address"] { line-height: 1.55; color: var(--muted); }
.site-footer .footer-contact .btn-directions { display: none; }
@media (max-width: 640px) {
  .map-frame { aspect-ratio: 4 / 3; }
  .btn-directions { width: 100%; }
}

/* ---------- Footer contact (modern card list) ---------- */
.site-footer .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1.2fr); }
.fc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.fc-item {
  display: grid; gap: 6px;
  padding: 16px 0;
  border-top: 1px solid rgba(197, 206, 214, .1);
}
.fc-item:first-child { border-top: 0; padding-top: 0; }
.fc-label {
  font: 600 .64rem/1 var(--font-body);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.fc-value {
  color: var(--warm); text-decoration: none;
  font: 500 .98rem/1.5 var(--font-body);
  overflow-wrap: anywhere;
  transition: color .25s;
}
a.fc-value:hover { color: var(--orange); }
.fc-number { font: 600 1.12rem/1.3 var(--font-head); letter-spacing: .005em; width: fit-content; }
.fc-name { color: var(--muted); font-size: .9rem; }
.fc-address { color: var(--silver); max-width: 38ch; }
.fc-link {
  justify-self: start; margin-top: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 121, 46, .45); border-radius: 2px;
  color: var(--orange); font: 600 .84rem/1 var(--font-body); text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s;
}
.fc-link:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-950); }

@media (max-width: 960px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .fc-number { font-size: 1.02rem; }
}

/* ---------- Floating WhatsApp button (modern pill) ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 8px 22px 8px 8px;
  border-radius: 40px;
  background: rgba(16, 39, 59, .94);
  border: 1px solid rgba(255, 121, 46, .35);
  color: var(--warm); text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  transition: transform .35s var(--ease), border-color .3s, background-color .3s;
}
.wa-float:hover { transform: translateY(-2px); border-color: var(--orange); background: var(--steel-800); }
.wa-icon {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--navy-950);
}
.wa-icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(255, 121, 46, .55);
  animation: waPulse 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(.82); opacity: .9; }
  100% { transform: scale(1.3); opacity: 0; }
}
.wa-label { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; white-space: nowrap; }
.wa-label strong { font: 600 .92rem/1.1 var(--font-body); color: var(--warm); }
.wa-label small { font: 500 .74rem/1.1 var(--font-body); color: var(--muted); letter-spacing: .02em; }

/* Mobile: round icon-only button */
@media (max-width: 640px) {
  .wa-float {
    right: 16px; bottom: 16px;
    width: 60px; height: 60px; padding: 8px;
    justify-content: center; border-radius: 50%;
  }
  .wa-label { display: none; }
}

/* ==========================================================================
   Section colour blend and ambient gradients
   ========================================================================== */
main > section { position: relative; }
main > section > .container { position: relative; z-index: 1; }
main > section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: clamp(56px, 9vw, 120px);
  background: linear-gradient(to bottom, var(--blend-from, transparent), transparent);
  pointer-events: none; z-index: 0;
}
section.theme-light:not(.hero) {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(255, 121, 46, .08), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(22, 54, 77, .07), transparent 70%),
    var(--warm);
}
section.theme-dark:not(.hero) {
  background:
    radial-gradient(900px 480px at 0% 100%, rgba(22, 54, 77, .55), transparent 70%),
    radial-gradient(700px 400px at 100% 0%, rgba(255, 121, 46, .05), transparent 70%),
    var(--navy-950);
}
section.theme-steel {
  background:
    radial-gradient(800px 420px at 100% 100%, rgba(255, 121, 46, .06), transparent 70%),
    radial-gradient(700px 500px at 0% 0%, rgba(22, 54, 77, .6), transparent 70%),
    var(--steel-900);
}

/* ==========================================================================
   Compact mobile scale (phones)
   ========================================================================== */
@media (max-width: 640px) {
  .brand-logo { height: 46px; }
  .menu-toggle { width: 40px; height: 40px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1rem; }
  .eyebrow { font-size: .62rem; letter-spacing: .14em; gap: 8px; }
  .eyebrow::before { width: 18px; }

  .hero { padding-top: calc(var(--header-h) + 20px); padding-bottom: 36px; }
  .hero .lead { font-size: .92rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-actions .btn, .btn { min-height: 44px; font-size: .86rem; }
  .hero-visual { padding: 12px; }
  .hero-visual svg { max-height: 220px; width: auto; margin: 0 auto; }
  .hero-visual figcaption { font-size: .58rem; margin-top: 10px; }

  .section { padding-block: 44px; }
  .section-head { margin-bottom: 24px; gap: 10px; }
  .section-head p, .contact-intro, .about-copy > p:not(.eyebrow) { font-size: .88rem; line-height: 1.6; }
  .about-copy > p:nth-of-type(1) { font-size: .95rem; }
  .spec-year { font-size: 3rem; }
  .spec-panel { padding: 22px 20px; }
  .spec-list > div { padding: 12px 0; }
  .strip-list li { padding: 14px 0; }
  .strip-value { font-size: .92rem; }

  .service-item { padding: 20px 0; }
  .service-item h3 { font-size: 1rem; margin-bottom: 6px; }
  .service-item p { font-size: .84rem; margin-bottom: 8px; }
  .service-cta { font-size: .8rem; }
  .service-icon svg { width: 28px; height: 28px; }

  .machine-card { padding: 20px 18px; gap: 8px; min-height: 0; }
  .machine-card h3 { font-size: .98rem; }
  .machine-card p { font-size: .84rem; }
  .machine-icon svg { width: 28px; height: 28px; }

  .why-list li { padding: 14px 0; }
  .why-list h3 { font-size: .95rem; margin-bottom: 4px; }
  .why-list p, .why-intro, .video-card p { font-size: .84rem; }
  .why-list .n { font-size: .72rem; }
  .video-card h3 { font-size: .98rem; margin: 12px 0 4px; }

  .contact-panel { padding: 20px 18px; }
  .contact-panel h3 { font-size: 1.2rem; }
  .contact-panel p { font-size: .86rem; margin-bottom: 16px; }
  .contact-list > div { padding: 12px 0; }
  .contact-list dd { font-size: .92rem; }

  .empty-state { min-height: 0; padding: 20px; }
  .empty-state strong { font-size: .98rem; }
  .empty-state p { font-size: .84rem; }

  /* Map: compact */
  .map-block { margin-top: 16px; gap: 10px; }
  .map-frame { aspect-ratio: auto; height: 180px; }
  .btn-directions { width: auto; justify-self: start; min-height: 38px; padding: 0 14px; font-size: .8rem; }

  .fc-number { font-size: .98rem; }
  .fc-value { font-size: .9rem; }
  .fc-link { min-height: 36px; font-size: .8rem; padding: 7px 12px; }
  .footer-brand p { font-size: .84rem; }
}

/* Header brand name next to the logo */
.brand-words {
  font: 600 .98rem/1.2 var(--font-head);
  letter-spacing: .02em; color: var(--warm);
  max-width: 14ch;
}
@media (max-width: 420px) {
  .brand-words { font-size: .8rem; max-width: 15ch; line-height: 1.15; }
}

/* ---------- WhatsApp floating button: icon only ---------- */
.wa-float {
  width: 60px; height: 60px; padding: 0;
  justify-content: center;
  background: transparent; border: 0; border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}
.wa-float:hover { background: transparent; transform: translateY(-2px); }
.wa-icon { width: 60px; height: 60px; }
.wa-float:hover .wa-icon { background: var(--orange-hover); }
@media (max-width: 640px) {
  .wa-float { width: 56px; height: 56px; right: 16px; bottom: 16px; }
  .wa-icon { width: 56px; height: 56px; }
}

/* ---------- Mobile: compact projects, gallery and location ---------- */
@media (max-width: 640px) {
  .project-grid { gap: 12px; }
  .project-grid .media-tile, .project-grid .media-tile:nth-child(5n + 1) { grid-column: span 12; aspect-ratio: 16 / 10; }
  .gallery-grid { column-count: 2; column-gap: 10px; }
  .gallery-grid .media-tile { margin-bottom: 10px; }
  .media-caption { font-size: .76rem; padding: 32px 10px 10px; }
  .map-block { margin-top: 16px; gap: 12px; }
  .map-frame { aspect-ratio: auto; height: 200px; }
  .contact-list dd[data-bind="address"] { font-size: .9rem; }
}
@media (max-width: 640px) {
  .btn-directions, .fc-link { min-height: 44px; }
}

/* ---------- Refinements: header name, hero buttons and photo, footer line ---------- */
.brand-words { white-space: nowrap; max-width: none; }
@media (max-width: 420px) { .brand-words { font-size: .8rem; max-width: none; } }

.hero-actions .btn { min-height: 40px; padding: 0 18px; font-size: .84rem; width: auto; }
.hero-actions { gap: 10px; }

.hero-visual { padding: 0; border: 1px solid var(--line); background: none; }
.hero-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-visual figcaption { display: none; }

.footer-bottom { font-size: .75rem; opacity: .7; }
.footer-bottom p { margin: 0; }
@media (max-width: 640px) {
  .hero-actions .btn { min-height: 42px; font-size: .82rem; width: auto; }
  .hero-actions { flex-wrap: wrap; }
  .footer-bottom { font-size: .72rem; }
}

/* Designer credit in footer bottom line */
.footer-bottom .credit a { color: inherit; border-bottom: 1px solid currentColor; text-decoration: none; }
.footer-bottom .credit a:hover { color: var(--orange); }
