/* EOTEC homepage — bento card layout */
:root {
  --page: #f1f0ee;
  --card: #ffffff;
  --ink: #111111;
  --body: #5d5d62;
  --mute: #b9b8b6;
  --line: #e7e5e1;
  --red: #b51c1d;
  --red-hi: #c9282a;
  --red-soft: #f7e5e5;
  --r: 22px;
  --r-sm: 14px;
  --gap: 8px;
  --pad: clamp(22px, 4vw, 60px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--page); color: var(--ink); font: 400 16px/1.5 Geist, Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { padding: 0 var(--gap); }
.card { background: var(--card); border-radius: var(--r); margin-bottom: var(--gap); position: relative; overflow: hidden; }
.h-xl { font-weight: 500; font-size: clamp(40px, 5.3vw, 80px); line-height: 1.02; letter-spacing: -.035em; }
.h-lg { font-weight: 500; font-size: clamp(30px, 3vw, 46px); line-height: 1.12; letter-spacing: -.03em; }
.h-md { font-weight: 500; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -.02em; }
.small { font-size: 13px; line-height: 1.45; color: var(--body); }
.mute { color: var(--mute); }
.red { color: var(--red); }

/* Pill button */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 20px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .25s, transform .25s var(--ease);
}
.pill .ar { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; transition: transform .35s var(--ease); }
.pill .ar svg { width: 12px; height: 12px; }
.pill:hover { background: var(--red-hi); }
.pill .ar { overflow: hidden; }
.pill .ar svg { transition: transform .45s var(--ease); }
.pill:hover .ar svg { animation: arrow-out .5s var(--ease); }
@keyframes arrow-out { 0% { transform: none; } 45% { transform: translate(140%, -140%); } 46% { transform: translate(-140%, 140%); } 100% { transform: none; } }
.pill.sm { height: 36px; padding: 0 6px 0 16px; font-size: 13px; }
.pill.sm .ar { width: 24px; height: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--page); font-size: 12px; color: var(--body); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.circ { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .35s var(--ease), background .25s; }
.circ svg { width: 16px; height: 16px; }
.circ:hover { transform: rotate(45deg); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; transition: transform .45s var(--ease), box-shadow .3s; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px calc(var(--gap) + 18px); background: #fff; }
.brand { display: flex; align-items: center; }
.brand .logo { width: 184px; height: auto; }
.foot .brand .logo { width: 220px; }
.nav ul { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav ul a { color: var(--ink); opacity: .85; transition: opacity .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 30px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 16px; height: 1.6px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-5px) rotate(-45deg); }

/* Hero */
.hero { min-height: clamp(560px, 39vw, 760px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px, 4.4vw, 64px) var(--pad); color: #fff; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .45) 38%, rgba(10, 10, 10, 0) 70%), linear-gradient(0deg, rgba(10, 10, 10, .45), transparent 40%); }
.hero h1 { max-width: 10.5em; }
.hero p { max-width: 400px; margin: 22px 0 30px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.proof { display: flex; align-items: center; gap: 12px; margin-top: 60px; width: fit-content; max-width: 46%; }
.faces { display: flex; }
.faces span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; overflow: hidden; margin-left: -10px; background: #ddd; }
.faces span:first-child { margin-left: 0; }
.faces img { width: 100%; height: 100%; object-fit: cover; }
.proof b { display: block; font-size: 14px; font-weight: 600; }
.proof small { font-size: 12px; color: rgba(255, 255, 255, .78); }

/* Intro */
.intro { padding: var(--pad); display: grid; grid-template-columns: 1fr 2.1fr; gap: 40px 60px; min-height: 560px; }
.stat-mini { display: grid; gap: 14px; align-content: start; }
.stat-mini .faces span { border-color: #fff; width: 40px; height: 40px; }
.stat-mini .num { display: flex; align-items: baseline; gap: 8px; }
.stat-mini .num b { font-size: 30px; font-weight: 500; color: var(--mute); }
.stat-mini .num small { font-size: 11px; color: var(--mute); line-height: 1.2; }
.intro .h-md { max-width: 22em; }
.intro-foot { grid-column: 1 / -1; align-self: end; display: grid; grid-template-columns: 1fr repeat(3, minmax(0, .7fr)); gap: 30px; padding-top: 40px; }
.link-ar { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.link-ar svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.link-ar:hover svg { transform: rotate(45deg); }
.intro-foot p { font-size: 13px; color: var(--body); padding-top: 14px; position: relative; }
.intro-foot p::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }

/* Duo */
.duo { display: grid; grid-template-columns: 1.45fr 1fr; gap: var(--gap); }
.duo .card { min-height: 380px; margin: 0 0 var(--gap); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 1s var(--ease); }
.visit:hover > img { transform: scale(1.04); }
.visit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 10, .7), transparent 50%); }
.visit > * { position: relative; z-index: 1; }
.visit .row, .offer .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.duo h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.duo .row p { font-size: 12px; color: rgba(255, 255, 255, .8); margin-top: 6px; }
.offer { background: var(--red) !important; }
.offer .top { display: flex; justify-content: space-between; }
.offer .ico { width: 46px; height: 46px; color: #fff; }
.offer .circ { background: rgba(255, 255, 255, .16); color: #fff; }

/* Services */
.services { padding: var(--pad); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.services .h-lg { position: sticky; top: 100px; align-self: start; }
.svc-list { display: grid; gap: 12px; }
.svc { display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .03); transition: border-color .3s, transform .35s var(--ease), box-shadow .3s; }
.svc:hover { border-color: rgba(181, 28, 29, .35); transform: translateX(4px); box-shadow: 0 8px 26px rgba(181, 28, 29, .08); }
.svc .th { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--page); }
.svc .th img { width: 100%; height: 100%; object-fit: cover; }
.svc h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.svc p { font-size: 13px; color: var(--body); max-width: 36em; }
.svc .go { width: 34px; height: 34px; border-radius: 50%; background: var(--page); display: grid; place-items: center; transition: background .3s, color .3s; }
.svc .go svg { width: 12px; height: 12px; }
.svc:hover .go { background: var(--red); color: #fff; }

/* Testimonial band */
.band { background: var(--red) !important; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: center; color: #fff; }
.band .pic { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1.25; }
.band .pic img { width: 100%; height: 100%; object-fit: cover; }
.band .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(181, 28, 29, .55), rgba(181, 28, 29, .12) 60%); mix-blend-mode: multiply; }
.band .badge { position: absolute; z-index: 1; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.band .badge svg { width: 14px; height: 14px; color: var(--red); }
.band blockquote { font-size: clamp(22px, 2vw, 30px); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }
.band blockquote span { color: rgba(255, 255, 255, .45); }
.band .note { font-size: 13px; color: rgba(255, 255, 255, .82); margin: clamp(30px, 6vw, 90px) 0 10px; max-width: 30em; }
.band .who { font-size: 12px; color: rgba(255, 255, 255, .7); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 11px; }

/* Team */
.team { padding: var(--pad); text-align: center; }
.team .h-lg { margin: 14px 0 40px; }
.team-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; text-align: left; position: relative; }
.team-track::-webkit-scrollbar { display: none; }
.member { scroll-snap-align: start; }
.member .ph { aspect-ratio: .83; border-radius: var(--r-sm); overflow: hidden; background: #ececea; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.member:hover .ph img { transform: scale(1.04); }
.member .meta { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 2px 0; }
.member h3 { font-size: 15px; font-weight: 600; }
.member small { font-size: 12px; color: var(--body); }
.member .meta svg { width: 12px; height: 12px; margin-top: 4px; }
.team-wrap { position: relative; }
.team-next { position: absolute; right: 14px; top: 42%; z-index: 2; box-shadow: 0 6px 20px rgba(0, 0, 0, .1); }
.promise { max-width: 760px; margin: 50px auto 26px; }
.promise .mute { color: #cfcdca; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.stats .card { margin: 0 0 var(--gap); min-height: 290px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.stats b { font-size: clamp(48px, 5vw, 76px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stats b sup { font-size: .4em; color: var(--red); vertical-align: top; margin-left: 4px; }
.stats p { font-size: 14px; color: var(--body); max-width: 18em; }
.stats .lbl { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--body); }
.stats .lbl i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Words (testimonials) */
.words { padding: var(--pad) 0; text-align: center; }
.words .h-lg { margin: 14px 0 50px; }
.strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-bottom: 60px; }
.strip-track { display: flex; gap: 14px; width: max-content; animation: slide 50s linear infinite; }
.strip-track img { width: 260px; height: 200px; object-fit: cover; border-radius: var(--r-sm); }
.strip-track img:nth-child(odd) { margin-top: 40px; }
@keyframes slide { to { transform: translateX(calc(-50% - 7px)); } }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 var(--pad); text-align: left; }
.quote .ph { aspect-ratio: 2.3; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 18px; background: #ececea; }
.quote .ph img { width: 100%; height: 100%; object-fit: cover; }
.quote p { font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.quote b { display: block; font-size: 12px; font-weight: 600; }
.quote small { font-size: 11px; color: var(--body); }
.quote.dim { opacity: .3; }

/* CTA */
.cta { display: grid; grid-template-columns: 1fr 2.2fr; gap: var(--gap); }
.cta .card { margin: 0 0 var(--gap); min-height: 300px; }
.cta .pic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cta .go { background: var(--red); color: #fff; padding: clamp(26px, 3vw, 46px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.cta .go h2 span { color: rgba(255, 255, 255, .5); }
.cta .go .pill { background: #fff; color: var(--red); align-self: flex-start; }
.cta .go .pill .ar { background: var(--red-soft); }

/* Footer */
.foot { padding: var(--pad); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot .brand { margin-bottom: 16px; }
.foot p { font-size: 13px; color: var(--body); max-width: 24em; }
.foot h4 { font-size: 12px; font-weight: 500; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.foot li { margin-bottom: 9px; font-size: 13px; }
.foot li a { transition: color .2s; }
.foot li a:hover { color: var(--red); }
.foot .bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--body); }
.nl { display: flex; gap: 6px; margin-top: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; }
.nl input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px; font: inherit; font-size: 13px; outline: none; }
.nl .msg { font-size: 12px; color: var(--body); margin-top: 8px; min-height: 18px; }

/* Reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .intro, .services, .band { grid-template-columns: 1fr; }
  .intro { min-height: 0; }
  .intro-foot { grid-template-columns: 1fr 1fr; }
  .intro-foot .link-ar { grid-column: 1 / -1; }
  .services .h-lg { position: static; }
  .team-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote.dim { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
/* Six menu items need the collapsed nav earlier */
@media (max-width: 1180px) {
  .nav ul { position: fixed; inset: 64px 8px auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: var(--r); background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .1); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .nav ul a { display: block; padding: 14px 12px; font-size: 16px; opacity: 1; }
  .nav.open ul { opacity: 1; visibility: visible; transform: none; }
  .burger { display: grid; }
  .nav-right { gap: 10px; }
  .nav-right .pill { display: none; }
}
@media (max-width: 760px) {
  .nav ul { position: fixed; inset: 64px 8px auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border-radius: var(--r); background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .1); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .nav ul a { display: block; padding: 14px 12px; font-size: 16px; opacity: 1; }
  .nav.open ul { opacity: 1; visibility: visible; transform: none; }
  .burger { display: grid; }
  .nav-right { gap: 10px; }
  .nav-right .pill { display: none; }
  .hero { min-height: 640px; }
  .hero::before { background: linear-gradient(0deg, rgba(10, 10, 10, .78), rgba(10, 10, 10, .3)); }
  .duo, .cta, .stats { grid-template-columns: 1fr; }
  .duo .card { min-height: 320px; }
  .intro-foot { grid-template-columns: 1fr; gap: 18px; }
  .svc { grid-template-columns: 52px 1fr; gap: 14px; padding: 14px; }
  .svc .th { width: 52px; height: 52px; }
  .svc .go { display: none; }
  .team-track { grid-auto-columns: 78%; }
  .team-next { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .strip-track img { width: 180px; height: 150px; }
  .stats .card { min-height: 200px; }
  .cta .pic { min-height: 220px; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ===== Enhancements ===== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }
.nav.hide { transform: translateY(-100%); }
.nav.solid { box-shadow: 0 1px 0 var(--line); }
.nav .burger { background: var(--page); }
.nav ul a { position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }

/* Hero spec card + scroll cue */
.hero { position: relative; }
.spec { position: absolute; right: var(--pad); bottom: clamp(30px, 4.4vw, 64px); display: grid; grid-template-columns: repeat(3, auto); gap: 28px; padding: 18px 24px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.spec small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); margin-bottom: 4px; }
.spec b { font-size: 18px; font-weight: 500; white-space: nowrap; }
.spec div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .22); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Standards ticker */
.ticker { padding: 18px 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ticker-track span::after { content: ""; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Scroll-filled statements */
.fill .w { color: #d8d6d2; transition: color .35s ease; }
.fill .w.lit { color: var(--ink); }
.fill .red .w.lit { color: var(--red); }
.fill .mute .w.lit { color: #a5a3a0; }

/* Services preview */
.svc-side { position: sticky; top: 100px; align-self: start; display: grid; gap: 28px; }
.services .h-lg { position: static; }
.svc-preview { position: relative; aspect-ratio: 1.1; border-radius: 18px; overflow: hidden; background: var(--page); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.svc-preview img.on { opacity: 1; transform: none; }
.svc-count { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12px; color: var(--body); }
.svc-count b { color: var(--ink); font-weight: 600; }
.svc.active { border-color: rgba(181, 28, 29, .35); box-shadow: 0 8px 26px rgba(181, 28, 29, .08); }
.svc.active .go { background: var(--red); color: #fff; }

/* Offer card: swinging hook */
.offer .ico path:last-child { transform-origin: 23px 16px; animation: swing 3.2s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.offer { transition: transform .4s var(--ease); }
.offer:hover { transform: translateY(-3px); }

/* Card hover lift */
.stats .card, .quote { transition: transform .4s var(--ease), box-shadow .4s; }
.stats .card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .06); }
.quote .ph img { transition: transform 1s var(--ease); }
.quote:hover .ph img { transform: scale(1.05); }


@media (max-width: 1024px) {
  .svc-side { position: static; }
  .svc-preview { display: none; }
  .spec { position: static; margin-top: 26px; align-self: flex-start; }
  .hero { justify-content: flex-end; gap: 30px; }
  .proof { margin-top: 20px; max-width: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 760px) {
  .spec { grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 14px 18px; }
  .spec div + div { padding-left: 0; border-left: 0; }
  .spec div:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .fill .w { color: inherit; }
}

/* Keep anchor targets clear of the sticky nav */
#services, #lifting-equipment, #intro { scroll-margin-top: 90px; }

/* ===================== Inner pages ===================== */
/* Page hero */
.p-hero { min-height: clamp(420px, 30vw, 560px); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(30px, 4vw, 60px) var(--pad); color: #fff; isolation: isolate; }
.p-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 18s ease-out both; }
.p-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 10, 10, .78), rgba(10, 10, 10, .2) 70%), linear-gradient(100deg, rgba(10, 10, 10, .45), transparent 60%); }
.p-hero.plain { color: var(--ink); min-height: 0; padding-top: clamp(60px, 7vw, 110px); }
.p-hero.plain::before { display: none; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); margin-bottom: 18px; }
.p-hero.plain .crumbs { color: var(--body); }
.crumbs a:hover { color: #fff; }
.p-hero.plain .crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { opacity: .6; }
.p-hero h1 { max-width: 14em; }
.p-hero .lead { max-width: 560px; margin-top: 18px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.p-hero.plain .lead { color: var(--body); }

/* In-page tabs */
.tabs { position: sticky; top: 80px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 10px; scrollbar-width: none; transition: top .45s var(--ease); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--page); transition: background .25s, color .25s; }
.tabs a:hover { background: var(--red); color: #fff; }
.nav.hide ~ main .tabs { top: 8px; }

/* Product section */
.prod { padding: var(--pad); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 70px); align-items: start; scroll-margin-top: 150px; }
.prod.flip .prod-media { order: 2; }
.prod-media { display: grid; gap: var(--gap); position: sticky; top: 150px; }
.prod-media .main { border-radius: 18px; overflow: hidden; aspect-ratio: 1.15; background: var(--page); }
.prod-media .main img, .prod-media .row img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.prod-media .main:hover img { transform: scale(1.04); }
.prod-media .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.prod-media .row div { border-radius: 14px; overflow: hidden; aspect-ratio: 1.4; }
.prod .num { font-size: 13px; color: var(--red); font-weight: 600; letter-spacing: .06em; }
.prod h2 { margin: 10px 0 18px; }
.prod .desc { font-size: 16px; line-height: 1.65; color: var(--body); }
.prod .desc + .desc { margin-top: 12px; }
.variants { display: grid; gap: 10px; margin: 28px 0; }
.variant { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .3s, box-shadow .3s; }
.variant:hover { border-color: rgba(181, 28, 29, .35); box-shadow: 0 8px 26px rgba(181, 28, 29, .07); }
.variant h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.variant h3::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); flex: none; }
.variant p { font-size: 14px; color: var(--body); line-height: 1.6; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 28px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--body); width: 42%; }
.spec-table td { font-weight: 500; }
.chiplist { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.chiplist span { padding: 7px 14px; border-radius: 999px; background: var(--page); font-size: 13px; }

/* Cards grid */
.grid-head { padding: var(--pad) var(--pad) 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.grid-head p { max-width: 420px; color: var(--body); font-size: 15px; }
.cards { padding: 34px var(--pad) var(--pad); display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 16px; }
.tile { border-radius: 18px; overflow: hidden; background: var(--page); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .07); }
.tile .ph { aspect-ratio: 1.35; overflow: hidden; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover .ph img { transform: scale(1.05); }
.tile .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.tile h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tile p { font-size: 14px; color: var(--body); line-height: 1.55; }
.tile .meta { font-size: 12px; color: var(--body); display: flex; gap: 10px; align-items: center; }
.tile .meta b { color: var(--red); font-weight: 600; }
.icon-tile { padding: 28px; border-radius: 18px; background: var(--page); display: grid; gap: 12px; align-content: start; }
.icon-tile .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; }
.icon-tile .ic svg { width: 22px; height: 22px; }
.icon-tile h3 { font-size: 18px; font-weight: 600; margin-top: 8px; }
.icon-tile p { font-size: 14px; color: var(--body); line-height: 1.6; }

/* Process steps */
.steps { padding: var(--pad); }
.steps ol { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.steps li { counter-increment: s; padding: 26px 24px; border-radius: 18px; background: var(--page); position: relative; }
.steps li::before { content: "0" counter(s); display: block; font-size: 40px; font-weight: 500; letter-spacing: -.03em; color: var(--red); margin-bottom: 40px; }
.steps li h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.steps li p { font-size: 14px; color: var(--body); line-height: 1.55; }

/* Standards list */
.std-list { padding: var(--pad); display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.std-list ul { display: grid; }
.std-list li { display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.std-list li b { font-weight: 700; }
.std-list li b em { font-style: normal; color: var(--red); }
.std-list li span:last-child { font-size: 12px; color: var(--body); padding: 4px 10px; border-radius: 999px; background: var(--page); }

/* Catalog */
.cat-feature { padding: var(--pad); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.cat-cover { display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .14), 0 0 0 1px var(--line); transform: rotate(-2deg); transition: transform .6s var(--ease); background: #fff; }
.cat-cover:hover { transform: rotate(0) scale(1.02); }
.cat-cover img { width: 100%; }
.cat-feature .facts { display: flex; flex-wrap: wrap; gap: 26px; margin: 26px 0 30px; }
.cat-feature .facts div { display: grid; gap: 2px; }
.cat-feature .facts small { font-size: 12px; color: var(--body); text-transform: uppercase; letter-spacing: .06em; }
.cat-feature .facts b { font-size: 17px; font-weight: 600; }
.pages { padding: 0 var(--pad) var(--pad); display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pages a { display: block; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.pages a:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line), 0 18px 34px rgba(0, 0, 0, .1); }
.pages img { width: 100%; aspect-ratio: .713; object-fit: cover; }
.pages span { display: block; padding: 10px 12px; font-size: 12px; color: var(--body); }
.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 820px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 10, 10, .78); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 10px; }
.lb-close { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 22px; line-height: 1; }

/* Forms */
.req { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req .full { grid-column: 1 / -1; }
.req label { display: grid; gap: 6px; font-size: 13px; color: var(--body); }
.req input, .req select, .req textarea { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .25s; }
.req textarea { height: 110px; padding-top: 12px; resize: vertical; }
.req input:focus, .req select:focus, .req textarea:focus { outline: none; border-color: var(--red); }
.req .req-msg { grid-column: 1 / -1; font-size: 13px; color: var(--body); min-height: 18px; }
.req .pill { justify-self: start; }
.form-card { padding: var(--pad); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 80px); }

/* Blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad); margin-top: 28px; }
.chips button { padding: 9px 16px; border-radius: 999px; background: var(--page); font-size: 13px; font-weight: 500; transition: background .25s, color .25s; }
.chips button[aria-pressed="true"], .chips button:hover { background: var(--ink); color: #fff; }
.post-feature { display: grid; grid-template-columns: 1.3fr 1fr; }
.post-feature .ph { min-height: 420px; position: relative; overflow: hidden; }
.post-feature .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-feature:hover .ph img { transform: scale(1.04); }
.post-feature .body { padding: var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.post-feature .body p { color: var(--body); }
.tile[hidden] { display: none; }

/* Article */
.article { padding: clamp(40px, 6vw, 90px) var(--pad); }
.article .inner { max-width: 760px; margin: 0 auto; }
.article .inner > * + * { margin-top: 18px; }
.article h2 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin-top: 44px !important; }
.article h3 { font-size: 20px; font-weight: 600; margin-top: 30px !important; }
.article p, .article li { font-size: 17px; line-height: 1.75; color: #3f3f44; }
.article ul { padding-left: 20px; display: grid; gap: 8px; list-style: disc; }
.article li::marker { color: var(--red); }
.article figure { margin: 40px -8% !important; border-radius: 18px; overflow: hidden; }
.article figure img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.article .callout { padding: 24px 26px; border-radius: 16px; background: var(--red-soft); border-left: 4px solid var(--red); font-size: 16px; }
.article .meta-row { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--body); }
.article .meta-row .tag { padding: 5px 12px; border-radius: 999px; background: var(--page); color: var(--ink); font-weight: 500; }

@media (max-width: 1024px) {
  .prod, .cat-feature, .form-card, .std-list, .post-feature { grid-template-columns: 1fr; }
  .prod.flip .prod-media { order: 0; }
  .prod-media { position: static; }
  .cards { --cols: 2 !important; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .pages { grid-template-columns: repeat(3, 1fr); }
  .cat-cover { max-width: 380px; }
  .tabs { top: 70px; }
  .std-list li { grid-template-columns: 130px 1fr auto; }
}
@media (max-width: 760px) {
  .cards { --cols: 1 !important; }
  .steps ol { grid-template-columns: 1fr; }
  .steps li::before { margin-bottom: 16px; }
  .pages { grid-template-columns: 1fr 1fr; }
  .req { grid-template-columns: 1fr; }
  .post-feature .ph { min-height: 260px; }
  .article figure { margin: 30px 0 !important; }
  .std-list li { grid-template-columns: 1fr auto; }
  .std-list li span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--body); font-size: 14px; }
  .p-hero { min-height: 420px; }
}
