:root {
    --ink: #0b0b0b;
    --muted: #6e7478;
    --line: #e8ecec;
    --paper: #ffffff;
    --soft: #f7fafa;
    --aqua: #55dce0;
    --aqua-dark: #17aeb6;
    --aqua-soft: #dff9f8;
    --lime: #cfff00;
    --radius: 18px;
    --shadow: 0 22px 55px rgba(14, 31, 33, 0.08);
    --serif: Georgia, 'Times New Roman', serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #f2f3f3;
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed;
    top: 10px; left: 10px;
    z-index: 9999;
    transform: translateY(-150%);
    background: var(--ink);
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
    width: min(1480px, calc(100% - 32px));
    margin: 16px auto;
    background: var(--paper);
    box-shadow: 0 10px 35px rgba(0,0,0,.04);
    overflow: hidden;
}

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(14px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
}
.brand-mark {
    width: 17px;
    height: 17px;
    display: inline-block;
    background:
        linear-gradient(45deg, transparent 42%, var(--ink) 43% 57%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, var(--ink) 43% 57%, transparent 58%);
    transform: rotate(45deg) scale(.65);
}
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
    position: relative;
    font-size: 13px;
    font-weight: 650;
    color: #333;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: -8px;
    height: 2px;
    background: var(--aqua);
    transition: right .25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

.editorial-grid {
    min-height: 720px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    border-bottom: 1px solid var(--line);
}
.hero-copy {
    padding: 78px 64px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.hero-kicker {
    font-family: var(--serif);
    font-size: clamp(20px, 2.4vw, 38px);
    letter-spacing: .02em;
    margin-bottom: 6px;
}
.hero-title-line { display: flex; align-items: center; gap: 24px; }
.hero-title-line h1 {
    font-family: var(--serif);
    font-size: clamp(58px, 7.5vw, 118px);
    line-height: .88;
    margin: 0;
    font-weight: 700;
    letter-spacing: -.045em;
}
.spark { color: var(--lime); font-size: clamp(30px, 3.8vw, 64px); text-shadow: 0 0 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); }
.hero-profile-row {
    width: min(520px, 100%);
    margin-top: 46px;
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 22px;
    text-align: left;
}
.avatar-wrap {
    width: 82px; height: 82px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(150deg, #b7eef0, #ffd9c4);
    border: 5px solid #f7f7f7;
}
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; }
.signature-name { margin: 0 0 4px; font-family: cursive; color: var(--aqua-dark); font-size: 20px; }
.hero-role, .hero-location { margin: 0; font-size: 12px; }
.hero-role { font-weight: 700; }
.hero-location { color: var(--muted); }
.hero-tagline { width: min(640px, 100%); margin: 26px auto 0; color: #444; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.pill {
    min-height: 38px;
    border: 1px solid #75dde0;
    background: #8ce9e9;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pill:hover, .pill:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(40,190,195,.18); background: var(--lime); border-color: var(--lime); }

.hero-art {
    padding: 40px;
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    grid-template-rows: 1.1fr auto .72fr;
    gap: 22px;
    background: #fbfcfc;
    position: relative;
}
.art-tile {
    border-radius: 14px;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid #dfe5e5;
    box-shadow: var(--shadow);
}
.art-tile-large { grid-row: 1 / 4; min-height: 600px; }
.art-tile img, .project-visual img, .project-detail-visual img, .portrait-panel img { width: 100%; height: 100%; object-fit: cover; }
.art-note { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; align-items: end; }
.art-note p { margin: 0; color: #444; font-family: var(--serif); font-size: 13px; }
.art-note span { font-family: cursive; color: var(--aqua-dark); white-space: nowrap; }
.qr-motif { align-self: end; width: 74px; height: 74px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.qr-motif span { background: var(--aqua); }
.qr-motif span:nth-child(2), .qr-motif span:nth-child(4), .qr-motif span:nth-child(8) { background: transparent; }

.placeholder-art {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(226,245,245,.75)),
        repeating-linear-gradient(90deg, transparent 0 30px, rgba(38,173,180,.05) 30px 31px);
}
.placeholder-art::before,
.placeholder-art::after {
    content: '';
    position: absolute;
    border-radius: 48% 52% 56% 44% / 42% 39% 61% 58%;
    filter: saturate(1.2);
}
.placeholder-art::before {
    width: 46%; height: 62%;
    left: 25%; top: 14%;
    background: linear-gradient(130deg, rgba(86,231,231,.15), rgba(0,139,154,.84) 45%, rgba(196,255,252,.28) 62%, rgba(0,88,102,.64));
    box-shadow: inset 18px 10px 22px rgba(255,255,255,.52), inset -22px -22px 40px rgba(0,83,98,.22), 0 28px 44px rgba(9,96,105,.19);
    transform: rotate(18deg);
}
.placeholder-art::after {
    width: 34%; height: 44%;
    right: 17%; bottom: 14%;
    border: 5px solid rgba(60,221,225,.38);
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(5px);
    transform: rotate(-23deg);
}
.glass-form {
    position: absolute;
    width: 31%;
    height: 34%;
    left: 30%;
    top: 34%;
    border-radius: 60% 40% 49% 51% / 43% 54% 46% 57%;
    border: 2px solid rgba(255,255,255,.78);
    transform: rotate(46deg);
    box-shadow: 0 0 0 1px rgba(24,177,183,.17), inset 6px 4px 15px rgba(255,255,255,.64);
    z-index: 2;
}
.art-variant-2::before { left: 40%; top: 8%; transform: rotate(-14deg) scale(.95); background: linear-gradient(155deg, rgba(159,255,255,.3), rgba(0,186,197,.74) 42%, rgba(0,89,112,.79)); }
.art-variant-2::after { right: 46%; bottom: 8%; transform: rotate(31deg); }
.art-variant-3::before { width: 58%; height: 72%; left: 16%; top: 10%; transform: rotate(35deg); }
.art-variant-3::after { width: 52%; height: 38%; right: 10%; bottom: 18%; }
.art-variant-4::before { width: 66%; height: 50%; left: 8%; top: 27%; transform: rotate(-11deg); }
.art-variant-4::after { width: 38%; height: 58%; right: 9%; bottom: 16%; transform: rotate(14deg); }

.section { padding: 96px 64px; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 920px; margin-bottom: 42px; }
.section-heading h2,
.skills-copy h2,
.education-content h2,
.contact-copy h2,
.contents-list h2 {
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 82px);
    line-height: .98;
    letter-spacing: -.035em;
    margin: 5px 0 16px;
}
.eyebrow, .small-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--aqua-dark);
}
.section-intro { color: var(--muted); max-width: 650px; font-size: 15px; }
.split-heading { display: grid; grid-template-columns: 1.1fr .9fr; max-width: none; gap: 64px; align-items: end; }
.split-heading .section-intro { justify-self: end; }

.contents-section {
    display: grid;
    grid-template-columns: 70px .75fr 1fr 1.15fr;
    gap: 28px;
    min-height: 620px;
    align-items: center;
}
.vertical-label { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-size: 23px; letter-spacing: .08em; align-self: start; }
.contents-collage { min-height: 420px; position: relative; }
.collage-person {
    width: 150px; height: 240px;
    position: absolute;
    left: 20%; top: 24%;
    overflow: hidden;
    border-radius: 75px 75px 14px 14px;
    border: 6px solid white;
    background: linear-gradient(#ffe0d6, #9eeef0);
    box-shadow: var(--shadow);
    z-index: 3;
}
.collage-person img { width: 100%; height: 100%; object-fit: cover; }
.collage-person span { height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 38px; }
.bubble { position: absolute; border-radius: 50%; border: 8px solid white; box-shadow: var(--shadow); background: linear-gradient(145deg, #2ac6cb, #d8ffff); }
.bubble-a { width: 120px; height: 120px; top: 5%; right: 5%; }
.bubble-b { width: 145px; height: 145px; bottom: 9%; left: 0; background: linear-gradient(145deg, #cfffff, #3db8bf); }
.bubble-c { width: 100px; height: 100px; bottom: 5%; right: 0; background: linear-gradient(145deg, #e9fff5, #87d6cd); }
.contents-list ol { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.contents-list li { border-bottom: 1px solid var(--line); }
.contents-list a { display: flex; gap: 20px; padding: 14px 0; align-items: center; font-family: var(--serif); font-size: 19px; }
.contents-list a span { color: var(--aqua-dark); font-family: var(--sans); font-size: 12px; font-weight: 800; }
.contents-feature { min-height: 470px; border-radius: 18px; display: flex; align-items: end; padding: 28px; }
.contents-feature p { position: relative; z-index: 4; margin: 0; background: rgba(255,255,255,.86); backdrop-filter: blur(8px); padding: 18px; border-radius: 12px; font-size: 13px; }

.about-grid { display: grid; grid-template-columns: 1.05fr .8fr .65fr; gap: 24px; align-items: stretch; }
.about-statement { padding: 38px; background: #fbfcfc; border: 1px solid var(--line); border-radius: var(--radius); }
.about-statement > p { font-family: var(--serif); font-size: clamp(25px, 2.6vw, 42px); line-height: 1.2; margin: 0 0 36px; }
.mini-facts { display: grid; gap: 14px; }
.mini-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mini-facts span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.mini-facts strong { font-size: 13px; overflow-wrap: anywhere; }
.portrait-panel { min-height: 540px; border-radius: var(--radius); overflow: hidden; background: var(--aqua-soft); }
.portrait-placeholder { height: 100%; min-height: 540px; display: grid; place-items: center; background: linear-gradient(160deg,#d3ffff,#aad7d6 62%,#f1d4c2); }
.portrait-placeholder span { font-family: var(--serif); font-size: 88px; }
.interest-panel { padding: 30px; border-radius: var(--radius); background: #0d1617; color: white; display: flex; flex-direction: column; justify-content: space-between; }
.interest-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 40px; }
.interest-cloud span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 12px; }
.contact-mini { display: grid; gap: 10px; }
.contact-mini a { color: #b7fbff; font-size: 13px; overflow-wrap: anywhere; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 26px; }
.project-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: stretch; }
.project-card { min-width: 0; }
.project-visual {
    min-height: 390px;
    border-radius: 16px;
    border: 1px solid #dbe4e4;
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--soft);
}
.project-card-featured .project-visual { min-height: 560px; }
.project-index { position: absolute; top: 18px; left: 18px; z-index: 6; background: var(--lime); border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 900; }
.project-meta { padding: 18px 2px 0; }
.project-card-featured .project-meta { padding: 32px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.project-category { color: var(--aqua-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 7px; }
.project-meta h3 { font-family: var(--serif); font-size: clamp(25px, 2.5vw, 42px); line-height: 1.05; margin: 0 0 13px; }
.project-meta > p { color: var(--muted); font-size: 14px; }
.project-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; font-size: 12px; }
.project-footer a { color: var(--aqua-dark); font-weight: 800; }
.achievement-strip { margin-top: 72px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.achievement-strip article { padding: 26px; border-right: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.achievement-strip article:last-child { border-right: 0; }
.achievement-strip small { color: var(--muted); }
.achievement-strip h3 { font-family: var(--serif); font-size: 20px; line-height: 1.15; margin: 6px 0 10px; }
.achievement-strip p { color: var(--muted); font-size: 12px; }
.achievement-strip a { grid-column: 2; font-size: 12px; font-weight: 800; color: var(--aqua-dark); }
.spark-mini { color: var(--lime); -webkit-text-stroke: 1px var(--ink); }

.timeline-section { background: #fbfcfc; }
.timeline { max-width: 1040px; margin-left: auto; }
.timeline-item { display: grid; grid-template-columns: 170px 30px 1fr; gap: 22px; min-height: 170px; }
.timeline-date { text-align: right; font-size: 12px; font-weight: 750; padding-top: 4px; }
.timeline-date span { color: var(--muted); font-weight: 500; }
.timeline-dot { position: relative; }
.timeline-dot::before { content: ''; position: absolute; top: 8px; left: 50%; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); background: white; transform: translateX(-50%); z-index: 2; }
.timeline-dot::after { content: ''; position: absolute; top: 20px; bottom: 0; left: 50%; width: 1px; background: #111; }
.timeline-item:last-child .timeline-dot::after { display: none; }
.timeline-body { padding-bottom: 38px; }
.timeline-body h3 { font-family: var(--serif); font-size: clamp(22px,2.2vw,32px); line-height: 1.08; margin: 0 0 7px; color: #129fa8; }
.timeline-org { margin: 0 0 10px; font-weight: 750; font-size: 13px; }
.timeline-body > p:last-child { margin: 0; color: #4f5557; font-size: 14px; }

.education-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; align-items: stretch; }
.education-art { min-height: 650px; border-radius: 18px; }
.education-list { margin-top: 38px; border-top: 1px solid var(--ink); }
.education-list article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.education-year { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--aqua-dark); }
.education-list h3 { font-family: var(--serif); font-size: 28px; margin: 8px 0 8px; }
.education-list p:last-child { color: var(--muted); }

.course-grid { border-top: 1px solid var(--ink); }
.course-card { border-bottom: 1px solid var(--line); }
.course-card summary { list-style: none; cursor: pointer; padding: 22px 0; display: grid; grid-template-columns: 60px 1fr 30px; align-items: center; gap: 12px; }
.course-card summary::-webkit-details-marker { display: none; }
.course-number { font-size: 11px; color: var(--aqua-dark); font-weight: 900; }
.course-title-wrap { display: grid; gap: 4px; }
.course-title-wrap small { color: var(--muted); font-size: 11px; }
.course-title-wrap strong { font-family: var(--serif); font-size: clamp(19px,2vw,29px); line-height: 1.15; }
.course-plus { font-size: 24px; transition: transform .2s ease; }
.course-card[open] .course-plus { transform: rotate(45deg); }
.course-details { padding: 0 30px 28px 72px; color: #4b5152; font-size: 14px; display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.course-details ul { margin: 12px 0 0; padding-left: 18px; }
.course-details li { margin: 6px 0; }
.course-details img { max-width: 320px; border-radius: 12px; border: 1px solid var(--line); }

.skills-section { display: grid; grid-template-columns: .7fr 1.3fr .55fr; gap: 44px; align-items: start; }
.skill-row { display: grid; grid-template-columns: minmax(150px,.85fr) 1fr 45px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.skill-row > div:first-child { display: grid; }
.skill-row strong { font-size: 14px; }
.skill-row span { color: var(--muted); font-size: 11px; }
.skill-row b { font-size: 11px; text-align: right; }
.bar { height: 6px; background: #e8eeee; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; width: var(--level); height: 100%; background: linear-gradient(90deg,var(--aqua),var(--aqua-dark)); border-radius: inherit; }
.languages-panel { background: #102122; color: white; border-radius: 18px; padding: 24px; }
.languages-panel h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 20px; }
.language-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 16px 0; }
.language-row span { font-weight: 700; font-size: 13px; }
.language-row small { color: #acdfe1; }
.language-row i { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.language-row i b { display: block; height: 100%; width: var(--level); background: var(--lime); }

.contact-section { background: #ecfbfa; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact-lines { margin-top: 30px; display: grid; gap: 10px; }
.contact-lines a, .contact-lines span { font-family: var(--serif); font-size: 18px; overflow-wrap: anywhere; }
.contact-form { background: white; border: 1px solid #dbe9e8; border-radius: 18px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label span { font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #cad4d4;
    background: transparent;
    padding: 11px 0;
    outline: none;
    resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--aqua-dark); }
.submit-button {
    border: 0;
    background: var(--ink);
    color: white;
    min-height: 48px;
    border-radius: 999px;
    padding: 12px 20px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 800;
    cursor: pointer;
}
.submit-button:hover { background: var(--aqua-dark); }
.form-status { margin: 0; font-size: 12px; min-height: 18px; }
.form-status.success { color: #087a52; }
.form-status.error { color: #b02424; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 30px 42px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 12px; }
.site-footer > div { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.site-footer p { margin: 0; color: var(--muted); }
.site-footer a { color: var(--aqua-dark); font-weight: 800; }

/* Project detail */
.project-detail { padding: 72px 64px 100px; }
.project-detail-header { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-bottom: 38px; }
.project-detail-header h1 { font-family: var(--serif); font-size: clamp(48px,7vw,104px); line-height: .92; letter-spacing: -.045em; margin: 6px 0 0; max-width: 1050px; }
.project-detail-meta { text-align: right; display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.project-detail-visual { min-height: min(70vh, 820px); border-radius: 20px; border: 1px solid var(--line); }
.project-detail-content { display: grid; grid-template-columns: .42fr 1fr; gap: 70px; margin-top: 55px; }
.project-detail-content aside { color: var(--muted); }
.prose { max-width: 830px; }
.prose h2 { font-family: var(--serif); font-size: 34px; margin: 0 0 14px; }
.prose p { color: #4c5253; font-size: 16px; margin: 0 0 34px; white-space: normal; }
.inline-button { width: fit-content; }
.project-404 { min-height: 70vh; display: grid; place-items: center; align-content: center; text-align: center; padding: 80px 20px; }
.project-404 h1 { font-family: var(--serif); font-size: clamp(48px,7vw,92px); margin: 0 0 24px; }
.project-nav { display: block; }

@media (max-width: 1180px) {
    .site-shell { width: min(100%, calc(100% - 20px)); margin: 10px auto; }
    .hero-copy { padding-inline: 42px; }
    .hero-art { padding: 26px; }
    .section { padding: 78px 42px; }
    .contents-section { grid-template-columns: 50px .7fr 1fr; }
    .contents-feature { grid-column: 2 / -1; min-height: 360px; }
    .about-grid { grid-template-columns: 1fr .8fr; }
    .interest-panel { grid-column: 1 / -1; min-height: 220px; }
    .skills-section { grid-template-columns: .8fr 1.2fr; }
    .languages-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
    .languages-panel h3 { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .topbar { padding: 0 24px; }
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: white;
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; }
    .project-nav { display: block; position: static; padding: 0; border: 0; }
    .editorial-grid { grid-template-columns: 1fr; }
    .hero-copy { min-height: 600px; }
    .hero-art { min-height: 590px; grid-template-columns: 1fr 1fr; }
    .art-tile-large { min-height: 520px; }
    .split-heading { grid-template-columns: 1fr; gap: 10px; }
    .split-heading .section-intro { justify-self: start; }
    .contents-section { grid-template-columns: 50px 1fr 1fr; }
    .contents-collage { min-height: 390px; }
    .contents-feature { grid-column: 2 / -1; }
    .project-card-featured { display: block; }
    .project-card-featured .project-meta { margin-top: 16px; }
    .achievement-strip { grid-template-columns: 1fr; }
    .achievement-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
    .achievement-strip article:last-child { border-bottom: 0; }
    .education-section { grid-template-columns: 1fr; }
    .education-art { min-height: 480px; }
    .contact-section { grid-template-columns: 1fr; gap: 40px; }
    .project-detail-content { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
    .site-shell { width: 100%; margin: 0; box-shadow: none; }
    .topbar { min-height: 66px; padding: 0 18px; }
    .brand { font-size: 11px; }
    .hero-copy { min-height: auto; padding: 62px 20px 50px; }
    .hero-kicker { font-size: 18px; }
    .hero-title-line { gap: 10px; }
    .hero-title-line h1 { font-size: clamp(46px,17vw,76px); }
    .spark { font-size: 28px; }
    .hero-profile-row { grid-template-columns: 68px 1fr; gap: 14px; margin-top: 34px; }
    .avatar-wrap { width: 68px; height: 68px; }
    .signature-name { font-size: 16px; }
    .hero-tagline { font-size: 13px; }
    .hero-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
    .pill { text-align: center; }
    .hero-art { min-height: 520px; padding: 16px; grid-template-columns: 1fr 1fr; gap: 12px; }
    .art-tile-large { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
    .art-tile { min-height: 160px; }
    .art-note { padding: 12px; }
    .art-note p { font-size: 10px; }
    .qr-motif { width: 56px; height: 56px; }
    .section { padding: 68px 20px; }
    .section-heading h2, .skills-copy h2, .education-content h2, .contact-copy h2, .contents-list h2 { font-size: clamp(40px,12vw,58px); }
    .contents-section { display: grid; grid-template-columns: 34px 1fr; gap: 18px; }
    .contents-collage { grid-column: 2; min-height: 330px; }
    .contents-list { grid-column: 2; }
    .contents-feature { grid-column: 2; min-height: 310px; }
    .vertical-label { font-size: 17px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-statement { padding: 24px; }
    .about-statement > p { font-size: 26px; }
    .mini-facts div { grid-template-columns: 78px 1fr; }
    .portrait-panel, .portrait-placeholder { min-height: 430px; }
    .project-grid { grid-template-columns: 1fr; gap: 34px; }
    .project-card-featured { grid-column: auto; }
    .project-visual, .project-card-featured .project-visual { min-height: 330px; }
    .project-card-featured .project-meta { padding: 20px; }
    .achievement-strip { margin-top: 50px; }
    .timeline { margin: 0; }
    .timeline-item { grid-template-columns: 88px 20px 1fr; gap: 10px; }
    .timeline-date { font-size: 10px; }
    .timeline-body h3 { font-size: 22px; }
    .education-art { min-height: 360px; }
    .course-card summary { grid-template-columns: 42px 1fr 22px; padding: 18px 0; }
    .course-details { padding: 0 0 24px 42px; grid-template-columns: 1fr; }
    .course-details img { max-width: 100%; }
    .skills-section { grid-template-columns: 1fr; gap: 34px; }
    .skill-row { grid-template-columns: 1fr 46px; }
    .skill-row .bar { grid-column: 1 / -1; grid-row: 2; }
    .languages-panel { grid-column: auto; display: block; }
    .contact-form { padding: 22px; }
    .site-footer { flex-direction: column; align-items: flex-start; padding: 28px 20px; }
    .project-detail { padding: 55px 20px 75px; }
    .project-detail-header { grid-template-columns: 1fr; gap: 18px; }
    .project-detail-meta { text-align: left; }
    .project-detail-visual { min-height: 390px; }
}

@media (max-width: 430px) {
    .hero-title-line h1 { font-size: 44px; }
    .spark { font-size: 21px; }
    .hero-art { grid-template-columns: 1fr; }
    .art-tile-large { grid-column: auto; min-height: 320px; }
    .art-tile { min-height: 210px; }
    .art-note, .qr-motif { display: none; }
    .collage-person { width: 126px; height: 205px; }
    .bubble-a { width: 98px; height: 98px; }
    .bubble-b { width: 112px; height: 112px; }
    .bubble-c { width: 82px; height: 82px; }
    .timeline-item { grid-template-columns: 1fr; gap: 4px; border-bottom: 1px solid var(--line); padding: 18px 0; min-height: 0; }
    .timeline-date { text-align: left; color: var(--aqua-dark); }
    .timeline-dot { display: none; }
    .timeline-body { padding-bottom: 0; }
    .project-visual, .project-card-featured .project-visual { min-height: 290px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.references-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.references-grid article{border:1px solid var(--line);border-radius:16px;padding:26px;background:#fbfcfc}.references-grid h3{font-family:var(--serif);font-size:25px;margin:10px 0 7px}.references-grid p{font-size:13px;color:var(--muted);margin:0 0 14px}.references-grid a{font-size:12px;color:var(--aqua-dark);overflow-wrap:anywhere}@media(max-width:900px){.references-grid{grid-template-columns:1fr}} 
