/* Basalt Paving Co. -- "SIGNAL RED" one-page slide experience.
   Fictional demo by Overflow Marketing. Animation showpiece:
   fullscreen slide deck (desktop), plain scroll (mobile / reduced motion).
   Only transform / opacity / clip-path are animated. */

:root {
  --bg: #101114;
  --panel: #17181C;
  --red: #EF2D3E;
  --text: #F4F4F5;
  --line: #2A2C31;
  --muted: rgba(244, 244, 245, 0.55);
  --faint: rgba(244, 244, 245, 0.34);
  --pad-x: clamp(20px, 6.2vw, 120px);
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.15, 1);
  --slide-ms: 950ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); }
html.mode-deck, html.mode-deck body { overflow: hidden; height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--red); color: #fff; padding: 10px 16px;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------------------------ */
/* Faint vertical hairlines over the whole viewport                    */
/* ------------------------------------------------------------------ */

.grid-lines {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  display: flex;
}
.grid-lines i { flex: 1; border-left: 1px solid rgba(42, 44, 49, 0.55); }
.grid-lines i:first-child { border-left: 0; }

/* ------------------------------------------------------------------ */
/* Persistent chrome                                                   */
/* ------------------------------------------------------------------ */

.chrome-logo, .chrome-phone, .pager, .socials, .side-nav, .next-hint, .burger {
  position: fixed; z-index: 120;
}

.chrome-logo {
  top: 26px; left: var(--pad-x);
  font-size: 21px; font-weight: 600; letter-spacing: 0.01em;
  opacity: 0; transition: opacity 0.5s 0.1s;
}
.chrome-logo .dot { color: var(--red); }
body.loaded .chrome-logo { opacity: 1; }

.chrome-phone {
  top: 30px; right: calc(var(--pad-x) + 4px);
  font-size: 14px; color: var(--muted); letter-spacing: 0.02em;
}
.chrome-phone b { color: var(--text); font-weight: 500; }

.pager {
  left: var(--pad-x); bottom: 34px;
  display: flex; align-items: baseline; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.pager-cur { font-size: 27px; font-weight: 200; letter-spacing: 0.04em; }
.pager-sep, .pager-total { font-size: 12px; color: var(--faint); }

.socials {
  right: calc(var(--pad-x) + 4px); bottom: 38px;
  display: flex; gap: 26px; font-size: 12.5px; color: var(--muted);
}
.socials a { display: inline-flex; align-items: center; gap: 8px; transition: opacity 0.25s; }
.socials a:hover { opacity: 0.7; }
.socials svg { width: 13px; height: 13px; }

/* Right-edge vertical section nav */
.side-nav {
  right: 14px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 26px;
  align-items: center;
}
.side-nav button {
  writing-mode: vertical-rl;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: none;
  color: var(--faint);
  position: relative;
  padding: 4px 2px;
  transition: color 0.35s;
}
.side-nav button::after {
  content: ""; position: absolute; left: 50%; bottom: -12px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text);
  transform: translateX(-50%) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.side-nav button:hover { color: var(--muted); }
.side-nav button[aria-current="true"] { color: var(--text); }
.side-nav button[aria-current="true"]::after { transform: translateX(-50%) scale(1); }

.next-hint {
  left: 50%; bottom: 30px; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.1em; color: var(--faint);
  display: inline-flex; align-items: center; gap: 10px;
  transition: opacity 0.4s, color 0.25s;
}
.next-hint::after { content: ""; width: 22px; height: 1px; background: var(--red); }
.next-hint:hover { color: var(--text); }
.next-hint.hidden { opacity: 0; pointer-events: none; }

.burger { display: none; }

/* ------------------------------------------------------------------ */
/* Preloader                                                           */
/* ------------------------------------------------------------------ */

.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: #0B0C0E;
  transition: opacity 0.6s 0.15s;
}
.pre-mark {
  position: absolute; left: 50%; top: 50%;
  font-size: 21px; font-weight: 600;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.45);
  transition: opacity 0.7s var(--ease-soft), transform 0.85s var(--ease-out);
}
.pre-mark .dot { color: var(--red); }
.preloader.show-mark .pre-mark { opacity: 1; }
.preloader.to-corner { background: transparent; pointer-events: none; }
.preloader.to-corner .pre-mark {
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1);
}
.preloader.gone { opacity: 0; pointer-events: none; }
body.loaded .preloader { display: none; }

/* Hero media slides up out of the preloader */
.hero-media { transition: transform 1.05s var(--ease-out) 0.1s; }
body.preload .hero-media { transform: translateY(103%); }

/* ------------------------------------------------------------------ */
/* Slide deck                                                          */
/* ------------------------------------------------------------------ */

.slide {
  position: relative;
  min-height: 100svh;
  padding: 110px var(--pad-x) 96px;
  overflow: hidden;
  display: flex;
}
.inner {
  width: min(1250px, 100%);
  margin: 0 auto;
  position: relative;
  display: flex; flex-direction: column;
  flex: 1;
}

html.mode-deck .deck { position: fixed; inset: 0; }
html.mode-deck .slide {
  position: absolute; inset: 0;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7vh);
  transition:
    transform var(--slide-ms) var(--ease-out),
    opacity 720ms var(--ease-soft);
}
html.mode-deck .slide.above { transform: translateY(-7vh); }
html.mode-deck .slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 10;
}

/* ------------------------------------------------------------------ */
/* Section title: red bar + clip-path wipe                             */
/* ------------------------------------------------------------------ */

.kicker {
  font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sec-title {
  position: relative;
  padding-left: 26px;
  font-size: clamp(34px, 3.5vw, 54px);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.01em;
}
.sec-title .bar {
  position: absolute; left: 0; top: 7%;
  width: 6px; height: 86%;
  background: var(--red);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease-out) 0.25s;
}
.sec-title .txt {
  display: inline-block;
  clip-path: inset(-5% 102% -5% -2%);
  transition: clip-path 0.75s var(--ease-out) 0.5s;
}
.on .sec-title .bar { transform: scaleY(1); }
.on .sec-title .txt { clip-path: inset(-5% -2% -5% -2%); }

/* Staggered reveal items */
[data-r] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-soft), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0.45s);
}
.on [data-r] { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Shared bits                                                         */
/* ------------------------------------------------------------------ */

.red-dash { display: inline-block; width: 18px; height: 2px; background: var(--red); vertical-align: middle; }

.note {
  position: relative; padding-left: 16px;
  font-size: 13px; color: var(--muted); max-width: 330px;
}
.note::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 3px; background: var(--red);
}
.note b { color: var(--text); font-weight: 500; }

/* Circular ring button (Learn more / Next project / form arrows) */
.ring-btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: 0.03em; color: var(--text);
}
.ring-btn .ring {
  position: relative; width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
}
.ring-btn .ring::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--line); border-radius: 50%;
}
.ring-btn svg.ring-track { position: absolute; inset: -1px; width: 48px; height: 48px; transform: rotate(-90deg); }
.ring-btn svg.ring-track circle {
  fill: none; stroke: var(--red); stroke-width: 1.6;
  stroke-dasharray: 144.5; stroke-dashoffset: 144.5;
  transition: stroke-dashoffset 0.65s var(--ease-soft);
}
.ring-btn:hover svg.ring-track circle,
.ring-btn.drawing svg.ring-track circle { stroke-dashoffset: 0; }
.ring-btn .arr { width: 16px; height: 16px; }
.ring-btn .lbl { transition: opacity 0.25s; }
.ring-btn:hover .lbl { opacity: 0.75; }

.ghost-link {
  font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
  transition: color 0.25s;
}
.ghost-link:hover { color: var(--text); }

.fineprint { font-size: 11px; color: var(--faint); }

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

.s-hero { padding-bottom: 80px; }

.hero-media {
  position: absolute; z-index: 1;
  right: calc(-1 * var(--pad-x)); top: 0; bottom: 0;
  width: min(70vw, 1200px);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

.hero-copy {
  position: relative; z-index: 2;
  margin-top: auto; margin-bottom: auto;
  max-width: 560px;
}
.hero-kicker {
  font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 26px;
}
.hero-kicker .price b { color: var(--text); font-weight: 600; }
.hero-copy h1 {
  font-size: clamp(34px, 3.9vw, 60px);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 30px;
  text-shadow: 0 2px 30px rgba(16, 17, 20, 0.7);
}
.hero-copy .note { margin-bottom: 40px; }
.hero-fine { margin-top: 34px; }

.swipe-hint {
  display: none;
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.1em; color: var(--faint);
  flex-direction: column; align-items: center; gap: 6px;
}
.swipe-hint svg { width: 14px; height: 14px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-3px); }
}

/* ------------------------------------------------------------------ */
/* 02 About                                                            */
/* ------------------------------------------------------------------ */

.slide-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.07;
}
.slide-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.slide-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 45%, transparent 65%, var(--bg) 100%);
}
.s-about .inner, .s-services .inner { z-index: 1; }

.about-grid {
  display: grid; grid-template-columns: minmax(0, 520px) 1fr;
  gap: 60px; margin-top: 54px;
}
.about-grid p { color: var(--muted); font-size: 14.5px; max-width: 480px; }
.about-grid p + p { margin-top: 16px; }
.about-cta { margin-top: 40px; }

.stats {
  display: flex; gap: clamp(30px, 4.5vw, 84px);
  margin-top: 70px;
}
.stat b {
  display: block;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 500; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.stat b sup { font-size: 0.55em; color: var(--red); font-weight: 600; }
.stat b span { display: inline; font-size: inherit; color: inherit; max-width: none; }
.stat .u { display: block; width: 18px; height: 2px; background: var(--red); margin: 12px 0 10px; }
.stat span { font-size: 12.5px; color: var(--muted); display: block; max-width: 130px; line-height: 1.45; }

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

.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: clamp(40px, 5vw, 90px);
  margin-top: 54px;
  align-items: start;
}
.svc-grid > .svc-intro p { color: var(--muted); font-size: 14.5px; }
.svc-intro .about-cta { margin-top: 36px; }

.svc-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px clamp(30px, 4vw, 70px);
}
.svc-group h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.svc-group .red-dash { margin-bottom: 14px; }
.svc-group ul { list-style: none; }
.svc-group li {
  font-size: 13.5px; color: var(--muted);
  padding: 4.5px 0;
  transition: color 0.25s;
}
.svc-group li:hover { color: var(--text); }

/* ------------------------------------------------------------------ */
/* 04 Equipment                                                        */
/* ------------------------------------------------------------------ */

.s-equip .inner { z-index: 1; }
.s-equip::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(56% 46% at 52% 46%, rgba(23, 24, 28, 0.9), transparent 75%);
}

.show-all {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
  margin-top: 8px;
  align-self: flex-start;
  position: relative; z-index: 6;
  transition: color 0.25s;
}
.show-all:hover { color: var(--text); }
.show-all .pm {
  position: relative; width: 30px; height: 30px; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
}
.show-all .pm::before, .show-all .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.show-all .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.s-equip.drawer-open .show-all .pm::before { transform: translate(-50%, -50%) rotate(45deg); }
.s-equip.drawer-open .show-all .pm::after { transform: translate(-50%, -50%) rotate(135deg); }

.equip-stage {
  position: relative; flex: 1; display: flex; align-items: flex-end;
  min-height: 0;
}

.equip-media {
  position: absolute; z-index: 1;
  left: 50%; top: 47%;
  transform: translate(-50%, -50%);
  width: min(58vw, 860px);
  aspect-ratio: 3 / 2;
  max-height: 78%;
}
.equip-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000 58%, transparent 92%);
  mask-image: radial-gradient(90% 90% at 50% 50%, #000 58%, transparent 92%);
  opacity: 0;
  transform: translateX(5%);
  transition: opacity 0.6s var(--ease-soft), transform 0.8s var(--ease-out);
  pointer-events: none;
}
.equip-media img.cur { opacity: 1; transform: none; }
.equip-media img.out { opacity: 0; transform: translateX(-5%); }

.equip-info { position: relative; z-index: 3; margin-top: auto; max-width: 480px; }
.equip-price { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.equip-price b { color: var(--text); font-weight: 600; font-size: 15px; }
.equip-name {
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 600; letter-spacing: -0.01em;
  min-height: 1.2em;
}
.equip-info.swap .equip-name, .equip-info.swap .equip-price { opacity: 0; transform: translateY(10px); }
.equip-name, .equip-price {
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}

.equip-arrows {
  position: absolute; z-index: 4;
  right: clamp(0px, 4vw, 60px); top: 52%;
  display: flex; flex-direction: column; gap: 14px;
}
.arrow-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.arrow-btn:hover { color: var(--text); border-color: var(--muted); transform: scale(1.05); }
.arrow-btn svg { width: 15px; height: 15px; }

.equip-foot {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 40px; margin-top: 30px;
}

/* Price-list drawer */
.equip-drawer {
  position: absolute; z-index: 5;
  left: 0; top: 52px; bottom: 0;
  width: min(330px, 82vw);
  overflow: auto;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 0.65s var(--ease-out), opacity 0.5s var(--ease-soft);
  background: linear-gradient(90deg, rgba(16, 17, 20, 0.92) 55%, rgba(16, 17, 20, 0.55) 88%, transparent);
  padding: 18px 34px 30px 0;
}
.s-equip.drawer-open .equip-drawer { clip-path: inset(0 0 0 0); opacity: 1; }
.equip-info { transition: opacity 0.3s var(--ease-soft); }
.s-equip.drawer-open .equip-info { opacity: 0; pointer-events: none; }
.equip-drawer td { padding: 5px 0; }
.s-equip.drawer-open .equip-drawer {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 36px), transparent);
}
.equip-drawer table { border-collapse: collapse; width: 100%; }
.equip-drawer td {
  font-size: 12.5px; padding: 7px 0;
  color: var(--muted);
  transition: opacity 0.25s, color 0.25s;
}
.equip-drawer td:last-child { text-align: right; white-space: nowrap; color: var(--faint); }
.equip-drawer td:last-child b { color: inherit; font-weight: 500; }
.equip-drawer tr { cursor: default; }
.equip-drawer tbody:hover tr { opacity: 0.38; }
.equip-drawer tbody tr:hover { opacity: 1; }
.equip-drawer tbody tr:hover td { color: var(--text); }
.equip-drawer tbody tr:hover td:last-child b { color: var(--red); }
.equip-drawer .fineprint { margin-top: 16px; }

/* ------------------------------------------------------------------ */
/* 05-06 Projects                                                      */
/* ------------------------------------------------------------------ */

.proj-year {
  position: absolute; z-index: 2;
  right: 34%; top: 130px;
  writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: 0.2em; color: var(--faint);
}

.proj-media {
  position: absolute; z-index: 1;
  left: 34%; top: 50%;
  transform: translateY(-52%);
  width: min(44vw, 640px);
  aspect-ratio: 4 / 3;
  max-height: 74vh;
}
.slat { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.slat .win { position: absolute; inset: 0; }
.slat .pic {
  position: absolute; top: 0; bottom: 0; width: 500%;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
}
.slat .win1 {
  clip-path: inset(101% 0 0 0);
  transition: clip-path 0.7s var(--ease-out) calc(0.35s + var(--sd, 0s));
}
.on .slat .win1 { clip-path: inset(0 0 0 0); }
.slat .win2 { clip-path: inset(101% 0 0 0); }
.slat .win2.go { transition: clip-path 0.6s var(--ease-out) var(--sd, 0s); clip-path: inset(0 0 0 0); }

.proj-thumb {
  position: absolute; z-index: 2;
  left: calc(34% + min(44vw, 640px) + 26px);
  top: 62%;
  width: 84px; aspect-ratio: 3/4; overflow: hidden;
}
.proj-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.85);
  transition: opacity 0.4s;
}
.proj-thumb .cap { font-size: 10px; color: var(--faint); margin-top: 8px; white-space: nowrap; }

.proj-meta { position: relative; z-index: 3; margin-top: 12vh; max-width: 330px; }
.proj-loc {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--muted); margin-bottom: 14px;
}
.proj-loc svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--text); }
.proj-desc { font-size: 15px; line-height: 1.55; margin-bottom: 14px; max-width: 260px; }
.proj-desc::after { content: ""; display: block; width: 18px; height: 2px; background: var(--red); margin-top: 14px; }
.proj-area { font-size: 12.5px; color: var(--muted); }
.proj-area b { color: var(--text); font-weight: 500; }

.proj-ctrl {
  position: relative; z-index: 3;
  margin-top: auto;
  display: flex; align-items: center; gap: 44px;
}
.proj-meta, .proj-ctrl { transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft); }
.proj-swap .proj-meta { opacity: 0; transform: translateY(10px); }

/* ------------------------------------------------------------------ */
/* 07 Contacts                                                         */
/* ------------------------------------------------------------------ */

.map-bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.5; pointer-events: none;
}
.map-bg svg { width: 100%; height: 100%; }
.s-contacts .inner { z-index: 1; }

.contact-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 40px; margin-top: 48px; max-width: 760px;
}
.contact-item .lab {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--text); margin-bottom: 10px; font-weight: 500;
}
.contact-item .lab svg { width: 13px; height: 13px; color: var(--muted); }
.contact-item p, .contact-item a { font-size: 13px; color: var(--muted); line-height: 1.55; }
.contact-item a:hover { color: var(--text); }

.form-zone { margin-top: auto; max-width: 640px; padding-bottom: 8px; }
.form-lab {
  position: relative; padding-left: 16px;
  font-size: 13.5px; font-weight: 500; margin-bottom: 26px;
}
.form-lab::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 3px; background: var(--red);
}

.cform .step { display: none; align-items: flex-end; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; }
.cform[data-step="1"] .step1 { display: flex; }
.cform[data-step="2"] .step2 { display: flex; }
.cform[data-step="3"] .step1, .cform[data-step="3"] .step2 { display: none; }

.field { display: flex; flex-direction: column-reverse; min-width: 180px; flex: 1; }
.field input, .field textarea {
  background: none; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 15px;
  padding: 8px 0 10px; border-radius: 0;
  resize: none;
}
.field textarea { min-height: 42px; max-height: 90px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }
.field label { font-size: 11px; color: var(--faint); margin-top: 8px; order: -1; }
.field input:focus + label, .field textarea:focus + label { color: var(--muted); }

.form-success { display: none; }
.cform[data-step="3"] .form-success { display: block; }
.form-success .ok {
  display: flex; align-items: center; gap: 14px;
  font-size: 16px; font-weight: 500;
}
.form-success .ok svg { width: 20px; height: 20px; color: var(--red); }
.form-success p { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.contact-foot { margin-top: 44px; }

/* ------------------------------------------------------------------ */
/* Mobile menu                                                         */
/* ------------------------------------------------------------------ */

.menu-panel {
  position: fixed; z-index: 180;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.55s var(--ease-out);
  display: flex; flex-direction: column;
  padding: 84px 30px 30px;
  visibility: hidden;
}
body.menu-open .menu-panel { transform: none; visibility: visible; }
.menu-panel nav { display: flex; flex-direction: column; gap: 4px; }
.menu-panel nav button {
  text-align: left; font-size: 15px; color: var(--muted);
  padding: 10px 0;
  opacity: 0; transform: translateX(24px);
  transition: opacity 0.4s var(--ease-soft), transform 0.5s var(--ease-out), color 0.25s;
  transition-delay: calc(0.08s + var(--i, 0) * 0.05s);
}
body.menu-open .menu-panel nav button { opacity: 1; transform: none; }
.menu-panel nav button:hover, .menu-panel nav button[aria-current="true"] { color: var(--text); }
.menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.menu-foot a { font-size: 13px; color: var(--muted); }

.menu-close {
  position: absolute; top: 24px; right: 22px;
  width: 38px; height: 38px; display: grid; place-items: center;
  color: var(--muted);
}
.menu-close svg { width: 17px; height: 17px; }

.menu-scrim {
  position: fixed; inset: 0; z-index: 170;
  background: rgba(11, 12, 14, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s;
}
body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }

/* Page nudge when menu opens */
.deck { transition: transform 0.55s var(--ease-out); }
body.menu-open .deck { transform: translateX(-56px); }

/* ------------------------------------------------------------------ */
/* Flow mode (mobile + reduced motion): titles/reveals via .on         */
/* handled by IntersectionObserver adding .on per section.             */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .proj-media { left: 40%; width: 48vw; }
  .proj-year { right: 8%; }
  .proj-thumb { left: auto; right: 0; top: auto; bottom: 120px; }
  .equip-media { width: 70vw; }
}

@media (max-width: 820px) {
  :root { --pad-x: 22px; }

  .side-nav, .next-hint, .chrome-phone { display: none; }
  .pager, .socials { display: none; }
  .grid-lines i:nth-child(odd) { border-left-color: rgba(42, 44, 49, 0.35); }

  .burger {
    display: grid; place-items: center;
    top: 18px; right: 14px;
    width: 44px; height: 44px;
    color: var(--text);
  }
  .burger svg { width: 20px; height: 20px; }
  .chrome-logo { top: 24px; }

  .slide { padding: 96px 22px 72px; min-height: 100svh; }

  .swipe-hint { display: flex; }

  .hero-media {
    right: -22px; left: -22px; width: auto; max-width: none;
    opacity: 0.8;
  }
  .hero-media img { object-position: 62% bottom; mask-image: none; -webkit-mask-image: none; }
  .hero-copy { margin-top: 12vh; margin-bottom: 0; }
  .hero-copy h1 { font-size: clamp(30px, 8.6vw, 40px); }

  .about-grid, .svc-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 38px; }
  .stats { flex-wrap: wrap; gap: 28px 36px; margin-top: 44px; }
  .svc-cols { gap: 30px 24px; }

  .equip-stage { flex-direction: column; align-items: stretch; }
  .equip-media {
    position: relative; left: 0; top: 0; transform: none;
    width: 100%; margin: 26px 0 10px;
  }
  .equip-arrows { position: static; flex-direction: row; margin: 10px 0 18px; }
  .equip-drawer {
    position: relative; top: 0; width: 100%;
    background: none; padding-right: 0;
    display: none;
  }
  .s-equip.drawer-open .equip-drawer { display: block; }
  .equip-foot { flex-wrap: wrap; gap: 20px; }

  .proj-year { display: none; }
  .proj-media {
    position: relative; left: 0; top: 0; transform: none;
    width: 100%; margin-top: 30px;
  }
  .proj-thumb { position: relative; right: auto; bottom: auto; margin-top: 18px; }
  .proj-meta { margin-top: 26px; }
  .proj-ctrl { margin-top: 34px; }

  .contact-cols { grid-template-columns: 1fr; gap: 24px; margin-top: 34px; }
  .form-zone { margin-top: 44px; }
  .cform .step { flex-direction: column; align-items: stretch; }

  body.menu-open .deck { transform: translateX(-48px); }
}

/* ------------------------------------------------------------------ */
/* Reduced motion: fades only, no wipes, no bobbing                    */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .sec-title .txt { clip-path: none; transition: opacity 0.4s; opacity: 0; }
  .on .sec-title .txt { opacity: 1; }
  .sec-title .bar { transition: opacity 0.4s; transform: scaleY(1); opacity: 0; }
  .on .sec-title .bar { opacity: 1; }
  [data-r] { transform: none; transition: opacity 0.5s; }
  .slat .win1 { clip-path: none; transition: none; }
  .slat .win2 { transition: none !important; }
  .swipe-hint svg { animation: none; }
  .hero-media, .deck, .menu-panel, .equip-media img { transition: none; }
  body.preload .hero-media { transform: none; }
  .ring-btn svg.ring-track circle { transition: none; }
}
