/* leestory.com
   Sections: variables · base · header · hero · reveal · fields · creed · development · footer · responsive */

/* ---------- variables ---------- */
:root {
  --bg: #fff;
  --bg-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --line-2: #d2d2d7;
  --accent: #0a58e0;
  --max: 1160px;
  --display: Manrope, "Noto Sans KR", Inter, sans-serif;
  --sans: Inter, "Noto Sans KR", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ko"] body { word-break: keep-all; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

/* ---------- header ---------- */
header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand .mark { width: 18px; height: 18px; flex: none; }
.brand b { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }
.brand:hover em { color: var(--ink-2); }
nav { display: flex; align-items: center; gap: 30px; color: var(--ink-2); }
nav a:hover { color: var(--ink); }
nav .cta { padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px); }
.lang { font: inherit; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 7px 10px; cursor: pointer; transition: color .2s, border-color .2s; }
.lang:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: grid;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(720px 520px at 78% 44%, rgba(10, 88, 224, .09), transparent 62%),
    radial-gradient(520px 420px at 86% 72%, rgba(91, 140, 255, .07), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29, 29, 31, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 29, 31, .055) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(60% 60% at 70% 50%, #000 10%, transparent 100%);
  mask-image: radial-gradient(60% 60% at 70% 50%, #000 10%, transparent 100%);
}
.art { position: absolute; right: -50px; top: 50%; width: 880px; height: 720px; transform: translateY(-50%); }
.art canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.hero .shell { position: relative; z-index: 2; pointer-events: none; }
.hero .shell a { pointer-events: auto; }
.eyebrow { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 12px; align-items: center; margin-bottom: 30px; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(10, 88, 224, .55); }
h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -.04em; max-width: 10.5em; }
html[lang="ko"] h1 { letter-spacing: -.03em; line-height: 1.12; font-size: clamp(38px, 5.4vw, 72px); }
h1 span { display: block; }
h1 span:first-child { font-size: .72em; font-weight: 500; color: var(--ink-2); letter-spacing: -.03em; line-height: 1.15; margin-bottom: .22em; }
h1 span + span { color: var(--accent); font-weight: 700; }
.lead { margin: 30px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.meta { margin-top: 48px; display: flex; gap: 40px; font-size: 13.5px; color: var(--muted); }
.meta b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; font-family: var(--display); }
.meta a { color: var(--accent); }

/* ---------- reveal (load and scroll) ---------- */
.reveal { animation: rise .9s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
.reveal:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rv { transition: opacity .8s ease, transform .8s var(--ease); }
.js .rv { opacity: 0; transform: translateY(18px); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- fields ---------- */
.fields { padding: 96px 0 40px; }
.head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; }
.head span { font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  position: relative;
  padding: 28px 26px;
  border-radius: 22px;
  background: var(--bg-2);
  min-height: 232px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s;
}
.card:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(29, 29, 31, .28), 0 0 0 1px var(--line); }
.card svg { width: 28px; height: 28px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 40px 0 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; line-height: 1.25; min-height: 1.25em; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* ---------- creed ---------- */
.creed { padding: 72px 0 88px; }
.creed .box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.creed h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
html[lang="ko"] .creed h2 { letter-spacing: -.02em; line-height: 1.2; }
.creed h2 span { display: block; }
.creed p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 32em; }

/* ---------- development (row list) ---------- */
.dev { padding: 0 0 96px; }
.dev .head { margin-bottom: 18px; }
.dev ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.dev li { border-bottom: 1px solid var(--line); }
.dev a {
  position: relative;
  display: grid; grid-template-columns: 240px 1fr auto; gap: 28px; align-items: baseline;
  padding: 22px 0;
  transition: padding-left .35s var(--ease);
}
.dev a::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .35s var(--ease); }
.dev a:hover { padding-left: 16px; }
.dev a:hover::before { transform: scaleY(1); }
.dev .name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.15; transition: color .2s; }
.dev a:hover .name { color: var(--accent); }
.dev .what { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.dev .host { font-size: 13px; color: var(--muted); white-space: nowrap; }
.dev .host::after { content: " ↗"; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; }
.foot { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.foot a { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
  .art { right: -300px; width: 760px; height: 620px; opacity: .6; }
  .cards { grid-template-columns: 1fr 1fr; }
  .creed .box { grid-template-columns: 1fr; gap: 28px; }
  .dev a { grid-template-columns: 200px 1fr; gap: 8px 24px; }
  .dev .host { grid-column: 2; }
}
@media (max-width: 620px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .nav { height: 68px; }
  nav { gap: 12px; }
  nav a:not(.cta) { display: none; }
  .hero { min-height: 0; padding: 112px 0 64px; }
  .art { right: -280px; top: 28%; width: 600px; height: 500px; opacity: .35; pointer-events: none; }
  .meta { flex-direction: column; gap: 14px; margin-top: 36px; }
  .head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .fields { padding: 64px 0 24px; }
  .creed .box { padding: 44px 0; }
  .dev a { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .dev .host { grid-column: 1; }
  .foot { flex-direction: column; gap: 6px; }
}
