/* www.stabv.com — main stylesheet (mobile first). Brand: docs/brand.md */
:root {
    --brand: #4D52B4;
    --brand-deep: #1B1E45;
    --brand-mid: #4E9CE8;
    --ink: #171A33;
    --text: #363A52;
    --muted: #5A6479;
    --line: #E2E6EF;
    --bg: #ffffff;
    --soft: #F6F9F3;
    --tint: #EEEFFA;
    --gold: #70D6C5;
    --gold-dark: #1A6A5D;
    --gold-soft: #E1EDD4;
    --gold-on-dark: #70D6C5; /* mint text on deep brand (9.2:1) */
    --on-dark: #ffffff;
    --on-dark-muted: #CDD2EE;
    --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --wrap: 1200px;
    --gap: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 12vw, 160px);
    --shadow: 0 1px 2px rgba(23, 26, 51, 0.05), 0 12px 32px rgba(23, 26, 51, 0.08);
    --shadow-lg: 0 30px 80px rgba(27, 30, 69, 0.22);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* keep anchors clear of the sticky header (2 rows on phones) */
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    word-break: keep-all;
    overflow-wrap: break-word;
    overflow-x: clip;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 0.5em;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(38px, 7.2vw, 88px);
    font-weight: 600;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(19px, 2vw, 22px);
    font-weight: 600;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--brand);
}

a:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 8px;
}

.dark a:focus-visible,
.final a:focus-visible,
.site-footer a:focus-visible {
    outline-color: #ffffff;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.narrow {
    max-width: 860px;
}

.center {
    text-align: center;
}

.center .lead {
    margin-left: auto;
    margin-right: auto;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--on-dark);
    padding: 8px 16px;
    z-index: 100;
}

.skip:focus {
    left: 8px;
    top: 8px;
}

/* ---- header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid rgba(23, 26, 51, 0.06);
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 106px;
    height: 28px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav a {
    display: block;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.nav a:hover {
    background: var(--soft);
}

.nav a[aria-current="page"] {
    color: var(--brand);
    background: var(--tint);
}

.nav .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* ---- buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--ink);
    color: var(--on-dark);
}

.btn-dark:hover {
    background: #24304D;
}

.btn-primary {
    background: var(--brand);
    color: var(--on-dark);
}

.btn-primary:hover {
    background: var(--brand-deep);
}

.btn-line {
    border-color: rgba(23, 26, 51, 0.2);
    color: var(--ink);
    background: #ffffff;
}

.btn-line:hover {
    background: var(--soft);
}

.btn-light {
    background: #ffffff;
    color: var(--ink);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.center .btn-row {
    justify-content: center;
}

.arrow::after {
    content: "→";
    transition: transform 0.2s ease;
}

.arrow:hover::after {
    transform: translateX(3px);
}

/* ---- common text ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.pill b {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-size: 13px;
}

.lead {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.65;
    color: var(--muted);
    max-width: 38em;
}

.gradient-text {
    color: var(--brand);
}

.note {
    font-size: 14px;
    color: var(--muted);
}

/* ---- hero ---- */
.hero {
    position: relative;
    padding: clamp(64px, 11vw, 140px) 0 0;
    text-align: center;
    overflow: clip;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto;
    height: 900px;
    background: none;
    pointer-events: none;
    z-index: -1;
}

.hero .pill {
    margin-bottom: 28px;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 500;
    color: var(--muted);
}

.hero .pill b {
    padding: 0;
    background: none;
    color: var(--gold-dark);
    font-weight: 600;
}

.hero .lead {
    margin: 0 auto 36px;
}

.hero-stage {
    position: relative;
    max-width: 1040px;
    margin: clamp(48px, 8vw, 96px) auto 0;
}

.hero-window {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    border: 1px solid var(--line);
    overflow: hidden;
}

.chip {
    position: absolute;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
}

.chip small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: 12px;
}

.chip .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    flex: none;
}

.chip .dot.ok {
    background: var(--brand);
}

.chip-1 {
    left: 6%;
    top: -26px;
}

.chip-2 {
    right: -40px;
    top: 48%;
}

.chip-3 {
    left: 8%;
    bottom: -24px;
}

/* ---- sections ---- */
.section {
    padding: var(--section) 0;
}

.section-tight {
    padding: clamp(48px, 7vw, 88px) 0;
}

.soft {
    background: var(--soft);
}

.dark {
    background: var(--brand-deep);
    color: var(--on-dark-muted);
}

.dark h2,
.dark h3 {
    color: var(--on-dark);
}

.dark .eyebrow {
    color: var(--gold-on-dark);
}

.dark .lead {
    color: var(--on-dark-muted);
}

.section-head {
    max-width: 52em;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
}

/* numbers */
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
    margin: 0;
}

.stats div {
    border-top: 2px solid var(--ink);
    padding-top: 16px;
}

.stats dt {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
}

.stats dd {
    margin: 0;
    order: -1;
    font-size: clamp(36px, 5.4vw, 64px);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stats dd small {
    font-size: 0.45em;
    font-weight: 600;
    margin-left: 2px;
}

.stats div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* story (sticky left, steps right) */
.story {
    display: grid;
    gap: 40px;
}

.story-aside .lead {
    margin-bottom: 24px;
}

.story-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.story-steps li {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
}

.story-steps .num {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-dark);
    background: var(--gold-soft);
    border-radius: 999px;
    padding: 2px 12px;
    margin-bottom: 14px;
}

.story-steps h3 {
    font-size: clamp(22px, 2.6vw, 30px);
}

.story-steps p {
    color: var(--muted);
    margin: 0;
}

.flow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.flow li {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    background: var(--tint);
    border-radius: 999px;
    padding: 4px 12px;
}

/* strengths (dark) */
.strengths {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.strengths li {
    display: grid;
    gap: 8px 32px;
    align-content: start;
    padding: clamp(24px, 4vw, 40px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.strengths .n {
    display: none;
}

.strengths h3 {
    font-size: clamp(22px, 3vw, 34px);
    margin: 0;
}

.strengths p {
    margin: 0;
    color: var(--on-dark-muted);
}

/* bento */
.bento {
    display: grid;
    gap: 16px;
}

.tile {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 3.4vw, 36px);
    overflow: hidden;
}

.soft .tile {
    border-color: transparent;
    box-shadow: var(--shadow);
}

.tile p {
    color: var(--muted);
    margin: 0;
}

.tile .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.tile-accent {
    background: var(--brand);
    color: var(--on-dark-muted);
}

.tile-accent h3 {
    color: var(--on-dark);
}

.tile-accent p {
    color: var(--on-dark-muted);
}

.tile .big {
    display: block;
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 600;
    color: var(--on-dark);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 12px;
}

/* procedure cards */
.cards {
    display: grid;
    gap: 16px;
}

.card-link {
    display: block;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-link p {
    color: var(--muted);
    margin: 0 0 16px;
}

.card-link .more {
    color: var(--brand);
    font-weight: 600;
    font-size: 15px;
}

/* checklist */
.checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checks li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tint) url("../img/check.svg?v=2") center / 12px no-repeat;
}

.split {
    display: grid;
    gap: 40px;
    align-items: start;
}

.panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 44px);
}

.badge-gs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
}

.badge-gs::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("../img/symbol.svg?v=5") center / contain no-repeat;
}

/* adoption steps */
.steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.steps li {
    counter-increment: step;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px 22px 22px 70px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

.steps h3 {
    font-size: 18px;
    margin: 4px 0 4px;
}

.steps p {
    color: var(--muted);
    margin: 0;
    font-size: 16px;
}

/* procedure (guide page) */
.proc {
    display: grid;
    gap: 28px;
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(28px, 4vw, 48px);
    border-top: 1px solid var(--line);
    background-clip: content-box;
}

.proc h2 {
    font-size: clamp(26px, 3.4vw, 40px);
}

.proc-steps {
    counter-reset: ps;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.proc-steps li {
    counter-increment: ps;
    position: relative;
    padding: 0 0 22px 48px;
}

.proc-steps li::before {
    content: counter(ps);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--tint);
    color: var(--brand);
    font-weight: 600;
    font-size: 14px;
}

.proc-steps li::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 34px;
    bottom: 4px;
    width: 2px;
    background: var(--line);
}

.proc-steps li:last-child::after {
    display: none;
}

.key {
    display: inline-block;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--soft);
    font-size: 0.9em;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

/* info list */
.info {
    margin: 0;
    border-top: 1px solid var(--line);
}

.info div {
    display: grid;
    gap: 4px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.info dt {
    font-weight: 600;
    color: var(--ink);
}

.info dd {
    margin: 0;
    color: var(--muted);
}

/* page hero (sub pages) */
.page-hero {
    position: relative;
    padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px);
    overflow: clip;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto;
    height: 600px;
    background: none;
    z-index: -1;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 72px);
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}

.toc a:hover {
    border-color: var(--brand);
}

/* final CTA */
.final {
    text-align: center;
    padding: var(--section) 0;
    background: var(--brand-deep);
    color: var(--on-dark-muted);
}

.final h2 {
    color: var(--on-dark);
    font-size: clamp(32px, 6vw, 72px);
}

.final .lead {
    color: var(--on-dark-muted);
    margin: 0 auto 36px;
}

/* ---- footer ---- */
.site-footer {
    background: var(--ink);
    color: var(--on-dark-muted);
    padding: 56px 0 40px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    gap: 32px;
}

.site-footer h2 {
    font-size: 14px;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0 0 12px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.site-footer a {
    color: var(--on-dark-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer address {
    font-style: normal;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

/* ---- 404 ---- */
.notfound {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--section) 0;
}

.notfound .code {
    font-size: 96px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 16px;
}

/* grid items must be able to shrink below their content width */
.grid-fix,
.story,
.bento,
.cards,
.split,
.steps,
.proc,
.footer-grid {
    grid-template-columns: minmax(0, 1fr);
}

.story > *,
.bento > *,
.cards > *,
.split > *,
.proc > *,
.footer-grid > * {
    min-width: 0;
}

/* ---- scroll reveal (CSS only; browsers without scroll timelines just show content) ---- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 60%;
        }
    }
}

@keyframes rise {
    from {
        opacity: 0;
        translate: 0 16px;
    }

    to {
        opacity: 1;
        translate: none;
    }
}


/* ---- wider screens ---- */
@media (min-width: 720px) {
    html {
        scroll-padding-top: 80px;
    }

    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bento,
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info div {
        grid-template-columns: 180px 1fr;
    }

    .strengths {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 48px;
    }

    .strengths li:nth-child(-n+2) {
        padding-bottom: clamp(32px, 4vw, 48px);
    }

    .strengths li:nth-child(-n+2) h3 {
        font-size: clamp(26px, 3vw, 36px);
    }

    .strengths li:nth-child(n+3) h3 {
        font-size: 20px;
    }

    .strengths li:nth-child(n+3) p {
        font-size: 15px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .chip {
        display: inline-flex;
    }

    .story {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 72px;
        align-items: start;
    }

}

@media (min-width: 1000px) and (min-height: 760px) {
    .story-aside {
        position: sticky;
        top: 120px;
    }
}

@media (min-width: 1000px) {

    .bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bento .wide {
        grid-column: span 2;
    }

    .cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 64px;
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .proc {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .card-link,
    .arrow::after {
        transition: none;
    }
}

/* ---- small helpers ---- */
.btn-row.center {
    justify-content: center;
}

.notfound .lead {
    margin: 0 auto 28px;
}

.panel h2 {
    font-size: clamp(22px, 2.4vw, 28px);
}

.section .btn-row {
    margin-top: 32px;
}

/* header CTA: .nav a would otherwise override the button colors */
.nav a.btn-dark,
.nav a.btn-dark[aria-current="page"] {
    color: #ffffff;
    background: var(--ink);
}

.nav a.btn-dark:hover {
    background: #24304D;
}

.hero {
    padding-bottom: 56px;
}

.hero .btn-row {
    justify-content: center;
}

.hero-window img {
    width: 100%;
}

/* narrow phones: keep header to two rows (logo / menu) */
@media (max-width: 719px) {
    .nav a {
        padding: 10px 8px;
        font-size: 14px;
    }

    .nav a.btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .nav {
        gap: 4px;
    }
}

.pill {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 22px;
}

.pill b {
    flex: none;
    white-space: nowrap;
}

/* =========================================================
   Interactions (assets/js/main.js adds html.js). Without JS everything stays visible.
   ========================================================= */

/* header shrinks a little after scrolling */
.site-header {
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(23, 26, 51, 0.08);
}

/* slogan statement */
.slogan-section {
    padding: clamp(96px, 16vw, 220px) 0;
    text-align: center;
}

.slogan {
    margin: 0 auto;
    max-width: 16em;
    font-size: clamp(36px, 7.4vw, 104px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--ink);
}

.slogan .w {
    display: inline-block;
}

.slogan .accent {
    color: var(--brand);
}

.slogan-en {
    margin: 28px 0 0;
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--gold-dark);
}

.js .slogan .w {
    opacity: 0.12;
    transform: translateY(0.25em);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .slogan.is-in .w {
    opacity: 1;
    transform: none;
}

.js .slogan.is-in .w:nth-child(2) { transition-delay: 0.12s; }
.js .slogan.is-in .w:nth-child(3) { transition-delay: 0.24s; }
.js .slogan.is-in .w:nth-child(4) { transition-delay: 0.36s; }
.js .slogan.is-in .w:nth-child(5) { transition-delay: 0.48s; }
.js .slogan.is-in .w:nth-child(6) { transition-delay: 0.6s; }

/* story progress rail + active step */
.story-progress {
    display: none;
}

.story-current {
    display: none;
}

@media (min-width: 1000px) and (min-height: 760px) {
    .js .story-progress {
        display: block;
        position: relative;
        width: 3px;
        height: 160px;
        margin: 28px 0 12px;
        border-radius: 3px;
        background: var(--line);
        overflow: hidden;
    }

    .js .story-progress span {
        position: absolute;
        inset: 0;
        background: var(--brand);
        transform-origin: top;
        transform: scaleY(0);
    }

    .js .story-current {
        display: block;
        font-size: clamp(28px, 3vw, 40px);
        font-weight: 600;
        color: var(--brand);
        letter-spacing: -0.03em;
        margin-bottom: 24px;
    }

    .js .story-steps li {
        transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
        opacity: 0.55;
    }

    .js .story-steps li.is-active {
        opacity: 1;
        border-color: var(--brand);
        box-shadow: var(--shadow);
    }
}

/* pointer tilt + spotlight */
.tile,
.card-link {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
}

.tile,
.card-link {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .js .slogan .w {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .js .tile,
    .js .card-link {
        transform: none;
        transition: none;
    }
}

.hero,
.page-hero {
    isolation: isolate;
}

/* ---- real screens ---- */
.window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    background: var(--ink);
}

.window-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3F4A66;
}

.window-bar i:first-child {
    background: var(--brand-mid);
}

.window-bar i:nth-child(2) {
    background: var(--gold);
}

.window-bar span {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* hero shows the top of the real screen */
.hero-window img,
.screen-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    background: #f4f6fb;
}

.screen-frame img {
    aspect-ratio: auto;
    max-height: 760px;
}

.showcase .section-head.center {
    text-align: center;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 32px;
    padding: 6px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.tabs[hidden] {
    display: none;
}

.tabs button {
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tabs button:hover {
    color: var(--ink);
}

.tabs button[aria-selected="true"] {
    background: var(--ink);
    color: #ffffff;
}

.tabs button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}

.screen-panels {
    display: grid;
    gap: 48px;
}

.screen-panel {
    margin: 0;
}

.screen-panel figcaption {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

.screen-panel figcaption b {
    color: var(--brand);
}

.js .screen-panel[hidden] {
    display: none;
}

.js .screen-panel {
    animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        translate: 0 16px;
    }

    to {
        opacity: 1;
        translate: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .screen-panel {
        animation: none;
    }
}

/* language switch (한글 / EN) — row 1 next to the logo on phones, after the menu on wider screens */
.lang {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
}

.lang a {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.lang a:hover {
    background: var(--soft);
}

.lang a[aria-current="true"] {
    color: #ffffff;
    background: var(--ink);
}

.site-header .logo { order: 1; }
.site-header .nav { order: 2; }
.site-header .lang { order: 3; }

@media (max-width: 719px) {
    .site-header .lang { order: 2; margin-left: auto; }
    .site-header .nav { order: 3; }
}

/* English slogan line: "on record" carries the brand color, echoing the logo's "on" */
.slogan-en .on {
    color: var(--brand);
}

html[lang="en"] .slogan {
    letter-spacing: -0.03em;
}

.site-header .nav { margin-left: auto; }

@media (max-width: 719px) {
    .site-header .nav {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .site-header .nav ul {
        flex-wrap: nowrap;
        gap: 0;
    }

    .site-header .nav a {
        padding: 10px 7px;
        white-space: nowrap;
    }

    .site-header .nav a.btn {
        padding: 10px 12px;
    }
}

/* ==== motion (2026-11-22, pm-0080): A hero document-flow canvas, B pointer tilt/spotlight, C scroll staging.
   Classes are added by main.js only when reduced motion is off; without JS nothing here applies. ==== */

/* A: document-flow canvas behind the hero */
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 30%, #000 55%, transparent 85%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, #000 30%, #000 55%, transparent 85%);
}

/* B + C share the hero screen transform */
.motion-b .hero-stage,
.motion-c .hero-stage {
    perspective: 1400px;
}

.motion-b .hero-stage .hero-window,
.motion-c .hero-stage .hero-window {
    position: relative;
    transform-origin: 50% 0;
    transform: rotateX(calc(var(--rx, 0deg) + var(--unfold, 0) * 22deg)) rotateY(var(--ry, 0deg)) scale(calc(1 - var(--unfold, 0) * 0.08));
    will-change: transform;
}

.motion-b .hero-stage .hero-window {
    transition: transform 0.25s ease-out;
}

/* B: sheen that follows the pointer */
.motion-b .hero-stage .hero-window::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.28), transparent 45%);
    opacity: var(--sheen, 0);
    transition: opacity 0.3s ease;
}

/* B: chips float and follow the pointer at different depths */
.motion-b .chip {
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
    transition: transform 0.3s ease-out;
}

.motion-b .chip > span:last-child {
    animation: m-float 6s ease-in-out infinite;
}

.motion-b .chip-2 > span:last-child {
    animation-delay: -2s;
}

.motion-b .chip-3 > span:last-child {
    animation-delay: -4s;
}

.motion-b .chip .dot {
    animation: m-pulse 2.4s ease-out infinite;
}

@keyframes m-float {
    50% {
        transform: translateY(-6px);
    }
}

@keyframes m-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(112, 214, 197, 0.6);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(112, 214, 197, 0);
    }
}

/* B: card glow and border spotlight (pointer devices only) */
.motion-b-pointer .tile,
.motion-b-pointer .card-link {
    position: relative;
    background-image: radial-gradient(320px circle at var(--mx) var(--my), rgba(77, 82, 180, 0.08), transparent 60%);
}

.motion-b-pointer .tile::before,
.motion-b-pointer .card-link::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: radial-gradient(220px circle at var(--mx) var(--my), var(--brand), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.motion-b-pointer .tile:hover::before,
.motion-b-pointer .card-link:hover::before {
    opacity: 1;
}

/* C: staggered entry and heading underline */
.motion-c .m-stagger {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.motion-c .m-stagger.is-in {
    opacity: 1;
    transform: none;
}

.motion-c .m-stagger.reveal {
    animation: none;
}

.motion-c .section-head h2 {
    padding-bottom: 6px;
    background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 100% / 0 3px;
    transition: background-size 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion-c .section-head.is-in h2 {
    background-size: 64px 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-canvas {
        display: none;
    }
}

.motion-c .section-head.center h2 {
    background-position: 50% 100%;
}
