/* ═══════════════════════════════════════════════
   CHINGOO — teamchingoo.com
   Brand: blue #83a7cd · cream #f9f1f0 · terracotta · sun yellow
   Type:  Fredoka (display) · Outfit (body)
   ═══════════════════════════════════════════════ */

:root {
  --cream:      #f9f1f0;
  --cream-soft: #fdf8f7;
  --paper:      #fffcfb;
  --blue:       #83a7cd;
  --blue-deep:  #5d84ae;
  --ink:        #2e4560;
  --ink-soft:   #5b7089;
  --terra:      #d68c62;
  --terra-deep: #c1734a;
  --yellow:     #f5d76e;
  --line:       rgba(46, 69, 96, 0.14);

  --font-display: "Fredoka", "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --r-lg: 2rem;
  --r-md: 1.25rem;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ── reveal primitives ─────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(28px); }
body.no-motion [data-reveal] { opacity: 1; transform: none; }

[data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
[data-split] .word > span { display: inline-block; transform: translateY(110%); }
body.no-motion [data-split] .word > span { transform: none; }

/* ═══════════ PRELOADER ═══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--cream);
  display: grid; place-items: center;
  transition: transform 0.9s var(--ease-out);
}
.preloader--done { transform: translateY(-101%); }
.preloader__inner { text-align: center; }
.preloader__mark {
  width: clamp(64px, 10vw, 96px);
  margin: 0 auto 1.2rem;
  animation: spin 2.4s var(--ease-out) infinite;
}
.preloader__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}
.preloader__word span { display: inline-block; animation: popIn 0.6s var(--ease-out) both; }
.preloader__word span:nth-child(2) { animation-delay: 0.12s; }
.preloader__word span:nth-child(3) { animation-delay: 0.24s; }
.preloader__hint { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.95rem; animation: popIn 0.6s 0.4s var(--ease-out) both; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ═══════════ SCROLL PROGRESS PILL ═══════════ */
.progress-pill {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -12px rgba(46, 69, 96, 0.35);
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.progress-pill.on { opacity: 1; transform: scale(1); }
.progress-pill img { width: 30px; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 1rem; left: 50%; z-index: 100;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2rem));
  display: flex; align-items: center; gap: 2rem;
  padding: 0.55rem 0.65rem 0.55rem 1.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 12px 32px -18px rgba(46,69,96,0.35);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.nav--hidden { transform: translate(-50%, -140%); }
.nav__logo { display: flex; align-items: center; gap: 0.55rem; }
.nav__mark { width: 34px; transition: transform 0.6s var(--ease-out); }
.nav__logo:hover .nav__mark { transform: rotate(120deg); }
.nav__word { height: 17px; width: auto; }
.nav__links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 500; font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--ink); background: var(--cream); }
.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.35s var(--ease-out), top 0.35s;
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger.open span:first-child { top: 20px; transform: rotate(45deg); }
.nav__burger.open span:last-child { top: 20px; transform: rotate(-45deg); }

.mobmenu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--cream);
  display: grid; place-content: center; gap: 0.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.mobmenu.open { opacity: 1; pointer-events: auto; }
.mobmenu__links { display: grid; gap: 0.4rem; text-align: center; }
.mobmenu__links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color 0.2s;
}
.mobmenu.open .mobmenu__links a { opacity: 1; transform: none; }
.mobmenu__links a:hover { color: var(--terra); }
.mobmenu.open .mobmenu__links a:nth-child(1) { transition-delay: 0.08s; }
.mobmenu.open .mobmenu__links a:nth-child(2) { transition-delay: 0.14s; }
.mobmenu.open .mobmenu__links a:nth-child(3) { transition-delay: 0.2s; }
.mobmenu.open .mobmenu__links a:nth-child(4) { transition-delay: 0.26s; }
.mobmenu.open .mobmenu__links a:nth-child(5) { transition-delay: 0.32s; }
.mobmenu__foot { text-align: center; margin-top: 2rem; color: var(--ink-soft); }

/* ═══════════ LANGUAGE TOGGLE ═══════════ */
.langtoggle {
  display: inline-flex;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.langtoggle button {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-out);
}
.langtoggle button:hover { color: var(--ink); }
.langtoggle button:active { transform: scale(0.94); }
.langtoggle button.active {
  background: var(--ink);
  color: var(--cream);
}
.langtoggle--menu { margin: 2rem auto 0; }
.langtoggle--menu button { padding: 0.5rem 1.2rem; font-size: 1rem; }

/* ═══════════ KOREAN TYPOGRAPHY ═══════════ */
html[lang="ko"] body,
html[lang="ko"] .btn,
html[lang="ko"] input,
html[lang="ko"] textarea {
  font-family: "Noto Sans KR", "Outfit", sans-serif;
}
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3,
html[lang="ko"] .preloader__word,
html[lang="ko"] .marquee__item,
html[lang="ko"] .svc__index,
html[lang="ko"] .pstep__num,
html[lang="ko"] .stat__num,
html[lang="ko"] .book figcaption strong,
html[lang="ko"] .book__moretext,
html[lang="ko"] .book__fallback,
html[lang="ko"] .contact__mail {
  font-family: "Jua", "Fredoka", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
html[lang="ko"] .hero__title { font-size: clamp(2.5rem, 6.8vw, 5.6rem); line-height: 1.16; }
html[lang="ko"] .section-head__title { line-height: 1.2; }
html[lang="ko"] .manifesto__text { font-weight: 400; line-height: 1.55; font-size: clamp(1.45rem, 3.4vw, 2.5rem); }
html[lang="ko"] .hero__sub p { word-break: keep-all; }
html[lang="ko"] p, html[lang="ko"] .pstep__card p { word-break: keep-all; }
html[lang="ko"] .pstep__who { letter-spacing: 0.02em; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  font-family: var(--font-body);
  transition: transform 0.2s var(--ease-out), background 0.25s, color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--solid {
  background: var(--ink); color: var(--cream);
  box-shadow: 0 14px 26px -14px rgba(46,69,96,0.55);
}
.btn--solid:hover { background: var(--blue-deep); }
.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .btn__dot { transform: scale(1.7); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 0 4rem;
  overflow: clip;
}
.hero__banner {
  position: absolute; top: 0; left: 0; z-index: 0;
  width: 100%;
  height: clamp(300px, 34vw, 480px);
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}
.hero__scrim {
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 100%;
  height: clamp(340px, 38vw, 540px);
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(249,241,240,0) 30%, var(--cream) 92%),
    linear-gradient(100deg, var(--cream) 6%, rgba(249,241,240,0.72) 30%, rgba(249,241,240,0) 58%);
}
.hero__inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); width: 100%; position: relative; z-index: 2; }

.hero__title {
  font-size: clamp(2.9rem, 7.6vw, 6.4rem);
  font-weight: 600;
  color: var(--ink);
  max-width: 17ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.04em; }
.hero__title .line > * , .hero__title .line { /* inner spans injected by JS */ }
.hero__title .scribble { position: relative; color: var(--terra-deep); white-space: nowrap; }
.hero__title .scribble::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.16em;
  background: var(--yellow);
  border-radius: 999px;
  z-index: -1;
  transform: scaleX(0); transform-origin: left;
  animation: underline 0.7s 1.9s var(--ease-out) forwards;
}
body.no-motion .hero__title .scribble::after { animation: none; transform: none; }
@keyframes underline { to { transform: scaleX(1); } }

.hero__sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2rem;
  margin-top: 2.6rem;
}
.hero__sub p { max-width: 44ch; font-size: 1.13rem; color: var(--ink-soft); }
.hero__sub strong { color: var(--ink); font-weight: 600; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ═══════════ MARQUEE ═══════════ */
.partners { padding: 3.5rem 0 4.5rem; border-top: 1px solid var(--line); }
.partners__label {
  text-align: center; margin-bottom: 1.8rem;
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.marquee { overflow: clip; white-space: nowrap; }
.marquee__track {
  display: inline-flex; align-items: center; gap: 3.2rem;
  padding-right: 3.2rem;
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 600;
  color: var(--blue-deep);
  transition: color 0.3s;
}
.marquee__track:hover .marquee__item { color: var(--ink); }
.marquee__dot {
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--yellow); transform: rotate(45deg);
  flex-shrink: 0;
}
.marquee__dot--lg { width: 20px; height: 20px; border-radius: 7px; background: var(--terra); }

/* ═══════════ MANIFESTO ═══════════ */
.manifesto {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  position: relative;
}
.manifesto__inner { max-width: 900px; margin: 0 auto; }
.manifesto__kicker {
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2.2rem;
}
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 2.9rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.manifesto__text .mword { opacity: 0.18; transition: opacity 0.3s; }
body.no-motion .manifesto__text .mword { opacity: 1; }
/* ═══════════ SECTION HEADS ═══════════ */
.section-head { padding: 0 var(--pad-x); max-width: 1280px; margin: 0 auto 3.5rem; }
.section-head__kicker {
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terra-deep);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-head__kicker::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--terra);
}
.section-head__title {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  color: var(--ink);
}
.section-head__sub { margin-top: 1.4rem; max-width: 56ch; color: var(--ink-soft); font-size: 1.1rem; }

/* ═══════════ SERVICES ═══════════ */
.services { padding: clamp(6rem, 12vh, 9rem) 0; }
.services__list { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad-x); display: grid; }
.svc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.2rem, 5vh, 3.6rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__index {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--blue);
  align-self: start;
  padding-top: 0.5rem;
}
.svc__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 0.8rem; transition: color 0.3s; }
.svc:hover .svc__title { color: var(--terra-deep); }
.svc__desc { color: var(--ink-soft); max-width: 58ch; font-size: 1.06rem; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.svc__tags li {
  font-size: 0.85rem; font-weight: 500;
  padding: 0.35rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s;
}
.svc:hover .svc__tags li { background: var(--cream-soft); }
.svc__tags li:hover { transform: translateY(-3px); background: var(--yellow) !important; color: var(--ink); border-color: transparent; }
.svc__art { width: clamp(110px, 14vw, 190px); flex-shrink: 0; }
.svc__art .draw-path { stroke-dasharray: 600; stroke-dashoffset: 600; }
.svc.in-view .draw-path { animation: draw 1.4s var(--ease-out) forwards; }
.svc__art .pop { opacity: 0; transform: scale(0); transform-origin: center; transform-box: fill-box; }
.svc.in-view .pop { animation: popArt 0.55s 0.9s var(--ease-out) forwards; }
.svc.in-view .pop:nth-of-type(3) { animation-delay: 1.05s; }
.svc.in-view .pop:nth-of-type(4) { animation-delay: 1.2s; }
body.no-motion .svc__art .draw-path { stroke-dashoffset: 0; }
body.no-motion .svc__art .pop { opacity: 1; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popArt { from { opacity: 0; transform: scale(0); } 70% { transform: scale(1.25); } to { opacity: 1; transform: scale(1); } }

/* ═══════════ WORK / SHELF ═══════════ */
.work { position: relative; }
.work__pin {
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: clip;
  padding: 5rem 0 3.5rem;
  background: var(--cream-soft);
  border-radius: var(--r-lg);
}
.section-head--overlay { margin-bottom: 2.5rem; width: 100%; position: relative; }

.work__track {
  display: flex; gap: clamp(1.4rem, 3vw, 2.6rem);
  padding: 1rem var(--pad-x) 2rem;
  width: max-content;
  will-change: transform;
}
.book { width: clamp(200px, 22vw, 300px); flex-shrink: 0; }
.book__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 24px 44px -22px rgba(46, 69, 96, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.book:hover .book__cover { transform: translateY(-10px) rotate(-1.4deg); box-shadow: 0 34px 54px -22px rgba(46,69,96,0.55); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
}
.book__fallback {
  display: none;
  position: absolute; inset: 0;
  padding: 1.4rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.3rem; line-height: 1.25;
  color: var(--paper);
  align-items: flex-end;
}
.book--noimg img { display: none; }
.book--noimg .book__fallback { display: flex; }
.book figcaption { margin-top: 1rem; display: grid; gap: 0.15rem; }
.book figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.book figcaption span { font-size: 0.88rem; color: var(--ink-soft); }

.book--more { display: grid; }
.book__morecard {
  aspect-ratio: 2 / 3;
  border-radius: var(--r-md);
  border: 2px dashed var(--blue);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.6rem;
  transition: background 0.3s, border-color 0.3s;
}
.book__morecard:hover { background: var(--paper); border-color: var(--terra); }
.book__moretext { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1.15; color: var(--blue-deep); }
.book__morearrow { font-size: 2rem; color: var(--terra-deep); align-self: flex-end; }

.work__progress {
  width: min(420px, 60%);
  height: 4px; border-radius: 4px;
  background: var(--line);
  margin: 0.5rem auto 0;
  overflow: hidden;
}
.work__progress span { display: block; width: 100%; height: 100%; background: var(--terra); border-radius: inherit; transform: scaleX(0); transform-origin: left; }

/* ═══════════ PROCESS ═══════════ */
.process { padding: clamp(6rem, 14vh, 10rem) 0 4rem; position: relative; }
.process__rail {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem var(--pad-x) 3rem;
}
.process__line {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--pad-x) + 34px);
  width: 10px;
}
.process__line svg { height: 100%; width: 100%; }
#processPath { stroke-dasharray: 1000; stroke-dashoffset: 1000; opacity: 0.85; }
body.no-motion #processPath { stroke-dashoffset: 0; }

.process__steps { display: grid; gap: clamp(2rem, 5vh, 3.2rem); }
.pstep { display: grid; grid-template-columns: 68px 1fr; gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.pstep__num {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--blue-deep);
  position: relative; z-index: 2;
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.35s var(--ease-out);
}
.pstep.active .pstep__num { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: scale(1.08); }
.pstep--qa .pstep__num { border-color: var(--terra); color: var(--terra-deep); }
.pstep--qa.active .pstep__num { background: var(--terra-deep); border-color: var(--terra-deep); color: var(--cream); }

.pstep__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 18px 34px -24px rgba(46, 69, 96, 0.35);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.pstep.active .pstep__card { transform: translateX(6px); box-shadow: 0 26px 44px -24px rgba(46,69,96,0.42); }
.pstep__card h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.pstep__card h3 em {
  font-style: normal;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink);
  padding: 0.28rem 0.65rem; border-radius: 999px;
}
.pstep__card p { color: var(--ink-soft); font-size: 1.02rem; }
.pstep__who {
  display: inline-block; margin-top: 0.9rem;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-deep);
}
/* ═══════════ PEOPLE ═══════════ */
.people { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: clamp(6rem, 12vh, 9rem) 0; }
.people .section-head__title { color: var(--cream); }
.people .section-head__kicker { color: var(--yellow); }
.people .section-head__kicker::before { background: var(--yellow); }
.people__inner { max-width: 1280px; margin: 0 auto; }
.people__grid {
  padding: 0 var(--pad-x);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.people__lede { color: rgba(249, 241, 240, 0.75); font-size: 1.15rem; max-width: 38ch; }
.people__logos { display: grid; gap: 0; }
.people__logos li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(249, 241, 240, 0.14);
  transition: padding-left 0.35s var(--ease-out);
}
.people__logos li:first-child { border-top: 1px solid rgba(249, 241, 240, 0.14); }
.people__logos li:hover { padding-left: 0.8rem; }
.people__logos strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--cream); }
.people__logos li:hover strong { color: var(--yellow); }
.people__logos span { font-size: 0.9rem; color: rgba(249, 241, 240, 0.55); text-align: right; }

.stats {
  margin-top: clamp(3.5rem, 8vh, 6rem);
  padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat { border-top: 2px solid rgba(249, 241, 240, 0.2); padding-top: 1.2rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--yellow);
  display: block; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat:nth-child(2) .stat__num { color: var(--blue); }
.stat:nth-child(3) .stat__num { color: var(--terra); }
.stat:nth-child(4) .stat__num { color: var(--cream); }
.stat__label { display: block; margin-top: 0.5rem; color: rgba(249, 241, 240, 0.65); font-size: 0.95rem; }

/* ═══════════ CONTACT ═══════════ */
.contact { padding: clamp(6rem, 13vh, 10rem) var(--pad-x); }
.contact__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__title { font-size: clamp(2.3rem, 5vw, 4rem); color: var(--ink); margin-bottom: 1.4rem; }
.contact__sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 42ch; margin-bottom: 2rem; }
.contact__mail {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--blue-deep);
  display: inline-block;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 0.15rem;
  transition: color 0.25s, border-color 0.25s;
}
.contact__mail:hover { color: var(--terra-deep); border-color: var(--terra); }
.cform {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 30px 60px -35px rgba(46, 69, 96, 0.4);
  display: grid; gap: 1.4rem;
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cform__field { display: grid; gap: 0.45rem; }
.cform__field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.cform__field input[type="text"],
.cform__field input[type="email"],
.cform__field textarea {
  font: inherit; color: var(--ink);
  background: var(--cream-soft);
  border: 1.5px solid transparent;
  border-radius: 0.9rem;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
  width: 100%;
  resize: vertical;
}
.cform__field input::placeholder, .cform__field textarea::placeholder { color: #a5b1bf; }
.cform__field input:focus, .cform__field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--paper);
  transform: translateY(-1px);
}
.cform__field.invalid input, .cform__field.invalid textarea { border-color: var(--terra-deep); }
.cform__err { display: none; font-size: 0.85rem; color: var(--terra-deep); }
.cform__field.invalid .cform__err { display: block; }

.cform__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 500; font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.chip:hover span { border-color: var(--blue); color: var(--ink); }
.chip input:checked + span {
  background: var(--ink); color: var(--cream);
  border-color: var(--ink);
  transform: scale(1.04);
}
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.cform__submit { justify-self: start; padding: 1rem 2rem; }
.cform__ok {
  background: #e8f3e4;
  border: 1px solid #b9d9ad;
  color: #3e6b34;
  border-radius: 0.9rem;
  padding: 0.9rem 1.2rem;
  font-weight: 500;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--ink); color: var(--cream);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding-top: clamp(3rem, 7vh, 5rem);
  overflow: clip;
}
.marquee--footer .marquee__item {
  font-size: clamp(4rem, 12vw, 10rem);
  color: transparent;
  -webkit-text-stroke: 2px rgba(249, 241, 240, 0.35);
  transition: color 0.4s;
}
.marquee--footer .marquee__track:hover .marquee__item { color: rgba(249, 241, 240, 0.9); -webkit-text-stroke-color: transparent; }
.footer__grid {
  max-width: 1280px; margin: 3.5rem auto 0;
  padding: 0 var(--pad-x) 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}
.footer__lockup { height: 54px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { color: rgba(249, 241, 240, 0.6); font-size: 0.98rem; }
.footer__nav { display: grid; gap: 0.55rem; }
.footer__nav a, .footer__contact a { color: rgba(249, 241, 240, 0.75); transition: color 0.2s, padding-left 0.3s var(--ease-out); }
.footer__nav a:hover { color: var(--yellow); padding-left: 0.4rem; }
.footer__contact { display: grid; gap: 0.55rem; justify-items: start; }
.footer__contact a { font-weight: 600; border-bottom: 2px solid var(--terra); }
.footer__contact a:hover { color: var(--yellow); }
.footer__contact span { color: rgba(249, 241, 240, 0.45); font-size: 0.9rem; }
.footer__legal {
  border-top: 1px solid rgba(249, 241, 240, 0.12);
  padding: 1.4rem var(--pad-x) 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(249, 241, 240, 0.45);
  max-width: 900px; margin: 0 auto;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .people__grid { grid-template-columns: 1fr; }
  .people__lede { max-width: 60ch; }
  .contact__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .hero { padding-top: 7rem; }
  .hero__sub { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .svc { grid-template-columns: 1fr; gap: 1.2rem; }
  .svc__index { padding-top: 0; }
  .svc__art { order: -1; width: 96px; }
  .cform__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .process__line { left: calc(var(--pad-x) + 26px); }
  .pstep { grid-template-columns: 52px 1fr; }
  .pstep__num { width: 52px; height: 52px; font-size: 0.95rem; }
}

/* mobile: shelf becomes native swipe scroll */
@media (max-width: 900px) {
  .work__pin { min-height: 0; }
  .work__track {
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .book { scroll-snap-align: center; }
  .work__progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
