/* ==========================================================================
   SHARPEN — style.css
   Core design system, components and page styles
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Color — ystudio monochrome base + restrained SHARPEN accent */
  --primary-dark: #0a0a0a;
  --navy: #0a0a0a;
  --bg-light: #f4f4f4;
  --bg-lighter: #fafafa;
  --white: #ffffff;
  --text-main: #111111;
  --text-body: #444444;
  --text-sub: #888888;
  --text-faint: #aaaaaa;
  --border: #e4e4e4;
  --border-dark: #232323;

  /* Accent (used sparingly) */
  --accent: #b6261b;
  --accent-hover: #941c13;
  --accent-soft: rgba(182, 38, 27, 0.08);
  --accent-line: rgba(182, 38, 27, 0.28);

  /* Typography — Poppins (EN) + Noto Sans KR (KR) */
  --font-kr: "Noto Sans KR", "Pretendard", system-ui, -apple-system,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: "Poppins", "Noto Sans KR", "Pretendard", system-ui, sans-serif;

  /* Layout — full-bleed, narrower gutters = ~20% wider content */
  --maxw: none;
  --maxw-narrow: 1040px;
  --gutter: clamp(16px, 2.6vw, 40px);
  --header-h: 84px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- 2. Base ---------- */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-kr);
  color: var(--text-body);
  background: var(--white);
  font-size: 1rem;
  letter-spacing: -0.005em;
}

.en {
  font-family: var(--font-en);
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--maxw-narrow);
}

main {
  display: block;
}

/* ---------- 3. Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-num {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}

.h-hero {
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.h-section {
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 500;
}

/* Oversized display (ystudio-style single-word / short phrase) */
.display {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(3.2rem, 13vw, 13rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.h-sub {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.65;
  color: var(--text-body);
  font-weight: 400;
}

/* ystudio-style large intro paragraph */
.lead--xl {
  font-size: clamp(1.375rem, 2.6vw, 2.25rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.text-accent {
  color: var(--accent);
}

.muted {
  color: var(--text-sub);
}

/* ---------- 4. Section scaffolding ---------- */
.section {
  padding-block: clamp(72px, 9vw, 140px);
}

.section--tight {
  padding-block: clamp(56px, 6vw, 96px);
}

.section--dark {
  background: var(--primary-dark);
  color: var(--white);
}

.section--dark .lead,
.section--dark .muted,
.hero--dark .lead,
.hero--dark .muted,
.compare__col--new .muted {
  color: rgba(255, 255, 255, 0.72);
}

.section--dark .section-num {
  color: rgba(255, 255, 255, 0.4);
}

.section--light {
  background: var(--bg-light);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head .eyebrow {
  margin-bottom: 22px;
}

.section-head p {
  margin-top: 22px;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform 0.25s var(--ease);
  will-change: transform;
  min-height: 48px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn__arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--dark {
  background: var(--primary-dark);
  color: var(--white);
}

.btn--dark:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-main);
}

.btn--ghost:hover {
  border-color: var(--text-main);
  background: transparent;
}

.section--dark .btn--ghost,
.hero--dark .btn--ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: transparent;
}

.section--dark .btn--ghost:hover,
.hero--dark .btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--lg {
  font-size: 1.0625rem;
  padding: 18px 34px;
  min-height: 56px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.3s var(--ease);
}

.text-link:hover {
  gap: 0.85em;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}

.brand {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand__mark {
  height: 28px;
  width: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 2px;
}

/* Header sitting over a dark hero: light text until scrolled */
.site-header--over-dark:not(.is-scrolled) .brand {
  color: var(--white);
}

.site-header--over-dark:not(.is-scrolled) .nav__link {
  color: rgba(255, 255, 255, 0.88);
}

.site-header--over-dark:not(.is-scrolled) .nav__link:hover,
.site-header--over-dark:not(.is-scrolled) .nav__link.is-active {
  color: var(--white);
}

.site-header--over-dark:not(.is-scrolled) .nav-toggle span,
.site-header--over-dark:not(.is-scrolled) .nav-toggle span::before,
.site-header--over-dark:not(.is-scrolled) .nav-toggle span::after {
  background: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__link {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--accent);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 7px;
  transition: background 0.3s var(--ease), transform 0.25s var(--ease);
}

.header-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  position: relative;
  transition: background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary-dark);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

body.menu-open .nav-toggle span {
  background: transparent;
}

body.menu-open .nav-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-open .nav-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease),
    visibility 0.4s;
  overflow-y: auto;
}

body.menu-open .mobile-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu__link {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu__link .en {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 500;
}

.mobile-menu__foot {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px));
  padding-bottom: clamp(56px, 8vw, 110px);
  overflow: hidden;
}

.hero--dark {
  background: var(--primary-dark);
  color: var(--white);
}

.hero--light {
  background: var(--bg-light);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  margin-bottom: 28px;
}

.hero__desc {
  max-width: 42ch;
  margin-bottom: 8px;
}

.hero__meta {
  margin-top: 40px;
  font-family: var(--font-en);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.hero--dark .hero__meta {
  color: rgba(255, 255, 255, 0.5);
}

.hero__meta span {
  position: relative;
  padding-right: 14px;
}

.hero__meta span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0;
}

/* ---------- 8. Process flow (hero visual) ---------- */
.flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.hero--dark .flow__item {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-dark);
}

.flow__item:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}

.flow__idx {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  width: 26px;
  flex-shrink: 0;
}

.flow__label {
  font-weight: 700;
  font-size: 1.05rem;
}

.flow__desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-left: auto;
  text-align: right;
}

.hero--dark .flow__desc {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 9. Grids & cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 38px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 18px 44px -28px rgba(17, 17, 20, 0.35);
}

.section--dark .card,
.section--light .card {
  background: var(--white);
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-dark);
  color: var(--white);
}

.card__num {
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card__text {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.section--dark .card__text {
  color: rgba(255, 255, 255, 0.6);
}

/* problem cards on dark */
.problem-card {
  border-left: 2px solid transparent;
  padding-left: 26px;
}

.problem-card:hover {
  border-color: var(--border-dark);
  border-left-color: var(--accent);
}

/* Service card with label */
.service-card .en {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 14px;
}

.section--dark .service-card .en {
  color: var(--white);
}

.service-card__ko {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

/* ---------- 10. Definition / statement block ---------- */
.statement {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 20ch;
}

.statement--wide {
  max-width: 24ch;
}

.statement .text-accent {
  color: var(--accent);
}

/* ---------- 11. Process (numbered) ---------- */
.process {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.section--dark .process {
  border-color: var(--border-dark);
}

.process__row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  transition: background 0.3s var(--ease);
}

.section--dark .process__row {
  border-color: var(--border-dark);
}

.process__row:hover {
  background: var(--accent-soft);
}

.process__num {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.process__name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.process__desc {
  color: var(--text-sub);
  font-size: 1.0625rem;
}

.section--dark .process__desc {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 12. Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.timeline__step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}

.timeline__step.is-accent {
  border-top-color: var(--accent);
}

.timeline__step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline__stage {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.timeline__list li {
  font-size: 0.95rem;
  color: var(--text-sub);
  padding: 5px 0;
  position: relative;
  padding-left: 14px;
}

.section--dark .timeline__list li {
  color: rgba(255, 255, 255, 0.6);
}

.timeline__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-line);
}

/* ---------- 13. Feature / split rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare__col {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare__col--old {
  background: var(--bg-light);
}

.compare__col--new {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}

.compare__tag {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-block;
}

.compare__col--old .compare__tag {
  color: var(--text-faint);
}

.compare__col--new .compare__tag {
  color: var(--accent);
}

/* ---------- 14. Checklist / bullet lists ---------- */
.check-list {
  display: grid;
  gap: 2px;
}

.check-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  align-items: flex-start;
}

.section--dark .check-list li {
  border-color: var(--border-dark);
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 2px;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b6261b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* spec columns */
.spec-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.spec-col h3 {
  font-size: 1.15rem;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.spec-col li {
  font-size: 0.98rem;
  color: var(--text-sub);
  padding: 7px 0;
}

.section--dark .spec-col li {
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- 15. Perspectives (Inside/Outside/Market) ---------- */
.perspectives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.perspective {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  background: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.perspective:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -28px rgba(17, 17, 20, 0.35);
}

.perspective__en {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.perspective__ko {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 4px 0 22px;
}

.perspective__list li {
  padding: 11px 0;
  border-top: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 1rem;
}

/* ---------- 16. Image placeholders ---------- */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--tall {
  aspect-ratio: 4 / 5;
}

.media--wide {
  aspect-ratio: 16 / 10;
}

.media--square {
  aspect-ratio: 1 / 1;
}

.media-guide {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #ecece7 0%, #f5f5f2 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  color: var(--text-faint);
}

.media-guide::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  pointer-events: none;
}

.media-guide span {
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 22ch;
  line-height: 1.5;
  z-index: 1;
}

.media-guide .en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--accent);
}

/* ---------- 17. CTA band ---------- */
.cta-band {
  background: var(--primary-dark);
  color: var(--white);
  border-radius: clamp(16px, 3vw, 28px);
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgba(182, 38, 27, 0.35) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  max-width: 760px;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.875rem);
  line-height: 1.2;
  margin-bottom: 22px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.125rem;
  margin-bottom: 36px;
}

/* ---------- 18. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat__num {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}

.stat__label {
  margin-top: 12px;
  color: var(--text-sub);
  font-size: 1rem;
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- 19. Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}
[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}
[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}
[data-reveal-delay="4"] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- 20. Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding-block: clamp(56px, 7vw, 88px) 36px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

.footer__brand .brand {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer__brand .brand__mark {
  height: 34px;
}

.footer__tagline {
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.05rem;
  max-width: 26ch;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
  font-family: var(--font-en);
}

.footer__col li {
  padding: 7px 0;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s var(--ease);
  font-size: 0.98rem;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.footer__bottom .en {
  letter-spacing: 0.04em;
}

.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- 21. FAQ accordion ---------- */
.faq {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 26px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.faq__icon::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 2px;
  transform: translateX(-50%);
}

.faq__item.is-open .faq__icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq__a-inner {
  padding-bottom: 26px;
  color: var(--text-sub);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 62ch;
}

/* ---------- 22. Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: all 0.3s var(--ease);
  min-height: 44px;
}

.filter-btn:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.filter-btn.is-active {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

/* ---------- 23. Project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 44px);
}

.project-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease);
}

.project-card__media {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.project-card__media .media-guide,
.project-card__media img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  transition: transform 0.7s var(--ease);
}

.project-card:hover .project-card__media img,
.project-card:hover .project-card__media .media-guide {
  transform: scale(1.04);
}

.project-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.project-card__tag {
  color: var(--accent);
  font-weight: 700;
}

.project-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.project-card__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.project-card__row dt {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.project-card__row dd {
  color: var(--text-sub);
}

.project-card__desc {
  color: var(--text-sub);
  font-size: 0.98rem;
  margin-top: 8px;
  line-height: 1.55;
}

/* Dense grid for the full portfolio page */
.project-grid--dense {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 2.2vw, 34px);
}

.project-grid--dense .project-card__media {
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}

.project-grid--dense .project-card__title {
  font-size: 1.25rem;
}

.is-hidden {
  display: none !important;
}

/* ---------- 24. Insight cards ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -28px rgba(17, 17, 20, 0.35);
}

.insight-card__media {
  aspect-ratio: 16 / 10;
}

.insight-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-card__cat {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 12px;
}

.insight-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 12px;
}

.insight-card__excerpt {
  color: var(--text-sub);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.insight-card__foot {
  margin-top: auto;
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
}

/* ---------- 25. Forms ---------- */
.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.form-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.form-steps {
  margin-top: 32px;
  display: grid;
  gap: 4px;
}

.form-steps li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--text-sub);
  align-items: baseline;
}

.form-steps .num {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}

.form {
  display: grid;
  gap: 34px;
}

.fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.fieldset > legend {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  padding: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.fieldset > legend .num {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.field label .req {
  color: var(--accent);
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--accent);
}

.field__error {
  font-size: 0.82rem;
  color: var(--accent);
  min-height: 1em;
  display: none;
}

.field.has-error .field__error {
  display: block;
}

/* choice chips (checkbox/radio group) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice span {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.98rem;
  transition: all 0.25s var(--ease);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.choice input:hover + span {
  border-color: var(--text-main);
}

.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.choice input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 22px;
  background: var(--bg-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-sub);
}

.consent input {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
}

.form-success {
  display: none;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-light);
}

.form-success.is-visible {
  display: block;
}

.form-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 26. Detail page bits ---------- */
.detail-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(40px, 5vw, 64px);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.detail-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--border);
}

.detail-block__label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-block__label small {
  display: block;
  color: var(--text-faint);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 4px;
}

.detail-block h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  margin-bottom: 18px;
}

.detail-block p {
  color: var(--text-sub);
  font-size: 1.0625rem;
  margin-bottom: 16px;
  max-width: 62ch;
}

.pullquote {
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  padding: clamp(32px, 5vw, 56px);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent);
}

.pullquote cite {
  display: block;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 500;
  font-style: normal;
  color: var(--text-sub);
}

/* ---------- 27. To-top button ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s, background 0.3s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--accent);
}

/* ---------- 28. Misc ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.82rem;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-sub);
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ---------- 29. Client wall ---------- */
.client-cats {
  display: grid;
  gap: 28px;
}

.client-cat {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px 32px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.section--dark .client-cat {
  border-color: var(--border-dark);
}

.client-cat__label {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.client-cat__label small {
  display: block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.client-names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.client-names span {
  font-size: 1rem;
  color: var(--text-sub);
  position: relative;
  padding-right: 13px;
  white-space: nowrap;
}

.section--dark .client-names span {
  color: rgba(255, 255, 255, 0.66);
}

.client-names span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0;
  color: var(--text-faint);
}

.client-names__more {
  color: var(--accent) !important;
  font-weight: 500;
}

.client-names__more::after {
  content: "" !important;
}

/* ---------- 30. Micro-interactions ---------- */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  z-index: 200;
  will-change: transform;
}

/* Button sheen sweep on hover */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
}

.btn--ghost::after {
  background: linear-gradient(
    100deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
}

.section--dark .btn--ghost::after,
.hero--dark .btn--ghost::after {
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
}

/* Header CTA arrow nudge + subtle pulse ring on load */
.header-cta span {
  transition: transform 0.3s var(--ease);
}

.header-cta:hover span {
  transform: translateX(3px);
}

/* Brand dot heartbeat (footer) */
.footer__brand .brand__mark {
  animation: brandPulse 4.5s var(--ease) infinite;
}

@keyframes brandPulse {
  0%, 92%, 100% { transform: scale(1); }
  96% { transform: scale(1.08); }
}

/* Eyebrow line grows in when revealed */
.eyebrow::before {
  transition: width 0.6s var(--ease) 0.1s;
}

[data-reveal] .eyebrow::before,
.eyebrow[data-reveal]::before {
  width: 0;
}

[data-reveal].is-visible .eyebrow::before,
.eyebrow[data-reveal].is-visible::before {
  width: 26px;
}

/* Project card title shifts to accent on hover */
.project-card:hover .project-card__title a {
  color: var(--accent);
  transition: color 0.3s var(--ease);
}

/* Insight card media zoom on hover */
.insight-card__media {
  overflow: hidden;
}

.insight-card .insight-card__media {
  transition: transform 0.7s var(--ease);
}

.insight-card:hover .insight-card__media {
  transform: scale(1.03);
}

/* Client name hover lift */
.client-names span {
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: default;
}

.client-names span:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* Stat number subtle rise when revealed */
.stat__num {
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

/* Process row arrow reveal */
.process__row {
  position: relative;
}

.process__row::after {
  content: "→";
  position: absolute;
  right: 4px;
  top: 30px;
  font-family: var(--font-en);
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.process__row:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Timeline dot pulse on hover */
.timeline__step::before {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.timeline__step:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* Card number nudges on hover */
.card__num,
.perspective__en {
  transition: transform 0.35s var(--ease);
}

.card:hover .card__num {
  transform: translateX(4px);
}

/* Hero ambient drifting glow */
.hero.hero--dark::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 620px;
  height: 620px;
  max-width: 80vw;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(182, 38, 27, 0.22) 0%,
    transparent 66%
  );
  pointer-events: none;
  animation: heroGlow 14s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  100% { transform: translate(-40px, 30px) scale(1.12); opacity: 1; }
}

/* Magnetic buttons (JS-driven translate stored in CSS var) */
.magnetic {
  transition: transform 0.25s var(--ease);
}

/* Marquee (client logos strip) */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 30px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 30px;
  transition: color 0.3s var(--ease);
}

.marquee__item::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.marquee__item:hover {
  color: var(--white);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero--dark::before,
  .footer__brand .brand__mark,
  .marquee__track {
    animation: none !important;
  }
  .scroll-progress { display: none; }
  .marquee {
    overflow-x: auto;
  }
}

/* ==========================================================================
   31. ystudio-style layer — preloader, cursor, overlay menu, marquee, parallax
   ========================================================================== */

/* ---- Preloader with percentage counter ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__word {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(2.5rem, 9vw, 8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.preloader__word.is-in {
  opacity: 1;
  transform: none;
}

.preloader__count {
  position: absolute;
  bottom: clamp(20px, 4vw, 44px);
  right: clamp(22px, 6vw, 80px);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.preloader__label {
  position: absolute;
  bottom: clamp(20px, 4vw, 44px);
  left: clamp(22px, 6vw, 80px);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.preloader__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
}

/* ---- Custom cursor (desktop pointer only) ---- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17, 17, 17, 0.35);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.cursor-ring.is-hover {
  width: 66px;
  height: 66px;
  border-color: transparent;
  background: rgba(182, 38, 27, 0.1);
}

body.cursor-on-dark .cursor-ring {
  border-color: rgba(255, 255, 255, 0.4);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ---- Header polish ---- */
.site-header {
  height: var(--header-h);
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
}

.brand {
  font-size: 1.3rem;
}

/* Menu toggle available on all sizes for the full overlay */
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-main);
}

.site-header--over-dark:not(.is-scrolled) .menu-btn {
  color: #fff;
}

/* ---- Full-screen overlay menu — oversized links ---- */
.mobile-menu {
  background: #0a0a0a;
  color: #fff;
  justify-content: center;
  gap: 0;
}

.mobile-menu__link {
  font-family: var(--font-en);
  font-size: clamp(2.25rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  border-bottom: none;
  padding: clamp(6px, 1.4vw, 14px) 0;
  width: max-content;
  max-width: 100%;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease),
    opacity 0.4s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}

body.menu-open .mobile-menu__link {
  opacity: 1;
  transform: none;
}

body.menu-open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu__link:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobile-menu__link:nth-child(3) { transition-delay: 0.20s; }
body.menu-open .mobile-menu__link:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobile-menu__link:nth-child(5) { transition-delay: 0.32s; }

.mobile-menu__link .en {
  font-size: 0.8rem;
  color: var(--accent);
  vertical-align: super;
}

.mobile-menu__link:hover {
  color: var(--accent);
  transform: translateX(14px);
}

.mobile-menu__foot {
  margin-top: clamp(28px, 5vw, 56px);
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  background: var(--text-main);
}

.site-header--over-dark:not(.is-scrolled) .nav-toggle span,
.site-header--over-dark:not(.is-scrolled) .nav-toggle span::before,
.site-header--over-dark:not(.is-scrolled) .nav-toggle span::after {
  background: #fff;
}

body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before,
body.menu-open .nav-toggle span::after { background: #fff; }

/* ---- Big-title marquee (ystudio signature) ---- */
.marquee--display .marquee__track {
  animation-duration: 34s;
}

.marquee--display .marquee__item {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(2.5rem, 9vw, 8.5rem);
  letter-spacing: -0.03em;
  color: var(--text-main);
  padding: 0 clamp(20px, 4vw, 60px);
  gap: clamp(20px, 4vw, 60px);
  text-transform: none;
}

.marquee--display .marquee__item::after {
  width: 12px;
  height: 12px;
  background: var(--accent);
}

.hero--dark .marquee--display .marquee__item {
  color: #fff;
}

.marquee--outline .marquee__item {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-faint);
}

/* ---- Scroll-down indicator ---- */
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.hero--dark .scroll-hint {
  color: rgba(255, 255, 255, 0.6);
}

.scroll-hint__line {
  width: 46px;
  height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}

.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollHint 2.2s var(--ease) infinite;
}

@keyframes scrollHint {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---- Parallax ---- */
[data-parallax] {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
  .scroll-hint__line::after,
  .marquee--display .marquee__track { animation: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ---- Hero background image + cursor spotlight ---- */
.hero--spot {
  min-height: clamp(560px, 90vh, 940px);
  display: flex;
  align-items: center;
  position: relative;
}

.hero--spot .container {
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero__bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  will-change: transform;
}

.hero__bg-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.6) 45%,
    rgba(10, 10, 10, 0.35) 100%
  );
  pointer-events: none;
}

.hero__spot {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle 360px at var(--mx, 70%) var(--my, 40%),
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.45) 55%,
    rgba(10, 10, 10, 0.82) 100%
  );
  transition: background 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { transform: none !important; }
  .hero__spot { background: rgba(10, 10, 10, 0.55); }
}

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }




/* =========================================================
   SHARPEN HERO — INTERACTIVE ONLINE SALES MAP
========================================================= */

.hero--sales-map {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}


/* 기존 배경 */
.hero--sales-map .hero__bg {
  transform: scale(1.04);
  transition: transform 1.8s cubic-bezier(.2,.7,.2,1);
}


/* ---------------------------------------------------------
   Interactive layer
--------------------------------------------------------- */

.sales-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}


/*
Hero 실제 콘텐츠가 항상 앞으로
*/

.hero--sales-map > .container {
  position: relative;
  z-index: 5;
}


.hero--sales-map .hero__bg {
  z-index: 0;
}

.hero--sales-map .hero__bg-tint {
  z-index: 2;
}

.hero--sales-map .hero__spot {
  z-index: 3;
}


/* ---------------------------------------------------------
   GRID
--------------------------------------------------------- */

.sales-map__grid {
  position: absolute;
  inset: 0;

  opacity: .16;

  background-image:
    linear-gradient(
      rgba(255,255,255,.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.045) 1px,
      transparent 1px
    );

  background-size: 74px 74px;

  mask-image:
    linear-gradient(
      90deg,
      transparent 22%,
      rgba(0,0,0,.9) 58%,
      rgba(0,0,0,.65) 100%
    );

  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent 22%,
      rgba(0,0,0,.9) 58%,
      rgba(0,0,0,.65) 100%
    );
}


/* ---------------------------------------------------------
   MOUSE LIGHT
--------------------------------------------------------- */

.sales-map__pointer {

  position: absolute;

  width: 600px;
  height: 600px;

  left: 75%;
  top: 45%;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(65,125,255,.12) 0%,
      rgba(65,125,255,.05) 30%,
      transparent 68%
    );

  filter: blur(15px);

  transition:
    left .18s ease-out,
    top .18s ease-out;

}


/* ---------------------------------------------------------
   CUSTOMER
--------------------------------------------------------- */

.sales-node--customer {

  position: absolute;

  right: 25%;
  top: 19%;

  display: flex;

  align-items: center;

  gap: 10px;

  opacity: .47;

}


.sales-node__dot {

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: rgba(255,255,255,.9);

  box-shadow:
    0 0 0 7px rgba(255,255,255,.04),
    0 0 30px rgba(255,255,255,.25);

}


.sales-node__text {

  font-family: "Poppins", sans-serif;

  font-size: 9px;

  letter-spacing: .18em;

  color: rgba(255,255,255,.5);

}


/* ---------------------------------------------------------
   SEARCH
--------------------------------------------------------- */

.sales-search {

  position: absolute;

  right: 10%;

  top: 34%;

  width: 260px;

  height: 46px;

  padding: 0 16px;

  border-radius: 8px;

  border:
    1px solid rgba(255,255,255,.12);

  background:
    rgba(255,255,255,.035);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  display: flex;

  align-items: center;

  gap: 11px;

  color: rgba(255,255,255,.74);

  opacity: .65;

  pointer-events: auto;

  cursor: pointer;

  transition:
    opacity .4s,
    border-color .4s,
    background .4s,
    transform .4s;

}


.sales-search:hover {

  opacity: .95;

  border-color:
    rgba(255,255,255,.25);

  background:
    rgba(255,255,255,.065);

  transform:
    translateY(-2px);

}


.sales-search__icon {

  display: flex;

  opacity: .6;

}


.sales-search__typing {

  font-family:
    "Pretendard",
    sans-serif;

  font-size: 12px;

  letter-spacing: -.02em;

}


.sales-search__cursor {

  width: 1px;

  height: 14px;

  background:
    rgba(255,255,255,.7);

  animation:
    salesCursor .85s steps(1) infinite;

}


@keyframes salesCursor {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }

}


/* ---------------------------------------------------------
   SEARCH RESULT
--------------------------------------------------------- */

.sales-result {

  position: absolute;

  right: 18%;

  top: 53%;

  width: 230px;

  padding: 17px 18px;

  border-left:
    1px solid rgba(100,150,255,.38);

  opacity: .40;

  transform:
    translateY(10px);

  transition:
    opacity .5s,
    transform .5s;

}


.sales-result__label {

  display: block;

  margin-bottom: 8px;

  font-family:
    "Poppins",
    sans-serif;

  font-size: 8px;

  letter-spacing: .22em;

  color:
    rgba(255,255,255,.34);

}


.sales-result__title {

  display: block;

  margin-bottom: 3px;

  font-family:
    "Poppins",
    sans-serif;

  font-size: 13px;

  letter-spacing: .08em;

  color:
    rgba(255,255,255,.82);

}


.sales-result__desc {

  display: block;

  font-size: 10px;

  line-height: 1.5;

  color:
    rgba(255,255,255,.38);

}


/* ---------------------------------------------------------
   SHARPEN TARGET
--------------------------------------------------------- */

.sales-target {

  position: absolute;

  right: 34%;

  bottom: 17%;

  display: flex;

  align-items: center;

  gap: 13px;

  opacity: .55;

}


.sales-target__circle {

  position: relative;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(102,151,255,.55);

  background:
    rgba(52,100,220,.08);

  font-family:
    "Poppins",
    sans-serif;

  font-size: 11px;

  color:
    rgba(255,255,255,.78);

}


.sales-target__pulse {

  position: absolute;

  left: 19px;

  top: 19px;

  width: 40px;
  height: 40px;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  border:
    1px solid rgba(95,145,255,.35);

  animation:
    targetPulse 3s ease-out infinite;

}


@keyframes targetPulse {

  0% {

    transform:
      translate(-50%, -50%)
      scale(.5);

    opacity: .7;

  }

  100% {

    transform:
      translate(-50%, -50%)
      scale(2.5);

    opacity: 0;

  }

}


.sales-target__info strong {

  display: block;

  margin-bottom: 4px;

  font-family:
    "Poppins",
    sans-serif;

  font-size: 10px;

  letter-spacing: .1em;

  font-weight: 500;

  color:
    rgba(255,255,255,.7);

}


.sales-target__info span {

  display: block;

  font-family:
    "Poppins",
    sans-serif;

  font-size: 7px;

  letter-spacing: .08em;

  color:
    rgba(255,255,255,.30);

}


/* ---------------------------------------------------------
   CONVERSION
--------------------------------------------------------- */

.sales-conversion {

  position: absolute;

  right: 18%;

  bottom: 12%;

  display: flex;

  align-items: center;

  gap: 7px;

  font-family:
    "Poppins",
    sans-serif;

  font-size: 8px;

  letter-spacing: .14em;

  color:
    rgba(255,255,255,.4);

  opacity: .42;

}


.sales-conversion__dot {

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background:
    #6595ff;

  box-shadow:
    0 0 18px rgba(90,140,255,.7);

}


.sales-conversion__check {

  color:
    rgba(105,155,255,.9);

}


/* ---------------------------------------------------------
   SVG CONNECTIONS
--------------------------------------------------------- */

.sales-map__lines {

  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: visible;

}


.sales-path {

  fill: none;

  stroke:
    rgba(255,255,255,.13);

  stroke-width: 1;

  stroke-dasharray:
    3 9;

  vector-effect:
    non-scaling-stroke;

}


/* ---------------------------------------------------------
   SIGNAL
--------------------------------------------------------- */

.sales-signal {

  position: absolute;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background:
    rgba(108,155,255,.9);

  box-shadow:
    0 0 10px rgba(108,155,255,.9),
    0 0 30px rgba(108,155,255,.5);

  opacity: 0;

}


.sales-signal--1 {

  right: 25%;
  top: 23%;

  animation:
    signalOne 4.8s ease-in-out infinite;

}


.sales-signal--2 {

  right: 13%;
  top: 42%;

  animation:
    signalTwo 4.8s ease-in-out 1.3s infinite;

}


.sales-signal--3 {

  right: 25%;
  top: 60%;

  animation:
    signalThree 4.8s ease-in-out 2.6s infinite;

}


@keyframes signalOne {

  0% {
    transform: translate(0,0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translate(145px,115px);
    opacity: 0;
  }

}


@keyframes signalTwo {

  0% {
    transform: translate(0,0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translate(-140px,140px);
    opacity: 0;
  }

}


@keyframes signalThree {

  0% {
    transform: translate(0,0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translate(-115px,110px);
    opacity: 0;
  }

}


/* ---------------------------------------------------------
   KEYWORDS
--------------------------------------------------------- */

.sales-keyword {

  position: absolute;

  font-family:
    "Poppins",
    sans-serif;

  font-size: 7px;

  letter-spacing: .20em;

  color:
    rgba(255,255,255,.16);

  animation:
    keywordFloat 6s ease-in-out infinite;

}


.sales-keyword--1 {

  right: 8%;
  top: 19%;

}


.sales-keyword--2 {

  right: 38%;
  top: 29%;

  animation-delay: -1s;

}


.sales-keyword--3 {

  right: 6%;
  top: 65%;

  animation-delay: -2s;

}


.sales-keyword--4 {

  right: 43%;
  top: 74%;

  animation-delay: -3s;

}


.sales-keyword--5 {

  right: 29%;
  top: 43%;

  animation-delay: -4s;

}


@keyframes keywordFloat {

  0%,
  100% {
    transform:
      translateY(0);
  }

  50% {
    transform:
      translateY(-7px);
  }

}


/* ---------------------------------------------------------
   ACTIVE SEQUENCE
--------------------------------------------------------- */

.sales-map.is-active
.sales-node--customer {

  animation:
    activeCustomer .5s ease forwards;

}


.sales-map.is-active
.sales-search {

  animation:
    activeSearch 1.1s ease .25s forwards;

}


.sales-map.is-active
.sales-result {

  animation:
    activeResult .7s ease 1.1s forwards;

}


.sales-map.is-active
.sales-target {

  animation:
    activeTarget .7s ease 1.8s forwards;

}


.sales-map.is-active
.sales-conversion {

  animation:
    activeConversion .7s ease 2.5s forwards;

}


@keyframes activeCustomer {

  100% {
    opacity: .95;
  }

}


@keyframes activeSearch {

  0% {
    opacity: .65;
  }

  50% {
    opacity: 1;

    border-color:
      rgba(105,150,255,.8);

    box-shadow:
      0 0 30px
      rgba(70,120,255,.13);
  }

  100% {
    opacity: .72;
  }

}


@keyframes activeResult {

  0% {

    opacity: .3;

    transform:
      translateY(10px);

  }

  100% {

    opacity: .95;

    transform:
      translateY(0);

  }

}


@keyframes activeTarget {

  0% {

    opacity: .4;

    transform:
      scale(.95);

  }

  100% {

    opacity: 1;

    transform:
      scale(1);

  }

}


@keyframes activeConversion {

  0% {

    opacity: 0;

    transform:
      translateX(-8px);

  }

  100% {

    opacity: .95;

    transform:
      translateX(0);

  }

}


/* ---------------------------------------------------------
   Desktop Hero interaction
--------------------------------------------------------- */

@media (hover:hover) and (pointer:fine) {

  .sales-map {

    transition:
      transform .15s ease-out;

  }

}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 900px) {

  .sales-map {

    opacity: .48;

  }


  .sales-map__grid {

    background-size:
      52px 52px;

  }


  .sales-search {

    width: 190px;

    height: 40px;

    right: -25px;

    top: 30%;

  }


  .sales-result {

    width: 180px;

    right: -10px;

    top: 49%;

  }


  .sales-node--customer {

    right: 15%;

    top: 21%;

  }


  .sales-target {

    right: 8%;

    bottom: 18%;

  }


  .sales-conversion {

    right: 4%;

    bottom: 9%;

  }


  .sales-keyword {

    display: none;

  }


  .sales-map__pointer {

    display: none;

  }

}


/*
아주 작은 화면에서는
텍스트 가독성을 위해 더 약하게
*/

@media (max-width: 600px) {

  .sales-map {

    opacity: .30;

  }


  .sales-result__desc {

    display: none;

  }


  .sales-target__info {

    display: none;

  }

}


/* ---------------------------------------------------------
   접근성 — 모션 감소
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .sales-signal,
  .sales-keyword,
  .sales-target__pulse,
  .sales-search__cursor {

    animation: none !important;

  }

}