/* 杰的作品集 · Aovix-inspired preview. Visual language from NOTES.md; original content. */

:root {
  --bg: #000000;
  --bg-light: #ffffff;
  --text: #ffffff;
  --text-dark: #000000;
  --muted: #c1bdd5;
  --muted-mid: #595a65;
  --muted-light: #666666;
  --white-60: #ffffff99;
  --brand: #9c62fa;
  --brand-30: #9c61fa4d;
  --brand-10: #9c61fa1a;
  --hair: #ffffff1a;
  --hair-8: #ffffff14;
  --hair-dark: #00000014;
  --faq-row: #f2f2f2;
  --input: #f2f2f2;
  --content: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --pad-y: 120px;
  --header-h: 88px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-btn: 200ms;
  --dur-nav: 250ms;
  --dur-acc: 550ms;
  --dur-slide: 560ms;
  --dur-fade: 600ms;
  --dur-count: 2300ms;
  --dur-veil-in: 400ms;
  --dur-veil-out: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: auto; }
html.js-waiting { background: #000; }
body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "blwf" 1, "cv03" 1, "cv04" 1, "cv09" 1, "cv11" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: -40px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- typography ---------- */
.h1-hero {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 390px;
  letter-spacing: -0.04em;
  line-height: 1em;
  margin: 0;
  color: #fff;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  letter-spacing: -0.062em;
  line-height: 1.1em;
  margin: 0;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.046em;
  line-height: 1.1em;
  margin: 0;
}
.h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.041em;
  line-height: 1.1em;
  margin: 0;
}
.body-18 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4em;
}
.body-16 {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4em;
}
.ui-16 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.031em;
  line-height: 1.1em;
}
.small {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2em;
}
.tiny {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4em;
}
.muted { color: var(--muted); }
.muted-dark { color: var(--muted-light); }

/* ---------- pills / buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
}
.pill-solid {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  border: 0;
  transition: background-color var(--dur-btn) ease-out, color var(--dur-btn) ease-out;
  will-change: background-color, color;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #fff; color: #000; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #fff; color: #000; border: 1px solid #000; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ---------- header (NOT sticky) ---------- */
.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  background: transparent;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
body.nav-open { overflow: hidden; }
body.nav-open .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #000;
}
.mobile-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 40;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
body.nav-open .mobile-panel { display: flex; }
.header-inner {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 28px; height: 28px; display: block; flex-shrink: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  height: 20px;
  overflow: hidden;
  display: inline-block;
  line-height: 20px;
}
.nav-swap {
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-nav) var(--ease-out);
}
.nav-swap span { display: block; height: 20px; line-height: 20px; }
.nav-link:hover .nav-swap { transform: translateY(-20px); }
.nav-link:hover { color: #fff; }
.header-cta { justify-self: end; }
.header-rule {
  position: relative;
  height: 1px;
  background: var(--brand);
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}
.header-rule .notch {
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px; height: 10px;
  transform: translateX(-50%);
  background: transparent;
  overflow: visible;
}
.header-rule .notch::before {
  content: "";
  position: absolute;
  left: 50%; top: -1px;
  width: 14px; height: 14px;
  border-right: 1px solid var(--brand);
  border-bottom: 1px solid var(--brand);
  transform: translateX(-50%) rotate(45deg);
  background: transparent;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: #fff;
  transition: transform 200ms ease, opacity 200ms ease;
  transform-origin: center;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- custom cursor ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 80;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.has-cursor .cursor-dot, .has-cursor .cursor-ring { display: block; }
.cursor-dot {
  width: 6px; height: 6px; background: #fff; mix-blend-mode: difference;
}
.cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.7);
  transition: width 200ms ease-out, height 200ms ease-out, border-color 200ms ease-out;
}
.cursor-ring.is-hover {
  width: 44px; height: 44px;
  border-color: var(--brand);
}

/* ---------- page veil ---------- */
.page-veil {
  position: fixed; inset: 0; background: #000; z-index: 90;
  pointer-events: none; opacity: 0;
  transition: opacity var(--dur-veil-out) ease;
}
.page-veil.is-on { opacity: 1; pointer-events: auto; }
html.is-leaving .page-veil { opacity: 1; pointer-events: auto; transition-duration: var(--dur-veil-in); }

/* ---------- reveal ---------- */
.js .r-unit {
  display: inline-block;
  opacity: 0.001;
  filter: blur(10px);
  transform: translateY(10px);
  will-change: opacity, filter, transform;
}
.js .r-unit.is-in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity 620ms var(--ease-out),
    filter 620ms var(--ease-out),
    transform 620ms var(--ease-out);
}
.js .r-block {
  opacity: 0.001;
  filter: blur(10px);
  transform: translateY(10px);
}
.js .r-block.is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition:
    opacity 800ms var(--ease-out),
    filter 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
  margin-top: calc(var(--header-h) * -1 - 1px);
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform;
}
.js .hero-bg img { transform: scale(1.2); }
.js .hero-bg.is-in img {
  transform: scale(1);
  transition: transform 4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}
.hero-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, 58vw);
  height: min(640px, 58vw);
  transform: translate(-50%, -50%) rotate(-63deg);
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  will-change: transform, opacity;
}
.hero-orb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.js .hero-orb {
  opacity: 0.001;
  transform: translate(-50%, -50%) translateY(50px) scale(0.5) rotate(0deg);
}
.js .hero-orb.is-in {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1) rotate(-63deg);
  transition:
    opacity 1.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .hero-orb.is-spinning {
  animation: orb-spin 40s linear 0.3s infinite;
}
.hero-orb.is-paused { animation-play-state: paused; }
@keyframes orb-spin {
  from { transform: translate(-50%, -50%) rotate(-63deg); }
  to   { transform: translate(-50%, -50%) rotate(297deg); }
}
.hero-word {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  text-align: center;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 10px 60px rgba(80,30,160,0.35);
  white-space: nowrap;
  font-weight: 400;
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-cluster {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}
.tile {
  position: absolute;
  pointer-events: auto;
  background: rgba(8, 6, 16, 0.42);
  border: 1px solid var(--hair);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color 300ms ease, border-color 300ms ease;
  will-change: transform;
}
.tile.is-empty { width: 110px; height: 110px; }
.tile.is-label {
  width: 132px; height: 132px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 18px 10px 26px;
}
.tile.is-label .tile-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.tile.is-label .tile-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
}
.tile.is-hot { background: rgba(156, 98, 250, 0.45); border-color: rgba(180,140,255,0.45); }
.tile-pip {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
}
.tile-pip.tl { top: 8px; left: 8px; }
.tile-pip.tr { top: 8px; right: 8px; }
.tile-pip.bl { bottom: 8px; left: 8px; }
.tile-pip.br { bottom: 8px; right: 8px; }
.hero-bottom {
  position: absolute;
  left: max(24px, calc((100% - var(--content)) / 2));
  right: max(24px, calc((100% - var(--content)) / 2));
  bottom: 64px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}
.hero-blurb {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 380px;
  pointer-events: auto;
}
.hero-blurb img {
  width: 92px; height: 92px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
}
.hero-blurb p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,0.86);
  font-weight: 400;
}
.hero-aside {
  text-align: right;
  max-width: 260px;
  flex-shrink: 0;
  pointer-events: auto;
}
.hero-aside p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* ---------- sections ---------- */
.section { padding: var(--pad-y) 0; position: relative; }
.section-dark { background: #000; color: #fff; }
.section-light { background: #fff; color: #000; }
.section-intro { text-align: center; max-width: 780px; margin: 0 auto 64px; }
.section-intro .pill { margin-bottom: 22px; }
.section-intro .h2 { margin-bottom: 16px; }
.section-intro p { margin: 0 auto; max-width: 680px; }

/* trusted / marquee */
.trusted { padding: 40px 0 80px; overflow: hidden; }
.trusted h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.041em;
  margin: 0 0 36px;
}
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee-left 22s linear infinite;
  will-change: transform;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.72);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.marquee-item img {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.85;
  filter: grayscale(0.15);
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track { animation-duration: 22s; }

/* about */
.about-block { padding-top: 20px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin-top: 72px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4/3.3;
  object-fit: cover;
  border-radius: 22px;
}
.about-copy .fact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}
.about-copy .fact-num {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.about-copy .fact-label {
  font-size: 13px;
  color: var(--muted);
}
.about-copy .h3 { margin: 36px 0 14px; }
.about-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }

/* services accordion */
.services-head {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.services-head .lede {
  margin: 0;
  color: var(--muted-light);
  font-size: 16px;
  text-align: right;
  line-height: 1.4;
}
.accordion { border-top: 1px solid #eee; }
.acc-item { border-bottom: 1px solid #eee; }
.acc-head {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 16px;
  align-items: start;
  width: 100%;
  text-align: left;
  padding: 28px 0;
  color: inherit;
}
.acc-head .acc-index, .acc-head .acc-toggle { margin-top: 8px; }
.acc-head .acc-teaser { margin-top: 8px; }
.acc-index {
  font-size: 14px;
  color: #999;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.acc-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.046em;
  line-height: 1.1;
}
.acc-teaser {
  font-size: 16px;
  color: var(--muted-light);
  max-width: 340px;
  text-align: left;
  line-height: 1.35;
  transition: opacity 300ms ease;
}
.acc-item.is-open .acc-teaser { opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
.acc-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #ddd;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
  transition: background 300ms ease, border-color 300ms ease;
}
.acc-toggle::before, .acc-toggle::after {
  content: "";
  position: absolute;
  background: #111;
  border-radius: 1px;
}
.acc-toggle::before { width: 14px; height: 1.5px; }
.acc-toggle::after { width: 1.5px; height: 14px; transition: transform 300ms ease, opacity 300ms ease; }
.acc-item.is-open .acc-toggle { background: #111; border-color: #111; }
.acc-item.is-open .acc-toggle::before, .acc-item.is-open .acc-toggle::after { background: #fff; }
.acc-item.is-open .acc-toggle::after { transform: scaleY(0); opacity: 0; }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-acc) var(--ease-out-soft);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.acc-body {
  display: grid;
  grid-template-columns: 64px 1fr 1fr auto;
  gap: 16px;
  padding: 0 0 36px;
  align-items: start;
}
.acc-body .acc-desc {
  max-width: 420px;
  margin: 0 0 18px;
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.45;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #333;
}
.acc-visuals {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition: opacity 500ms ease 80ms, transform 500ms var(--ease-out) 80ms;
}
.acc-item.is-open .acc-visuals { opacity: 1; transform: none; }
.acc-visuals .round {
  width: 148px; height: 148px;
  border-radius: 50%;
  object-fit: cover;
}
.acc-visuals .rect {
  width: 168px; height: 200px;
  border-radius: 18px;
  object-fit: cover;
}
.services-cta { margin-top: 48px; }

/* projects carousel */
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.carousel-nav { display: flex; gap: 12px; }
.circ-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--hair);
  background: transparent;
  color: #fff;
  transition: background var(--dur-btn) ease, color var(--dur-btn) ease, border-color var(--dur-btn) ease;
}
.circ-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.circ-btn.next { background: var(--brand); border-color: var(--brand); color: #fff; }
.circ-btn.next:hover { background: #fff; color: #000; border-color: #fff; }
.circ-btn.prev:hover { background: #fff; color: #000; border-color: #fff; }
.carousel-viewport {
  overflow: hidden;
  width: calc(100vw - (100vw - min(var(--content), calc(100% - 48px))) / 2);
  max-width: none;
}
.carousel-track {
  display: flex;
  gap: 16px;
  will-change: transform;
  transition: transform var(--dur-slide) var(--ease-out-soft);
}
.project-card {
  flex: 0 0 480px;
  width: 480px;
  height: 472px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  color: #fff;
  display: block;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-card .title {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.046em;
  line-height: 1.15;
  text-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.progress-bar {
  margin-top: 28px;
  height: 2px;
  background: rgba(156, 98, 250, 0.22);
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width var(--dur-slide) var(--ease-out-soft);
}

/* process */
.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.process-copy .pill { margin-bottom: 22px; }
.process-copy .h2 { margin-bottom: 48px; }
.process-step-title { margin-bottom: 10px; }
.process-step-body {
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.45;
  min-height: 4.4em;
  margin: 0 0 28px;
  max-width: 380px;
}
.step-pills { display: flex; gap: 12px; }
.step-pill {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--brand-30);
  background: #f3f0f8;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  display: grid; place-items: center;
  transition: background 500ms ease, color 500ms ease, border-color 500ms ease;
}
.step-pill.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}
.process-visual {
  position: relative;
  perspective: 1200px;
}
.process-visual::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.15;
}
.process-visual .shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 22px;
  transform: rotateY(-8deg) rotateX(1deg);
  transform-origin: left center;
  box-shadow: 30px 20px 60px rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity var(--dur-fade) ease;
}
.process-visual .shot.is-on { opacity: 1; }

/* impact */
.impact .section-intro { margin-bottom: 48px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 36px 28px 32px;
  min-height: 210px;
}
.stat-num {
  font-size: 78px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1em;
  margin: 0 0 18px;
}
.stat-label {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.stat-cap { margin: 0; color: var(--muted); font-size: 14px; }

/* bento */
.bento-head { text-align: center; margin-bottom: 56px; }
.bento {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  min-height: 560px;
}
.bento-card {
  background: #fff;
  color: #000;
  border-radius: 22px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
}
.bento-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
}
.bento-card .icon { width: 28px; height: 28px; color: #111; }
.bento-card .idx { color: var(--brand); font-size: 16px; font-weight: 500; }
.bento-card .h4 { margin: 18px 0 8px; }
.bento-card p { margin: 0; color: var(--muted-light); font-size: 15px; line-height: 1.35; }
.bento-photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 22px;
  overflow: hidden;
}
.bento-photo img { width: 100%; height: 100%; object-fit: cover; }
.js .bento-card, .js .bento-photo {
  opacity: 0.001;
  filter: blur(10px);
  transform: translateY(16px);
}
.js .bento-card.is-in, .js .bento-photo.is-in {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity 800ms var(--ease-out), filter 800ms var(--ease-out), transform 800ms var(--ease-out);
}

/* about sheet (FAQ visual language, not fake Q&A) */
.sheet-wrap { background: #000; padding: 40px 0 0; }
.sheet {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  background: #fff;
  color: #000;
  border-radius: 28px;
  padding: 56px 48px 48px;
}
.sheet .h2 { margin: 12px 0 20px; }
.sheet p { color: #555; font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
.sheet h3 { margin: 28px 0 10px; }

/* CTA + footer */
.cta { text-align: center; padding: 100px 0 64px; }
.cta .logo-mark { width: 72px; height: 72px; margin: 0 auto 24px; }
.cta .h2 { margin-bottom: 24px; }
.footer { padding: 0 0 40px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: left;
}
.footer-cols h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-cols a, .footer-cols p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 8px;
  transition: color 200ms ease;
}
.footer-cols a:hover { color: var(--brand); }
.footer-rule {
  height: 1px;
  background: var(--brand);
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto 18px;
}
.footer-legal {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer-legal {
  flex-wrap: wrap;
}
.footer-legal a { color: rgba(255,255,255,0.7); }
.footer-legal a:hover { color: var(--brand); }
.footer-legal p:last-child {
  flex: 1 1 100%;
}

/* ---------- background music dock ---------- */
.bgm-dock {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.bgm-dock > * { pointer-events: auto; }
.bgm-volume {
  width: 32px;
  height: 100px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(8, 6, 16, 0.62);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  overflow: visible;
}
.bgm-volume-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 24px;
  margin: 0;
  margin-left: -42px;
  margin-top: -12px;
  background: transparent;
  transform: rotate(-90deg);
  transform-origin: center center;
  cursor: pointer;
}
.bgm-volume-input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 999px;
}
.bgm-volume-input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #6af08a var(--bgm-pct, 32%),
    rgba(255, 255, 255, 0.22) var(--bgm-pct, 32%)
  );
}
.bgm-volume-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 232, 120, 0.28);
}
.bgm-volume-input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.bgm-volume-input::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #6af08a;
}
.bgm-volume-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 232, 120, 0.28);
}
.bgm-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: #09090c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--dur-btn) ease, border-color var(--dur-btn) ease, box-shadow var(--dur-btn) ease;
}
.bgm-toggle:hover {
  border-color: rgba(90, 232, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(90, 232, 120, 0.12);
}
.bgm-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.bgm-toggle.is-playing {
  border-color: rgba(255, 255, 255, 0.38);
  background: #050507;
}
.bgm-icon {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
}
.bgm-icon-pause {
  display: none;
  width: 18px;
  height: 18px;
  fill: #fff;
}
.bgm-toggle.is-playing .bgm-icon-note { display: none; }
.bgm-toggle.is-playing .bgm-icon-pause { display: block; }
body:has(.hero) .bgm-dock { bottom: 88px; }

/* ---------- case / about / 404 pages ---------- */
.page-hero {
  padding: 72px 0 48px;
  text-align: left;
}
.page-hero .pill { margin-bottom: 22px; }
.page-hero .h2, .page-hero h1.h2 { margin-bottom: 16px; }
.page-hero .lede { max-width: 640px; color: var(--muted); margin: 0 0 12px; }
.case-meta { color: var(--white-60); font-size: 14px; margin: 0; }
.case-hero-img {
  width: 100%;
  border-radius: 22px;
  margin: 24px 0 64px;
  object-fit: cover;
  max-height: 640px;
}
.case-section { margin: 0 0 48px; }
.case-section h2 { margin: 0 0 14px; }
.case-section p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.case-tools { color: var(--white-60); font-size: 14px; }
.case-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 48px;
}
.case-figure { margin: 0; }
.case-figure img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
.case-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--white-60);
}
.case-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 0 0 48px;
}
.case-note {
  border-top: 1px solid var(--hair);
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.case-next {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.case-next a { color: #fff; font-weight: 500; }
.case-next a:hover { color: var(--brand); }

.giant-404 {
  font-size: 390px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-align: center;
  margin: 40px 0 10px;
}
.err-page { text-align: center; padding-bottom: 40px; }
.err-page .h2 { margin-bottom: 16px; }
.err-page p { color: var(--muted); margin: 0 auto 32px; max-width: 460px; }

.about-long { padding-bottom: 40px; }
.about-long .panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.about-long .panel img { width: 100%; border-radius: 20px; object-fit: cover; aspect-ratio: 4/3; }

/* image dialog */
.image-dialog {
  border: 0;
  padding: 0;
  background: rgba(0,0,0,0.92);
  color: #fff;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.image-dialog::backdrop { background: #000; }
.image-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
}
.image-dialog img {
  max-width: min(1400px, 92vw);
  max-height: calc(100vh - 100px);
  margin: 0 auto 32px;
  object-fit: contain;
}

/* ---------- breakpoints ---------- */
@media (max-width: 1199px) {
  :root { --pad-y: 88px; }
  .h1-hero, .hero-word, .giant-404 { font-size: 250px; }
  .h2 { font-size: 40px; }
  .h3, .acc-title, .project-card .title { font-size: 26px; }
  .h4 { font-size: 22px; }
  .stat-num { font-size: 64px; }
  .project-card { flex-basis: 400px; width: 400px; height: 400px; }
  .about-grid, .process-grid, .services-head { grid-template-columns: 1fr; }
  .services-head .lede { text-align: left; }
  .acc-head { grid-template-columns: 48px 1fr auto; }
  .acc-teaser { display: none; }
  .acc-body { grid-template-columns: 48px 1fr; }
  .acc-visuals { grid-column: 2; justify-content: flex-start; margin-top: 16px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
  .bento-photo { grid-column: 1 / -1; grid-row: auto; height: 360px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat-card { padding: 28px 20px 24px; min-height: 180px; }
  .case-gallery, .case-split, .about-long .panel { grid-template-columns: 1fr; }
  .hero-orb { width: min(500px, 64vw); height: min(500px, 64vw); }
  .hero-bottom { bottom: 48px; }
  .hero-aside p { font-size: 16px; }
  .tile.is-empty { width: 80px; height: 80px; }
  .tile.is-label { width: 104px; height: 104px; padding: 14px 8px 20px; gap: 8px; }
  .tile.is-label .tile-icon { width: 40px; height: 40px; }
  .tile.is-label .tile-name { font-size: 11px; letter-spacing: 0.14em; }
}

@media (max-width: 809px) {
  :root { --pad-y: 72px; --header-h: 68px; }
  .h1-hero, .hero-word, .giant-404 { font-size: 120px; }
  .h2 { font-size: 36px; }
  .h3, .acc-title, .project-card .title { font-size: 24px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-rule .notch { display: none; }
  .mobile-panel a { font-size: 22px; font-weight: 500; }
  .hero {
    display: flex;
    flex-direction: column;
  }
  .hero-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 420px;
    width: 100%;
  }
  .hero-orb {
    width: min(420px, 72vw);
    height: min(420px, 72vw);
    top: 48%;
  }
  .hero-cluster { inset: 2% 0 6%; }
  .hero-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(var(--content), calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 28px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
  }
  .hero-blurb {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    gap: 12px;
  }
  .hero-blurb img { width: 72px; height: 72px; }
  .hero-aside {
    display: block;
    text-align: left;
    max-width: 20em;
  }
  .hero-aside p {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.25;
  }
  .tile.is-empty { display: none; }
  .tile.is-label { width: 88px; height: 88px; padding: 12px 6px 16px; gap: 6px; }
  .tile.is-label .tile-icon { width: 34px; height: 34px; }
  .tile.is-label .tile-name { font-size: 9px; letter-spacing: 0.12em; }
  .hero-word { font-size: 100px; }
  .project-card { flex-basis: 84vw; width: 84vw; height: 84vw; }
  .carousel-viewport { width: 100%; margin: 0; }
  .projects-head { flex-wrap: wrap; gap: 16px; align-items: center; }
  .footer-cols, .footer-legal { grid-template-columns: 1fr; display: grid; text-align: left; }
  .footer-legal { flex-direction: column; }
  .sheet { padding: 32px 20px; border-radius: 20px; }
  .acc-visuals .round { width: 110px; height: 110px; }
  .acc-visuals .rect { width: 120px; height: 150px; }
  .stats { grid-template-columns: 1fr; }
  .stat-num { font-size: 56px; }
  .stat-card { min-height: 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-photo { height: 280px; }
  .page-hero { padding: 48px 0 32px; }
  .bgm-dock { right: 12px; bottom: 16px; gap: 8px; }
  body:has(.hero) .bgm-dock { bottom: 16px; }
  .bgm-volume { width: 30px; height: 88px; }
  .bgm-volume-input { width: 72px; }
  .bgm-toggle { width: 44px; height: 44px; }
  .bgm-icon { width: 20px; height: 20px; }
  .case-hero-img { margin: 20px 0 40px; max-height: 420px; }
  .case-next { flex-direction: column; }
  .wrap, .header-inner, .header-rule, .footer-rule, .footer-legal, .sheet {
    width: min(var(--content), calc(100% - 32px));
  }
}


/* ---------- light press feedback (iOS-like, not a brand mark) ---------- */
a, button {
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .is-press {
    animation: ui-press 90ms ease-out forwards;
  }
}
@keyframes ui-press {
  0% { transform: scale(1); }
  40% { transform: scale(0.97) translateY(1px); }
  100% { transform: scale(0.975) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .r-unit, .js .r-block, .js .bento-card, .js .bento-photo {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .marquee-track { animation: none !important; }
  .has-cursor, .has-cursor * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .page-veil { display: none !important; }
  .hero-bg img, .js .hero-bg img, .js .hero-bg.is-in img {
    transform: scale(1) !important;
  }
  .hero-orb, .js .hero-orb, .js .hero-orb.is-in, .js .hero-orb.is-spinning {
    opacity: 1 !important;
    transform: translate(-50%, -50%) rotate(-63deg) !important;
    animation: none !important;
  }
  .is-press {
    animation: none !important;
    transform: scale(0.99) !important;
  }
}
