/* Tanndy demo — shared styles for /, /ru/ */
:root {
  --bg: #0b0c0e;
  --surface: #121418;
  --surface-2: #1a1d22;
  --line: #262a31;
  --text: #f1eee9;
  --muted: #9a9ea6;
  --red: #da251c;
  --red-hi: #f0473d;
  --paper: #f3efe8;
  --paper-2: #e9e3d9;
  --ink: #16171a;
  --ink-muted: #5d5f64;
  --radius: 4px;
  --wrap: 1240px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red-hi); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); margin: 16px 0 20px; }
h2 em, h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
section { padding: 112px 0; position: relative; }
.sec-head { margin-bottom: 56px; max-width: 760px; }
.light { background: var(--paper); color: var(--ink); }
.light .lead, .light .muted { color: var(--ink-muted); }
.light .eyebrow { color: var(--red); }

/* demo ribbon */
.demo-bar { background: #050506; color: #9a9ea6; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: .04em; border-bottom: 1px solid #1b1d21; }
.demo-bar strong { color: var(--red-hi); font-weight: 600; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,12,14,.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; gap: 32px; height: 74px; }
.brand img { width: 132px; }
.menu { display: flex; gap: 26px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c9c6c0; padding: 6px 0; transition: color .2s; }
.menu a:hover { color: #fff; }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 2px; font: 600 12px/1 var(--mono); letter-spacing: .1em; }
.lang a { text-decoration: none; padding: 6px 8px; color: var(--muted); border-radius: var(--radius); }
.lang a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: var(--radius); font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hi); }
.btn-ghost { border-color: rgba(255,255,255,.22); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--red-hi); color: #fff; }
.light .btn-ghost { border-color: rgba(0,0,0,.2); color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 12px; }
.menu-toggle { display: none; background: none; border: 1px solid #33363c; color: var(--text); width: 44px; height: 40px; border-radius: var(--radius); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* hero: copy over the consolidation canvas */
.hero { padding: 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background:
  radial-gradient(1200px 600px at 78% 60%, rgba(218,37,28,.10), transparent 60%),
  radial-gradient(900px 500px at 10% 0%, rgba(255,255,255,.04), transparent 60%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 55%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 55%, #000 20%, transparent 75%); pointer-events: none; }
.hero-inner { position: relative; z-index: 3; min-height: calc(100vh - 104px); min-height: calc(100svh - 104px); display: flex; align-items: center; pointer-events: none; }
.hero-copy { max-width: 560px; padding: 80px 0 96px; pointer-events: auto; }
.hero h1 { font-size: clamp(38px, 5vw, 70px); margin: 24px 0 24px; }
.hero h1 em { color: var(--red-hi); }
html[lang=ru] .hero h1 { font-size: clamp(34px, 4.1vw, 58px); }
.hero .lead { margin-bottom: 34px; color: #b9bbc0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 28px; display: flex; gap: 10px; align-items: center; font: 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--muted); }
.hero-note i { width: 8px; height: 8px; border-radius: 50%; background: #2fd06b; box-shadow: 0 0 0 4px rgba(47,208,107,.15); }
.hero-yard { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.hero-yard-space { display: none; }
.hero-hint { position: absolute; right: 28px; bottom: 22px; z-index: 3; font: 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.42); pointer-events: none; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 38px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(32px, 3.6vw, 50px); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.stat b i { font-style: normal; color: var(--red-hi); }
.stat b small { font-size: .45em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; letter-spacing: .04em; }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s; }
.svc:hover img { transform: scale(1.05); }
.svc-body { padding: 24px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.svc .num { font: 600 12px/1 var(--mono); color: var(--red-hi); letter-spacing: .14em; }
.svc h3 { margin: 12px 0 10px; font-size: 21px; }
.svc p { color: #b8bac0; font-size: 14.5px; margin: 0 0 14px; }
.svc ul { list-style: none; padding: 0; margin: auto 0 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.svc li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.svc li::before { content: "— "; color: var(--red-hi); }
@media (hover: hover) { .services:hover .svc:not(:hover) img { filter: grayscale(.8) brightness(.5); } .services:hover .svc:not(:hover) { opacity: .72; } }
.svc { transition: opacity .4s; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(0,0,0,.14); counter-reset: s; position: relative; }
.steps li { counter-increment: s; padding: 26px 22px 30px 0; border-bottom: 1px solid rgba(0,0,0,.14); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 13px/1 var(--mono); color: var(--red); letter-spacing: .1em; margin-bottom: 14px; }
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps span { font-size: 14px; color: var(--ink-muted); }
.steps::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.process-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 80px; align-items: start; }
.process-split h3 { font-size: 24px; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; columns: 1; }
.ticks li { padding: 11px 0 11px 28px; border-bottom: 1px solid rgba(0,0,0,.12); position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.photo-stack { position: relative; }
.photo-stack img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-stack .tag { position: absolute; left: -16px; bottom: 26px; background: var(--ink); color: #fff; padding: 16px 20px; border-radius: var(--radius); font-size: 13px; max-width: 240px; line-height: 1.45; }
.photo-stack .tag b { display: block; font-size: 28px; line-height: 1; margin-bottom: 6px; color: var(--red-hi); }

/* markets / showroom */
.showroom { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; }
.room { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; background: var(--surface); }
.room:first-child { grid-row: span 2; }
.room img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.room:hover img { transform: scale(1.06); }
.room figcaption { position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.room figcaption small { display: block; font: 11px/1.4 var(--mono); letter-spacing: .1em; color: #bfc1c6; text-transform: none; margin-top: 4px; }
.room figcaption::before { content: ""; display: block; width: 0; height: 2px; background: var(--red-hi); margin-bottom: 10px; transition: width .4s cubic-bezier(.2,.7,.2,1); }
.room:hover figcaption::before { width: 44px; }
@media (hover: hover) { .showroom:hover .room:not(:hover) img { filter: grayscale(.8) brightness(.45); } }

/* QC */
.qc-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.qc-ring { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 26px; }
.qc-ring b { font-size: clamp(54px, 7vw, 96px); line-height: 1; letter-spacing: -.04em; }
.qc-ring b i { font-style: normal; color: var(--red-hi); }
.qc-ring span { color: var(--muted); font-size: 14px; max-width: 220px; }
.checks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 26px; }
.checks div { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 12px; }
.checks b { display: block; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 8px; }
.checks p { margin: 0; font-size: 12.5px; color: #b8bac0; line-height: 1.45; }
.qc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qc-photos figure { margin: 0; }
.qc-photos figure:first-child { grid-column: 1 / -1; }
.qc-photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.qc-photos figure:not(:first-child) img { aspect-ratio: 4 / 3; }
.qc-photos figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proj { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0,0,0,.08); }
.proj img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.proj figcaption { padding: 18px 18px 20px; }
.proj b { display: block; font-size: 17px; margin-bottom: 4px; }
.proj span { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; display: block; }
.proj .where { font: 600 11px/1 var(--mono); color: var(--red); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.more-projects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.more-projects span { border: 1px solid rgba(0,0,0,.18); padding: 7px 14px; border-radius: 100px; font-size: 13px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4 / 3.2; object-fit: cover; width: 100%; }
.about-media .badge { position: absolute; right: -18px; bottom: -24px; background: var(--red); color: #fff; padding: 18px 22px; border-radius: var(--radius); max-width: 220px; font-size: 13px; line-height: 1.4; font-weight: 600; }
.about-media .badge b { display: block; font-size: 32px; line-height: 1; margin-bottom: 4px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span { color: var(--muted); font: 600 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 72px; }
.res { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.res img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.res div { padding: 20px; }
.res b { display: block; font-size: 17px; margin-bottom: 6px; }
.res p { margin: 0; font-size: 14px; color: #b8bac0; }

/* visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.visit-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.visit-list li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.12); font-size: 15px; }
.visit-list li b { font: 600 11px/1 var(--mono); color: var(--red); margin-right: 10px; }
.visit-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 17px; font-size: 26px; font-weight: 300; color: var(--red-hi); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #bfc1c6; margin: 0 0 22px; font-size: 15px; }

/* contact */
.contact { background: linear-gradient(180deg, var(--bg), #0f0a0a); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font: 600 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-size: 18px; }
.contact-list a:hover { color: var(--red-hi); }
.contact-list address { font-style: normal; font-size: 15px; color: #d6d4cf; }
form.inquiry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: var(--bg); border: 1px solid #2f333a; color: var(--text); border-radius: var(--radius); padding: 13px 14px; font: 15px/1.4 var(--font); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-hi); }
form.inquiry .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0; font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { width: 112px; }

/* responsive */
@media (max-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0; background: #0d0e10; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav { gap: 14px; }
  .nav-tools { margin-left: auto; }
  .nav-tools .btn { display: none; }
  .hero-inner { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; margin-top: 40px; }
  .hero h1 { order: 2; margin-bottom: 0; }
  .hero-yard-space { order: 3; display: block; height: 380px; }
  .hero .lead { order: 4; }
  .hero .cta-row { order: 5; pointer-events: auto; }
  .hero .hero-note { order: 6; margin-bottom: 48px; }
  .hero-hint { display: none; }
  .process-split, .qc-grid, .about-grid, .visit-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .showroom { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 200px 200px; }
  .room:first-child { grid-column: 1 / -1; grid-row: auto; }
  .resources { grid-template-columns: 1fr; }
  .about-media .badge { right: 12px; bottom: -18px; }
  .photo-stack .tag { left: 12px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand img { width: 112px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 16px; }
  .stat:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .services, .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .visit-list { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  form.inquiry { grid-template-columns: 1fr; padding: 22px; }
  .lang a { padding: 6px 6px; }
  .hero-yard-space { height: 330px; }
  .hero h1 { font-size: 34px; margin-top: 18px; }
}

/* ===== Motion layer — active with html.motion (always set by site.js) ===== */
.stat b, .badge b, .qc-ring b, .tag b { font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(.55em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }

.motion .hero h1 .w { display: inline-block; opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 900ms); }
.motion .hero .eyebrow { animation: fadeUp .8s .7s both; }
.motion .hero .lead { animation: fadeUp .9s 1.6s both; }
.motion .hero .cta-row { animation: fadeUp .9s 1.8s both; }
.motion .hero .hero-note, .motion .hero-hint { animation: fadeUp .9s 2.2s both; }

/* scroll reveal */
.motion .reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion [data-count] { transition: text-shadow .6s; }
.motion [data-count].counted { text-shadow: 0 0 30px rgba(218,37,28,.35); }

/* marquee band */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 24px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(28px, 4vw, 54px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #4c5058; transition: color .3s, -webkit-text-stroke-color .3s; white-space: nowrap; }
.marquee span:hover { color: var(--red-hi); -webkit-text-stroke-color: var(--red-hi); }
.marquee i { font-style: normal; color: var(--red-hi); font-size: 16px; }

/* tilt + glow cards (pointer devices) */
.motion .tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, opacity .9s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.motion .tilt.reveal:not(.in) { transform: perspective(900px) translateY(30px); }
.motion .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(240,71,61,.16), transparent 60%); z-index: 2; }
.motion .tilt:hover::after { opacity: 1; }
.motion .svc.tilt:hover, .motion .res.tilt:hover, .motion .checks div.tilt:hover { border-color: rgba(240,71,61,.5); }

/* buttons: subtle magnetic pull */
.motion .btn { translate: var(--bx, 0px) var(--by, 0px); transition: background .2s, color .2s, border-color .2s, translate .25s cubic-bezier(.2,.7,.2,1); }

/* nav underline grows */
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red-hi); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.menu a:hover::after { transform: scaleX(1); }

/* header shrink + scroll progress */
.motion .site-header { transition: background .3s, box-shadow .3s; }
.motion .site-header .nav { transition: height .3s; }
.motion .site-header.scrolled { background: rgba(11,12,14,.94); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.motion .site-header.scrolled .nav { height: 62px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--red-hi); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }
@media (max-width: 900px) { .motion .site-header.scrolled .nav { height: 74px; } .marquee { padding: 16px 0; } }

/* headings slide up out of a mask; images open like a curtain and settle from a slight zoom */
.motion .reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s .12s cubic-bezier(.2,.7,.2,1), transform 1s .12s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in h2 { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.motion .curtain.reveal img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), scale 1.8s cubic-bezier(.2,.7,.2,1); }
.motion .curtain.reveal.in img { clip-path: inset(0); scale: 1; }
.stat b { transition: color .3s; }
.stat:hover b { color: var(--red-hi); }
