/* Layout: re-stand.ru look — mesh gradient + line waves in the hero, light large type; then a booth-type spec rail, a project wall, a numbered build sequence, a show calendar, a contact block. */
:root {
  --ground: #0d0f12;         /* hall floor at night */
  --panel: #15181d;          /* stand wall */
  --line: #2a2f37;           /* hairline */
  --ink: #eef1f4;            /* primary text */
  --muted: #9aa3ad;          /* secondary text */
  --ice: #8fe3ee;            /* brand cyan from the R mark */
  --violet: #8f97ff;         /* brand violet from the R mark */
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: clamp(1.9rem, 4vw, 2.6rem); --step-4: clamp(2.3rem, 6.2vw, 4.4rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); }
.eyebrow { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); }
.lede { color: var(--muted); max-width: 60ch; font-size: var(--step-1); line-height: 1.5; }
section { padding-block: clamp(56px, 9vw, 104px); }

/* one fixed page background: drifting brand gradient + stretched line waves */
.page-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--ground); }
.page-bg .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.page-bg .b1 { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(143,227,238,.75), transparent 65%); }
.page-bg .b2 { width: 55vw; height: 55vw; left: -20vw; top: 35vh; background: radial-gradient(circle, rgba(143,151,255,.8), transparent 65%); }
.page-bg .b3 { width: 45vw; height: 45vw; right: -10vw; top: 55vh; background: radial-gradient(circle, rgba(90,140,190,.5), transparent 65%); }
.page-bg .waves { position: absolute; right: -6vw; top: -8vh; height: 125vh; width: 70vw; background: url("../img/waves-a.png") right top / auto 100% no-repeat; opacity: .9; will-change: transform; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent); mask-image: linear-gradient(to left, #000 55%, transparent); }
header.top, main, footer { position: relative; z-index: 1; }
@media (max-width: 860px) { .page-bg .waves { width: 120vw; right: -50vw; opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .page-bg .blob, .page-bg .waves { transform: none !important; } }

/* what we do: hover lift + gradient outline */
.svc article { position: relative; padding: 20px; border-radius: 10px; background: color-mix(in srgb, var(--panel) 55%, transparent); transition: transform .35s ease, box-shadow .35s ease; }
.svc article::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(120deg, var(--ice), var(--violet)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease; }
.svc article:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 40px -18px rgba(143,151,255,.55); }
.svc article:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .svc article, .svc article::before { transition: none; } .svc article:hover { transform: none; } }
/* header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem/1 var(--display); letter-spacing: 0.06em; }
.brand img { width: 30px; height: 30px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; color: var(--muted); }
nav.links a { text-decoration: none; }
nav.links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 600 0.95rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(100deg, var(--ice), var(--violet)); color: #0b0d10; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }
@media (max-width: 760px) { nav.links { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 300; max-width: 13ch; }
.hero h1 span { font-weight: 500; }
.hero-copy { display: grid; gap: 26px; min-width: 0; max-width: 760px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; justify-content: start; margin-top: 6px; }
.facts b { display: block; font: 500 var(--step-2)/1 var(--display); }
.facts small { color: var(--muted); font-size: 0.85rem; }
.hero-photo { position: relative; margin: 0; min-width: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 6px; display: block; }
.hero-photo figcaption { position: absolute; left: 12px; bottom: 12px; font: 500 0.75rem/1.3 var(--mono); background: color-mix(in srgb, var(--ground) 80%, transparent); padding: 8px 10px; border-radius: 4px; color: var(--ink); max-width: calc(100% - 24px); }


/* booth types rail */
.rail { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); backdrop-filter: blur(6px); }
.rail .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.rail div { padding: 20px 16px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.rail div:first-child { border-left: 0; padding-left: 0; }
.rail svg { width: 44px; height: 30px; }
.rail b { font-weight: 600; }
.rail small { color: var(--muted); font: 400 0.78rem/1.35 var(--mono); }
@media (max-width: 860px) { .rail .wrap { grid-template-columns: repeat(2, 1fr); } .rail div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .rail div:nth-child(-n+2) { border-top: 0; } }

/* services */
.services .wrap { display: grid; gap: 40px; }
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.svc article { display: grid; gap: 10px; align-content: start; }
.svc h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; }
.svc p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc { grid-template-columns: 1fr; } }

/* projects */
.projects .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: var(--panel); grid-column: span 4; }
.card.wide { grid-column: span 8; }
.grid > .card:nth-child(3), .grid > .card:nth-child(4) { grid-column: span 6; }
.card img { width: 100%; height: 100%; min-height: 240px; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s ease; }
.card.wide img { aspect-ratio: 16 / 9; }
.card:hover img { transform: scale(1.03); }
.card { display: block; text-decoration: none; color: inherit; }
.card .cap em { font: 500 0.78rem/1 var(--body); font-style: normal; color: var(--ice); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.card:hover .cap em, .card:focus-visible .cap em { opacity: 1; transform: none; }
.card .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(8, 10, 12, .88)); display: grid; gap: 4px; }
.card .cap b { font: 500 1.05rem/1.2 var(--display); color: #f4f6f8; }
.card .cap > span { font: 400 0.78rem/1.35 var(--mono); color: #c3cad2; }
@media (max-width: 860px) { .grid > .card, .card.wide { grid-column: span 6; } }
@media (max-width: 560px) { .grid > .card, .card.wide { grid-column: span 12; } }

/* process */
.process { position: relative; overflow: hidden; }
.process .wrap { position: relative; }
.steps { position: relative; list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 22px 18px 4px 0; border-top: 2px solid var(--line); display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 0.8rem/1 var(--mono); color: var(--ice); }
.steps .bar { position: absolute; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--ice), var(--violet)); transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s; pointer-events: none; }
.steps li { position: relative; border-radius: 10px; transition: transform .35s ease, background .35s ease; padding-left: 14px; }
.steps li::after { content: ""; position: absolute; inset: 8px 4px 0 0; border-radius: 10px; padding: 1.5px; background: linear-gradient(120deg, var(--ice), var(--violet)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; }
.steps li:hover { transform: translateY(-6px) scale(1.03); background: color-mix(in srgb, var(--panel) 55%, transparent); }
.steps li:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .steps li, .steps .bar { transition: none; } .steps li:hover { transform: none; } }
.steps b { font-weight: 600; }
.steps span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* shows */
.shows { background: color-mix(in srgb, var(--panel) 70%, transparent); backdrop-filter: blur(6px); border-block: 1px solid var(--line); }
.cal { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; }
.cal div { display: flex; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cal b { font-weight: 600; }
.cal .x { display: none; }
.cal.open .x { display: flex; animation: rise .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.more { margin: 28px auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); font: 500 0.85rem/1 var(--body); cursor: pointer; }
.more svg { width: 34px; height: 34px; color: var(--ice); transition: transform .35s ease; animation: nudge 2.2s ease-in-out infinite; }
.more:hover { color: var(--ink); }
.more[aria-expanded="true"] svg { transform: rotate(180deg); animation: none; }
@keyframes nudge { 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .more svg, .cal.open .x { animation: none; } }
.cal time { font: 400 0.82rem/1.6 var(--mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.contact-info { display: grid; gap: 22px; align-content: start; min-width: 0; }
.contact-line { display: grid; gap: 4px; }
.contact-line small { font: 500 0.75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-line div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--step-1); }
.copy { font: 500 0.75rem/1 var(--mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.social { gap: 14px !important; }
.ico { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; transition: transform .25s ease, box-shadow .25s ease; }
.ico svg { width: 100%; height: 100%; }
.ico-l { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.ico-l small { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.ico-l:hover small { color: var(--ink); }
.ico-l:hover .ico,
.ico:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 24px -10px rgba(143,151,255,.7); }
.copy:hover { color: var(--ink); border-color: var(--muted); }
form { display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 24px; min-width: 0; }
label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.9rem; color: var(--ice); min-height: 1.4em; margin: 0; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; }
@media (prefers-reduced-motion: reduce) { .card img { transition: none; } }

/* form extras */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal-note { margin: 0; font-size: .8rem; color: var(--muted); }
.legal-note a, .prose a, .cal b a { color: var(--ice); }
.cal b a { text-decoration: none; }
.cal b a:hover { text-decoration: underline; }
button[disabled] { opacity: .6; cursor: progress; }

/* FAQ */
.faq .wrap { display: grid; gap: 28px; }
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: color-mix(in srgb, var(--panel) 70%, transparent); border: 1px solid var(--line); border-radius: 8px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ice); font: 500 1.2rem/1 var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* inner pages: show pages, legal pages */
.crumbs { font: 500 .78rem/1.4 var(--mono); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 300; max-width: 18ch; }
.page-hero h1 span { font-weight: 500; }
.page-hero .hero-copy { gap: 22px; }
.facts.show-facts { grid-template-columns: repeat(3, minmax(0, auto)); }
.facts.show-facts b { font-size: var(--step-1); }
.svc.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .svc.three { grid-template-columns: 1fr; } .facts.show-facts { grid-template-columns: 1fr; } }
.prose { max-width: 76ch; display: grid; gap: 14px; }
.prose h2 { font-size: var(--step-2); margin-top: 22px; }
.prose h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; margin-top: 8px; }
.prose p, .prose li { color: var(--muted); margin: 0; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.legal { padding-top: 0; }
.cta-band { text-align: center; display: grid; gap: 18px; justify-items: center; }

/* footer */
footer .foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; padding-block: 36px 20px; }
footer .foot b { color: var(--ink); font-weight: 600; }
footer nav { display: grid; gap: 6px; align-content: start; }
footer nav small { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .copy-line { border-top: 1px solid var(--line); padding-block: 16px 28px; }
@media (max-width: 760px) { footer .foot { grid-template-columns: 1fr; } }
