:root {
  --bg: #0d0f13;
  --bg-alt: #11141a;
  --card: #161a22;
  --line: #262b36;
  --text: #eceff4;
  --muted: #9aa3b2;
  --accent: #ff7a3d;
  --accent-2: #35c6b4;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #16100c; font: 600 15px/1 inherit; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  box-shadow: 0 6px 24px -8px rgba(255,122,61,.7);
}
.btn:hover { transform: translateY(-1px); background: #ff8c57; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: #ffffff0d; border-color: #3a4150; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; padding: 15px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(13,15,19,.82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand b { color: var(--accent); margin-left: 2px; }
.links { display: flex; align-items: center; gap: 26px; }
.links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) { .links a:not(.btn) { display: none; } }

/* hero */
.hero { padding: 36px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255,122,61,.16), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: min(640px, 80vh); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,122,61,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,122,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,61,0); } }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.grad { background: linear-gradient(95deg, var(--accent), #ffc06a 50%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 540px; margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 30px 0 0; }
.chips li { font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; background: #ffffff05; }
.hero-stage { position: relative; aspect-ratio: 1 / 1; max-height: 620px; width: 100%; }
.hero-stage canvas { position: absolute; inset: 0 0 30px 0; width: 100%; height: calc(100% - 30px); display: block; }
.hero-stage.no-gl::before { content: "⬡"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 160px; color: var(--accent); opacity: .5; }
.stage-label { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { order: -1; aspect-ratio: 4 / 3; max-height: 340px; }
  .hero { padding-top: 8px; }
}

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head .eyebrow { margin-bottom: 12px; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 750; }
.sub { color: var(--muted); font-size: 18px; margin-top: 14px; }
@media (max-width: 700px) { .section { padding: 68px 0; } }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.svc:hover { border-color: #3d4455; transform: translateY(-3px); }
.svc svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.svc h3 { font-size: 20px; }
.svc p { color: var(--muted); font-size: 15.5px; flex: 1; }
.link { align-self: flex-start; background: none; border: 0; color: var(--accent); font: 600 15px inherit; padding: 6px 0 0; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; font: 500 14px inherit; cursor: pointer; transition: all .15s; }
.filters button:hover { color: var(--text); border-color: #3a4150; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #16100c; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.card[hidden] { display: none; }
.card:hover { border-color: #3d4455; transform: translateY(-4px); }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: radial-gradient(80% 80% at 50% 40%, #232a36, #14181f); }
.card-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .5s, transform .5s; }
.card.ready .card-media img, .card-media img[src^="http"], .card-media img[src^="/"], .card-media img[src^="assets"] { opacity: 1; transform: none; }
.card:hover .card-media img { transform: scale(1.05); }
.view-pill { position: absolute; right: 12px; bottom: 12px; background: rgba(13,15,19,.8); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--text); font: 600 12.5px inherit; padding: 6px 12px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: all .2s; }
.card:hover .view-pill, .card-media:focus-visible .view-pill { opacity: 1; transform: none; }
@media (hover: none) { .view-pill { opacity: 1; transform: none; } }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 19px; margin: 8px 0 6px; }
.card-body p { color: var(--muted); font-size: 14.5px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.note { color: var(--muted); margin-top: 28px; font-size: 14.5px; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 2px solid var(--line); padding-top: 18px; position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.steps span { color: var(--accent); font: 700 14px ui-monospace, "SF Mono", Menlo, monospace; }
.steps h3 { font-size: 19px; margin: 8px 0; }
.steps p { color: var(--muted); font-size: 15px; }

/* materials */
.mats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .mats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .mats { grid-template-columns: 1fr; } }
.mats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.mats i { display: block; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px; background: radial-gradient(circle at 32% 28%, #fff9, transparent 45%), var(--c); box-shadow: 0 6px 18px -6px var(--c); }
.mats h3 { font-size: 17px; margin-bottom: 6px; }
.mats p { color: var(--muted); font-size: 14px; }

/* inquiry */
.inquiry { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .inquiry { grid-template-columns: 1fr; gap: 32px; } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(53,198,180,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6' fill='none' stroke='%2335c6b4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px; }
.inq-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: 0 30px 80px -40px #000; }
@media (max-width: 520px) { .inq-card { padding: 20px; } }
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; background: #0f1218; border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font: 400 16px/1.4 inherit; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #5f6878; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,61,.18); }
[aria-invalid="true"] { border-color: #ff5d5d; }
small { color: #ff8a8a; font-weight: 400; min-height: 0; }
small:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.4em; font-size: 14.5px; color: var(--muted); text-align: center; }
.status.error { color: #ff8a8a; }
.success { text-align: center; padding: 30px 10px; display: grid; gap: 12px; justify-items: center; color: var(--accent-2); }
.success[hidden] { display: none; }
.success h3 { color: var(--text); font-size: 24px; }
.success p { color: var(--muted); }
.success:focus { outline: none; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot p { color: var(--muted); font-size: 14px; }

/* viewer dialog */
dialog { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--text); overflow: hidden; }
dialog[open] { display: grid; grid-template-columns: 1.5fr 1fr; animation: pop .22s ease; }
dialog::backdrop { background: rgba(5,6,9,.72); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
@media (max-width: 760px) { dialog[open] { grid-template-columns: 1fr; overflow-y: auto; } }
.x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(13,15,19,.7); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.x:hover { background: #20252f; }
.v-stage { position: relative; min-height: 480px; background: radial-gradient(80% 80% at 50% 40%, #252d3a, #12151b); }
@media (max-width: 760px) { .v-stage { min-height: 0; aspect-ratio: 1 / 1; } }
.v-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.v-stage canvas:active { cursor: grabbing; }
.v-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.v-stage.static canvas { display: none; }
.v-stage.static img { display: block; }
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); background: rgba(13,15,19,.6); padding: 5px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.v-stage.static .hint { display: none; }
.v-info { padding: 34px 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.v-info h3 { font-size: 28px; }
.v-info p { color: var(--muted); }
.pills { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--text); background: #ffffff06; }
