/* ---------- Colors (light) ---------- */
:root {
    --page: #faf7f0;
    --surface: #fffdf8;
    --card: #f3ede2;
    --ink: #1c1b19;
    --ink-2: #5f5a51;
    --ink-3: #8e887e;
    --line: #e3dccf;
    --accent: #b8461f;
    --accent-ink: #fff8f0;
    --accent-tint: #f6e3d8;
    --header-bg: rgba(250, 247, 240, 0.82);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
    --font-ko: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --container: 1140px;
    /* Side padding grows with the screen: 20px on phones, up to 48px on large screens */
    --gutter: clamp(20px, 5vw, 48px);
    --radius: 12px;
    --ease: cubic-bezier(.23, 1, .32, 1);
}

/* ---------- Colors (dark) — light is default; dark turns on via data-theme="dark" ---------- */
/* .section-dark reuses the same colors for dark bands on the light page */
:root[data-theme="dark"],
.section-dark {
    --page: #191816;
    --surface: #1e1c1a;
    --card: #23211e;
    --ink: #eee8dd;
    --ink-2: #b9b1a4;
    --ink-3: #8a8277;
    --line: #34302b;
    --accent: #e07a4f;
    --accent-ink: #1a1310;
    --accent-tint: #3a2419;
    --header-bg: rgba(25, 24, 22, 0.82);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Korean pages: Pretendard, no mid-word line breaks, slightly looser headings */
html[lang="ko"] body {
    font-family: var(--font-ko);
    word-break: keep-all;
}

html[lang="ko"] :is(.hero-title, .section-title) {
    letter-spacing: -0.025em;
    line-height: 1.18;
}

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

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    font-family: inherit;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s var(--ease), background-color .2s, color .2s;
}

.btn:active {
    transform: scale(.97);
}

.btn-primary {
    background: var(--ink);
    color: var(--page);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-secondary {
    border: 1px solid var(--ink);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--page);
}

.btn-lg {
    padding: 15px 24px;
    font-size: 16px;
    border-radius: 12px;
}

.btn svg {
    transition: transform .2s var(--ease);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary:hover svg {
    transform: translateY(2px);
}

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 72px;
}

/* Section label: small rounded pill above a heading (hero, selected work, what I do, work page) */
.section-label {
    display: inline-block;
    margin: 0 0 20px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.hero-title {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.hero-title mark,
.framing-title mark {
    color: inherit;
    background: linear-gradient(transparent 58%, var(--accent-tint) 58%, var(--accent-tint) 92%, transparent 92%);
}

.hero-desc {
    max-width: 560px;
    margin: 28px 0 0;
    color: var(--ink-2);
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.6;
}

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

.hero-photo {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 320px;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}

.hero-badge {
    position: absolute;
    left: -12px;
    bottom: 28px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--page);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transform: rotate(-6deg);
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .hero-photo {
        order: -1;
        justify-self: start;
        max-width: 168px;
    }

    .hero-badge {
        left: auto;
        right: -96px;
        bottom: 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* Gentle entrance animation */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

.reveal {
    animation: reveal .8s var(--ease) both;
}

/* Fade in on scroll — only hidden when JS is running, so content is always readable without it */
.js .on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Dark band sections ---------- */
.section-dark {
    background: var(--page);
    color: var(--ink);
}

.section-title {
    max-width: 800px;
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-desc {
    max-width: 540px;
    margin: 24px 0 0;
    color: var(--ink-2);
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.6;
}

/* ---------- What I do ---------- */
.services {
    padding: 112px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.service {
    padding: 36px 32px 44px;
    background: var(--page);
    transition: background-color .3s;
}

.service:hover {
    background: var(--surface);
}

.service-num {
    display: block;
    margin-bottom: 20px;
    color: var(--accent);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 14px;
}

.service h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.service p {
    margin: 0;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        margin-top: 48px;
    }

    .service {
        padding: 28px 24px 32px;
    }
}

.hero-text .reveal:nth-child(2) { animation-delay: .08s; }
.hero-text .reveal:nth-child(3) { animation-delay: .16s; }
.hero-text .reveal:nth-child(4) { animation-delay: .24s; }
.hero-photo.reveal { animation-delay: .2s; }
.facts.reveal { animation-delay: .32s; }

/* ---------- Quick facts strip (under hero) ---------- */
.facts {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 24px 0;
    list-style: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 16px;
    text-align: center;
}

.facts li {
    padding: 0 40px;
}

/* Vertical divider between facts */
.facts li + li {
    border-left: 1px solid var(--line);
}

/* "2.5+ years": a small accent pill so the number stands out */
.facts strong {
    margin-right: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent);
    font-weight: 700;
}

/* Narrow screens: stack facts, short horizontal dividers instead */
@media (max-width: 860px) {
    .facts {
        flex-direction: column;
        align-items: center;
        padding: 8px 0;
    }

    .facts li {
        padding: 14px 0;
    }

    .facts li + li {
        border-left: 0;
        border-top: 1px solid var(--line);
        width: 100%;
    }
}

/* ---------- Top bar ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.logo,
.lang-switch {
    font-family: var(--font);
}

.logo {
    margin-right: auto;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a:not(.btn) {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    transition: color .2s;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
}

.nav-links a[aria-current="page"] {
    font-weight: 700;
}

/* Language switch: EN / KO */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-3);
    font-size: 14px;
    font-weight: 500;
}

.lang-switch a {
    padding: 4px 2px;
    color: var(--ink-3);
    transition: color .2s;
}

.lang-switch a:hover {
    color: var(--ink);
}

.lang-switch a[aria-current] {
    color: var(--ink);
    font-weight: 700;
}

.nav-cta-mobile {
    display: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle svg {
    display: block;
    margin: auto;
}

.menu-toggle .icon-close {
    display: none;
}

/* Mobile menu */
@media (max-width: 768px) {
    .nav {
        gap: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .nav-cta-mobile {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 24px;
        background: var(--page);
        border-bottom: 1px solid var(--line);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }

    .nav-links li a:not(.btn) {
        display: block;
        padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--line);
    }

    .nav-links .btn {
        justify-content: center;
        width: 100%;
        margin-top: 20px;
        padding: 14px 18px;
        font-size: 15px;
    }

    .site-header.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-header.menu-open .icon-menu {
        display: none;
    }

    .site-header.menu-open .icon-close {
        display: block;
    }
}

/* ---------- Selected work + Work page ---------- */

.work {
    padding-top: 112px;
    padding-bottom: 120px;
}

.work > .section-title {
    margin-bottom: 56px;
}

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

.project-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
}

.project-media picture,
.project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-labels li {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #1c1b19;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

html[lang="ko"] .project-labels li {
    font-size: 11px;
    letter-spacing: 0;
}

.project-meta {
    margin: 20px 0 8px;
    color: var(--ink-3);
    font-size: 15px;
}

.project-title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* "See all projects" / "See all blog": centered under the cards */
.see-all {
    display: flex;
    width: fit-content;
    margin: 64px auto 0;
}

/* Work page */
.work-page {
    padding-top: 80px;
}

.work-page > .section-title {
    margin-bottom: 0;
}

.filter-tabs {
    display: none;
    gap: 32px;
    margin: 48px 0 56px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

.js .filter-tabs {
    display: flex;
}

.filter-tabs button {
    position: relative;
    flex-shrink: 0;
    padding: 20px 0;
    border: 0;
    background: none;
    color: var(--ink-2);
    font: inherit;
    font-size: 17px;
    cursor: pointer;
    transition: color .2s;
}

.filter-tabs button:hover,
.filter-tabs button[aria-pressed="true"] {
    color: var(--ink);
}

.filter-tabs button[aria-pressed="true"] {
    font-weight: 700;
}

.filter-tabs button[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
}

.filter-tabs sup {
    margin-left: 4px;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
}

.work-page .projects-grid {
    margin-top: 56px;
}

.js .work-page .projects-grid {
    margin-top: 0;
}

@media (max-width: 860px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .work {
        padding-top: 72px;
        padding-bottom: 88px;
    }

    .work-page {
        padding-top: 48px;
    }

    .filter-tabs {
        gap: 24px;
        margin: 32px 0 40px;
    }

    .filter-tabs button {
        padding: 16px 0;
        font-size: 16px;
    }
}

/* ---------- Blog ---------- */
.blog {
    padding-top: 120px;
    padding-bottom: 120px;
}

.blog > .section-title {
    margin-bottom: 56px;
}

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

.post-card {
    display: flex;
    flex-direction: column;
    padding: 32px 32px 28px;
    border-radius: var(--radius);
    background: var(--card);
}

.post-meta {
    margin: 0 0 12px;
    color: var(--ink-3);
    font-size: 14px;
}

.post-meta time {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
}

html[lang="ko"] .post-meta time {
    font-family: inherit;
    font-size: 14px;
}

.post-title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.post-excerpt {
    display: -webkit-box;
    margin: 0 0 28px;
    overflow: hidden;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-cover {
    position: relative;
    display: grid;
    place-items: center;
    margin-top: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--accent-tint);
    background-image: radial-gradient(var(--line) 1px, transparent 1px);
    background-size: 14px 14px;
    color: var(--accent);
}

.post-cover picture,
.post-cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card {
    transition: transform .3s var(--ease);
}

.post-card:hover {
    transform: translateY(-4px);
}

/* The link fills the card, so the cover still sits at the bottom */
.post-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
}

.post-link .post-cover img {
    transition: transform .5s var(--ease);
}

.post-link:hover .post-cover img {
    transform: scale(1.02);
}

/* Blog page: all posts */
.blog-page {
    padding-top: 80px;
}

.blog-page > .section-title {
    margin-bottom: 0;
}

.blog-page .posts-grid {
    margin-top: 56px;
}

/* One post page */
.post-page {
    padding-top: 40px;
    padding-bottom: 120px;
}

/* The whole post (Back, title, image, text) is one 720px column in the middle of the page */
.post-page.container {
    max-width: calc(720px + 2 * var(--gutter));
}

.post-page-title {
    margin: 0;
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.post-page-cover {
    margin-top: 48px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
}

.post-page-cover picture,
.post-page-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.post-body {
    margin-top: 56px;
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1.75;
}

.post-body > :first-child {
    margin-top: 0;
}

.post-body p {
    margin: 0 0 20px;
}

.post-body h2 {
    margin: 48px 0 12px;
    color: var(--ink);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.post-body h3 {
    margin: 32px 0 8px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

.post-body a {
    color: var(--accent);
    text-decoration: underline;
}

.post-hashtags {
    margin-top: 40px;
}

.post-hashtags li {
    color: var(--ink-2);
}

@media (max-width: 860px) {
    .blog {
        padding-top: 80px;
        padding-bottom: 88px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        padding: 24px 24px 20px;
    }

    .blog-page {
        padding-top: 48px;
    }

    .blog-page .posts-grid {
        margin-top: 40px;
    }

    .post-page {
        padding-top: 24px;
        padding-bottom: 80px;
    }

    .post-page-cover {
        margin-top: 32px;
    }

    .post-body {
        margin-top: 40px;
        font-size: 17px;
    }
}

/* ---------- Let's talk ---------- */
.contact {
    padding-top: 48px;
    padding-bottom: 80px;
}

/* The whole section sits in one rounded container, like the blog cards */
.contact-card {
    padding: 40px;
    border-radius: 20px;
    background: var(--card);
}

.contact-card .section-label {
    margin-bottom: 16px;
}

.contact-card .section-title {
    font-size: clamp(30px, 4vw, 44px);
}

.contact-card .section-desc {
    margin-top: 12px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 48px;
    margin-top: 32px;
}

.contact-steps {
    display: grid;
    align-content: start;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-steps .service-num {
    margin-bottom: 8px;
}

.contact-steps h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-steps p {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.6;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}

.field {
    display: grid;
    gap: 6px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-3);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.contact-form .btn {
    border: 0;
    cursor: pointer;
}

.contact-note {
    margin: 12px 0 0;
    color: var(--ink-3);
    font-size: 14px;
}

.contact-note a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 860px) {
    .contact {
        padding-top: 32px;
        padding-bottom: 56px;
    }

    .contact-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 24px;
    }

    .contact-steps {
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Project cards that link to a case study ---------- */
.project-link {
    display: block;
    color: inherit;
}

.project-link .project-media img {
    transition: transform .5s var(--ease);
}

a.project-link:hover .project-media img {
    transform: scale(1.02);
}

.view-case {
    display: inline-block;
    margin-top: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--ink);
}

/* ---------- Case study page ---------- */
.case-top {
    padding-top: 40px;
}

.back-btn {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 8px 16px 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, transform .2s var(--ease);
}

.back-btn:hover {
    border-color: var(--ink);
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

.back-btn svg {
    transition: transform .2s var(--ease);
}

.case-top .hero-title {
    max-width: 900px;
}

.case-intro {
    max-width: 760px;
    margin: 32px 0 0;
    color: var(--ink-2);
    font-size: clamp(18px, 1.7vw, 21px);
    line-height: 1.6;
}

/* Role, duration, scope, platform: one row of columns, a line underneath */
.case-meta {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    gap: 24px;
    margin: 48px 0 0;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

/* Small uppercase labels: meta, finding/response, step numbers */
.case-meta dt,
.case-kicker {
    margin: 0 0 6px;
    color: var(--ink-3);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html[lang="ko"] .case-meta dt,
html[lang="ko"] .case-kicker {
    font-family: var(--font-ko);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.case-meta dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.45;
}

.case-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.case-cover {
    margin-top: 64px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
}

.case-cover picture,
.case-cover img {
    display: block;
    width: 100%;
    height: auto;
}

/* Contents on the left, sections on the right */
.case-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 72px;
    padding-top: 96px;
    padding-bottom: 120px;
}

.case-toc {
    position: sticky;
    top: 112px;
    align-self: start;
}

.case-toc-title {
    margin: 0 0 16px;
    color: var(--ink-3);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html[lang="ko"] .case-toc-title {
    font-family: var(--font-ko);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.case-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-toc a {
    display: block;
    padding: 8px 0 8px 16px;
    border-left: 2px solid var(--line);
    color: var(--ink-3);
    font-size: 15px;
    transition: color .2s, border-color .2s;
}

.case-toc a:hover {
    color: var(--ink);
}

/* The section being read (set by main.js) */
.case-toc a[aria-current="true"] {
    border-left-color: var(--ink);
    color: var(--ink);
    font-weight: 600;
}

/* Lets wide content (the comparison table) scroll inside instead of widening the page */
.case-content {
    min-width: 0;
}

.case-section {
    scroll-margin-top: 104px;
}

.case-section + .case-section {
    margin-top: 72px;
    padding-top: 72px;
    border-top: 1px solid var(--line);
}

.case-lead {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.case-section-title {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.case-body {
    max-width: 62ch;
    margin: 0;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.7;
}

/* Small heading above the cards ("What I designed") */
.case-subtitle {
    margin: 40px 0 16px;
    color: var(--ink-3);
    font-size: 14px;
    font-weight: 600;
}

/* Problem: big numbers in cards */
.problem-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.problem-stats .stat-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.problem-stats .problem-value {
    margin: 0 0 32px;
    color: var(--ink);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.problem-body {
    margin-top: 40px;
}

/* Problem framing: problems on the left, responses on the right, arrows between */
.framing {
    margin-top: 56px;
}

.framing-title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.framing-head,
.framing-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    align-items: stretch;
}

.framing-head {
    margin-top: 40px;
}

/* "5 problems" sits above the right edge of the problem cards */
.framing-head span:first-child {
    text-align: right;
}

.framing-head span:last-child {
    grid-column: 3;
}

.framing-list {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.framing-problem,
.framing-response {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.framing-problem {
    text-align: right;
}

.framing-response {
    border-color: var(--ink);
}

.framing-list h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.framing-list h4 span {
    margin: 0 4px;
    color: var(--ink-3);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    font-weight: 600;
}

.framing-list p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.55;
}

.framing-arrow {
    display: grid;
    place-items: center;
    color: var(--ink-3);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.stat-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.stat-card p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.55;
}

/* "What I designed": sticky notes in pastel colours with a handwriting font */
.notes-label {
    margin: 40px 0 12px;
    color: var(--ink-2);
    font-family: "Caveat", cursive;
    font-size: 24px;
    transform: rotate(-2deg);
    transform-origin: left;
}

.notes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.note {
    padding: 22px 20px 28px;
    border-radius: 2px;
    background: var(--note, #f7ebc3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 24px rgba(0, 0, 0, .06);
    color: #1f1d1a;
    font-family: "Caveat", cursive;
    transition: transform .3s var(--ease);
}

.note:nth-child(4n + 1) { --note: #d6e4f5; }
.note:nth-child(4n + 2) { --note: #f7ebc3; }
.note:nth-child(4n + 3) { --note: #d8ead5; }
.note:nth-child(4n + 4) { --note: #f3dbdf; transform: rotate(1.5deg); }

.note:hover {
    transform: rotate(-1deg) translateY(-3px);
}

.note h3 {
    margin: 0 0 10px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.05;
}

.note p {
    margin: 0;
    color: #3a3632;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
}

html[lang="ko"] .notes-label,
html[lang="ko"] .note {
    font-family: "Gaegu", cursive;
}

html[lang="ko"] .note h3 {
    font-size: 23px;
}

html[lang="ko"] .note p {
    font-size: 17px;
    font-weight: 400;
}

@media (max-width: 1100px) {
    .notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* The Outcome: key results in large type, goals list */
.outcome-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 32px;
    border-radius: 16px;
    background: var(--card);
}

.outcome-stats p {
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.55;
}

.outcome-stats .outcome-value {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.goals {
    margin: 0;
    padding: 0;
    list-style: none;
}

.goals li {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.goals li:last-child {
    border-bottom: 1px solid var(--line);
}

.goals h4 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.goals p {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.65;
}

/* What I learned: intro, then a list with a star in front of every line */
.learned-intro {
    max-width: 62ch;
    margin: 0;
    color: var(--ink-2);
    font-size: clamp(18px, 1.8vw, 21px);
    line-height: 1.6;
}

.learned {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.learned li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.learned li:last-child {
    border-bottom: 1px solid var(--line);
}

.learned-icon {
    margin-top: 4px;
    color: var(--ink);
}

.learned h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.learned p {
    margin: 8px 0 0;
    color: var(--ink-2);
    line-height: 1.65;
}

/* Competitive analysis table */
.competitors {
    margin-top: 56px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.compare {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
}

.compare th,
.compare td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
    border-bottom: 0;
}

.compare th:first-child {
    text-align: left;
}

.compare thead th {
    background: var(--card);
    font-weight: 600;
}

.compare tbody th {
    font-weight: 500;
}

/* Our product's column stands out */
.compare .is-ours {
    background: var(--accent-tint);
}

.compare thead .is-ours {
    color: var(--accent);
    font-weight: 700;
}

.mark-yes {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--page);
    vertical-align: middle;
}

.mark-no {
    display: inline-block;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-3);
    vertical-align: middle;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* User personas: avatar on the left, bio, goals / pain points and motivations on the right */
.personas {
    margin-top: 56px;
}

.persona {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.persona-avatar {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 8px;
    background: var(--accent-tint);
}

/* The photo covers the whole avatar box */
.persona-avatar picture,
.persona-avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

.persona-initial {
    color: var(--accent);
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    opacity: .5;
}

.persona-tag {
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    padding: 14px 16px;
    background: rgba(31, 29, 26, .72);
    color: #fff;
}

.persona-tag strong,
.persona-tag span {
    display: block;
}

.persona-tag strong {
    font-size: 18px;
}

.persona-tag span {
    font-size: 14px;
    opacity: .8;
}

.persona-bio {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.6;
}

.persona-lists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.persona-lists ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.75;
}

/* Pain points label in the accent colour */
.persona-lists .is-pains .case-kicker {
    color: var(--accent);
}

.persona .chips li {
    font-size: 14px;
}

/* Selected screens: a board image with numbered pins; the notes line up with the pins */
.breakdown {
    margin-top: 32px;
}

.breakdown + .breakdown {
    margin-top: 64px;
}

.breakdown-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 24px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.breakdown-title .case-kicker {
    margin: 0;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.breakdown-grid.has-notes {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 40px;
}

.breakdown-figure {
    position: relative;
    margin: 0;
}

.breakdown-figure picture,
.breakdown-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.breakdown-figure img {
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* Click to enlarge */
.zoom {
    position: relative;
    display: block;
    cursor: zoom-in;
}

.zoom-icon {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(31, 29, 26, .8);
    color: #fff;
    transition: transform .2s var(--ease);
}

.zoom:hover .zoom-icon {
    transform: scale(1.1);
}

/* Full-size image overlay (opened by main.js) */
.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    border: 0;
    background: transparent;
    overscroll-behavior: contain;
}

.lightbox::backdrop {
    background: rgba(20, 19, 17, .9);
}

.lightbox img {
    display: block;
    width: max(100%, 1000px);
    height: auto;
    margin: 0 auto;
    background: #fff;
}

.lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1f1d1a;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* Pin on the image, dotted line to the note on the right */
.pin-line {
    pointer-events: none;
    position: absolute;
    top: calc(var(--y) * 1%);
    left: calc(var(--x) * 1%);
    right: -40px;
    border-top: 1.5px dotted var(--ink);
}

.pin,
.note-num {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--page);
    font-size: 13px;
    font-weight: 600;
}

.pin {
    pointer-events: none;
    position: absolute;
    top: calc(var(--y) * 1%);
    left: calc(var(--x) * 1%);
    z-index: 1;
    border: 2px solid var(--page);
    transform: translate(-50%, -50%);
}

.breakdown-notes {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breakdown-notes li {
    position: absolute;
    top: calc(var(--y) * 1%);
    right: 0;
    left: 0;
    display: flex;
    gap: 14px;
    transform: translateY(-14px);
}

.breakdown-notes h4 {
    margin: 3px 0 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.breakdown-notes p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.55;
}

/* Tablet and phone: image first, notes in a list underneath, no dotted lines */
@media (max-width: 1100px) {
    .breakdown-grid {
        display: block;
    }

    .pin-line {
        display: none;
    }

    .breakdown-notes {
        display: grid;
        gap: 20px;
        margin-top: 24px;
    }

    .breakdown-notes li {
        position: static;
        transform: none;
    }
}

/* Process: phases in a 3 × 2 grid, list at the bottom, arrow to the next phase */
.phases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.phases > li {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 22px 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.phases h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.phases ul {
    margin: auto 0 0;
    padding: 24px 32px 0 18px;
    list-style: disc;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.7;
}

.phase-arrow {
    position: absolute;
    right: 20px;
    bottom: 22px;
    color: var(--ink-3);
}

/* Highlighted phase: dark card */
.phases > li.is-highlight {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--page);
}

.phases > li.is-highlight .case-kicker,
.phases > li.is-highlight ul,
.phases > li.is-highlight .phase-arrow {
    color: var(--page);
    opacity: .8;
}

.case-links .btn:hover svg {
    transform: translate(2px, -2px);
}

@media (max-width: 1100px) {
    .phases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .case-layout {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 64px;
        padding-bottom: 80px;
    }

    /* Phones and tablets: no contents menu, sections one after another */
    .case-toc {
        display: none;
    }
}

@media (max-width: 860px) {
    .case-top {
        padding-top: 24px;
    }

    .back-btn {
        margin-bottom: 28px;
    }

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

    .case-cover {
        margin-top: 40px;
    }

    .case-section + .case-section {
        margin-top: 56px;
        padding-top: 56px;
    }
}

@media (max-width: 640px) {
    .stat-cards,
    .problem-stats,
    .notes,
    .persona,
    .persona-lists {
        grid-template-columns: 1fr;
    }

    /* One column: problem, arrow down, response */
    .framing-head {
        display: none;
    }

    .framing-list {
        gap: 24px;
    }

    .framing-list li {
        grid-template-columns: 1fr;
    }

    .framing-problem {
        text-align: left;
    }

    .framing-problem h4 span {
        display: none;
    }

    .framing-arrow {
        padding: 8px 0;
        transform: rotate(90deg);
    }

    .outcome-stats {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 20px;
    }

    .goals li {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .phases {
        grid-template-columns: 1fr;
    }

    .phases > li {
        min-height: 0;
    }

    .persona-avatar {
        aspect-ratio: 4 / 3;
    }

    .case-links .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- About page ---------- */
.about-hero {
    padding-top: 80px;
    padding-bottom: 72px;
}

.about-hero > .section-title {
    max-width: 820px;
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas:
        "text photo"
        "text facts";
    grid-template-rows: auto 1fr;
    column-gap: 96px;
    margin-top: 56px;
}

.about-text {
    grid-area: text;
}

.about-text p {
    margin: 0 0 24px;
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1.7;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-photo {
    grid-area: photo;
    justify-self: center;
    width: 100%;
    max-width: 280px;
}

.about-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}

.about-facts {
    grid-area: facts;
    margin: 32px 0 0;
}

.about-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.about-facts > div:first-child {
    border-top: 1px solid var(--line);
}

.about-facts dt {
    color: var(--ink-3);
}

.about-facts dd {
    margin: 0;
    text-align: right;
}

/* Blocks: title on the left, content on the right */
.about-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    padding: 48px 0;
    border-top: 1px solid var(--line);
}

.about-block h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rows li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.rows li:first-child {
    padding-top: 0;
}

.rows li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.row-main {
    font-weight: 600;
}

.row-plain {
    font-weight: 400;
}

.row-side {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    color: var(--ink-2);
}

.row-meta {
    color: var(--ink-3);
    font-size: 14px;
    white-space: nowrap;
}

.row-link {
    display: flex;
    width: 100%;
    justify-content: space-between;
    transition: color .2s;
}

.row-link:hover {
    color: var(--accent);
}

/* Work experience at companies */
.jobs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jobs > li {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.jobs > li:first-child {
    padding-top: 0;
}

.jobs > li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.job-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 24px;
}

.job-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.job-company {
    margin: 4px 0 0;
    font-weight: 500;
}

.job-meta {
    margin: 2px 0 0;
    color: var(--ink-3);
    font-size: 14px;
}

.job-text {
    max-width: 62ch;
    margin: 14px 0 0;
    color: var(--ink-2);
    line-height: 1.65;
}

.jobs .chips-sm {
    margin-top: 16px;
}

.jobs .chips-sm li {
    padding: 4px 12px;
    font-size: 14px;
}

.skill-groups {
    display: grid;
    gap: 32px;
}

.skill-groups h3 {
    margin: 0 0 12px;
    color: var(--ink-3);
    font-size: 14px;
    font-weight: 600;
}

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

.chips li {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 15px;
}

.about-cta {
    padding-top: 64px;
    padding-bottom: 96px;
    border-top: 1px solid var(--line);
}

.about-cta h2 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.about-cta p {
    margin: 12px 0 28px;
    color: var(--ink-2);
}

@media (max-width: 860px) {
    .about-hero {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .about-intro {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "text"
            "facts";
        margin-top: 32px;
    }

    .about-photo {
        justify-self: start;
        max-width: 168px;
        margin-bottom: 32px;
    }

    .about-text p {
        font-size: 17px;
    }

    .about-block {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 0;
    }

    /* Same layout for every row on narrow screens: name on top, details below */
    .rows li {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-cta {
        padding-top: 48px;
        padding-bottom: 64px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    padding-bottom: 40px;
}

.footer-wrap {
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand .logo {
    display: inline-block;
    font-size: 24px;
}

.footer-brand p {
    max-width: 340px;
    margin: 8px 0 0;
    color: var(--ink-2);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
}

.footer-links a {
    color: var(--ink-2);
    font-size: 15px;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--ink);
}

.footer-copy {
    margin: 40px 0 0;
    color: var(--ink-3);
    font-size: 14px;
}

@media (max-width: 860px) {
    .footer-wrap {
        padding-top: 32px;
    }

    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-links {
        gap: 12px 24px;
    }

    .footer-copy {
        margin-top: 32px;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
