:root {
  --ink: #111218;
  --muted: #5d6475;
  --line: rgba(17, 18, 24, 0.13);
  --blue: #2354f5;
  --lime: #d9f33b;
  --pink: #ff78b6;
  --paper: #f8faff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page: min(1440px, calc(100vw - 48px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
em { color: var(--blue); font-style: normal; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(35, 84, 245, .2); }
::-webkit-scrollbar-thumb:hover { background: rgba(35, 84, 245, .36); }

:focus-visible {
  outline: 3px solid rgba(35, 84, 245, .75);
  outline-offset: 5px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(22, 38, 104, .18);
  transform: translateY(-180%);
  transition: transform .25s ease;
}
.skip-link:focus { transform: translateY(0); }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 43%, #fff 0%, #edf1ff 41%, #c9d7ff 100%);
  transition: background 1.2s cubic-bezier(.65, 0, .35, 1);
}
body[data-stage="1"] .ambient {
  background: radial-gradient(circle at 50% 43%, #fff 0%, #fbffe7 41%, #e6f9a9 100%);
}
body[data-stage="2"] .ambient {
  background: radial-gradient(circle at 50% 43%, #fff 0%, #fff0f5 41%, #ffcfe4 100%);
}
body[data-stage="1"] .fallback-orbs i {
  background: radial-gradient(circle at 35% 28%, #fff 0 8%, #effe69 29%, #e1fc03 67%, #a9cc00 100%);
}
body[data-stage="2"] .fallback-orbs i {
  background: radial-gradient(circle at 35% 28%, #fff 0 8%, #ffd7df 29%, #ff8ab8 67%, #ea3f73 100%);
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
#sphere-field { width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.scene.is-ready #sphere-field { opacity: 1; }
.scene.is-fallback #sphere-field { display: none; }
.fallback-orbs {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: opacity .8s ease;
}
.scene.is-ready .fallback-orbs { opacity: 0; }
.fallback-orbs i {
  position: absolute;
  left: 50%;
  top: 35%;
  width: clamp(54px, 8vw, 126px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0 8%, #93adff 29%, #2555f4 67%, #0a2aa2 100%);
  box-shadow: inset -10px -15px 28px rgba(7, 28, 109, .22), 0 24px 55px rgba(38, 77, 203, .18);
  transform: translate(-50%, -50%);
}
.fallback-orbs i:nth-child(1) { margin: -16vh 0 0 -15vw; scale: 1.28; }
.fallback-orbs i:nth-child(2) { margin: -19vh 0 0 2vw; scale: .62; }
.fallback-orbs i:nth-child(3) { margin: -8vh 0 0 14vw; scale: 1.05; }
.fallback-orbs i:nth-child(4) { margin: 3vh 0 0 -20vw; scale: .68; }
.fallback-orbs i:nth-child(5) { margin: 4vh 0 0 -5vw; scale: 1.45; }
.fallback-orbs i:nth-child(6) { margin: 11vh 0 0 14vw; scale: .8; }
.fallback-orbs i:nth-child(7) { margin: -3vh 0 0 28vw; scale: .48; }
.fallback-orbs i:nth-child(8) { margin: 18vh 0 0 -27vw; scale: .45; }
.fallback-orbs i:nth-child(9) { margin: 22vh 0 0 1vw; scale: .58; }
.fallback-orbs i:nth-child(10) { margin: -27vh 0 0 25vw; scale: .38; }
.fallback-orbs i:nth-child(11) { margin: -30vh 0 0 -30vw; scale: .32; }
.fallback-orbs i:nth-child(12) { margin: 27vh 0 0 25vw; scale: .34; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 92px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  pointer-events: none;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid rgba(66, 79, 126, .08);
  background: rgba(248, 250, 255, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
  opacity: 0;
  transition: opacity .4s ease;
}
body.is-scrolled .site-header::before { opacity: 1; }
.brand, .primary-nav, .motion-toggle { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { position: relative; display: grid; place-items: center; width: 128px; height: 39px; }
.brand-mark img { width: 128px; height: auto; opacity: 0; filter: invert(1); transition: opacity .3s ease; }
.brand-mark img.is-loaded { opacity: 1; }
.brand-fallback { position: absolute; font-size: 15px; font-weight: 900; letter-spacing: .22em; }
.brand-mark:has(img.is-loaded) .brand-fallback { opacity: 0; }
.brand-studio {
  padding-top: 1px;
  color: #53607c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
}
.primary-nav a {
  position: relative;
  padding: 10px;
  font-size: 13px;
  font-weight: 650;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.primary-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.motion-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 14px 6px 7px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 1px #fff, 0 12px 32px rgba(26, 45, 123, .08);
  backdrop-filter: blur(18px);
  cursor: pointer;
}
.motion-icon { display: flex; align-items: center; justify-content: center; gap: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.motion-icon i { display: block; width: 2px; height: 9px; border-radius: 2px; background: #fff; }
.motion-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.motion-toggle[aria-pressed="true"] .motion-icon i:first-child { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #fff; background: none; }
.motion-toggle[aria-pressed="true"] .motion-icon i:last-child { display: none; }

main { position: relative; z-index: 2; }
.stage { min-height: 100svh; padding-inline: max(24px, calc((100vw - 1440px) / 2)); }
.hero { display: flex; align-items: flex-end; padding-bottom: clamp(34px, 6vh, 72px); }
.hero-copy { width: 100%; }
.eyebrow, .section-index, .footer-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { display: flex; justify-content: space-between; margin: 0 0 24px; color: #3954ad; }
.hero h1, .products-heading h2 {
  margin: 0;
  font-size: clamp(3.7rem, 9.4vw, 9.4rem);
  font-weight: 620;
  letter-spacing: -.075em;
  line-height: .83;
}
.hero h1 em, .products-heading h2 em { font-weight: 420; }
.hero h1 { text-shadow: 0 2px 18px rgba(255,255,255,.78), 0 0 56px rgba(255,255,255,.86); }
.hero h1 em { color: var(--ink); }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 38px;
}
.hero-foot p, .products-heading > p {
  margin: 0;
  color: #3e4658;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 540;
  line-height: 1.55;
}
.scroll-link, .footer-top > a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 7px 7px 7px 20px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 1px #fff, 0 12px 34px rgba(35, 84, 245, .09);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 700;
}
.scroll-link svg, .footer-top svg { width: 36px; height: 36px; padding: 10px; border-radius: 50%; background: var(--blue); stroke: #fff; stroke-width: 1.8; fill: none; transition: transform .35s var(--ease); }
.scroll-link:hover svg { transform: translateY(3px); }

.products-intro {
  display: grid;
  grid-template-columns: 1fr 3fr;
  align-items: end;
  gap: 32px;
  min-height: 0;
  padding-top: 150px;
  padding-bottom: 32px;
}
.section-index { align-self: end; display: flex; gap: 20px; padding: 0 0 16px; color: #435275; }
.section-index span:first-child { color: var(--blue); }
.products-heading { align-self: end; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0; }
.products-heading h2 { font-size: clamp(3.3rem, 6.1vw, 6.3rem); }
.products-heading > p { max-width: 230px; margin: 0 0 12px; }

.catalog { position: relative; scroll-margin-top: 72px; }
.product-list { width: 100%; }
.empty-state {
  display: grid;
  place-items: center;
  min-height: 70svh;
  padding: 48px 24px;
  text-align: center;
}
.empty-state p { margin: 0; color: var(--muted); font-size: clamp(20px, 3vw, 38px); font-weight: 560; letter-spacing: -.03em; }
.load-failure { display: flex; flex-direction: column; gap: 22px; }
.retry-button {
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}
.retry-button:disabled { cursor: wait; opacity: .58; }
.product-panel {
  --product-accent: var(--blue);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
  align-items: center;
  gap: clamp(34px, 7vw, 110px);
  width: var(--page);
  min-height: 100svh;
  margin: 0 auto;
  padding: 116px 0 70px;
}
.product-panel:nth-child(even) .product-visual { order: 2; }
.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(63vw, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: clamp(28px, 4vw, 58px);
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 1px 1px #fff, 0 34px 90px rgba(29, 47, 117, .14);
  backdrop-filter: blur(24px);
}
.product-visual::before, .product-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: var(--product-accent);
  opacity: .88;
  filter: saturate(1.05);
  box-shadow: inset -20px -22px 40px rgba(10, 20, 75, .2), inset 16px 12px 30px rgba(255, 255, 255, .48), 0 28px 70px color-mix(in srgb, var(--product-accent) 30%, transparent);
}
.product-visual::before { width: 48%; aspect-ratio: 1; transform: translate(-24%, 10%); }
.product-visual::after { width: 25%; aspect-ratio: 1; transform: translate(83%, -78%); opacity: .64; }
.product-monogram {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(4.6rem, 11vw, 10rem);
  font-weight: 800;
  letter-spacing: -.09em;
  text-shadow: 0 12px 34px rgba(9, 16, 55, .22);
}
.product-panel[data-slug="boooook"] .product-visual { background: linear-gradient(140deg, rgba(255,255,255,.44), rgba(255,225,241,.56)); }
.product-panel[data-slug="yeonwoo-workspace"] .product-visual { background: linear-gradient(140deg, rgba(255,255,255,.44), rgba(220,230,255,.62)); }
.product-copy { padding: 30px 0; }
.product-number, .product-category {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.product-number { color: var(--product-accent); }
.product-category { margin-left: 12px; color: #6d7483; }
.product-copy h3 { margin: 30px 0 16px; font-size: clamp(2.5rem, 5vw, 5.2rem); font-weight: 610; letter-spacing: -.06em; line-height: .95; }
.product-summary { max-width: 430px; margin: 0; color: #353c4d; font-size: clamp(16px, 1.45vw, 20px); font-weight: 520; line-height: 1.55; }
.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 8px 8px 8px 21px;
  border: 1px solid rgba(17, 18, 24, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 720;
}
.detail-link span:last-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--ink); font-size: 17px; transition: transform .35s var(--ease); }
.detail-link:hover span:last-child { transform: translate(2px, -2px); }

.site-footer {
  position: relative;
  z-index: 5;
  overflow: hidden;
  margin: 0 12px 12px;
  padding: clamp(50px, 8vw, 112px) max(24px, calc((100vw - 1392px) / 2)) 30px;
  color: #fff;
  border-radius: clamp(28px, 5vw, 72px);
  background: #101116;
}
.footer-orbit { position: absolute; right: -12%; top: -45%; width: 58vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(44, 88, 255, .46), transparent 64%); filter: blur(24px); }
.footer-top, .footer-bottom { position: relative; z-index: 1; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 42px; }
.footer-kicker { margin: 0 0 24px; color: rgba(255, 255, 255, .42); }
.footer-title { margin: 0; font-size: clamp(2.8rem, 6.2vw, 6.2rem); font-weight: 560; letter-spacing: -.065em; line-height: .88; }
.footer-top > a { flex: none; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.footer-top > a svg { background: #fff; stroke: #111218; }
.footer-top > a:hover svg { transform: translateX(3px); }
.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: clamp(90px, 14vw, 190px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: rgba(255,255,255,.47);
  font-size: 10px;
  line-height: 1.6;
}
.company-info { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom p { flex: none; margin: 0; }
.footer-journal { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 680; }
.footer-journal:hover { color: #fff; }
.noscript-note { position: fixed; right: 14px; bottom: 14px; z-index: 100; padding: 12px 16px; border-radius: 12px; background: #111218; color: #fff; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Product detail */
body.detail-view .scene { opacity: .12; }
body.detail-view .primary-nav { visibility: hidden; }
.detail-page { min-height: 100svh; padding: 150px max(24px, calc((100vw - 1200px) / 2)) 90px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; color: #515a6c; font-size: 12px; font-weight: 700; }
.back-link span { font-size: 18px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr); gap: 7vw; align-items: end; min-height: 55svh; padding: 8vh 0 9vh; }
.detail-kicker { margin: 0 0 25px; color: var(--detail-accent, var(--blue)); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 750; letter-spacing: .18em; }
.detail-hero h1 { margin: 0; font-size: clamp(3.5rem, 8.2vw, 8rem); font-weight: 630; letter-spacing: -.075em; line-height: .87; }
.detail-official-name { margin: 22px 0 0; color: #596173; font-size: 13px; font-weight: 650; }
.detail-summary { margin: 0 0 24px; font-size: clamp(21px, 2.2vw, 30px); font-weight: 580; letter-spacing: -.035em; line-height: 1.22; }
.detail-description { margin: 0; color: #4b5364; font-size: 16px; line-height: 1.7; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.detail-meta span { padding: 9px 13px; border: 1px solid rgba(17,18,24,.1); border-radius: 999px; background: rgba(255,255,255,.36); font-size: 11px; font-weight: 680; backdrop-filter: blur(12px); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.detail-actions a { display: inline-flex; align-items: center; gap: 12px; padding: 13px 17px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 720; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature-list li { min-height: 150px; padding: 24px; border: 1px solid rgba(255,255,255,.72); border-radius: 24px; background: rgba(255,255,255,.3); backdrop-filter: blur(18px); font-size: 15px; font-weight: 600; line-height: 1.5; }
.missing-product { display: grid; place-items: center; min-height: calc(100svh - 180px); text-align: center; }
.missing-product h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 6.5rem); letter-spacing: -.06em; }
.missing-product p { margin: 20px 0 30px; color: var(--muted); }
.missing-product a { display: inline-flex; padding: 13px 19px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.missing-product .retry-button { margin-right: 8px; }

@media (max-width: 780px) {
  :root { --page: calc(100vw - 32px); }
  .site-header { grid-template-columns: auto 1fr auto; gap: 6px; height: 76px; padding: 0 16px; }
  .primary-nav { display: flex; justify-content: flex-end; }
  .primary-nav a:first-child { display: none; }
  .primary-nav a { padding-inline: 7px; font-size: 11px; }
  .brand-mark { width: 106px; }
  .brand-mark img { width: 106px; }
  .brand-studio { font-size: 8px; }
  .motion-label { display: none; }
  .motion-toggle { padding: 5px; }
  .hero { padding-inline: 18px; padding-bottom: 28px; }
  .hero h1 { font-size: clamp(3.15rem, 15.2vw, 6rem); line-height: .86; }
  .hero-foot { align-items: flex-start; margin-top: 28px; }
  .scroll-link { gap: 12px; padding-left: 14px; }
  .products-intro { grid-template-columns: 1fr; padding-inline: 18px; align-content: center; }
  .products-intro { padding-top: 110px; padding-bottom: 18px; }
  .section-index { align-self: auto; padding: 0; }
  .products-heading { align-self: auto; display: block; padding-top: 0; }
  .products-heading h2 { font-size: clamp(3.1rem, 14vw, 5.8rem); }
  .products-heading > p { margin: 20px 0 0; }
  .product-panel { grid-template-columns: 1fr; gap: 10px; padding: 100px 0 60px; }
  .product-panel:nth-child(even) .product-visual { order: 0; }
  .product-visual { min-height: min(92vw, 560px); border-radius: 30px; }
  .product-copy { padding: 24px 4px; }
  .product-copy h3 { margin-top: 24px; }
  .site-footer { margin: 0 8px 8px; padding-inline: 24px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom p { flex: auto; }
  .detail-page { padding: 112px 20px 70px; }
  .detail-hero { grid-template-columns: 1fr; align-content: center; min-height: 70svh; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

@media (forced-colors: active) {
  .fallback-orbs { display: none; }
  .motion-icon, .scroll-link svg, .detail-link span:last-child { forced-color-adjust: none; }
}
