:root {
  --bg: #141311;
  --bg-2: #1b1a17;
  --bg-3: #23211d;
  --line: #34312b;
  --text: #e9e5dd;
  --text-hi: #f7f4ee;
  --muted: #9d968a;
  --accent: #ea7b3f;
  --accent-ink: #1a0f08;
  --accent-tint: rgba(234, 123, 63, .12);
  --live: #5fd08a;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .7);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4ef; --bg-2: #fffdf9; --bg-3: #efebe3; --line: #e0dacf;
    --text: #2a2722; --text-hi: #151310; --muted: #6f685d;
    --accent: #ad4c17; --accent-ink: #fff; --accent-tint: rgba(173, 76, 23, .1);
    --live: #15773f; --shadow: 0 24px 48px -30px rgba(60, 45, 20, .35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f4ef; --bg-2: #fffdf9; --bg-3: #efebe3; --line: #e0dacf;
  --text: #2a2722; --text-hi: #151310; --muted: #6f685d;
  --accent: #ad4c17; --accent-ink: #fff; --accent-tint: rgba(173, 76, 23, .1);
  --live: #15773f; --shadow: 0 24px 48px -30px rgba(60, 45, 20, .35);
  color-scheme: light;
}
:lang(ja) { --sans: "Inter", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) { --sans: "Inter", "Noto Sans KR", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; transition: background .3s var(--ease), color .3s var(--ease); }
:lang(ja) body, :lang(ko) body { font-size: 16px; line-height: 1.9; }
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; line-height: 1.7; }
.dim { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--bg-2); padding: 8px 14px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 13px 22px; border-radius: 999px; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-line { border: 1px solid var(--line); color: var(--text-hi); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(24px, calc((100% - 1120px) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; color: var(--text-hi); letter-spacing: -.01em; }
.brand-role { font-size: 11px; color: var(--muted); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav, .nav * { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.nav-links { display: flex; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--muted); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text-hi); }
.lang { display: flex; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.lang button:hover { color: var(--text-hi); }
.lang button[aria-pressed="true"] { background: var(--bg-3); color: var(--text-hi); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color .2s var(--ease), background .2s var(--ease); }
.icon-btn:hover { color: var(--text-hi); background: var(--bg-3); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-icons { display: contents; }
.theme { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.theme:hover { color: var(--text-hi); background: var(--bg-3); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme .i-moon { display: none; }
:root[data-theme="light"] .theme .i-sun { display: none; }
:root[data-theme="light"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme .i-sun { display: none; }
  :root:not([data-theme]) .theme .i-moon { display: block; }
}

/* background: drawing-sheet dot grid that follows the cursor */
:root { --grid-dot: rgba(233, 229, 221, .16); --mx: 70%; --my: 30%; }
:root[data-theme="light"] { --grid-dot: rgba(40, 32, 20, .16); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --grid-dot: rgba(40, 32, 20, .16); } }
.bg-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(420px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%); mask-image: radial-gradient(420px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%); }
main, .footer { position: relative; z-index: 1; }

/* shared type */
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 700; color: var(--text-hi); letter-spacing: -.02em; margin-bottom: 28px; }
:lang(ja) h2, :lang(ko) h2 { letter-spacing: -.01em; }
.lead { max-width: 680px; color: var(--muted); margin: -12px 0 40px; }
.prose p + p { margin-top: 14px; }
.prose { color: var(--text); }
.label { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

/* "title block" sheet motif */
.sheet { border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; color: var(--text-hi); }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cell { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cell:not(.span-2):has(+ .cell:not(.span-2)) { border-right: 1px solid var(--line); }
.span-2 { grid-column: 1 / -1; }
.cell:last-child { border-bottom: 0; }
.cell dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.cell dd { color: var(--text-hi); font-size: 14.5px; line-height: 1.6; }
.cell dd.small { font-size: 12.5px; color: var(--text); }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--live); font-size: 11px; letter-spacing: .12em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* hero */
.hero { display: flex; flex-direction: column; gap: 36px; min-height: calc(100svh - 70px); padding: 36px 0 44px; }
.hero-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); white-space: nowrap; line-height: 1.02; font-weight: 700; color: var(--text-hi); letter-spacing: -.035em; }
.hero-tagline { margin-top: 18px; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.4; font-weight: 600; color: var(--text-hi); letter-spacing: -.01em; }
.hero-tagline em { font-style: normal; color: var(--accent); }
.hero-intro { max-width: 540px; margin-top: 20px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual { position: relative; height: clamp(380px, 56vh, 580px); }
.hero-canvas { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; touch-action: pan-y; }
.hero-hint, .hero-caption { position: absolute; z-index: 1; font-size: 11px; color: var(--muted); pointer-events: none; }
.hero-hint { top: 4px; right: 0; }
.hero-caption { bottom: 6px; left: 0; letter-spacing: .1em; }
:lang(ja) .hero-hint, :lang(ko) .hero-hint { font-family: var(--sans); }
.titleblock { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); box-shadow: var(--shadow); }
.titleblock .cell { border-bottom: 0; border-right: 1px solid var(--line); }
.titleblock .cell:nth-child(1), .titleblock .cell:nth-child(4), .titleblock .cell:nth-child(5) { grid-column: span 3; }
.titleblock .cell:nth-child(2) { grid-column: span 2; }
.titleblock .cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.titleblock .cell:nth-child(3), .titleblock .cell:nth-child(5) { border-right: 0; }
.titleblock b { font-weight: 600; }
.titleblock .note { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.titleblock .live { font-size: 10.5px; }

/* sections */
.section { padding: 110px 0; }
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 64px; }
.about-stack { padding-top: 70px; }
.stack-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.stack-grid li { padding: 12px 14px; font-size: 13px; color: var(--text-hi); border-bottom: 1px solid var(--line); }
.stack-grid li:nth-child(odd) { border-right: 1px solid var(--line); }
.stack-grid li:nth-last-child(-n+2) { border-bottom: 0; }

/* timeline */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 180px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 180px 1fr; }
.tl-item + .tl-item { margin-top: 48px; }
.tl-when { font-size: 13px; color: var(--muted); padding-top: 4px; }
.tl-body { position: relative; padding-left: 36px; }
.tl-body::before { content: ""; position: absolute; left: -5px; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-item:first-child .tl-body::before { background: var(--accent); }
.tl-body h3 { font-size: 20px; font-weight: 700; color: var(--text-hi); line-height: 1.4; margin-bottom: 12px; }
.tl-role { display: inline-block; margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.bullets li { position: relative; padding-left: 18px; color: var(--text); }
.bullets li + li { margin-top: 8px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .8em; width: 7px; height: 1.5px; background: var(--accent); }

/* journey */
.journey { position: relative; margin-top: 12px; }
.journey::before { content: ""; position: absolute; left: 47px; top: 18px; bottom: 0; width: 1px; background: linear-gradient(var(--line), var(--line) 85%, transparent); }
.step { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 28px; }
.step + .step { margin-top: 96px; }
.step-mark { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); letter-spacing: .06em; background: var(--bg); padding: 4px 0 8px; z-index: 1; }
.step-mark span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 500; background: var(--bg); }
.step:not(#step-pmo) .step-mark span { background: var(--accent); color: var(--accent-ink); }
.work-sub { margin: -8px 0 22px; font-size: 17px; color: var(--muted); }
.carry { position: relative; margin-top: 36px; padding: 14px 18px 14px 44px; border-radius: 8px; background: var(--accent-tint); color: var(--text-hi); font-size: 15px; line-height: 1.7; }
.carry::before { content: "↓"; position: absolute; left: 18px; top: 13px; font-family: var(--mono); color: var(--accent); font-weight: 600; }
#step-pmo .work-info { margin-top: 8px; }

/* works */
.work-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.work-no { font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.work-head h3 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; color: var(--text-hi); letter-spacing: -.02em; }
.work-cat { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.work-info { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 48px; margin-top: 28px; align-items: start; }
.metric { margin-top: 18px; padding: 12px 14px; font-size: 12.5px; line-height: 1.7; color: var(--text); background: var(--accent-tint); border-radius: 8px; }
.ext { color: var(--accent); font-weight: 600; font-size: 14px; }
.ext:hover { text-decoration: underline; text-underline-offset: 3px; }

/* browser frame gallery */
.frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame-url { flex: 1; max-width: 360px; margin: 0 auto; text-align: center; font-size: 12px; color: var(--muted); background: var(--bg-3); border-radius: 6px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-spacer { width: 42px; }
.frame-stage { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--bg-3); cursor: zoom-in; overflow: hidden; }
.frame-stage img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.frame[data-fit="contain"] .frame-stage { background: #f4f5f7; }
.frame[data-fit="contain"] .frame-stage img { object-fit: contain; object-position: center; }
.frame-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.frame-caption { font-size: 12px; color: var(--muted); }
.frame-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.frame-nav .dot { width: 22px; height: 22px; display: grid; place-items: center; }
.frame-nav .dot::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--line); transition: background .2s var(--ease); }
.frame-nav .dot[aria-current="true"]::before { background: var(--accent); }
.frame-nav .arrow { width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 18px; }
.frame-nav .arrow:hover { background: var(--bg-3); color: var(--text-hi); }

/* minor work */
.minor { margin-top: 96px; }
.minor-body { display: flex; justify-content: space-between; gap: 32px; padding: 22px 22px 24px; align-items: flex-end; flex-wrap: wrap; }
.minor-body h3 { font-size: 20px; font-weight: 700; color: var(--text-hi); margin-bottom: 6px; }
.minor-body p { color: var(--text); max-width: 620px; font-size: 15px; }
.minor-side { text-align: right; }
.minor-side p { color: var(--muted); margin-bottom: 6px; }

/* contact */
.contact { text-align: center; padding-bottom: 130px; }
.contact .lead { margin: -8px auto 26px; }
.contact-mail { display: inline-block; font-size: clamp(22px, 3.6vw, 36px); font-weight: 700; color: var(--text-hi); letter-spacing: -.02em; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: color .2s var(--ease); }
.contact-mail:hover { color: var(--accent); }
.contact .hero-actions { justify-content: center; }

.footer { display: flex; justify-content: space-between; padding: 26px 0 34px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.footer a:hover { color: var(--accent); }

/* lightbox */
.lightbox { margin: auto; max-width: min(1400px, 94vw); background: transparent; border: 0; color: #e9e5dd; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 9, 8, .92); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lb-close { position: fixed; top: 16px; right: 22px; font-size: 32px; width: 44px; height: 44px; color: #b9b2a6; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.lb-bar button { font-size: 28px; width: 44px; height: 44px; color: #b9b2a6; }
.lb-close:hover, .lb-bar button:hover { color: #ea7b3f; }
.lb-caption { font-size: 13px; color: #b9b2a6; text-align: center; min-width: 240px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before { transition: none !important; animation: none !important; }
}

/* responsive */
@media (max-width: 480px) { .brand { display: none; } .nav { justify-content: flex-end; } }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { min-height: auto; padding-top: 56px; }
  .hero-main { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { height: 380px; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock .cell { grid-column: auto !important; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .titleblock .cell:nth-child(1), .titleblock .cell:nth-child(4), .titleblock .cell:nth-child(5) { grid-column: 1 / -1 !important; }
  .titleblock .cell:nth-child(2) { border-right: 1px solid var(--line) !important; }
  .titleblock .cell:last-child { border-bottom: 0; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-stack { padding-top: 0; }
  .work-info { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding: 10px 16px; }
  .nav-right { gap: 8px; }
  .brand-role { display: none; }
  .hero-visual { height: 320px; }
  .hero-canvas { left: -4%; width: 108%; }
  .btn-sm { padding: 8px 12px; font-size: 12px; }
  .lang button { padding: 3px 6px; }
  .section { padding: 76px 0; }
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 28px; }
  .tl-body { padding-left: 0; }
  .tl-body::before { left: -28px; top: -22px; }
  .tl-when { margin-bottom: 6px; }
  .tl-role { display: block; margin: 2px 0 0; }
  .frame-dots, .frame-spacer { display: none; }
  .frame-caption { font-size: 11px; }
  .minor-side { text-align: left; }
  .footer { flex-direction: column; gap: 6px; }
  .journey::before { left: 17px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; }
  .step-mark { top: 70px; font-size: 0; gap: 0; }
  .step-mark span { width: 36px; height: 36px; font-size: 12px; }
  .work-sub { font-size: 15px; }
  .carry { font-size: 14px; }
}
.nw { white-space: nowrap; }

/* ---- P2: per-product presentation ---- */
.frame { transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.frame:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.frame:hover .frame-dots i:first-child { background: var(--accent); }
.frame-dots i { transition: background .3s var(--ease); }

/* racu: annotated report */
.annot { position: relative; background: #f4f5f7; }
.annot-img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.annot-img img { width: 100%; height: 100%; object-fit: contain; }
.pin { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 500; display: grid; place-items: center; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 6px 14px -4px rgba(0,0,0,.4); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pin.on, .pin:hover { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 18px -4px rgba(0,0,0,.45); }
.annot-foot { display: block; padding: 14px 16px 16px; }
.pin-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.legend-item { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13.5px; line-height: 1.6; color: var(--text); padding: 4px 6px; margin: -4px -6px; border-radius: 6px; transition: background .2s var(--ease), color .2s var(--ease); }
.legend-item .mono { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--bg-3); color: var(--accent); margin-top: 1px; transition: background .2s var(--ease), color .2s var(--ease); }
.legend-item.on { background: var(--accent-tint); color: var(--text-hi); }
.legend-item.on .mono { background: var(--accent); color: var(--accent-ink); }
.more { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.more button { color: var(--accent); font-family: var(--sans); font-size: 13px; font-weight: 600; }
.more button::after { content: " ↗"; font-family: var(--mono); font-weight: 400; }
.more button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* INBOT: three-step flow, stepping down like a conversation */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.flow li { position: relative; }
.flow li:nth-child(2) { margin-top: 36px; }
.flow li:nth-child(3) { margin-top: 72px; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -30px; top: 32%; font-family: var(--mono); color: var(--accent); font-size: 18px; }
.flow-card { position: relative; display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow); cursor: zoom-in; transition: transform .35s var(--ease), border-color .35s var(--ease); }
.flow-card .frame-dots { display: flex; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.flow-card .frame-dots i { width: 7px; height: 7px; }
.flow-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.flow-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.flow-card:hover .frame-dots i:first-child { background: var(--accent); }
.flow-label { margin-top: 12px; display: flex; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text-hi); line-height: 1.5; }
.flow-label .mono { color: var(--accent); font-size: 12px; font-weight: 500; padding-top: 3px; }

/* Studio: product-style view switcher */
.mode-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--bg-3); }
.mode-tabs button { display: flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 6px; font-size: 12.5px; color: var(--muted); transition: background .2s var(--ease), color .2s var(--ease); }
.mode-tabs button span { font-size: 10px; opacity: .75; }
.mode-tabs button:hover { color: var(--text-hi); }
.mode-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.frame-bar:has(.mode-tabs) .frame-url { flex: 0 1 auto; margin: 0 0 0 auto; max-width: 220px; }
.modes-stage { position: relative; }
.modes-stage img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); transform: scale(1.015); }
.modes-stage img.active { opacity: 1; transform: none; }
.modes-progress { width: 90px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; flex-shrink: 0; }
.modes-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: modesbar 3.8s linear forwards; }
@keyframes modesbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* nav: current section */
.nav-links a { position: relative; }
.nav-links a.active { color: var(--text-hi); }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .25s var(--ease); }
.nav-links a.active::after { transform: translateX(-50%) scale(1); }

@media (max-width: 980px) {
  .flow { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; }
  .flow li { scroll-snap-align: start; margin-top: 0 !important; }
  .flow li::after { display: none; }
  .pin-legend { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pin { width: 18px; height: 18px; font-size: 10px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
  .frame-bar:has(.mode-tabs) .frame-url { display: none; }
  .mode-tabs button span { display: none; }
}
