:root {
  --black: #050507;
  --ink: #09090d;
  --paper: #f2f0ef;
  --white: #f8f7fa;
  --muted: #9c99a6;
  --line: rgba(255, 255, 255, 0.15);
  --blue: #199dff;
  --violet: #8557ff;
  --pink: #ff28bd;
  --acid: #b8ff39;
  --pad: clamp(22px, 4vw, 68px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", "Noto Sans KR", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-gated,
body.menu-open,
body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--pink);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 5000;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 3000;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  height: 2px;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);
  color: #08080a;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
  transition: opacity 180ms ease, transform 280ms var(--ease);
  mix-blend-mode: exclusion;
}

.cursor span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-active {
  transform: translate(-50%, -50%) scale(1);
}

.section-pad {
  padding-right: var(--pad);
  padding-left: var(--pad);
}

.section-code {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030409;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms var(--ease), visibility 900ms;
}

.gate.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-visual,
.gate-image,
.gate-scan {
  position: absolute;
  inset: 0;
}

.gate-image {
  background:
    linear-gradient(90deg, rgba(3, 4, 9, 0.88), rgba(3, 4, 9, 0.15) 62%, rgba(3, 4, 9, 0.7)),
    linear-gradient(0deg, rgba(3, 4, 9, 0.8), transparent 55%),
    url("assets/hero-bg.jpg?v=r7filenamecache20260616") 65% center / cover no-repeat;
  filter: saturate(0.7) contrast(1.2);
  transform: scale(1.04);
  animation: gateZoom 9s ease-in-out infinite alternate;
}

.gate-scan {
  opacity: 0.22;
  background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.045) 6px);
  animation: gateScan 10s linear infinite;
}

.gate-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.gate-orbit::after {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
  content: "";
}

.gate-orbit-a {
  width: min(72vw, 780px);
  aspect-ratio: 1;
  animation: orbitA 16s linear infinite;
}

.gate-orbit-b {
  width: min(48vw, 520px);
  aspect-ratio: 1;
  border-color: rgba(25, 157, 255, 0.26);
  animation: orbitB 12s linear infinite reverse;
}

.gate-topline,
.gate-bottom {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  left: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.gate-topline {
  top: 28px;
}

.gate-topline img {
  width: 144px;
}

.gate-bottom {
  bottom: 28px;
  justify-content: flex-end;
  gap: 35px;
}

.gate-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mono-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.status-dot,
.header-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
  animation: pulse 1.6s ease-in-out infinite;
}

.gate h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.gate h1 span {
  color: #fff;
  font-size: clamp(50px, 8.4vw, 138px);
  font-weight: 800;
}

.gate h1 strong {
  background: linear-gradient(100deg, var(--blue), #9470ff 47%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(76px, 13vw, 220px);
  font-weight: 900;
}

.gate-button {
  position: absolute;
  top: 50%;
  right: -170px;
  display: flex;
  width: 128px;
  height: 128px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--acid);
  color: #09090b;
  cursor: pointer;
  transition: transform 400ms var(--ease), background 250ms ease;
}

.gate-button:hover {
  background: #fff;
  transform: scale(1.08) rotate(7deg);
}

.gate-button-ring {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(184, 255, 57, 0.5);
  border-radius: 50%;
  animation: ringPulse 2s ease-out infinite;
}

.gate-button > span:not(.gate-button-ring) {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.gate-button small {
  max-width: 72px;
  margin-top: 5px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

/* Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  height: 84px;
  align-items: center;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: height 300ms var(--ease), background 300ms ease, border-color 300ms ease;
}

.header.is-scrolled {
  height: 68px;
  border-color: var(--line);
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(18px);
}

.header-logo {
  width: 148px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--acid);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--ease);
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 12px 8px;
  background: none;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: #fff;
  transition: transform 250ms var(--ease);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  flex-direction: column;
  justify-content: center;
  padding: 90px 24px 40px;
  background: rgba(5, 5, 7, 0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 11vw, 54px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.mobile-nav a span {
  color: var(--pink);
  font-size: 9px;
  letter-spacing: 0.12em;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #050710;
}

.hero-bg,
.hero-gradient,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("assets/hero-bg.jpg?v=r7filenamecache20260616") 62% center / cover no-repeat;
  transform: scale(1.06);
  will-change: transform;
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(3, 4, 10, 0.88) 0%, rgba(3, 4, 10, 0.14) 58%, rgba(3, 4, 10, 0.4) 100%),
    linear-gradient(0deg, #050507 0%, transparent 32%),
    radial-gradient(circle at 65% 44%, transparent 0%, rgba(2, 3, 8, 0.12) 52%, rgba(2, 3, 8, 0.62) 100%);
}

.hero-grid {
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 7.14vw 7.14vw;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.hero-kicker {
  position: absolute;
  top: 116px;
  right: var(--pad);
  left: var(--pad);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: var(--pad);
  z-index: 2;
  display: flex;
  width: calc(100% - var(--pad) * 2);
  flex-direction: column;
  pointer-events: none;
  transform: translateY(-53%);
}

.hero-word {
  display: block;
  font-size: clamp(112px, 18.5vw, 350px);
  font-weight: 900;
  letter-spacing: -0.105em;
  line-height: 0.7;
  white-space: nowrap;
}

.hero-word-top {
  color: #fff;
}

.hero-word-bottom {
  align-self: flex-end;
  padding-right: 0.08em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.82);
}

.hero-message {
  position: absolute;
  bottom: 58px;
  left: var(--pad);
  z-index: 5;
}

.hero-message p,
.hero-message strong {
  margin: 0;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.hero-message strong {
  color: var(--acid);
}

.hero-card {
  position: absolute;
  top: 50%;
  left: 51%;
  z-index: 4;
  width: clamp(240px, 22vw, 410px);
  aspect-ratio: 0.76;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 5, 10, 0.16);
  backdrop-filter: blur(4px);
  transform: translate(-50%, -50%) rotate(4deg);
  transition: transform 700ms var(--ease);
  will-change: transform;
}

.hero-card-image {
  width: 100%;
  height: calc(100% - 37px);
  background: url("assets/category-artist.webp?v=r7filenamecache20260616") center / cover no-repeat;
  filter: saturate(1.1) contrast(1.04);
}

.hero-card-meta {
  display: flex;
  height: 37px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.68);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .12em;
}

.hero-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 44px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-scroll i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
  animation: scrollBounce 1.7s ease-in-out infinite;
}

/* Ticker */
.ticker {
  overflow: hidden;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--acid);
  color: #08080a;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 34px;
  animation: ticker 26s linear infinite;
}

.ticker span {
  font-size: clamp(20px, 2.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.ticker i {
  font-size: 16px;
  font-style: normal;
}

/* Manifesto */
.manifesto {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: 0.35fr 2.3fr 0.7fr;
  gap: 45px;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 130px;
  background: var(--paper);
  color: #09090b;
}

.manifesto-index {
  align-self: start;
  padding-top: 14px;
  color: #78757d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.manifesto-copy {
  position: relative;
  z-index: 2;
}

.manifesto-line {
  margin: 0;
  font-size: clamp(52px, 7vw, 132px);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.94;
  word-break: keep-all;
}

.manifesto-line:nth-child(2) {
  color: transparent;
  -webkit-text-stroke: 1.5px #09090b;
}

.manifesto-line.accent-line {
  background: linear-gradient(95deg, #087df0, #7a44ef 50%, #e900a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.manifesto-note {
  align-self: end;
  padding-bottom: 15px;
}

.manifesto-note p {
  margin: 0 0 30px;
  color: #514f55;
  font-size: 13px;
  line-height: 1.8;
  word-break: keep-all;
}

.manifesto-note span {
  padding-top: 12px;
  border-top: 1px solid #aaa6aa;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

/* AI Ad Concept Engine */
.ad-engine {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: center;
  padding-top: clamp(80px, 9vw, 138px);
  padding-bottom: clamp(80px, 9vw, 138px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 20%, rgba(184, 255, 57, .11), transparent 30%),
    radial-gradient(circle at 86% 62%, rgba(255, 40, 189, .15), transparent 34%),
    #050507;
  isolation: isolate;
}

.ad-engine-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 7vw 7vw;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 78%);
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.ad-engine-copy {
  max-width: 680px;
}

.ad-engine-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(54px, 6.8vw, 126px);
  line-height: .84;
  font-weight: 900;
  letter-spacing: -.06em;
}

.ad-engine-copy h2 em {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.ad-engine-copy p {
  max-width: 520px;
  margin: 34px 0 0;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  line-height: 1.9;
  word-break: keep-all;
}

.ad-engine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ad-engine-primary,
.ad-engine-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.ad-engine-primary {
  min-width: min(100%, 300px);
  padding: 0 18px 0 24px;
  background: var(--acid);
  color: #08080a;
  box-shadow: 0 0 34px rgba(184,255,57,.18);
}

.ad-engine-secondary {
  min-width: min(100%, 260px);
  padding: 0 18px 0 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.76);
}

.ad-engine-primary i,
.ad-engine-secondary i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.13);
  font-style: normal;
}

.ad-engine-secondary i {
  background: rgba(255,255,255,.08);
}

.ad-engine-panel {
  position: relative;
  overflow: hidden;
  height: min(760px, 82svh);
  min-height: 560px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.012)),
    #08080d;
  box-shadow: 0 40px 120px rgba(0,0,0,.44);
}

.ad-engine-panel::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 80px rgba(184,255,57,.05);
  content: "";
}

.ad-engine-panel-top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(5,5,7,.82);
  color: rgba(255,255,255,.56);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  backdrop-filter: blur(18px);
}

.ad-engine-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #050506;
}

/* Work */
.work {
  padding-top: 150px;
  padding-bottom: 170px;
  background: var(--black);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.section-head h2,
.cap-heading h2,
.contact h2 {
  margin: 18px 0 0;
  font-size: clamp(65px, 8.8vw, 160px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.78;
}

.section-head h2 em,
.contact h2 em {
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.section-head > p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  word-break: keep-all;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: clamp(15px, 2vw, 30px);
  align-items: start;
}

.project {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  background: #111;
  cursor: none;
  text-align: left;
  isolation: isolate;
}

.project-feature {
  grid-column: 1 / span 8;
  aspect-ratio: 1.45;
}

.project-portrait {
  grid-column: 10 / span 3;
  aspect-ratio: 0.62;
  margin-top: 180px;
}

.project-square {
  grid-column: 2 / span 5;
  aspect-ratio: 1;
  margin-top: 70px;
}

.project-tall {
  grid-column: 8 / span 4;
  aspect-ratio: 0.74;
  margin-top: -60px;
}

.project-wide {
  grid-column: 3 / span 8;
  aspect-ratio: 1.55;
  margin-top: 70px;
}

.project-media,
.project-overlay {
  position: absolute;
  inset: 0;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 600ms ease, transform 900ms var(--ease);
}

.project-overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(2,2,6,.08) 25%, rgba(2,2,6,.9) 100%);
  transition: background 400ms ease;
}

.project-no,
.project-info,
.project-action {
  position: absolute;
  z-index: 2;
}

.project-no {
  top: 20px;
  left: 20px;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.project-info {
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-info small {
  margin-bottom: 10px;
  color: rgba(255,255,255,.55);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}

.project-info strong {
  font-size: clamp(30px, 4vw, 74px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .82;
}

.project-portrait .project-info strong,
.project-tall .project-info strong {
  font-size: clamp(29px, 3.2vw, 58px);
}

.project-action {
  top: 18px;
  right: 18px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
  background: rgba(5,5,8,.22);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  backdrop-filter: blur(7px);
  transition: background 300ms ease, color 300ms ease, transform 300ms var(--ease);
}

.project:hover .project-media img {
  filter: saturate(1.18) contrast(1.06);
  transform: scale(1.055);
}

.project:hover .project-overlay {
  background: linear-gradient(180deg, rgba(2,2,6,.03) 25%, rgba(2,2,6,.76) 100%);
}

.project:hover .project-action {
  background: var(--acid);
  color: #08080a;
  transform: rotate(12deg);
}



/* Category Library */
.category-library {
  scroll-margin-top: 80px;
  padding-top: 150px;
  padding-bottom: 170px;
  background:
    radial-gradient(circle at 82% 12%, rgba(184, 255, 57, 0.08), transparent 28%),
    var(--black);
}

.category-library .section-head {
  margin-bottom: 42px;
}

.library-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.library-tabs button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: background 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms var(--ease);
}

.library-tabs button span {
  color: var(--muted);
  font-size: 8px;
}

.library-tabs button:hover,
.library-tabs button.is-active {
  border-color: var(--acid);
  background: var(--acid);
  color: #08080a;
  transform: translateY(-2px);
}

.library-tabs button:hover span,
.library-tabs button.is-active span {
  color: #36382f;
}

.library-status {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.library-status span {
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.library-status p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  word-break: keep-all;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 1.7vw, 26px);
  align-items: stretch;
}

.library-card,
.library-card.project {
  width: 100%;
  min-height: 420px;
  grid-column: auto;
  aspect-ratio: 0.74;
  margin: 0;
}

.library-card[hidden] {
  display: none !important;
}

.library-card .project-info {
  right: 20px;
  bottom: 20px;
  left: 20px;
}

.library-card .project-info strong {
  font-size: clamp(29px, 3vw, 52px);
}

.library-card .project-action {
  width: 52px;
  height: 52px;
}

.library-empty {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: flex-end;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.01)),
    #0d0d11;
  color: var(--white);
  isolation: isolate;
}

.library-empty::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.08);
  content: "";
}

.library-empty::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,255,57,.18), transparent 66%);
  content: "";
  filter: blur(20px);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.library-empty-no {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.library-empty div {
  position: relative;
  z-index: 2;
}

.library-empty small {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.library-empty strong {
  display: block;
  font-size: clamp(34px, 3.2vw, 58px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .82;
}

.library-empty p {
  margin: 18px 0 0;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  line-height: 1.7;
  word-break: keep-all;
}

/* Capabilities */
.capabilities {
  display: grid;
  min-height: 100svh;
  grid-template-columns: 0.92fr 1.08fr;
  background: #0b0b0e;
}

.cap-visual {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.cap-visual-image {
  position: absolute;
  inset: 0;
  background: url("assets/category-brand.webp?v=r7filenamecache20260616") center / cover no-repeat;
  filter: saturate(1.12) contrast(1.06);
  transition: opacity 350ms ease, transform 900ms var(--ease);
}

.cap-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 60%, #0b0b0e 100%),
    linear-gradient(0deg, rgba(4,4,7,.72), transparent 45%);
  content: "";
}

.cap-visual-code {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.cap-content {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 130px;
}

.cap-heading {
  margin-bottom: 70px;
}

.cap-heading h2 {
  font-size: clamp(46px, 5.8vw, 100px);
  line-height: .86;
}

.cap-list {
  border-top: 1px solid var(--line);
}

.cap-item {
  display: grid;
  width: 100%;
  grid-template-columns: 46px minmax(0, 1fr) minmax(160px, .8fr) 35px;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 250ms ease, padding 350ms var(--ease);
}

.cap-item span,
.cap-item small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .08em;
}

.cap-item strong {
  font-size: clamp(20px, 2.25vw, 38px);
  font-weight: 800;
  letter-spacing: -.055em;
}

.cap-item i {
  font-size: 19px;
  font-style: normal;
  text-align: right;
  transition: transform 250ms var(--ease);
}

.cap-item:hover,
.cap-item.is-active {
  padding-right: 12px;
  padding-left: 12px;
  background: var(--acid);
  color: #09090b;
}

.cap-item:hover span,
.cap-item:hover small,
.cap-item.is-active span,
.cap-item.is-active small {
  color: #36382f;
}

.cap-item:hover i,
.cap-item.is-active i {
  transform: rotate(45deg);
}

/* Studio */
.studio {
  padding-top: 160px;
  padding-bottom: 160px;
  background: var(--paper);
  color: #08080a;
}

.studio-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 110px;
}

.studio-head .section-code {
  color: #77747d;
}

.studio-head p {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.6;
  text-align: right;
}

.studio-statement p {
  margin: 0;
  font-size: clamp(68px, 11vw, 200px);
  font-weight: 900;
  letter-spacing: -.1em;
  line-height: .74;
}

.studio-statement .outline {
  color: transparent;
  -webkit-text-stroke: 2px #09090b;
  text-align: right;
}

.studio-statement .gradient-text {
  background: linear-gradient(90deg, #087ff4, #7e47f6 48%, #ed04b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: right;
}

.studio-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  margin-top: 130px;
  align-items: end;
}

.studio-description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.studio-description p {
  margin: 0;
  color: #514f55;
  font-size: 13px;
  line-height: 1.85;
  word-break: keep-all;
}

.studio-stats {
  border-top: 1px solid #b4b1b5;
}

.studio-stats div {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid #b4b1b5;
}

.studio-stats strong {
  font-size: 24px;
  letter-spacing: -.05em;
}

.studio-stats span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

/* Process */
.process {
  padding-top: 150px;
  padding-bottom: 150px;
  background: #0c0c10;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 170px;
  border-bottom: 1px solid var(--line);
  transition: padding 400ms var(--ease), background 300ms ease;
}

.process-item:hover {
  padding-right: 28px;
  padding-left: 28px;
  background: rgba(255,255,255,.035);
}

.process-item > span {
  color: var(--pink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.process-item div {
  display: grid;
  grid-template-columns: .7fr 1fr;
  gap: 40px;
  align-items: center;
}

.process-item strong {
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 900;
  letter-spacing: -.075em;
}

.process-item p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  word-break: keep-all;
}

.process-item i {
  font-size: 24px;
  font-style: normal;
}

/* Contact */
.contact {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #09070f;
}

.contact-bg,
.contact-orb {
  position: absolute;
}

.contact-bg {
  inset: 0;
  opacity: .32;
  background:
    linear-gradient(90deg, #09070f 0%, rgba(9,7,15,.38) 60%, #09070f 100%),
    url("assets/hero-bg.jpg?v=r7filenamecache20260616") center / cover no-repeat;
  filter: blur(2px) saturate(1.25);
  transform: scale(1.04);
}

.contact-orb {
  top: 50%;
  right: -8vw;
  width: min(55vw, 800px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #7fc8ff 0%, #385eff 22%, #8b23dc 48%, #f218aa 65%, transparent 72%);
  opacity: .55;
  filter: blur(20px);
  transform: translateY(-50%);
  animation: orbFloat 6s ease-in-out infinite alternate;
}

.contact-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 110px;
}

.contact h2 {
  font-size: clamp(100px, 16vw, 290px);
  line-height: .72;
}

.contact-content > p {
  margin: 54px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 13px;
  line-height: 1.8;
}

.contact-mail {
  display: flex;
  width: min(100%, 520px);
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.5);
  border-bottom: 1px solid rgba(255,255,255,.5);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  transition: padding 350ms var(--ease), color 250ms ease;
}

.contact-mail:hover {
  padding-right: 22px;
  padding-left: 22px;
  color: var(--acid);
}

.contact-mail i {
  font-size: 26px;
  font-style: normal;
}

.contact-instagram {
  margin-top: 22px;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 120px;
  padding: 30px var(--pad);
  border-top: 1px solid var(--line);
  background: #050507;
}

.footer img {
  width: 142px;
}

.footer div {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-align: right;
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 25px;
  background: rgba(3,3,5,.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease, visibility 400ms;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-top,
.modal-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-top > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-top span,
.modal-bottom,
.modal-top button {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}

.modal-top strong {
  font-size: 13px;
  letter-spacing: -.02em;
}

.modal-top button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  cursor: pointer;
}

.modal-top button i {
  color: #fff;
  font-size: 27px;
  font-style: normal;
  font-weight: 300;
}

.modal-player {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 22px 0;
}

.modal-player video {
  width: 100%;
  height: 100%;
  max-height: calc(100svh - 150px);
  background: #000;
  object-fit: contain;
}

/* Motion */
@keyframes gateZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.11); }
}

@keyframes gateScan {
  from { transform: translateY(-80px); }
  to { transform: translateY(80px); }
}

@keyframes orbitA {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitB {
  from { transform: translate(-50%, -50%) rotate(0deg) scaleY(.78); }
  to { transform: translate(-50%, -50%) rotate(360deg) scaleY(.78); }
}

@keyframes pulse {
  0%, 100% { opacity: .4; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes ringPulse {
  from { opacity: .8; transform: scale(.9); }
  to { opacity: 0; transform: scale(1.2); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes orbFloat {
  from { transform: translateY(-54%) scale(.96); }
  to { transform: translateY(-46%) scale(1.05); }
}

/* Tablet */
@media (max-width: 1080px) {
  .gate-button {
    position: relative;
    top: auto;
    right: auto;
    width: 108px;
    height: 108px;
    margin-top: 38px;
  }

  .desktop-nav {
    display: none;
  }

  .header {
    grid-template-columns: 1fr auto 1fr;
  }

  .header-status {
    justify-self: center;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .mobile-nav {
    display: flex;
  }

  .menu-open .menu-button span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-open .menu-button span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-card {
    left: 62%;
    width: clamp(230px, 28vw, 340px);
  }

  .manifesto {
    grid-template-columns: 120px 1fr;
  }

  .manifesto-note {
    grid-column: 2;
    max-width: 430px;
  }

  .project-feature {
    grid-column: 1 / span 9;
  }

  .project-portrait {
    grid-column: 9 / span 4;
  }

  .project-square {
    grid-column: 1 / span 6;
  }

  .project-tall {
    grid-column: 7 / span 5;
  }

  .project-wide {
    grid-column: 2 / span 10;
  }



  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-card,
  .library-card.project {
    min-height: 390px;
  }

  .capabilities {
    grid-template-columns: .78fr 1.22fr;
  }

  .cap-item {
    grid-template-columns: 35px 1fr 30px;
  }

  .cap-item small {
    display: none;
  }

  .studio-bottom {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --pad: 18px;
  }

  .cursor {
    display: none;
  }

  .gate-topline {
    top: 20px;
  }

  .gate-topline img {
    width: 118px;
  }

  .gate-topline span {
    display: none;
  }

  .gate-bottom {
    bottom: 20px;
    justify-content: space-between;
    gap: 8px;
    font-size: 6px;
  }

  .gate-orbit-a {
    width: 130vw;
  }

  .gate-orbit-b {
    width: 86vw;
  }

  .mono-label {
    margin-bottom: 20px;
    font-size: 7px;
  }

  .gate h1 span {
    font-size: clamp(43px, 14vw, 62px);
  }

  .gate h1 strong {
    font-size: clamp(70px, 24vw, 106px);
  }

  .gate-button {
    width: 92px;
    height: 92px;
    margin-top: 32px;
  }

  .gate-button > span:not(.gate-button-ring) {
    font-size: 15px;
  }

  .header {
    height: 66px;
  }

  .header.is-scrolled {
    height: 60px;
  }

  .header-logo {
    width: 118px;
  }

  .header-status {
    display: none;
  }

  .header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-bg {
    background-position: 68% center;
  }

  .hero-gradient {
    background:
      linear-gradient(0deg, #050507 0%, rgba(3,4,10,.14) 52%, rgba(3,4,10,.4) 100%),
      linear-gradient(90deg, rgba(3,4,10,.62), transparent 80%);
  }

  .hero-kicker {
    top: 90px;
    font-size: 7px;
  }

  .hero-kicker span:last-child {
    display: none;
  }

  .hero-title {
    top: 42%;
    transform: translateY(-50%);
  }

  .hero-word {
    font-size: clamp(72px, 26vw, 112px);
    line-height: .76;
  }

  .hero-word-bottom {
    align-self: flex-start;
  }

  .hero-card {
    top: 51%;
    left: 64%;
    width: 47vw;
    opacity: .74;
  }

  .hero-message {
    bottom: 72px;
  }

  .hero-message p,
  .hero-message strong {
    font-size: 12px;
  }

  .hero-scroll {
    right: 18px;
    bottom: 62px;
  }

  .hero-scroll span {
    display: none;
  }

  .ticker {
    padding: 17px 0;
  }

  .manifesto {
    display: block;
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .manifesto-index {
    margin-bottom: 55px;
  }

  .manifesto-line {
    font-size: clamp(46px, 14.5vw, 65px);
    line-height: .98;
  }

  .manifesto-line:nth-child(2) {
    margin: 10px 0;
    -webkit-text-stroke-width: 1px;
  }

  .manifesto-note {
    max-width: 320px;
    margin: 65px 0 0 auto;
  }

  .work {
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .section-head {
    display: block;
    margin-bottom: 50px;
  }

  .section-head h2,
  .contact h2 {
    font-size: clamp(61px, 20vw, 92px);
  }

  .section-head > p {
    margin-top: 28px;
  }

  .project-grid {
    display: block;
  }

  .project,
  .project-feature,
  .project-portrait,
  .project-square,
  .project-tall,
  .project-wide {
    width: 100%;
    aspect-ratio: 0.84;
    margin: 0 0 18px;
  }

  .project-feature,
  .project-wide {
    aspect-ratio: 1.08;
  }

  .project-info strong,
  .project-portrait .project-info strong,
  .project-tall .project-info strong {
    font-size: 40px;
  }

  .project-action {
    width: 48px;
    height: 48px;
  }



  .category-library {
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .library-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 26px;
  }

  .library-tabs button {
    width: 100%;
    justify-content: space-between;
  }

  .library-status {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .library-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .library-card,
  .library-card.project {
    min-height: 0;
    aspect-ratio: .82;
  }

  .library-empty {
    min-height: 340px;
  }

  .capabilities {
    display: block;
  }

  .cap-visual {
    position: relative;
    height: 64svh;
  }

  .cap-visual::after {
    background: linear-gradient(0deg, #0b0b0e 0%, transparent 32%);
  }

  .cap-content {
    min-height: auto;
    padding-top: 75px;
    padding-bottom: 100px;
  }

  .cap-heading {
    margin-bottom: 48px;
  }

  .cap-heading h2 {
    font-size: clamp(45px, 14vw, 66px);
  }

  .cap-item {
    grid-template-columns: 30px 1fr 22px;
    gap: 12px;
    padding: 22px 0;
  }

  .cap-item strong {
    font-size: 22px;
  }

  .studio {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .studio-head {
    margin-bottom: 70px;
  }

  .studio-head p {
    font-size: 7px;
  }

  .studio-statement p {
    font-size: clamp(54px, 18vw, 82px);
    line-height: .8;
  }

  .studio-statement .outline {
    font-size: clamp(47px, 14vw, 64px);
    -webkit-text-stroke-width: 1px;
  }

  .studio-bottom {
    gap: 70px;
    margin-top: 90px;
  }

  .studio-description {
    grid-template-columns: 1fr;
  }

  .process {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .process-item {
    grid-template-columns: 35px 1fr 20px;
    gap: 10px;
    min-height: 150px;
  }

  .process-item div {
    display: block;
  }

  .process-item strong {
    font-size: 35px;
  }

  .process-item p {
    margin-top: 13px;
    font-size: 11px;
  }

  .contact {
    min-height: 90svh;
  }

  .contact-content {
    min-height: 90svh;
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .contact-orb {
    top: 35%;
    right: -45vw;
    width: 120vw;
  }

  .contact-content > p {
    margin-top: 38px;
    font-size: 12px;
  }

  .contact-mail {
    width: 100%;
  }

  .footer {
    grid-template-columns: 1fr auto;
    min-height: 90px;
  }

  .footer img {
    width: 116px;
  }

  .footer div {
    display: none;
  }

  .video-modal {
    padding: 16px;
  }

  .modal-bottom span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Revision: faster hero image, cleaner Korean type, compact video cards, dedicated category page */
.gate {
  transition: opacity 560ms var(--ease), visibility 560ms;
}

.hero-card {
  opacity: 1;
}

.manifesto {
  min-height: 82svh;
  grid-template-columns: 0.32fr minmax(0, 1.55fr) 0.55fr;
  gap: clamp(24px, 3vw, 45px);
  padding-top: clamp(90px, 9vw, 130px);
  padding-bottom: clamp(90px, 9vw, 130px);
}

.manifesto-line {
  font-family: "Noto Sans KR", "Inter", Arial, sans-serif;
  font-size: clamp(42px, 5.4vw, 96px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.manifesto-line:nth-child(2) {
  color: #09090b;
  -webkit-text-stroke: 0;
  opacity: 0.88;
}

.work {
  padding-top: clamp(105px, 9vw, 145px);
  padding-bottom: clamp(110px, 10vw, 150px);
}

.work .section-head {
  max-width: 1180px;
  margin-bottom: 44px;
}

.project-grid-featured {
  width: min(100%, 980px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}

.project-grid-featured .project,
.project-grid-featured .project-feature,
.project-grid-featured .project-portrait,
.project-grid-featured .project-square,
.project-grid-featured .project-tall,
.project-grid-featured .project-wide {
  width: 100%;
  min-height: 0;
  grid-column: auto;
  aspect-ratio: 0.72;
  margin-top: 0;
}

.project-grid-featured .project-info {
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.project-grid-featured .project-info small,
.library-card .project-info small {
  margin-bottom: 8px;
  font-size: 7px;
}

.project-grid-featured .project-info strong,
.project-grid-featured .project-portrait .project-info strong,
.project-grid-featured .project-tall .project-info strong {
  font-size: clamp(25px, 2.35vw, 42px);
  line-height: 0.86;
}

.project-grid-featured .project-action {
  width: 48px;
  height: 48px;
  font-size: 7px;
}

.category-screen {
  min-height: 100svh;
  background: var(--black);
}

.category-screen .header {
  background: rgba(5, 5, 7, 0.76);
  backdrop-filter: blur(16px);
}

.category-page {
  min-height: 100svh;
  padding-top: clamp(110px, 9vw, 145px);
  padding-bottom: clamp(100px, 9vw, 140px);
  background:
    radial-gradient(circle at 82% 10%, rgba(184, 255, 57, 0.08), transparent 26%),
    var(--black);
}

.category-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 28px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.category-page .section-head {
  margin-bottom: 30px;
}

.category-page .section-head h2 {
  font-size: clamp(52px, 7vw, 118px);
  line-height: 0.8;
}

.category-page .section-head > p {
  max-width: 360px;
  font-size: 11px;
}

.category-page .library-tabs {
  margin-bottom: 20px;
}

.category-page .library-status {
  max-width: 760px;
  margin-bottom: 24px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.category-page .library-status p {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 220px));
  gap: clamp(12px, 1.2vw, 18px);
  justify-content: start;
  align-items: start;
}

.library-card,
.library-card.project {
  width: 100%;
  min-height: 0;
  aspect-ratio: 0.72;
  grid-column: auto;
  margin: 0;
}

.library-card .project-no {
  top: 14px;
  left: 14px;
  font-size: 8px;
}

.library-card .project-info {
  right: 14px;
  bottom: 14px;
  left: 14px;
}

.library-card .project-info strong {
  font-size: clamp(22px, 1.7vw, 31px);
  line-height: 0.88;
}

.library-card .project-action {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  font-size: 7px;
}

.library-empty {
  min-height: 0;
  padding: 16px;
}

.library-empty::before {
  inset: 12px;
}

.library-empty-no {
  top: 14px;
  left: 14px;
  font-size: 8px;
}

.library-empty small {
  font-size: 7px;
}

.library-empty strong {
  font-size: clamp(24px, 1.8vw, 34px);
  line-height: 0.9;
}

.library-empty p {
  margin-top: 12px;
  font-size: 10px;
}

.cap-item {
  text-decoration: none;
}

@media (max-width: 1080px) {
  .manifesto {
    display: block;
    min-height: auto;
  }

  .manifesto-copy {
    margin-top: 42px;
  }

  .manifesto-note {
    max-width: 430px;
    margin: 42px 0 0 auto;
  }

  .project-grid-featured {
    width: min(100%, 760px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid-featured .project,
  .project-grid-featured .project-feature,
  .project-grid-featured .project-portrait,
  .project-grid-featured .project-square,
  .project-grid-featured .project-tall,
  .project-grid-featured .project-wide {
    grid-column: auto;
    aspect-ratio: 0.72;
    margin-top: 0;
  }

  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  }
}

@media (max-width: 720px) {
  .manifesto {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .manifesto-line {
    font-size: clamp(34px, 10.8vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.045em;
  }

  .work {
    padding-top: 82px;
    padding-bottom: 92px;
  }

  .work .section-head {
    margin-bottom: 34px;
  }

  .project-grid-featured {
    display: grid;
    width: min(100%, 360px);
    grid-template-columns: 1fr;
  }

  .project-grid-featured .project,
  .project-grid-featured .project-feature,
  .project-grid-featured .project-portrait,
  .project-grid-featured .project-square,
  .project-grid-featured .project-tall,
  .project-grid-featured .project-wide {
    aspect-ratio: 0.78;
    margin-bottom: 0;
  }

  .category-page {
    padding-top: 94px;
    padding-bottom: 86px;
  }

  .category-page .section-head h2 {
    font-size: clamp(44px, 15vw, 68px);
  }

  .category-page .section-head > p {
    margin-top: 18px;
  }

  .library-tabs {
    grid-template-columns: 1fr;
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .library-card,
  .library-card.project {
    aspect-ratio: 0.72;
  }

  .library-card .project-info {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .library-card .project-info strong {
    font-size: clamp(18px, 6vw, 25px);
  }

  .library-card .project-action {
    width: 36px;
    height: 36px;
    font-size: 6px;
  }

  .library-empty {
    min-height: 0;
    padding: 12px;
  }
}

/* Final size pass: main representative cards and player should stay compact. */
.project-grid-featured .project,
.project-grid-featured .project-feature,
.project-grid-featured .project-portrait,
.project-grid-featured .project-square,
.project-grid-featured .project-tall,
.project-grid-featured .project-wide {
  aspect-ratio: 16 / 10;
}

.modal-player video {
  width: auto;
  max-width: min(100%, 1080px);
  height: auto;
  max-height: min(76svh, 760px);
}

@media (max-width: 1080px) {
  .project-grid-featured .project,
  .project-grid-featured .project-feature,
  .project-grid-featured .project-portrait,
  .project-grid-featured .project-square,
  .project-grid-featured .project-tall,
  .project-grid-featured .project-wide {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .project-grid-featured .project,
  .project-grid-featured .project-feature,
  .project-grid-featured .project-portrait,
  .project-grid-featured .project-square,
  .project-grid-featured .project-tall,
  .project-grid-featured .project-wide {
    aspect-ratio: 16 / 10;
  }
}


/* Round 3: contact face restored, category lists expanded, all video cards reduced. */
.contact-bg {
  opacity: 0.52 !important;
  background:
    linear-gradient(90deg, #09070f 0%, rgba(9, 7, 15, 0.82) 34%, rgba(9, 7, 15, 0.38) 62%, rgba(9, 7, 15, 0.62) 100%),
    url("assets/category-artist.webp?v=r7filenamecache20260616") 74% center / cover no-repeat !important;
  filter: saturate(1.08) contrast(1.06) !important;
  transform: none !important;
}

.contact-orb {
  display: none !important;
}

.work {
  padding-top: clamp(86px, 7vw, 118px) !important;
  padding-bottom: clamp(86px, 7vw, 118px) !important;
}

.work .section-head {
  max-width: 980px !important;
  margin-bottom: 32px !important;
}

.work .section-head h2 {
  font-size: clamp(46px, 6vw, 104px) !important;
}

.project-grid-featured {
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1vw, 16px) !important;
  align-items: start !important;
}

.project-grid-featured .project,
.project-grid-featured .project-feature,
.project-grid-featured .project-portrait,
.project-grid-featured .project-square,
.project-grid-featured .project-tall,
.project-grid-featured .project-wide {
  width: 100% !important;
  min-height: 0 !important;
  grid-column: auto !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 !important;
}

.project-grid-featured .project-info {
  right: 12px !important;
  bottom: 12px !important;
  left: 12px !important;
}

.project-grid-featured .project-info small {
  margin-bottom: 5px !important;
  font-size: 6px !important;
  letter-spacing: 0.12em !important;
}

.project-grid-featured .project-info strong,
.project-grid-featured .project-portrait .project-info strong,
.project-grid-featured .project-tall .project-info strong {
  font-size: clamp(18px, 1.55vw, 28px) !important;
  line-height: 0.86 !important;
}

.project-grid-featured .project-no {
  top: 10px !important;
  left: 10px !important;
  font-size: 7px !important;
}

.project-grid-featured .project-action {
  top: 10px !important;
  right: 10px !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 6px !important;
}

.category-page {
  padding-top: clamp(86px, 7vw, 115px) !important;
  padding-bottom: clamp(78px, 7vw, 110px) !important;
}

.category-page .section-head,
.category-page-head {
  display: block !important;
  margin-bottom: 22px !important;
}

.category-page .section-head h2 {
  font-size: clamp(42px, 5.2vw, 88px) !important;
  line-height: 0.82 !important;
}

.category-page .section-head > p,
.category-page [data-library-copy] {
  display: none !important;
}

.category-back {
  margin-bottom: 16px !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 11px !important;
}

.category-page .library-tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

.category-page .library-tabs button {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 8px !important;
}

.category-page .library-status {
  max-width: 560px !important;
  margin-bottom: 16px !important;
  padding-top: 12px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 12px !important;
}

.category-page .library-status p {
  color: rgba(255,255,255,.56) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
}

.library-grid {
  grid-template-columns: repeat(auto-fill, minmax(138px, 168px)) !important;
  gap: 10px !important;
  justify-content: start !important;
  align-items: start !important;
}

.library-card,
.library-card.project {
  width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  grid-column: auto !important;
  margin: 0 !important;
}

.library-card .project-no,
.library-empty-no {
  top: 8px !important;
  left: 8px !important;
  font-size: 6px !important;
}

.library-card .project-info {
  right: 9px !important;
  bottom: 9px !important;
  left: 9px !important;
}

.library-card .project-info small,
.library-empty small {
  margin-bottom: 4px !important;
  font-size: 5.5px !important;
  letter-spacing: 0.1em !important;
}

.library-card .project-info strong,
.library-empty strong {
  font-size: clamp(15px, 1vw, 18px) !important;
  line-height: 0.9 !important;
}

.library-card .project-action {
  top: 8px !important;
  right: 8px !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 5.5px !important;
}

.library-empty {
  display: flex !important;
  min-height: 0 !important;
  padding: 10px !important;
}

.library-empty::before {
  inset: 7px !important;
}

.library-empty::after {
  width: 45% !important;
  opacity: 0.52 !important;
}

.library-empty p {
  margin-top: 7px !important;
  font-size: 7px !important;
  line-height: 1.45 !important;
}

.modal-player video {
  max-width: min(100%, 980px) !important;
  max-height: min(72svh, 680px) !important;
}

@media (max-width: 1080px) {
  .ad-engine {
    grid-template-columns: 1fr;
  }

  .ad-engine-copy {
    max-width: 780px;
  }

  .ad-engine-panel {
    height: 760px;
    min-height: 620px;
  }

  .project-grid-featured {
    width: min(100%, 660px) !important;
    max-width: 660px !important;
  }

  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 156px)) !important;
  }
}

@media (max-width: 720px) {
  .ad-engine {
    min-height: auto;
    gap: 30px;
    padding-top: 92px;
    padding-bottom: 98px;
  }

  .ad-engine-copy h2 {
    font-size: clamp(44px, 15vw, 70px);
    line-height: .86;
  }

  .ad-engine-copy p {
    margin-top: 26px;
    font-size: 12px;
    line-height: 1.75;
  }

  .ad-engine-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ad-engine-primary,
  .ad-engine-secondary {
    width: 100%;
    min-width: 0;
    min-height: 56px;
  }

  .ad-engine-panel {
    height: 680px;
    min-height: 680px;
    border-radius: 16px;
  }

  .ad-engine-panel-top {
    padding: 10px 12px;
    font-size: 7px;
  }

  .project-grid-featured {
    width: min(100%, 310px) !important;
    grid-template-columns: 1fr !important;
  }

  .project-grid-featured .project,
  .project-grid-featured .project-feature,
  .project-grid-featured .project-portrait,
  .project-grid-featured .project-square,
  .project-grid-featured .project-tall,
  .project-grid-featured .project-wide {
    aspect-ratio: 16 / 9 !important;
  }

  .category-page .library-tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .contact-bg {
    opacity: 0.44 !important;
    background:
      linear-gradient(180deg, rgba(9, 7, 15, 0.55), rgba(9, 7, 15, 0.88)),
      url("assets/category-artist.webp?v=r7filenamecache20260616") center / cover no-repeat !important;
  }
}


.home-screen .capabilities {
  display: none !important;
}


/* Round 6: brand1~8 / artist1~8 / short1~8 auto slots + jpg/jpeg/png/webp thumbnail fallback. Version: r7filenamecache20260616 */
.project.asset-missing {
  border: 1px dashed rgba(255, 255, 255, 0.22) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    #0d0d11 !important;
  cursor: default !important;
}
.project.asset-missing .project-media::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.45);
  content: "UPLOAD\A SLOT";
  white-space: pre;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.5;
  text-align: center;
}
.project.asset-missing .project-overlay {
  background: radial-gradient(circle at 50% 42%, rgba(184,255,57,.16), transparent 44%), linear-gradient(180deg, rgba(2,2,6,.1), rgba(2,2,6,.85)) !important;
}
.project.asset-missing .project-action {
  opacity: .35 !important;
}
.project.asset-missing:hover .project-action {
  background: rgba(5,5,8,.22) !important;
  color: inherit !important;
  transform: none !important;
}
.project.asset-missing:hover .project-media img {
  transform: none !important;
}


/* Round 7: filename-based media loading fallback */
.project.asset-missing-image .project-media {
  background:
    radial-gradient(circle at 30% 20%, rgba(184, 255, 57, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    #0f0f14;
}

.project.asset-missing-image .project-media::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.45);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
  content: "UPLOAD THUMB";
}


/* DOPAMINE AI consult chatbot */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chatbot-widget {
  position: fixed;
  right: clamp(16px, 2vw, 26px);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 2100;
  display: grid;
  justify-items: end;
  pointer-events: none;
  --chat-panel: rgba(7, 7, 10, 0.94);
  --chat-panel-strong: rgba(13, 13, 18, 0.98);
  --chat-line: rgba(255, 255, 255, 0.14);
  --chat-soft: rgba(255, 255, 255, 0.07);
  --chat-text: rgba(255, 255, 255, 0.9);
  --chat-dim: rgba(255, 255, 255, 0.58);
}

body.is-gated .chatbot-widget {
  opacity: 0;
  pointer-events: none;
}

.chatbot-toggle,
.chatbot-panel {
  pointer-events: auto;
}

.chatbot-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 174px;
  min-height: 62px;
  padding: 10px 15px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)),
    rgba(5, 5, 8, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 260ms var(--ease), border-color 260ms ease, background 260ms ease;
  backdrop-filter: blur(18px);
}

.chatbot-toggle::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--acid), rgba(25, 157, 255, 0.12), transparent);
  opacity: 0.72;
  content: "";
}

.chatbot-toggle:hover,
.chatbot-widget.is-open .chatbot-toggle {
  border-color: rgba(184, 255, 57, 0.45);
  background:
    linear-gradient(135deg, rgba(184, 255, 57, 0.13), rgba(255, 40, 189, 0.06)),
    rgba(5, 5, 8, 0.94);
  transform: translateY(-3px);
}

.chatbot-toggle-orb {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff 0 8%, var(--acid) 20%, #41cfff 48%, rgba(255, 40, 189, 0.82) 72%, #08080b 100%);
  box-shadow: 0 0 24px rgba(184, 255, 57, 0.32);
}

.chatbot-toggle-orb::before {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(5, 5, 8, 0.72);
  border-radius: 50%;
  background: rgba(5, 5, 8, 0.48);
  content: "";
}

.chatbot-toggle-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.chatbot-toggle-copy small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.chatbot-toggle-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  height: min(660px, calc(100svh - 116px));
  min-height: 470px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 10% 0%, rgba(184, 255, 57, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(10, 10, 15, 0.98), rgba(4, 4, 7, 0.96));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 260ms ease, transform 320ms var(--ease), visibility 260ms;
  visibility: hidden;
  backdrop-filter: blur(24px);
}

.chatbot-widget.is-open .chatbot-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.chatbot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header span,
.chatbot-status p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.chatbot-header h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.chatbot-header button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.chatbot-header button:hover {
  border-color: rgba(184, 255, 57, 0.48);
  background: rgba(184, 255, 57, 0.1);
  color: #fff;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.chatbot-status span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(184, 255, 57, 0.8);
}

.chatbot-messages {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px;
  scrollbar-color: rgba(184, 255, 57, 0.34) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.chatbot-message {
  display: flex;
  width: 100%;
}

.chatbot-message--user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: min(88%, 312px);
  padding: 12px 13px;
  border-radius: 10px;
  color: var(--chat-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.62;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.chatbot-message--bot .chatbot-bubble {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
}

.chatbot-message--user .chatbot-bubble {
  background: linear-gradient(135deg, var(--acid), #f8fff0);
  color: #050507;
  box-shadow: 0 12px 32px rgba(184, 255, 57, 0.14);
}

.chatbot-choices,
.chatbot-actions {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.chatbot-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chatbot-choice,
.chatbot-action {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 5, 8, 0.72);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease, transform 220ms var(--ease);
}

.chatbot-choice::after,
.chatbot-action::after {
  flex: 0 0 auto;
  color: var(--acid);
  content: "↗";
  font-size: 12px;
}

.chatbot-choice:hover,
.chatbot-action:hover {
  border-color: rgba(184, 255, 57, 0.44);
  background: rgba(184, 255, 57, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.chatbot-action--primary {
  border-color: rgba(184, 255, 57, 0.52);
  background: linear-gradient(135deg, rgba(184, 255, 57, 0.18), rgba(25, 157, 255, 0.08));
}

.chatbot-action--email::after {
  content: "@";
}

.chatbot-action--reset::after {
  content: "↺";
}

.chatbot-summary {
  display: grid;
  gap: 8px;
  margin-top: 11px;
  padding: 12px;
  border: 1px solid rgba(184, 255, 57, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(184, 255, 57, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.chatbot-summary-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.chatbot-summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.chatbot-summary dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.chatbot-summary dd {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.chatbot-inputbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 8px;
  padding: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 8, 0.9);
}

.chatbot-inputbar input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 0 12px;
}

.chatbot-inputbar input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.chatbot-inputbar input:focus {
  border-color: rgba(184, 255, 57, 0.48);
  box-shadow: 0 0 0 3px rgba(184, 255, 57, 0.1);
}

.chatbot-inputbar input:disabled {
  opacity: 0.48;
}

.chatbot-inputbar button {
  display: grid;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #050507;
  cursor: pointer;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
  transition: background 220ms ease, color 220ms ease, transform 220ms var(--ease);
}

.chatbot-inputbar button:hover {
  background: var(--acid);
  transform: translateY(-1px);
}

.chatbot-inputbar button:disabled {
  cursor: default;
  opacity: 0.38;
  transform: none;
}

@media (max-width: 720px) {
  .chatbot-widget {
    right: 12px;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .chatbot-toggle {
    min-width: 166px;
    min-height: 58px;
    justify-self: end;
  }

  .chatbot-panel {
    right: 0;
    bottom: 70px;
    width: 100%;
    height: min(640px, calc(100svh - 92px));
    min-height: min(470px, calc(100svh - 92px));
    border-radius: 16px;
  }

  .chatbot-header {
    padding: 16px 15px 12px;
  }

  .chatbot-status {
    padding: 9px 15px;
  }

  .chatbot-messages {
    padding: 15px;
  }

  .chatbot-bubble {
    max-width: 92%;
    font-size: 12px;
  }

  .chatbot-choices {
    grid-template-columns: 1fr;
  }

  .chatbot-summary-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .chatbot-inputbar {
    grid-template-columns: minmax(0, 1fr) 64px;
    padding: 11px;
  }
}

@media (max-width: 380px) {
  .chatbot-toggle {
    grid-template-columns: 38px minmax(0, 1fr);
    min-width: 154px;
    padding-right: 12px;
  }

  .chatbot-toggle-orb {
    width: 38px;
    height: 38px;
  }

  .chatbot-header h2 {
    font-size: 16px;
  }

  .chatbot-summary-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
