:root {
  color-scheme: light;
  font-family: 'Golos Text', sans-serif;
  font-synthesis: none;
  --bg: #e0e2de;
  --ink: #202b33;
  --muted: #566875;
  --accent: #235664;
  --scene-light: #f1e7df;
  --scene-middle: #dde0dc;
  --scene-dark: #c5ced0;
  --panel: rgba(245, 242, 239, .36);
  --glass: rgba(245, 242, 239, .26);
  --edge: rgba(255, 255, 255, .72);
  --shine: rgba(255, 255, 255, .54);
  --rim: rgba(119, 146, 161, .22);
  --shadow: rgba(32, 47, 61, .22);
  --cta-shadow: rgba(32, 47, 61, .16);
  --caustic-cyan: rgba(124, 250, 242, .42);
  --caustic-lilac: rgba(210, 164, 255, .35);
  --tint: 182, 203, 215;
  --tint-strength: .3;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--ink); transition: background .5s, color .3s; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden], .music[hidden] { display: none; }

/* Overscan keeps the softened scenery opaque at the viewport edges. */
.landscape { position: fixed; inset: -42px; overflow: hidden; z-index: -1; pointer-events: none; background: #163e59; filter: blur(25px); }
.landscape > div { display: none; }
.landscape::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(16, 24, 38, var(--material-scrim, 0)); }
.landscape .wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.page { max-width: 1080px; margin: auto; padding: 35px 42px 36px; }
.intro { display: flex; align-items: center; gap: 25px; padding: 10px 0 52px; }
.identity, .profile-actions { position: relative; left: 8px; }
.portrait-wrap { position: relative; flex: none; width: 88px; height: 88px; }
.portrait-wrap img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 45%; border: 3px solid var(--edge); box-shadow: 5px 12px 20px -5px var(--shadow); }
.portrait-spark { position: absolute; right: -8px; bottom: -6px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); color: var(--bg); border-radius: 50%; font-size: 24px; border: 3px solid var(--bg); }
.eyebrow { font-size: 10px; letter-spacing: 2.2px; font-weight: 650; margin: 0 0 7px; color: var(--muted); }
h1 { font-size: clamp(32px, 4.8vw, 51px); line-height: 1.06; letter-spacing: -2.5px; font-weight: 550; margin: 0; }
h1 > span { color: var(--accent); }
.tagline { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.profile-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.profile-actions-main { gap: 8px; }
.instagram-link { display: grid; place-items: center; width: 45px; height: 45px; flex: none; padding: 0; border-radius: 50%; }
.instagram-link svg { width: 20px; height: 20px; }
.profile-link { margin-left: 0; display: flex; align-items: center; gap: 13px; min-height: 52px; padding: 0 21px; font-size: 13px; font-weight: 550; white-space: nowrap; }
.arrow { width: 18px; height: 18px; transition: transform .2s; }
.brand-icon { fill: currentColor; stroke: none; }
.section-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 23px; }
h2 { font-size: 17px; font-weight: 550; letter-spacing: -.5px; margin: 0; }
.section-heading > span { font-size: 14px; color: var(--muted); }
.intro, .intro + .section-heading { --muted: #dcebf2; --accent: #dcebf2; color: #f7fbfd; }
.projects { display: grid; grid-template-columns: 1.16fr 1fr; gap: 28px; }

/* Blur lives on a sibling pseudo-surface, never an ancestor of the buttons.
   This keeps the buttons' own backdrop sampling independent. */
.project { position: relative; isolation: isolate; min-width: 0; padding: 29px; border: 1px solid var(--edge); border-radius: 34px; background: linear-gradient(130deg, var(--shine), transparent 27%, transparent 78%, rgba(245, 242, 239, .12)), var(--panel); box-shadow: inset 1px 2px 5px var(--shine), inset -1px -2px 5px var(--rim), 10px 19px 28px -13px var(--shadow); }
.project::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
.project::after { content: ''; position: absolute; pointer-events: none; inset: 1px; border-radius: inherit; background: radial-gradient(ellipse at 100% 90%, var(--caustic-cyan), transparent 32%), radial-gradient(ellipse at 4% 2%, var(--caustic-lilac), transparent 27%); padding: 1px; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.atmosphere { --tint: 99, 216, 209; --panel: rgba(245, 242, 239, .50); }
.delta { --tint: 156, 145, 245; }
.donuts { --tint: 226, 162, 175; }
.airy { --tint: 150, 205, 230; }
.project-top { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.project-symbol { width: 38px; height: 38px; flex: none; color: var(--accent); stroke-width: 1.6; }
.project-kind { font-size: 10px; letter-spacing: 1.4px; font-weight: 550; color: var(--muted); }
.project-no { margin-left: auto; font-size: 11px; color: var(--muted); opacity: .85; }
.project h3 { font-size: 34px; letter-spacing: -1.5px; font-weight: 500; margin: 0 0 11px; line-height: 1.1; }
.description { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 29px; }

/* A single translucent volume: soft directional depth, a narrow refractive
   perimeter and diffuse caustics. There are no stacked opaque white borders. */
.glass { position: relative; isolation: isolate; border: 1px solid var(--edge); border-radius: 25px; background: radial-gradient(ellipse at var(--px, 18%) var(--py, 0%), var(--shine), transparent 62%), linear-gradient(145deg, rgba(255, 255, 255, .13), transparent 45%, rgba(245, 242, 239, .1)), var(--glass); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: inset 1px 2px 4px var(--shine), inset -1px -2px 5px var(--rim), 5px 9px 8px -6px var(--shadow), 12px 20px 18px -9px var(--shadow); transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .48s cubic-bezier(.18, .85, .26, 1.4), box-shadow .3s, background .3s; touch-action: pan-y; }
.glass::before { content: ''; pointer-events: none; position: absolute; inset: 1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from 105deg, var(--caustic-cyan), var(--shine) 15%, var(--caustic-lilac) 35%, transparent 48%, var(--edge) 63%, var(--caustic-lilac) 75%, transparent 85%, var(--caustic-cyan)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; opacity: .8; }
.glass::after { content: ''; pointer-events: none; position: absolute; z-index: -1; inset: 40% 2% -7px 28%; border-radius: inherit; background: radial-gradient(ellipse at 88% 80%, var(--caustic-cyan), transparent 53%), radial-gradient(ellipse at 13% 90%, var(--caustic-lilac), transparent 48%); filter: blur(8px); opacity: .18; }
.primary-action { --shadow: var(--cta-shadow); display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 67px; padding: 0 25px; font-size: 15px; font-weight: 550; letter-spacing: -.3px; border-radius: 26px; background: radial-gradient(ellipse at var(--px, 20%) var(--py, 0%), var(--shine), transparent 70%), linear-gradient(150deg, rgba(var(--tint), .1), rgba(var(--tint), var(--tint-strength)) 75%), var(--glass); box-shadow: inset 1px 2px 5px var(--shine), inset -1px -3px 6px rgba(var(--tint), .28), 5px 10px 7.5px -6px rgba(var(--tint), .175), 13px 22px 16px -9px var(--shadow); }
.primary-action::after { background: radial-gradient(ellipse at 70% 70%, rgba(var(--tint), .85), transparent 68%); opacity: .3; }
.delta .primary-action { color: #202b33; background: radial-gradient(ellipse at var(--px, 20%) var(--py, 0%), var(--shine), transparent 70%), radial-gradient(ellipse at 100% 55%, rgba(160, 244, 248, .18), transparent 45%), linear-gradient(135deg, #f0effd, #c6c1f8 58%, #9ea4f5); }
/* The opaque lavender surface made the inset rim read as a second hard line.
   Merge its reflection into the outer edge with a thin, diffuse highlight. */
.delta .primary-action::before { inset: 0; padding: .75px; filter: blur(.65px); background: linear-gradient(135deg, rgba(255, 255, 255, .4), transparent 45%, rgba(160, 244, 248, .16)); }
.donuts .primary-action { color: #202b33; background: radial-gradient(ellipse at var(--px, 20%) var(--py, 0%), var(--shine), transparent 70%), linear-gradient(135deg, #f2e6f4, #e7cff0 58%, #d2c5ff); }
.related { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; min-height: 46px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; font-size: 11px; font-weight: 500; border-radius: 18px; }
.pill svg { width: 15px; height: 15px; }
.pill[data-link="atmos-docs"] use { transform-origin: 12px 12px; transform: scale(1.15); }
.pill[data-link="atmos-twitter"] use, .pill[data-link="delta-twitter"] use { transform-origin: 12px 12px; transform: scale(.9); }
.compact .project-top { margin-bottom: 20px; }
.compact h3 { font-size: 28px; }
.compact .description { font-size: 13px; margin-bottom: 25px; }
.personal-section { margin-top: 36px; }
.personal-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.personal-action { display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 17px 20px; }
.personal-action strong { display: block; font-size: 14px; font-weight: 550; }
.personal-action small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.4; }
.personal-action .arrow { margin-left: auto; }
.glass.is-releasing { animation: glass-release .4s ease-out; }
@keyframes glass-release { 0% { transform: translateY(2px) scale(.972); } 55% { transform: translateY(-1px) scale(1.008); } 100% { transform: none; } }
.music-meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.music { position: relative; display: flex; align-items: center; gap: 12px; }
.music-toggle { display: grid; place-items: center; width: 45px; height: 45px; padding: 0; border-radius: 50%; }
.music-toggle svg { width: 18px; height: 18px; }
.music-label { display: block; font-size: 8px; letter-spacing: 1.4px; color: var(--muted); margin-bottom: 5px; }
#track-title { display: block; font-size: 12px; }
#audio-status { position: absolute; top: calc(100% + 12px); right: 0; z-index: 5; width: max-content; max-width: 220px; padding: 9px 12px; border: 1px solid var(--edge); border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: 3px 7px 16px var(--shadow); font-size: 12px; line-height: 1.4; }
#audio-status:empty { display: none; }
@media (hover: hover) and (pointer: fine) {
  .glass:hover { box-shadow: inset 1px 2px 6px var(--shine), inset -1px -2px 4px var(--rim), 8px 12px 13px -7px var(--shadow), 15px 24px 23px -10px var(--shadow); }
  .primary-action:hover { box-shadow: inset 1px 2px 6px var(--shine), inset -1px -2px 4px var(--rim), 8px 12px 11px -7px var(--shadow), 15px 24px 19px -10px var(--shadow); }
  .glass:hover::before { opacity: 1; }
  .glass:hover .arrow { transform: translate(2px, -2px); }
}
.glass:active, .glass.is-pressed { transform: perspective(700px) translateY(3px) scale(.968); box-shadow: inset 0 2px 6px var(--rim), inset 0 -1px 3px var(--shine), 2px 4px 7px -3px var(--shadow); transition: transform .09s ease-out, box-shadow .09s; }
.primary-action:active, .primary-action.is-pressed { box-shadow: inset 0 2px 6px var(--rim), inset 0 -1px 3px var(--shine), 2px 4px 5.8px -3px var(--shadow); }
/* Each desktop pair shares content-sized rows, including wrapped copy.
   The single-column layout keeps its natural document flow. */
@media (min-width: 621px) {
  .projects > .project { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
  .projects > .compact { grid-row: span 5; }
  .projects .related { align-content: start; align-items: start; }
}
@media (max-width: 800px) {
  .page { padding: 24px; }
  .intro { gap: 20px; padding: 20px 0 40px; }
  .profile-link { padding: 0 16px; }
  .project { padding: 22px; }
  .projects { gap: 22px; grid-template-columns: 1fr 1fr; }
  .pill { padding: 0 12px; }
  .related { gap: 7px; }
  .project h3 { font-size: 30px; }
}
@media (max-width: 620px) {
  body { position: relative; isolation: isolate; min-height: 100vh; }
  .landscape { position: absolute; inset: 0; filter: none; }
  .landscape .wallpaper { inset: -42px; width: calc(100% + 84px); height: calc(100% + 84px); filter: blur(25px); }
  .personal-links { grid-template-columns: 1fr; gap: 17px; }
  .personal-action { padding: 16px; gap: 11px; }
  .page { padding: 20px 20px 30px; max-width: 470px; }
  .intro { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; padding: 20px 0 23px; }
  .portrait-wrap { width: 70px; height: 70px; }
  h1 { font-size: 35px; letter-spacing: -1.7px; }
  .eyebrow { font-size: 9px; }
  .tagline { font-size: 12px; margin-top: 9px; }
  .profile-actions { grid-column: 1 / -1; margin: 0; justify-self: start; margin-left: 88px; }
  .profile-actions-main .profile-link { padding-inline: 12px; gap: 8px; }
  .profile-link { margin: 0; min-height: 44px; font-size: 12px; padding: 0 17px; gap: 11px; border-radius: 18px; }
  .section-heading { margin-bottom: 19px; }
  .section-heading > span { font-size: 13px; }
  h2 { font-size: 15px; }
  .projects { grid-template-columns: 1fr; gap: 24px; }
  .project { padding: 25px; border-radius: 29px; }
  .project h3 { font-size: 34px; }
  .project-top { margin-bottom: 19px; }
  .description { margin-bottom: 23px; font-size: 14px; }
  .primary-action { min-height: 62px; font-size: 14px; padding: 0 23px; border-radius: 23px; }
  .pill { font-size: 11px; padding: 0 13px; gap: 6px; }
  .related { gap: 7px; margin-top: 21px; min-height: 44px; }
  .project-kind { font-size: 9px; }
  .compact h3 { font-size: 29px; }
  .compact .description { font-size: 13px; }
  .compact .project-top { margin-bottom: 16px; }
  .project-no { font-size: 10px; }
}
@media (max-width: 400px) {
  .profile-actions-main { margin-left: 0; }
}
@media (max-width: 360px) {
  .page { padding-inline: 14px; }
  .project { padding: 20px; }
  .pill { padding: 0 10px; font-size: 10px; }
  .related { gap: 5px; }
  h1 { font-size: 27px; }
  .intro { gap: 14px; grid-template-columns: 62px minmax(0, 1fr); }
  .portrait-wrap { width: 62px; height: 62px; }
  .profile-actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .glass { transform: none !important; }
  .glass:active, .glass.is-pressed { background-color: var(--shine); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .project { background-color: var(--bg); }
}
