:root {
  --bg: #0b0b0d;
  --bg-2: #131316;
  --bg-3: #1b1b1f;
  --text: #f1efe9;
  --muted: #8d8b86;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #c6ff3d;
  --glow: #c6ff3d;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color 1.2s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: #000; }

/* ---------- Background field + cursor ---------- */
#field { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1000; border-radius: 50%; }
.cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor span { font-size: 12px; font-weight: 600; color: #000; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); background: rgba(198,255,61,.08); }
.cursor.label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--glow); border-color: transparent; }
.cursor.label span { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
@media (hover: hover) and (pointer: fine) { body, a, button { cursor: none; } }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px; padding: 22px clamp(16px, 4vw, 48px);
  mix-blend-mode: difference;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  background: #fff; color: #000; font-size: 12px; letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #bbb; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3dff8b; box-shadow: 0 0 0 0 rgba(61,255,139,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61,255,139,0); } 100% { box-shadow: 0 0 0 0 rgba(61,255,139,0); } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--accent); color: #0b0b0d; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .5s var(--ease), border-radius .5s;
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn-ghost:hover { color: #0b0b0d; }
.btn-small { padding: 12px 22px; font-size: 14px; }
.btn span { pointer-events: none; }

.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
h2 { font-size: clamp(42px, 7vw, 96px); line-height: .95; letter-spacing: -0.04em; font-weight: 600; }
h2 em { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding: 120px clamp(16px, 4vw, 48px) 60px; max-width: 1500px; margin: 0 auto;
}
.hero-title { font-size: clamp(44px, 6.2vw, 100px); line-height: .95; letter-spacing: -0.045em; font-weight: 600; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span, .hero-title .line > em { display: inline-block; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .char { display: inline-block; transition: transform .5s var(--ease), color .3s; }
.swap { color: var(--accent); display: inline-block; min-width: 4ch; }
.swap .char { animation: rise .6s var(--ease) both; }
@keyframes rise { from { transform: translateY(110%); opacity: 0; } }
.hero-sub { max-width: 520px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); margin: 28px 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stack { position: relative; height: min(56vw, 560px); perspective: 1400px; }
.stack-card {
  position: absolute; width: 78%; aspect-ratio: 16 / 10; left: 11%; top: 18%;
  border-radius: 14px; overflow: hidden; background: var(--bg-3) center / cover no-repeat;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .8s var(--ease), box-shadow .5s;
  will-change: transform;
}
.stack-card::before {
  content: ""; display: block; height: 22px; background: rgba(20,20,22,.92);
  background-image: radial-gradient(circle at 12px 11px, #ff5f57 3.5px, transparent 4px), radial-gradient(circle at 26px 11px, #febc2e 3.5px, transparent 4px), radial-gradient(circle at 40px 11px, #28c840 3.5px, transparent 4px);
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(22px, 3vw, 36px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Work ---------- */
.work, .process { padding: 140px clamp(16px, 4vw, 48px); max-width: 1500px; margin: 0 auto; }
.section-head { margin-bottom: 50px; }
.section-sub { color: var(--muted); max-width: 560px; margin-top: 20px; font-size: 17px; }

/* ---------- Showcase ---------- */
.show {
  position: relative; isolation: isolate; min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: center;
  padding: 60px 0;
}
.show.flip .show-info { order: 2; }
.show-ghost {
  position: absolute; top: 50%; left: 50%; z-index: -1; pointer-events: none; white-space: nowrap;
  font-size: clamp(120px, 21vw, 330px); font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 30%, transparent);
  opacity: 0; transition: opacity 1s;
}
.show.active .show-ghost { opacity: 1; }
.show-info { opacity: .3; transform: translateY(24px); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.show.active .show-info { opacity: 1; transform: none; }
.show-num { font-size: 14px; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }
.show-num i { font-style: normal; color: var(--muted); font-weight: 400; }
.show-name { font-size: clamp(44px, 5.4vw, 84px); letter-spacing: -0.045em; line-height: .95; font-weight: 600; margin: 14px 0 14px; }
.show-kind { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 16px; }
.show-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.show-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.show-desc { color: #c9c7c1; font-size: 17px; max-width: 46ch; margin: 24px 0 26px; }
.show-swatches { display: flex; gap: 8px; margin-bottom: 34px; }
.show-swatches i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.show-btn { background: var(--c); }

.show-preview {
  display: block; width: 100%; text-align: left; border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 60px 120px -40px rgba(0,0,0,.9);
  transform: perspective(1600px) rotateY(-9deg) scale(.93); transform-origin: center;
  transition: transform 1.1s var(--ease), box-shadow .8s;
}
.show.flip .show-preview { transform: perspective(1600px) rotateY(9deg) scale(.93); }
.show.active .show-preview {
  transform: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent), 0 60px 140px -50px color-mix(in srgb, var(--c) 55%, transparent);
}
.show-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: rgba(20,20,22,.96); border-bottom: 1px solid var(--line); }
.show-url { flex: 1; text-align: center; font-size: 12px; color: var(--muted); background: var(--bg-3); padding: 5px 12px; border-radius: 7px; margin-right: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-screen { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.show-img { position: absolute; top: 0; left: 0; width: 100%; height: auto; display: block; will-change: transform; }

/* ---------- Process ---------- */
.steps { list-style: none; border-top: 1px solid var(--line); }
.step { border-bottom: 1px solid var(--line); }
.step-head {
  width: 100%; display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 16px;
  padding: 30px 0; text-align: left; transition: padding .4s var(--ease), color .3s;
}
.step-head:hover { padding-left: 16px; color: var(--accent); }
.step-num { font-size: 14px; color: var(--muted); }
.step-title { font-size: clamp(26px, 3.5vw, 48px); letter-spacing: -0.03em; font-weight: 500; }
.step-plus { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; justify-self: end; transition: transform .4s var(--ease), background .3s; }
.step-plus::before, .step-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); }
.step-plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.step.open .step-plus { transform: rotate(45deg); background: var(--accent); color: #000; }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.step.open .step-body { grid-template-rows: 1fr; }
.step-body > div { overflow: hidden; }
.step-body p { padding: 0 0 32px 96px; color: var(--muted); max-width: 760px; font-size: 18px; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: 160px 16px 140px; position: relative; overflow: hidden; }
.contact-title { font-size: clamp(52px, 10vw, 150px); }
.big-link {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 50px;
  font-size: clamp(22px, 3vw, 36px); font-weight: 500; padding: 22px 44px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background .4s, color .4s;
}
.big-link i { font-style: normal; transition: transform .4s var(--ease); }
.big-link:hover { background: var(--accent); color: #000; }
.big-link:hover i { transform: translateX(8px) rotate(-45deg); }
.big-link[aria-expanded="true"] { background: var(--accent); color: #000; }
.big-link[aria-expanded="true"] i { transform: rotate(90deg); }

/* contact form, folds open under the button */
.contact-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.contact-panel.open { grid-template-rows: 1fr; }
.contact-inner { overflow: hidden; }
.contact-form, .sent {
  max-width: 760px; margin: 50px auto 0; text-align: left;
  background: var(--bg-2); border-radius: 26px; padding: clamp(22px, 4vw, 44px);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease) .15s, transform .7s var(--ease) .15s;
}
.contact-panel.open .contact-form, .contact-panel.open .sent { opacity: 1; transform: none; }
.hp { position: absolute; left: -9999px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 22px; }
.field span, legend { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
legend small { text-transform: none; letter-spacing: 0; opacity: .6; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.2);
  padding: 10px 0 12px; outline: none; resize: vertical; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: #55534f; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field.bad input, .field.bad textarea { border-bottom-color: #ff5f57; }
fieldset { border: 0; margin-bottom: 26px; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
  display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: #c9c7c1;
  transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.pick:hover span { box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); color: var(--text); }
.pick input:checked + span { background: var(--accent); color: #0b0b0d; box-shadow: none; transform: scale(1.04); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.form-foot .btn[disabled] { opacity: .6; pointer-events: none; }
.form-note { color: var(--muted); font-size: 14px; }
.form-note.err { color: #ff8a84; }

.sent { text-align: center; padding-block: 60px; }
.sent h3 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; font-weight: 600; margin: 22px 0 8px; }
.sent p { color: var(--muted); max-width: 440px; margin: 0 auto; }
.sent-tick svg { width: 78px; height: 78px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sent-tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.sent-tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.link-btn { margin-top: 24px; color: var(--accent); font-size: 15px; border-bottom: 1px solid currentColor; }

.socials { display: flex; gap: 26px; justify-content: center; margin-top: 40px; color: var(--muted); flex-wrap: wrap; }
.socials a:hover { color: var(--text); }

.footer { display: flex; justify-content: space-between; padding: 26px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer a:hover { color: var(--text); }

/* ---------- Viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; visibility: hidden; }
.viewer.open { visibility: visible; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .4s; }
.viewer.open .viewer-backdrop { opacity: 1; }
.viewer-box {
  position: relative; width: min(1500px, 100%); height: min(880px, 100%);
  display: grid; grid-template-columns: 1fr 340px; gap: 16px;
  opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.viewer.open .viewer-box { opacity: 1; transform: none; }

.browser { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 0 50px 120px -30px rgba(0,0,0,.9); min-height: 0; }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.url { flex: 1; text-align: center; font-size: 13px; color: var(--muted); background: var(--bg-3); padding: 6px 14px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devices { display: flex; gap: 4px; background: var(--bg-3); border-radius: 9px; padding: 3px; }
.devices button { width: 34px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); transition: .2s; }
.devices button.active { background: var(--text); color: var(--bg); }
.devices svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.browser-view { position: relative; flex: 1; min-height: 0; background: #050506 radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--glow) 12%, transparent), transparent 60%); display: grid; place-items: center; overflow: hidden; }
.frame-wrap { position: relative; overflow: hidden; transition: width .6s var(--ease), height .6s var(--ease), border-radius .6s, box-shadow .6s; }
.frame-wrap.framed { border-radius: 28px; box-shadow: 0 0 0 10px #1f1f23, 0 0 0 11px #333, 0 30px 70px -20px rgba(0,0,0,.9); }
.frame-wrap iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #000; }
.loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 14px; background: #050506; transition: opacity .4s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--glow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.viewer-info { position: relative; background: var(--bg-2); border-radius: 16px; padding: 30px 26px; overflow-y: auto; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), background .3s; }
.close:hover { transform: rotate(90deg); background: var(--bg-3); }
.viewer-info h3 { font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; margin-top: -6px; padding-right: 40px; }
.viewer-info .kicker { margin-bottom: 14px; color: var(--glow); }
.v-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin: 12px 0 18px; }
.v-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, #3dff8b); }
.v-desc { color: #c9c7c1; font-size: 15px; }
.viewer-info h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin: 26px 0 12px; }
.viewer-info h4 small { text-transform: none; letter-spacing: 0; opacity: .6; margin-left: 6px; }
.palette { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); position: relative; transition: transform .3s var(--ease); }
.swatch:hover { transform: translateY(-4px) scale(1.06); }
.swatch span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.swatch:hover span { opacity: 1; }
.v-fonts { font-size: 15px; }
.v-list { list-style: none; display: grid; gap: 9px; }
.v-list li { font-size: 14px; color: #c9c7c1; padding-left: 20px; position: relative; }
.v-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--glow); transform: rotate(45deg); }
.v-actions { margin-top: 28px; }
.v-actions .btn { background: var(--glow); }
.v-actions .btn[hidden] { display: none; }
.v-nav { display: flex; justify-content: space-between; margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.v-nav button:hover { color: var(--text); }

.toast { position: fixed; bottom: 30px; left: 50%; z-index: 300; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: .35s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Intro ---------- */
body.intro-on { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 500; cursor: pointer; }
.intro.gone { display: none; }
.intro-half { position: absolute; left: 0; right: 0; height: 50.5%; background: #0e0e11; transition: transform 1.05s cubic-bezier(.77, 0, .18, 1); }
.intro-half.top { top: 0; }
.intro-half.bottom { bottom: 0; }
.intro.open .intro-half.top { transform: translateY(-100%); }
.intro.open .intro-half.bottom { transform: translateY(100%); }
.intro-content {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .45s, transform .8s var(--ease);
}
.intro.open .intro-content { opacity: 0; transform: scale(1.12); }
.intro-mark { display: flex; overflow: hidden; font-size: clamp(96px, 17vw, 210px); font-weight: 700; letter-spacing: -0.07em; line-height: .88; padding: 0 .06em .04em; }
.intro-mark span { display: inline-block; animation: introUp 1s var(--ease) .15s both; }
.intro-mark span + span { color: var(--accent); animation-delay: .3s; }
@keyframes introUp { from { transform: translateY(105%) rotate(6deg); } }
.intro-bar { width: min(220px, 50vw); height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: barIn .8s var(--ease) .85s forwards; }
@keyframes barIn { to { transform: scaleX(1); } }
.intro-name { font-size: 14px; letter-spacing: .4em; text-transform: uppercase; color: #a5a39d; padding-left: .4em; }
.intro-name .c { display: inline-block; opacity: 0; animation: introFade .5s var(--ease) both; }
@keyframes introFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intro-skip { position: absolute; z-index: 2; right: 28px; bottom: 24px; font-size: 13px; color: #6f6d68; letter-spacing: .08em; transition: color .2s; }
.intro-skip:hover { color: var(--text); }

/* hero content rises in as the intro opens */
.hero-text > *, .hero-stack { transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
body:not(.ready) .hero-text > *, body:not(.ready) .hero-stack { opacity: 0; transform: translateY(50px); }
.hero-text > :nth-child(2) { transition-delay: .08s; }
.hero-text > :nth-child(3) { transition-delay: .16s; }
.hero-text > :nth-child(4) { transition-delay: .24s; }
.hero-stack { transition-delay: .2s; }

.footer-links { display: flex; gap: 24px; }
.footer-links button { color: inherit; font-size: inherit; }
.footer-links button:hover { color: var(--text); }

/* ---------- Before / after ---------- */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.ba-section { padding: 0 clamp(16px, 4vw, 48px) 40px; max-width: 1500px; margin: 0 auto; }
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px rgba(0,0,0,.9);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 20px rgba(0,0,0,.6); outline: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .3s var(--ease);
}
.ba:hover .ba-handle span, .ba.dragging .ba-handle span, .ba-handle:focus-visible span { transform: translate(-50%, -50%) scale(1.12); }
.ba-handle svg { width: 24px; height: 24px; fill: none; stroke: #0b0b0d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba-label {
  position: absolute; top: 18px; z-index: 2; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(10,10,12,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none;
}
.ba-label.left { left: 18px; }
.ba-label.right { right: 18px; color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .show { grid-template-columns: 1fr; min-height: 0; padding: 70px 0; gap: 34px; }
  .show.flip .show-info { order: 0; }
  .show-preview, .show.flip .show-preview { transform: scale(.96); }
  .show-ghost { font-size: 34vw; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-stack { height: 70vw; }
  .viewer-box { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: 100%; }
  .viewer-info { max-height: 40vh; }
}
@media (max-width: 760px) {
  .nav { gap: 16px; }
  .status { display: none; }
  .nav-links { gap: 18px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .work, .process { padding-top: 100px; padding-bottom: 100px; }
  .step-head { grid-template-columns: 44px 1fr 40px; }
  .step-body p { padding-left: 60px; font-size: 16px; }
  .viewer { padding: 10px; }
  .devices { display: none; }
  .url { text-align: left; }
  .footer { flex-direction: column; gap: 8px; }
}
