/* ==========================================================================
   NIGHT ATLAS: design system for the public pages
   A living sky: glass cards over stars by night and clouds by day, butter light,
   readable Prompt + Sarabun type, and a different entrance for each section.
   ========================================================================== */

:root {
    --a-bg: #070A14;
    --a-surface: rgba(24, 30, 52, 0.62);
    --a-surface-strong: #141A2E;
    --a-ink: #F7F3E9;
    --a-muted: #C9C8C1;
    --a-line: rgba(255, 255, 255, 0.13);
    --a-line-strong: rgba(255, 255, 255, 0.3);
    --a-accent: #FFD36E;
    --a-accent-2: #93A1FF;
    --a-accent-3: #FF9EB5;
    --a-on-accent: #1A1405;
    --a-scroll: #66709F;
    --a-glow: 255, 211, 110;
    --a-nebula-1: rgba(96, 92, 230, 0.26);
    --a-nebula-2: rgba(226, 92, 160, 0.13);
    --a-nebula-3: rgba(40, 150, 200, 0.16);
    --a-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --a-title-gradient: linear-gradient(100deg, #FFE7A8 0%, #FFC861 45%, #FF9EB5 100%);
    --a-head: 'Prompt', 'Sarabun', system-ui, sans-serif;
    --a-sans: 'Sarabun', 'Prompt', system-ui, sans-serif;
    --a-gutter: clamp(20px, 4vw, 56px);
    --a-section: clamp(80px, 11vw, 150px);
    --a-radius: 20px;
    --a-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --a-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

[data-theme="light"] {
    --a-bg: #DDF0FB;
    --a-surface: rgba(255, 252, 244, 0.74);
    --a-surface-strong: #FFFCF4;
    --a-ink: #1B1710;
    --a-muted: #4C4638;
    --a-line: rgba(40, 30, 10, 0.14);
    --a-line-strong: rgba(40, 30, 10, 0.34);
    --a-accent: #7A4E00;
    --a-accent-2: #4A55C4;
    --a-accent-3: #A82E57;
    --a-on-accent: #FFF9EA;
    --a-scroll: #7C86B0;
    --a-glow: 176, 118, 0;
    --a-nebula-1: rgba(255, 238, 180, 0.55);
    --a-nebula-2: rgba(255, 220, 200, 0.2);
    --a-nebula-3: rgba(255, 255, 255, 0.3);
    --a-shadow: 0 20px 44px rgba(90, 66, 20, 0.14);
    --a-title-gradient: linear-gradient(100deg, #8F5E00 0%, #B4620A 50%, #C2416B 100%);
}

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

body.atlas {
    margin: 0;
    background: var(--a-bg);
    color: var(--a-ink);
    font-family: var(--a-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Nebula by night, sun glow by day: soft colour fixed over the sky. */
body.atlas::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(52vw 42vw at 84% 12%, var(--a-nebula-1), transparent 70%),
        radial-gradient(44vw 38vw at 6% 58%, var(--a-nebula-3), transparent 70%),
        radial-gradient(46vw 36vw at 72% 96%, var(--a-nebula-2), transparent 70%);
}

:where(.atlas) :where(h1, h2, h3, p, ul, figure, blockquote) { margin: 0; padding: 0; }
:where(.atlas) ul { list-style: none; }
:where(.atlas) img { display: block; max-width: 100%; }
:where(.atlas) a { color: inherit; text-decoration: none; }
:where(.atlas) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.atlas :focus-visible { outline: 2px solid var(--a-accent); outline-offset: 3px; }
.atlas ::selection { background: var(--a-accent); color: var(--a-on-accent); }

#atlas-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
[data-theme="light"] #atlas-sky { background: linear-gradient(180deg, #BCE0F7 0%, #DDF0FB 55%, #F6F8F2 100%); }
#main, .a-footer { position: relative; z-index: 1; }

.a-skip { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 8px 14px; border-radius: 10px; background: var(--a-accent); color: var(--a-on-accent); transform: translateY(-200%); }
.a-skip:focus { transform: none; }

.a-wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--a-gutter); }
.a-section { padding-block: var(--a-section); }
.a-section + .a-section { padding-top: 0; }

/* --- Type ---------------------------------------------------------------- */
.a-mono {
    font-family: var(--a-head);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--a-muted);
    line-height: 1.5;
}

.a-display, .a-h1, .a-h2, .a-h3 { font-family: var(--a-head); font-weight: 600; text-wrap: balance; }
.a-display { font-size: clamp(46px, 8vw, 120px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.a-h1 { font-size: clamp(42px, 7vw, 100px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.a-h2 { font-size: clamp(32px, 4.4vw, 62px); line-height: 1.18; letter-spacing: -0.015em; }
.a-h3 { font-size: clamp(23px, 2.2vw, 31px); line-height: 1.3; letter-spacing: -0.005em; }
.a-lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.6; color: var(--a-muted); max-width: 40em; text-wrap: pretty; }

html[lang="th"] .a-display, html[lang="th"] .a-h1, html[lang="th"] .a-h2, html[lang="th"] .a-h3 { line-height: 1.34; letter-spacing: 0; }

/* Stored headlines wrap their emphasis in .text-gradient. */
.atlas .text-gradient {
    background: var(--a-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-inline-end: .04em;
}

/* --- Buttons and links --------------------------------------------------- */
.a-btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 54px; padding: 0 28px;
    border: 1px solid var(--a-line-strong); border-radius: 999px;
    background: var(--a-surface);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-family: var(--a-head); font-size: 16px; font-weight: 500;
    transition: transform .3s var(--a-spring), box-shadow .3s, border-color .25s, color .25s;
}
.a-btn i { transition: transform .3s var(--a-ease); }
.a-btn:hover { transform: translateY(-3px); border-color: var(--a-accent); color: var(--a-accent); box-shadow: 0 12px 30px rgba(var(--a-glow), .22); }
.a-btn:hover i { transform: translateX(4px); }
.a-btn--solid { background: var(--a-accent); border-color: transparent; color: var(--a-on-accent); box-shadow: 0 10px 34px rgba(var(--a-glow), .36); }
.a-btn--solid:hover { color: var(--a-on-accent); border-color: transparent; box-shadow: 0 16px 44px rgba(var(--a-glow), .55); }
/* Light sweeps across the solid button on hover. */
.a-btn--solid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--a-ease); }
.a-btn--solid:hover::after { transform: translateX(120%); }
.a-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.a-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--a-head); font-size: 16px; font-weight: 500; color: var(--a-accent); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.a-link i { transition: transform .3s var(--a-ease); }
.a-link:hover i { transform: translateX(5px); }
.a-owner-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }

/* --- Navigation ---------------------------------------------------------- */
.a-nav { position: fixed; inset: 12px 0 auto; z-index: 60; padding-inline: 12px; }
.a-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; max-width: 1320px; margin-inline: auto; padding-inline: 22px; border: 1px solid transparent; border-radius: 999px; transition: background-color .3s, border-color .3s, box-shadow .3s; }
:root .a-nav.site-navbar.is-scrolled { background: none !important; box-shadow: none !important; backdrop-filter: none !important; }
.a-nav.is-scrolled .a-nav-inner { background: color-mix(in srgb, var(--a-surface-strong) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--a-line); box-shadow: var(--a-shadow); }
.a-brand { font-family: var(--a-head); font-weight: 700; font-size: 22px; line-height: 1; white-space: nowrap; }
.a-nav-links { display: flex; gap: clamp(4px, 1vw, 12px); font-family: var(--a-head); font-size: 15px; font-weight: 500; }
.a-nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--a-muted); transition: color .2s, background-color .2s; }
.a-nav-links a:hover { color: var(--a-ink); background: var(--a-line); }
.a-nav-links a[aria-current] { color: var(--a-on-accent); background: var(--a-accent); }
.a-nav-tools { display: flex; align-items: center; gap: 8px; }
.a-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; transition: color .2s, transform .3s var(--a-spring); }
.a-icon-btn:hover { color: var(--a-accent); transform: scale(1.08); }
.a-menu-btn { display: none; }
.a-nav-admin { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--a-line); border-radius: 999px; font-family: var(--a-head); font-size: 14px; }
.a-nav-tools form { margin: 0; }
.a-nav-tools .a-nav-logout { height: 42px; padding: 0 14px !important; border: 1px solid var(--a-line) !important; border-radius: 999px; background: none !important; box-shadow: none !important; color: var(--a-ink) !important; font-family: var(--a-head); font-size: 14px !important; }

.atlas .language-switcher { position: relative; bottom: auto; left: auto; right: auto; }
.atlas .language-switcher-btn { height: 42px; padding: 0 14px; border-radius: 999px; background: none; border-color: var(--a-line); font-family: var(--a-head); font-size: 14px; font-weight: 500; color: var(--a-ink); }
.atlas .language-dropdown { top: calc(100% + 8px); bottom: auto; border-radius: 14px; background: var(--a-surface-strong); border-color: var(--a-line); }
.atlas .language-option { color: var(--a-muted); font-family: var(--a-head); }
.atlas .language-option.active { color: var(--a-accent); }

.a-menu { position: fixed; inset: 0; z-index: 55; padding: 104px var(--a-gutter) 40px; background: var(--a-bg); overflow-y: auto; }
.a-menu[hidden] { display: none; }
.a-menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--a-line); font-family: var(--a-head); font-weight: 600; font-size: clamp(30px, 9vw, 44px); line-height: 1.3; animation: a-slide-left .5s var(--a-ease) both; }
.a-menu nav a:nth-child(2) { animation-delay: .05s; }
.a-menu nav a:nth-child(3) { animation-delay: .1s; }
.a-menu nav a:nth-child(4) { animation-delay: .15s; }
.a-menu nav a:nth-child(5) { animation-delay: .2s; }
.a-menu nav a:nth-child(6) { animation-delay: .25s; }
.a-menu nav a:nth-child(7) { animation-delay: .3s; }
.a-menu nav a span { font-size: 14px; font-weight: 500; color: var(--a-muted); }
.a-menu nav a[aria-current] { color: var(--a-accent); }
.a-menu-actions { display: flex; gap: 20px; margin-top: 24px; font-family: var(--a-head); font-size: 15px; }
.a-menu-actions form { margin: 0; }

/* --- Hero (home) --------------------------------------------------------- */
.a-hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding-block: 112px 28px; overflow: hidden; }
#atlas-butterfly { position: absolute; top: 0; right: -3vw; width: min(60vw, 960px); height: 100%; }
.a-hero > .a-wrap { display: flex; flex-direction: column; flex: 1; justify-content: center; }
.a-hero-copy { position: relative; margin-block: auto; max-width: 860px; }
.a-hero-status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 7px 16px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-surface); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--a-ink); }
.a-hero-status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #5CE39A; box-shadow: 0 0 0 0 rgba(92, 227, 154, .6); animation: a-ping 2s infinite; }
.a-hero .a-lede { margin-top: 24px; }
.a-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.a-hero-meta { position: relative; display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--a-line); }

/* --- Ticker -------------------------------------------------------------- */
.a-ticker { position: relative; overflow: hidden; padding-block: 18px; border-block: 1px solid var(--a-line); background: var(--a-surface); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.a-ticker-track { display: flex; width: max-content; animation: a-ticker 34s linear infinite; }
.a-ticker:hover .a-ticker-track { animation-play-state: paused; }
.a-ticker span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--a-head); font-size: clamp(18px, 2vw, 26px); font-weight: 600; white-space: nowrap; }
.a-ticker span::after { content: '✦'; color: var(--a-accent); font-size: .8em; }

/* --- Section header ------------------------------------------------------ */
.a-sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; align-items: end; margin-bottom: clamp(32px, 5vw, 60px); }
.a-sec-head > .a-mono { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; color: var(--a-accent); }
.a-sec-head > .a-mono::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--a-accent), transparent); }
.a-sec-head > h2 { grid-column: 1 / 9; }
.a-sec-head > p { grid-column: 1 / 9; color: var(--a-muted); max-width: 40em; }
.a-sec-head > .a-sec-aside { grid-column: 9 / -1; justify-self: end; }

/* --- Card base and pointer spotlight ------------------------------------- */
.a-work, .a-bento a, .a-entry, .a-method, .a-impact > div, .a-linkrow, .a-glass {
    position: relative;
    border: 1px solid var(--a-line);
    border-radius: var(--a-radius);
    background: var(--a-surface);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
[data-spot]::before {
    content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--a-glow), .17), transparent 65%);
    opacity: 0; transition: opacity .3s;
}
[data-spot]:hover::before { opacity: 1; }
[data-spot] > * { position: relative; z-index: 1; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* --- Identity ------------------------------------------------------------ */
.a-identity { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.a-identity-photo { grid-column: 1 / 6; position: relative; }
.a-identity-copy { grid-column: 7 / -1; }
.a-frame { position: relative; padding: 12px; border: 1px solid var(--a-line); border-radius: 26px; background: var(--a-surface); box-shadow: var(--a-shadow), 0 0 70px rgba(var(--a-glow), .14); }
.a-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.a-frame figcaption { margin-top: 10px; padding-inline: 4px; display: flex; justify-content: space-between; gap: 16px; }
/* A small star circling the portrait. */
.a-orbit { position: absolute; inset: -6%; z-index: -1; border: 1px dashed rgba(var(--a-glow), .4); border-radius: 50%; animation: a-spin 26s linear infinite; pointer-events: none; }
.a-orbit::before { content: '✦'; position: absolute; top: -13px; left: 50%; color: var(--a-accent); font-size: 22px; text-shadow: 0 0 14px rgba(var(--a-glow), .9); }
.a-identity-copy .a-body { margin-top: 22px; color: var(--a-muted); max-width: 36em; }
.a-identity-copy .a-body p + p { margin-top: 14px; }
.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.a-stats > div { padding: 16px 18px; border: 1px solid var(--a-line); border-radius: 16px; background: var(--a-surface); }
.a-stats strong { display: block; font-family: var(--a-head); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.2; color: var(--a-accent); }

/* --- Star plates --------------------------------------------------------- */
.a-plate { display: block; width: 100%; height: 100%; color: var(--a-accent); background: var(--a-surface-strong); }
.a-plate-dust { fill: var(--a-ink); opacity: .4; }
.a-plate-line { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .8; }
.a-plate-stars { fill: currentColor; }

/* --- Work cards ---------------------------------------------------------- */
.a-works { display: grid; gap: 20px; }
.a-work { display: block; width: 100%; text-align: left; overflow: hidden; transition: border-color .3s, box-shadow .35s, transform .3s; }
.a-work:hover { border-color: rgba(var(--a-glow), .6); box-shadow: var(--a-shadow), 0 0 44px rgba(var(--a-glow), .18); }
.a-work-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(14px, 1.6vw, 20px); }
.a-work:nth-child(even) .a-work-media { order: 2; }
.a-work-index { position: absolute; top: 18px; right: 22px; font-size: 30px; font-weight: 700; color: var(--a-line-strong); }
.a-work:nth-child(even) .a-work-index { right: auto; left: 22px; }
.a-work-media { overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: var(--a-surface-strong); }
.a-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--a-ease); }
.a-work:hover .a-work-media img { transform: scale(1.06); }
.a-work-title { transition: color .25s; }
.a-work:hover .a-work-title { color: var(--a-accent); }
.a-work-desc { margin-top: 10px; color: var(--a-muted); max-width: 34em; }
.a-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.a-tags span { padding: 3px 12px; border: 1px solid var(--a-line); border-radius: 999px; font-family: var(--a-head); font-size: 13px; font-weight: 500; color: var(--a-muted); }
.a-tags span:first-child, .a-tags .a-tag-cat { border-color: transparent; background: rgba(var(--a-glow), .16); color: var(--a-accent); }
.a-work-open { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--a-head); font-size: 15px; font-weight: 500; color: var(--a-accent); }
.a-work .a-work-open i { transition: transform .3s var(--a-ease); }
.a-work:hover .a-work-open i { transform: translateX(6px); }

/* --- Bento gateway ------------------------------------------------------- */
.a-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.a-bento a { grid-column: span 2; display: flex; flex-direction: column; min-height: 230px; padding: 26px; overflow: hidden; transition: border-color .3s, box-shadow .35s; }
.a-bento a:nth-child(1) { grid-column: span 4; }
.a-bento a:hover { border-color: rgba(var(--a-glow), .6); box-shadow: var(--a-shadow), 0 0 40px rgba(var(--a-glow), .16); }
.a-bento-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: auto; border-radius: 16px; background: rgba(var(--a-glow), .15); color: var(--a-accent); font-size: 22px; transition: transform .4s var(--a-spring); }
.a-bento a:hover .a-bento-icon { transform: rotate(-8deg) scale(1.12); }
.a-bento-title { margin-top: 28px; font-family: var(--a-head); font-weight: 600; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.25; }
.a-bento-desc { margin-top: 6px; color: var(--a-muted); }
.a-bento-go { position: absolute !important; top: 26px; right: 26px; color: var(--a-muted); transition: transform .3s var(--a-ease), color .2s; }
.a-bento a:hover .a-bento-go { color: var(--a-accent); transform: translate(4px, -4px); }

/* --- Quote and closing strip --------------------------------------------- */
.a-quote { max-width: 1120px; margin-inline: auto; text-align: center; }
.a-quote blockquote { font-family: var(--a-head); font-weight: 600; font-size: clamp(30px, 4.6vw, 66px); line-height: 1.32; text-wrap: pretty; }
html[lang="th"] .a-quote blockquote { line-height: 1.5; }
.a-quote .a-mono { display: block; color: var(--a-accent); }
.a-quote .a-mono:first-child { margin-bottom: 24px; }
.a-quote blockquote + .a-mono { margin-top: 28px; }
.a-word { opacity: .16; transition: opacity .35s ease; }
.a-word.is-lit { opacity: 1; }
.a-strip { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; padding: clamp(32px, 5vw, 64px); border: 1px solid var(--a-line); border-radius: 28px; background: linear-gradient(120deg, rgba(var(--a-glow), .17), var(--a-surface) 60%); }
.a-strip > div:first-child { grid-column: 1 / 9; }
.a-strip > div:last-child { grid-column: 9 / -1; justify-self: end; }
.a-strip p { margin-top: 14px; color: var(--a-muted); max-width: 36em; }

/* --- Inner page head ----------------------------------------------------- */
.a-head { padding-block: clamp(136px, 18vh, 190px) clamp(32px, 5vw, 60px); }
.a-head > .a-mono { display: inline-block; margin-bottom: 18px; padding: 6px 16px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-surface); color: var(--a-accent); }
.a-head-text { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 20px; }
.a-head-text > * { grid-column: 1 / 10; }
.a-head-text p + p { margin-top: 10px; color: var(--a-muted); }

/* --- Filter tabs --------------------------------------------------------- */
.atlas .category-filter { justify-content: flex-start; gap: 8px; margin-bottom: 24px; }
.atlas .category-tab { padding: 7px 18px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-surface); font-family: var(--a-head); font-size: 15px; font-weight: 500; color: var(--a-muted); }
.atlas .category-tab:hover { color: var(--a-ink); border-color: var(--a-line-strong); }
.atlas .category-tab.active, [data-theme="light"] .atlas .category-tab.active { background: var(--a-accent); border-color: transparent; color: var(--a-on-accent); }
.atlas .category-filter { position: relative; z-index: 5; }
.atlas .category-filter[hidden] { display: none; }
.atlas .a-more-btn { border-style: dashed; }
.a-more-panel { position: absolute; top: calc(100% + 8px); left: 0; display: flex; flex-wrap: wrap; gap: 8px; width: max-content; max-width: min(100%, 460px); padding: 12px; border: 1px solid var(--a-line); border-radius: var(--a-radius); background: var(--a-surface-strong); box-shadow: var(--a-shadow); }
.a-more-panel[hidden] { display: none; }

/* --- Dialogs ------------------------------------------------------------- */
.a-dialog { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--a-line-strong); border-radius: 24px; background: var(--a-surface-strong); color: var(--a-ink); }
.a-dialog::backdrop { background: rgba(4, 6, 14, .8); backdrop-filter: blur(8px); }
.a-dialog-close { position: sticky; top: 12px; z-index: 2; display: flex; margin: 12px 12px -54px auto; border-radius: 50%; background: var(--a-surface-strong) !important; }
.a-dialog-media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--a-surface); }
.a-dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.a-dialog-media--set { aspect-ratio: 16 / 9; }
.a-dialog-media--set img { object-fit: contain; }
.a-dialog-thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; border-bottom: 1px solid var(--a-line); }
.a-dialog-thumbs button { flex: 0 0 96px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: var(--a-surface); opacity: .65; cursor: pointer; }
.a-dialog-thumbs button:hover, .a-dialog-thumbs button[aria-current] { opacity: 1; }
.a-dialog-thumbs button[aria-current] { border-color: var(--a-accent); }
.a-dialog-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.a-dialog-body { padding: clamp(24px, 5vw, 52px); }
.a-dialog-body .a-h2 { margin-bottom: 28px; }
.a-case { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 24px; padding-block: 16px; border-top: 1px solid var(--a-line); }
.a-case p { color: var(--a-muted); white-space: pre-line; }
.a-case .a-mono { padding-top: 4px; color: var(--a-accent); }
.a-prose { color: var(--a-muted); max-width: 40em; }
.a-prose p + p { margin-top: 16px; }

/* --- Gallery ------------------------------------------------------------- */
.a-gallery { columns: 3 280px; column-gap: 16px; }
/* With JS the wall reads left to right, in the order set by the owner. */
.a-gallery.is-packed { display: grid; columns: auto; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); grid-auto-rows: 4px; column-gap: 16px; align-items: start; }
.a-cell { position: relative; margin-bottom: 16px; break-inside: avoid; }
.is-packed .a-cell { margin-bottom: 0; }
.a-shot { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 16px; text-align: left; }
.a-manage-status { color: var(--a-muted); font-size: 14px; }
.is-managing .a-cell { border-radius: 16px; outline: 2px dashed var(--a-accent); outline-offset: 2px; cursor: grab; }
.is-managing .a-cell.is-dragging { opacity: .4; }
.is-managing .a-shot { pointer-events: none; }
.a-cell-tools { position: absolute; inset: 8px 8px auto; display: none; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.is-managing .a-cell-tools { display: flex; }
.a-tool { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--a-line); border-radius: 50%; background: var(--a-surface-strong); color: var(--a-ink); font-size: 14px; }
.a-tool:hover { border-color: var(--a-accent); color: var(--a-accent); }
.a-tool:disabled { opacity: .5; cursor: wait; }
.a-tool.a-tool--danger, .a-tool.a-tool--danger:hover { border-color: transparent; background: #DC3545; color: #fff; }
.a-shot img { width: 100%; height: auto; background: var(--a-surface-strong); transition: transform .8s var(--a-ease); }
.a-shot:hover img { transform: scale(1.06); }
.a-shot span { position: absolute; inset: auto 0 0; padding: 36px 16px 12px; background: linear-gradient(transparent, rgba(4, 6, 14, .85)); color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.a-shot:hover span, .a-shot:focus-visible span { opacity: 1; transform: none; }
.a-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(6, 8, 16, .96); color: #F7F3E9; }
.a-lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.a-lightbox::backdrop { background: #06080F; }
.a-lightbox-stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 64px 72px 12px; }
.a-lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.a-lightbox-info { padding: 12px 24px 28px; text-align: center; }
.a-lightbox-info h2 { color: #FFD36E; }
.a-lightbox-info p { color: #C9C8C1; }
.a-lightbox .a-icon-btn { position: absolute; border-radius: 50%; background: rgba(6, 8, 16, .6); color: #F7F3E9; }
.a-lb-close { top: 16px; right: 16px; }
.a-lb-prev { left: 16px; top: 50%; }
.a-lb-next { right: 16px; top: 50%; }

/* --- Life timeline ------------------------------------------------------- */
.a-log { position: relative; display: grid; gap: 14px; padding-left: 34px; }
.a-log::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 8px; width: 2px; background: linear-gradient(var(--a-accent), var(--a-accent-2), transparent); transform-origin: top; animation: a-draw-y 1.8s var(--a-ease) .3s both; }
.a-entry { display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px; gap: 20px; align-items: center; width: 100%; padding: 20px 24px; text-align: left; transition: border-color .3s, box-shadow .3s, translate .3s var(--a-ease); }
.a-entry::after { content: ''; position: absolute; left: -32px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--a-bg); border: 3px solid var(--a-accent); box-shadow: 0 0 14px rgba(var(--a-glow), .7); }
.a-entry:hover { border-color: rgba(var(--a-glow), .6); translate: 8px 0; box-shadow: 0 0 34px rgba(var(--a-glow), .14); }
.a-entry .a-mono span { display: block; color: var(--a-accent); }
.a-entry h2 { transition: color .25s; }
.a-entry:hover h2 { color: var(--a-accent); }
.a-entry p { margin-top: 4px; color: var(--a-muted); max-width: 40em; }
.a-entry > i { justify-self: end; color: var(--a-muted); }

/* --- Profile ------------------------------------------------------------- */
.a-profile { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: clamp(120px, 16vh, 170px) 0; }
.a-profile-photo { grid-column: 1 / 6; align-self: start; position: sticky; top: 104px; }
.a-profile-body { grid-column: 7 / -1; }
.a-profile-tag { display: inline-block; margin-bottom: 18px; padding: 6px 16px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-surface); color: var(--a-accent); }
.a-profile-name { font-size: clamp(40px, 5.2vw, 72px); overflow-wrap: anywhere; }
.a-profile-body > .a-lede { margin-top: 14px; }
.a-profile-body section { margin-top: 40px; }
.a-profile-body .a-mono.a-label { margin-bottom: 14px; color: var(--a-accent); }
.a-defs { margin: 0; }
.a-defs > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--a-line); }
.a-defs dd { margin: 0; overflow-wrap: anywhere; }
.a-defs dt { padding-top: 3px; }
.a-defs a:hover { color: var(--a-accent); }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a-chips a, .a-chips span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-surface); font-family: var(--a-head); font-size: 15px; font-weight: 500; transition: color .2s, border-color .2s, transform .3s var(--a-spring); }
.a-chips a:hover { color: var(--a-accent); border-color: var(--a-accent); transform: translateY(-3px); }

/* --- Links --------------------------------------------------------------- */
.a-links-page { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: clamp(120px, 16vh, 170px) var(--a-section); }
.a-links-intro { grid-column: 1 / 6; position: sticky; top: 104px; align-self: start; }
.a-links-intro img { width: 120px; height: 120px; object-fit: cover; margin-bottom: 22px; border-radius: 50%; border: 2px solid var(--a-accent); box-shadow: 0 0 34px rgba(var(--a-glow), .35); }
.a-links-intro p { margin-top: 14px; color: var(--a-muted); }
.a-links-intro .text-primary { color: var(--a-accent) !important; }
.a-links-list { grid-column: 7 / -1; display: grid; gap: 12px; align-content: start; }
.a-linkrow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 16px 20px; transition: border-color .3s, box-shadow .3s, translate .3s var(--a-ease); }
.a-linkrow:hover { border-color: rgba(var(--a-glow), .6); translate: 8px 0; box-shadow: 0 0 30px rgba(var(--a-glow), .16); }
.a-linkrow svg { width: 22px; height: 22px; fill: currentColor; }
.a-linkrow > i:first-child, .a-linkrow > svg { justify-self: center; font-size: 22px; color: var(--a-accent); }
.a-linkrow h2 { font-family: var(--a-head); font-weight: 600; font-size: 21px; line-height: 1.3; }
.a-linkrow p { color: var(--a-muted); font-size: 16px; }

/* --- Support ------------------------------------------------------------- */
.a-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.a-split-copy { grid-column: 1 / 7; }
.a-split-copy .a-body { margin-top: 22px; color: var(--a-muted); }
.a-split-copy .a-body p + p { margin-top: 12px; }
.a-split-copy .text-primary { color: var(--a-accent) !important; font-weight: 600; }
.a-split-media { grid-column: 8 / -1; }
.a-split-media .a-frame img, .a-split-plate { aspect-ratio: 1; }
.a-impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.a-impact > div { padding: 26px; }
.a-impact i { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 14px; background: rgba(var(--a-glow), .15); color: var(--a-accent); font-size: 20px; }
.a-impact p { margin-top: 8px; color: var(--a-muted); }
.a-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.a-method-stack { display: grid; gap: 16px; }
.a-method-stack:only-child { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a-method--qr:only-child { grid-column: 1 / -1; }
.a-method { display: block; width: 100%; padding: 28px; text-align: left; transition: border-color .3s, box-shadow .3s; }
.a-method.a-method--qr { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
a.a-method:hover, button.a-method:hover { border-color: rgba(var(--a-glow), .6); box-shadow: 0 0 36px rgba(var(--a-glow), .16); }
.a-method > p { margin-top: 6px; color: var(--a-muted); }
.a-method img { width: min(320px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; margin: 22px auto 12px; padding: 10px; border-radius: 14px; background: #fff; }
.a-method .a-defs { margin-top: 12px; }
.a-method .a-defs > div { grid-template-columns: 96px minmax(0, 1fr); }
.a-method-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--a-head); font-size: 15px; font-weight: 500; color: var(--a-accent); }
.a-note { max-width: 860px; margin-inline: auto; text-align: center; }
.a-note p { margin: 20px auto 24px; }
.a-note .a-chips { justify-content: center; }

/* --- Empty and error states ---------------------------------------------- */
.a-empty { padding-block: 64px; color: var(--a-muted); }
.a-error { display: flex; flex-direction: column; justify-content: center; min-height: 78svh; padding-block: 136px 48px; }
.a-error .a-mono { margin-bottom: 18px; color: var(--a-accent); }
.a-error .a-lede { margin-top: 20px; }

/* --- Footer -------------------------------------------------------------- */
.a-footer { padding-block: clamp(72px, 9vw, 120px) 26px; }
.a-footer-closing { font-family: var(--a-head); font-weight: 700; font-size: clamp(32px, 4vw, 56px); line-height: 1.25; text-wrap: balance; background: var(--a-title-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.a-footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 32px 24px; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--a-line); }
.a-footer-grid h2 { margin-bottom: 10px; color: var(--a-accent); }
.a-footer-grid li { padding-block: 3px; overflow-wrap: anywhere; }
.a-footer-grid a { transition: color .2s; }
.a-footer-grid a:hover, .a-footer-base a:hover { color: var(--a-accent); }
.a-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--a-line); }
.a-footer-actions { display: flex; gap: 20px; }

/* common-theme.css styles any close-icon button; keep Atlas buttons clean. */
.atlas button.a-icon-btn { border: 0 !important; box-shadow: none !important; }
.atlas .a-menu-actions button { font-family: var(--a-head); font-size: 15px; padding: 0; min-height: 0; width: auto; background: none; }

/* --- MOTION: a different entrance for each kind of section --------------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
.a-nav { view-transition-name: a-nav; }

@keyframes a-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes a-slide-left { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@keyframes a-unmask {
    from { clip-path: inset(-10% -5% 100% -5%); transform: translateY(.16em); }
    to { clip-path: inset(-10% -5% -20% -5%); transform: none; }
}
@keyframes a-dialog-in { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes a-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes a-progress { to { transform: scaleX(1); } }
@keyframes a-ticker { to { transform: translateX(-50%); } }
@keyframes a-spin { to { transform: rotate(360deg); } }
@keyframes a-ping { 70% { box-shadow: 0 0 0 10px rgba(92, 227, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 227, 154, 0); } }
@keyframes a-draw-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes a-float { 50% { transform: translateY(-10px); } }

/* Page entrance, in reading order. */
.js .a-hero h1, .js .a-head h1, .js .a-error h1 { animation: a-unmask 1.1s var(--a-ease) .12s both; }
.js .a-hero-status, .js .a-head > .a-mono, .js .a-error > .a-mono { animation: a-rise .8s var(--a-ease) both; }
.js .a-hero .a-lede, .js .a-head-text, .js .a-error .a-lede { animation: a-rise .9s var(--a-ease) .4s both; }
.js .a-hero-cta, .js .a-error .a-btn { animation: a-rise .9s var(--a-ease) .55s both; }
.js .a-hero-meta { animation: a-rise .9s var(--a-ease) .7s both; }
.js .a-links-intro { animation: a-slide-left .9s var(--a-ease) both; }

/* Scroll entrances. data-rise picks the movement. */
.js [data-rise] { opacity: 0; transition: opacity .8s var(--a-ease), transform .9s var(--a-ease), filter .8s var(--a-ease); }
.js [data-rise=""], .js [data-rise="up"] { transform: translateY(40px); }
.js [data-rise="left"] { transform: translateX(-90px); }
.js [data-rise="right"] { transform: translateX(90px); }
.js [data-rise="zoom"] { transform: scale(.82); }
.js [data-rise="flip"] { transform: perspective(900px) rotateX(38deg) translateY(30px); transform-origin: 50% 100%; }
.js [data-rise="blur"] { filter: blur(16px); transform: scale(1.06); }
.js [data-rise="pop"] { transform: scale(.7) translateY(30px); transition-timing-function: var(--a-ease), var(--a-spring), var(--a-ease); }
.js [data-rise].is-in { opacity: 1; transform: none; filter: none; }

/* Section details that follow their parent in. */
.js .a-sec-head[data-rise] > .a-mono::after { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--a-ease) .2s; }
.js .a-sec-head[data-rise].is-in > .a-mono::after { transform: none; }
.js [data-rise] .a-work-media, .js .a-frame[data-rise] img, .js [data-rise] .a-frame img { clip-path: inset(0 100% 0 0 round 14px); transition: clip-path 1.2s var(--a-ease) .15s, transform .9s var(--a-ease); }
.js [data-rise].is-in .a-work-media, .js .a-frame[data-rise].is-in img, .js [data-rise].is-in .a-frame img { clip-path: inset(0 0 0 0 round 14px); }
.a-bento-icon { animation: a-float 5s ease-in-out infinite; }
.a-bento a:nth-child(2n) .a-bento-icon { animation-delay: -2.2s; }

.a-dialog[open] { animation: a-dialog-in .42s var(--a-spring); }
.a-lightbox[open] { animation: a-fade .28s ease; }
dialog[open]::backdrop { animation: a-fade .3s ease; }

/* Scroll position as a thin line along the top. */
@supports (animation-timeline: scroll()) {
    body.atlas::before { content: ''; position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; background: var(--a-title-gradient); transform: scaleX(0); transform-origin: left; animation: a-progress linear both; animation-timeline: scroll(root); }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 960px) {
    .a-nav-links { display: none; }
    .a-menu-btn { display: inline-flex; }
    .a-nav-admin span { display: none; }
    #atlas-butterfly { right: -16vw; width: 118vw; height: 56%; opacity: .55; }
    .a-sec-head > h2, .a-sec-head > p, .a-sec-head > .a-sec-aside { grid-column: 1 / -1; justify-self: start; }
    .a-identity-photo, .a-identity-copy, .a-profile-photo, .a-profile-body, .a-split-copy, .a-split-media, .a-links-intro, .a-links-list, .a-strip > div:first-child, .a-strip > div:last-child { grid-column: 1 / -1; justify-self: stretch; }
    .a-identity-photo, .a-profile-photo { max-width: 420px; }
    .a-identity-copy { margin-top: 24px; }
    .a-links-intro { position: static; }
    .a-head-text > * { grid-column: 1 / -1; }
    .a-work-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .a-work:nth-child(even) .a-work-media { order: 0; }
    .a-work-index { display: none; }
    .a-bento a { grid-column: span 3; min-height: 200px; }
    .a-bento a:nth-child(1) { grid-column: 1 / -1; }
    .a-impact { grid-template-columns: minmax(0, 1fr); }
    .a-methods, .a-method-stack:only-child { grid-template-columns: minmax(0, 1fr); }
    .a-profile-photo { position: static; }
    .a-profile-body { margin-top: 12px; }
    .a-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a-footer-closing { grid-column: 1 / -1; }
    /* Sideways entrances would widen a phone page. */
    .js [data-rise="left"] { transform: translateX(-36px); }
    .js [data-rise="right"] { transform: translateX(36px); }
}

@media (max-width: 560px) {
    body.atlas { font-size: 17px; }
    .a-nav { inset: 8px 0 auto; padding-inline: 8px; }
    .a-nav-inner { gap: 6px; padding-inline: 14px 6px; }
    .a-nav-tools { gap: 0; }
    .a-nav-tools .a-icon-btn { width: 36px; }
    .a-brand { font-size: 19px; }
    .atlas .language-switcher-btn { padding: 0 10px; }
    .a-hero-meta span:nth-child(2), .a-hero-meta span:last-child { display: none; }
    .a-bento a { grid-column: 1 / -1; min-height: 170px; }
    .a-stats > div { padding: 12px; }
    .a-entry { grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 12px; padding: 16px; }
    .a-entry > .a-mono { grid-column: 1 / -1; }
    .a-case, .a-defs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .a-lightbox-stage { padding: 64px 12px 12px; }
    .a-lb-prev, .a-lb-next { top: auto; bottom: 16px; }
    .a-footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .a-footer-grid li { font-size: 16px; }
}

/* Calm mode: stars, shooting stars and fades stay; large movement goes. */
.calm .a-ticker-track, .calm .a-orbit, .calm .a-bento-icon { animation: none; }
.calm [data-rise] { transform: none !important; filter: none !important; }
.calm [data-rise] .a-work-media, .calm .a-frame[data-rise] img, .calm [data-rise] .a-frame img { clip-path: none; }
.calm .a-sec-head[data-rise] > .a-mono::after { transform: none; }
.calm .a-hero h1, .calm .a-head h1, .calm .a-error h1, .calm .a-hero-status, .calm .a-head > .a-mono, .calm .a-error > .a-mono,
.calm .a-hero .a-lede, .calm .a-head-text, .calm .a-error .a-lede, .calm .a-hero-cta, .calm .a-error .a-btn, .calm .a-hero-meta,
.calm .a-links-intro, .calm .a-dialog[open], .calm .a-menu nav a { animation-name: a-fade; }
.calm .a-log::before { animation: none; }

#motion-toggle.is-on { color: var(--a-accent); }

/* --- Owner toolbar ------------------------------------------------------- */
.a-owner { position: fixed; left: 50%; bottom: 16px; z-index: 58; display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 16px); padding: 6px; border: 1px solid var(--a-line-strong); border-radius: 999px; background: color-mix(in srgb, var(--a-surface-strong) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--a-shadow); transform: translateX(-50%); font-family: var(--a-head); font-size: 14px; font-weight: 500; }
.a-owner a, .a-owner button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s; }
.a-owner a:hover, .a-owner button:hover { background: var(--a-line); }
.atlas .a-owner .a-owner-edit { background: var(--a-accent); color: var(--a-on-accent); }
.a-owner form { margin: 0; }
.atlas .a-owner button { border: 0 !important; box-shadow: none !important; }

@media (max-width: 560px) {
    .a-nav-login { display: none; }
    .a-owner { font-size: 13px; }
    .a-owner a, .a-owner button { padding: 0 11px; }
}

.a-contact { scroll-margin-top: 110px; }
.a-contact form { display: grid; gap: 14px; margin-top: 16px; }
.a-contact label span { display: block; margin-bottom: 6px; font-size: 14px; color: var(--a-muted); }
.a-contact input, .a-contact textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--a-line-strong); border-radius: 12px; background: var(--a-surface); color: var(--a-ink); font: inherit; }
.a-contact input:focus, .a-contact textarea:focus { outline: 2px solid var(--a-accent); outline-offset: 1px; }
.a-contact textarea { resize: vertical; }
.a-contact .a-btn { justify-self: start; }
.a-contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.a-quick-text { color: var(--a-muted); white-space: pre-line; }
.a-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.a-project { max-width: 1040px; padding-block: clamp(110px, 14vh, 150px) 0; }
.a-project-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.a-project-card { overflow: hidden; border: 1px solid var(--a-line-strong); border-radius: 24px; background: var(--a-surface-strong); }
.a-project-card .a-tags:empty { display: none; }

/* Entrance offsets must never widen the page, including on iOS. */
html { overflow-x: clip; }

/* Scrollbars follow the theme on every page. Firefox only reads the two standard
   properties, and Chrome would ignore the custom bar if it saw them too. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: var(--a-scroll) padding-box; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--a-accent); }
html::-webkit-scrollbar-track { background: var(--a-bg); }
.a-dialog::-webkit-scrollbar-track { margin-block: 20px; }
@supports not selector(::-webkit-scrollbar) {
    * { scrollbar-width: thin; scrollbar-color: var(--a-scroll) transparent; }
}
