/* ============================================================
   Moody. — Web Design Studio · "Mood Swings" edition
   Every chapter swings to a new mood (mustard / cream / ink),
   and the scroll does tricks: the wordmark scatters, the
   manifesto inks in word by word, the work gallery travels
   sideways, service rows slide in, the process line draws
   itself. Scrub engine lives in js/main.js.
   ============================================================ */

:root {
  --mustard: #F0C75E; /* exact logo background */
  --mustard-deep: #D9A82E;
  --ink: #191714;
  --ink-soft: #4E483D;
  --bg-ink: #171310;
  --cream: #F5EDDA;
  --cream-soft: #C9BEA4;
  --paper: #FFFDF6;

  --font-sketch: "Cabin Sketch", cursive;
  --font-body: "Archivo", -apple-system, sans-serif;
  --font-hand: "Caveat", cursive;

  --wobble: 255px 18px 225px 18px / 18px 225px 18px 255px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  /* clip (not hidden): contains the rotated marquee & bleeding titles
     without creating a scroll container, which would break sticky pins */
  overflow-x: clip;
}

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

h1, h2, h3 { line-height: 1.1; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

.hand {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--soft, var(--ink-soft));
}

/* brand dots (Cabin Sketch's "." is a hatched square — use solid discs) */
.mustard-dot, .ink-dot, .nav__dot, .hero__dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--ink);
  color: transparent;
  overflow: hidden;
}
.mustard-dot { background: var(--mustard); }
.nav__dot { background: var(--mustard); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* section basics */
.section-kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--kicker, var(--ink-soft));
  margin-bottom: 0.4rem;
}
.section-head { margin-bottom: 3rem; }
.section-title {
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: 1;
  white-space: nowrap;
  width: max-content;
  color: var(--title, var(--ink));
}

/* generic reveal (studio / contact bits) */
/* cleaner line wrapping: balance evens out line lengths so no word
   pokes past the rag; short paragraphs qualify (Chromium applies
   balance up to ~6 lines — beyond that it falls back, so mobile
   gets `pretty` instead). No-ops where unsupported. */
.manifesto__text,
.hero__line,
.studio__lede,
.contact__kicker,
.studio__body p,
.ride__info p,
.svc-row p,
.tl-step p { text-wrap: balance; }
@media (max-width: 700px) {
  .studio__body p,
  .ride__info p,
  .tl-step p { text-wrap: pretty; }
}
/* one sentence per line: \n in the copy becomes a real line break */
.tl-step p,
.studio__body p { white-space: pre-line; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.draw path {
  fill: none;
  stroke: var(--draw, var(--ink));
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ============================================================
   NAV — ink bar over everything
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4vw;
  background: color-mix(in srgb, var(--bg-ink) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--cream);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--mustard); padding: 0.6rem 4vw; }

.nav__logo {
  font-family: "Cabin Sketch", cursive; /* the wordmark never switches */
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.01em;
}

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.5rem 0.15rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: -4%;
  right: 104%;
  top: 52%;
  height: 3px;
  background: var(--mustard);
  border-radius: 3px 8px 4px 7px;
  transform: rotate(-2deg);
  transition: right 0.22s ease;
}
.nav__links a:hover::after { right: -4%; }

.nav__right { display: flex; align-items: center; gap: 0.8rem; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: transparent;
  border: 2px solid var(--cream);
  border-radius: 30px 14px 26px 16px / 16px 26px 14px 30px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lang-toggle:hover { background: rgba(245, 237, 218, 0.12); }
.lang-toggle i { font-style: normal; opacity: 0.35; }
.lang-toggle__opt { opacity: 0.45; transition: opacity 0.2s ease; }
.lang-toggle__opt.is-on { opacity: 1; box-shadow: inset 0 -4px 0 var(--mustard); }

.btn {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  padding: 0.65rem 1.4rem;
  border: 2.5px solid var(--ink);
  border-radius: var(--wobble);
  background: var(--mustard);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 3px 3px 0 rgba(25, 23, 20, 0.55);
}
.btn:hover {
  background: var(--ink);
  color: var(--mustard);
  transform: translate(-1px, -1px) rotate(-0.5deg);
  box-shadow: 5px 5px 0 rgba(25, 23, 20, 0.35);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(25, 23, 20, 0.55); }

/* ============================================================
   HERO — mustard, pinned; the letters scatter as you leave
   ============================================================ */
.hero {
  height: 175svh;
  background-color: var(--mood-bg, var(--mustard));
  transition: background-color 1.1s ease;
}
.hero__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; text-align: center; padding: 0 5vw; }

/* ---------- the journey to success (looping landscape) ----------
   Palette lifted from the reference film: warm tan, olive greens,
   cream clouds, ochre sun — painted texture via #painty turbulence. */
.journey {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(38svh, 400px);
  pointer-events: none;
  z-index: 1;
}
.journey__scene {
  width: 100%;
  height: 100%;
  display: block;
  animation: j-weave 0.4s steps(2, end) infinite; /* film gate weave */
}

/* old-film overlay: grain + jumping projector scratch + vignette */
.journey__film {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 120% at 50% 30%, transparent 62%, rgba(25, 23, 20, 0.16) 100%);
}
.journey__film::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.11;
  animation: j-grain 0.5s steps(3) infinite;
}
.journey__film::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(25, 23, 20, 0.3);
  animation: j-scratch 1.7s steps(5) infinite;
}
@keyframes j-grain {
  0% { background-position: 0 0; }
  33% { background-position: -40px 25px; }
  66% { background-position: 30px -35px; }
  100% { background-position: 0 0; }
}
@keyframes j-scratch {
  0% { left: 22%; opacity: 0; }
  10% { opacity: 0.5; }
  35% { left: 24%; opacity: 0; }
  50% { left: 67%; opacity: 0.4; }
  70% { left: 65%; opacity: 0; }
  100% { left: 41%; opacity: 0; }
}
@keyframes j-weave {
  from { transform: translateY(0); }
  to { transform: translateY(0.9px); }
}
@keyframes j-look {
  0%, 45% { transform: translateX(0); }
  50%, 95% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.j-sun > circle { fill: var(--cream); stroke: var(--ink); stroke-width: 3.5; }
.j-sunface circle { fill: var(--ink); }
.j-sunface .j-smile, .j-face .j-smile { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.j-sunrays path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.j-sunrays {
  animation: j-spin 46s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.j-clouds { animation: j-scroll 80s linear infinite; }

.j-birds path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.j-birds { animation: j-scroll 55s linear infinite; }

/* vintage print palette: cream and sepia bands, ink everywhere */
.j-hill--far { fill: #E8DAB2; stroke: var(--ink); stroke-width: 3; }
.j-hill--mid { fill: #D9C9A3; stroke: var(--ink); stroke-width: 3; }
.j-hill--near { fill: #C4B084; stroke: var(--ink); stroke-width: 3; }
.j-halftone { opacity: 0.12; pointer-events: none; }
.j-hill, .j-trees { filter: url(#painty); }
.j-trees { animation: j-scroll 24s linear infinite; }

.j-rail { stroke: var(--ink); stroke-width: 4; }
.j-ties {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-dasharray: 10 42;
  animation: j-dash 0.9s linear infinite;
}

.j-sign line { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.j-sign path { fill: var(--cream); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.j-signtext { font-family: var(--font-hand); font-size: 26px; fill: var(--ink); }
.j-sign { animation: j-sway 5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 28% 100%; }

.j-train { animation: j-bob 0.45s steps(2, end) infinite alternate; }
.j-eye { fill: var(--cream); stroke: var(--ink); stroke-width: 2; }
.j-pupil { fill: var(--ink); animation: j-look 4s steps(2, end) infinite; }
.j-car { fill: var(--cream); stroke: var(--ink); stroke-width: 3.5; }
.j-stripe { fill: var(--mustard-deep); }
.j-cab, .j-boiler { fill: var(--ink); stroke: var(--ink); stroke-width: 3; }
.j-chimney { fill: var(--ink); }
.j-window { fill: var(--mustard); }
.j-link { stroke: var(--ink); stroke-width: 4; }
.j-wheel circle { fill: var(--cream); stroke: var(--ink); stroke-width: 4; }
.j-wheel line { stroke: var(--ink); stroke-width: 3; }
.j-wheel {
  animation: j-spin 0.8s steps(8) infinite; /* choppy, like 12fps cels */
  transform-box: fill-box;
  transform-origin: center;
}
.j-smoke {
  fill: var(--cream);
  stroke: var(--ink);
  stroke-width: 2.5;
  opacity: 0;
  animation: j-puff 2.4s ease-out var(--pd, 0s) infinite;
}

@keyframes j-scroll { to { transform: translateX(-1600px); } }
@keyframes j-dash { to { stroke-dashoffset: -52; } }
@keyframes j-spin { to { transform: rotate(360deg); } }
@keyframes j-bob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes j-sway { from { transform: rotate(-1.5deg); } to { transform: rotate(2deg); } }
@keyframes j-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(0.7); }
  18% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(-30px, -52px) scale(1.9); }
}

@media (max-width: 700px) {
  .journey { height: 30svh; }
}

.hero__tick {
  width: 72px;
  height: 5px;
  background: var(--ink);
  border-radius: 4px;
  margin: 0 auto 2.2rem;
}

.hero__logo {
  font-family: var(--font-sketch); /* catchphrase follows the language */
  font-weight: 700;
  font-size: clamp(3rem, 9.5vw, 8rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--ink);
}
html[lang="ko"] .hero__logo { font-weight: 400; }
.ltr { display: inline-block; will-change: transform, opacity; }

.hero__sub {
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__line {
  margin-top: 3.2rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
}
.swap {
  position: relative;
  display: inline-block;
  padding: 0.1em 0.55em;
  font-weight: 700;
  min-width: 5.2ch;
}
.swap__word { position: relative; z-index: 1; display: inline-block; transition: opacity 0.25s ease, transform 0.25s ease; }
.swap__word.out { opacity: 0; transform: translateY(8px); }
.swap__circle { position: absolute; inset: -22% -8%; width: 116%; height: 144%; overflow: visible; }
.swap__circle path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }

.hero__note {
  margin-top: 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.hero__arrow { width: 34px; height: 52px; }

/* ---------- the moodscape: one full scene per mood ---------- */
.moodscape { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mood-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1s ease, transform 1.2s ease;
}
.mood-scene.is-on { opacity: 1; transform: scale(1); }

.mood-scene .mi {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mood-scene .mf { fill: var(--ink); stroke: none; }
.mood-scene .mc { fill: var(--cream); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
/* big characters: complete closed shapes, heavy outline, cream body */
.mood-scene .mo { fill: var(--cream); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.mood-scene .mo2 { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.m-swing {
  animation: m-swing 5.5s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
@keyframes m-swing {
  from { transform: rotate(-2.5deg); }
  to { transform: rotate(2.5deg); }
}
.m-q { font-family: var(--font-sketch); font-size: 76px; fill: var(--ink); }

.m-bob { animation: dd-float var(--dur, 6s) ease-in-out infinite alternate; transform-box: fill-box; }
.m-sway {
  animation: m-sway 3.5s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.m-spin-slow { animation: j-spin 22s linear infinite; transform-box: fill-box; transform-origin: center; }
.m-flick {
  animation: m-flick 0.3s steps(2) infinite alternate;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
@keyframes dd-float {
  from { transform: translateY(-9px) rotate(-3deg); }
  to { transform: translateY(11px) rotate(3deg); }
}
@keyframes m-sway {
  from { transform: rotate(-5deg); }
  to { transform: rotate(6deg); }
}
@keyframes m-flick {
  from { transform: scaleY(0.92); }
  to { transform: scaleY(1.08); }
}

/* ============================================================
   MARQUEE — ink band, velocity-reactive (JS drives transform)
   ============================================================ */
.marquee {
  background: var(--bg-ink);
  overflow: hidden;
  padding: 1.1rem 0;
  transform: rotate(-1.2deg) scale(1.04);
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  white-space: nowrap;
  color: var(--cream);
}
.marquee__track i { font-style: normal; font-size: 1.2rem; color: var(--mustard); }

/* ============================================================
   MANIFESTO — cream, pinned; words ink in with scroll
   ============================================================ */
.manifesto { height: 230svh; background: var(--cream); --soft: var(--ink-soft); }
.manifesto__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 6vw;
  overflow: hidden;
}
.manifesto__text {
  max-width: 1000px;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.45;
}
.manifesto__text .w {
  color: rgba(25, 23, 20, 0.16);
  transition: color 0.25s ease;
}
.manifesto__text .w.on { color: var(--ink); }
.manifesto__hand { margin-top: 1.8rem; }

/* ============================================================
   THE RIDE — ink; vertical scroll drives horizontal travel
   ============================================================ */
.ride {
  height: 560svh;
  background: var(--bg-ink);
  color: var(--cream);
  --soft: var(--cream-soft);
  --kicker: var(--mustard);
  --title: var(--cream);
  border-top: 3px solid var(--mustard);
}
.ride__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ride__head {
  position: absolute;
  top: 5.2rem;
  left: 4vw;
  right: 4vw;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  z-index: 2;
}
.ride__title {
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1;
  color: var(--cream);
}
.ride__meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.ride__count {
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--mustard);
  letter-spacing: 0.08em;
}
.ride__hand { transform: rotate(-2deg); }

.ride__track {
  display: flex;
  align-items: center;
  gap: 7vw;
  padding: 0 10vw;
  width: max-content;
  will-change: transform;
  margin-top: 4rem;
}
.ride__card {
  position: relative;
  width: min(66vw, 860px);
  flex: none;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.ride__num {
  position: absolute;
  top: -1.4em;
  left: -0.25em;
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: clamp(5rem, 9vw, 8.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 0.02em rgba(245, 237, 218, 0.35);
  z-index: 0;
  pointer-events: none;
}
.ride__info { position: relative; z-index: 1; }
.ride__mood {
  display: inline-block;
  color: var(--mustard);
  transform: rotate(-2deg);
  margin-bottom: 0.3rem;
}
.ride__info h3 {
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  margin-bottom: 0.7rem;
  color: var(--cream);
}
.ride__info p { color: var(--cream-soft); font-size: 1.12rem; max-width: 40ch; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.tags li {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.95rem;
  border: 2px solid var(--cream-soft);
  color: var(--cream);
  border-radius: 30px 14px 26px 16px / 16px 26px 14px 30px;
}

.ride__progress {
  position: absolute;
  left: 4vw;
  right: 4vw;
  bottom: 2.6rem;
  height: 4px;
  background: rgba(245, 237, 218, 0.18);
  border-radius: 4px;
  overflow: hidden;
}
.ride__progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--mustard);
  border-radius: 4px;
  transform-origin: left center;
  transform: scaleX(0);
}

/* browser-frame mockup */
.mock {
  position: relative;
  z-index: 1;
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--m-paper, #fff);
  box-shadow: 9px 11px 0 rgba(240, 199, 94, 0.22);
}
.mock__bar {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}
.mock__bar i { width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; }
.mock__bar i:first-child { background: var(--mustard); }
.mock__body { padding: 5% 6% 6%; background: var(--m-paper, #fff); }
.mock__nav { display: flex; align-items: center; gap: 4%; margin-bottom: 6%; }
.mock__nav b { width: 12%; height: 12px; border-radius: 4px; background: var(--m-ink); }
.mock__nav u { width: 8%; height: 7px; border-radius: 4px; background: var(--m-soft); }
.mock__nav s { margin-left: auto; width: 15%; height: 14px; border-radius: 8px; background: var(--m-ink); }
.mock__hero { border-radius: 10px; padding: 7% 6%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 6%; }
.mock__hero em { display: block; width: 72%; height: 13px; border-radius: 5px; }
.mock__hero s { display: block; width: 26%; height: 16px; border-radius: 9px; margin-top: 6px; }
.mock__cols { display: flex; gap: 4%; }
.mock__cols span { flex: 1; height: 52px; border-radius: 8px; background: var(--m-soft, #eee); }

/* ============================================================
   SERVICES — mustard; big index rows slide in from the sides
   ============================================================ */
.services { background: var(--mustard); padding: 7rem 0; border-top: 3px solid var(--ink); }
.services__inner { max-width: 1340px; margin: 0 auto; padding: 0 4vw; overflow: hidden; }
.svc-rows { border-bottom: 3px solid var(--ink); }
.svc-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0.5rem;
  border-top: 3px solid var(--ink);
  will-change: transform, opacity;
}
.svc-row__num {
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--mustard-deep);
  -webkit-text-stroke: 1px var(--ink);
}
.svc-row h3 {
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 4rem);
}
.svc-row p { font-size: 1.15rem; font-weight: 600; color: var(--ink-soft); text-align: right; max-width: 34ch; }
.svc-row:hover { background: rgba(25, 23, 20, 0.05); }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 64px 1fr; }
  .svc-row p { grid-column: 2; text-align: left; }
  .svc-row__num { font-size: 1.6rem; }
}

/* ============================================================
   PROCESS — cream; the rail draws itself down the page
   ============================================================ */
.process { background: var(--cream); padding: 7rem 0; --soft: var(--ink-soft); border-top: 3px solid var(--ink); }
.process__inner { max-width: 1100px; margin: 0 auto; padding: 0 4vw; overflow: hidden; }

.timeline { position: relative; padding-left: 74px; margin-top: 1rem; }
.timeline__rail {
  position: absolute;
  left: 18px;
  top: 0;
  width: 40px;
  height: 100%;
}
.timeline__rail path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.timeline__steps { list-style: none; display: flex; flex-direction: column; gap: 4.2rem; padding: 1rem 0 2rem; }
.tl-step { position: relative; display: flex; gap: 1.6rem; align-items: flex-start; max-width: 640px; }
.tl-step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-left: -74px;
  margin-right: 1rem;
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: 1.8rem;
  border: 3px solid var(--ink);
  border-radius: 46% 54% 52% 48% / 54% 46% 54% 46%;
  background: var(--cream);
  transition: background 0.35s ease, transform 0.35s ease;
}
.tl-step.lit .tl-step__num { background: var(--mustard); transform: rotate(-6deg) scale(1.08); }
.tl-step h3 { font-size: 1.65rem; margin-bottom: 0.4rem; }
.tl-step p { font-size: 1.06rem; color: var(--ink-soft); }
.tl-step > div { opacity: 0.35; transform: translateX(18px); transition: opacity 0.4s ease, transform 0.4s ease; }
.tl-step.lit > div { opacity: 1; transform: none; }

/* ============================================================
   STUDIO — ink breather
   ============================================================ */
.studio {
  background: var(--bg-ink);
  color: var(--cream);
  padding: 7rem 0;
  --soft: var(--cream-soft);
  --kicker: var(--mustard);
  --title: var(--cream);
  --draw: var(--mustard);
  border-top: 3px solid var(--mustard);
}
.studio__inner { max-width: 1100px; margin: 0 auto; padding: 0 4vw; overflow: hidden; }
.studio__body { max-width: 780px; font-size: 1.12rem; }
.studio__lede { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; margin-bottom: 1.4rem; white-space: pre-line; }
html[lang="ko"] .studio__lede { word-break: keep-all; }
.studio__body > p:not(.studio__lede):not(.studio__hand) { color: var(--cream-soft); }
.studio__hand { margin-top: 1.8rem; position: relative; display: inline-block; }
.studio__underline { position: absolute; left: 0; bottom: -8px; width: 100%; height: 12px; overflow: visible; }

/* ============================================================
   CONTACT + FOOTER — mustard send-off, ink base
   ============================================================ */
.ending { position: relative; }
.contact {
  text-align: center;
  padding: 7rem 5vw 8rem;
  background: var(--mustard);
  border-top: 3px solid var(--ink);
  overflow: hidden;
}
.contact__kicker { display: block; font-weight: 600; font-size: 1.4rem; color: var(--ink-soft); margin-bottom: 1rem; }
.contact__mail {
  position: relative;
  display: inline-block;
  font-family: var(--font-sketch);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 1.05;
  color: var(--ink);
  --d: 0.1s;
}
.inquiry__email {
  text-align: center;
  margin-top: 0.2rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: rgba(25, 23, 20, 0.62);
}

/* ---------- inquiry form ---------- */
/* quiet, professional fields: small caps labels + thin underlines
   (the reference look) — the character stays in the headline/button */
.inquiry {
  max-width: 800px;
  margin: 4rem auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  --d: 0.25s;
}
.inquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 3rem; }
@media (max-width: 560px) { .inquiry__row { grid-template-columns: 1fr; } }
.inquiry__field { display: flex; flex-direction: column; gap: 0.55rem; }
.inquiry__field > span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(25, 23, 20, 0.7);
}
.inquiry input,
.inquiry textarea,
.pick__btn {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(25, 23, 20, 0.4);
  border-radius: 0;
  padding: 0.55rem 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.inquiry input:focus,
.inquiry textarea:focus,
.pick.open .pick__btn,
.pick__btn:focus-visible {
  border-bottom-color: var(--ink);
  box-shadow: 0 1.5px 0 var(--ink);
}
.inquiry input::placeholder,
.inquiry textarea::placeholder { color: rgba(25, 23, 20, 0.35); }
.inquiry textarea { resize: vertical; min-height: 120px; }

/* custom dropdown (native selects can't be styled) */
.pick { position: relative; }
.pick__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
}
.pick__caret {
  width: 18px;
  flex: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: transform 0.25s ease;
}
.pick.open .pick__caret { transform: rotate(180deg); }
.pick__list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(25, 23, 20, 0.2);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pick.open .pick__list { opacity: 1; transform: none; pointer-events: auto; }
.pick__list li {
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  transition: background 0.15s ease;
}
.pick__list li:hover { background: rgba(25, 23, 20, 0.07); }
.pick__list li.is-sel { font-weight: 700; }
.pick__list li.is-sel::after { content: " ✓"; float: right; }
.pick__label--ph { color: rgba(25, 23, 20, 0.38); }
.inquiry__other { margin-top: 0.7rem; }

/* hand-written inline validation (native bubbles are disabled) */
.inquiry__field.is-err input,
.inquiry__field.is-err textarea {
  border-bottom-color: #A03B2E;
  box-shadow: 0 1.5px 0 #A03B2E;
}
.inquiry__field > .field-err {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 500;
  color: #A03B2E;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0.15rem;
  transform: rotate(-0.8deg);
  align-self: flex-start;
}
html[lang="ko"] .inquiry__field > .field-err { font-size: 1.45rem; }
.inquiry__submit { align-self: center; margin-top: 0.4rem; font-size: 1.2rem; padding: 0.85rem 2.3rem; background: var(--ink); color: var(--mustard); box-shadow: 4px 4px 0 rgba(25, 23, 20, 0.3); }
.inquiry__submit:hover { background: var(--paper); color: var(--ink); }
.inquiry__note { text-align: center; font-size: 1.5rem; margin-top: -0.2rem; }

/* post-submit popup */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 6vw;
}
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(23, 19, 16, 0.55); }
.modal__card {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px 26px 18px 28px / 28px 18px 26px 20px;
  padding: 2.8rem 3.2rem 2.4rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 10px 12px 0 rgba(25, 23, 20, 0.4);
  animation: modal-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal__icon { width: 76px; height: 76px; margin: 0 auto 0.8rem; display: block; }
.modal__icon[hidden] { display: none; }
.modal__icon path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal__icon--warn path { stroke: #A03B2E; }
.modal__msg {
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom: 1.6rem;
  line-height: 1.35;
}
html[lang="ko"] .modal__msg { font-size: 2.1rem; }
.modal__close { font-size: 1rem; padding: 0.6rem 1.7rem; }
@keyframes modal-pop {
  from { transform: scale(0.75) rotate(-2.5deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.inquiry__trap { position: absolute; left: -9999px; }
.inquiry__submit:disabled { opacity: 0.6; cursor: wait; }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem 4vw;
  background: var(--bg-ink);
  color: var(--cream);
  border-top: 3px solid var(--ink);
}
.footer__logo { font-family: "Cabin Sketch", cursive; font-weight: 700; font-size: 1.6rem; }
.footer__note { font-size: 1rem; color: var(--cream-soft); }
.footer__top { font-weight: 600; font-size: 1.05rem; }
.footer__top:hover { color: var(--mustard); }

/* ============================================================
   SCROLL BADGE
   ============================================================ */
.scroll-badge {
  position: fixed;
  right: 2.2rem;
  bottom: 2.2rem;
  z-index: 40;
  width: 116px;
  height: 116px;
  display: none;
  pointer-events: none;
  background: var(--ink);
  border: 2.5px solid var(--cream);
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  box-shadow: 3px 4px 0 rgba(25, 23, 20, 0.35);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.scroll-badge.gone { opacity: 0; transform: translateY(14px); }
.scroll-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 10s linear infinite; }
.scroll-badge__ring text {
  font-family: "Caveat", cursive;
  font-size: 17px;
  font-weight: 600;
  fill: var(--mustard);
  letter-spacing: 1px;
}
.scroll-badge__arrow { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--mustard); }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (min-width: 1000px) and (min-height: 620px) { .scroll-badge { display: block; } }

/* ============================================================
   KOREAN (lang="ko") — Black Han Sans display, solid fills
   ============================================================ */
html[lang="ko"] {
  --font-sketch: "Black Han Sans", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Archivo", -apple-system, sans-serif;
  --font-hand: "Nanum Pen Script", "Caveat", cursive;
}
/* Korean wraps at word boundaries everywhere — never mid-word */
html[lang="ko"] body {
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
html[lang="ko"] .hand { font-size: 2rem; }
html[lang="ko"] .hero__sub { letter-spacing: 0.35em; text-indent: 0.35em; }
html[lang="ko"] .section-title,
html[lang="ko"] .ride__title,
html[lang="ko"] .ride__info h3,
html[lang="ko"] .svc-row h3,
html[lang="ko"] .contact__mail,
html[lang="ko"] .marquee__track span {
  font-weight: 400; /* Black Han Sans ships one (very heavy) weight */
  letter-spacing: 0.02em;
}
html[lang="ko"] .section-title { filter: url(#sketchy); transform: rotate(-1deg); transform-origin: left bottom; }
html[lang="ko"] .contact__mail { line-height: 1.2; filter: url(#sketchy); transform: rotate(-0.8deg); }
html[lang="ko"] .manifesto__text { line-height: 1.6; }

/* ============================================================
   REDUCED MOTION — scroll tricks flatten to a plain page
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero { height: auto; }
  .hero__pin { position: static; height: auto; min-height: 100svh; }
  .manifesto { height: auto; }
  .manifesto__pin { position: static; height: auto; padding: 6rem 6vw; }
  .manifesto__text .w { color: var(--ink) !important; }
  .ride { height: auto; }
  .ride__pin { position: static; height: auto; overflow: visible; padding: 6rem 0 4rem; }
  .ride__head { position: static; margin: 0 4vw 2rem; }
  .ride__track { flex-direction: column; width: auto; transform: none !important; padding: 0 4vw; gap: 4rem; margin-top: 0; }
  .ride__card { width: 100%; }
  .ride__progress { display: none; }
  .tl-step > div { opacity: 1; transform: none; }
  .tl-step.lit .tl-step__num, .tl-step__num { background: var(--cream); transform: none; }
  .svc-row { transform: none !important; opacity: 1 !important; }
  .scroll-badge__ring { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   SMALL SCREENS
   ============================================================ */
@media (max-width: 860px) {
  .ride__card { grid-template-columns: 1fr; width: 84vw; gap: 1rem; }
  .ride__card .mock { width: 68vw; }
  /* header joins the flow so it can't collide with the cards,
     and everything tightens so one full card fits the pin */
  .ride__pin { justify-content: flex-start; }
  .ride__head {
    position: static;
    margin: 4.6rem 6vw 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .ride__meta { align-items: flex-start; text-align: left; }
  .ride__title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .ride__hand { display: none; }
  .ride__count { font-size: 1.3rem; }
  .ride__track { margin-top: 1.4rem; gap: 10vw; padding: 0 8vw; }
  .ride__num { font-size: 4rem; top: -1.1em; }
  .ride__info p { font-size: 1rem; }
  .ride__info h3 { font-size: 1.9rem; margin-bottom: 0.4rem; }
  .tags { margin-top: 0.8rem; }
  .tags li { font-size: 0.85rem; padding: 0.3rem 0.8rem; }
  .ride__progress { display: none; }
}
@media (max-width: 700px) {
  .nav { padding: 0.7rem 4vw; }
  .nav.scrolled { padding: 0.55rem 4vw; }
  .nav__links { display: none; }
  .nav__logo { font-size: 1.5rem; }
  .nav__cta { font-size: 0.88rem; padding: 0.5rem 0.95rem; }
  .lang-toggle { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
  .section-title { font-size: clamp(2.6rem, 13vw, 4rem); white-space: normal; width: auto; }
  .timeline { padding-left: 60px; }
  .tl-step { gap: 0.8rem; }
  .tl-step__num { margin-left: -60px; margin-right: 0.3rem; width: 52px; height: 52px; font-size: 1.5rem; }
}
