/* Brooklyn Labs — 회사 소개 페이지. 토큰: assets/design-tokens.css, 규칙: docs/design-guidelines.md */
@import url("./assets/design-tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--size-16); line-height: 1.6; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: inherit; text-underline-offset: 0.16em; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; min-width: 0; overflow-wrap: break-word; word-break: keep-all; text-wrap: balance; }
p { text-wrap: pretty; word-break: keep-all; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-32); }
.label { font-size: var(--size-14); font-weight: 500; color: var(--text-subtle); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 300; background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand .bar { fill: var(--text); }
.brand .lit { fill: var(--accent); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-stretch: 112.5%; font-size: var(--size-18); letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.brand-word span { color: var(--accent); }
.site-nav ul { display: flex; gap: var(--space-10); }
.site-nav a { display: inline-block; padding-block: var(--space-3); font-size: var(--size-14); font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color var(--ms-120) var(--curve-out); }
.site-nav a:hover { color: var(--text); }

/* ---------- hero: wall under a moving light ---------- */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - 72px); display: flex; align-items: flex-end; padding-block: var(--space-16); overflow: clip; --mx: 72%; --my: 28%; }
.wall { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(circle 36vmax at var(--mx) var(--my), var(--mask-on) 0%, transparent 72%); mask-image: radial-gradient(circle 36vmax at var(--mx) var(--my), var(--mask-on) 0%, transparent 72%); }
.wall .b { fill: var(--bg-sunken); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle 24vmax at var(--mx) var(--my), color-mix(in oklab, var(--accent) 13%, transparent), transparent 70%); pointer-events: none; }
.hero-title { display: flex; flex-direction: column; font-size: clamp(3rem, 9vw, 8rem); line-height: 0.92; letter-spacing: -0.03em; font-stretch: 112.5%; }
.hero-title .l2 { display: flex; align-items: center; gap: 0.22em; padding-left: 1.05em; }
.hero-title .lit { flex: 1; height: 0.3em; border-radius: var(--radius-sm); background: var(--accent); }
.hero-sub { margin-top: var(--space-8); max-width: 30em; font-size: var(--size-20); color: var(--text-muted); line-height: 1.6; }

/* ---------- name: Brooklyn + Labs ---------- */
.name-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: var(--space-8); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.name-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5.2vw, 4.75rem); line-height: 1; font-stretch: 112.5%; letter-spacing: 0.01em; }
.name-plus { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5.2vw, 4.75rem); line-height: 1; color: var(--text-subtle); }
.name-cap { margin-top: var(--space-4); max-width: 22em; color: var(--text-muted); }
.name-result { margin-top: var(--space-24); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-16); align-items: end; padding: var(--space-16); background: var(--bg-inverse); color: var(--text-inverse); border-radius: var(--radius-md); }
.name-result h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.05; }
.name-result p { font-size: var(--size-18); }
.name-result .mark { display: block; width: 72px; height: 20px; margin-bottom: var(--space-6); border-radius: var(--radius-sm); background: var(--accent-on-light); }

/* ---------- mission / vision / values ---------- */
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: var(--space-8); padding-block: var(--space-10); border-top: 1px solid var(--border); }
.row:last-of-type { border-bottom: 1px solid var(--border); }
.mission { font-size: clamp(1.875rem, 3.6vw, 3.25rem); line-height: 1.22; letter-spacing: -0.01em; }
.vision { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.45; font-weight: 700; font-family: var(--font-display); color: var(--text-muted); word-break: keep-all; }
.values { margin-top: var(--space-24); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
.value:nth-child(2) { margin-top: var(--space-16); }
.value .bricks { display: block; width: 64px; height: 18px; margin-bottom: var(--space-6); border-radius: var(--radius-sm); background: var(--text); }
.value:nth-child(2) .bricks { background: var(--accent); }
.value h3 { font-size: var(--size-24); line-height: 1.2; }
.value .ko { margin-top: var(--space-1); color: var(--text-subtle); font-weight: 500; }
.value p { margin-top: var(--space-4); color: var(--text-muted); max-width: 28em; }

/* ---------- letter ---------- */
.letter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); align-items: start; }
.letter h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.15; position: sticky; top: 120px; }
.letter-body { display: flex; flex-direction: column; gap: var(--space-6); color: var(--text-muted); }
.letter-body .lead { font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.5; color: var(--text); font-weight: 500; }
.letter-body p { max-width: 36em; }

/* ---------- business: two long bands, mirrored ---------- */
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-16); padding-block: var(--space-16); border-top: 1px solid var(--border); position: relative; }
.band:last-child { border-bottom: 1px solid var(--border); }
.band.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.band.flip .band-head { order: 2; }
.band-letter { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 112.5%; font-size: var(--size-128); line-height: 0.8; color: var(--bg-sunken); user-select: none; }
.band-head h3 { margin-top: var(--space-4); font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.1; font-stretch: 112.5%; }
.band-head .ko { margin-top: var(--space-2); font-weight: 700; color: var(--text-muted); }
.band-head .line { margin-top: var(--space-6); color: var(--text-muted); max-width: 26em; }
.tags { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags li { padding: 8px 16px; border: 1px solid var(--tag-border); border-radius: var(--radius-pill); font-size: var(--size-13); font-weight: 500; color: var(--tag-fg); }
.items { display: flex; flex-direction: column; }
.items li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-6); border-top: 1px solid var(--border); }
.items li:first-child { border-top: 0; padding-top: 0; }
.items .n { font-family: var(--font-display); font-weight: 800; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.items h4 { margin: 0; font-size: var(--size-20); font-weight: 700; line-height: 1.3; }
.items p { margin-top: var(--space-2); color: var(--text-muted); max-width: 32em; }

/* ---------- why: three bricks, laid like a running bond ---------- */
.why-title { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.15; max-width: 12em; margin-bottom: var(--space-16); }
.why-wall { display: flex; flex-direction: column; gap: var(--space-4); }
.why-brick { width: 62%; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-10); background: var(--panel-bg); border-radius: var(--radius-md); }
.why-brick:nth-child(2) { margin-left: 28%; }
.why-brick:nth-child(3) { margin-left: 8%; }
.why-brick .num { font-family: var(--font-display); font-weight: 800; font-size: var(--size-40); line-height: 1; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.why-brick:nth-child(2) .num { color: var(--accent); }
.why-brick h3 { font-size: var(--size-24); line-height: 1.2; font-stretch: 112.5%; }
.why-brick p { margin-top: var(--space-3); color: var(--text-muted); }

/* ---------- closing + footer ---------- */
.closing { padding-block: var(--space-40); }
.closing p { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 6vw, 5.25rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 13em; }
.site-footer { border-top: 1px solid var(--border); padding-block: var(--space-8); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.site-footer small { color: var(--text-subtle); font-size: var(--size-13); }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .name-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .name-plus { display: none; }
  .name-result { grid-template-columns: minmax(0, 1fr); padding: var(--space-10) var(--space-6); gap: var(--space-6); }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .values { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .value:nth-child(2) { margin-top: 0; }
  .letter { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .letter h2 { position: static; }
  .band, .band.flip { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .band.flip .band-head { order: 0; }
  .band-letter { font-size: var(--size-72); }
  .why-brick, .why-brick:nth-child(2), .why-brick:nth-child(3) { width: 100%; margin-left: 0; padding: var(--space-6); grid-template-columns: 48px minmax(0, 1fr); }
  .section { padding-block: var(--space-24); }
  .closing { padding-block: var(--space-24); }
}
@media (max-width: 40rem) {
  .site-nav ul { gap: var(--space-4); }
  .brand-word { font-size: var(--size-14); }
  .hero-title .l2 { padding-left: 0.5em; }
}
@media (max-width: 34rem) { .site-nav { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; } }
