:root {
  --bg: #090a0f;
  --text: #f7f8fb;
  --muted: #c9cfdb;
  --line: rgba(255,255,255,.12);
  --glass: rgba(20,22,31,.66);
  --glass-strong: rgba(14,16,23,.82);
  --violet: #9f45ff;
  --pink: #ff2f9b;
  --orange: #ff841a;
  --lime: #c9ff26;
  --cyan: #28edd1;
  --max: 1220px;
  --radius: 28px;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(6,7,11,.52), rgba(8,9,14,.78)),
    url("assets/pcs-museum-bg.png") center top / cover fixed no-repeat,
    var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.ambient-grid,
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ambient-grid {
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.65), transparent 86%);
}
.ambient-glow { filter: blur(110px); opacity: .26; }
.glow-one { background: radial-gradient(circle at 18% 12%, rgba(159,69,255,.55), transparent 28%); }
.glow-two { background: radial-gradient(circle at 82% 22%, rgba(40,237,209,.32), transparent 22%), radial-gradient(circle at 78% 78%, rgba(255,132,26,.18), transparent 24%); }

.container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}
.section { padding: 86px 0; }
.glass {
  background: linear-gradient(180deg, rgba(25,27,38,.72), rgba(13,15,22,.68));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,10,15,.58);
  backdrop-filter: blur(18px);
}
.nav-row { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { letter-spacing: .34em; font-size: .86rem; font-weight: 650; }
.brand-copy small { color: var(--muted); letter-spacing: .26em; font-size: .66rem; }
.main-nav { display: flex; align-items: center; gap: 20px; color: var(--muted); }
.main-nav a:hover { color: #fff; }
.pill-link { padding: 11px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.06); color: #fff !important; }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); padding: 10px 14px; cursor: pointer; }

.hero { padding-top: 48px; }
.hero-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.hero-copy { border-radius: 34px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); letter-spacing: .24em; text-transform: uppercase; font-size: .74rem; font-weight: 700; }
h1,h2,h3,p { text-wrap: pretty; }
h1,h2 { margin: 0; line-height: .97; letter-spacing: -.04em; }
h1 { font-size: clamp(3rem, 7.6vw, 5.8rem); }
h2 { font-size: clamp(2.2rem, 5.6vw, 4rem); }
h1 span,
.contact-copy h2 span { background: linear-gradient(90deg, var(--violet), var(--pink), var(--orange), var(--lime), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 22px 0 28px; color: var(--muted); font-size: 1.08rem; }
.action-row, .micro-tags, .form-meta, .footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.primary { color: #090a0d; background: linear-gradient(90deg, #fff, #e7ff82 42%, #56f1d8); }
.ghost { background: rgba(255,255,255,.05); }
.micro-tags { margin-top: 26px; }
.micro-tags span, .form-meta span, .selected-pill { padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.055); color: var(--muted); }

.hero-art { min-width: 0; }
.image-shell { margin: 0; border-radius: 32px; padding: 16px; background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); }
.image-shell img { width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 22px; background: rgba(0,0,0,.16); }
.image-shell--hero { height: min(78vh, 840px); min-height: 620px; }

.brand-ribbon { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding-bottom: 8px; }
.brand-ribbon span { text-align: center; padding: 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(11,13,19,.48); letter-spacing: .28em; font-size: .78rem; }

.section-heading { max-width: 860px; margin-bottom: 30px; }
.section-heading > p:last-child { color: var(--muted); }
.section-heading--split { max-width: none; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: end; }
.step-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step-card { border-radius: 24px; padding: 24px; }
.step-card b { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #0a0b0e; background: linear-gradient(135deg,#fff,#d6ff67); }
.step-card h3 { margin: 18px 0 8px; }
.step-card p { margin: 0; color: var(--muted); }

.museum-section { padding-top: 22px; }
.museum-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 22px; align-items: center; }
.museum-image { height: 520px; }
.museum-copy { border-radius: 30px; padding: 30px; }
.museum-copy p:last-child { color: var(--muted); }

.carousel { border-radius: 32px; padding: 18px; display: grid; grid-template-columns: 58px 1fr 58px; gap: 16px; align-items: center; }
.carousel-main { min-width: 0; }
.carousel-image-wrap { height: min(76vh, 900px); min-height: 640px; display: grid; place-items: center; overflow: hidden; border-radius: 24px; background: rgba(0,0,0,.16); }
.carousel-image-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity .25s ease, transform .25s ease; }
.carousel-image-wrap img.switching { opacity: .18; transform: scale(.99); }
.carousel-info { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 18px 4px 2px; }
.carousel-info h3 { margin: 0 0 6px; font-size: clamp(1.3rem,3vw,2rem); }
.carousel-info p { margin: 0; color: var(--muted); }
.carousel-counter { white-space: nowrap; color: var(--cyan); letter-spacing: .16em; }
.carousel-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: rgba(9,11,16,.72); font-size: 1.8rem; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.carousel-arrow:hover { transform: scale(1.04); background: rgba(22,24,33,.94); }
.thumb-strip { margin-top: 14px; display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; padding: 5px 2px 10px; scrollbar-width: thin; }
.thumb { display: block; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 7px; background: rgba(255,255,255,.035); cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.thumb:hover { transform: translateY(-2px); }
.thumb.active { border-color: rgba(40,237,209,.5); background: linear-gradient(135deg, rgba(159,69,255,.18), rgba(40,237,209,.1)); }
.thumb img { width: 100%; height: 126px; object-fit: contain; border-radius: 10px; background: rgba(0,0,0,.18); }
.thumb span { display: block; padding-top: 6px; text-align: center; color: var(--muted); font-size: .7rem; letter-spacing: .12em; }

.builder-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.module-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.module { text-align: left; padding: 20px; border-radius: 22px; border: 1px solid rgba(255,255,255,.1); background: rgba(16,18,25,.62); cursor: pointer; transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.module:hover, .module.active { transform: translateY(-2px); border-color: rgba(255,255,255,.22); background: linear-gradient(135deg, rgba(159,69,255,.18), rgba(40,237,209,.1)); }
.module strong { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.module span { color: var(--muted); }
.build-summary { position: sticky; top: 108px; border-radius: 26px; padding: 26px; }
.build-code { margin: 6px 0 10px; color: var(--cyan); font-size: clamp(2rem,5vw,3.3rem); font-weight: 850; letter-spacing: .16em; }
.build-summary > p:not(.eyebrow) { color: var(--muted); }
.selected-list { min-height: 44px; display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 22px; }

.work-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.work-card { border-radius: 24px; padding: 24px; }
.work-card > span { color: var(--cyan); font-size: .74rem; letter-spacing: .2em; }
.work-card h3 { margin: 12px 0 8px; }
.work-card p { margin: 0; color: var(--muted); }

.about-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: center; }
.about-copy { border-radius: 30px; padding: 30px; }
.about-copy p:not(.eyebrow) { color: var(--muted); }
.about-image { height: 660px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.contact-copy h2 { margin-bottom: 18px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); }
.mail-link { display: inline-flex; margin-top: 8px; color: var(--cyan); font-size: 1.05rem; }
.contact-form { border-radius: 30px; padding: 28px; }
.contact-form label { display: block; margin-bottom: 15px; font-weight: 650; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.045); color: #fff; padding: 14px 16px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(40,237,209,.58); box-shadow: 0 0 0 4px rgba(40,237,209,.1); }
.note { margin-bottom: 0; color: var(--muted); font-size: .9rem; }

.site-footer { padding: 28px 0 38px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(7,8,12,.55); }
.footer-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 50px; height: 50px; object-fit: contain; }
.footer-brand strong, .footer-brand span, .footer-meta span { display: block; }
.footer-brand span, .footer-meta { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carousel-image-wrap img { transition: none; }
}

@media (max-width: 1060px) {
  .hero-layout, .museum-layout, .builder-layout, .about-layout, .contact-layout, .section-heading--split, .footer-row { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: repeat(2,1fr); }
  .image-shell--hero { height: 720px; }
  .museum-image { height: 480px; }
  .build-summary { position: static; }
}

@media (max-width: 840px) {
  .main-nav { position: absolute; left: 18px; right: 18px; top: calc(100% + 10px); display: none; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(10,12,18,.96); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .menu-button { display: inline-flex; }
  .brand-ribbon { grid-template-columns: repeat(2,1fr); }
  .carousel { grid-template-columns: 1fr; }
  .carousel-arrow { display: none; }
  .carousel-image-wrap { min-height: 520px; height: 68vh; }
  .work-grid, .module-grid { grid-template-columns: 1fr; }
  .about-image { height: 620px; }
}

@media (max-width: 560px) {
  body { background-attachment: scroll; }
  .container { width: min(calc(100% - 20px), var(--max)); }
  .section { padding: 66px 0; }
  .hero { padding-top: 30px; }
  .hero-copy, .museum-copy, .about-copy, .contact-form, .build-summary, .step-card, .work-card { padding: 22px; }
  .image-shell--hero { min-height: 0; height: 560px; }
  .museum-image { height: 360px; }
  .carousel-image-wrap { min-height: 0; height: 520px; }
  .carousel-info { flex-direction: column; align-items: flex-start; }
  .thumb-strip { grid-auto-columns: 92px; }
  .thumb img { height: 106px; }
  .step-grid, .brand-ribbon { grid-template-columns: 1fr; }
  .button, .pill-link { width: 100%; }
  .about-image { height: 560px; }
  .brand-copy strong { letter-spacing: .22em; font-size: .8rem; }
  .brand-copy small { letter-spacing: .18em; }
}
