/* Tri-State Blasting & Laser Cleaning: the whole stylesheet.
   Layout and rhythm follow the reference (onetech-tools.com): a neo-grotesk at large sizes and hairline
   rules that cut the page into a grid. Palette: black and white carry the page (ink ground, paper panels);
   orange (--accent) is a touch only: primary buttons, bullets, link underlines, the before/after beam. */

:root {
  --bg: #0d0d0d;
  --bg-2: #161616;
  --bg-3: #222;
  --text: #f1f1f1;
  --muted: #a1a1a1;
  --paper: #f1f0ed;            /* light panels */
  --ink: #0d0d0d;              /* text on paper */
  --accent: #f65311;           /* brand orange from the logo, used sparingly */
  --accent-ink: #0d0d0d;       /* text on the accent */
  --line: #3a3a3a;             /* hairline rules on the dark ground */
  --font-head: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 1.95vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* type scale, sized off the viewport like the reference */
  --t-xs: clamp(12px, 0.85vw, 14px);
  --t-sm: clamp(13px, 0.95vw, 16px);
  --t-md: clamp(15px, 1.1vw, 19px);
  --t-lg: clamp(18px, 1.45vw, 26px);
  --t-xl: clamp(22px, 1.75vw, 32px);
  --t-2xl: clamp(26px, 2.8vw, 52px);
  --t-3xl: clamp(30px, 4.1vw, 78px);
  --t-mega: clamp(64px, 12vw, 230px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--t-sm)/1.45 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 500; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.on-accent :focus-visible { outline-color: var(--accent-ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; }
.skip:focus-visible { top: 12px; }
.hl { color: var(--text); }
h2:has(.hl) { color: var(--muted); } /* two-tone titles: grey with the key words in white */
.white { color: var(--text); }
.muted { color: var(--muted); }
.wrap { padding-inline: var(--gutter); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 32px; border: 1px solid var(--text); border-radius: 2px; background: transparent; color: var(--text); font: 500 var(--t-xs)/1 var(--font-head); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { background: var(--text); color: var(--ink); }
.btn--fill { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--fill:hover { background: var(--text); border-color: var(--text); }
.btn--dark { border-color: var(--ink); color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn svg { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.link { color: inherit; font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .25em; }

/* Small label with a square bullet, as in the reference */
.label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 500 var(--t-xs)/1.2 var(--font-head); }
.label--dot::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

/* Chips (the reference's product codes and project tags) */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; padding: 7px 9px; border-radius: 2px; background: var(--bg-3); color: #d6d6d6; font: 500 var(--t-xs)/1.2 var(--font-head); }

/* Header */
.hdr { position: absolute; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--gutter); }
.hdr__left { display: flex; align-items: center; gap: clamp(16px, 6vw, 92px); }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; background: var(--text); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.iconbtn svg { width: 22px; height: 22px; }
.hdr__tag { color: var(--muted); font: 400 var(--t-xs)/1.15 var(--font-body); }
.hdr__logo { display: block; width: 52px; }
.hdr__logo img { width: 100%; height: auto; }
.hdr__right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav { display: flex; gap: 3px; padding: 3px; border-radius: 3px; background: var(--bg-3); }
.nav a { display: grid; place-items: center; min-height: 46px; padding: 0 20px; border-radius: 2px; background: #141414; color: var(--text); font: 500 var(--t-xs)/1 var(--font-head); text-decoration: none; transition: background-color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background: #2e2e2e; }
.hdr .btn--fill { min-height: 52px; padding: 0 20px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; min-height: 44px; padding: 0 16px; border: 3px solid var(--bg-3); border-radius: 3px; background: #141414; font: 500 13px/1 var(--font-head); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--text); border-color: var(--text); color: var(--ink); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 2 * var(--gutter))); padding: 8px; border-radius: 4px; background: #141414; border: 1px solid var(--bg-3); }
.menu nav a { display: block; padding: 14px 12px; color: var(--text); font: 500 18px/1.1 var(--font-head); text-decoration: none; border-bottom: 1px solid var(--bg-3); }
.menu nav a:last-child { border: 0; color: var(--accent); }
.menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .25em; }
@media (max-width: 1100px) {
  .nav, .hdr__right > .btn { display: none; }
  .menu { display: block; }
}
@media (max-width: 767px) {
  .hdr { position: fixed; padding: 12px var(--gutter); background: var(--bg); }
  .hdr__tag { display: none; }
  .hdr__logo { width: 40px; }
}

/* Mobile call bar (kept from v1 for click-to-call) */
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--bg-3); }
  .callbar .btn { min-height: 48px; padding: 0 12px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* Image and video slots: an empty slot is a flat panel until its file is added */
.media { position: relative; margin: 0; overflow: hidden; border-radius: 3px; background: #1c1c1c; }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Slot notes are for whoever adds the files (see assets/CREDITS.md); visitors never see them */
.slot-note { display: none; }
/* site.js adds .is-filled once a file has loaded; until then nothing (no broken icon) shows */
.js .media:not(.is-filled) > img, .js .media:not(.is-filled) > video { visibility: hidden; }
/* "Illustrative" and stock-photo notes only show once a before/after photo is actually there */
.tag-illustrative, .if-photo, .if-photos { display: none; }
.cell:has(.compare .is-filled) .if-photo, body:has(.compare .is-filled) .if-photos { display: revert; }
.compare__before:has(.is-filled) .tag-illustrative { display: block; position: absolute; top: 10px; left: 10px; z-index: 3; padding: 5px 8px; border-radius: 2px; background: rgba(13,13,13,.8); color: var(--text); font: 500 11px/1 var(--font-head); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; min-height: max(640px, 100svh); padding: clamp(110px, 9.5vw, 136px) var(--gutter) 40px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
/* Banner photo: until assets/img/hero.jpg exists, site.js drops the img and the logo mark shows instead */
.hero__photo { position: absolute; inset: 0; }
.hero__photo .media { width: 100%; height: 100%; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: rgba(13,13,13,.4); }
.hero__photo .media > img { object-position: 62% 40%; }
.hero__photo:not(:has(.is-filled)) { display: none; }
.hero:has(.hero__photo .is-filled) .hero__art { display: none; }
.hero:has(.hero__photo .is-filled) .hero__lead { color: var(--text); }
.hero h1 { position: relative; z-index: 2; max-width: 11.5em; color: var(--text); font-size: var(--t-3xl); line-height: 1.1; }
.hero .actions { position: relative; z-index: 2; margin-top: 28px; }
.hero .actions .btn { min-width: 170px; }
.hero__lead { position: relative; z-index: 2; align-self: end; max-width: 18em; color: var(--muted); font: 400 var(--t-lg)/1.3 var(--font-head); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 28px; color: var(--muted); font-size: var(--t-xs); text-decoration: none; }
.hero__art { position: absolute; z-index: 1; left: 50%; top: 52%; width: min(27vw, 440px); translate: -45% -50%; }
.hero__art svg { width: 100%; height: auto; overflow: visible; rotate: -14deg; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); animation: float 7s var(--ease) infinite alternate; }
.hero__art .beam { animation: beam 3.2s ease-in-out infinite alternate; transform-origin: center; }
@keyframes float { to { translate: 0 -18px; rotate: -10deg; } }
@keyframes beam { from { opacity: .75; } to { opacity: 1; } }
.hero__photo .media > img { animation: drift 18s ease-in-out infinite alternate; }
.hero h1, .hero .actions, .hero__lead { animation: rise .9s var(--ease) backwards; }
.hero .actions { animation-delay: .15s; }
.hero__lead { animation-delay: .3s; }
@keyframes drift { to { scale: 1.08; } }
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@media (max-width: 767px) {
  .hero { padding-top: 96px; padding-bottom: 96px; min-height: 100svh; }
  /* photo sits below the headline and buttons, so the worker is not behind the text */
  .hero__photo .media > img { top: 34%; height: 66%; object-position: 64% 50%; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
  .hero__photo .media { background: #0d0d0d; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero__art { left: auto; right: -14vw; top: auto; bottom: 18%; width: 70vw; translate: none; opacity: .9; }
  .hero__scroll { display: none; }
}

/* Statement section (the reference's "System-Based Engineering") */
.statement { position: relative; min-height: max(620px, 100svh); padding: clamp(80px, 14vw, 200px) var(--gutter) 40px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.statement h2 { align-self: center; max-width: 10.5em; color: var(--text); font-size: var(--t-3xl); position: relative; z-index: 2; }
.statement p { max-width: 26em; color: var(--muted); font-size: var(--t-md); position: relative; z-index: 2; }
.statement .media { position: absolute; top: 8%; right: var(--gutter); bottom: 8%; width: 40%; }
@media (max-width: 767px) {
  .statement { min-height: auto; padding-top: 72px; gap: 24px; }
  .statement .media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; order: 3; }
}

/* Accent panel (the reference's "Two Approaches, One Standard") */
.panel { margin: 0 clamp(8px, 2.5vw, 36px); padding: 26px 8px 80px; border-radius: 6px; background: var(--paper); color: var(--ink); }
@supports (animation-timeline: view()) {
  .panel { animation: open-panel linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes open-panel { from { margin-inline: 5vw; } to { margin-inline: 1vw; } }
}
.panel > h2 { padding: 22px 16px 46px; text-align: center; font-size: var(--t-3xl); }
.duo { display: grid; grid-template-columns: 1fr 1fr; border-radius: 4px; background: var(--bg); color: var(--text); overflow: hidden; }
.duo__col { display: flex; flex-direction: column; }
.duo__col + .duo__col { border-left: 1px solid var(--line); }
.duo__top { position: relative; min-height: clamp(280px, 25vw, 356px); padding: 24px 27px 32px; display: flex; flex-direction: column; }
.duo__top .label { margin-bottom: auto; }
.duo__top .btn { position: absolute; top: 19px; right: 27px; min-height: 50px; padding: 0 26px; }
.duo h3 { color: var(--text); font-size: var(--t-3xl); margin-top: 48px; }
.duo h3 a { text-decoration: none; }
.duo h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.duo__sub { margin-top: 14px; color: var(--muted); font-size: var(--t-md); }
.ticks li { display: flex; gap: 12px; align-items: baseline; padding: 15px 27px; border-top: 1px solid var(--line); color: var(--text); font: 500 var(--t-xs)/1.35 var(--font-head); }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--accent); translate: 0 -2px; }
.reel { position: relative; margin: 30px clamp(0px, 4.2vw, 64px) 0; aspect-ratio: 1218 / 730; border-radius: 2px; }
.reel__text { position: absolute; z-index: 2; left: 52%; top: 13%; right: 4%; color: var(--text); }
.reel__text h2 { font-size: clamp(26px, 3.6vw, 64px); }
.reel__text p { margin: 18px 0 30px; max-width: 24em; font-size: var(--t-sm); }
.reel .btn--light { min-height: 42px; padding: 0 36px; }
.reel .slot-note { left: 16px; right: 50%; }
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: clamp(60px, 8vw, 110px) 20px 0; }
.trust h2 { font-size: var(--t-2xl); }
.trust p { max-width: 24em; font: 400 var(--t-lg)/1.32 var(--font-head); }
.trust .actions { grid-column: 1 / -1; justify-content: center; margin-top: clamp(80px, 12vw, 180px); }
.trust .btn { min-width: 142px; }
@media (max-width: 767px) {
  .panel { padding-bottom: 40px; }
  .panel > h2 { padding-bottom: 28px; }
  .duo { grid-template-columns: 1fr; }
  .duo__col + .duo__col { border-left: 0; border-top: 1px solid var(--line); }
  .duo__top { min-height: 240px; }
  .reel { margin-inline: 0; aspect-ratio: 3 / 4; }
  .reel__text { left: 16px; right: 16px; top: 20px; }
  .reel .slot-note { right: 16px; }
  .trust { grid-template-columns: 1fr; padding-inline: 12px; }
  .trust .actions { margin-top: 40px; }
  .trust .btn { width: 100%; }
}

/* Section heading row: two-tone title, action on the right */
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 var(--gutter) clamp(28px, 2.6vw, 44px); }
.shead h2 { font-size: var(--t-3xl); }
.shead h2 span + span { margin-left: .25em; }
.shead--center { flex-direction: column; align-items: center; text-align: center; }
.shead--center p { max-width: 26em; color: var(--muted); font-size: var(--t-md); }
.section { padding-top: clamp(96px, 16vw, 240px); }

/* Carousel (the reference's "Where our solutions work") */
.carousel { position: relative; }
.track { display: flex; gap: 16px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: none; width: clamp(280px, 38.2vw, 700px); aspect-ratio: 549 / 388; scroll-snap-align: start; }
.slide .media { position: absolute; inset: 0; }
.slide .media::after { content: ""; position: absolute; inset: 0; background: rgba(13,13,13,.28); }
.slide__top, .slide__name { position: absolute; z-index: 2; left: 24px; right: 24px; color: var(--text); }
.slide__top { top: 22px; max-width: 22em; font-size: var(--t-sm); }
.slide__name { bottom: 18px; font: 500 var(--t-lg)/1.1 var(--font-head); }
.arrows { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.arrows button { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 3px; background: var(--bg-3); color: var(--text); cursor: pointer; transition: background-color .2s var(--ease); }
.arrows button:hover { background: var(--text); color: var(--ink); }
.arrows svg { width: 20px; height: 20px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: clamp(96px, 16vw, 240px) var(--gutter) 0; }
.about .media { aspect-ratio: 692 / 760; }
.about__text p { margin-top: clamp(28px, 4.4vw, 64px); font: 400 var(--t-2xl)/1.2 var(--font-head); font-size: clamp(22px, 2.4vw, 46px); }
@media (max-width: 767px) { .about { grid-template-columns: 1fr; } .about__text { order: -1; } }

/* Mega words + numbered rows (the reference's "Core Business Areas") */
.mega { padding: clamp(96px, 16vw, 240px) var(--gutter) clamp(40px, 5vw, 70px); color: var(--text); font-size: var(--t-mega); line-height: .9; }
.mega span { display: block; }
.mega .dim { color: #2a2a2a; transition: color 1.2s var(--ease); }
.mega.in .dim { color: var(--text); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 61fr 39fr; gap: 24px; padding: clamp(28px, 2.6vw, 40px) var(--gutter); border-bottom: 1px solid var(--line); }
.row h3 { display: grid; grid-template-columns: 2.3em 1fr; color: var(--text); font-size: var(--t-2xl); font-size: clamp(24px, 2.5vw, 46px); }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.row h3 small { font-size: .9em; }
.row p { max-width: 34em; color: var(--muted); font-size: var(--t-xs); line-height: 1.45; }
@media (max-width: 767px) { .row { grid-template-columns: 1fr; gap: 16px; } .row h3 { grid-template-columns: 1.6em 1fr; } .row p { padding-left: 0; } }

/* Grid of bordered cells (projects, products, news) */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); border-top: 1px solid var(--line); }
.grid--3 { --cols: 3; }
.cell { display: flex; flex-direction: column; padding: 24px clamp(16px, 1.95vw, 28px) 28px; border-bottom: 1px solid var(--line); }
.grid:not(.grid--3) .cell:nth-child(2n) { border-left: 1px solid var(--line); }
.grid--3 .cell:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
.cell .media { aspect-ratio: 663 / 432; }
.grid--3 .cell .media { aspect-ratio: 423 / 380; }
.cell h3 { margin-top: 16px; color: var(--text); font-size: var(--t-xl); font-size: clamp(20px, 1.6vw, 30px); line-height: 1.12; }
.grid--3 .cell h3 { font-size: clamp(19px, 1.45vw, 27px); }
.cell h3 a { text-decoration: none; }
.cell h3 a::after { content: ""; position: absolute; inset: 0; }
.cell { position: relative; }
.cell h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.cell p { margin-top: 12px; max-width: 34em; color: var(--muted); font-size: var(--t-xs); }
.grid--3 .cell p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell .chips { margin-top: auto; padding-top: 40px; }
.grid--3 .cell .chips { order: -1; margin: 16px 0 0; padding: 0; }
.grid--3 .cell .media { order: -2; }
.cell--cta { justify-content: center; gap: 20px; }
.cell--cta h3 { color: var(--text); margin: 0; font-size: var(--t-2xl); }
.cell .compare { margin-top: 0; }
@media (max-width: 991px) { .grid--3 { --cols: 2; } .grid--3 .cell:not(:nth-child(3n+1)) { border-left: 0; } .grid--3 .cell:nth-child(2n) { border-left: 1px solid var(--line); } }
@media (max-width: 767px) {
  .grid, .grid--3 { --cols: 1; }
  .grid .cell:nth-child(n), .grid--3 .cell:nth-child(n) { border-left: 0; }
  .cell .chips { padding-top: 20px; }
}

/* Full-bleed picture with text (the reference's "Product range principles") */
.bleed { position: relative; min-height: max(560px, 100svh); margin-top: clamp(96px, 16vw, 240px); display: flex; align-items: flex-end; padding: 40px var(--gutter); }
.bleed .media { position: absolute; inset: 0; border-radius: 0; background: #2a2a2a; }
.bleed .media::after { content: ""; position: absolute; inset: 0; background: rgba(13,13,13,.35); }
.bleed__text { position: relative; z-index: 2; max-width: 30em; }
.bleed h2 { font-size: var(--t-3xl); max-width: 8em; }
.bleed p { margin-top: 16px; color: #cfcfcf; font-size: var(--t-md); }
.bleed .slot-note { top: 20px; bottom: auto; }

/* Horizontal quote-style columns (the reference's "What our clients say") */
.voices { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.voices::-webkit-scrollbar { display: none; }
.voice { flex: none; width: clamp(290px, 40vw, 576px); display: flex; flex-direction: column; justify-content: space-between; gap: 60px; padding: 28px var(--gutter) 30px; scroll-snap-align: start; }
.voice + .voice { border-left: 1px solid var(--line); }
.voice p { color: var(--muted); font: 400 clamp(18px, 1.5vw, 28px)/1.3 var(--font-head); }
.voice h3 { color: var(--text); font: 500 var(--t-xs)/1.3 var(--font-head); }
.voice h3 span { display: block; color: var(--muted); font-weight: 400; }

/* Reach out: picture panel + paper form (the reference's map + form) */
.reach { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(96px, 16vw, 240px); }
.reach__side { position: relative; min-height: 520px; background: #2b2b2b; }
.reach__side .media { position: absolute; inset: 0; border-radius: 0; background: #2b2b2b; }
.reach__side .media::after { content: ""; position: absolute; inset: 0; background: rgba(13,13,13,.45); }
.reach__areas { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 40px; }
.reach__areas li { padding: 14px 0; border-top: 1px solid rgba(241,241,241,.25); font: 500 var(--t-xl)/1.1 var(--font-head); }
.reach__areas li span { display: block; margin-top: 4px; color: #cfcfcf; font: 400 var(--t-xs)/1.3 var(--font-body); }
.reach__form { padding: 36px var(--gutter) 32px clamp(16px, 2.2vw, 32px); background: var(--paper); color: var(--ink); }
.reach__form > h2 { max-width: 9em; font-size: var(--t-3xl); }
.reach__form > p { max-width: 26em; margin: 18px 0 30px; font-size: var(--t-xs); }
@media (max-width: 767px) { .reach { grid-template-columns: 1fr; } .reach__side { min-height: 420px; } }

/* Forms on the paper panel */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { padding: 0; font: 500 12px/1.1 var(--font-head); }
.field legend { margin-bottom: 10px; }
.field .opt { font-weight: 400; opacity: .75; }
.hint { margin-top: -4px; font-size: 12px; }
.field input:not([type="radio"], [type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 3px; background: rgba(13,13,13,.07); color: var(--ink); font: 400 14px/1.4 var(--font-body); }
.field textarea { min-height: 190px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(13,13,13,.62); }
.field input:focus, .field select, .field textarea:focus { outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent-ink); outline: 1px solid var(--accent-ink); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--accent-ink) !important; border-width: 2px !important; }
.field input[type="file"] { padding: 12px; }
.err { min-height: 0; font: 600 12px/1.3 var(--font-body); }
.err:not(:empty)::before { content: "! "; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--accent-ink); border-radius: 2px; font: 500 13px/1 var(--font-head); cursor: pointer; }
.choices input:checked + label { background: var(--ink); color: var(--paper); }
.choices input:focus-visible + label { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.form__foot { margin-top: 26px; }
.form__foot .btn { width: 100%; min-height: 52px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.form__foot .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.form__foot p { margin-top: 14px; font-size: 13px; }
.form__foot a { color: var(--accent-ink); font-weight: 600; }
.form__status { margin-top: 12px; font: 600 14px/1.4 var(--font-body); }
.form__status:empty { display: none; }
/* Shown while the form has no destination; set data-endpoint on the form and it disappears */
.form__offline { margin-bottom: 16px; font: 600 14px/1.4 var(--font-body); }
form:not([data-endpoint=""]) .form__offline { display: none; }
@media (max-width: 767px) { .form__grid { grid-template-columns: 1fr; } }

/* Marquee (the reference's "Partners", here: what we clean) */
.marquee-sec { padding-top: clamp(80px, 6.5vw, 110px); }
.marquee-sec h2 { padding: 0 var(--gutter) 52px; font-size: var(--t-3xl); }
.marquee { overflow: hidden; }
.marquee ul { display: flex; gap: 8px; width: max-content; animation: marquee 50s linear infinite; }
.marquee li { display: grid; place-items: center; width: clamp(150px, 12.7vw, 190px); height: 104px; padding: 0 12px; border-radius: 4px; background: #141414; color: #d6d6d6; font: 500 var(--t-sm)/1.2 var(--font-head); text-align: center; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 4px)); } }

/* Footer */
.ftr { padding: clamp(100px, 12vw, 180px) var(--gutter) 28px; }
.ftr__cols { display: grid; grid-template-columns: 23.7fr 24.9fr 47fr auto; gap: 24px; }
.ftr h2 { margin-bottom: 18px; color: var(--muted); font: 500 var(--t-xs)/1.2 var(--font-head); }
.ftr li { margin-bottom: 6px; font-size: var(--t-xs); }
.ftr li a { text-decoration: none; }
.ftr li a:hover { color: var(--accent); }
.ftr__cols > div:last-child { text-align: right; }
.ftr__mark { display: flex; justify-content: center; padding: clamp(120px, 15vw, 220px) 0 clamp(120px, 15vw, 220px); }
.ftr__mark img { width: 64px; filter: grayscale(1) brightness(1.4); opacity: .7; }
.ftr__note { max-width: 60em; margin: 0 auto 40px; color: #7c7c7c; font-size: 12px; text-align: center; }
.ftr__bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; color: var(--muted); font-size: var(--t-xs); }
.ftr__bar p:nth-child(2) { text-align: center; }
.ftr__bar p:last-child { text-align: right; }
@media (max-width: 767px) {
  .ftr__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .ftr__cols > div:last-child { text-align: left; }
  .ftr__mark { padding: 80px 0; }
  .ftr__bar { grid-template-columns: 1fr 1fr; }
  .ftr__bar p:nth-child(2) { text-align: right; }
  .ftr__bar p:last-child { grid-column: 1 / -1; text-align: left; }
}

/* ===== Inner pages ===== */

/* Listing head (the reference's "Projects" page) */
.lhead { min-height: max(600px, 77svh); padding: clamp(110px, 10vw, 150px) var(--gutter) 16px; display: flex; flex-direction: column; }
.lhead h1 { color: var(--text); font-size: clamp(44px, 5vw, 96px); }
.lhead__intro { margin-top: 22px; max-width: 26em; color: var(--muted); font: 400 var(--t-md)/1.4 var(--font-head); }
.lhead__notice { margin-top: 22px; max-width: 34em; color: var(--text); font-size: var(--t-xs); }
.filters { margin-top: auto; padding-top: 60px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.filters h2 { margin-bottom: 10px; color: var(--muted); font: 400 var(--t-sm)/1 var(--font-head); }
.filters__set { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 38px; padding: 0 16px; border: 1px solid var(--muted); border-radius: 2px; background: transparent; color: var(--text); font: 400 var(--t-xs)/1 var(--font-head); cursor: pointer; }
.filters button[aria-pressed="true"], .filters button:hover { border-color: var(--text); background: var(--text); color: var(--ink); }
.filters .clear { border: 0; padding: 0; min-height: 38px; text-decoration: underline; text-underline-offset: .2em; }
.filters .clear:hover { background: none; color: var(--text); }
.cell[hidden] { display: none; }
@media (max-width: 767px) { .lhead { min-height: auto; padding-top: 96px; } .filters { padding-top: 48px; } }

/* Detail head (the reference's product page): text left, gallery right */
.dhead { display: grid; grid-template-columns: 51fr 41fr 5fr; gap: 0 16px; padding: 130px var(--gutter) 0; }
.dhead__text { display: flex; flex-direction: column; padding-right: 8%; }
.dhead h1 { margin-top: 20px; color: var(--text); font-size: clamp(38px, 3.6vw, 70px); }
.dhead__lead { margin-top: 18px; max-width: 28em; color: var(--muted); font: 400 var(--t-md)/1.4 var(--font-head); }
.dhead .actions { margin-top: 28px; }
.about-block { margin-top: auto; padding-top: 80px; max-width: 40em; }
.about-block h2 { color: var(--text); font: 500 var(--t-xs)/1.3 var(--font-head); }
.about-block > p { margin-top: 4px; color: var(--muted); font-size: var(--t-xs); }
.about-block ul.dots { margin-top: 14px; padding-left: 16px; list-style: disc; color: var(--muted); font-size: 12px; }
.about-block ul.dots li { margin-bottom: 8px; }
.about-block .k { margin-top: 30px; color: var(--muted); font-size: var(--t-xs); }
.about-block .v { margin-top: 4px; color: var(--text); font-size: var(--t-xs); }
.dhead .ticks { margin-top: 20px; border-bottom: 1px solid var(--line); }
.dhead .ticks li { padding: 14px 0; font-size: var(--t-xs); }
.gallery-main { position: sticky; top: 24px; display: grid; gap: 6px; align-self: start; }
.gallery-main .media { aspect-ratio: 587 / 604; }
.thumbs { position: sticky; top: 24px; display: grid; gap: 8px; align-self: start; }
.thumbs button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 3px; }
.thumbs button[aria-current="true"] { outline: 1px solid var(--text); outline-offset: 2px; }
.thumbs .media { aspect-ratio: 72 / 100; pointer-events: none; }
.thumbs .slot-note { display: none; }
@media (max-width: 991px) {
  .dhead { grid-template-columns: 1fr; padding-top: 96px; gap: 32px; }
  .dhead__text { padding-right: 0; }
  .gallery-main, .thumbs { position: static; }
  .thumbs { grid-template-columns: repeat(6, 1fr); }
  .about-block { padding-top: 40px; }
}

/* Detail carousel row of images (the reference's project page) */
.dstrip { margin-top: 60px; }
.dstrip .slide { width: clamp(260px, 38.2vw, 700px); }
.dstrip .slide .media::after { display: none; }

/* Specifications panel (paper block with accordion) */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(60px, 8vw, 120px); padding: clamp(56px, 5.3vw, 80px) var(--gutter); border-radius: 6px 6px 0 0; background: var(--paper); color: var(--ink); }
.spec__left { display: flex; flex-direction: column; gap: 40px; }
.spec h2 { font-size: var(--t-3xl); }
.spec__about { margin-top: auto; max-width: 30em; }
.spec__about h3 { font: 500 var(--t-sm)/1.3 var(--font-head); }
.spec__about h3 + p { margin-top: 10px; }
.spec__about p { font-size: var(--t-sm); }
.spec__about p + h3 { margin-top: 24px; }
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--ink); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 500 var(--t-md)/1.2 var(--font-head); cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--accent); font: 500 16px/1 var(--font-body); transition: rotate .3s var(--ease); }
.acc details[open] summary::after { rotate: 45deg; }
.acc .acc__body { padding: 0 0 24px; font-size: var(--t-sm); max-width: 40em; }
.acc .acc__body h4 { margin: 16px 0 6px; font: 500 var(--t-sm)/1.2 var(--font-head); }
.acc .acc__body ul { padding-left: 18px; list-style: disc; }
.acc .acc__body li { margin-bottom: 6px; }
.spec .btn--dark { width: 100%; margin-top: 30px; }
@media (max-width: 767px) { .spec { grid-template-columns: 1fr; } }

/* Before / after you drag */
.compare { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 663 / 432; background: #1c1c1c; --pos: 50%; }
.compare .media { position: absolute; inset: 0; border-radius: 0; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__before { position: absolute; inset: 0; }
.compare__after .media { background: #262626; }
.compare__label { position: absolute; z-index: 3; bottom: 10px; padding: 5px 8px; border-radius: 2px; background: rgba(13,13,13,.8); color: var(--text); font: 500 11px/1 var(--font-head); }
.compare__before .compare__label { left: 10px; }
.compare__after .compare__label { right: 10px; }
.compare::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: var(--accent); pointer-events: none; }
.compare input[type="range"] { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.no-js .compare__after { clip-path: none; left: 50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mega .dim { color: var(--text); }
}

/* Contact-style head (the reference's contact page) */
.chead { min-height: max(520px, 64svh); padding: clamp(110px, 10vw, 150px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 60px; }
.chead h1 { color: var(--text); font-size: clamp(44px, 5vw, 96px); }
.chead__intro { margin-top: 22px; max-width: 26em; color: var(--muted); font: 400 var(--t-md)/1.4 var(--font-head); }
.chead__row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.chead__row > div:first-child { grid-column: 2; }
.chead__row h2 { margin-bottom: 8px; color: var(--muted); font: 500 var(--t-xs)/1.2 var(--font-head); }
.chead__row p, .chead__row li { font-size: var(--t-xs); line-height: 1.5; }
.chead__row a { text-decoration: none; }
.chead__row a:hover { color: var(--accent); }
@media (max-width: 767px) { .chead { min-height: auto; padding-top: 96px; } .chead__row { grid-template-columns: 1fr; } .chead__row > div:first-child { grid-column: auto; } }

/* Project-style head (service areas) */
.phead { min-height: max(560px, 70svh); padding: 130px var(--gutter) 0; display: flex; flex-direction: column; }
.phead h1 { margin-top: 20px; max-width: 9em; color: var(--text); font-size: clamp(38px, 3.6vw, 70px); }
.phead__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.phead__foot h2 { color: var(--text); font: 500 var(--t-xs)/1.3 var(--font-head); }
.phead__foot p { margin-top: 4px; max-width: 34em; color: var(--muted); font-size: var(--t-xs); }
.phead .arrows { margin: 0; }
.phead + .dstrip { margin-top: 24px; }
@media (max-width: 767px) { .phead { min-height: auto; padding-top: 96px; } .phead__foot { padding-top: 48px; } }
