:root {
    color-scheme: light;
    --maroon: #701b35;
    --maroon-dark: #4a1025;
    --maroon-light: #a63d5b;
    --rose: #f3e7e9;
    --paper: #fbf8f6;
    --ink: #241a1d;
    --muted: #766b6e;
    --line: #e9dfe1;
    --white: #fff;
    --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
    --sans: "Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
::selection { background: #dcbac3; color: var(--maroon-dark); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img, svg, canvas, video { max-width: 100%; }

.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 12px 16px; transform: translateY(-160%); border-radius: 6px; background: var(--maroon-dark); color: var(--white); }
.skip-link:focus { transform: translateY(0); }

.section-wrap, .site-header, .site-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; display: flex; height: 76px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(112,27,53,.1); }
.site-header::before { position: fixed; z-index: -1; top: 0; right: 0; left: 0; height: 76px; content: ""; border-bottom: 1px solid rgba(112,27,53,.1); background: rgba(251,248,246,.92); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--maroon); color: var(--white); font: 700 16px var(--mono); box-shadow: 0 6px 16px rgba(112,27,53,.2); }
.brand-period { color: var(--maroon-light); }
.site-nav { display: flex; align-items: center; gap: 32px; color: #5e5155; font-size: 13px; font-weight: 650; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--maroon); }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 9px; background: var(--maroon); color: var(--white); font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.nav-cta { padding: 12px 17px; }
.button { padding: 15px 20px; box-shadow: 0 8px 20px rgba(112,27,53,.14); }
.nav-cta:hover, .button:hover { transform: translateY(-2px); background: var(--maroon-dark); }
.button-secondary { border: 1px solid #d8c4c9; background: transparent; color: var(--maroon); box-shadow: none; }
.button-secondary:hover { background: #f5ebed; }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 620px; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 60px; width: 100%; max-width: none; padding: 82px max(24px, calc((100% - 1120px) / 2)) 88px; overflow: hidden; background: radial-gradient(ellipse at 82% 25%, rgba(166,61,91,.1), transparent 35%), linear-gradient(180deg,#fbf8f6 0%,#f8f1f0 100%); }
.hero::before { position: absolute; inset: 0; content: ""; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(112,27,53,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(112,27,53,.08) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg,transparent,#000 78%); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .hero-card-label, .hero-card-bottom, .art-caption, .scroll-cue, .journey-type, .project-meta > div > p, .project-index, .visual-caption, .contact-top > span, .site-footer > a:last-of-type, .copyright { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--maroon); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 1px; content: ""; background: currentColor; }
.hero h1 { max-width: 610px; margin: 20px 0 18px; color: var(--ink); font-size: clamp(42px,5vw,65px); line-height: 1.06; letter-spacing: -.065em; }
.hero-name { color: var(--maroon); }
.hero-surname { display: block; font-size: .55em; }
.hero-description { max-width: 500px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; border: 1px solid #d8c4c9; border-radius: 9px; padding: 15px 20px; color: var(--maroon); font-size: 13px; font-weight: 700; }
.text-link:hover { background: #f5ebed; }

.hero-art { position: relative; z-index: 2; min-height: 390px; display: grid; place-items: center; }
.orbit { position: absolute; width: 360px; height: 360px; border: 1px dashed rgba(112,27,53,.22); border-radius: 50%; }
.orbit::before, .orbit::after { position: absolute; content: ""; border: 1px solid rgba(112,27,53,.12); border-radius: 50%; }
.orbit::before { inset: 28px; }
.orbit::after { inset: 65px; }
.orbit-one::after { inset: 55px 28px auto auto; width: 10px; height: 10px; border: 0; background: #c16b7e; box-shadow: 0 0 0 7px rgba(193,107,126,.12); }
.hero-card { position: relative; z-index: 2; width: min(100%,390px); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: #28151d; box-shadow: 0 28px 70px rgba(65,17,34,.27),0 4px 12px rgba(65,17,34,.1); transform: rotate(-2deg); }
.hero-card-label { display: block; height: 43px; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #bcaeb2; }
.hero-monogram { min-height: 205px; display: grid; place-items: center; color: #fff; font: 800 92px var(--sans); }
.hero-monogram span { color: #df8d9f; }
.hero-card-bottom { display: block; padding: 10px 16px; background: #341a26; color: #a58c95; }
.art-caption, .scroll-cue { display: none; }

.marquee { border-top: 1px solid rgba(112,27,53,.13); border-bottom: 1px solid rgba(112,27,53,.13); background: rgba(255,255,255,.52); }
.marquee-track { min-height: 76px; display: grid; grid-template-columns: repeat(6,1fr); align-items: center; text-align: center; }
.marquee-track span { border-right: 1px solid rgba(112,27,53,.12); color: var(--maroon); font-size: 12px; font-weight: 750; }
.marquee-track span:last-child { border-right: 0; }

.section-space, .journey, .projects, .writings, .about { padding: 92px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.section-heading .eyebrow { margin-bottom: 0; }
.heading-line { display: none; }
.about { background: var(--white); }
.about-grid, .journey-intro { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 75px; }
.about-grid h2, .journey-intro h2, .projects-heading h2, .writings-heading h2 { margin: 12px 0 0; font-size: clamp(30px,3.8vw,42px); line-height: 1.12; letter-spacing: -.055em; }
.about-grid h2 span, .journey-intro h2 span, .projects-heading h2 span, .writings-heading h2 span { color: var(--maroon); }
.about-copy { max-width: 500px; }
.about-copy .lead { color: var(--ink); font-size: 15px; }
.about-copy p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.about-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 25px; }
.about-facts div { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.about-facts span { display: block; color: var(--maroon-light); }
.about-facts strong { display: block; margin-top: 7px; font-size: 12px; }

.journey { background: #f8f1f0; }
.journey-intro { margin-bottom: 35px; }
.journey-intro p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.journey-list { border-top: 1px solid #eadde0; }
.journey-item { display: grid; grid-template-columns: 70px 1fr 30px; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid #eadde0; }
.journey-number { color: var(--maroon); font: 700 13px var(--mono); }
.journey-type { margin: 0 0 6px; color: var(--maroon-light); }
.journey-item h3 { margin: 0 0 6px; font-size: 17px; }
.journey-item p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.journey-symbol { color: var(--maroon); }
.honesty-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; }

.projects { background: var(--white); }
.projects-heading, .writings-heading { display: grid; grid-template-columns: 1fr 390px; align-items: end; gap: 30px; margin-bottom: 35px; }
.projects-heading p, .writings-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.project-grid, .writing-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.project-card, .writing-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: transform .25s ease,box-shadow .25s ease; }
.project-card:hover, .writing-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(73,28,42,.1); }
.project-visual { position: relative; height: 190px; overflow: hidden; display: grid; place-items: center; background: #f2e7e9; }
.project-visual::before { position: absolute; inset: 0; content: ""; opacity: .45; background-image: linear-gradient(rgba(112,27,53,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(112,27,53,.12) 1px,transparent 1px); background-size: 22px 22px; }
.project-index, .visual-caption { display: none; }
.library-window, .attendance-window, .sweetcrumbs-window, .portfolio-window { position: relative; z-index: 2; }
.library-window, .attendance-window { width: 72%; height: 125px; border: 1px solid rgba(112,27,53,.15); border-radius: 9px; background: rgba(255,255,255,.9); box-shadow: 0 10px 20px rgba(83,25,46,.12); }
.window-top, .attendance-title { height: 25px; border-bottom: 1px solid #eadde0; }
.library-layout { display: grid; height: 99px; grid-template-columns: 24px 1fr; }
.library-sidebar { border-right: 1px solid #eadde0; background: #7d3048; }
.library-main { display: grid; padding: 15px; }
.library-main b { width: 45%; height: 8px; border-radius: 5px; background: #a7586d; }
.attendance-summary { display: flex; height: 38px; gap: 7px; padding: 9px; }
.attendance-summary i { flex: 1; border-radius: 4px; background: #d9b8c0; }
.attendance-table { display: flex; gap: 5px; padding: 0 9px 9px; }
.attendance-table span { flex: 1; height: 40px; border-radius: 4px; background: #f1e5e7; }
.project-meta { display:flex; justify-content:space-between; gap:15px; padding:20px 19px 8px; }
.project-meta > div > p { color: var(--maroon-light); margin: 0; }
.project-meta h3 { margin: 9px 0 7px; font-size:17px; letter-spacing:-.03em; }
.project-description { min-height:42px; margin:0; padding:0 19px 19px; color:var(--muted); font-size:12px; line-height:1.7; }
.project-visit-link, .project-external-link { color:var(--maroon); }
.project-disclaimer { margin:20px 0 0; color:var(--muted); font-size:11px; }

.writings { background:#f4ecec; }
.skills { padding:75px 0; background:#f4ecec; }
.skills-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.skill-card { padding:20px; border:1px solid #eadcde; border-radius:10px; background:rgba(255,255,255,.68); }
.skill-icon { display:grid; width:36px; height:36px; place-items:center; border-radius:9px; background:var(--maroon); color:#fff; font:700 12px var(--mono); }
.skill-card h3 { margin:16px 0 6px; font-size:14px; }
.skill-card p { margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.writing-status { grid-column:1/-1; color:var(--muted); }
.writing-card { padding:20px 19px; }
.writing-card-meta { color:var(--maroon-light); font:700 10px var(--mono); }
.writing-card h3 { margin:9px 0 7px; }
.writing-card-excerpt { color:var(--muted); font-size:12px; line-height:1.7; }
.writing-read-link { margin-top:12px; border:0; background:transparent; color:var(--maroon); font-size:12px; font-weight:750; cursor:pointer; }
.writing-dialog { width:min(760px,calc(100% - 32px)); max-height:calc(100vh - 32px); border:1px solid var(--line); border-radius:14px; background:var(--paper); color:var(--ink); }
.writing-dialog::backdrop { background:rgba(36,26,29,.55); backdrop-filter:blur(5px); }
.writing-dialog-top { display:flex; align-items:center; justify-content:space-between; }
.writing-dialog-close { border:0; background:transparent; cursor:pointer; }
.writing-dialog-body { white-space:pre-wrap; line-height:1.9; }
.writing-dialog-cover { display:block; width:100%; max-height:430px; margin:24px 0; border-radius:11px; object-fit:cover; }
.writing-dialog-body .ql-editor { padding:0; white-space:normal; }
.writing-dialog-body .ql-editor img { max-width:100%; height:auto; }
.writing-dialog-body .ql-editor pre { overflow-x:auto; }
.writing-card-cover { width:calc(100% + 38px); height:170px; margin:-20px -19px 16px; border-radius:12px 12px 0 0; object-fit:cover; background:var(--rose); }
.writings-all-link { display:inline-flex; align-items:center; gap:9px; margin-top:26px; padding:11px 14px; border:1px solid #d8c4c9; border-radius:8px; color:var(--maroon); font-size:12px; font-weight:750; }
.writings-all-link:hover { background:#f5ebed; }

.contact { padding:80px 0; }
.contact-card { position:relative; overflow:hidden; display:grid; grid-template-columns:1fr 1fr; gap:35px; padding:46px 50px; border-radius:16px; background:var(--maroon); color:#fff; }
.contact-card::after { position:absolute; top:-115px; right:22%; width:330px; height:330px; border:1px solid rgba(255,255,255,.13); border-radius:50%; content:""; box-shadow:0 0 0 35px rgba(255,255,255,.035),0 0 0 70px rgba(255,255,255,.025); }
.contact-top,.contact-card h2,.contact-card>p,.contact-links { position:relative; z-index:1; }
.contact-top { grid-column:1/-1; display:flex; justify-content:space-between; }
.contact-card .eyebrow { color:#e9b9c5; }
.contact-card h2 { margin:13px 0 9px; font-size:clamp(28px,4vw,39px); line-height:1.13; letter-spacing:-.05em; }
.contact-card h2 span { color:#e9b9c5; }
.contact-card>p { color:#ead5db; font-size:13px; line-height:1.7; }
.contact-links { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.contact-link { display:flex; align-items:center; justify-content:space-between; padding:13px; border:1px solid rgba(255,255,255,.16); border-radius:9px; }
.contact-detail { display:grid; }
.contact-detail small { color:#dcb8c2; font:9px var(--mono); }
.contact-detail strong { margin-top:4px; font-size:12px; }
.contact-decoration { display:none; }

.site-footer { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.footer-brand { color:var(--ink); }
.site-footer a:last-of-type { color:var(--muted); }

.studio-header { width:min(1120px,calc(100% - 48px)); min-height:76px; margin:auto; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.studio-main { width:min(1120px,calc(100% - 48px)); margin:0 auto; padding:55px 0 80px; }
.studio-main>h1 { font-size:clamp(38px,5vw,58px); letter-spacing:-.055em; }
.studio-notice { min-height:20px; color:var(--maroon); }
.studio-panel { margin-top:20px; padding:28px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.studio-form { display:grid; gap:16px; }
.studio-form label { display:grid; gap:7px; color:#5e5155; font-size:12px; font-weight:700; }
.studio-form input,.studio-form textarea,.studio-form select { width:100%; border:1px solid #decfd2; border-radius:8px; background:#fff; padding:12px; font:inherit; }
.studio-button { border:0; border-radius:8px; background:var(--maroon); color:#fff; padding:11px 16px; cursor:pointer; font-weight:700; }
.studio-button-light { border:1px solid #d8c4c9; background:transparent; color:var(--maroon); }
.studio-section-heading,.studio-user-bar,.studio-form-actions { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.studio-writing-row,.studio-author-row { display:grid; grid-template-columns:1fr auto; gap:15px; padding:18px 0; border-top:1px solid var(--line); }
.studio-author-row { grid-template-columns:repeat(3,1fr) auto auto; align-items:end; }
.studio-row-actions { display:flex; gap:8px; }
.studio-author-row label { display:grid; gap:7px; }
.studio-author-active { grid-auto-flow:column; justify-content:start; align-items:center; }
.studio-hint { color:var(--muted); }

/* Polished presentation */
.site-header {
    background: rgba(251,248,246,.94);
    backdrop-filter: blur(18px);
}

.site-header::before { display: none; }

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6a9b70;
    box-shadow: 0 0 0 4px rgba(106,155,112,.13);
}

.hero {
    min-height: 660px;
}

.hero-surname {
    margin: 0 0 14px;
    color: var(--maroon);
    font-size: 16px;
    font-weight: 800;
}

.hero h1 {
    max-width: 650px;
    text-wrap: balance;
}

.hero-card-label {
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    color: #cbbcc1;
    font-size: 10px;
}

.hero-card-label::before {
    content: "●  ●  ●";
    color: #a96a7a;
    font-size: 8px;
    letter-spacing: 5px;
}

.hero-card-label span {
    margin-left: auto;
    font-family: var(--mono);
}

.code-preview {
    min-height: 210px;
    padding: 24px 22px 18px;
    color: #eadfe2;
    font: 12px/2.15 var(--mono);
}

.code-preview p {
    margin: 0;
    white-space: nowrap;
}

.code-preview p > span {
    display: inline-block;
    width: 28px;
    color: #765d66;
}

.code-preview b {
    color: #d29ada;
}

.code-preview em {
    color: #9bd0a0;
    font-style: normal;
}

.code-preview strong {
    color: #e5c27c;
}

.hero-card-bottom {
    font-size: 9px;
}

.marquee-track span {
    position: relative;
    padding-inline: 10px;
}

.section-heading {
    position: relative;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.heading-line {
    display: block;
    width: 90px;
    height: 1px;
    background: var(--maroon);
}

.about {
    background: var(--paper);
}

.about-facts div,
.skill-card,
.project-card,
.writing-card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about-facts div:hover,
.skill-card:hover {
    transform: translateY(-4px);
    border-color: #d8bdc4;
    box-shadow: 0 14px 30px rgba(73,28,42,.08);
}

.journey-item {
    transition: padding .25s ease, background .25s ease;
}

.journey-item:hover {
    padding-right: 14px;
    padding-left: 14px;
    background: rgba(255,255,255,.58);
}

.project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-visual {
    height: 230px;
}

.project-visual img {
    position: relative;
    z-index: 2;
    width: 82%;
    height: 175px;
    object-fit: cover;
    object-position: top center;
    border: 1px solid rgba(112,27,53,.13);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(83,25,46,.15);
    transition: transform .35s ease, box-shadow .35s ease;
}

.project-card:hover .project-visual img {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 20px 38px rgba(83,25,46,.2);
}

.project-card-wide {
    grid-column: auto;
}

.library-window,
.attendance-window {
    width: 68%;
    height: 145px;
}

.sweetcrumbs-window {
    width: 78%;
    height: 150px;
    padding: 13px 18px;
    border: 1px solid rgba(112,27,53,.12);
    border-radius: 9px;
    background: #fffaf7;
    box-shadow: 0 14px 28px rgba(83,25,46,.14);
}

.sweetcrumbs-nav {
    display: flex;
    height: 22px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eadde0;
    color: var(--maroon);
    font-size: 8px;
    font-weight: 800;
}

.sweetcrumbs-nav i {
    width: 18px;
    height: 3px;
    margin-left: 5px;
    border-radius: 3px;
    background: #dfc8ce;
}

.sweetcrumbs-content {
    display: grid;
    height: 112px;
    align-content: center;
    justify-items: start;
}

.sweetcrumbs-content > span:first-child {
    color: var(--maroon-light);
    font: 700 7px var(--mono);
}

.sweetcrumbs-content b {
    margin: 7px 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.15;
}

.sweetcrumbs-button {
    padding: 5px 8px;
    border-radius: 4px;
    background: var(--maroon);
    color: #fff;
    font: 700 6px var(--mono);
}

.portfolio-window {
    width: 78%;
    height: 150px;
    overflow: hidden;
    border: 1px solid rgba(112,27,53,.15);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(83,25,46,.14);
}

.portfolio-window-bar {
    height: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border-bottom: 1px solid #eadde0;
}

.portfolio-window-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d5b0ba;
}

.portfolio-window-body {
    position: relative;
    height: 125px;
    padding: 18px;
}

.portfolio-window-body span {
    color: var(--maroon-light);
    font: 700 7px var(--mono);
}

.portfolio-window-body b {
    display: block;
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.1;
}

.portfolio-window-body i {
    position: absolute;
    right: 16px;
    bottom: 15px;
    width: 65px;
    height: 55px;
    border-radius: 50% 50% 8px 8px;
    background: #ead8dc;
}

.project-description {
    min-height: 52px;
}

.project-meta h3 {
    font-size: 18px;
}

.skills {
    position: relative;
    overflow: hidden;
}

.skills::before {
    position: absolute;
    top: -140px;
    right: -100px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(112,27,53,.08);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 42px rgba(112,27,53,.025), 0 0 0 84px rgba(112,27,53,.018);
}

.skill-card {
    position: relative;
    z-index: 1;
}

.writing-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.writing-card h3 {
    font-size: 18px;
}

.writings-heading > div {
    display: grid;
    gap: 18px;
    justify-items: start;
}

.writings-manage-button {
    padding: 12px 16px;
}

.contact-card {
    box-shadow: 0 24px 55px rgba(74,16,37,.16);
}

.contact-link {
    transition: background .2s ease, transform .2s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.08);
}

.site-footer {
    flex-wrap: wrap;
}

@media (max-width:850px) {
    .hero { gap:28px; }
    .hero-art { min-height:330px; }
    .orbit { width:300px; height:300px; }
    .hero-card { width:min(100%,350px); }
    .project-grid,.writing-list { grid-template-columns:repeat(2,1fr); }
    .about-grid,.journey-intro { gap:38px; }
    .marquee-track { grid-template-columns:repeat(3,1fr); }
    .marquee-track span:nth-child(n+4) { display:none; }
    .skills-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:640px) {
    .section-wrap,.site-header,.site-footer,.studio-header,.studio-main { width:calc(100% - 36px); }
    .site-header { height:66px; }
    .site-header::before { height:66px; }
    .menu-toggle { display:block; border:0; background:transparent; color:var(--maroon); font-size:25px; cursor:pointer; }
    .menu-toggle-label { display:none; }
    .menu-icon { display:grid; gap:5px; }
    .menu-icon i { width:22px; height:2px; background:currentColor; }
    .nav-cta { display:none; }
    .site-nav { position:absolute; top:65px; left:0; right:0; display:none; flex-direction:column; align-items:stretch; gap:0; padding:8px 18px 16px; border-bottom:1px solid var(--line); background:var(--paper); }
    .site-nav.is-open,.site-nav.open { display:flex; }
    .site-nav a { padding:13px 0; border-bottom:1px solid #eee5e6; }
    .hero { min-height:auto; grid-template-columns:1fr; gap:16px; padding:58px 18px 34px; }
    .hero h1 { max-width:520px; font-size:clamp(42px,12vw,58px); }
    .hero-description { font-size:14px; }
    .hero-art { min-height:310px; margin-top:5px; }
    .orbit { width:278px; height:278px; }
    .hero-card { width:min(100%,345px); }
    .hero-monogram { min-height:180px; }
    .marquee-track { grid-template-columns:repeat(2,1fr); min-height:68px; }
    .marquee-track span:nth-child(n+3) { display:none; }
    .section-space,.journey,.projects,.writings,.about { padding:66px 18px; }
    .section-heading { display:block; margin-bottom:25px; }
    .about-grid,.journey-intro,.projects-heading,.writings-heading { grid-template-columns:1fr; gap:25px; }
    .about-facts { grid-template-columns:1fr; }
    .journey-item { grid-template-columns:45px 1fr 20px; }
    .project-grid,.writing-list { grid-template-columns:1fr; gap:14px; }
    .project-visual { height:180px; }
    .project-visual img { width:88%; height:138px; }
    .skills { padding:62px 18px; }
    .skills-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
    .skill-card { padding:15px; }
    .contact { padding:58px 18px; }
    .contact-card { grid-template-columns:1fr; padding:31px 25px; }
    .contact-card::after { right:-160px; }
    .contact-links { grid-template-columns:1fr; }
    .site-footer { align-items:flex-start; flex-direction:column; justify-content:center; padding:20px 0; }
    .studio-author-row { grid-template-columns:1fr; }
    .studio-writing-row { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; }
}
