/* TRILEO — static portal styles. No external fonts, no images, no requests. */

:root {
  --bg: #09090b;
  --bg-soft: #0c0c0f;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --live: #34d399;
  --build: #fbbf24;
  --spec: #94a3b8;
  --violet: #c4b5fd;
  --teal: #5eead4;
  --radius: 18px;
  --wrap: 1160px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo',
    'Malgun Gothic', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint global grid + vignette, pure CSS */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 78%);
}

::selection {
  background: rgba(196, 181, 253, 0.28);
  color: #fff;
}

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

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: #fff;
  color: #000;
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

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

/* ── header ─────────────────────────────────────────────────────────────── */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.62);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.site-header {
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: #fff;
}

.brand-name {
  font-feature-settings: 'ss01';
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: 8px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 6px 2px;
  transition: color 0.16s ease;
}

.nav a[aria-current='page'] {
  color: var(--text);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.lang:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fafafa;
  color: #09090b;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: #fff;
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 84px;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  pointer-events: none;
  background: radial-gradient(46% 46% at 50% 30%, rgba(139, 92, 246, 0.2) 0%, transparent 70%),
    radial-gradient(40% 40% at 78% 18%, rgba(45, 212, 191, 0.12) 0%, transparent 70%),
    radial-gradient(34% 34% at 18% 12%, rgba(99, 102, 241, 0.16) 0%, transparent 70%);
  filter: blur(8px);
}

.hero-bg-soft {
  height: 420px;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  max-width: 880px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4d8;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 640;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, #fff 8%, var(--violet) 46%, var(--teal) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.005em;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 68px 0 0;
  border-top: 1px solid var(--line);
}

.metric {
  padding: 22px 24px 0 0;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric dt {
  font-size: 26px;
  font-weight: 620;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric dd {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.4;
}

/* ── sections ───────────────────────────────────────────────────────────── */
.section {
  padding: 92px 0;
  position: relative;
}

.section-tight {
  padding-top: 40px;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 65%);
}

.page-head {
  padding: 88px 0 8px;
}

.page-head h1,
.section h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 620;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-lead {
  margin: 18px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
}

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

/* ── bento grid ─────────────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 212px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(196, 181, 253, 0.12), transparent 70%);
  transition: opacity 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.card:hover::after {
  opacity: 1;
}

.card.featured {
  grid-column: span 2;
  background: radial-gradient(120% 140% at 100% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.card-body {
  margin-top: 26px;
}

.card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.card.featured .card-title {
  font-size: 26px;
}

.card-tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 46ch;
}

.card-foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-meta {
  color: var(--muted-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-link {
  font-size: 13px;
  color: #e4e4e7;
  white-space: nowrap;
}

.card-link span {
  display: inline-block;
  transition: transform 0.16s ease;
}

.card:hover .card-link span {
  transform: translateX(3px);
}

/* ── status chips & tags ────────────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #d4d4d8;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
}

.dot-live {
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
  animation: pulse 2.6s ease-out infinite;
}

.dot-build {
  background: var(--build);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
}

.dot-spec {
  background: var(--spec);
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── approach ───────────────────────────────────────────────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.approach-item {
  padding: 30px 26px 34px;
  background: var(--bg);
}

.approach-item .index {
  display: block;
  margin-bottom: 34px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.approach-item h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.approach-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.principles-title {
  margin-top: 64px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #d4d4d8;
  font-size: 14px;
}

/* ── studio band ────────────────────────────────────────────────────────── */
.studio-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(90% 120% at 0% 0%, rgba(99, 102, 241, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.studio-band h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.studio-band p {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 15px;
}

.studio-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* ── detail page ────────────────────────────────────────────────────────── */
.detail {
  padding-top: 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
  gap: 56px;
  align-items: start;
  position: relative;
}

.crumbs {
  margin: 0 0 28px;
  color: var(--muted-2);
  font-size: 13px;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1.03;
  font-weight: 640;
}

.detail-tagline {
  margin: 20px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  color: #e4e4e7;
}

.detail-desc {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.detail-actions {
  margin: 28px 0 8px;
  display: flex;
  gap: 10px;
}

.detail h2 {
  margin: 44px 0 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.bullets li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #d4d4d8;
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.015);
}

.bullets li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.side-block {
  padding: 20px;
  background: var(--bg);
}

.side-block h2 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.shot {
  margin: 32px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

/* ── prose ──────────────────────────────────────────────────────────────── */
.prose {
  max-width: 720px;
}

.prose h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.06;
  font-weight: 640;
}

.prose h2 {
  margin: 40px 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.prose p {
  margin: 0 0 16px;
  color: #c9c9cf;
  font-size: 15.5px;
}

.prose a {
  color: #fff;
  border-bottom: 1px solid var(--line-strong);
}

.muted {
  color: var(--muted) !important;
}

.small {
  font-size: 12.5px;
}

.notice {
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: #08080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.footer-col h2 {
  margin: 0 0 4px;
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero {
    padding: 84px 0 60px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card.featured {
    grid-column: span 2;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .studio-band {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .detail-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 32px));
  }
  .nav {
    display: none;
  }
  .hero {
    padding: 64px 0 48px;
  }
  .hero h1 {
    font-size: clamp(36px, 11vw, 46px);
  }
  .metrics {
    margin-top: 44px;
  }
  .metric {
    padding-right: 12px;
  }
  .section {
    padding: 64px 0;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .card.featured {
    grid-column: span 1;
  }
  .card {
    min-height: 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .detail-side {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
