/* RS Contractors — mobile-first. Brand: charcoal #3A3A3D + brick red #A0242A (their Elementor globals),
   logo red #EC3138 for the mark and decorative accents only. */
@font-face { font-family: "Oswald"; src: url("/assets/fonts/oswald-wght.bd73278ee0.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.7d93459d86.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500.cd36de204a.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.f4e80d9dfd.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --ink: #1F1F21;
  --char: #3A3A3D;
  --char-2: #2C2C2F;
  --char-3: #47474B;
  --red: #A0242A;
  --red-dk: #8A1E23;
  --red-logo: #EC3138;
  --red-ondark: #F0484F;
  --steel: #A7A9AC;
  --paper: #F5F5F3;
  --paper-2: #EEEEF1;
  --white: #FCFCFB;
  --text: #1C1C1E;
  --muted: #5A5A5E;
  --ondark: #C9C9CC;
  --line: #DCDCE0;
  --line-dark: rgba(255, 255, 255, .12);
  --nav-h: 64px;
  --gut: 1.5rem;
  --wrap: 1200px;
  --r: 8px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font-d: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-b: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gut: 2rem; } }
@media (min-width: 1024px) { :root { --nav-h: 76px; --gut: 2.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.7 var(--font-b); overflow-x: clip; -webkit-font-smoothing: antialiased; }
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1rem; max-width: 65ch; }
h1, h2, h3 { margin: 0; font-family: var(--font-d); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--red-logo); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--red); color: #fff; padding: .75rem 1rem; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 1rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- type ---------- */
.h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 500; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font: 600 .875rem/1.4 var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--red-ondark); }
.sec-lead { font-size: 1.0625rem; color: var(--muted); margin-top: 1rem; }
.sec--dark .sec-lead, .sec--dark p { color: var(--ondark); }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .85rem 1.6rem; border-radius: 4px; border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; will-change: transform; }
.btn .ico--arrow { transition: transform .25s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(4px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(160, 36, 42, .8); }
.btn--red:hover { background: var(--red-dk); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--dark { background: var(--char); color: #fff; }
.btn--dark:hover { background: var(--ink); }
.btn--line { border-color: var(--char); color: var(--char); background: transparent; }
.btn--line:hover { background: var(--char); color: #fff; }
.btn--lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
@media (max-width: 479px) { .btns > .btn { width: 100%; } }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; color: var(--red); text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }
.iconbtn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--char); background: transparent; color: var(--char); cursor: pointer; transition: background-color .2s, color .2s; }
.iconbtn:hover { background: var(--char); color: #fff; }
.iconbtn .ico { width: 22px; height: 22px; }

.checks { display: grid; gap: .75rem; margin: 1.5rem 0 0; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks .ico--check { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--red); color: #fff; margin-top: .1rem; }
.checks--sm { gap: .5rem; font-size: .9375rem; }
.checks--sm .ico--check { width: 22px; height: 22px; padding: 3px; }
.tag { display: inline-block; padding: .3rem .7rem; border-radius: 3px; background: var(--red); color: #fff; font: 600 .875rem/1.3 var(--font-b); letter-spacing: .08em; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tags li { padding: .4rem .8rem; border-radius: 99px; background: var(--paper-2); font-size: .9375rem; }

/* ---------- sections ---------- */
.sec { padding: 4rem 0; position: relative; }
@media (min-width: 1024px) { .sec { padding: 6.5rem 0; } }
.sec--alt { background: var(--paper-2); }
.sec--dark { background: var(--ink); color: #fff; }
.sec-head { margin-bottom: 2.5rem; max-width: 760px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .sec-lead { margin-left: auto; margin-right: auto; }
.sec-head--split { max-width: none; display: grid; gap: 1rem; align-items: end; }
.sec-head--split .eyebrow { grid-column: 1 / -1; margin: 0; }
.sec-head--split .btn { justify-self: start; }
@media (min-width: 768px) { .sec-head--split { grid-template-columns: minmax(0, 1fr) auto; } .sec-head--split .btn { justify-self: end; } }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); background: rgba(31, 31, 33, .82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line-dark); transition: background-color .3s, box-shadow .3s; color: #fff; }
.nav.is-scrolled { background: rgba(31, 31, 33, .96); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.nav__bar { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; padding: 0 max(.75rem, env(safe-area-inset-left)) 0 max(.75rem, env(safe-area-inset-right)); max-width: calc(1400px + 2 * var(--gut)); margin: 0 auto; }
.nav__call { justify-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.nav__call .ico { width: 22px; height: 22px; }
.brand { display: block; justify-self: center; color: #fff; text-decoration: none; padding: 6px 4px; }
.brand .lg { height: 38px; width: auto; aspect-ratio: 1774 / 510; overflow: visible; }
.burger { justify-self: end; align-self: center; width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s, width .3s var(--ease); }
.burger span:nth-child(2) { width: 16px; }
.burger:hover span:nth-child(2) { width: 24px; }
.nav__links, .nav__cta { display: none; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; }
.nav__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-logo)); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 1024px) {
  .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; padding: 0 var(--gut); }
  .nav__call, .burger { display: none; }
  .brand { justify-self: start; }
  .brand .lg { height: 46px; }
  .nav__links { display: flex; justify-self: center; align-items: center; gap: .25rem; }
  .nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; font-weight: 500; font-size: .9875rem; text-decoration: none; color: var(--ondark); transition: color .2s; }
  .nav__link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 6px; height: 2px; background: var(--red-logo); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
  .nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .nav__cta { display: inline-flex; }
  .nav__dd { position: relative; display: flex; align-items: center; }
  .nav__dd .nav__link { padding-right: .2rem; }
  .nav__dd .nav__link::after { right: .2rem; }
  .nav__ddbtn { display: grid; place-items: center; width: 32px; height: 44px; background: none; border: 0; color: var(--ondark); cursor: pointer; }
  .nav__ddbtn .ico { width: 16px; height: 16px; transition: transform .25s; }
  .nav__menu { position: absolute; top: calc(100% + 10px); left: -1rem; min-width: 260px; padding: .6rem; background: var(--char-2); border: 1px solid var(--line-dark); border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
  .nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .nav__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 6px; text-decoration: none; color: var(--ondark); font-size: .9375rem; transition: background-color .2s, color .2s, padding .25s var(--ease); }
  .nav__menu a:hover, .nav__menu a[aria-current="page"] { background: rgba(255, 255, 255, .06); color: #fff; padding-left: 1.2rem; }
  .nav__dd:hover .nav__menu, .nav__dd:focus-within .nav__menu, .nav__dd.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__dd:hover .nav__ddbtn .ico, .nav__dd.is-open .nav__ddbtn .ico { transform: rotate(180deg); }
}

/* Logo parts (fills set here; the paths in the sprite carry none) */
.lg-roof, .lg-word { fill: #F5F5F3; }
.lg-R, .lg-S { fill: var(--red-logo); }
.lg-dot { fill: var(--steel); }
.lg-glint { mix-blend-mode: overlay; }
html.motion .brand:not(.lg-on) .lg-anim { opacity: 0; }

/* Mobile menu (full-screen, centred — per Andy's hamburger rule) */
.menu { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 88px var(--gut) 150px; background: var(--ink); color: #fff; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu::before { content: ""; position: absolute; inset: auto -20% -30% 30%; height: 60%; background: var(--red); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); opacity: .18; pointer-events: none; }
.menu__brand { position: absolute; top: 14px; left: max(var(--gut), env(safe-area-inset-left)); }
.menu__brand .lg { height: 36px; width: auto; aspect-ratio: 1774 / 510; }
.menu__close { position: absolute; top: 10px; right: max(.75rem, env(safe-area-inset-right)); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; }
.menu__close .ico { width: 28px; height: 28px; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: .1rem; position: relative; }
.menu__link { display: flex; align-items: baseline; gap: .75rem; min-height: 48px; padding: .2rem 1rem; font: 500 clamp(1.9rem, 8vw, 2.6rem)/1.2 var(--font-d); text-decoration: none; color: #fff; }
.menu__link[aria-current="page"] { color: var(--red-ondark); }
.menu__n { font: 500 .8rem/1 var(--font-b); color: var(--steel); letter-spacing: .1em; }
.menu__svc { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .5rem; margin-top: 1.25rem; max-width: 340px; }
.menu__svc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; font-size: 1rem; color: var(--ondark); text-decoration: none; }
.menu__foot { position: absolute; left: 0; right: 0; bottom: max(1.5rem, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; padding: 0 var(--gut); }
.menu__foot .btn { flex: 1 1 140px; max-width: 240px; padding: .8rem 1rem; white-space: nowrap; font-size: .9375rem; }
@media (max-height: 640px) { .menu { justify-content: flex-start; padding-bottom: 2rem; } .menu__foot { position: static; margin-top: 1.5rem; } .menu__link { font-size: 1.75rem; min-height: 44px; } }
html.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .menu { display: none !important; } }

/* ---------- shared decorative motifs (the angled planes from their RS favicon) ---------- */
.planes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.plane { position: absolute; right: -2%; bottom: -1px; display: block; }
.plane--a { width: 62%; height: 46%; background: var(--red); clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .85; mix-blend-mode: multiply; }
.plane--b { width: 40%; height: 70%; background: var(--char); clip-path: polygon(100% 0, 100% 100%, 30% 100%); opacity: .55; }
.plane--c { width: 24%; height: 26%; background: var(--steel); clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: .14; }
.roofline { position: absolute; pointer-events: none; fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 3; vector-effect: non-scaling-stroke; }
.roofline__path { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.motion .roofline__path { animation: roof-draw 2.2s var(--ease) .2s both; }
@keyframes roof-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* First-viewport entrances: CSS keyframes (never scroll-triggered); headline rises, never fades (LCP) */
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln__in { display: block; }
html.motion .ln__in { animation: ln-rise 1s var(--ease) var(--d, 0s) both; }
@keyframes ln-rise { from { transform: translateY(105%); } to { transform: none; } }
html.motion .k-rise { animation: k-rise .8s var(--ease) var(--d, 0s) both; }
@keyframes k-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__poster img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(31, 31, 33, .72) 0%, rgba(31, 31, 33, .38) 30%, rgba(31, 31, 33, .55) 58%, rgba(31, 31, 33, .94) 100%),
  linear-gradient(90deg, rgba(31, 31, 33, .55), transparent 70%); }
.planes--hero { z-index: -1; }
.planes--hero .plane--a { width: 70%; height: 30%; }
.planes--hero .plane--b { width: 46%; height: 52%; }
.hero__roof { left: 50%; top: calc(var(--nav-h) + 4vh); width: 150vw; max-width: none; transform: translateX(-50%); z-index: -1; stroke: rgba(255, 255, 255, .09); }
.hero__inner { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 6rem; position: relative; }
.hero__h1 { font-size: clamp(2.9rem, 1.6rem + 7.4vw, 7rem); font-weight: 600; line-height: .98; letter-spacing: -0.015em; text-transform: none; margin: .4rem 0 0; }
.hero__h1 em { font-style: normal; color: var(--red-ondark); }
.hero__sub { margin: 1.25rem 0 0; font-size: 1.0625rem; color: #E4E4E6; max-width: 34rem; }
.hero__trust { display: grid; gap: .5rem; margin-top: 1.75rem; font-size: .9375rem; color: #E4E4E6; }
.hero__trust li { display: flex; align-items: center; gap: .55rem; }
.hero__trust .ico { width: 20px; height: 20px; color: var(--red-ondark); }
.dot-mark { width: 8px; height: 8px; flex: none; transform: rotate(45deg); background: var(--red-logo); }
.hero .eyebrow::before { display: none; }
.hero .eyebrow, .phero .eyebrow { color: #fff; }
.phero .eyebrow::before { background: var(--red-logo); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(236, 49, 56, .55); } 70% { box-shadow: 0 0 0 10px rgba(236, 49, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 49, 56, 0); } }
.hero__scroll { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: .4rem; min-width: 44px; min-height: 44px; font-size: .875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ondark); text-decoration: none; }
.hero__mouse { width: 22px; height: 34px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 12px; position: relative; }
.hero__mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.hero__vbtn { position: absolute; right: max(1rem, env(safe-area-inset-right)); top: calc(var(--nav-h) + .75rem); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(31, 31, 33, .45); color: #fff; cursor: pointer; }
.hero__vbtn .ico { width: 18px; height: 18px; }
@media (min-width: 480px) { .hero__trust { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; } }
@media (min-width: 768px) { .hero__scroll { display: flex; } .hero__inner { padding-bottom: 7rem; } .hero__roof { width: 110vw; } }
@media (min-width: 1024px) {
  .hero { align-items: center; }
  .hero__inner { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 6rem; }
  .hero__roof { width: 92vw; top: calc(var(--nav-h) + 6vh); }
  .hero__sub { font-size: 1.1875rem; }
}
/* Short phone viewports (Safari's real 375×553 on an SE): keep the primary CTA above the fold */
@media (max-width: 1023px) and (max-height: 700px) {
  .hero__inner { padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 5.4rem; }
  .hero__h1 { font-size: clamp(2.4rem, 7.4vh, 3.2rem); }
  .hero__sub { margin-top: .75rem; font-size: 1rem; line-height: 1.55; }
  .hero .btns { margin-top: 1.1rem; gap: .6rem; }
  .hero .btns > .btn { min-height: 48px; padding-top: .6rem; padding-bottom: .6rem; font-size: 1rem; }
  .hero__trust { margin-top: .9rem; }
  .hero__trust li:not(:first-child) { display: none; }
  .phero__inner { padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 5.4rem; }
  .phero__h1 { font-size: clamp(2rem, 6.2vh, 2.7rem); }
  .phero__lead { font-size: .9375rem; line-height: 1.5; margin-top: .5rem; }
  .phero .eyebrow { margin-bottom: .2rem; }
  .phero .btns { margin-top: 1rem; }
  .phero .btns > .btn { min-height: 48px; }
  .phero .btns > .btn--ghost { display: none; } /* the nav's call button covers it on short phones */
  .crumbs ol { margin-bottom: .4rem; }
}
@media (min-width: 1024px) and (max-height: 800px) {
  .hero__h1 { font-size: clamp(2.9rem, 1rem + 5.6vh + 2.4vw, 6rem); }
  .hero__inner { padding-bottom: 4.5rem; }
  .hero__trust { margin-top: 1.25rem; }
  .btns { margin-top: 1.4rem; }
}

/* ---------- trust marquee ---------- */
.trust { background: var(--char-2); color: #fff; padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.trust__label { margin: 0 auto 1.1rem; padding: 0 var(--gut); text-align: center; max-width: none; color: var(--ondark); font-size: .9375rem; }
.trust__label b { color: #fff; font-weight: 600; }
.mq { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq__row { display: flex; flex: none; gap: 1rem; padding-right: 1rem; animation: mq 42s linear infinite; }
html.motion-js .mq__row { animation: none; }
.mq__item { flex: none; width: 180px; height: 88px; display: grid; place-items: center; padding: .6rem 1rem; border-radius: 8px; background: #fff; }
.mq__img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
@keyframes mq { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .mq__row { animation: none; } .mq { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; } .mq__row[aria-hidden] { display: none; } .mq__row { flex-wrap: wrap; justify-content: center; } }

/* ---------- ABOUT (home) ---------- */
.about__grid { display: grid; gap: 3rem; }
.about__visual { position: relative; padding: 0 0 3rem 0; }
.about__main { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.4; }
.about__img { width: 100%; height: 100%; object-fit: cover; }
.about__main .about__img { height: 118%; }
.about__second { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.badge-rot { position: absolute; left: -6px; bottom: 6px; width: 120px; height: 120px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 20px 40px -18px rgba(160, 36, 42, .9); }
.badge-rot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-rot text { font: 600 13.5px var(--font-b); letter-spacing: 2.6px; fill: #fff; }
.badge-rot__c { font: 600 1.9rem/1 var(--font-d); }
.about__text .h2 { margin-bottom: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--paper); padding: 1.1rem 1rem; }
.stat__n { display: block; font: 600 clamp(2rem, 1.6rem + 1.6vw, 2.6rem)/1 var(--font-d); color: var(--red); font-variant-numeric: tabular-nums; }
.stat span:not([data-count]) { display: block; margin-top: .35rem; font-size: .875rem; line-height: 1.4; color: var(--muted); }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: center; }
  .about__visual { padding: 0 3rem 4rem 0; }
  .badge-rot { width: 148px; height: 148px; left: -40px; bottom: 30px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- SERVICES stack (CSS sticky — no JS pin; works on iPhone) ---------- */
.stack { display: grid; gap: 1.25rem; }
.stack__card { position: sticky; top: calc(var(--nav-h) + 12px + var(--i) * 8px); display: grid; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); transform-origin: 50% 0; }
.stack__media { position: relative; height: 170px; overflow: hidden; }
.stack__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack__body { padding: 1.4rem 1.4rem 1.2rem; }
.stack__n { font: 600 .875rem/1 var(--font-b); letter-spacing: .12em; color: var(--red); }
.stack__n i { font-style: normal; color: var(--muted); }
.stack__h { font-size: clamp(1.9rem, 1.5rem + 2vw, 3rem); margin: .5rem 0 .25rem; }
.stack__lead { font-weight: 600; color: var(--char); margin: 0 0 .4rem; font-size: .9375rem; }
.stack__p { color: var(--muted); margin-bottom: .25rem; font-size: .9375rem; }
.stack .checks { display: none; }
.stack__dim { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
@media (max-height: 600px) and (max-width: 1023px) { .stack__media { height: 120px; } .stack__lead { display: none; } }
@media (min-width: 640px) { .stack__media { height: 220px; } }
@media (min-width: 1024px) {
  .stack { gap: 2rem; }
  .stack__card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(520px, calc(100vh - var(--nav-h) - 80px)); top: calc(var(--nav-h) + 24px + var(--i) * 12px); }
  .stack__media { height: auto; }
  .stack__body { padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: center; }
  .stack .checks { display: grid; margin: 1rem 0 .75rem; }
  .stack__p { font-size: 1rem; }
}
@media (min-width: 1024px) and (max-height: 760px) { .stack__body { padding: 1.5rem 2.5rem; } .stack__h { font-size: 2.4rem; } .stack .checks { display: none; } }

/* ---------- statement (scroll-filled words) ---------- */
.statement { padding: 5rem 0; overflow: hidden; }
.statement__text { font: 600 clamp(2.6rem, 1.2rem + 7vw, 7.5rem)/1 var(--font-d); letter-spacing: -0.02em; margin: 0; max-width: none; }
.statement__text .w { color: #fff; }
.statement__text .w--red { color: var(--red-ondark); }
html.motion-js [data-fill] .w { color: rgba(255, 255, 255, .14); }
.statement__by { margin-top: 1.5rem; color: var(--steel) !important; font-size: 1rem; }
@media (min-width: 1024px) { .statement { padding: 9rem 0; } }

/* ---------- PROJECT cards / bento ---------- */
.pcard { position: relative; display: block; overflow: hidden; border-radius: 12px; color: #fff; text-decoration: none; background: var(--char); min-height: 300px; isolation: isolate; }
.pcard__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img, .pcard:focus-visible .pcard__img { transform: scale(1.06); }
.pcard__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 31, 33, 0) 30%, rgba(31, 31, 33, .88) 100%); transition: background .4s; }
.pcard:hover .pcard__shade { background: linear-gradient(180deg, rgba(31, 31, 33, .1) 10%, rgba(31, 31, 33, .92) 100%); }
.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; display: grid; gap: .5rem; justify-items: start; }
.pcard__title { font: 600 1.5rem/1.15 var(--font-d); }
.pcard__meta { display: flex; align-items: center; gap: .4rem; width: 100%; font-size: .875rem; color: #E4E4E6; }
.pcard__meta .ico { width: 16px; height: 16px; }
.pcard__go { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: #fff; }
.pcard__go .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.pcard:hover .pcard__go .ico { transform: translateX(4px); }
.bento { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento__item--1 { grid-column: 1 / -1; min-height: 420px; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 290px; gap: 1.25rem; }
  .bento__item--1 { grid-column: 1 / 8; grid-row: span 2; min-height: 0; }
  .bento__item--2 { grid-column: 8 / 13; }
  .bento__item--3 { grid-column: 8 / 13; }
  .bento__item--4, .bento__item--5, .bento__item--6 { grid-column: span 4; }
  .bento__item--1 .pcard__title { font-size: 2.4rem; }
  .bento__item--1 .pcard__body { padding: 2rem; }
}
.pgrid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } .pgrid .pcard { min-height: 340px; } }
.pcard.is-hidden { display: none; }

/* filters */
.filters { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .25rem 1rem; margin: 0 -.25rem 1.25rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: 99px; border: 1.5px solid #8E8E93; background: var(--white); cursor: pointer; font-weight: 500; font-size: .9375rem; transition: background-color .2s, color .2s, border-color .2s; }
.chip span { font-size: .875rem; color: var(--muted); }
.chip:hover { border-color: var(--char); }
.chip[aria-pressed="true"] { background: var(--char); border-color: var(--char); color: #fff; }
.chip[aria-pressed="true"] span { color: var(--steel); }
@media (min-width: 1024px) { .filters { flex-wrap: wrap; overflow: visible; } }

/* ---------- process ---------- */
.proc__wrap { display: grid; gap: 2.5rem; }
.proc__body { position: relative; }
.proc__steps { position: relative; display: grid; gap: 2.5rem; padding-left: 4.25rem; }
.proc__line { position: absolute; left: 1.45rem; top: .5rem; bottom: .5rem; width: 4px; height: calc(100% - 1rem); overflow: visible; }
.proc__track { stroke: rgba(255, 255, 255, .14); stroke-width: 4; vector-effect: non-scaling-stroke; }
.proc__fill { stroke: var(--red-logo); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.proc__step { position: relative; }
.proc__n { position: absolute; left: -4.25rem; top: -.2rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--char-2); border: 2px solid rgba(255, 255, 255, .2); font: 600 1rem/1 var(--font-d); color: #fff; transition: background-color .4s, border-color .4s; z-index: 1; }
.proc__step.is-lit .proc__n { background: var(--red); border-color: var(--red-logo); }
.proc__step .h3 { margin-bottom: .5rem; color: #fff; }
@media (min-width: 1024px) { .proc__wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 5rem; align-items: start; } .proc__head { position: sticky; top: calc(var(--nav-h) + 48px); } .proc__steps { gap: 4.5rem; padding-top: .5rem; } }

/* ---------- why ---------- */
.why__grid { display: grid; gap: 1rem; }
.why__card { position: relative; padding: 1.75rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; overflow: hidden; }
.why__card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.why__card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .45); border-color: transparent; }
.why__card:hover::after { transform: scaleX(1); }
.why__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.1rem; border-radius: 12px; background: rgba(160, 36, 42, .08); color: var(--red); }
.why__ico .ico { width: 30px; height: 30px; }
.why__card .h3 { margin-bottom: .5rem; }
.why__card p { color: var(--muted); margin: 0; font-size: .9875rem; }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

/* ---------- reviews ---------- */
.rev { overflow: hidden; }
.rev__head { display: grid; gap: 1rem; max-width: none; }
.rev__nav { display: flex; gap: .6rem; }
@media (min-width: 768px) { .rev__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .rev__head .eyebrow { grid-column: 1 / -1; } }
.rev__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 400px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: .5rem var(--gut) 1.5rem; scrollbar-width: none; overscroll-behavior-x: contain; }
.rev__track::-webkit-scrollbar { display: none; }
@media (min-width: 1280px) { .rev__track { padding-left: calc((100vw - var(--wrap)) / 2); scroll-padding-inline: calc((100vw - var(--wrap)) / 2); } }
.rev__card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 1.25rem; padding: 2rem 1.75rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: transform .3s var(--ease), box-shadow .3s; }
.rev__card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .45); }
.rev__card .ico--quote { width: 40px; height: 34px; color: var(--red); }
.rev__card blockquote { margin: 0; flex: 1; }
.rev__card blockquote p { font-size: 1.0625rem; font-style: italic; margin: 0; color: var(--char); }
.rev__card figcaption { display: flex; align-items: center; gap: .85rem; }
.rev__card figcaption b { display: block; }
.rev__card figcaption small { display: block; color: var(--muted); font-size: .875rem; }
.rev__av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--char); color: #fff; font: 600 1rem/1 var(--font-d); letter-spacing: .04em; }
.rev__card--org { background: var(--char); color: #fff; border-color: var(--char); }
.rev__card--org blockquote p { color: #F0F0F1; }
.rev__card--org figcaption small { color: var(--steel); }
.rev__card--org .rev__av { background: var(--red); }

/* ---------- memberships / clients ---------- */
.mem__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.mem__tile { flex: 0 0 calc(50% - .375rem); min-width: 0; }
.mem__tile { display: grid; place-items: center; height: 104px; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: transform .3s var(--ease), box-shadow .3s; }
.mem__tile:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -26px rgba(0, 0, 0, .5); }
.mem__img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.sec--dark .mem__tile { border-color: transparent; }
@media (min-width: 640px) { .mem__tile { flex-basis: calc((100% - 1.5rem) / 3); } }
@media (min-width: 1024px) { .mem__grid { gap: 1rem; } .mem__tile { flex-basis: calc((100% - 5rem) / 6); } }
.clients__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.clients__tile { display: grid; place-items: center; height: 130px; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.clients__img { max-height: 76px; width: auto; object-fit: contain; }
@media (min-width: 1024px) { .clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .clients__tile { height: 160px; } }

/* ---------- CTA banner ---------- */
.cta { position: relative; padding: 5rem 0; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.cta__media { position: absolute; inset: -12% 0; z-index: -3; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, rgba(31, 31, 33, .94), rgba(58, 58, 61, .82)); }
.planes--cta { z-index: -1; }
.cta__h { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5rem); max-width: 14ch; }
.cta__p { margin-top: 1.25rem; font-size: 1.125rem; color: #E4E4E6; }
@media (min-width: 1024px) { .cta { padding: 8rem 0; } }

/* ---------- page hero ---------- */
.phero { position: relative; min-height: 64vh; min-height: 64svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.phero__media { position: absolute; inset: 0; z-index: -3; }
.phero__img { width: 100%; height: 100%; object-fit: cover; }
html.motion .phero__img { animation: kb 14s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.phero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(31, 31, 33, .82) 0%, rgba(31, 31, 33, .62) 45%, rgba(31, 31, 33, .92) 100%); }
.phero .planes { z-index: -1; }
.phero .plane--a { width: 56%; height: 26%; }
.phero .plane--b { width: 36%; height: 44%; }
.phero__roof { left: 50%; top: calc(var(--nav-h) + 2rem); width: 140vw; max-width: none; transform: translateX(-50%); z-index: -1; }
.phero__inner { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 6rem; }
@media (min-width: 1024px) { .phero__inner { padding-bottom: 5rem; } }
.phero__h1 { font-size: clamp(2.5rem, 1.5rem + 5vw, 5.4rem); line-height: 1.02; margin: .3rem 0 0; max-width: 18ch; }
.phero__lead { margin: 1rem 0 0; font-size: 1.125rem; color: #E4E4E6; max-width: 40rem; }
@media (min-width: 1024px) { .phero { min-height: 72vh; } .phero__inner { padding-bottom: 5rem; } .phero__roof { width: 96vw; } }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .875rem; color: var(--ondark); margin-bottom: 1rem; }
.crumbs li { display: flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "/"; color: var(--steel); }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; margin: -6px 0; text-decoration: none; color: #fff; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ondark); }

/* ---------- service tiles ---------- */
.stiles { display: grid; gap: 1rem; }
.stile { position: relative; display: block; min-height: 340px; border-radius: 12px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: var(--char); }
.stile__media { position: absolute; inset: 0; z-index: -2; }
.stile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.stile:hover .stile__img { transform: scale(1.06); }
.stile__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 31, 33, .15), rgba(31, 31, 33, .92) 75%); }
.stile__body { position: absolute; inset: auto 0 0; padding: 1.5rem; display: grid; gap: .4rem; }
.stile__n { font: 600 .875rem/1 var(--font-b); letter-spacing: .14em; color: var(--red-ondark); }
.stile__name { font: 600 2rem/1.05 var(--font-d); }
.stile__short { font-size: .9375rem; color: #E4E4E6; }
.stile__go { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-weight: 600; }
.stile__go .ico { transition: transform .3s var(--ease); }
.stile:hover .stile__go .ico { transform: translateX(5px); }
@media (min-width: 640px) { .stiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .stiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } .stile { min-height: 440px; } .stiles--sm .stile { min-height: 360px; } }

/* ---------- service detail ---------- */
.sintro__grid { display: grid; gap: 3rem; }
.sintro__text .h2 { margin-bottom: 1.25rem; }
.sintro__visual { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; align-self: start; }
.sintro__img { width: 100%; height: 118%; object-fit: cover; }
.sintro__visual figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; }
.sintro__visual figcaption a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 52px; padding: .75rem 1rem; border-radius: 8px; background: rgba(31, 31, 33, .88); color: #fff; text-decoration: none; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 1024px) { .sintro__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 5rem; } .sintro__visual { position: sticky; top: calc(var(--nav-h) + 32px); } }
.sdeep__grid { display: grid; gap: 3rem; }
.sdeep .h2 { margin-bottom: 1.25rem; }
.sdeep__list { display: grid; gap: 1px; background: var(--line-dark); border-radius: 12px; overflow: hidden; align-self: start; }
.sdeep__list li { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem 1.5rem; background: var(--char-2); font: 500 1.375rem/1.25 var(--font-d); }
.sdeep__n { font: 600 .875rem/1 var(--font-b); color: #FF6B71; letter-spacing: .1em; }
@media (min-width: 1024px) { .sdeep__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: center; } }

/* ---------- about page ---------- */
.founder__grid { display: grid; gap: 3rem; }
.founder__photo { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); aspect-ratio: 707 / 720; max-width: 560px; }
.founder__img { width: 100%; height: 100%; object-fit: cover; }
.founder__tag { position: absolute; right: 1rem; bottom: 1rem; display: grid; padding: 1rem 1.25rem; background: var(--red); color: #fff; border-radius: 8px; line-height: 1.1; }
.founder__tag b { font: 600 2.4rem/1 var(--font-d); }
.founder__tag span { font-size: .875rem; }
.founder__name { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.founder__role { font-weight: 600; color: var(--red); margin: .5rem 0 1.25rem; }
@media (min-width: 1024px) { .founder__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 5rem; align-items: center; } }
.quals__grid { display: grid; gap: .75rem; }
.qual { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--char-2); border: 1px solid var(--line-dark); border-radius: 10px; color: #F0F0F1; }
.qual__logo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; padding: 6px; border-radius: 8px; background: #fff; }
.qual__logo img { max-height: 44px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .quals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.commit__wrap { max-width: 980px; }
.commit__q { margin: 0; }
.commit__text { font: 500 clamp(1.6rem, 1.1rem + 2.2vw, 2.7rem)/1.3 var(--font-d); max-width: none; color: var(--char); }
html.motion-js .commit__text .w { color: rgba(58, 58, 61, .18); }
.commit__by { margin-top: 1.5rem; color: var(--muted); }
.team__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tcard { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.tcard:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .45); }
.tcard__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.tcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tcard:hover .tcard__img { transform: scale(1.05); }
.tcard__yrs { position: absolute; left: .6rem; bottom: .6rem; display: grid; justify-items: center; min-width: 64px; padding: .5rem .6rem; border-radius: 8px; background: var(--red); color: #fff; line-height: 1; }
.tcard__yrs b { font: 600 1.6rem/1 var(--font-d); }
.tcard__yrs small { font-size: .875rem; margin-top: .2rem; }
.tcard__body { padding: 1rem 1rem 1.2rem; }
.tcard__body .h3 { font-size: 1.25rem; }
.tcard__body p { margin: .25rem 0 0; font-size: .9375rem; color: var(--muted); }
@media (min-width: 1024px) { .team__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } .tcard__body { padding: 1.25rem 1.4rem 1.5rem; } }

/* ---------- project detail ---------- */
.pdet__grid { display: grid; gap: 2.5rem; }
.prose p { margin-bottom: 1.1rem; }
.prose strong { color: var(--char); }
.prose__kicker { font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.2 var(--font-d); color: var(--char); margin: 1.5rem 0 1rem; }
.prose__kicker:first-child { margin-top: 0; }
.prose__lead { font-weight: 600; color: var(--char); }
.checks--prose { margin: 0 0 1.5rem; }
.pdet__aside { align-self: start; display: grid; gap: .75rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.facts { margin: 0 0 .5rem; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: .15rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts a { color: var(--red); display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) { .pdet__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 5rem; } .pdet__aside { position: sticky; top: calc(var(--nav-h) + 32px); } }
.gal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.gal__item { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--char); }
.gal__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.gal__item:hover .gal__img { transform: scale(1.06); }
@media (min-width: 768px) { .gal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) { .gal__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gal__grid li:first-child { grid-column: span 2; grid-row: span 2; } }
.pnav { display: grid; background: var(--char-2); }
.pnav__link { display: grid; gap: .4rem; padding: 2rem var(--gut); color: #fff; text-decoration: none; transition: background-color .3s; }
.pnav__link:hover { background: var(--char); }
.pnav__link + .pnav__link { border-top: 1px solid var(--line-dark); }
.pnav__dir { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.pnav__dir .ico { width: 18px; height: 18px; }
.pnav__t { font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem)/1.15 var(--font-d); }
.pnav__link--next { text-align: right; justify-items: end; }
@media (min-width: 768px) { .pnav { grid-template-columns: 1fr 1fr; } .pnav__link + .pnav__link { border-top: 0; border-left: 1px solid var(--line-dark); } .pnav__link { padding: 3rem var(--gut); } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(20, 20, 22, .96); padding: 4.5rem .75rem; }
.lb[hidden] { display: none; }
.lb__fig { display: grid; gap: .75rem; justify-items: center; max-width: 100%; }
.lb__img { max-width: min(100%, 1400px); max-height: calc(100vh - 10rem); max-height: calc(100svh - 10rem); width: auto; height: auto; border-radius: 6px; object-fit: contain; }
.lb__cap { color: var(--ondark); font-size: .9375rem; text-align: center; }
.lb .iconbtn { position: absolute; border-color: rgba(255, 255, 255, .4); color: #fff; background: rgba(31, 31, 33, .6); }
.lb .iconbtn:hover { background: #fff; color: var(--ink); }
.lb__close { top: 1rem; right: 1rem; }
.lb__prev { left: 1rem; bottom: 1rem; }
.lb__next { right: 1rem; bottom: 1rem; }
@media (min-width: 1024px) { .lb__prev, .lb__next { top: 50%; bottom: auto; margin-top: -24px; } .lb { padding: 4rem 6rem; } }

/* ---------- contact ---------- */
.contact__grid { display: grid; gap: 3rem; }
.qform header { margin-bottom: 1.75rem; }
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field span { font-weight: 600; font-size: .9375rem; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 52px; padding: .8rem 1rem; border: 1.5px solid #8E8E93; border-radius: 6px; background: var(--white); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--char); box-shadow: 0 0 0 3px rgba(160, 36, 42, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.form__err { margin: 0; color: var(--red); font-weight: 600; }
.cpanel { display: grid; gap: 1.25rem; align-content: start; }
.cpanel__wa { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: 12px; background: #0E7A3F; color: #fff; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.cpanel__wa:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(18, 140, 74, .9); }
.cpanel__wa > .ico:first-child { width: 40px; height: 40px; }
.cpanel__wa span { flex: 1; display: grid; }
.cpanel__wa b { font: 600 1.4rem/1.2 var(--font-d); }
.cpanel__wa small { font-size: .875rem; }
.cpanel__list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cpanel__list li { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--white); }
.cpanel__ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(160, 36, 42, .08); color: var(--red); }
.cpanel__list span:last-child { display: grid; min-width: 0; }
.cpanel__list small { font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cpanel__list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.cpanel__list a:hover { color: var(--red); }
.cpanel__areas { padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 4rem; } }
.map { position: relative; height: 420px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.map__btn { position: absolute; left: var(--gut); bottom: 1.25rem; }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: grid; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 4rem; background: var(--paper); }
.nf__code { font: 700 clamp(6rem, 4rem + 14vw, 14rem)/1 var(--font-d); color: var(--red); margin: 0; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--ink); color: var(--ondark); padding: 4rem 0 0; overflow: hidden; }
.foot__top { display: grid; gap: 2.5rem; }
.brand--foot { justify-self: start; padding: 0; }
.brand--foot .lg { height: 54px; }
.foot__strap { margin: 1rem 0 0; font: 500 .875rem/1.6 var(--font-b); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.foot__strap i { font-style: normal; color: var(--red-logo); }
.foot__about { margin-top: 1rem; font-size: .9375rem; }
.foot__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.foot__h { font: 600 1.15rem/1.2 var(--font-d); color: #fff; margin-bottom: .75rem; letter-spacing: .02em; }
.foot__col { display: grid; align-content: start; }
.foot__col a { display: flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; color: var(--ondark); transition: color .2s, transform .25s var(--ease); }
.foot__col a:hover { color: #fff; transform: translateX(3px); }
.foot__contact a { align-items: flex-start; padding: .4rem 0; line-height: 1.5; }
.foot__contact .ico { color: var(--red-ondark); margin-top: .15rem; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.25rem; padding-bottom: calc(1.25rem + 80px); border-top: 1px solid var(--line-dark); font-size: .875rem; }
.foot__base p { margin: 0; }
@media (min-width: 768px) { .foot__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .foot { padding-top: 6rem; } .foot__top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 3rem; } .foot__brand { grid-column: auto; } .foot__base { padding-bottom: 5.5rem; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: .6rem; height: 58px; min-width: 58px; padding: 0 1rem; border-radius: 29px; background: #0E7A3F; color: #fff; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .25s var(--ease), box-shadow .25s; }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-pulse 2.6s infinite; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); }
.wa-float__label { display: none; font-weight: 600; color: #fff; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (min-width: 1024px) { .wa-float__label { display: inline; } .wa-float { padding: 0 1.25rem 0 1rem; } }
html.menu-open .wa-float, html.lb-open .wa-float { opacity: 0; pointer-events: none; }
/* Very short phones (Safari 375×553): the hero's own WhatsApp CTA is on screen at the top, so the float
   waits for the first scroll instead of sitting on top of it. It is always there once you scroll. */
.wa-float { transition: transform .25s var(--ease), box-shadow .25s, opacity .25s; }
@media (max-width: 1023px) and (max-height: 700px) { html.at-top .wa-float { opacity: 0; transform: translateY(16px); pointer-events: none; } }

/* ---------- page wipe (outgoing only — never a loading screen) ---------- */
.wipe { position: fixed; inset: 0; z-index: 500; pointer-events: none; visibility: hidden; }
.wipe__panel, .wipe__bar { position: absolute; inset: 0; transform: translateY(101%); }
.wipe__bar { background: var(--red); }
.wipe__panel { background: var(--ink); }
html.is-leaving .wipe { visibility: visible; }
html.is-leaving .wipe__bar { transform: none; transition: transform .24s cubic-bezier(.7, 0, .3, 1); }
html.is-leaving .wipe__panel { transform: none; transition: transform .24s cubic-bezier(.7, 0, .3, 1) .04s; }

/* ---------- JS reveal gates (fail-open: only while html.motion, which the head script removes if GSAP never boots) ---------- */
html.motion [data-reveal]:not([data-done]) { opacity: 0; }
html.motion [data-reveal="up"]:not([data-done]) { transform: translateY(26px); }
html.motion [data-reveal="clip"]:not([data-done]) { opacity: 1; clip-path: inset(100% 0 0 0); }
html.motion [data-stagger]:not([data-done]) > * { opacity: 0; transform: translateY(22px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
