/* Loopyti: quiet type, wide space, one accent. Each project is told by a small moving drawing. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6a6a70;
  --line: #d2d2d7;
  --line-strong: #a9a9b0;
  --field-line: #86868b;
  --accent: #4a3bd1;
  --accent-soft: #efeefc;
  --human: var(--accent-soft);
  --warn: #9a4a06;
  --warn-soft: #fbeee0;
  --night: #000000;
  --on-night: #f5f5f7;
  --on-night-2: #a1a1a6;
  --on-night-line: #2c2c2e;
  --on-night-accent: #b3aaff;
  --on-night-warn: #ffb340;
  --on-night-card: #1c1c1e;
  --brand-pink: #fb74a1;
  --brand-purple: #9284fc;
  --brand-yellow: #fcd259;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --type-display: 3.5rem;
  --type-heading: 2.5rem;
  --type-title: 1.75rem;
  --type-lead: 1.3125rem;
  --type-body: 1rem;
  --type-small: 0.875rem;
  --type-label: 0.8125rem;
  --gutter: 32px;
  --section: 128px;
  --radius: 12px;
  --radius-xl: 28px;
  --motion: 180ms ease;
  --settle: cubic-bezier(0.3, 1.3, 0.5, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--type-body); line-height: 1.65; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
:lang(en) { word-break: normal; }
:lang(ko) { word-break: keep-all; }
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 0.2em; }
p, dl, ol, ul, figure { margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
main:focus { outline: none; }
.wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -120px; z-index: 30; padding: 12px 16px; background: var(--ink); color: var(--surface); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }
/* All navigation links remain available without JavaScript, including on mobile. */
.site-header { position: sticky; top: 0; z-index: 20; background: #ffffffcc; border-bottom: 1px solid #d2d2d780; -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav actions"; align-items: center; gap: 24px; min-height: 52px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.brand img { display: block; width: 28px; height: 28px; }
.site-nav { grid-area: nav; min-width: 0; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 6px; border-radius: 8px; color: var(--ink-2); font-size: var(--type-label); line-height: 1.5; text-decoration: none; transition: color var(--motion); }
.site-nav a:hover, .site-nav a:active { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; border-radius: 8px; color: var(--ink-2); font-size: var(--type-label); line-height: 1.5; transition: color var(--motion); }
.lang:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--accent); border-radius: 980px; background: var(--accent); color: var(--surface); font: inherit; font-size: var(--type-body); font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color var(--motion), border-color var(--motion), color var(--motion); }
.button:hover { background: var(--ink); border-color: var(--ink); }
.button:active { background: var(--ink-2); border-color: var(--ink-2); }
.button:disabled, .button[aria-disabled="true"] { background: var(--tint); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.button-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { background: var(--tint); border-color: var(--ink); color: var(--ink); }
.button-secondary:active { background: var(--line); border-color: var(--ink); color: var(--ink); }
.button-small { min-height: 44px; padding: 6px 16px; font-size: var(--type-label); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-block: 8px; color: var(--accent); font-size: var(--type-body); font-weight: 500; line-height: 1.4; text-decoration: none; transition: color var(--motion); }
.text-link:hover, .text-link:active { text-decoration: underline; }
.icon { flex: none; width: 16px; height: 16px; }
.button .icon, .text-link .icon { transition: transform var(--motion); }
.button:hover .icon, .text-link:hover .icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 32px; }
h1, h2, h3 { margin: 0; font-weight: 650; text-wrap: balance; }
h1 { font-size: var(--type-display); line-height: 1.14; letter-spacing: -0.03em; }
h2 { font-size: var(--type-heading); line-height: 1.2; letter-spacing: -0.025em; }
h3 { font-size: 1.0625rem; line-height: 1.45; letter-spacing: -0.015em; }
.eyebrow, .section-label { color: var(--accent); font-size: var(--type-small); font-weight: 600; line-height: 1.5; }
.lead { color: var(--ink-2); font-size: var(--type-lead); line-height: 1.5; letter-spacing: -0.015em; }
.intro { color: var(--ink-2); font-size: var(--type-lead); line-height: 1.55; letter-spacing: -0.015em; }
.note { margin-top: 20px; color: var(--muted); font-size: var(--type-small); line-height: 1.6; }
.closing { margin-top: 32px; color: var(--ink); font-weight: 600; line-height: 1.6; }
.stage { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--muted); font-size: var(--type-small); font-weight: 500; line-height: 1.5; }
.stage::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tag { display: inline-flex; align-items: center; width: fit-content; min-height: 26px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 980px; color: var(--ink-2); font-size: var(--type-label); font-weight: 500; line-height: 1.5; }
.tag-human { background: var(--accent); border-color: var(--accent); color: var(--surface); }

/* Shared footer navigation; the company contact form stays in site.css. */
.site-footer { padding-block: 96px 28px; background: var(--tint); font-size: var(--type-small); }
.footer-nav h3 { margin-bottom: 4px; color: var(--muted); font-size: var(--type-label); font-weight: 500; letter-spacing: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; padding-block: 32px 28px; border-top: 1px solid var(--line); }
.footer-brand img { display: block; width: 32px; height: 32px; margin-bottom: 12px; }
.footer-tagline { max-width: 24em; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-nav ul { padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--ink-2); overflow-wrap: anywhere; line-height: 1.5; text-decoration: none; transition: color var(--motion); }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-note { max-width: 28em; color: var(--muted); font-size: var(--type-label); line-height: 1.6; }
.footer-legal { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--type-label); line-height: 1.6; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer-policies ul { display: flex; flex-wrap: wrap; padding: 0; list-style: none; }
.footer-policies li { display: flex; align-items: center; }
.footer-policies li + li::before { content: ""; width: 1px; height: 12px; margin-inline: 12px; background: var(--line-strong); }
.footer-policies a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; transition: color var(--motion); }
.footer-policies a:hover { color: var(--accent); text-decoration: underline; }
.footer-lang { margin-left: auto; }
.footer-company { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

@media (max-width: 959px) {
  :root { --type-display: 2.75rem; --type-heading: 2rem; --type-title: 1.5rem; --type-lead: 1.1875rem; --section: 96px; }
  html { scroll-padding-top: 24px; }
  .site-header { position: static; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand actions" "nav nav"; gap: 0 16px; }
  .site-nav { border-top: 1px solid var(--line); }
  .site-nav ul { justify-content: space-between; gap: 8px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 639px) {
  :root { --gutter: 20px; --type-display: 2rem; --type-heading: 1.625rem; --type-title: 1.375rem; --type-lead: 1.0625rem; --section: 72px; --radius-xl: 22px; }
  .site-footer { padding-top: 64px; }
  .footer-nav { gap: 24px 16px; }
}
