*, *::before, *::after { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #2C3036;
  --fg: #E9EAE6;
  --fg-dim: rgba(233, 234, 230, 0.7);
  --accent: #D7F01A;            /* the logo's own colour */
  --ink: #2C3036;
  --neon: #D7F01A;
  --paper: #E9EAE6;             /* fixed paper/light text, regardless of the section theme */
  --gutter: clamp(20px, 6.5vw, 128px);
  /* one vertical rhythm for the whole page: section edges, heading to content, block to block */
  --sp-sec: clamp(120px, calc(var(--vh, 1svh) * 22), 220px);
  --sp-head: clamp(48px, calc(var(--vh, 1svh) * 8), 96px);
  --sp-block: clamp(80px, calc(var(--vh, 1svh) * 13), 140px);
  --sp-inner: clamp(32px, calc(var(--vh, 1svh) * 5.5), 56px);   /* switch to its pane */
  /* one button language: the service switch and 체험해보기 share size and type */
  --btn-fs: clamp(14px, 1.15vw, 18px);
  --btn-pad: 0.85em 1.5em;
  /* --vh: 1% of the screen height, measured once by main.js and only re-measured when the width changes.
     In-app browsers resize the page as their toolbar hides, and live vh/svh units then shifted every
     section below by hundreds of pixels mid-scroll. */
}
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  transition: background-color 700ms cubic-bezier(.22, .61, .36, 1), color 500ms ease;
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ph { display: inline-block; }
/* for screen readers only */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
main:focus { outline: none; }
.hl { color: var(--accent); }
/* small label on its own line above a heading (panel number, case industry); body face, not mono caps */
.eyebrow { display: block; margin-bottom: 0.9em; font-size: clamp(14px, 1.1vw, 17px); font-weight: 700; letter-spacing: 0; line-height: 1.2; opacity: 0.7; }
.work .eyebrow { margin-bottom: 0.7em; }
.mono { font: 400 12px "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }

/* the two decorative canvases take the large viewport (toolbars hidden) so they never resize when a phone's
   toolbars slide in or out: resizing redrew every line at a new scale and the band visibly jumped (Samsung Internet) */
canvas#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; transition: opacity 0.5s; pointer-events: none; }
main { position: relative; z-index: 1; }
.bar { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 11; }
/* phones: a round button at the bottom right whose ring fills with the scroll. Tapping it raises the section rail
   above it: dots where each section starts, the line filled to where you are, names beside the dots. Only the rail
   and the name tags get a soft frosted backing, so the page stays visible around them. */
.rail { display: none; }
@media (max-width: 900px) {
  .rail { display: block; position: fixed; right: 12px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 12; color: var(--fg);
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
    --glass: color-mix(in srgb, var(--bg) 14%, transparent); --blur: blur(13px);
    --lift: 0 8px 28px rgba(44, 48, 54, 0.16); }
  .rail.show { opacity: 1; pointer-events: auto; }
  .rail-btn { position: relative; display: grid; place-content: center; gap: 3px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: inherit;
    background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    box-shadow: var(--lift); }
  /* the ring: a conic fill masked to a 2.5px band */
  .rail-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--p, 0) * 360deg), color-mix(in srgb, currentColor 18%, transparent) 0);
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); }
  .rail-btn i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; transition: transform 0.3s; }
  .rail.open .rail-btn i:nth-child(1) { transform: translateY(7px) scale(0.6); }
  .rail.open .rail-btn i:nth-child(3) { transform: translateY(-7px) scale(0.6); }

  .rail-bar { position: absolute; right: 7px; bottom: 58px; width: 32px; height: calc(var(--vh, 1svh) * 58);
    transform-origin: bottom; transform: scaleY(0.2); opacity: 0; visibility: hidden;
    transition: transform 0.4s cubic-bezier(.2, .7, .1, 1), opacity 0.25s, visibility 0s 0.4s; }
  .rail.open .rail-bar { transform: none; opacity: 1; visibility: visible; transition: transform 0.4s cubic-bezier(.2, .7, .1, 1), opacity 0.25s; }
  .rail-bar::before, .rail-fill { content: ""; position: absolute; left: 15.25px; top: 14px; bottom: 14px; width: 1.5px; background: currentColor; opacity: 0.25; }
  .rail-fill { opacity: 1; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
  /* the frosted backing sits on its own layer: blur on the bar itself would stop the name tags from blurring what's behind them */
  .rail-glass { position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--lift); }
  .rail-bar a { position: absolute; right: 0; top: calc(14px + var(--t, 0) * (100% - 28px)); height: 44px; margin-top: -22px; display: flex; align-items: center; gap: 8px;
    padding-left: 8px; text-decoration: none; }
  .rail-bar b { order: 2; width: 32px; display: grid; place-items: center; }
  .rail-bar b::before { content: ""; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid currentColor; background: var(--bg); transition: transform 0.25s; }
  .rail-bar a.done b::before { background: currentColor; }
  .rail-bar a.on b::before { background: var(--accent); border-color: var(--accent); transform: scale(1.4); }
  .rail-bar span { padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-size: 13px; font-weight: 600;
    background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--lift); }
  .rail-bar a.on span { font-weight: 800; }

  .rail-flash { position: absolute; right: 56px; bottom: 23px; translate: 0 50%; white-space: nowrap; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--lift);
    opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
  .rail.flash:not(.open) .rail-flash { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { body, .nav { transition: none; } }

/* nav */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px var(--gutter);
  /* frosted, full width: the same tint + blur recipe (no saturate: it pushed the neon nav greener than the section) as the phone rail, a little more tint for the menu text */
  background: color-mix(in srgb, var(--bg) 28%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: background 700ms cubic-bezier(.22, .61, .36, 1);
}
.nav-logo { display: block; color: var(--fg); }
.nav-logo svg { display: block; width: 92px; height: 22px; fill: currentColor; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.nav a { text-decoration: none; }
.nav-cta { position: relative; display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 800; }   /* --bg, not --ink: on neon/paper the accent is ink */
/* small pills keep their look but get a 44px tap area */
.nav-cta::after, .try::after, .demo-head button::after, .send::after { content: ""; position: absolute; inset: -6px -4px; }
.svc-tabs button::after { content: ""; position: absolute; inset: -5px 0; }   /* the track's padding, so taps there still pick a tab */
/* a solid dimmed colour, not opacity: see-through grey text went muddy on the dark bar */
.nav li[data-sec], .nav-ext { color: color-mix(in srgb, var(--fg) 70%, var(--bg)); transition: color 0.3s; }
.nav li[data-sec] { position: relative; }
.nav li[data-sec].on, .nav li[data-sec]:hover, .nav-ext:hover { color: var(--fg); }
.nav-ext { padding-left: clamp(14px, 2.4vw, 32px); border-left: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }   /* leaving the page, set apart from the sections */
.nav .prog { position: absolute; left: 0; right: 0; bottom: -7px; display: flex; gap: 3px; opacity: 0; transition: opacity 0.3s; }
.nav li.on .prog { opacity: 1; }
.nav .prog i { flex: 1; height: 2px; background: currentColor; opacity: 0.25; transition: opacity 0.3s, background 0.3s; }
.nav .prog i.done { opacity: 1; background: var(--accent); }

/* scatter → align (baseline only) */
.c { display: inline-block; transform: translateY(calc(var(--dy) * var(--s, 0))); }

/* hero */
.hero { min-height: calc(var(--vh, 1svh) * 100); display: grid; align-content: end; padding: 96px var(--gutter) 40px; }
.hero h1 { margin: 0; font-weight: 900; font-size: min(17vw, calc(var(--vh, 1svh) * 22)); line-height: 0.94; letter-spacing: -0.04em; }
.hero h1 > span { display: block; }
.hero h1 > span:nth-child(2) { padding-left: 0.62em; }
.hero-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-top: 32px; }
#knot { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; pointer-events: none; }
@media (min-width: 901px) {              /* desktop: title and knot share the screen as one centred group */
  .hero h1 { font-size: min(15vw, calc(var(--vh, 1svh) * 19)); }
  .hero { align-content: center; }      /* title and sub line sit together in the middle of the screen */
}
.hero-sub p { margin: 0; max-width: 22em; font-size: clamp(19px, 2.1vw, 30px); line-height: 1.4; font-weight: 700; letter-spacing: -0.005em; }
.cue { display: flex; align-items: center; gap: 10px; }
.cue.gone { opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0s 0.6s; }
.cue i { width: 1px; height: 36px; background: var(--fg-dim); display: block; transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
/* grows down, then shrinks into its bottom end; transform only (no transform-origin keyframes) so it runs off the main thread */
@keyframes cue { 0% { transform: translateY(0) scaleY(0); } 50% { transform: translateY(0) scaleY(1); } 100% { transform: translateY(36px) scaleY(0); } }

/* pinned scenes */
.pin { position: relative; }
.sticky { position: sticky; top: 0; height: calc(var(--vh, 1svh) * 100); overflow: hidden; }

#say { height: calc(var(--vh, 1svh) * 220); }
.say-wrap { display: grid; align-content: center; gap: 28px; padding-inline: var(--gutter); }
.say { margin: 0; font-weight: 800; font-size: clamp(26px, 4.6vw, 84px); line-height: 1.16; letter-spacing: -0.028em; }
.say .ln { display: block; opacity: var(--o, 0.16); }   /* one line per phrase; lit line by line */

#how { height: calc(var(--vh, 1svh) * 460); }
.track { display: flex; height: 100%; width: 400vw; will-change: transform; }
.panel { flex: none; width: 100vw; height: 100%; display: grid; align-content: start; padding: max(96px, calc(var(--vh, 1svh) * 13)) var(--gutter) 0; gap: 24px; }
.panel h3 { margin: 0; font-weight: 900; font-size: min(9vw, calc(var(--vh, 1svh) * 13)); line-height: 0.98; letter-spacing: -0.038em; }
.panel p { margin: 0; max-width: 24em; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.7; color: var(--fg-dim); }

/* section heads */
.sec-head { display: grid; gap: 20px; margin-bottom: var(--sp-head); }
.sec-head h2 { margin: 0; font-weight: 900; font-size: clamp(42px, 7.8vw, 140px); line-height: 0.95; letter-spacing: -0.038em; }
.sec-head .lead { margin: 12px 0 0; max-width: 30em; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.7; color: var(--fg-dim); }

/* services: three groups behind tabs. All panes share one grid cell, so switching never changes the page height
   (height changes under the reader's finger made phones jump the scroll). */
.services { padding: var(--sp-sec) var(--gutter); }
/* one segmented switch across the content width: a faint neon thumb slides to the picked tab (--tx/--tw set in main.js) */
.svc-tabs { position: relative; display: flex; width: 100%; padding: 5px; background: color-mix(in srgb, var(--fg) 9%, transparent); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.svc-tabs::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--tw, 0); transform: translateX(var(--tx, 0)); background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 999px; transition: transform 0.4s cubic-bezier(.3,.7,.2,1), width 0.4s cubic-bezier(.3,.7,.2,1); }
.svc-tabs button {
  position: relative; flex: 1; font: 800 var(--btn-fs)/1 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.02em; color: var(--fg-dim);
  background: none; border: 0; border-radius: 999px; padding: var(--btn-pad); padding-inline: 0.5em; cursor: pointer; transition: color 0.3s;
}
.svc-tabs button:hover { color: var(--fg); }
.svc-tabs button[aria-selected="true"] { color: var(--accent); }
.svc-panes { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(24px, 4vw, 72px); min-height: 330px; }
.svc-pane { grid-column: 1 / -1; grid-row: 1; padding-top: var(--sp-inner); display: grid; grid-template-columns: subgrid; grid-template-rows: auto 1fr; align-content: stretch; visibility: hidden; opacity: 0; transition: opacity 0.25s; }
.svc-pane.on { visibility: visible; opacity: 1; }
.svc-pane p { grid-column: 2; grid-row: 1; margin: 0 0 20px; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.7; color: var(--fg-dim); }
.svc-pane ul { grid-column: 2; grid-row: 2; display: grid; grid-auto-rows: 1fr; list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.svc-pane li { display: grid; align-content: center; gap: 6px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.svc-pane li b { font-weight: 800; font-size: clamp(18px, 2vw, 32px); letter-spacing: -0.02em; line-height: 1.2; }
.svc-pane li span { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.6; color: var(--fg-dim); }
#svcLines { grid-column: 1; grid-row: 1; align-self: center; margin-top: var(--sp-inner); width: 100%; height: 220px; display: block; pointer-events: none; }

.nobid { margin-top: var(--sp-block); display: grid; gap: 20px; }
.nobid-title { margin: 0; font-weight: 900; font-size: clamp(24px, 2.8vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.nobid ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 72px); border-top: 1.5px solid var(--fg); }
.nobid li { display: grid; gap: 6px; padding: 18px 0 20px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.nobid li b { display: flex; align-items: center; gap: 0.5em; font-weight: 800; font-size: clamp(17px, 1.6vw, 24px); letter-spacing: -0.02em; line-height: 1.3; }
.nobid li span { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.6; color: var(--fg-dim); }
.nobid .x { flex: none; width: 1.05em; height: 1.05em; overflow: visible; }
.nobid .x circle { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.nobid .x path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }

/* work */
.work { padding: var(--sp-sec) var(--gutter); }
.work { --tint: color-mix(in srgb, var(--ink) 55%, var(--neon)); }   /* acts band and review bubbles: softer than the ink pill */
.case { height: calc(var(--vh, 1svh) * 340); margin-inline: calc(var(--gutter) * -1); }
.case:first-of-type { margin-top: calc(var(--case-lead, 0px) * -1); }   /* --case-lead/--case-tail: main.js trimCases */
.case:last-of-type { margin-bottom: calc(var(--case-tail, 0px) * -1); }
.case-stage {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 72px); align-items: center;
  padding: 80px var(--gutter) 40px;
}
.case-copy { display: grid; gap: 22px; align-content: center; }
.case-copy h3 { margin: 0; font-weight: 900; font-size: clamp(28px, 3.2vw, 52px); letter-spacing: -0.028em; line-height: 1.08; }
.acts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; border-top: 1.5px solid var(--fg); }
.acts li {
  position: relative; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 14px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); opacity: 0.7; transition: opacity 0.3s, color 0.3s;
}
/* the current act turns into a deep olive tint band with white text, a step below the ink of 체험해보기 so the button
   stays the strongest thing here; the band wipes in from the left each time the act changes, so the switch itself is visible */
.acts li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tint); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s cubic-bezier(.2,.7,.1,1); }
.acts li.on { opacity: 1; color: #fff; }
.acts li.on::before { transform: none; }
.acts li > * { position: relative; }
.acts { isolation: isolate; }
.acts b { font-weight: 800; font-size: 16px; }
.acts span { font-size: 15px; line-height: 1.6; }
.acts li.on span { font-weight: 600; }

/* mobile stepper: three stops on a line, so it reads as a route and never as buttons (the ink pill belongs to 체험해보기) */
.case-steps { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 12px; font-weight: 600; text-align: center; }
.case-steps span { position: relative; display: grid; justify-items: center; gap: 8px; opacity: 0.7; transition: opacity 0.3s; }
.case-steps span::before { content: ""; position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%; background: var(--neon); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background 0.3s, box-shadow 0.3s; }
.case-steps span.on, .case-steps span:has(~ .on) { opacity: 1; }
.case-steps span.on::before, .case-steps span:has(~ .on)::before { background: var(--ink); }
.case-steps span.on::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 18%, transparent); }
.case-steps span.on em { font-weight: 900; }
.case-steps em { font-style: normal; }
.case-steps i { position: absolute; top: 5px; left: 50%; width: 100%; height: 1.5px; background: color-mix(in srgb, var(--ink) 25%, transparent); }   /* this stop to the next */
.case-steps span:last-child i { display: none; }
.case-steps i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }

.case-vis { position: relative; height: min(calc(var(--vh, 1svh) * 64), 560px); container-type: size; color: var(--ink); }
.case-vis > * { position: absolute; will-change: transform, opacity; }
.big { margin: 0; font-weight: 900; font-size: clamp(28px, min(10cqh, 11cqw), 110px); letter-spacing: -0.035em; line-height: 0.95; }

/* review: many small items get sorted, then a signal pops out */
.rv-cloud { inset: 0; }
.bub {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0.6em; white-space: nowrap;
  width: 29cqw; padding: 0.55em 0.75em; border-radius: 8px; overflow: hidden;
  background: var(--tint); color: #fff; font-size: clamp(10.5px, 2.2cqw, 13px); font-weight: 500;
  transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: var(--o, 1); will-change: transform;
}
.bub small { font: 500 0.8em "JetBrains Mono", monospace; opacity: 0.55; }
.bub.neg.sorted { background: var(--paper); color: var(--ink); }
.rv-lane { top: 0; display: flex; align-items: baseline; gap: 8px; font-size: clamp(13px, 2.6cqw, 17px); opacity: var(--o, 0); transform: translateY(var(--y, 0px)); }
.rv-lane span { font: 500 0.9em "JetBrains Mono", monospace; }
.rv-pos { left: 0; }
.rv-neg { left: 64cqw; }
.rv-chart { left: 0; width: 100%; top: 58%; height: 22%; overflow: visible; opacity: var(--o, 0); clip-path: inset(-10% calc(var(--d, 1) * 100%) -10% 0); }
.rv-chart path { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
/* the spike gets a ring and a big number instead of a pill (the only pill near the copy is 체험해보기). The spike sits at
   x 85% and y 58% + 22% * 0.16 of the scene (see .rv-chart and its path); the ring is centred there, the text sits to its left */
.rv-alert {
  right: calc(15% + 18px); top: calc(61.5% - 24px); display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  opacity: var(--o, 0); transform: scale(var(--s, 0.8)); transform-origin: 100% 50%;
}
.rv-alert::after { content: ""; position: absolute; left: calc(100% + 7px); top: 13px; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.rv-alert > b { font-size: clamp(28px, 6cqw, 44px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.rv-alert > span { display: grid; font-size: clamp(12px, 2.2cqw, 15px); font-weight: 700; line-height: 1.3; }
.rv-alert small { font: 500 0.9em "JetBrains Mono", monospace; opacity: 0.7; }
/* top centre of the scene: in the bottom-left corner nobody saw it */
.rv-cap { left: 50%; top: 0; margin: 0; width: max-content; max-width: 100%; justify-content: center; opacity: var(--o, 1); transform: translate(-50%, var(--y, 0px)); }
.rv-result { inset: 0; display: flex; align-items: center; justify-content: center; gap: 5cqw; opacity: var(--o, 0); transform: translateY(var(--ty, 20px)); }
.dial { position: relative; width: min(46cqh, 40cqw); aspect-ratio: 1; flex: none; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 12; }
.dial .fg { stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: var(--d, 0); }
.dial > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial b { font-weight: 900; font-size: min(16cqh, 14cqw); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dial small { font-size: clamp(12px, 2cqw, 13px); font-weight: 700; }
.cap { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: clamp(12px, 2.2cqw, 15px); font-weight: 500; color: var(--ink); }
.cap b { font-size: clamp(18px, 3.6cqw, 26px); font-weight: 900; letter-spacing: -0.02em; box-shadow: inset 0 -0.42em 0 color-mix(in srgb, var(--ink) 16%, transparent); }   /* highlighter, not a pill: pills read as buttons */
.cap span { opacity: 0.7; }
/* the opening caption is plain type: the only pill near the copy is 체험해보기 */
.rv-cap { display: grid; justify-items: center; gap: 2px; text-align: center; }
.rv-cap b { font-size: clamp(20px, 4cqw, 28px); box-shadow: none; }

/* export: one document in, five out */
.ex-po {
  left: 0; top: 2%; width: 40cqw; transform: translateY(var(--y, 0px)); padding: 1em; border-radius: 6px; background: var(--paper); overflow: hidden;
  font-size: clamp(10.5px, 2cqw, 13px); box-shadow: 0 18px 40px -24px rgba(44,48,54,0.6);
}
.ex-po-h { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 0.8em; border-bottom: 1.5px solid var(--ink); font-family: "JetBrains Mono", monospace; }
.ex-po ul { list-style: none; margin: 0; padding: 0; }
.ex-po-h, .ex-po-f { flex-wrap: wrap; column-gap: 10px; }   /* phones: the PO number drops under the title instead of being cut */
.ex-po-h > *, .ex-po-f > * { white-space: nowrap; }
.ex-po-h > :last-child, .ex-po-f > :last-child { margin-left: auto; }
/* order lines: product name first, its spec smaller and fainter, quantity bold on the right */
.ex-po li > span:first-child { font-weight: 600; }
.ex-po li small { margin-left: 0.4em; font-size: 0.8em; font-weight: 500; opacity: 0.55; }
.ex-po li > span:last-child { font-weight: 700; }
.ex-po-h > span { font-size: 0.85em; opacity: 0.6; }
.ex-po li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0.7em 0; border-bottom: 1px dashed rgba(44,48,54,0.25); font-variant-numeric: tabular-nums; }
.ex-po li.read { box-shadow: inset 0.35em 0 0 var(--neon); padding-left: 0.6em; transition: padding 0.2s; }
.ex-po-f { display: flex; justify-content: space-between; padding-top: 0.8em; font: 500 0.9em "JetBrains Mono", monospace; opacity: 0.6; }
.scan { position: absolute; left: 0; right: 0; top: var(--y, 0%); height: 3px; background: var(--ink); box-shadow: 0 0 0 6px rgba(215,240,26,0.55); opacity: var(--o, 0); }
.ex-steps { right: 0; top: 2%; width: 52cqw; list-style: none; margin: 0; padding: 0; font-size: clamp(12px, 2.3cqw, 15px); opacity: var(--o, 1); transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.ex-steps li { display: flex; justify-content: space-between; gap: 8px; padding: 0.55em 0; border-bottom: 1px solid rgba(44,48,54,0.2); font-weight: 600; }
.ex-steps em { font: 500 0.9em "JetBrains Mono", monospace; font-style: normal; }
.ex-docs { right: 0; top: 2%; width: 56cqw; height: 58%; }
.doc {
  position: absolute; width: 24cqw; aspect-ratio: 3 / 4; padding: 0.8em; border-radius: 5px; background: var(--paper);
  box-shadow: 0 14px 30px -18px rgba(44,48,54,0.6); display: grid; align-content: start; gap: 0.7em;
  font-size: clamp(9px, 1.6cqw, 12px);
  transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg)) scale(var(--s, 1)); opacity: var(--o, 0); will-change: transform;
}
.doc b { font: 700 1em "JetBrains Mono", monospace; line-height: 1.25; overflow-wrap: anywhere; }
.doc i { display: block; height: 0.5em; border-radius: 2px; background: rgba(44,48,54,0.14); }
.doc i:nth-child(3) { width: 70%; }
.doc i:nth-child(4) { width: 85%; }
.ruler { left: 0; right: 0; top: 66%; display: grid; gap: 8px; }
.ruler-now { margin: 0; font-weight: 700; font-size: clamp(12px, 2.4cqw, 16px); }
.ruler-now b { font-weight: 900; font-variant-numeric: tabular-nums; }
.ruler-bar { display: flex; gap: 2px; height: clamp(10px, 3cqh, 18px); }
.ruler-bar i { display: block; height: 100%; width: calc(var(--m) / 40 * var(--k, 1) * 100%); background: var(--ink); border-radius: 2px; }
.ruler-bar i:nth-child(even) { opacity: 0.6; }
.ruler-ticks { display: flex; justify-content: space-between; color: var(--ink); opacity: 0.6; }
.ex-result { left: 0; bottom: 0; opacity: var(--o, 0); transform: translateY(var(--ty, 20px)); }

/* team */
.team { padding: var(--sp-sec) var(--gutter); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.person { margin: 0; display: grid; align-content: start; }
.photo { aspect-ratio: 3 / 4; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.photo img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: grayscale(1) contrast(1.06); transform: translateY(40%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1) var(--d, 0s), filter 0.5s; }
.person.in .photo img { transform: none; }   /* the row plays once as it comes in, left to right (--d set in main.js) */
.person:hover .photo img { filter: grayscale(0); }
.person figcaption { display: grid; gap: 10px; padding-top: 22px; border-top: 1.5px solid var(--fg); }
.person h3 { margin: 0; font-weight: 900; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.025em; }
.person q { quotes: none; font-weight: 700; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; letter-spacing: -0.012em; }
.person p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--fg-dim); }
.role { color: var(--fg); }

/* contact */
.contact { min-height: calc(var(--vh, 1svh) * 100); padding: var(--sp-sec) var(--gutter) 40px; display: grid; gap: 28px; align-content: start; }
.contact h2 { margin: 0; font-weight: 900; font-size: clamp(48px, 10.5vw, 180px); line-height: 0.95; letter-spacing: -0.04em; }
/* the sample sheet sits on slate here, so it takes a light glass pill instead of the ink one */
.contact .try-sample { order: 0; margin: 0; background: rgba(233, 234, 230, 0.12); color: var(--fg); }
.contact .try-sample span { color: var(--accent); }
.demo.sample .demo-reset { display: none; }
/* the sample sheet is a wide A3 table: give it nearly the whole screen so its type stays readable */
.demo.sample { width: calc(100% - 24px); height: calc(100% - 24px); }
.demo.sample iframe { background: var(--paper); }
.contact .lead { margin: 0; max-width: 28em; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; color: var(--fg-dim); }
.ask { max-width: 880px; margin-top: 16px; }
.ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.f { display: grid; gap: 10px; }
.f-wide { grid-column: 1 / -1; }
.f > span { font-size: 14px; font-weight: 600; color: var(--fg-dim); }
.f em { font-style: normal; font-weight: 500; margin-left: 0.4em; }
.f input, .f textarea {
  width: 100%; padding: 0 0 10px; border: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--fg) 28%, transparent); border-radius: 0;
  background: none; color: var(--fg); font: 700 clamp(20px, 1.7vw, 26px)/1.35 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.015em;
  transition: border-color 0.2s;
}
.f textarea { resize: vertical; min-height: 3.2em; }
.f-contact { margin: 0; padding: 0; border: 0; min-width: 0; }
.f-contact legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--fg-dim); }
.c-phone { display: flex; align-items: flex-end; gap: 10px; }
.c-phone input { flex: 1; min-width: 0; text-align: center; }
.c-phone input[name=p1] { flex: 0.75; }
.c-phone i { font-style: normal; padding-bottom: 12px; color: var(--fg-dim); }
/* sent: a small confirmation over the page, which stays as it was */
.sent { width: min(340px, 100% - 32px); padding: 28px 24px 22px; border: 0; border-radius: 16px; background: #F1F0EA; color: var(--ink); text-align: center; box-shadow: 0 24px 60px rgba(44, 48, 54, 0.3); }
.sent::backdrop { background: rgba(44, 48, 54, 0.45); }
.sent p { margin: 0 0 20px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.sent button { padding: var(--btn-pad); border: 0; border-radius: 999px; background: var(--ink); color: var(--neon); font: 800 var(--btn-fs)/1 "Pretendard Variable", Pretendard, sans-serif; cursor: pointer; }
.f input::placeholder, .f textarea::placeholder { color: var(--fg-dim); font-weight: 500; }
.f input:focus, .f textarea:focus { outline: none; border-bottom-color: var(--accent); }
.f [aria-invalid="true"] { border-bottom-color: #FF8A7A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; }
.send { position: relative; padding: var(--btn-pad); border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); font: 800 var(--btn-fs)/1 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: -0.02em; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.send:hover { transform: translateY(-2px); }
.send:disabled { opacity: 0.5; cursor: progress; transform: none; }
.ask-msg { margin: 0; font-size: 15px; color: var(--fg-dim); }
.ask-msg a { color: var(--fg); }
.ask-done { margin: 16px 0 0; font-weight: 900; font-size: clamp(26px, 3vw, 44px); line-height: 1.3; letter-spacing: -0.025em; }
.ask-done small { display: block; margin-top: 8px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--fg-dim); }
.reach-more { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 24px 0 0; font-size: 15px; }
.reach-more dt { color: var(--fg-dim); }
.reach-more dd { margin: 0; font-weight: 500; }
.reach-more a { color: inherit; text-decoration: none; }
.reach-more a:hover { color: var(--accent); }

.foot { margin-top: calc(var(--sp-sec) - 28px); display: grid; gap: 28px; }
.foot-logo { width: min(100%, 68vw); height: auto; display: block; fill: var(--accent); overflow: visible; }
.foot-logo path { transform-box: fill-box; transform-origin: 50% 50%; transform: translateY(calc(var(--dy, 0px) * var(--s, 0))); }
.biz { display: grid; gap: 4px; font-size: 13px; color: var(--fg-dim); }
.biz p { margin: 0; }

@media (max-width: 900px) {
  /* phones: sentence, then the lines, then the list. Rows are a shared subgrid so the tallest sentence sets row 1
     for every tab and switching still never changes the height */
  .svc-panes { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .svc-pane { grid-row: 1 / -1; grid-template-columns: 1fr; grid-template-rows: subgrid; row-gap: 20px; align-content: start; }
  :root { --btn-pad: 0.8em 1.15em; }
  .svc-pane p { grid-column: 1; grid-row: 2; margin: 0; }
  .svc-pane ul { grid-column: 1; grid-row: 3; }
  .nobid ul { grid-template-columns: 1fr; }
  #svcLines { grid-row: 1; align-self: start; height: 120px; margin-top: var(--sp-inner); }
  .nav ul li[data-sec] { display: none; }
  .nav-ext { padding-left: 0; border-left: 0; }
  .hero h1 > span:nth-child(2) { padding-left: 0; }
  .panel h3 { font-size: 11vw; }
  .panel { padding-top: var(--panel-top, max(96px, calc(var(--vh, 1svh) * 13))); }
  .case { height: calc(var(--vh, 1svh) * 260); }
  #how { height: calc(var(--vh, 1svh) * 320); }
  .case-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 12px; padding-top: 72px; }
  .case-copy { gap: 12px; transform: translate3d(0, var(--case-copy-y, 0px), 0); will-change: transform; }
  .case-vis { transform: translate3d(0, var(--case-vis-y, 0px), 0) scale(calc(var(--case-zoom, 1) * var(--case-fit, 1))); transform-origin: 50% 0; will-change: transform; }
  .case-copy h3 { font-size: 24px; }
  /* review bubbles: one column width fits every review at this size once the channel letter goes */
  .bub { width: 31cqw; padding-inline: 0.6em; font-size: clamp(9px, 3cqw, 11px); }
  .bub small { display: none; }
  .acts { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }   /* the stepper shows the acts; screen readers still get the story */
  .case-steps { display: grid; }
  .case-vis { height: 100%; }
  .people { grid-template-columns: 1fr; gap: 56px; }
  .photo { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue i { animation: none; }
  .photo img { transition: filter 0.5s; }
}

/* case demos: the ink pill opens the product's own demo in a dialog (full screen on phones) */
.case-copy { position: relative; }
.try { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 0.45em; padding: var(--btn-pad); border: 0; border-radius: 999px;
  background: var(--ink); color: var(--neon); font-family: inherit; font-size: var(--btn-fs); font-weight: 800; letter-spacing: -0.02em; line-height: 1; cursor: pointer; transition: transform 0.2s; }
.try:hover { transform: translateY(-2px); }
.demo { width: min(1240px, 100% - 48px); height: calc(100% - 48px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; }
.demo[open] { display: flex; flex-direction: column; }
/* closed, the dialog stays laid out at its open size but unseen, so a demo can load into it ahead of the click
   (in a display:none iframe the demo would measure a zero-width screen and set itself up as a phone) */
.demo:not([open]) { display: flex; flex-direction: column; position: fixed; inset: 0; margin: auto; visibility: hidden; pointer-events: none; }
.demo::backdrop { background: rgba(44, 48, 54, 0.72); }
.demo-head {
  --dh-bg: #F2F7D3; --dh-fg: var(--ink); --dh-dim: rgba(44, 48, 54, 0.7); --dh-line: rgba(44, 48, 54, 0.12);
  flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 22px; background: var(--dh-bg); color: var(--dh-fg); border-bottom: 1px solid var(--dh-line); font-size: 14px;
}
.demo-head > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.demo-tag { flex: none; color: var(--dh-dim); font-size: 13px; font-weight: 600; }
.demo-tag::before { content: "·"; margin-right: 8px; }
.demo-head button { position: relative; flex: none; padding: 8px 15px; border: 1px solid var(--dh-line); border-radius: 999px; background: none; color: var(--dh-fg); font: inherit; font-weight: 700; cursor: pointer; }
.demo-head button:hover { border-color: var(--dh-fg); }
.demo-head button:focus-visible { outline-color: var(--dh-fg); }
.demo-pitch { margin: 0 4px 0 auto; min-width: 0; text-align: right; font-size: 13.5px; line-height: 1.45; color: var(--dh-dim); }
.demo-pitch b { color: var(--dh-fg); font-weight: 700; }
.demo-head .demo-ask { border-color: var(--ink); background: var(--ink); color: var(--neon); }
.demo iframe { flex: 1; min-height: 0; width: 100%; border: 0; background: #fff; }
/* 진단 문의 inside the demo: a card over the demo, which stays open behind it (the open dialog is already fixed, so it anchors the card) */
.demo-pop { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; background: rgba(44, 48, 54, 0.45); }
.demo-pop[hidden] { display: none; }
.demo-pop-card {
  position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 36px 36px 32px; border-radius: 16px;
  background: #F1F0EA; color: var(--ink); box-shadow: 0 24px 60px rgba(44, 48, 54, 0.28);
  --fg: var(--ink); --fg-dim: rgba(44, 48, 54, 0.7); --accent: var(--ink);
}
.demo-pop-card h2 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; letter-spacing: -0.03em; }
.demo-pop-lead { margin: 8px 0 0; font-size: 15px; color: var(--fg-dim); }
.demo-pop-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--fg-dim); font-size: 22px; line-height: 1; cursor: pointer; }
.demo-pop-x:hover { background: rgba(44, 48, 54, 0.06); color: var(--ink); }
.demo-pop .ask { margin-top: 28px; }
.demo-pop .ask-grid { gap: 24px 28px; }
.demo-pop .f input, .demo-pop .f textarea { font-size: 20px; }
.demo-pop .ask-foot { margin-top: 28px; }
.demo-pop .send { background: var(--ink); color: var(--neon); }
.demo-pop .f [aria-invalid="true"] { border-bottom-color: #C2412D; }
.demo-pop .demo-pop .ask-done { font-size: 26px; }
html:has(.demo[open]) { overflow: hidden; }
@media (max-width: 900px) {
  .try { order: 1; justify-self: center; margin-top: 16px; }   /* phones: right under the step bar */
  .demo { width: 100%; height: 100%; border-radius: 0; }
  .demo-head { padding-left: 16px; gap: 6px; }
  .demo-tag { display: none; }
  .demo-head { flex-wrap: wrap; }
  .demo-head > b { flex: 1; }
  .demo-pitch { order: 1; flex-basis: 100%; margin: 2px 0 0; text-align: left; font-size: 13px; }
  .demo-pop { padding: 12px; align-items: end; }
  .demo-pop-card { padding: 28px 20px 24px; }
  .demo-pop .ask-grid { grid-template-columns: 1fr; }
  .ask-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* a phone on its side (or a zoomed-in laptop): too short to stack the copy over the scene, so they sit side by side */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 560px) {
  .case-stage { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 28px; padding-top: 64px; padding-bottom: 16px; }
  .case-copy { align-self: center; }
  .case-vis { height: 100%; }
}

/* 44px touch areas on phones without changing what the controls look like */
.svc-tabs button::after { content: ""; position: absolute; inset: -5px 0; }
.reach-more a, .nav-ext a, .nav-logo { position: relative; }
.reach-more a::after, .nav-ext a::after, .nav-logo::after { content: ""; position: absolute; inset: -13px -4px; }
@media (max-width: 900px) { .reach-more { row-gap: 26px; } }   /* rows 44px apart so the two hit areas never overlap */
.c-phone input { padding-top: 6px; }
