/* JEONGDO — Pop theme layer (pop-v1)
   Loaded AFTER styles.css, by index.html only. styles.css is untouched, so legacy
   /privacy/* pages (.policy-shell) are unaffected. Hover/tilt use the individual
   `translate` / `rotate` properties so they never fight the scroll-reveal `transform`. */

:root {
  --pop: #fffbef; --lemon: #ffe066; --mint: #a8ecd9; --sky: #a9d2ff; --lilac: #d4c2ff;
  --peach: #ffbf9c; --coral: #ff6f4e; --edge: 2px solid #172e37; --hard: 6px 6px 0 #172e37;
}
body { background: var(--pop); }

/* Type: big, heavy, tight */
.hero h1, .section-heading h2, .section-intro h2, .process-header h2, .data-copy h2,
.about-layout h2, .contact-copy h2, .software-gateway h2, .area-card h3, .horizon-panel h3,
.process-grid h3, .wordmark, .footer-wordmark {
  font-weight: 900; letter-spacing: -.05em; line-height: 1.08;
}
.section-heading h2, .section-intro h2, .process-header h2, .data-copy h2, .about-layout h2 {
  font-size: clamp(38px, 5.6vw, 84px);
}
.type-muted { color: var(--ink); text-decoration: underline wavy var(--coral) 4px; text-underline-offset: .16em; text-decoration-skip-ink: none; }
.eyebrow, .section-eyebrow {
  display: inline-flex; width: fit-content; padding: 6px 14px; color: var(--ink);
  background: #fff; border: var(--edge); border-radius: 100px; font-size: 11px; font-weight: 900; letter-spacing: .1em;
}
.section-aside, .data-lead { color: #2c4651; }

/* Header + controls */
.site-header, .site-header.is-scrolled { background: var(--pop); border-bottom: var(--edge); box-shadow: none; }
.mark-symbol { border: var(--edge); border-radius: 50%; background: var(--lemon); color: var(--ink); }
.language-switch { border: var(--edge); background: #fff; }
.lang-btn.is-current { background: var(--ink); color: #fff; }
.header-contact { color: var(--ink); background: var(--lemon); border: var(--edge); border-radius: 100px; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; }
.header-contact:hover { background: var(--lemon); translate: -1px -1px; }
.menu-toggle { border: var(--edge); border-radius: 50%; }
.button {
  color: var(--ink); background: #fff; border: var(--edge); border-radius: 100px;
  box-shadow: 4px 4px 0 var(--ink); font-weight: 800; transition: translate .18s, box-shadow .18s;
}
.button:hover { transform: none; translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); background: #fff; border-color: var(--ink); }
.button-primary, .button-primary:hover { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--coral); }
.button-primary:hover { box-shadow: 7px 7px 0 var(--coral); }

/* Hero: bright burst background, dark panel so the ivory light glows */
.hero {
  background:
    radial-gradient(circle at 10% 16%, var(--mint) 0 8rem, transparent 8.1rem),
    radial-gradient(circle at 94% 92%, var(--peach) 0 11rem, transparent 11.1rem),
    radial-gradient(circle at 52% 6%, var(--lemon) 0 4rem, transparent 4.1rem), var(--pop);
  border-bottom: var(--edge);
}
.hero::before { display: none; }
.hero-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); padding-block: 72px 88px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 84px); letter-spacing: -.055em; }
.hero-title-accent { color: var(--ink); background: linear-gradient(transparent 60%, var(--lemon) 60%); width: fit-content; }
.hero-lead { color: #2c4651; font-weight: 500; }
.hero-visual-surface {
  background: #142f3a; border: var(--edge); border-radius: 30px; rotate: 1.4deg;
  box-shadow: 12px 12px 0 var(--coral);
}
.hero-visual-surface::before { border-color: rgba(255,255,255,.14); }
#way-main stop:nth-child(1) { stop-color: #6fb7b6; }
#way-main stop:nth-child(2) { stop-color: #2fb3bd; }
#way-main stop:nth-child(3) { stop-color: #6fa8e6; }
#way-under stop:nth-child(2) { stop-color: #6fa8e6; }
#way-aura stop:nth-child(1) { stop-color: #2b6f7a; }
#way-aura stop:nth-child(2) { stop-color: #142f3a; }
.way-nodes > circle { fill: #6fa8e6; }
.path-diagram g[fill="#4a7a80"] { fill: #8fb7bd; }
.map-tag { color: var(--ink); border: var(--edge); border-radius: 100px; padding: 8px 12px; font-size: 10px; font-weight: 900; box-shadow: 3px 3px 0 var(--ink); }
.map-tag-one { background: var(--lemon); rotate: -4deg; }
.map-tag-two { background: var(--mint); rotate: 3deg; }
.map-tag-three { background: var(--peach); rotate: -3deg; }
.hero-visual figcaption { margin-top: 22px; color: var(--ink); font-weight: 700; }

/* Direction: lemon statement band with a slanted top edge, loop stickers */
.intro-section {
  background: var(--lemon); border-bottom: var(--edge);
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%); margin-top: -3vw; padding-top: calc(3vw + clamp(88px, 9vw, 128px));
}
.section-intro h2 { font-size: clamp(40px, 6.2vw, 96px); }
.intro-prose { color: #26414c; }
.intro-prose .intro-lead { color: var(--ink); font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.55; }
.loop-chips { display: flex; flex-wrap: wrap; gap: 16px 20px; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
.loop-chips li {
  padding: .22em .8em; font-size: clamp(26px, 4.2vw, 56px); font-weight: 900; letter-spacing: -.045em;
  border: var(--edge); border-radius: 100px; box-shadow: var(--hard); transition: rotate .2s, translate .2s;
}
.loop-chips li:nth-child(1) { background: var(--mint); rotate: -2.5deg; }
.loop-chips li:nth-child(2) { background: var(--sky); rotate: 1.5deg; }
.loop-chips li:nth-child(3) { background: var(--peach); rotate: -1deg; }
.loop-chips li:hover { rotate: 0deg; translate: 0 -4px; }

/* Four areas: colour-block mosaic */
.areas-section { background: var(--pop); }
.area-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.area-grid .area-card { grid-column: span 6; }
.area-grid .area-software, .area-grid .area-studio { grid-column: span 7; }
.area-grid .area-data, .area-grid .area-labs { grid-column: span 5; }
.area-card {
  min-height: 340px; padding: 30px; border: var(--edge); border-radius: 30px; box-shadow: var(--hard);
  transition: translate .2s, box-shadow .2s, rotate .2s;
}
.area-card:hover { transform: none; translate: -4px -4px; rotate: -.4deg; box-shadow: 11px 11px 0 var(--ink); border-color: var(--ink); }
.area-software { background: var(--mint); }
.area-data { background: var(--sky); }
.area-labs { background: var(--lilac); }
.area-studio { background: var(--peach); }
.area-mark { background: #fff; border: var(--edge); border-radius: 50%; }
.area-number, .area-category { color: var(--ink); }
.area-card h3 { font-size: clamp(36px, 4.4vw, 60px); }
.area-lead { margin-top: 12px; color: var(--ink); font-size: 18px; font-weight: 700; }
.area-chips span { color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 100px; font-weight: 700; }
.area-card .text-arrow { margin-top: auto; padding-top: 26px; color: var(--ink); font-weight: 900; border-bottom: 0; text-decoration: underline 3px; text-underline-offset: 6px; }

/* Process: ink band, giant numerals */
.process-section { background: var(--ink); border-bottom: var(--edge); }
.process-section .section-eyebrow { background: var(--lemon); color: var(--ink); }
.process-section .process-header > p:last-child { color: #c9dde3; }
.process-grid { gap: 18px; }
.process-grid li { background: transparent; border: 2px solid rgba(255,255,255,.4); border-radius: 26px; }
.step-num { display: block; color: var(--lemon); font-family: inherit; font-size: clamp(44px, 5vw, 64px); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.step-tag { display: block; margin-top: 8px; color: var(--mint); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.process-grid li:nth-child(2) .step-num { color: var(--mint); }
.process-grid li:nth-child(3) .step-num { color: var(--sky); }
.process-grid li:nth-child(4) .step-num { color: var(--peach); }
.process-grid h3 { margin-top: 18px; color: #fff; }

/* Software gateway: coral band */
.software-gateway { padding-block: clamp(48px, 6vw, 80px); background: var(--coral); border-bottom: var(--edge); }
.software-gateway .section-eyebrow { background: #fff; }
.software-gateway h2 { font-size: clamp(32px, 4.8vw, 64px); }
.software-gateway h2, .software-gateway p:not(.section-eyebrow) { color: var(--ink); }
.software-gateway p:not(.section-eyebrow) { font-weight: 600; }
.software-gateway .button-primary { box-shadow: 4px 4px 0 var(--lemon); }
.software-gateway .button-primary:hover { box-shadow: 7px 7px 0 var(--lemon); }

/* Data: sky block, sticker cards */
.data-section { background: var(--sky); border-bottom: var(--edge); }
.data-points > div { background: #fff; border: var(--edge); border-radius: 24px; box-shadow: 5px 5px 0 var(--ink); }
.data-point-icon { background: var(--lemon); color: var(--ink); border: var(--edge); border-radius: 50%; font-weight: 900; }
.data-points strong { font-size: 16px; }
.data-points p { color: #34505b; }
.data-external { color: var(--ink); font-weight: 900; border-bottom-color: var(--ink); }

/* Labs / Studio: tilted colour panels */
.horizons-section { background: var(--pop); }
.horizon-panel { border: var(--edge); border-radius: 30px; box-shadow: var(--hard); }
.horizon-panel:not(.studio-panel) { background: var(--lilac); border-color: var(--ink); rotate: -.7deg; }
.studio-panel { background: var(--peach); border-color: var(--ink); rotate: .7deg; }
.horizon-panel h3 { font-size: clamp(30px, 3.4vw, 44px); }
.horizon-panel p, .horizon-panel-top { color: #26414c; }
.horizon-panel .horizon-lead { color: var(--ink); font-weight: 800; }
.horizon-status { padding: 4px 10px; background: #fff; border: 1.5px solid var(--ink); border-radius: 100px; color: var(--ink); }
.horizon-keywords span { color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: 100px; }

/* About + closing: tilted photo stickers */
.about-section { background: var(--pop); }
.editorial-photo { border: var(--edge); border-radius: 30px; box-shadow: 12px 12px 0 var(--ink); }
.about-photo { rotate: -2deg; }
.contact-photo { rotate: 2deg; }
.about-lead { color: var(--ink); font-weight: 700; }
.principle-list, .principle-list > div { border-color: var(--ink); }
.principle-list > div > span { color: var(--ink); font-weight: 900; }
.principle-list strong { color: var(--ink); font-size: 19px; font-weight: 900; }
.principle-list p { color: #34505b; }
.contact-section { background: var(--mint); border-top: var(--edge); }
.contact-copy h2 { font-size: clamp(40px, 6vw, 92px); }
.contact-title-finish { color: var(--ink); background: linear-gradient(transparent 60%, var(--lemon) 60%); }
.contact-copy > p:not(.section-eyebrow) { color: #26414c; font-weight: 500; }
.footer-wordmark span { color: var(--lemon); }

@media (max-width: 1100px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-grid .area-card { grid-column: auto; }
  .area-card { min-height: 0; }
  .hero-layout { grid-template-columns: 1fr; }
}
@media (max-width: 870px) {
  .primary-nav { background: var(--pop); border-bottom: var(--edge); }
  .primary-nav a:hover { background: var(--lemon); }
}
@media (max-width: 650px) {
  :root { --hard: 4px 4px 0 #172e37; }
  .area-grid { grid-template-columns: 1fr; gap: 18px; }
  .area-card { padding: 24px; }
  .hero-visual-surface { box-shadow: 7px 7px 0 var(--coral); }
  .editorial-photo { box-shadow: 7px 7px 0 var(--ink); }
  .loop-chips li { box-shadow: 4px 4px 0 var(--ink); }
  .intro-section { clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%); margin-top: -5vw; padding-top: calc(5vw + 78px); }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover, .area-card:hover, .loop-chips li:hover { translate: none; }
}

/* Passing critters: small robots and props cross the screen as you scroll (CSS scroll-driven,
   no JS, no idle animation). Browsers without animation-timeline, and reduced-motion, get static
   parked stickers. The motion toggle freezes them via animation-play-state. */
.critter-lane { position: relative; height: 92px; overflow: hidden; overflow: clip; background: var(--pop); } /* clip, not hidden: hidden would make the lane the (non-scrolling) timeline scroller */
.critter-lane::after {
  content: ""; position: absolute; inset: auto 0 18px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 26px);
}
.critter { position: absolute; bottom: 21px; left: var(--x, 10%); width: 64px; height: 64px; pointer-events: none; }
.critter svg { display: block; width: 100%; height: 100%; overflow: visible; }
.critter svg * { stroke: #172e37; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.critter svg .eye { stroke: none; fill: #172e37; }
.critter svg .teeth { stroke-width: 9; stroke-dasharray: 6 5.52; }
.critter-l { scale: -1 1; --dir: critter-pass-l; }
.critter-r { --dir: critter-pass-r; }
.critter-gear { bottom: 19px; width: 54px; height: 54px; --bob: critter-spin; --end: exit 85%; }
.critter-star { bottom: 56px; width: 40px; height: 40px; --bob: critter-spin; --start: 30%; --end: exit 80%; }
.critter-rocket { bottom: 44px; --bob: critter-float; --end: exit 70%; }
.critter-rocket svg { rotate: 90deg; }
.critter-balloon { bottom: 40px; --bob: critter-float; --end: exit 90%; }
.critter-balloon svg { scale: -1 1; }
.critter-cup { --end: exit 80%; }

@keyframes critter-pass-r { from { translate: -130px 0; } to { translate: calc(100vw + 30px) 0; } }
@keyframes critter-pass-l { from { translate: calc(100vw + 30px) 0; } to { translate: -130px 0; } }
@keyframes critter-hop {
  0%, 20%, 40%, 60%, 80%, 100% { transform: translateY(0); rotate: 0deg; }
  10%, 50%, 90% { transform: translateY(-10px); rotate: -6deg; }
  30%, 70% { transform: translateY(-10px); rotate: 6deg; }
}
@keyframes critter-float { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-12px); } 75% { transform: translateY(9px); } }
@keyframes critter-spin { from { rotate: 0deg; } to { rotate: 720deg; } }
@supports (animation-timeline: view()) {
  .motion-enabled .critter {
    left: 0; animation-name: var(--dir, critter-pass-r), var(--bob, critter-hop);
    animation-duration: auto, auto; animation-timing-function: linear, linear; animation-fill-mode: both, both;
    animation-timeline: view(), view(); animation-range: entry var(--start, 0%) var(--end, exit 100%), entry 0% exit 100%;
  }
}
.motion-user-paused .critter-lane * { animation-play-state: paused !important; }
@media (max-width: 650px) {
  .critter-lane { height: 76px; }
  .critter { width: 50px; height: 50px; bottom: 19px; }
  .critter-gear { width: 42px; height: 42px; }
  .critter-star { width: 32px; height: 32px; bottom: 44px; }
  .critter-rocket { bottom: 34px; } .critter-balloon { bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { .critter { animation: none !important; left: var(--x, 10%) !important; translate: none !important; } }

/* Pop-v3: purposeful, finite card signals. Static shapes are the default.
   Only transform and opacity animate; no layout reads or per-frame JavaScript. */
.area-card { --card-signal-time: .96s; }
.area-card:hover { translate: -2px -2px; rotate: 0deg; box-shadow: 8px 8px 0 var(--ink); }
.area-card:focus-within { border-color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.area-card .text-arrow { min-height: 44px; }
.signal-stage, .signal-window, .signal-check, .signal-bar, .signal-node,
.signal-paper, .signal-ink, .signal-pencil { transform-box: fill-box; transform-origin: center; }
.signal-window, .signal-bar { transform-origin: center bottom; }
.signal-ink { transform-origin: left center; }
.signal-bridges { opacity: .58; }

@keyframes card-signal-settle { 0% { transform: scale(.96); } 55% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes card-window-open { 0% { transform: scaleY(.6); } 55%, 100% { transform: scaleY(1); } }
@keyframes card-check-in { 0%, 28% { opacity: 0; transform: scale(.55); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes card-bar-one { 0%, 8% { transform: scaleY(.25); } 58%, 100% { transform: scaleY(1); } }
@keyframes card-bar-two { 0%, 18% { transform: scaleY(.25); } 72%, 100% { transform: scaleY(1); } }
@keyframes card-bar-three { 0%, 28% { transform: scaleY(.25); } 86%, 100% { transform: scaleY(1); } }
@keyframes card-connect { 0%, 35% { opacity: 0; } 82%, 100% { opacity: .58; } }
@keyframes card-node-one { 0% { transform: translate(-5px, 5px); } 65%, 100% { transform: none; } }
@keyframes card-node-two { 0% { transform: translate(5px, -4px); } 65%, 100% { transform: none; } }
@keyframes card-node-three { 0% { transform: translate(2px, 6px); } 75%, 100% { transform: none; } }
@keyframes card-paper-in { 0% { transform: translateY(3px) rotate(-4deg); } 60%, 100% { transform: none; } }
@keyframes card-write { 0%, 15% { transform: scaleX(.08); } 78%, 100% { transform: scaleX(1); } }
@keyframes card-pencil { 0%, 15% { transform: translateX(-8px); } 78%, 100% { transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .is-card-active .signal-stage,
  .is-card-active .signal-window, .is-card-active .signal-check,
  .is-card-active .signal-bar, .is-card-active .signal-bridges,
  .is-card-active .signal-node, .is-card-active .signal-paper,
  .is-card-active .signal-ink, .is-card-active .signal-pencil {
    animation-duration: var(--card-signal-time); animation-timing-function: ease-out;
    animation-iteration-count: 1; animation-fill-mode: both;
  }
  .is-card-active .signal-stage { animation-name: card-signal-settle; }
  .is-card-active .signal-window { animation-name: card-window-open; }
  .is-card-active .signal-check { animation-name: card-check-in; }
  .is-card-active .signal-bar-one { animation-name: card-bar-one; }
  .is-card-active .signal-bar-two { animation-name: card-bar-two; }
  .is-card-active .signal-bar-three { animation-name: card-bar-three; }
  .is-card-active .signal-bridges { animation-name: card-connect; }
  .is-card-active .signal-node-one { animation-name: card-node-one; }
  .is-card-active .signal-node-two { animation-name: card-node-two; }
  .is-card-active .signal-node-three { animation-name: card-node-three; }
  .is-card-active .signal-paper { animation-name: card-paper-in; }
  .is-card-active .signal-ink { animation-name: card-write; }
  .is-card-active .signal-pencil { animation-name: card-pencil; }
}
.motion-user-paused .area-mark *, .page-hidden .area-mark *, .signal-offscreen .area-mark * { animation-play-state: paused !important; }
.motion-user-paused .area-card { transition: none; }
.motion-user-paused .area-card:hover { translate: none; rotate: none; }
@media (hover: none), (pointer: coarse) {
  .area-card:hover { translate: none; rotate: none; box-shadow: var(--hard); }
}
@media (prefers-reduced-motion: reduce) {
  .area-card .area-mark * { animation: none !important; }
  .area-card:hover { translate: none; rotate: none; transform: none; }
}

/* Shorter middle sections, not smaller reading text. Keep hero/closing space. */
@media (max-width: 650px) {
  .areas-section, .process-section, .data-section, .horizons-section { padding-block: 64px; }
  .area-top { margin-bottom: 18px; }
  .area-card .text-arrow { padding-top: 18px; }
  .process-header > p:last-child { font-size: 15px; line-height: 1.7; }
  .process-grid { gap: 14px; margin-top: 28px; }
  .process-grid li { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; padding: 22px 18px; border-radius: 22px; }
  .process-grid .step-num { grid-column: 1; grid-row: 1 / 3; font-size: 34px; align-self: start; }
  .process-grid .step-tag { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 10px; }
  .process-grid h3 { grid-column: 2; grid-row: 2; margin: 5px 0 8px; font-size: 18px; }
  .process-grid p { grid-column: 2; grid-row: 3; font-size: 14px; line-height: 1.65; }
}

/* Pop-v4 editorial scenes: quiet, theme-matched objects and landscape.
   Separate SVG assets stay crisp at every size; no extra motion or JavaScript.
   These are visual metaphors, never actual data or product screenshots. */
.section-illustration, .editorial-illustration {
  display: block; min-width: 0; overflow: hidden; aspect-ratio: 3 / 2;
  border: var(--edge); border-radius: 26px; background: #fff5dd;
  box-shadow: 6px 6px 0 var(--ink); rotate: 0deg;
}
.section-illustration img, .editorial-illustration img {
  display: block; width: 100%; height: 100%; object-fit: contain;
}
.direction-illustration { width: 100%; max-width: 520px; margin: 28px 0 0; }
.intro-grid { align-items: center; gap: clamp(36px, 5vw, 80px); }
/* Pair the Data heading with the illustration, but keep its principles full-width. */
.data-copy {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  column-gap: clamp(32px, 4vw, 64px); align-items: start;
}
.data-copy > .section-eyebrow { grid-column: 1; grid-row: 1; }
.data-copy > h2 { grid-column: 1; grid-row: 2; }
.data-copy > .data-lead { grid-column: 1; grid-row: 3; margin-bottom: 0; }
.data-illustration { grid-column: 2; grid-row: 1 / 4; width: 100%; margin: 12px 0 0; align-self: center; }
.data-copy > .data-points { grid-column: 1 / -1; }
.data-copy > .data-external { grid-column: 1 / -1; justify-self: start; }
.about-photo.editorial-illustration { margin-top: 32px; }
.contact-photo.editorial-illustration { width: 100%; }
@media (max-width: 1000px) {
  .data-copy { display: block; }
  .data-illustration { max-width: 620px; margin: 28px 0 0; }
}
@media (max-width: 870px) {
  .intro-grid { align-items: start; gap: 26px; }
  .direction-illustration { max-width: 620px; }
}
@media (max-width: 650px) {
  .section-illustration, .editorial-illustration { border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
  .direction-illustration, .data-illustration { margin-top: 24px; }
  .about-photo.editorial-illustration { margin-top: 26px; }
}
