:root {
  color-scheme: light;
  --canvas: #e9edf2;
  --paper: #fbfcfe;
  --surface: #f4f7fa;
  --ink: #17212f;
  --muted: #687585;
  --line: #dce3ea;
  --accent: #5268e8;
  --accent-soft: #ebeeff;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;
  --sans: Inter, "Noto Sans SC", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; top: -70px; left: 20px; padding: 10px 15px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.window-dots { display: flex; gap: 7px; align-items: center; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b66; }
.window-dots i:nth-child(2) { background: #f7c45f; }
.window-dots i:nth-child(3) { background: #65cb82; }
.status-pulse { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #52c786; box-shadow: 0 0 0 4px rgba(82,199,134,.12); }
.eyebrow, .section-kicker, .heading-side, .panel-heading, .carousel-top, .carousel-bottom, .source-note, .sidebar-caption, .sidebar-meta, .sidebar-bottom p, .sidebar-bottom a, .status-bar, .nav-index, .profile-card-foot, .direction-card > span, .direction-card b, .contact-links a > span, .card-index, .card-category, .card-credit, .card-action, .entry-bar, .entry-foot, .terminal-line, .terminal-dim, .entry-title > span { font-family: var(--mono); }

/* A keyboard accessible terminal entry. Direct section links bypass it in script.js. */
.entry { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: linear-gradient(145deg, #f8fafc 0%, #e6ebf3 100%); }
.entry-window { width: min(790px, 100%); overflow: hidden; border: 1px solid #cbd3df; border-radius: 15px; background: #101721; box-shadow: 0 28px 90px rgba(29,41,61,.22); }
.entry-bar { height: 42px; padding: 0 17px; display: flex; align-items: center; gap: 15px; color: #6d7685; background: #edf0f5; font-size: 11px; }
.entry-bar > span:last-child { margin-left: auto; }
.entry-body { min-height: 495px; padding: clamp(28px, 5vw, 52px); color: #dce7f8; }
.terminal-line, .terminal-dim { margin: 0 0 8px; font-size: 12px; letter-spacing: .01em; }
.prompt { margin-right: 9px; color: #8b9aff; }
.terminal-dim { color: #8194a8; }
.terminal-ok { color: #6ddb9e; }
.entry-title { margin: 58px 0 34px; }
.entry-title > span { color: #8594ad; font-size: 11px; letter-spacing: .15em; }
.entry-title strong { display: block; margin-top: 4px; font-size: clamp(68px, 13vw, 112px); font-weight: 800; line-height: 1; letter-spacing: -.1em; }
.entry-star { display: inline-block; margin-inline: .06em; color: #9ea9ff; font-size: .56em; vertical-align: .18em; }
.entry-title p { margin: 12px 0 0; color: #b9c8d9; font-size: 16px; }
.entry-button { min-height: 47px; padding: 0 18px; display: inline-flex; align-items: center; gap: 40px; border: 1px solid #a5b4ff; border-radius: 8px; color: #fff; background: #485dd7; font-weight: 600; transition: background .2s ease, transform .2s ease; }
.entry-button:hover { background: #6174ed; transform: translateY(-2px); }
.entry-button span { font: 20px var(--mono); }
.entry-foot { padding: 12px 19px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #293546; color: #7c8fa7; font-size: 10px; }

.desktop { width: min(1600px, calc(100% - 40px)); height: calc(100svh - 40px); min-height: 680px; margin: 20px auto; display: grid; grid-template-rows: 45px minmax(0, 1fr) 48px; overflow: hidden; border: 1px solid #cfd8e2; border-radius: 13px; background: var(--paper); box-shadow: 0 20px 80px rgba(39,57,82,.12); }
.system-bar { padding: 0 18px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: #f6f8fb; }
.system-brand { font: 800 16px var(--sans); letter-spacing: -.08em; white-space: nowrap; }
.system-brand span { color: var(--accent); }
.system-brand small { margin-left: 8px; color: #9aa5b3; font: 10px var(--mono); letter-spacing: 0; }
.system-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #657487; font: 10px var(--mono); white-space: nowrap; }
.system-actions a { margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--ink); }
.system-actions a:hover { color: var(--accent); }
.workspace { min-height: 0; display: flex; }
.sidebar { width: 202px; flex: 0 0 202px; padding: 28px 16px 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f7f9fc; }
.sidebar-intro { padding: 0 5px 23px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.sidebar-intro img { width: 47px; height: 47px; border: 2px solid white; border-radius: 11px; object-fit: cover; box-shadow: 0 2px 10px #c9d0dd; }
.sidebar-intro div { min-width: 0; display: flex; flex-direction: column; }
.sidebar-intro strong { font-size: 16px; }
.sidebar-intro span { color: #8c98aa; font: 8px var(--mono); white-space: nowrap; }
.sidebar-caption { margin: 28px 12px 11px; color: #9aa5b3; font-size: 10px; letter-spacing: .06em; }
.main-nav { display: grid; gap: 5px; }
.main-nav a { min-height: 48px; padding: 0 10px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; color: #637184; font-weight: 600; transition: color .22s, background .22s, border-color .22s, transform .22s; }
.main-nav a:hover { color: var(--accent); background: #f0f2f7; transform: translateX(2px); }
.main-nav a[aria-current="page"] { border-color: #cfd7ff; color: #3d52ca; background: #e9edff; }
.nav-index { color: #9ca8b6; font-size: 10px; font-weight: 400; }
.main-nav a[aria-current="page"] .nav-index { color: #7283d5; }
.nav-arrow { margin-left: auto; opacity: 0; font-size: 15px; font-weight: 400; }
.main-nav a:hover .nav-arrow, .main-nav a[aria-current="page"] .nav-arrow { opacity: 1; }
.sidebar-bottom { margin-top: auto; padding: 14px 9px 0; border-top: 1px solid var(--line); }
.sidebar-meta { display: flex; align-items: center; gap: 9px; color: #6d7788; font-size: 9px; }
.sidebar-bottom p { margin: 12px 0 5px; color: #9aa5b3; font-size: 9px; }
.sidebar-bottom a { color: #6072d5; font-size: 9px; overflow-wrap: anywhere; }
.main-content { min-width: 0; min-height: 0; flex: 1; overflow: auto; background: var(--paper); }
.panel { min-height: 100%; padding: clamp(25px, 3vw, 45px) clamp(24px, 4vw, 58px) 42px; animation: panel-in .45s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.panel-heading { padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); color: #8b97a7; font-size: 10px; letter-spacing: .035em; }
.heading-side { white-space: nowrap; }
.eyebrow { color: var(--accent); }
.status-bar { padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); color: #8b97a7; background: #f7f9fc; font-size: 10px; }
.status-bar > span:first-child { display: flex; align-items: center; gap: 11px; color: #5a687b; }
.status-bar .status-pulse { width: 6px; height: 6px; }

/* About */
.about-grid { margin-top: 30px; display: grid; grid-template-columns: minmax(240px, .8fr) minmax(350px, 1.2fr); align-items: center; gap: clamp(28px, 5vw, 70px); }
.profile-card { max-width: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f1f4f8; box-shadow: 0 12px 35px rgba(42,60,87,.09); }
.profile-image { aspect-ratio: 1.15; overflow: hidden; background: linear-gradient(155deg, #e9edff, #d8e3f0); }
.profile-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.profile-card-foot { padding: 14px 17px; display: flex; justify-content: space-between; gap: 10px; color: #728094; font-size: 9px; }
.about-pill { padding: 7px 10px; display: inline-flex; align-items: center; gap: 10px; border: 1px solid #d8e2db; border-radius: 100px; color: #547363; background: #f4faf6; font: 10px var(--mono); }
.about-copy h1 { margin: 18px 0 0; font-size: clamp(45px, 5vw, 75px); line-height: 1.08; letter-spacing: -.065em; }
.about-copy h1 span { color: var(--accent); }
.role-line { margin: 15px 0 18px; color: var(--accent); font: 12px var(--mono); }
.about-lead { max-width: 650px; margin: 0; font-size: clamp(17px, 1.8vw, 23px); font-weight: 600; line-height: 1.55; }
.about-detail { max-width: 620px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.about-buttons { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 43px; min-width: 140px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--accent); }
.button.primary:hover { background: #3e53c8; }
.button.secondary { border-color: var(--line); background: white; }
.button.secondary:hover { background: var(--accent-soft); }
.direction-head { margin: 48px 0 15px; display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.direction-head h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.04em; }
.direction-head p { margin: 0; color: var(--muted); font-size: 12px; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.direction-card { min-height: 150px; padding: 17px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #dce3f2; border-radius: 12px; background: linear-gradient(145deg, #f7f9ff, #eff3fb); transition: transform .25s, box-shadow .25s; }
.direction-card:nth-child(2) { background: linear-gradient(145deg, #f8fbfc, #eaf5f4); }
.direction-card:nth-child(3) { background: linear-gradient(145deg, #fcf9fb, #f9edf5); }
.direction-card:hover { transform: translateY(-4px); box-shadow: 0 12px 20px rgba(48,62,91,.09); }
.direction-card > span { color: #7d8aae; font-size: 10px; }
.direction-card strong { margin-top: 10px; font-size: 16px; }
.direction-card p { margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.direction-card b { margin-top: auto; color: #5c70d8; font-size: 10px; font-weight: 500; }

/* OS collection and carousel */
.collection-title { margin: 35px 0 12px; display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.section-kicker { margin: 0; color: var(--accent); font-size: 11px; letter-spacing: .06em; }
.collection-title h1, .contact-hero h1 { margin: 12px 0; font-size: clamp(38px, 4.3vw, 65px); line-height: 1.14; letter-spacing: -.06em; }
.collection-title p:not(.section-kicker) { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; }
.collection-mark { color: #e5e9f3; font-size: clamp(65px, 8vw, 118px); font-weight: 800; line-height: .85; letter-spacing: -.1em; text-align: right; }
.collection-mark span { display: block; margin-top: 11px; color: #9da9bb; font: 10px var(--mono); letter-spacing: .08em; }
.carousel { position: relative; max-width: 1050px; margin: 4px auto 0; }
.carousel-top { height: 47px; display: flex; align-items: center; justify-content: space-between; color: #8b98a8; font-size: 10px; }
.carousel-count { color: #34435b; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.carousel-window { position: relative; height: clamp(430px, 58vh, 560px); overflow: hidden; perspective: 1100px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.carousel-window.is-dragging { cursor: grabbing; }
.carousel-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.showcase-card { --shift: clamp(215px, 29vw, 360px); position: absolute; top: 50%; left: 50%; width: min(390px, 72%); height: calc(100% - 18px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d7deea; border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 22px 45px rgba(34,52,80,.16); transform: translate(-50%, -50%) scale(.6); opacity: 0; filter: blur(3px); pointer-events: none; transition: transform .7s cubic-bezier(.2,.75,.2,1), opacity .48s ease, filter .48s ease, box-shadow .48s ease; }
.showcase-card[data-offset="0"] { z-index: 4; transform: translate(-50%, -50%) translateX(0) rotateY(0) scale(1); opacity: 1; filter: none; pointer-events: auto; }
.showcase-card[data-offset="-1"] { z-index: 3; transform: translate(-50%, -50%) translateX(calc(-1 * var(--shift))) rotateY(17deg) scale(.82); opacity: .56; filter: blur(.6px); pointer-events: auto; }
.showcase-card[data-offset="1"] { z-index: 3; transform: translate(-50%, -50%) translateX(var(--shift)) rotateY(-17deg) scale(.82); opacity: .56; filter: blur(.6px); pointer-events: auto; }
.showcase-card[data-offset="-2"] { z-index: 2; transform: translate(-50%, -50%) translateX(calc(-1.8 * var(--shift))) rotateY(24deg) scale(.65); opacity: .12; }
.showcase-card[data-offset="2"] { z-index: 2; transform: translate(-50%, -50%) translateX(calc(1.8 * var(--shift))) rotateY(-24deg) scale(.65); opacity: .12; }
.showcase-card[data-offset="far"] { visibility: hidden; }
.showcase-card[data-offset="0"]:hover { box-shadow: 0 28px 52px rgba(34,52,80,.22); }
.card-cover { height: 43%; flex: none; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #e8efff, #f6f8fd); }
.card-cover img { width: 100%; height: 100%; object-fit: contain; }
.card-body { min-height: 0; padding: 21px 23px 23px; display: flex; flex-direction: column; }
.card-topline { display: flex; justify-content: space-between; gap: 9px; }
.card-index, .card-category { color: #8491a3; font-size: 10px; }
.card-category { color: #5668d5; }
.card-body h3 { margin: 18px 0 9px; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.28; letter-spacing: -.04em; }
.card-body p { margin: 0; color: #687789; font-size: 13px; line-height: 1.65; }
.card-credit { margin-top: 13px; padding: 8px 10px; border-radius: 7px; color: #69778a; background: #f3f6fa; font-size: 10px; line-height: 1.5; }
.card-action { margin-top: auto; padding-top: 16px; color: #4c60d5; font-size: 11px; }
.article-cover { position: relative; height: 51%; flex: none; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #f9fbff; background: #334acb; }
.article-cover::before, .article-cover::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; pointer-events: none; }
.article-cover::before { width: 280px; height: 280px; top: 55px; right: -100px; }
.article-cover::after { width: 190px; height: 190px; top: 100px; right: -48px; }
.article-cover .cover-top { z-index: 1; font: 10px var(--mono); letter-spacing: .08em; }
.article-cover .cover-symbol { z-index: 1; font-size: 120px; font-weight: 800; line-height: .8; letter-spacing: -.15em; opacity: .85; }
.article-cover .cover-bottom { z-index: 1; font: 11px var(--mono); }
.article-cover.tone-1 { background: linear-gradient(135deg,#122b48,#536bdf); }
.article-cover.tone-2 { background: linear-gradient(135deg,#173e48,#319f9c); }
.article-cover.tone-3 { background: linear-gradient(135deg,#3b2f5c,#a887d1); }
.article-cover.tone-4 { background: linear-gradient(135deg,#523d38,#ce9277); }
.article-cover.tone-5 { background: linear-gradient(135deg,#294340,#8aaf8d); }
.article-cover.tone-0 { background: linear-gradient(135deg,#343e68,#7182b0); }
.article-cover.illustrated-cover { height: 51%; padding: 0; display: block; color: var(--ink); background: #f8fafc; }
.illustrated-cover::before { display: none; }
.illustrated-cover::after { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; background: linear-gradient(90deg, rgba(255,255,255,.32), transparent 62%); }
.article-cover-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.article-cover-copy { position: absolute; z-index: 1; top: 21%; left: 6%; width: 43%; display: flex; flex-direction: column; align-items: flex-start; color: #192532; text-shadow: 0 1px 2px rgba(255,255,255,.75); }
.article-cover-copy strong { font-size: clamp(23px, 2.2vw, 29px); font-weight: 800; line-height: 1.15; letter-spacing: -.07em; }
.article-cover-copy strong::after { content: ""; width: 88%; height: 4px; margin-top: 6px; display: block; border-radius: 5px; background: #ff9b54; transform: rotate(-2deg); }
.article-cover-copy span { margin-top: 8px; color: #3f5164; font-size: 10px; font-weight: 700; line-height: 1.4; }
.article-card .card-body h3 { font-size: clamp(19px, 1.8vw, 25px); }
.article-card .card-body { padding-top: 17px; }
#writing .carousel-window { height: clamp(540px, 68svh, 650px); }
.carousel-bottom { margin-top: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 20px; color: #9aa6b7; font-size: 10px; }
.carousel-progress { width: 180px; height: 3px; justify-self: end; overflow: hidden; border-radius: 5px; background: #e1e6ef; }
.carousel-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .4s; }
.carousel-stage { position: relative; }
.carousel-stage .carousel-window { border: 1px solid #dce4ed; border-radius: 18px; background: linear-gradient(155deg, #f9fbfd, #f2f6fa); box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.carousel-nav { position: absolute; z-index: 10; top: 48%; width: 54px; height: 54px; padding: 0 0 5px; display: grid; place-items: center; border: 1px solid #d8e0e9; border-radius: 50%; color: #596c82; background: rgba(255,255,255,.94); box-shadow: 0 10px 25px rgba(46,65,93,.13); font: 36px/1 var(--sans); transform: translateY(-50%); transition: color .2s, border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.carousel-nav:hover { border-color: #b9c7ff; color: #4057d6; background: white; box-shadow: 0 13px 28px rgba(46,65,93,.2); transform: translateY(-50%) scale(1.06); }
.carousel-nav:active { transform: translateY(-50%) scale(.96); }
.carousel-nav:focus-visible { outline: 3px solid #4968e8; outline-offset: 3px; }
.carousel-nav.carousel-prev { left: 18px; }
.carousel-nav.carousel-next { right: 18px; }
.archive-link { max-width: 1050px; margin: 22px auto 0; padding: 13px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #5669d5; font-size: 12px; font-weight: 600; }
.archive-link:hover { color: #293ca8; }
.source-note { max-width: 1050px; margin: 14px auto 0; color: #9ba6b5; font-size: 10px; }

/* Contact */
.contact-hero { position: relative; isolation: isolate; margin: 35px 0 24px; min-height: 390px; padding: clamp(30px, 5vw, 70px); overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; color: #1c2b43; background: radial-gradient(circle at 82% 27%, rgba(157,181,240,.57), transparent 35%), radial-gradient(circle at 15% 95%, rgba(181,217,229,.48), transparent 42%), linear-gradient(120deg, rgba(252,253,255,.92), rgba(222,232,250,.78)); box-shadow: 0 18px 48px rgba(48,70,107,.11), inset 0 1px 0 rgba(255,255,255,.95); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); }
.contact-hero::before { position: absolute; z-index: 0; inset: 10px; border: 1px solid rgba(255,255,255,.74); border-radius: 15px; background: linear-gradient(125deg, rgba(255,255,255,.52), rgba(255,255,255,.07) 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); content: ""; pointer-events: none; }
.contact-hero::after { position: absolute; z-index: 0; right: -90px; bottom: -230px; width: 520px; aspect-ratio: 1; border-radius: 50%; background: rgba(181,201,243,.3); filter: blur(50px); content: ""; pointer-events: none; }
.contact-hero .section-kicker { position: relative; z-index: 2; color: #5b6daf; }
.contact-hero h1 { position: relative; z-index: 2; max-width: 850px; font-size: clamp(36px, 3.8vw, 56px); }
.contact-hero > p:not(.section-kicker) { position: relative; z-index: 2; max-width: 600px; color: #596b83; }
.contact-hero .button { position: relative; z-index: 2; margin-top: 20px; color: white; background: #455cc8; box-shadow: 0 8px 18px rgba(73,92,189,.18); }
.contact-hero .button:hover { background: #344bb8; }
.contact-ip { position: absolute; z-index: 1; right: 34px; bottom: -9px; width: clamp(135px, 11vw, 165px); height: auto; pointer-events: none; }
.contact-links { border-top: 1px solid var(--line); }
.contact-links a { min-height: 77px; padding: 16px 9px; display: grid; grid-template-columns: 145px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); transition: padding .2s, background .2s; }
.contact-links a:hover { padding-inline: 20px; background: #f3f6fc; }
.contact-links a > span { color: #919eae; font-size: 11px; }
.contact-links strong { font-size: 18px; overflow-wrap: anywhere; }
.contact-links b { color: var(--accent); font-size: 20px; font-weight: 400; }
.noscript { margin: 20px; padding: 15px; border-radius: 8px; background: white; }
.noscript a { color: var(--accent); text-decoration: underline; }

@media (min-width: 761px) and (max-height: 1000px) {
  .collection-panel { padding-top: 24px; }
  .collection-title { margin: 18px 0 2px; }
  .collection-title h1 { margin: 5px 0; font-size: clamp(36px, 3.5vw, 50px); line-height: 1.12; }
  .collection-title p:not(.section-kicker) { display: none; }
  .collection-mark { font-size: 75px; }
  .carousel-top { height: 38px; }
  .carousel-window { height: clamp(300px, calc(100svh - 405px), 510px); }
  .showcase-card { width: min(360px, 70%); }
  .card-cover { height: 40%; }
  .card-body { padding: 14px 18px 16px; }
  .card-body h3 { margin: 10px 0 6px; font-size: clamp(20px, 2vw, 26px); }
  .card-body p { font-size: 12px; line-height: 1.5; }
  .card-credit { margin-top: 7px; padding: 6px 8px; font-size: 9px; }
  .card-action { padding-top: 8px; }
  .article-cover { height: 43%; }
  .article-card .card-body h3 { font-size: clamp(18px, 1.8vw, 23px); }
  #writing .carousel-window { height: clamp(400px, calc(100svh - 315px), 620px); }
}

@media (max-width: 1020px) {
  .sidebar { width: 170px; flex-basis: 170px; padding-inline: 10px; }
  .sidebar-intro span { display: none; }
  .about-grid { grid-template-columns: minmax(180px,.72fr) minmax(300px,1.28fr); gap: 25px; }
  .panel { padding-inline: 25px; }
  .direction-card { padding: 13px; }
}
@media (max-width: 760px) {
  .desktop { width: calc(100% - 20px); height: auto; min-height: calc(100svh - 20px); margin: 10px; display: block; overflow: visible; }
  .system-bar { height: 45px; }
  .system-actions > span:not(.status-pulse) { display: none; }
  .system-actions a { margin-left: 8px; padding-left: 9px; }
  .workspace { display: block; }
  .sidebar { width: 100%; padding: 10px; display: block; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-intro, .sidebar-caption, .sidebar-bottom { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 3px; }
  .main-nav a { min-height: 58px; padding: 6px 2px; display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 11px; text-align: center; }
  .nav-index { font-size: 8px; }
  .nav-arrow { display: none; }
  .main-content { overflow: visible; }
  .panel { min-height: 0; padding: 20px 14px 28px; }
  .panel-heading { font-size: 9px; }
  .about-grid { margin-top: 20px; display: block; }
  .profile-card { max-width: 300px; margin: 0 auto 25px; }
  .profile-image { aspect-ratio: 1.35; }
  .about-copy h1 { font-size: 47px; }
  .about-detail { font-size: 13px; }
  .direction-head { margin-top: 40px; }
  .direction-head p { display: none; }
  .direction-grid { grid-template-columns: 1fr; gap: 9px; }
  .direction-card { min-height: 118px; }
  .collection-title { margin-top: 25px; }
  .collection-title h1 { font-size: clamp(33px, 8vw, 47px); }
  .collection-mark { display: none; }
  .carousel { margin-top: 10px; }
  .carousel-window { height: 590px; }
  .showcase-card { --shift: 265px; width: min(314px, 83%); height: 540px; }
  .card-body { padding: 17px 18px 18px; }
  .card-body h3 { font-size: 24px; }
  .article-card .card-body h3 { font-size: 21px; }
  #writing .carousel-window { height: 650px; }
  #writing .article-card { height: 600px; }
  .article-cover-copy { display: none; }
  .carousel-nav { top: 39%; width: 44px; height: 44px; padding-bottom: 4px; font-size: 30px; }
  .carousel-nav.carousel-prev { left: 5px; }
  .carousel-nav.carousel-next { right: 5px; }
  .carousel-bottom > span:first-child { font-size: 0; }
  .carousel-bottom { font-size: 9px; }
  .carousel-progress { width: 70px; }
  .contact-hero { min-height: 360px; padding: 28px; }
  .contact-hero h1 { font-size: clamp(19px, 6vw, 34px); }
  .contact-ip { right: 10px; bottom: -7px; width: 92px; }
  .contact-links a { grid-template-columns: 1fr auto; gap: 4px; }
  .contact-links a > span { grid-column: 1 / -1; }
  .contact-links strong { font-size: 15px; }
  .status-bar { min-height: 44px; padding: 10px 12px; flex-wrap: wrap; gap: 8px; font-size: 9px; }
  .status-bar > span:nth-child(2) { display: none; }
}
@media (max-width: 390px) {
  .system-bar { gap: 11px; padding-inline: 12px; }
  .system-brand small { display: none; }
  .main-nav a { font-size: 10px; }
  .showcase-card { width: min(300px, 84%); }
  .carousel-window { height: 570px; }
  .showcase-card { height: 520px; }
  #writing .carousel-window { height: 630px; }
  #writing .article-card { height: 580px; }
  .entry-body { min-height: 450px; }
  .entry-title { margin-top: 50px; }
  .entry-title strong { font-size: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
