:root {
  color-scheme: dark;
  --bg: #0b0a0f;
  --bg-raised: #111016;
  --bg-card: #15131b;
  --text: #f4f0fa;
  --text-soft: #c0bacb;
  --muted: #837c90;
  --line: #2c2735;
  --line-bright: #453a55;
  --accent: #cbb5ff;
  --accent-strong: #b49aff;
  --accent-soft: rgba(203, 181, 255, .12);
  --max-width: 1360px;
  --gutter: clamp(20px, 5vw, 76px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.65 Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #100d16; }
.skip-link { position: absolute; z-index: 200; top: -60px; left: 16px; padding: 10px 14px; background: var(--accent); color: #100d16; }
.skip-link:focus { top: 12px; }
.section-wrap { width: min(100% - (2 * var(--gutter)), var(--max-width)); margin-inline: auto; }
.accent-text { color: var(--accent); }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, h4, h5, p { margin-top: 0; }
h1, h2, h3, h4, h5 { font-weight: 650; letter-spacing: -.045em; }

/* Header */
.site-header { position: sticky; z-index: 30; top: 0; display: grid; grid-template-columns: minmax(150px, .8fr) auto minmax(150px, .8fr); align-items: center; gap: 25px; width: 100%; min-height: 82px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(11, 10, 15, .93); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; min-width: 0; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; flex: 0 0 auto; }
.main-nav { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.012); }
.main-nav a { display: inline-flex; justify-content: center; align-items: center; min-width: 78px; min-height: 40px; padding: 0 17px; border-right: 1px solid var(--line); color: var(--text-soft); font-size: 11px; font-weight: 650; transition: background .18s ease, color .18s ease; }
.main-nav a:last-child { border-right: 0; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--accent-soft); color: var(--accent); }
.header-socials { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.header-social-link { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; color: var(--text-soft); font-size: 8px; font-weight: 800; letter-spacing: .02em; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.header-social-link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* Hero and selected-work carousel */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .88fr) minmax(390px, 1.12fr); align-items: center; gap: clamp(42px, 6vw, 98px); min-height: 680px; padding-top: 76px; padding-bottom: 108px; }
.hero-copy { max-width: 610px; padding-bottom: 15px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-mark { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: rotate(45deg); }
.hero h1 { max-width: 650px; margin-bottom: 25px; font-size: clamp(60px, 7.6vw, 104px); font-weight: 680; line-height: .98; letter-spacing: -.075em; }
.hero-description { max-width: 475px; margin-bottom: 29px; color: var(--text-soft); font-size: clamp(14px, 1.25vw, 17px); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 47px; padding: 0 16px; font-size: 11px; font-weight: 750; transition: transform .2s var(--ease), background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #17121f; }
.button-primary:hover { background: #ded0ff; }
.button-primary span { font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 11px; font-weight: 700; transition: color .18s ease; }
.text-link:hover { color: var(--accent); }
.text-link span { color: var(--accent); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 35px 0 0; list-style: none; }
.hero-tags li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 2px; color: var(--text-soft); font-size: 9px; }
.featured { min-width: 0; }
.featured-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 13px; }
.featured-header .eyebrow { margin-bottom: 3px; }
.featured-header h2 { margin: 0; font-size: clamp(22px, 2.5vw, 33px); line-height: 1.2; }
.carousel-count { align-self: center; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .09em; }
.carousel { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); }
.carousel-slides { position: relative; aspect-ratio: 1.16 / 1; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.carousel-slide[hidden] { display: none !important; }
.carousel-image-button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: var(--bg-card); cursor: pointer; }
.carousel-image-button img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease), opacity .3s ease; }
.carousel-image-button:hover img { transform: scale(1.015); }
.carousel-overlay { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 4px; padding: 62px 21px 18px; background: linear-gradient(transparent, rgba(10, 8, 14, .88)); pointer-events: none; }
.carousel-overlay span { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.carousel-overlay strong { max-width: 80%; font-size: clamp(15px, 2vw, 25px); letter-spacing: -.04em; line-height: 1.2; }
.carousel-arrow { position: absolute; z-index: 2; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(244,240,250,.35); border-radius: 50%; background: rgba(11,10,15,.7); color: var(--text); cursor: pointer; backdrop-filter: blur(12px); transition: background .2s, border-color .2s, color .2s; }
.carousel-arrow:hover { border-color: var(--accent); background: var(--accent); color: #17121f; }
.carousel-prev { right: 61px; }
.carousel-next { right: 17px; }
.carousel-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .14em; }
.carousel-dots { display: flex; align-items: center; gap: 5px; }
.carousel-dot { width: 14px; height: 3px; padding: 0; border: 0; background: #51485f; cursor: pointer; transition: background .2s, width .2s; }
.carousel-dot[aria-pressed="true"] { width: 26px; background: var(--accent); }
.hero-bottomline { position: absolute; right: 0; bottom: 30px; left: 0; display: flex; justify-content: space-between; gap: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.sample-flag { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 4px 6px; border: 1px solid rgba(203,181,255,.32); background: rgba(14,11,21,.88); color: var(--accent); font-size: 7px; font-weight: 800; letter-spacing: .12em; }

/* Section heading and galleries */
.work-section { padding-top: 96px; padding-bottom: 94px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 44px; margin-bottom: 49px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin: 0; font-size: clamp(47px, 6vw, 70px); line-height: 1; letter-spacing: -.075em; }
.section-intro { max-width: 395px; margin: 0 0 4px; color: var(--text-soft); font-size: 12px; line-height: 1.8; }
.work-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: start; gap: clamp(28px, 4vw, 62px); }
.category-nav { position: sticky; top: 115px; padding-top: 5px; }
.category-nav-label { margin: 0 0 13px 10px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .17em; }
#category-links { display: grid; gap: 4px; }
.category-nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 10px; border: 1px solid transparent; border-radius: 2px; color: var(--text-soft); font-size: 11px; transition: color .18s, background .18s, border-color .18s; }
.category-nav-link:hover, .category-nav-link.is-active { border-color: var(--line-bright); background: var(--accent-soft); color: var(--text); }
.category-nav-link.is-active { box-shadow: inset 2px 0 var(--accent); }
.nav-index { color: var(--muted); font-size: 8px; font-variant-numeric: tabular-nums; }
.category-nav-link.is-active .nav-index { color: var(--accent); }
.category-content { min-width: 0; }
.category-section { padding-bottom: 47px; margin-bottom: 43px; border-bottom: 1px solid var(--line); scroll-margin-top: 115px; }
.category-section:last-child { margin-bottom: 0; }
.category-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.category-heading-left { display: flex; align-items: flex-start; gap: 13px; }
.category-number { padding-top: 8px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.category-title-wrap h3 { margin: 0; font-size: clamp(23px, 3vw, 32px); line-height: 1.2; }
.category-description { max-width: 520px; margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.category-count { padding-top: 8px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.project-grid { display: flex; align-items: flex-start; gap: 8px; width: 100%; }
.project-column { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.project-card { display: block; width: 100%; margin: 0; min-width: 0; animation: card-appear .35s both; animation-delay: calc(min(var(--card-index), 8) * 25ms); }
/* Masonry columns keep each uploaded image's actual proportions with strict left-to-right flow. */
.project-grid-illustration { gap: 6px; }
.project-grid-illustration .project-column { gap: 6px; }
.project-grid-other { gap: 9px; }
.project-grid-other .project-column { gap: 9px; }
.project-grid-comics { gap: 10px; }
.project-grid-comics .project-column { gap: 10px; max-width: 260px; }
.project-image-button { position: relative; display: block; width: 100%; height: auto; aspect-ratio: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); text-align: left; cursor: zoom-in; }
.project-grid-other .project-image-button { border: 0; }
.project-grid-illustration .project-image-button { border: 0; max-height: 460px; overflow: hidden; }
.project-grid-illustration .project-image-button img { width: 100%; height: auto; object-fit: cover; object-position: top; }
.project-image-button img { display: block; width: 100%; height: auto; object-fit: contain; transition: transform .55s var(--ease), opacity .3s; }
.project-image-button:hover img { transform: scale(1.025); }
.project-image-button.is-tall-strip::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 65px; background: linear-gradient(to bottom, transparent, rgba(14, 11, 21, 0.95)); pointer-events: none; z-index: 2; }
.cropped-flag, .tall-strip-flag { position: absolute; z-index: 3; bottom: 9px; left: 9px; padding: 3px 6px; border-radius: 2px; border: 1px solid rgba(203, 181, 255, 0.35); background: rgba(14, 11, 21, 0.88); color: var(--accent); font-size: 7px; font-weight: 800; letter-spacing: 0.1em; pointer-events: none; }
.project-image-button .image-arrow { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(244,240,250,.5); border-radius: 50%; background: rgba(12,10,16,.72); color: var(--accent); font-size: 14px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.project-image-button:hover .image-arrow, .project-image-button:focus-visible .image-arrow { opacity: 1; transform: translateY(0); }
.project-caption { padding-top: 6px; color: var(--text-soft); font-size: 10px; line-height: 1.4; }
.project-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.project-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin-top: 4px; }
.project-title-row h4, .project-title-link { margin: 0; font-size: 13px; font-weight: 650; line-height: 1.4; letter-spacing: -.025em; }
.project-title-link:hover { color: var(--accent); }
.project-title-arrow { color: var(--accent); font-size: 12px; }
.project-description { margin: 6px 0 0; color: var(--text-soft); font-size: 10px; line-height: 1.7; }
.load-more-button { margin-top: 24px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line-bright); background: transparent; color: var(--text); font-size: 10px; font-weight: 750; cursor: pointer; transition: color .2s, border-color .2s; }
.load-more-button:hover { color: var(--accent); border-color: var(--accent); }
.category-empty { color: var(--muted); font-size: 11px; }
.gallery-note { display: flex; align-items: center; gap: 11px; padding-top: 18px; margin: 35px 0 0 185px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.gallery-note span { color: var(--accent); font-size: 15px; }

/* Game development section */
/* Manga section */
.manga-feature { margin: 0 0 25px; padding: 17px; border: 1px solid var(--line); background: var(--bg-raised); }
.manga-intro { display: grid; grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.manga-cover-link { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); transition: border-color .2s; }
.manga-cover-link:hover { border-color: var(--accent); }
.manga-cover { width: 100%; height: auto; display: block; transition: transform .55s var(--ease); }
.manga-cover-link:hover .manga-cover { transform: scale(1.02); }
.manga-cover-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 10, 15, 0); color: var(--accent); font-size: 13px; font-weight: 750; letter-spacing: .08em; opacity: 0; transition: opacity .25s, background .25s; }
.manga-cover-link:hover .manga-cover-overlay { opacity: 1; background: rgba(11, 10, 15, .55); }
.manga-copy .eyebrow { margin-bottom: 6px; color: var(--accent); }
.manga-copy h4 { margin: 0 0 12px; font-size: clamp(17px, 2vw, 23px); line-height: 1.2; }
.manga-copy > p:not(.eyebrow) { max-width: 560px; margin-bottom: 13px; color: var(--text-soft); font-size: 10px; line-height: 1.75; }
.manga-meta { display: flex; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: 9px; }
.manga-meta span + span::before { content: "·"; padding-right: 12px; color: var(--accent); }

.gamedev-feature { margin: 0 0 25px; padding: 17px; border: 1px solid var(--line); background: var(--bg-raised); }
.gamedev-intro { display: grid; grid-template-columns: minmax(150px, .6fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.gamedev-cover { width: 100%; aspect-ratio: 1.45 / 1; object-fit: cover; border: 1px solid var(--line); background: var(--bg-card); }
.gamedev-copy .eyebrow { margin-bottom: 6px; color: var(--accent); }
.gamedev-copy h4, .social-media-intro h4 { margin: 0 0 8px; font-size: clamp(17px, 2vw, 23px); line-height: 1.2; }
.gamedev-copy > p:not(.eyebrow), .social-media-intro > p:not(.eyebrow) { max-width: 560px; margin-bottom: 13px; color: var(--text-soft); font-size: 10px; line-height: 1.75; }
.feature-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feature-link, .feature-link-placeholder { display: inline-flex; align-items: center; min-height: 31px; padding: 0 10px; border: 1px solid var(--line-bright); font-size: 9px; font-weight: 750; }
.feature-link { color: var(--accent); transition: background .2s, border-color .2s; }
.feature-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.feature-link-placeholder { border-style: dashed; color: var(--muted); }
.subsection-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 25px 0 12px; }
.subsection-heading h4 { margin: 0; font-size: 13px; letter-spacing: -.02em; }
.subsection-heading span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.video-card { min-width: 0; border: 1px solid var(--line); background: var(--bg-card); }
.video-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #100d16; }
.video-media > img { width: 100%; height: 100%; object-fit: cover; }
.play-video { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 43px; height: 43px; padding-left: 3px; border: 1px solid rgba(244,240,250,.6); border-radius: 50%; background: rgba(12,10,16,.8); color: var(--accent); transform: translate(-50%, -50%); cursor: pointer; }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { display: flex; align-items: baseline; gap: 11px; padding: 10px 11px; }
.video-index { color: var(--accent); font-size: 8px; font-weight: 800; }
.video-caption h5 { margin: 0; font-size: 11px; }
.screenshot-heading { margin-top: 27px; }
.screenshot-grid { display: block; columns: 3; column-gap: 9px; }
.screenshot-card { position: relative; display: inline-block; width: 100%; height: auto; aspect-ratio: auto; padding: 0; margin: 0 0 9px; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); background: var(--bg-card); cursor: zoom-in; }
.screenshot-card img { display: block; width: 100%; height: auto; object-fit: contain; transition: transform .4s; }
.screenshot-card:hover img { transform: scale(1.04); }
.social-media-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; margin-bottom: 23px; padding: 19px; border: 1px solid var(--line); background: var(--bg-raised); }
.social-media-intro { max-width: 720px; }
.social-media-intro .eyebrow { margin-bottom: 7px; color: var(--accent); }
.social-example-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.social-example-card { display: flex; flex-direction: column; gap: 8px; padding: 11px; border: 1px solid var(--line); }
.social-example-card img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; }
.social-example-card strong { font-size: 10px; }
.social-example-card p { margin: 0; color: var(--text-soft); font-size: 9px; }

/* About, short CV and skills */
.about-section { border-block: 1px solid var(--line); background: #100e15; }
.about-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(42px, 8vw, 115px); padding-top: 100px; padding-bottom: 104px; }
.about-intro h2 { margin: 0 0 28px; font-size: clamp(40px, 5vw, 63px); line-height: 1.06; letter-spacing: -.07em; }
.muted-heading { color: #817990; }
.about-lead { max-width: 430px; margin-bottom: 17px; font-size: 16px; line-height: 1.65; letter-spacing: -.02em; }
.about-body { max-width: 450px; margin-bottom: 0; color: var(--text-soft); font-size: 11px; line-height: 1.9; }
.cv-panel { min-width: 0; padding-top: 7px; }
.cv-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line-bright); }
.cv-panel-heading .eyebrow { margin: 0; color: var(--accent); }
.cv-panel-heading > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 17px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.timeline-date { padding-top: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .04em; }
.timeline-content h3 { margin: 0 0 3px; font-size: 13px; letter-spacing: -.02em; }
.timeline-organisation { margin: 0 0 4px; color: var(--accent); font-size: 9px; }
.timeline-description { margin: 0; color: var(--text-soft); font-size: 9px; line-height: 1.7; }
.cv-projects-wrap { padding-top: 21px; }
.small-heading { margin: 0 0 11px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.cv-projects { display: grid; }
.cv-project { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cv-project-index { color: var(--accent); font-size: 8px; font-weight: 800; }
.cv-project-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.cv-project-copy strong { font-size: 10px; }
.cv-project-copy small { color: var(--muted); font-size: 8px; }
.cv-project-arrow { color: var(--accent); font-size: 12px; }
.cv-project:hover .cv-project-copy strong { color: var(--accent); }
.education-wrap { padding-top: 21px; }
.education-item { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.education-item span { color: var(--muted); text-align: right; }
.cv-contact-link { margin-top: 20px; }
.skills-section { padding-top: 100px; padding-bottom: 92px; }
.skills-heading { margin-bottom: 42px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skill-column { min-height: 205px; padding: 21px clamp(18px, 3vw, 38px) 25px 0; }
.skill-column + .skill-column { padding-left: clamp(18px, 3vw, 38px); border-left: 1px solid var(--line); }
.skill-number { display: inline-block; margin-bottom: 21px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.skill-column h3 { margin: 0 0 14px; font-size: 17px; }
.skill-column ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.skill-column li { color: var(--text-soft); font-size: 10px; line-height: 1.6; }
.skill-column li::before { content: "↗"; padding-right: 8px; color: var(--accent); font-size: 9px; }
.tools-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); padding-top: 27px; }
.tools-row .small-heading { margin-bottom: 5px; }
.tools-row h3 { margin: 0; font-size: 17px; }
.tool-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tool-tag { padding: 6px 9px; border: 1px solid var(--line); color: var(--text-soft); font-size: 9px; }
.tool-tag-placeholder { border-style: dashed; color: var(--muted); }

/* Contact and footer */
.contact-section { border-top: 1px solid var(--line); background: #131019; }
.contact-inner { padding-top: 85px; padding-bottom: 82px; }
.contact-section .eyebrow { margin-bottom: 22px; color: var(--accent); }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 50px; align-items: center; }
.contact-row h2 { margin: 0; text-align: center; font-size: clamp(50px, 7.5vw, 91px); line-height: .99; letter-spacing: -.08em; }
.contact-details { max-width: 390px; padding-bottom: 7px; }
.contact-details > p { margin-bottom: 19px; color: var(--text-soft); font-size: 11px; line-height: 1.8; }
.email-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 0 11px; border-bottom: 1px solid var(--line-bright); font-size: clamp(14px, 1.6vw, 19px); font-weight: 650; letter-spacing: -.03em; }
.email-link span:last-child { color: var(--accent); }
.footer-socials, .social-links { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 17px; }
.footer-social-link { color: var(--text-soft); font-size: 9px; transition: color .2s; }
.footer-social-link:hover { color: var(--accent); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 85px; }
.footer-brand { font-size: 10px; }
.footer-brand img { width: 26px; height: 26px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 8px; }

/* Image viewer */
.lightbox { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: clamp(12px, 3vw, 38px); }
.lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(5,4,9,.95); cursor: default; }
.lightbox-panel { position: relative; z-index: 1; display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; gap: clamp(8px, 2vw, 21px); width: min(100%, 1240px); max-height: 100%; }
.lightbox-close { position: absolute; z-index: 2; top: -15px; right: -8px; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line-bright); border-radius: 50%; background: #17131f; font-size: 23px; cursor: pointer; }
.lightbox-nav { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line-bright); border-radius: 50%; background: #17131f; cursor: pointer; transition: background .2s, color .2s; }
.lightbox-nav:hover, .lightbox-close:hover { background: var(--accent); color: #17121f; }
.lightbox-figure { min-width: 0; max-height: calc(100vh - 70px); margin: 0; display: flex; flex-direction: column; }
.lightbox-image-wrap { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; max-height: calc(100vh - 145px); min-height: 200px; background: rgba(14, 11, 21, 0.45); border-radius: 2px; }
#lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 145px); width: auto; height: auto; object-fit: contain; transform-origin: center center; transition: transform 0.12s ease-out; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
#lightbox-image.is-zoomed { cursor: grab; }
#lightbox-image.is-dragging { cursor: grabbing; transition: none !important; }
.lightbox-zoom-toolbar { position: absolute; top: 12px; right: 12px; z-index: 10; display: flex; align-items: center; gap: 3px; padding: 3px 6px; border: 1px solid var(--line-bright); border-radius: 20px; background: rgba(17, 14, 22, 0.85); backdrop-filter: blur(8px); opacity: 0.85; transition: opacity 0.2s; }
.lightbox-zoom-toolbar:hover { opacity: 1; }
.lightbox-zoom-btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-size: 14px; line-height: 1; cursor: pointer; transition: background 0.15s, color 0.15s; }
.lightbox-zoom-btn:hover { background: var(--accent); color: #110e16; }
.lightbox-zoom-level { padding: 0 4px; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: 0.05em; min-width: 36px; text-align: center; }
.lightbox-figure figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 12px; font-size: 11px; }
.lightbox-figure figcaption strong { display: block; font-weight: 650; }
.lightbox-figure figcaption small { display: block; margin-top: 3px; color: var(--text-soft); font-size: 9px; }
#lightbox-counter { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox-project-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 10px; }

@keyframes card-appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) { .hero { min-height: 760px; } }
@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 15px; }
  .main-nav a { min-width: 65px; padding-inline: 12px; }
  .header-socials { gap: 5px; }
  .header-social-link { width: 26px; height: 26px; }
  .hero { grid-template-columns: minmax(0, .88fr) minmax(330px, 1.12fr); gap: 35px; }
  .work-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 29px; }
  .gallery-note { margin-left: 160px; }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: auto 1fr; gap: 12px; padding-top: 11px; padding-bottom: 11px; }
  .brand { grid-row: 1; }
  .header-socials { grid-row: 1; justify-self: end; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .main-nav a { flex: 1; min-height: 34px; }
  html { scroll-padding-top: 105px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 26px; min-height: auto; padding-top: 62px; padding-bottom: 100px; }
  .hero h1 { font-size: clamp(50px, 7vw, 75px); }
  .hero-description { font-size: 13px; }
  .hero-tags { gap: 5px; margin-top: 25px; }
  .hero-tags li { font-size: 8px; }
  .carousel-slides { aspect-ratio: .95 / 1; }
  .work-layout { display: block; }
  .category-nav { position: sticky; z-index: 20; top: 105px; padding: 8px 0; margin: 0 calc(-1 * var(--gutter)) 29px; border-block: 1px solid var(--line); background: rgba(11,10,15,.96); backdrop-filter: blur(12px); }
  .category-nav-label { display: none; }
  #category-links { display: flex; overflow-x: auto; gap: 4px; padding-inline: var(--gutter); scrollbar-width: thin; }
  .category-nav-link { flex: 0 0 auto; min-height: 33px; padding: 0 9px; border: 1px solid transparent; white-space: nowrap; font-size: 10px; }
  .category-nav-link.is-active { border-color: var(--line-bright); box-shadow: inset 0 -2px var(--accent); }
  .gallery-note { margin-left: 0; }
  .about-layout { grid-template-columns: 1fr; gap: 43px; padding-top: 72px; padding-bottom: 75px; }
  .about-intro h2 { margin-bottom: 18px; }
  .about-lead, .about-body { max-width: 650px; }
}
@media (max-width: 560px) {
  :root { --gutter: 19px; }
  body { font-size: 14px; }
  .site-header { min-height: 0; gap: 9px; }
  .brand { gap: 8px; font-size: 10px; }
  .brand img { width: 27px; height: 27px; }
  .header-socials { gap: 4px; }
  .header-social-link { width: 24px; height: 24px; font-size: 7px; }
  .main-nav a { min-width: 0; padding-inline: 4px; font-size: 10px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding-top: 54px; padding-bottom: 83px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(56px, 13.5vw, 78px); }
  .hero-description { max-width: 470px; font-size: 13px; }
  .hero-actions { gap: 19px; }
  .hero-tags { margin-top: 24px; }
  .featured-header h2 { font-size: 25px; }
  .project-grid { gap: 5px; }
  .project-column { gap: 5px; }
  .project-grid-illustration { gap: 5px; }
  .project-grid-illustration .project-column { gap: 5px; }
  .project-grid-other { gap: 5px; }
  .project-grid-other .project-column { gap: 5px; }
  .project-grid-comics { gap: 5px; }
  .project-grid-comics .project-column { gap: 5px; }
  .project-caption { font-size: 9px; }
  .carousel-slides { aspect-ratio: 1.08 / 1; }
  .carousel-overlay { padding: 55px 15px 14px; }
  .carousel-overlay strong { font-size: 21px; }
  .carousel-arrow { top: 12px; width: 32px; height: 32px; }
  .carousel-prev { right: 54px; }
  .carousel-next { right: 12px; }
  .hero-bottomline { bottom: 24px; font-size: 7px; }
  .work-section { padding-top: 70px; padding-bottom: 70px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2 { font-size: 52px; }
  .section-intro { margin-top: 17px; font-size: 11px; }
  .category-section { padding-bottom: 30px; margin-bottom: 32px; scroll-margin-top: 152px; }
  .category-heading { gap: 10px; margin-bottom: 17px; }
  .category-heading-left { gap: 9px; }
  .category-title-wrap h3 { font-size: 24px; }
  .category-description { max-width: 260px; font-size: 9px; }
  .category-count { padding-top: 6px; font-size: 7px; }
  .project-grid { gap: 5px; }
  .project-image-button { height: auto; aspect-ratio: auto; }
  .project-image-button img { height: auto; }
  .project-meta { margin-top: 8px; font-size: 7px; }
  .project-title-row h4, .project-title-link { font-size: 11px; }
  .project-description { font-size: 9px; line-height: 1.55; }
  .project-image-button .image-arrow { width: 25px; height: 25px; opacity: 1; transform: none; }
  .gamedev-feature { padding: 11px; }
  .gamedev-intro { grid-template-columns: 1fr; gap: 13px; }
  .gamedev-cover { aspect-ratio: 1.65 / 1; }
  .gamedev-copy h4, .social-media-intro h4 { font-size: 20px; }
  .video-grid { gap: 8px; }
  .video-caption { gap: 7px; padding: 8px; }
  .video-caption h5 { font-size: 9px; }
  .video-index { font-size: 7px; }
  .video-media .sample-flag { top: 5px; left: 5px; padding: 3px 4px; font-size: 6px; }
  .play-video { width: 35px; height: 35px; }
  .screenshot-grid { columns: 2; column-gap: 6px; }
  .social-media-feature { padding: 13px; }
  .social-example-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-layout { padding-top: 67px; padding-bottom: 65px; }
  .about-intro h2 { font-size: 43px; }
  .about-lead { font-size: 14px; }
  .about-body { font-size: 10px; }
  .cv-panel-heading > span { font-size: 7px; }
  .timeline-item { grid-template-columns: 79px minmax(0, 1fr); gap: 10px; padding: 14px 0; }
  .timeline-date { font-size: 7px; }
  .timeline-content h3 { font-size: 12px; }
  .timeline-description { font-size: 8px; }
  .skills-section { padding-top: 72px; padding-bottom: 65px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-column { min-height: auto; padding: 21px 0 22px; }
  .skill-column + .skill-column { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .skill-number { margin-bottom: 10px; }
  .skill-column h3 { margin-bottom: 10px; font-size: 16px; }
  .tools-row { grid-template-columns: 1fr; gap: 15px; }
  .contact-inner { padding-top: 66px; padding-bottom: 62px; }
  .contact-row { grid-template-columns: 1fr; gap: 27px; }
  .contact-row h2 { font-size: clamp(54px, 14vw, 75px); }
  .site-footer { flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 17px; padding-bottom: 17px; }
  .site-footer p:nth-child(2) { order: 3; width: 100%; }
  .lightbox-panel { grid-template-columns: 1fr; gap: 7px; }
  .lightbox-figure { grid-row: 1; }
  .lightbox-nav { position: absolute; z-index: 2; bottom: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: -10px; right: -6px; }
  .lightbox-figure figcaption { padding-inline: 2px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.social-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 24px 18px; align-items: start; }
.social-post-card { min-width: 0; max-width: 300px; }
.social-post-frame { display: block; width: 100%; border: 0; background: #100d16; }
.social-post-tiktok { height: min(460px, 140vw); }
.social-post-facebook { height: min(460px, 140vw); }
@media (max-width: 640px) { .social-post-grid { grid-template-columns: minmax(0, 1fr); } }

/* Enlarge the mark visually without changing the header's layout height. */
.site-header .brand img { transform: scale(1.65); margin-inline: 8px; object-fit: contain; }
.header-social-link svg, .footer-social-link svg { display: block; width: 17px; height: 17px; }
.footer-social-link { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; }
.header-contact { position: relative; }
.header-contact summary { cursor: pointer; list-style: none; }
.header-contact summary::-webkit-details-marker { display: none; }
.header-contact-panel { position: absolute; top: calc(100% + 14px); right: 0; display: grid; gap: 12px; width: 245px; padding: 18px; border: 1px solid var(--line-bright); background: var(--bg-raised); box-shadow: 0 12px 35px #0006; font-size: 12px; }
.header-contact-panel a:hover { color: var(--accent); }
.discord-contact { margin-top: 15px; font-size: 13px; color: var(--text-soft); }
.discord-contact strong { color: var(--text); }
.category-description-link { display: inline-block; margin-top: 9px; color: var(--accent); font-size: 11px; }
.category-description-link:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .site-header .brand { gap: 5px; font-size: 10px; }
  .site-header .brand img { margin-inline: 6px; }
  .header-socials { gap: 4px; }
  .header-social-link { width: 25px; height: 25px; }
  .header-social-link svg { width: 15px; height: 15px; }
  .header-contact-panel { width: min(245px, 85vw); }
}

.contact-addresses { display: grid; gap: 10px; margin-top: 20px; }
.contact-addresses p { margin: 0; font-size: clamp(14px, 1.6vw, 19px); font-weight: 500; color: var(--text-soft); }
.contact-addresses span { color: var(--text); }

.header-menu { display: contents; }
.menu-toggle { display: none; }
@media (max-width: 640px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; padding-block: 10px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 80px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-bright); border-radius: 4px; background: var(--bg-raised); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
  .menu-toggle:hover, .menu-toggle:focus-visible { border-color: var(--accent); color: var(--accent); }
  .header-menu { display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); max-height: calc(100dvh - 90px); overflow-y: auto; padding: 14px; border: 1px solid var(--line-bright); background: var(--bg-raised); box-shadow: 0 14px 30px #0008; }
  .is-menu-open .header-menu { display: grid; gap: 16px; }
  .header-menu .main-nav { display: grid; grid-template-columns: 1fr; grid-row: auto; grid-column: auto; width: 100%; border: 0; }
  .header-menu .main-nav a { justify-content: flex-start; min-height: 44px; padding: 0 12px; border-right: 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .header-menu .header-socials { grid-row: auto; justify-self: stretch; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
  .header-menu .header-social-link { width: 44px; height: 44px; }
  .header-menu .header-social-link svg { width: 19px; height: 19px; }
  .header-menu .header-contact { flex: 1; }
  .header-menu .header-contact-panel { position: static; width: 100%; min-width: 200px; margin-top: 12px; padding: 12px 0; border: 0; box-shadow: none; font-size: 11px; }
  .header-menu .header-contact[open] { flex-basis: 100%; }
}

@media (max-width: 640px) {
  .category-nav { top: 72px; }
  .category-nav-link { min-height: 44px; font-size: 12px; }
  .category-section { scroll-margin-top: 145px; }
  .category-heading-left, .category-title-wrap, .gamedev-copy { min-width: 0; }
  .category-description { font-size: 12px; line-height: 1.75; }
  .category-description-link, .project-title-link, .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .load-more-button { min-height: 44px; font-size: 12px; }
  .feature-link { min-height: 44px; font-size: 12px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-prev { right: 64px; }
  .carousel-footer { flex-wrap: wrap; gap: 8px; }
  .carousel-dots { gap: 0; margin-left: auto; }
  .carousel-dot, .carousel-dot[aria-pressed="true"] { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; }
  .carousel-dot::after { content: ""; width: 14px; height: 3px; background: #51485f; }
  .carousel-dot[aria-pressed="true"]::after { width: 26px; background: var(--accent); }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .video-card { min-width: 0; }
  .video-media { width: 100%; min-width: 0; height: clamp(200px, 50vw, 300px); min-height: 200px; aspect-ratio: auto; }
  .play-video { width: 48px; height: 48px; }
  .video-caption .feature-link { width: 100%; justify-content: center; }
  .project-image-button, .screenshot-card { min-height: 44px; }
  .lightbox-panel { grid-template-columns: minmax(0, 1fr); padding-top: 54px; padding-bottom: 54px; }
  .lightbox-close { top: 0; right: 0; width: 44px; height: 44px; }
  .lightbox-nav { bottom: 0; width: 44px; height: 44px; }
  .lightbox-zoom-btn { width: 44px; height: 44px; }
  .lightbox-zoom-toolbar { top: 8px; right: 8px; }
  .lightbox-figure { max-height: calc(100dvh - 150px); }
  .lightbox-image-wrap, #lightbox-image { max-height: calc(100dvh - 235px); }
  .lightbox-image-wrap { min-height: min(200px, 40dvh); }
  .lightbox-figure figcaption { overflow-wrap: anywhere; }
  .footer-social-link { width: 44px; height: 44px; }
}
