/* ============================================================
   ITMIX Company Landing — Global styles + 3 mood themes
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;1,400&display=swap');

:root {
  --serif: "Spectral", "Noto Serif KR", Georgia, serif;
  --sans: "Pretendard Variable", "Pretendard", "Helvetica Neue", "Helvetica",
          "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  /* logo-inspired palette (always available) */
  --c-red: #e23b3d;
  --c-orange: #ee7333;
  --c-amber: #f4ad2f;
  --c-lime: #bcd141;
  --c-green: #4fa84a;
  --c-teal: #2aa6a0;
  --c-blue: #2c6ad6;
  --c-indigo: #4e3ba8;
  --c-violet: #8a2f8a;

  /* mood tokens — overridden via [data-mood] */
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --bg-3: #ebebeb;
  --fg: #0a0a0a;
  --fg-2: rgba(10,10,10,0.62);
  --fg-3: rgba(10,10,10,0.42);
  --fg-4: rgba(10,10,10,0.16);
  --line: rgba(10,10,10,0.10);
  --line-strong: rgba(10,10,10,0.22);
  --accent: #0a0a0a;
  --on-accent: #ffffff;
  --serif-italic: 1;
  --hairline: .5px;

  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

/* ---- Mono / Editorial ---- */
[data-mood="mono"] {
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --bg-3: #ebebeb;
  --fg: #0a0a0a;
  --fg-2: rgba(10,10,10,0.62);
  --fg-3: rgba(10,10,10,0.42);
  --fg-4: rgba(10,10,10,0.14);
  --line: rgba(10,10,10,0.10);
  --line-strong: rgba(10,10,10,0.22);
  --accent: #0a0a0a;
  --on-accent: #ffffff;
}

/* ---- Color Bloom ---- */
[data-mood="bloom"] {
  --bg: #0b0b10;
  --bg-2: #15151c;
  --bg-3: #1f1f29;
  --fg: #f4f3ef;
  --fg-2: rgba(244,243,239,0.66);
  --fg-3: rgba(244,243,239,0.42);
  --fg-4: rgba(244,243,239,0.16);
  --line: rgba(244,243,239,0.12);
  --line-strong: rgba(244,243,239,0.24);
  --accent: #f4ad2f;
  --on-accent: #0b0b10;
}

/* ---- Editorial Warm ---- */
[data-mood="warm"] {
  --bg: #f4eee2;
  --bg-2: #ebe3d2;
  --bg-3: #ddd1ba;
  --fg: #221d15;
  --fg-2: rgba(34,29,21,0.66);
  --fg-3: rgba(34,29,21,0.44);
  --fg-4: rgba(34,29,21,0.16);
  --line: rgba(34,29,21,0.14);
  --line-strong: rgba(34,29,21,0.28);
  --accent: #8a3a1f;
  --on-accent: #f4eee2;
}

/* ============================================================
   Reset + base
   ============================================================ */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .6s ease, color .6s ease;
}
html { scroll-behavior: smooth; }
body { line-height: 1.45; }
img { display: block; max-width: 100%; }
button { font: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ============================================================
   Typography
   ============================================================ */
.h-display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(48px, 10vw, 160px);
}
.h-display-2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-size: clamp(40px, 7vw, 112px);
}
.h-1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: clamp(34px, 5.2vw, 80px);
}
.h-2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(26px, 3.4vw, 48px);
}
.h-3 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  font-size: clamp(20px, 2vw, 28px);
}
.body-l {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--fg-2);
}
.body { font-size: 16px; line-height: 1.55; color: var(--fg-2); }
.small { font-size: 13px; letter-spacing: 0.01em; color: var(--fg-3); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* mood-specific serif accents */
[data-mood="warm"] .display-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}

/* numbers */
.num { font-variant-numeric: tabular-nums; }

/* ============================================================
   Layout helpers
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(80px, 12vh, 160px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vh, 100px) 0; }
.row { display: flex; gap: 24px; }
.col { display: flex; flex-direction: column; }
.between { display: flex; justify-content: space-between; align-items: baseline; }
.divider { height: var(--hairline); background: var(--line); width: 100%; }
.divider-strong { height: var(--hairline); background: var(--line-strong); width: 100%; }

/* shape primitive used for placeholders & abstract bg */
.abstract-blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* sticky / scroll helpers */
.sticky-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sticky-pin--hero {
  padding: 100px 0 60px;
  align-items: center;
}
@media (max-height: 820px) {
  .sticky-pin--hero { align-items: flex-start; padding-top: 110px; }
}

/* hero mount-once reveals — STATIC CSS keyframes on stable classes.
   Animates only opacity (not transform) so inline parallax transforms on
   the SAME elements don't conflict with the animation. */
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-rise {
  animation: heroFade 1.2s cubic-bezier(.2,.7,.2,1) both;
  will-change: opacity;
}
.hero-rise.d0 { animation-delay: .02s; }
.hero-rise.d1 { animation-delay: .08s; }
.hero-rise.d2 { animation-delay: .20s; }
.hero-rise.d3 { animation-delay: .34s; }
.hero-rise.d4 { animation-delay: .50s; }
.hero-rise.d5 { animation-delay: .64s; }

/* responsive nav menu */
@media (max-width: 880px) {
  .nav-menu { display: none !important; }
}

/* a small floating chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: var(--hairline) solid var(--line-strong);
  font-size: 12px;
  color: var(--fg-2);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: var(--hairline) solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn .arr {
  display: inline-block;
  transition: transform .2s;
}
.btn:hover .arr { transform: translateX(3px); }

/* a vertical column number marker like "01 / 06" */
.idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

/* ============================================================
   Mood-specific surface tweaks
   ============================================================ */
[data-mood="bloom"] body { background: var(--bg); }
[data-mood="bloom"] .btn:hover { background: #fff; color: #0b0b10; border-color: #fff; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* split chars utility */
.split-line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.in .split-line > span { transform: translateY(0); }
.split-line.d1 > span { transition-delay: .04s; }
.split-line.d2 > span { transition-delay: .08s; }
.split-line.d3 > span { transition-delay: .14s; }
.split-line.d4 > span { transition-delay: .2s; }
.split-line.d5 > span { transition-delay: .26s; }

/* a scroll-reveal mask */
.mask-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(.2,.7,.2,1);
}
.in .mask-reveal,
.mask-reveal.in {
  clip-path: inset(0 0 0 0);
}
