:root {
    --bg: #fffef9;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --text: #101828;
    --muted: #667085;
    --green: #13795b;
    --yellow: #c78310;
    --blue: #2f6db2;
    --pink: #c8547a;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --width: 1220px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Noto Sans KR", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(19, 121, 91, 0.08), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(199, 131, 16, 0.08), transparent 20%),
        linear-gradient(180deg, #fffefc 0%, #f8faf5 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.hub-shell,
.portfolio-shell {
    width: min(calc(100% - 32px), var(--width));
    margin: 0 auto;
    padding: 28px 0 96px;
}

.hub-hero {
    padding: 48px 0 28px;
}

.hub-label,
.eyebrow {
    margin: 0 0 14px;
    color: var(--green);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.84rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hub-hero h1,
.c1-hero h1,
.c2-hero h1,
.c3-hero h1,
.c4-board h1,
.c5-poster h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.9rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hub-description,
.lead,
.c1-card p,
.timeline-body p,
.story-text p,
.board-card p,
.poster-card p,
.c1-feature p {
    color: var(--muted);
    line-height: 1.8;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.hub-card,
.c1-card,
.c1-feature,
.mini-panel,
.timeline-body,
.story-band,
.board-card,
.metric-strip div,
.poster-card,
.poster-chip,
.summary-chip {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hub-card {
    display: block;
    padding: 24px;
    transition: transform 180ms ease;
}

.hub-card:hover,
.back-link:hover {
    transform: translateY(-2px);
}

.hub-number {
    display: inline-block;
    margin-bottom: 12px;
    font-family: "Space Grotesk", sans-serif;
    color: rgba(16, 24, 40, 0.36);
    font-size: 1.5rem;
    font-weight: 700;
}

.hub-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.back-link,
.site-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.site-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.c1-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 380px;
    gap: 22px;
    padding: 24px 0 28px;
    align-items: stretch;
}

.c1-hero span,
.c2-hero span,
.c3-hero span,
.c4-board span,
.c5-poster span {
    color: #1d5f8c;
}

.c1-copy,
.c1-feature,
.c2-hero,
.c3-hero,
.c4-board,
.c5-poster {
    padding: 30px;
    border-radius: var(--radius-xl);
}

.c1-copy {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(243, 249, 246, 0.95));
    border: 1px solid var(--line);
}

.c1-feature span,
.card-number,
.timeline-mark,
.story-text span,
.board-card span,
.poster-card span {
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.c1-feature strong {
    display: block;
    margin: 12px 0;
    font-size: 1.7rem;
    line-height: 1.2;
}

.c1-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.c1-intro,
.c1-principles,
.c2-summary,
.c2-footer {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.c1-intro,
.c1-principles,
.c2-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-panel {
    padding: 22px;
}

.mini-panel strong,
.summary-chip strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Space Grotesk", sans-serif;
}

.c1-card {
    min-height: 260px;
    padding: 28px;
}

.c1-card h2,
.timeline-body h2,
.story-text h2,
.board-card h2,
.poster-card h2 {
    margin: 14px 0 12px;
    font-size: 1.6rem;
    line-height: 1.2;
}

.tone-green { background: linear-gradient(180deg, #effaf5 0%, #ffffff 100%); }
.tone-yellow { background: linear-gradient(180deg, #fff9ec 0%, #ffffff 100%); }
.tone-blue { background: linear-gradient(180deg, #eef5ff 0%, #ffffff 100%); }
.tone-pink { background: linear-gradient(180deg, #fff1f6 0%, #ffffff 100%); }

.card-tag {
    margin: 0 0 12px;
    color: #36526b;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.detail-list {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.c2-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(249, 251, 245, 0.96));
    border: 1px solid var(--line);
}

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

.summary-chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 108px;
    padding: 20px;
}

.summary-chip span {
    color: var(--muted);
}

.timeline {
    position: relative;
    display: grid;
    gap: 22px;
    margin-top: 28px;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 16px;
    width: 2px;
    background: linear-gradient(180deg, rgba(19, 121, 91, 0.25), rgba(47, 109, 178, 0.18));
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.timeline-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid rgba(19, 121, 91, 0.3);
    color: var(--green);
}

.timeline-body {
    padding: 24px;
}

.c3-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: end;
    background: linear-gradient(180deg, rgba(255, 249, 238, 0.82), rgba(255, 255, 255, 0.9));
    border: 1px solid var(--line);
}

.story-band {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    overflow: hidden;
    margin-top: 22px;
}

.story-band.reverse {
    grid-template-columns: 320px 1fr;
}

.story-text {
    padding: 34px;
}

.story-visual {
    min-height: 240px;
    background-size: cover;
    background-position: center;
}

.visual-a {
    background:
        linear-gradient(135deg, rgba(19, 121, 91, 0.18), rgba(255, 255, 255, 0.1)),
        repeating-linear-gradient(135deg, #ecfbf6 0 18px, #f8fffc 18px 36px);
}

.visual-b {
    background:
        linear-gradient(135deg, rgba(199, 131, 16, 0.16), rgba(255, 255, 255, 0.12)),
        radial-gradient(circle at 20% 30%, #fff7e5 0 25%, transparent 26%),
        radial-gradient(circle at 75% 70%, #fff2cd 0 22%, transparent 23%);
}

.visual-c {
    background:
        linear-gradient(135deg, rgba(47, 109, 178, 0.18), rgba(255, 255, 255, 0.1)),
        repeating-linear-gradient(90deg, #edf5ff 0 24px, #ffffff 24px 48px);
}

.c4-board {
    background: linear-gradient(180deg, rgba(242, 248, 255, 0.65), rgba(255, 255, 255, 0.95));
    border: 1px solid var(--line);
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.metric-strip div {
    padding: 20px;
}

.metric-strip strong {
    display: block;
    margin-bottom: 8px;
    font-family: "Space Grotesk", sans-serif;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.board-card {
    padding: 26px;
    min-height: 220px;
}

.board-card.tall {
    min-height: 280px;
}

.c5-poster {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.9)),
        linear-gradient(135deg, rgba(19, 121, 91, 0.1), rgba(199, 131, 16, 0.08));
    border: 1px solid var(--line);
}

.poster-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.poster-chip {
    display: grid;
    place-items: center;
    min-height: 130px;
    padding: 18px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    text-align: center;
}

.chip-green { background: #ecfbf6; }
.chip-yellow { background: #fff8e7; }
.chip-blue { background: #edf5ff; }
.chip-pink { background: #fff1f6; }

.poster-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.poster-card {
    padding: 28px;
    min-height: 210px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 245, 0.86));
}

@media (max-width: 980px) {
    .hub-grid,
    .c1-hero,
    .c1-grid,
    .c1-intro,
    .c1-principles,
    .c2-summary,
    .c2-footer,
    .c3-hero,
    .story-band,
    .story-band.reverse,
    .board-grid,
    .c5-poster,
    .poster-stack {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .hub-shell,
    .portfolio-shell {
        width: min(calc(100% - 20px), var(--width));
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric-strip,
    .poster-right,
    .c2-summary {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }
}

.project-stack {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

.project-sheet {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.project-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.project-no {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(16, 24, 40, 0.36);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.project-one-line {
    margin: 10px 0 0;
    color: #344054;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #475467;
    font-size: 0.92rem;
}

.timeline-project {
    padding: 26px;
}

.star-panels {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.star-panel {
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 24px;
    background: #ffffff;
}

.star-panel summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
}

.star-panel summary::-webkit-details-marker {
    display: none;
}

.star-panel summary::after {
    content: "⌃";
    margin-left: auto;
    color: #1f2937;
    font-size: 1.2rem;
    transform: rotate(180deg);
    transition: transform 180ms ease;
}

.star-panel[open] summary::after {
    transform: rotate(0deg);
}

.star-panel summary span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.star-panel summary strong {
    color: #0f172a;
    font-size: 1.95rem;
    line-height: 1;
}

.star-panel p,
.compact-list,
.lesson-line {
    margin: 0;
    padding: 0 24px 24px;
    color: #475467;
    line-height: 1.8;
}

.compact-list {
    padding-left: 42px;
}

.compact-list li + li {
    margin-top: 8px;
}

.flow-line {
    padding-bottom: 14px;
    color: #344054;
    font-weight: 600;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 18px;
}

.result-grid div {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f5fbf7;
    color: #14532d;
    font-weight: 600;
}

.lesson-line {
    font-size: 0.98rem;
}

.star-red {
    border-color: #f5c2c7;
    box-shadow: 0 12px 26px rgba(248, 113, 113, 0.12);
}

.star-red summary {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.94), rgba(255, 255, 255, 1));
}

.star-red summary span {
    color: #dc2626;
}

.star-yellow {
    border-color: #f7d774;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.12);
}

.star-yellow summary {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 1));
}

.star-yellow summary span {
    color: #d97706;
}

.star-blue {
    border-color: #bed7ff;
    box-shadow: 0 12px 26px rgba(96, 165, 250, 0.12);
}

.star-blue summary {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 1));
}

.star-blue summary span {
    color: #2563eb;
}

.star-green {
    border-color: #a7f3d0;
    box-shadow: 0 12px 26px rgba(52, 211, 153, 0.12);
}

.star-green summary {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.94), rgba(255, 255, 255, 1));
}

.star-green summary span {
    color: #059669;
}

@media (max-width: 720px) {
    .project-sheet,
    .timeline-project {
        padding: 20px;
    }

    .result-grid {
        grid-template-columns: 1fr;
        padding-left: 18px;
        padding-right: 18px;
    }

    .star-panel summary {
        padding: 18px;
    }

    .star-panel summary strong {
        font-size: 1.55rem;
    }

    .star-panel p,
    .compact-list,
    .lesson-line {
        padding-left: 18px;
        padding-right: 18px;
    }

    .compact-list {
        padding-left: 34px;
    }
}

.main-portfolio {
    padding-top: 24px;
}

.intro-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 42px;
    align-items: center;
    min-height: 88vh;
    padding: 28px 0 80px;
}

.intro-copy h1 {
    margin: 0;
    color: #111827;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 8vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.intro-copy h1 span,
.project-intro-head h2 {
    color: #2563eb;
}

.intro-highlight {
    display: inline-block;
    margin: 22px 0 10px;
    padding: 6px 10px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.85), rgba(255, 255, 255, 0.4));
    color: #2563eb;
    font-weight: 700;
}

.intro-text {
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.9;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.06);
}

.intro-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 540px;
}

.portrait-frame {
    position: relative;
    display: grid;
    place-items: center;
    width: min(420px, 100%);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(219, 234, 254, 0.72));
    box-shadow: 0 30px 70px rgba(37, 99, 235, 0.12);
}

.portrait-frame::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 999px;
    border: 10px solid #ffffff;
}

.portrait-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: calc(100% - 56px);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: linear-gradient(135deg, #dbeafe 0%, #eef6ff 40%, #fdf2f8 100%);
    color: #111827;
    text-align: center;
}

.portrait-core span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 4.4rem;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.portrait-core p {
    margin: 8px 0 0;
    color: #475467;
    font-size: 1rem;
}

.float-dot,
.float-shape {
    position: absolute;
}

.float-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.5);
}

.dot-a { top: 70px; right: 40px; width: 34px; height: 34px; }
.dot-b { bottom: 120px; left: 30px; width: 24px; height: 24px; }
.dot-c { top: 140px; left: 60px; width: 10px; height: 10px; }

.float-shape {
    right: 90px;
    bottom: 60px;
    width: 74px;
    height: 74px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.8), rgba(167, 243, 208, 0.8));
    transform: rotate(-32deg);
}

.pill-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #2563eb;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
}

.section-pill {
    margin-bottom: 18px;
}

.pill-green {
    border-color: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.project-intro-head {
    text-align: center;
}

.project-intro-head h2,
.stack-intro h2 {
    margin: 18px 0 12px;
    color: #111827;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    letter-spacing: -0.06em;
}

.section-intro .section-pill,
.project-intro-head .pill-label {
    margin-left: auto;
    margin-right: auto;
}

.project-intro-head p,
.stack-intro p {
    margin: 0 auto;
    max-width: 720px;
    color: #6b7280;
    font-size: 1.08rem;
    line-height: 1.8;
}

.project-intro-meta {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

.project-summary-card,
.stack-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.project-summary-card {
    padding: 28px;
}

.project-summary-card strong {
    display: block;
    margin-top: 10px;
    color: #101828;
    font-size: 1.5rem;
    line-height: 1.35;
}

.project-summary-card p {
    margin: 14px 0 0;
    color: #667085;
    line-height: 1.85;
}

.project-tech-line {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.tech-line-label {
    color: #475467;
    font-family: "Space Grotesk", sans-serif;
}

.project-tech-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: #475467;
}

.project-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: center;
}

.showcase-thumb,
.showcase-meta {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.showcase-thumb {
    padding: 18px;
}

.thumb-image-wrap {
    overflow: hidden;
    border-radius: 22px;
    background: #101726;
}

.thumb-image {
    display: block;
    width: 100%;
    height: auto;
    backface-visibility: hidden;
    filter: contrast(1.06) saturate(1.03);
    image-rendering: auto;
    transform: translateZ(0);
}

.showcase-meta {
    padding: 30px;
}

.showcase-meta h2 {
    margin: 18px 0 12px;
    color: #111827;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.05em;
}

.showcase-meta p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}

.showcase-keywords {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.showcase-keywords span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #374151;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1080px) {
    .intro-hero,
    .project-showcase {
        grid-template-columns: 1fr;
    }

    .intro-visual {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    .intro-hero {
        min-height: auto;
        gap: 24px;
        padding-bottom: 54px;
    }

    .hero-stats {
        gap: 18px;
    }

    .portrait-core span {
        font-size: 3.2rem;
    }

    .project-tech-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .showcase-meta {
        padding: 22px;
    }
}

.brand-dark {
    background:
        radial-gradient(circle at 12% 12%, rgba(86, 153, 255, 0.12), transparent 20%),
        radial-gradient(circle at 82% 18%, rgba(58, 217, 173, 0.1), transparent 18%),
        linear-gradient(180deg, #fffefb 0%, #f8fbff 46%, #f3f7fb 100%);
    color: #111827;
}

.brand-page {
    padding-bottom: 120px;
}

.brand-page .site-meta span,
.brand-page .back-link {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: #475467;
}

.brand-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 28px;
    align-items: stretch;
    padding: 40px 0 72px;
}

.split-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.brand-copy,
.hero-highlight,
.featured-card,
.case-study,
.contact-card,
.scan-card,
.detail-row {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.brand-copy,
.hero-highlight {
    border-radius: 32px;
    padding: 34px;
}

.brand-hero h1,
.section-intro h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.05em;
}

.brand-hero h1 {
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    line-height: 0.96;
}

.brand-hero h1 span {
    color: #225d82;
}

.brand-role {
    margin: 22px 0 0;
    color: #2563eb;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-intro,
.hero-highlight p,
.section-intro p,
.featured-card p,
.case-study p,
.contact-card p,
.scan-card p,
.detail-row p {
    color: #667085;
    line-height: 1.8;
}

.keyword-row,
.keyword-column,
.tag-row,
.result-pills,
.scan-results {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.keyword-row {
    margin-top: 24px;
}

.keyword-row span,
.keyword-column span,
.tag-row span,
.result-pills span,
.scan-results span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #344054;
    font-size: 0.92rem;
}

.keyword-column {
    flex-direction: column;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.scan-card:hover,
.featured-card:hover {
    transform: translateY(-2px);
}

.button-dark {
    background: #111827;
    color: #ffffff;
}

.button-ghost {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: #344054;
}

.full-width {
    width: 100%;
}

.hero-highlight strong,
.section-intro h2,
.featured-card h3,
.case-study h3,
.detail-row h3 {
    color: #101828;
}

.mini-label,
.section-kicker,
.jump-text,
.pao-card span,
.contact-card span {
    font-family: "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mini-label,
.section-kicker {
    color: #2563eb;
    font-size: 0.86rem;
}

.section-block + .section-block {
    margin-top: 88px;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 24px;
}

.featured-grid,
.case-study-stack,
.contact-grid,
.featured-list {
    display: grid;
    gap: 18px;
}

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

.featured-card,
.scan-card,
.case-study,
.detail-row,
.contact-card {
    border-radius: 28px;
}

.featured-card summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 26px;
    cursor: pointer;
    list-style: none;
}

.featured-card summary::-webkit-details-marker {
    display: none;
}

.featured-card h3,
.scan-card h3,
.case-study h3,
.detail-row h3 {
    margin: 8px 0 10px;
    font-size: 1.42rem;
    line-height: 1.28;
}

.card-index {
    color: rgba(17, 24, 39, 0.35);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.jump-text,
.inline-link {
    color: #2563eb;
    white-space: nowrap;
}

.card-meta {
    padding: 0 26px 26px;
}

.inline-link {
    display: inline-block;
    margin-top: 18px;
}

.result-pills {
    margin-top: 16px;
}

.result-pills span,
.scan-results span {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.14);
    color: #166534;
}

.case-study {
    padding: 28px;
}

.case-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.pao-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.pao-card {
    min-height: 180px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.pao-problem {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 1));
}

.pao-approach {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 1));
}

.pao-outcome {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 1));
}

.pao-card span {
    display: block;
    margin-bottom: 10px;
    color: #101828;
    font-size: 0.9rem;
}

.case-footer {
    margin-top: 20px;
}

.flow-text {
    margin: 16px 0 0;
    color: #475467;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.94rem;
}

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

.contact-card {
    padding: 24px;
}

.contact-card span {
    color: #111827;
    font-size: 0.95rem;
}

.hero-side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-list,
.detail-timeline {
    gap: 16px;
}

.scan-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.scan-results {
    align-self: flex-start;
    justify-content: flex-end;
}

.detail-timeline {
    display: grid;
}

.detail-row {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
}

.detail-sticky {
    position: static;
    align-self: start;
}

.detail-content {
    display: grid;
    gap: 14px;
}

.alt-layout .pao-card {
    min-height: 0;
}

.star-study .flow-text,
.detail-star-content .flow-text {
    margin-top: 0;
    margin-bottom: 14px;
    color: #1d4ed8;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.star-stack,
.detail-star-content {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.star-box {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.star-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px 16px;
}

.star-head span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.star-head strong {
    color: #101828;
    font-size: 1.2rem;
    line-height: 1;
}

.star-box p,
.star-list {
    margin: 0;
    padding: 0 24px 24px;
    color: #475467;
    line-height: 1.8;
}

.detail-star-content .star-blue-box > .flow-text {
    margin: 0 24px 12px;
    padding: 13px 16px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 16px;
    background: #f8fbff;
    color: #1f2937 !important;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1.12rem !important;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.star-list {
    padding-left: 42px;
}

.star-list li + li {
    margin-top: 8px;
}

.tech-icon-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-icon-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px 0 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.tech-icon-chip b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
    color: #2563eb;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    line-height: 1;
}

.tech-icon-chip em {
    color: #344054;
    font-size: 0.92rem;
    font-style: normal;
}

.star-red-box {
    border-color: #f7c6cc;
}

.star-red-box .star-head {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 1));
}

.star-red-box .star-head span {
    color: #dc2626;
}

.star-yellow-box {
    border-color: #f6dd84;
}

.star-yellow-box .star-head {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 1));
}

.star-yellow-box .star-head span {
    color: #d97706;
}

.star-blue-box {
    border-color: #bfdbfe;
}

.star-blue-box .star-head {
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 1));
}

.star-blue-box .star-head span {
    color: #2563eb;
}

.star-green-box {
    border-color: #a7f3d0;
}

.star-green-box .star-head {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 1));
}

.star-green-box .star-head span {
    color: #059669;
}

.detail-star-content .star-box.star-blue-box > p.flow-text {
    margin: 0 24px 12px;
    padding: 13px 16px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 16px;
    background: #f8fbff;
    color: #1f2937 !important;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 1.12rem !important;
    font-weight: 500 !important;
    line-height: 1.55;
    letter-spacing: -0.02em;
    text-shadow: none;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 1080px) {
    .brand-hero,
    .split-hero,
    .featured-grid,
    .pao-grid,
    .contact-grid,
    .detail-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .portfolio-shell {
        width: min(calc(100% - 20px), var(--width));
    }

    .brand-copy,
    .hero-highlight,
    .case-study,
    .contact-card,
    .featured-card summary,
    .card-meta,
    .scan-card,
    .detail-row {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-hero h1 {
        font-size: 2.7rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
