/* ============================================================
   ALPHAMIC — Homepage (Option A · Minimal Editorial)
   Colors derived from the ALPHAMIC logo: burgundy · graphite · silver.
   ============================================================ */

@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  --ink-0:   #FFFFFF;
  --ink-50:  #FAFAF9;
  --ink-100: #F4F4F2;
  --ink-150: #EDEDEA;
  --ink-200: #E3E3DF;
  --ink-300: #C9C9C3;
  --ink-400: #8E8E88;
  --ink-500: #6B6B66;
  --ink-600: #4A4A46;
  --ink-700: #2F2F2C;
  --ink-800: #1C1C1A;
  --ink-900: #0F0F0E;

  --burgundy-50:  #FBF2F3;
  --burgundy-100: #F3DDE0;
  --burgundy-200: #E4B7BD;
  --burgundy-300: #CF8790;
  --burgundy-400: #B5515E;
  --burgundy-500: #8B2838;
  --burgundy-600: #73202E;

  --silver-400: #B4B4AE;

  --bg:          var(--ink-0);
  --bg-paper:    var(--ink-50);
  --fg:          var(--ink-900);
  --fg-body:     var(--ink-700);
  --fg-subtle:   var(--ink-600);
  --fg-muted:    var(--ink-400);
  --fg-on-ink:   var(--ink-50);

  --border:        var(--ink-200);
  --border-strong: var(--ink-300);
  --accent:        var(--burgundy-500);

  --font-sans:
    "Pretendard Variable", Pretendard,
    -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.2,.7,.2,1);
  --dur-base: 250ms;

  --container-max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg-body);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--burgundy-500); color: white; }

.container { max-width: var(--container-max); margin: 0 auto; }
.accent { color: var(--accent); }
.accent--bold { font-weight: 600; }
.accent--warm { color: var(--burgundy-400); }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow--light { color: var(--silver-400); }

/* reveal primitive */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 24px var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease-out),
              backdrop-filter .3s var(--ease-out),
              border-color .3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 100px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 44px; font-size: 19px; font-weight: 500; }
.nav__links a { color: var(--fg-body); transition: color .2s var(--ease-out); }
.nav__links a:hover { color: var(--accent); }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 220px var(--gutter) 120px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.hero__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700; line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin: 32px 0 32px;
}
.hero__lede {
  font-size: 22px; line-height: 1.55;
  color: var(--fg-body);
  max-width: 580px; margin: 0 0 44px;
  font-weight: 400;
}
.hero__art {
  aspect-ratio: 1 / 1;
  position: relative;
}
.hero__art-frame {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #FBF2F3 0%, #F4F4F2 100%);
  border: 1px solid var(--burgundy-200);
  border-radius: 4px;
  overflow: hidden;
}

/* ─── Name meaning ─────────────────────────────────────────── */
.name {
  padding: 100px var(--gutter);
  background: var(--bg-paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.name__eyebrow { margin-bottom: 56px; }
.name__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.name__cell {
  padding: 32px 0;
  border-top: 2px solid var(--ink-900);
}
.name__cell--accent { border-top-color: var(--burgundy-500); }
.name__letter {
  font-size: 96px; font-weight: 700; line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  margin-bottom: 24px;
}
.name__cell--accent .name__letter { color: var(--burgundy-500); }
.name__word {
  font-size: 22px; font-weight: 700;
  color: var(--ink-900); margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.name__desc { font-size: 16px; color: var(--fg-subtle); }
.name__body {
  max-width: 780px; margin-top: 56px;
  font-size: 19px; line-height: 1.7;
  color: var(--fg-body);
}

/* ─── Generic section head ─────────────────────────────────── */
.section { padding: 140px var(--gutter); }
.section--paper {
  background: var(--bg-paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--dark {
  background: var(--ink-900);
  color: var(--ink-50);
}
.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 80px;
}
.section__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 20px;
  max-width: 720px;
}
.section__title--light { color: var(--ink-0); }
.section__lede {
  font-size: 18px; line-height: 1.65;
  color: var(--fg-body);
  margin: 0; max-width: 560px;
}

/* ─── Philosophy ───────────────────────────────────────────── */
.philo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-900);
}
.philo__cell {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--border);
  margin-right: 32px;
}
.philo__cell:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.philo__index {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--burgundy-500);
  margin-bottom: 28px; font-weight: 600;
}
.philo__title {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0 0 10px;
}
.philo__kr {
  font-size: 16px; color: var(--burgundy-500);
  margin-bottom: 24px; font-weight: 500;
}
.philo__body {
  font-size: 17px; line-height: 1.7;
  color: var(--fg-body); margin: 0;
}

/* ─── Products ─────────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.product {
  background: var(--ink-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
a.product { cursor: pointer; }
a.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,15,14,.10), 0 4px 8px rgba(15,15,14,.04);
}
a.product:hover .product__name { color: var(--accent); }
a.product:hover .product__arrow { transform: translate(2px, -2px); color: var(--accent); }
a.product:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.product__arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--fg-muted);
  transition: transform .2s var(--ease-out), color .2s var(--ease-out);
}
.product__media {
  aspect-ratio: 16 / 9;
  background: var(--ink-100);
  border-bottom: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
}
.product__body { padding: 28px 32px 32px; }
.product__meta {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.product__status {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--fg-muted); font-weight: 600;
}
.product__status--live { color: var(--burgundy-500); }
.product__tag { font-size: 14px; color: var(--fg-subtle); }
.product__name {
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 14px;
}
.product__summary {
  font-size: 16px; line-height: 1.65;
  color: var(--fg-body);
  margin: 0 0 22px;
}
.product__stack {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.product__stack span {
  font-size: 12px; font-family: var(--font-mono);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--fg-subtle);
}

/* ─── Process ──────────────────────────────────────────────── */
.process {
  list-style: none;
  padding: 0; margin: 0;
}
.process__step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.process__step--last { border-bottom: 1px solid var(--border); }
.process__n {
  font-family: var(--font-mono);
  font-size: 15px; letter-spacing: 0.06em;
  color: var(--burgundy-500);
  font-weight: 700;
}
.process__title {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0;
}
.process__body {
  font-size: 17px; line-height: 1.7;
  color: var(--fg-body);
  margin: 0; max-width: 640px;
}

/* ─── Capabilities ─────────────────────────────────────────── */
.section--dark .section__head { margin-bottom: 64px; }
.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.caps__col {
  padding: 32px 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.1);
  margin-right: 24px;
}
.caps__col--last { border-right: none; margin-right: 0; padding-right: 0; }
.caps__cat {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy-300);
  margin-bottom: 28px;
  font-weight: 600;
}
.caps__col ul {
  list-style: none; padding: 0; margin: 0;
}
.caps__col li {
  padding: 12px 0; font-size: 16px;
  color: var(--ink-50);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ─── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 64px var(--gutter) 48px;
  background: var(--ink-900);
  color: var(--ink-50);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
.footer__logo {
  height: 64px; width: auto; display: block;
  filter: brightness(0) invert(1);
}
.footer__tag {
  margin-top: 24px;
  font-size: 15px; line-height: 1.7;
  color: var(--silver-400);
  max-width: 380px;
}
.footer__head {
  font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy-300);
  margin-bottom: 18px; font-weight: 600;
}
.footer__list {
  list-style: none; padding: 0; margin: 0;
  font-size: 15px; line-height: 2;
}
.footer__list a { color: var(--ink-50); }
.footer__list a:hover { color: var(--burgundy-300); }
.footer__muted { color: var(--silver-400); }
.footer__bar {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--silver-400);
  gap: 16px; flex-wrap: wrap;
}
.footer__amic { font-family: var(--font-mono); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 160px var(--gutter) 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__art { max-width: 420px; width: 100%; }

  .section { padding: 96px var(--gutter); }
  .section__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }

  .name__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }

  .philo__grid { grid-template-columns: 1fr; border-top: none; }
  .philo__cell {
    border-top: 1px solid var(--ink-900);
    border-right: none;
    margin-right: 0;
    padding: 32px 0;
  }

  .products { grid-template-columns: 1fr; }

  .process__step { grid-template-columns: 48px 1fr; }
  .process__body { grid-column: 1 / -1; }

  .caps { grid-template-columns: repeat(2, 1fr); }
  .caps__col {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav { padding: 16px var(--gutter); }
  .nav__logo img { height: 56px; }
  .nav__links { gap: 20px; font-size: 15px; }

  .name__letter { font-size: 72px; }
  .product__body { padding: 24px; }
  .product__name { font-size: 24px; }

  .caps { grid-template-columns: 1fr; }

  .footer__bar { flex-direction: column; align-items: flex-start; }
}
