.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 16px; }
.hero .eyebrow, .on-dark .eyebrow { color: var(--color-accent-on-dark); }

.hero h1 { font-size: clamp(2.75rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.name-accent { background: linear-gradient(100deg, #7fa8ff 0%, #a591fb 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 24px; max-width: 32em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: #d3dbee; }
.hero-sub { margin-top: 12px; max-width: 34em; color: var(--color-text-light-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.availability { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 0.875rem; color: var(--color-text-light-muted); }
.availability::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ad19a; box-shadow: 0 0 0 4px rgba(90, 209, 154, 0.16); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.975rem; text-decoration: none; border: 1px solid transparent; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn--light { background: #fff; color: var(--color-text-dark); }
.btn--light:hover { background: #e6ebf7; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.26); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.05); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--color-accent); white-space: nowrap; }
.text-link .arrow { transition: transform 0.2s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }
.text-link:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }

/* Hero artwork: photo on the right, fading into the navy so the copy stays readable */
.hero-art { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 56%; pointer-events: none; background: var(--color-bg-dark-2); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%); mask-image: linear-gradient(90deg, transparent 0%, #000 14%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 30%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 17, 31, 0.5) 0%, rgba(7, 17, 31, 0) 22%), linear-gradient(90deg, rgba(7, 17, 31, 0.55) 0%, rgba(7, 17, 31, 0) 32%); }

/* App cards */
.app-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); transition: border-color 0.2s, box-shadow 0.2s; }
.app-card:hover, .app-card:focus-within { border-color: #cfcaf7; box-shadow: var(--shadow-card-hover); }
.app-card__media { position: relative; overflow: hidden; background: var(--color-bg-dark); border-bottom: 1px solid var(--color-border); }
.app-card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.app-card__media--gem { flex: 1 1 auto; min-height: 220px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 55%, #2a2f6e 0%, #131a3c 55%, #0b1226 100%); }
.app-card__body { display: flex; flex-direction: column; flex: 0 0 auto; gap: 14px; padding: 24px 26px 22px; }
.app-card__head { display: flex; align-items: center; gap: 16px; }
.app-card__icon { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(11, 13, 18, 0.08); }
.app-card h3 { font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; }
.app-card p { color: var(--color-muted); font-size: 1rem; max-width: 52ch; }
.app-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.app-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-card__link { text-decoration: none; }
.app-card__link::after { content: ""; position: absolute; inset: 0; }
.app-card__link:focus-visible { outline: none; }
.app-card:has(.app-card__link:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.app-card__arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--color-text-dark); border: 1px solid var(--color-border); transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s; }
.app-card:hover .app-card__arrow { transform: translateX(3px); background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; background: var(--color-bg-light); color: var(--color-muted); border: 1px solid var(--color-border); }
.pill--status { color: var(--color-status); background: var(--color-status-bg); border-color: #f2dbb6; }
.pill--status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* CSS-only crystal marker (neutral placeholder, not an app icon) */
.gem { --s: 56px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 22%; display: grid; place-items: center; background: linear-gradient(145deg, #eef0f8, #dde1ee); }
.gem::before { content: ""; width: 54%; height: 54%; background: linear-gradient(135deg, #9fb0ff 0%, #6d5ef0 52%, #3b2f9e 100%); clip-path: polygon(50% 0, 100% 34%, 80% 100%, 20% 100%, 0 34%); }
.gem::after { content: ""; position: absolute; width: 54%; height: 54%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); clip-path: polygon(50% 0, 100% 34%, 50% 44%, 0 34%); }
.gem--lg { --s: clamp(96px, 12vw, 132px); background: none; border-radius: 0; opacity: 0.9; }
.gem--lg::before { width: 100%; height: 100%; filter: drop-shadow(0 12px 32px rgba(109, 94, 240, 0.35)); }
.gem--lg::after { width: 100%; height: 100%; }

/* Quiet notice row (Thoughts) */
.notice-row { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-block: 1px solid var(--color-border); color: var(--color-muted); font-size: 1.0625rem; }
.notice-row .pill { flex: none; }

/* Compact project and note cards follow the reference site's editorial rhythm. */
.app-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.app-grid--featured .app-card { border-radius: 16px; box-shadow: 0 1px 2px rgba(11, 13, 18, 0.05), 0 8px 22px rgba(11, 13, 18, 0.04); }
.app-grid--featured .app-card__media { display: none; }
.app-grid--featured .app-card__body { gap: 12px; padding: 20px; }
.app-grid--featured .app-card__head { flex-direction: column; align-items: flex-start; gap: 12px; }
.app-grid--featured .app-card__icon { width: 52px; height: 52px; border-radius: 13px; }
.app-grid--featured .app-card h3 { font-size: 1.05rem; }
.app-grid--featured .app-card p { font-size: 0.9rem; line-height: 1.45; }
.app-grid--featured .app-card__meta { margin-top: 2px; }
.app-grid--featured .app-card__arrow { display: none; }
.post-card { max-width: 760px; overflow: hidden; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); box-shadow: 0 1px 2px rgba(11, 13, 18, 0.05), 0 8px 22px rgba(11, 13, 18, 0.04); }
.post-card__visual { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 24px; color: #fff; background: radial-gradient(circle at 75% 24%, rgba(126, 157, 255, 0.9), transparent 28%), linear-gradient(135deg, #1d3ca9, #4d24b8 72%, #111b55); }
.post-card__visual strong { max-width: 12ch; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.02; letter-spacing: -0.04em; }
.post-card__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--color-muted); font-size: 0.82rem; }
.post-card h3 { margin-top: 16px; font-size: 1.25rem; }
.post-card p { margin-top: 8px; color: var(--color-muted); font-size: 0.95rem; }

.about-preview h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.about-preview p { color: var(--color-muted); font-size: 1.1875rem; max-width: 52ch; }
.about-preview .text-link { margin-top: 24px; }

.note { margin-top: 24px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--color-accent-soft); color: #3b3596; font-size: 0.9rem; }

/* ---- Subpages ---- */
:root { --color-body: #38405a; }
.page-hero h1 { font-size: clamp(2.375rem, 4.8vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.05; }
.page-hero p { margin-top: 20px; color: var(--color-muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.btn--dark { background: var(--color-text-dark); color: #fff; }
.btn--dark:hover { background: #22283a; }
.h2 { font-size: clamp(2.125rem, 3.4vw, 2.75rem); }
.lead { color: var(--color-muted); font-size: 1.125rem; max-width: 62ch; }

.showcase { position: relative; overflow: hidden; color: var(--color-text-light); background: linear-gradient(160deg, var(--color-bg-dark) 0%, var(--color-bg-dark-2) 55%, var(--color-bg-dark-3) 100%); padding-block: clamp(56px, 7vw, 104px); }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.showcase h2 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.02; }
.showcase-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.showcase-head .app-card__icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.showcase p { margin-top: 20px; color: #d3dbee; font-size: 1.1875rem; max-width: 34em; }
.showcase .meta { margin-top: 20px; color: var(--color-text-light-muted); font-size: 0.9rem; }
.showcase .pill { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #d3dbee; }
.showcase .pill--status { background: rgba(240, 163, 94, 0.14); border-color: rgba(240, 163, 94, 0.4); color: #ffcf9b; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.showcase img.cover { width: 100%; border-radius: var(--radius-md); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }

.story-row { display: grid; grid-template-columns: minmax(140px, 0.72fr) minmax(0, 2fr); gap: clamp(16px, 5vw, 72px); padding-block: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--color-border); }
.story-row:last-child { border-bottom: 1px solid var(--color-border); }
.story-row h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.story-body { max-width: 62ch; color: var(--color-body); font-size: 1.0625rem; }
.story-body > * + * { margin-top: 1em; }
.story-body ul { padding-left: 1.15em; }
.story-body li + li { margin-top: 0.5em; }
.story-body li::marker { color: var(--color-accent); }
.story-steps { padding: 0; margin: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.story-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; }
.story-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-accent); }
.story-steps li[aria-current="step"] { font-weight: 600; color: var(--color-text-dark); }
.story-steps li[aria-current="step"] .step-tag { margin-left: 8px; }
.step-tag { display: inline-block; padding: 1px 8px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 600; color: var(--color-status); background: var(--color-status-bg); border: 1px solid #f2dbb6; vertical-align: 2px; }

.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.shots li { flex: 0 0 calc((100% - 72px) / 5); }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--color-border); box-shadow: 0 1px 2px rgba(11, 13, 18, 0.05), 0 12px 28px rgba(11, 13, 18, 0.08); }
.shots figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--color-muted); text-align: center; }

.dianima { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
.dianima .app-card__tags { margin-top: 16px; }
.dianima h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: 20px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 0; list-style: none; }
.steps li { padding-top: 20px; border-top: 2px solid var(--color-text-dark); }
.steps .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-accent); }
.steps h3 { margin-top: 10px; font-size: 1.375rem; }
.steps p { margin-top: 8px; color: var(--color-muted); font-size: 1rem; }

.focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 6vw, 96px); padding: 0; margin: 0; list-style: none; }
.focus-list li { padding-block: 22px; border-top: 1px solid var(--color-border); }
.focus-list h3 { font-size: 1.25rem; }
.focus-list p { margin-top: 6px; color: var(--color-muted); }

.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(12px, 4vw, 56px); padding-block: 22px; border-top: 1px solid var(--color-border); }
.skill-row:last-child { border-bottom: 1px solid var(--color-border); }
.skill-row h3 { font-size: 1.0625rem; }
.skill-row ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.skill-row li { padding: 4px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface); font-size: 0.9rem; color: var(--color-body); }

.timeline { max-width: 720px; padding: 0; margin: 0; list-style: none; counter-reset: t; }
.timeline li { position: relative; counter-increment: t; padding: 0 0 32px 60px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--color-surface); border: 1.5px solid var(--color-accent); color: var(--color-accent); font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; }
.timeline li::after { content: ""; position: absolute; left: 17.5px; top: 44px; bottom: 8px; width: 1px; background: var(--color-border); }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.1875rem; line-height: 1.3; padding-top: 5px; }
.timeline p { margin-top: 6px; color: var(--color-muted); }

.contact-rows { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; max-width: 820px; }
.contact-rows li { overflow: hidden; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); box-shadow: 0 1px 2px rgba(11, 13, 18, 0.04); }
.contact-rows a { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px; text-decoration: none; transition: background-color 0.2s, transform 0.2s var(--ease); }
.contact-rows a:hover { background: rgba(54, 89, 214, 0.05); }
.contact-rows .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-dark); }
.contact-rows .lbl { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); }
.contact-rows .val { display: block; margin-top: 2px; font-size: clamp(1.0625rem, 2.4vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-rows .go { color: var(--color-accent); transition: transform 0.2s var(--ease); }
.contact-rows a:hover .go { transform: translateX(4px); }
.closing { max-width: 680px; }
.closing h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.closing .btn { margin-top: 28px; }

.explore-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; max-width: 900px; }
.explore-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: baseline; padding: 22px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); box-shadow: 0 1px 2px rgba(11, 13, 18, 0.04); }
.explore-list li:last-child { border-bottom: 1px solid var(--color-border); }
.explore-list h3 { font-size: 1.375rem; }
.explore-list p { grid-column: 1; color: var(--color-muted); }
.empty-state { max-width: 680px; padding: clamp(28px, 4vw, 44px); border: 1px dashed #c7ccd9; border-radius: var(--radius-md); }
.empty-state h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.empty-state p { margin-top: 12px; color: var(--color-muted); }
.btn--outline { color: var(--color-text-dark); border-color: #b9bfcd; }
.btn--outline:hover { border-color: var(--color-text-dark); background: rgba(11, 13, 18, 0.04); }
.page-hero--long h1 { font-size: clamp(1.75rem, 7.4vw, 3.75rem); overflow-wrap: break-word; }

/* Existing page spacing moved out of inline attributes for CSP. */
.static-style-1 { border-top:0;padding-block:0; }
.static-style-2 { margin-bottom:clamp(28px,4vw,48px); }
.static-style-3 { margin-bottom:clamp(20px,3vw,36px); }
.static-style-4 { margin:14px 0 clamp(24px,3.5vw,40px); }
.static-style-5 { margin-top:28px; }
.static-style-6 { margin-top:14px; }
.static-style-7 { color:var(--color-muted);font-size:.9rem; }
.error-home { margin-top: 28px; }
.page-hero--long .container > * { max-width: 860px; }

.lab-spotlight { max-width: 900px; padding: clamp(28px, 5vw, 52px); border-radius: 18px; color: var(--color-text-light); background: radial-gradient(circle at 82% 16%, rgba(126, 157, 255, 0.8), transparent 26%), linear-gradient(135deg, #172e8f, #4122a7 68%, #101a4d); box-shadow: 0 14px 34px rgba(34, 44, 120, 0.18); }
.lab-spotlight .eyebrow { color: #c6d2ff; }
.lab-spotlight h2 { max-width: 14ch; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.02; }
.lab-spotlight p:not(.eyebrow) { max-width: 54ch; margin-top: 16px; color: #dfe5ff; font-size: 1.05rem; }
.lab-spotlight .pill { margin-top: 24px; color: #eef1ff; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.24); }
