:root {
    color-scheme: dark;
    --bg: #080b12;
    --surface: #0e131d;
    --surface-raised: #121a27;
    --line: rgba(165, 184, 218, .12);
    --text: #f0f3f8;
    --muted: #8c97a9;
    --accent: #b7ff5a;
    --accent-2: #78e7d0;
    --font: "Manrope", sans-serif;
    --mono: "DM Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1240px, calc(100% - 64px));
    margin-right: auto;
    margin-left: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.scroll-progress {
    position: fixed;
    z-index: 1200;
    inset: 0 auto auto 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 14px rgba(183, 255, 90, .65);
}

#matrix-rain {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    width: clamp(180px, 25vw, 390px);
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
    opacity: .3;
    mix-blend-mode: screen;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 22%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 22%, #000 100%);
}

/* Intro */
.hero {
    position: relative;
    display: flex;
    min-height: min(850px, 100svh);
    align-items: center;
    overflow: hidden;
    padding: 140px 0 112px;
    isolation: isolate;
    background: radial-gradient(ellipse at 80% 47%, rgba(35, 67, 63, .18), transparent 39%), #080b12;
}

.hero-grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .23;
    background-image: linear-gradient(rgba(147, 173, 209, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(147, 173, 209, .09) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent, #000 48%, #000 90%, transparent);
}

.hero-glow {
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(115px);
    pointer-events: none;
}

.hero-glow-one {
    top: 8%;
    left: -260px;
    background: rgba(82, 126, 181, .13);
}

.hero-glow-two {
    right: -210px;
    bottom: -240px;
    background: rgba(111, 240, 178, .12);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(390px, .87fr);
    align-items: center;
    gap: 42px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
    animation: rise-in .85s .12s both;
}

.eyebrow,
.visual-label,
.hero-stack,
.code-card > span,
.orbit-center small {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 27px;
    color: #b7c1d0;
}

.status-dot,
.code-result i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(183, 255, 90, .7);
}

.eyebrow-divider {
    color: #536174;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 5.2vw, 72px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.065em;
}

.hero-word {
    display: inline-block;
    white-space: nowrap;
}

.hero-letter {
    display: inline-block;
    animation: hero-letter-wave 2.8s ease-in-out infinite alternate;
}

.hero-accent,
.brand-period {
    color: var(--accent);
}

.hero-description {
    max-width: 510px;
    margin: 24px 0 30px;
    color: #a4afbf;
    font-size: 16px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--accent);
    color: #10150b;
    box-shadow: 0 8px 32px rgba(183, 255, 90, .12);
}

.button-primary:hover {
    background: #d0ff92;
    color: #10150b;
}

.button-primary span,
.button-quiet span {
    font-size: 18px;
}

.button-quiet {
    border-color: var(--line);
    color: #e0e6ef;
}

.button-quiet:hover {
    border-color: rgba(183, 255, 90, .4);
    color: var(--accent);
}

.hero-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 45px;
    color: #93a0b2;
    font-size: 9px;
}

.hero-stack span {
    padding: 6px 10px;
    border: 1px solid rgba(164, 181, 207, .14);
    border-radius: 3px;
    background: rgba(13, 19, 29, .55);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 525px;
    aspect-ratio: 1;
    justify-self: end;
    animation: rise-in 1s .28s both;
}

.hero-3d-canvas {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.three-ready .hero-3d-canvas {
    filter: drop-shadow(0 0 26px rgba(104, 239, 177, .2));
}

.three-ready .hero-visual .orbit,
.three-ready .hero-visual .orbit-node,
.three-ready .hero-visual .orbit-center {
    display: none;
}

.three-ready .code-card,
.three-ready .visual-label {
    z-index: 2;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(156, 190, 203, .15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-outer {
    width: 82%;
    aspect-ratio: 1;
    border-style: dashed;
    animation: orbit-spin 55s linear infinite;
}

.orbit-inner {
    width: 61%;
    aspect-ratio: 1;
    border-color: rgba(183, 255, 90, .22);
    box-shadow: 0 0 75px rgba(79, 156, 140, .08), inset 0 0 75px rgba(79, 156, 140, .06);
    animation: orbit-pulse 5s ease-in-out infinite;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 160px;
    height: 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(194, 215, 223, .18);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #1a2830, #10151e 75%);
    box-shadow: 0 0 70px rgba(117, 223, 190, .12), inset 0 0 30px rgba(255, 255, 255, .035);
    transform: translate(-50%, -50%);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .18em;
}

.orbit-mark {
    color: var(--accent);
    font-family: var(--font);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(183, 255, 90, .35);
}

.orbit-center small {
    color: #758293;
    font-size: 7px;
    letter-spacing: .12em;
}

.orbit-node {
    position: absolute;
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 1px solid rgba(180, 203, 214, .18);
    border-radius: 50%;
    background: #111a23;
    color: #d6e0e7;
    box-shadow: 0 0 22px rgba(8, 11, 18, .8);
    font-family: var(--mono);
    font-size: 9px;
}

.orbit-node-top {
    top: 12%;
    left: 46%;
}

.orbit-node-right {
    top: 44%;
    right: 7%;
    color: var(--accent-2);
}

.orbit-node-bottom {
    bottom: 9%;
    left: 48%;
    color: var(--accent);
}

.code-card {
    position: absolute;
    right: -2%;
    bottom: 15%;
    display: flex;
    width: min(278px, 67%);
    flex-direction: column;
    gap: 10px;
    padding: 15px 16px;
    border: 1px solid rgba(167, 193, 205, .2);
    border-radius: 8px;
    background: rgba(14, 20, 29, .92);
    box-shadow: 0 22px 65px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .035);
    transform: rotate(-4deg);
    backdrop-filter: blur(16px);
}

.code-card > span {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
    color: #8a97a8;
    font-size: 8px;
}

.code-card > span i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f47773;
}

.code-card > span i:nth-child(2) {
    background: #f5c46b;
}

.code-card > span i:nth-child(3) {
    background: #82db99;
}

.code-card code {
    color: #c8d3df;
    font-family: var(--mono);
    font-size: 9px;
    white-space: nowrap;
}

.code-card code b {
    color: #b78cff;
    font-weight: 400;
}

.code-card code em {
    color: #d9e779;
    font-style: normal;
}

.code-result {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #aeb9c7 !important;
}

.code-result i {
    width: 5px;
    height: 5px;
}

.code-result strong {
    margin-left: auto;
    color: var(--accent);
}

.visual-label {
    position: absolute;
    bottom: 5%;
    left: 2%;
    color: #6c7889;
    font-size: 8px;
    letter-spacing: .1em;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #8995a5;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.hero-scroll i {
    position: relative;
    width: 1px;
    height: 29px;
    overflow: hidden;
    background: rgba(183, 255, 90, .3);
}

.hero-scroll i::after {
    position: absolute;
    top: -50%;
    left: 0;
    width: 1px;
    height: 50%;
    background: var(--accent);
    animation: scroll-line 1.7s ease-in-out infinite;
    content: "";
}

/* Navigation */
header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

header.is-scrolled {
    border-color: var(--line);
    background: rgba(8, 11, 18, .88);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.sticky-nav {
    display: flex;
    height: 78px;
    align-items: center;
    justify-content: space-between;
}

#logo a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #f3f5f8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .13em;
}

.brand-symbol {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(183, 255, 90, .46);
    border-radius: 7px 7px 7px 2px;
    color: var(--accent);
    font-size: 15px;
    letter-spacing: 0;
}

#menu-nav {
    display: flex;
    align-items: center;
    gap: 31px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#menu-nav a {
    position: relative;
    display: block;
    padding: 8px 0;
    color: #abb5c3;
    font-size: 11px;
    font-weight: 600;
    transition: color .2s ease;
}

#menu-nav a::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    content: "";
}

#menu-nav a:hover,
#menu-nav .current a {
    color: #fff;
}

#menu-nav a:hover::after,
#menu-nav .current a::after {
    transform: scaleX(1);
}

#mobile-nav {
    display: none;
}

/* Shared section layout */
.page,
.page-alternate {
    position: relative;
    padding: 112px 0;
    background: var(--bg);
}

.page-alternate {
    background: #0b0f17;
}

.page .container,
.page-alternate .container {
    position: relative;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.span3,
.span4,
.span9,
.span12 {
    float: none;
    min-height: 0;
    margin-left: 0;
}

.span3 { width: 25%; }
.span4 { width: 33.3333%; }
.span9 { width: 75%; }
.span12 { width: 100%; }

.title-page {
    margin: 0 0 52px;
}

.title-page .title {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.055em;
}

.title-page .title::before {
    display: block;
    width: 30px;
    height: 2px;
    margin-bottom: 18px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(183, 255, 90, .45);
    content: "";
}

.title-page .title-description {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

/* Portfolio */
#work .container > .row:nth-of-type(2) {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
}

#work .container > .row:nth-of-type(2) > .span3,
#work .container > .row:nth-of-type(2) > .span9 {
    width: auto;
}

.work-nav {
    position: sticky;
    top: 110px;
}

#filters {
    margin: 0;
    padding: 0;
    list-style: none;
}

#filters .type-work {
    margin: 0 0 13px;
    color: #738095;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

#filters li:not(.type-work) {
    margin: 0;
}

#filters a {
    display: block;
    padding: 8px 11px;
    border-left: 1px solid transparent;
    color: #98a4b4;
    font-size: 12px;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

#filters a:hover,
#filters a.selected {
    border-left-color: var(--accent);
    background: rgba(183, 255, 90, .06);
    color: var(--accent);
}

#projects,
#thumbs {
    width: 100%;
    margin: 0;
    padding: 0;
}

#thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    list-style: none;
    view-transition-name: project-grid;
    transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}

#thumbs.filter-transition-out {
    opacity: .18;
    filter: blur(5px);
    transform: translateY(-8px);
}

#thumbs.filter-transition-in {
    animation: project-grid-in .43s cubic-bezier(.2, .7, .2, 1) both;
}

::view-transition-group(project-grid) {
    animation-duration: .5s;
}

::view-transition-old(project-grid) {
    animation: project-grid-out .22s ease-in both;
}

::view-transition-new(project-grid) {
    animation: project-grid-in .42s cubic-bezier(.2, .7, .2, 1) both;
}

#thumbs .item-thumbs {
    position: relative;
    width: auto;
    min-width: 0;
    aspect-ratio: 1.23;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(164, 181, 207, .12);
    border-radius: 7px;
    background: #111824;
    transform-style: preserve-3d;
    transition: border-color .3s ease, transform .18s ease, opacity .25s ease;
}

#thumbs .item-thumbs:hover {
    z-index: 1;
    border-color: rgba(183, 255, 90, .42);
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
}

#thumbs .item-thumbs.is-filtered {
    display: none;
}

#thumbs .web-project {
    background: #111824;
}

#thumbs .web-project-link {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 21px;
    background: radial-gradient(ellipse at 76% 34%, var(--project-glow), transparent 49%), linear-gradient(145deg, #18212d, #0d121b 78%);
    color: #f0f3f8;
}

#thumbs .web-project-link::before {
    position: absolute;
    top: -77px;
    right: -72px;
    width: 185px;
    height: 185px;
    border: 1px solid color-mix(in srgb, var(--project-accent) 32%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 20px color-mix(in srgb, var(--project-accent) 5%, transparent), 0 0 0 42px color-mix(in srgb, var(--project-accent) 3%, transparent);
    transition: transform .45s ease;
    content: "";
}

#thumbs .web-project:hover .web-project-link::before {
    transform: scale(1.12);
}

#thumbs .web-project-monitor { --project-accent: #b7ff5a; --project-glow: rgba(99, 155, 67, .22); }
#thumbs .web-project-cube { --project-accent: #7ee9ff; --project-glow: rgba(53, 146, 202, .24); }
#thumbs .web-project-snake { --project-accent: #a9ff78; --project-glow: rgba(81, 169, 80, .22); }
#thumbs .web-project-tetris { --project-accent: #c99cff; --project-glow: rgba(153, 85, 211, .23); }
#thumbs .web-project-pacman { --project-accent: #ffe36b; --project-glow: rgba(202, 145, 52, .22); }
#thumbs .web-project-poker { --project-accent: #ff9a9a; --project-glow: rgba(185, 68, 87, .21); }

#thumbs .web-project-meta,
#thumbs .web-project-mark,
#thumbs .web-project-name,
#thumbs .web-project-description,
#thumbs .web-project-arrow {
    position: relative;
    z-index: 1;
}

#thumbs .web-project-meta {
    margin-bottom: auto;
    color: #8d99a9;
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: .11em;
}

#thumbs .web-project-mark {
    margin: auto 0 7px;
    color: var(--project-accent);
    font-family: var(--mono);
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 500;
    letter-spacing: -.08em;
    line-height: 1;
    text-shadow: 0 0 28px color-mix(in srgb, var(--project-accent) 25%, transparent);
}

#thumbs .web-project-mark span {
    color: #f0f3f8;
}

#thumbs .web-project-name {
    margin: 0;
    color: #f0f3f8;
    font-size: 15px;
    font-weight: 700;
}

#thumbs .web-project-description {
    color: #95a1b1;
    font-size: 9px;
}

#thumbs .web-project-arrow {
    position: absolute;
    right: 15px;
    bottom: 14px;
    color: var(--project-accent);
    font-size: 18px;
    transition: transform .25s ease;
}

#thumbs .web-project:hover .web-project-arrow {
    transform: translate(3px, -3px);
}

#thumbs .item-thumbs > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .82;
    transition: opacity .45s ease, transform .7s cubic-bezier(.2, .65, .25, 1);
}

#thumbs .item-thumbs:hover > img {
    opacity: 1;
    transform: scale(1.055);
}

#thumbs .hover-wrap {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    background: linear-gradient(180deg, transparent 27%, rgba(5, 8, 13, .82) 100%);
    opacity: .85;
    transition: opacity .3s ease;
}

#thumbs .item-thumbs:hover .hover-wrap {
    opacity: 1;
}

#thumbs .hover-wrap::after {
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    content: attr(title);
}

#thumbs .overlay-img,
#thumbs .overlay-img-thumb {
    display: none;
}

/* Team, technology and demos */
#about .row,
#techs .row,
#services .row,
#twitter-feed .row:last-child {
    margin: 0 -11px;
}

.profile {
    padding: 11px;
}

#about .profile {
    margin-bottom: 20px;
}

.image-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.image-wrap > img {
    width: 100%;
    aspect-ratio: 1.28;
    object-fit: cover;
    filter: saturate(.75);
    transition: filter .4s ease, transform .65s ease;
}

.profile:hover .image-wrap > img {
    filter: saturate(1);
    transform: scale(1.035);
}

#about .image-wrap .hover-wrap {
    position: absolute;
    z-index: 1;
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(183, 255, 90, .3);
    border-radius: 3px;
    background: rgba(8, 11, 18, .72);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .06em;
    backdrop-filter: blur(10px);
}

#about .overlay-img {
    display: none;
}

.profile-name {
    margin: 0 0 8px;
    color: #e7ebf1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.profile-description {
    margin: 0;
    color: #929eaf;
    font-size: 12px;
    line-height: 1.8;
}

#techs .row,
#services .row {
    align-items: stretch;
}

#techs .profile,
#services .profile,
#twitter-feed .profile {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

#techs .profile > *,
#services .profile > *,
#twitter-feed .profile > * {
    position: relative;
    z-index: 1;
}

#techs .profile,
#services .profile,
#twitter-feed .profile {
    position: relative;
}

#techs .profile::before,
#services .profile::before,
#twitter-feed .profile::before {
    position: absolute;
    inset: 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(20, 28, 41, .83), rgba(13, 18, 27, .88));
    transition: border-color .3s ease, background .3s ease, transform .3s ease;
    content: "";
}

#techs .profile:hover::before,
#services .profile:hover::before,
#twitter-feed .profile:hover::before {
    border-color: rgba(183, 255, 90, .3);
    background: linear-gradient(145deg, rgba(24, 35, 46, .95), rgba(15, 22, 30, .98));
    transform: translateY(-3px);
}

#techs .profile,
#services .profile {
    padding: 25px 24px 27px;
}

#techs .profile::before,
#services .profile::before {
    inset: 11px;
}

#techs .profile-name,
#services .profile-name {
    margin-bottom: 11px;
    color: #e7edf5;
    font-size: 14px;
}

#techs .profile-name::before,
#services .profile-name::before {
    display: block;
    width: 19px;
    height: 2px;
    margin-bottom: 13px;
    background: var(--accent);
    opacity: .8;
    content: "";
}

#techs .profile-description,
#services .profile-description {
    flex: 1;
    font-size: 11px;
    line-height: 1.75;
}

.social {
    margin-top: 16px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-icons a {
    color: var(--accent-2);
    font-size: 10px;
    transition: color .2s ease;
}

.social-icons a:hover {
    color: var(--accent);
}

#techs .span4,
#services .span4,
#twitter-feed .span4 {
    width: 33.3333%;
}

#services .profile-link {
    transition: color .2s ease;
}

#services .profile-link:hover {
    color: var(--accent);
}

#twitter-feed .profile {
    min-height: 205px;
    padding: 27px;
}

#twitter-feed .profile::before {
    inset: 11px;
}

#twitter-feed .profile > img {
    width: auto;
    height: 43px !important;
    max-width: 150px;
    margin: 0 0 14px;
    object-fit: contain;
    object-position: left center;
}

#twitter-feed .profile-name {
    font-size: 14px;
}

#twitter-feed .profile-description {
    flex: 1;
}

/* Contact and footer */
#contact .container > .row:nth-of-type(2) {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, .65fr);
    gap: 68px;
}

#contact .container > .row:nth-of-type(2) > .span9,
#contact .container > .row:nth-of-type(2) > .span3 {
    width: auto;
}

.contact-form p {
    margin: 0 0 17px;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 15px 17px;
    border: 1px solid rgba(165, 184, 218, .16);
    border-radius: 5px;
    outline: none;
    background: #0d131d;
    color: var(--text);
    font-size: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(183, 255, 90, .58);
    box-shadow: 0 0 0 3px rgba(183, 255, 90, .07);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #737f90;
}

.contact-form textarea {
    min-height: 135px;
    resize: vertical;
}

.contact-submit {
    padding-top: 5px;
}

.contact-form .submit {
    display: inline-flex;
    min-width: 180px;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 0 17px;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #10150b;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.contact-form .submit:hover {
    background: #d0ff92;
    transform: translateY(-2px);
}

.contact-form .submit:disabled {
    cursor: wait;
    opacity: .65;
}

#response {
    min-height: 22px;
    color: var(--accent-2);
    font-size: 12px;
}

.contact-details {
    padding: 27px 25px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(19, 27, 39, .85), rgba(12, 17, 26, .9));
}

.contact-details h3 {
    margin: 0 0 22px;
    color: #eef1f6;
    font-size: 16px;
}

.contact-details ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-details li {
    color: #8d99a9;
    font-size: 11px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.contact-details li a {
    color: #d4dce6;
    transition: color .2s ease;
}

.contact-details li a:hover {
    color: var(--accent);
}

footer {
    padding: 21px 0;
    border-top: 1px solid var(--line);
    background: #070a10;
}

footer .row {
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}

footer .credits {
    width: auto;
    margin: 0;
    color: #667182;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .04em;
}

footer .credits span {
    color: #a6b0bd;
}

#back-to-top {
    position: fixed;
    z-index: 900;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(183, 255, 90, .3);
    border-radius: 5px;
    background: rgba(15, 22, 31, .9);
    color: var(--accent);
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

#back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: rgba(183, 255, 90, .12);
}

/* Scroll and image-viewer effects */
.motion-ready .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .65, .25, 1);
}

.motion-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s !important; }
.reveal-delay-2 { transition-delay: .16s !important; }
.reveal-delay-3 { transition-delay: .24s !important; }

.lightbox {
    position: fixed;
    z-index: 1500;
    inset: 0;
    display: grid;
    padding: 30px;
    place-items: center;
    background: rgba(3, 5, 9, .92);
    opacity: 0;
    transition: opacity .25s ease;
    backdrop-filter: blur(12px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox:not(.is-open) {
    pointer-events: none;
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox img {
    max-width: min(1100px, 90vw);
    max-height: 82vh;
    border: 1px solid rgba(187, 209, 218, .2);
    border-radius: 6px;
    box-shadow: 0 22px 90px rgba(0, 0, 0, .55);
    opacity: 0;
    object-fit: contain;
    transform: scale(.985);
    transition: opacity .35s ease, transform .35s ease;
}

.lightbox img.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-loader {
    position: absolute;
    z-index: 1;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(183, 255, 90, .22);
    border-radius: 50%;
    background: rgba(15, 22, 31, .75);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.lightbox-loader span {
    width: 25px;
    height: 25px;
    border: 2px solid rgba(183, 255, 90, .18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: matrix-spin .8s linear infinite;
}

.lightbox.is-loading .lightbox-loader {
    opacity: 1;
}

.lightbox-caption {
    opacity: 0;
    transition: opacity .25s ease;
}

.lightbox.is-open:not(.is-loading) .lightbox-caption {
    opacity: 1;
}

.lightbox.is-error .lightbox-caption {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(15, 22, 31, .9);
}

.lightbox-caption {
    position: absolute;
    bottom: 22px;
    left: 50%;
    color: #d9e0e9;
    font-size: 12px;
    text-align: center;
    transform: translateX(-50%);
}

.lightbox-close {
    position: absolute;
    top: 22px;
    right: 25px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #111824;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-letter-wave {
    0%, 100% {
        opacity: .94;
        transform: translateY(0);
    }

    42% {
        opacity: .48;
        transform: translateY(-5px);
    }
}

@keyframes matrix-spin {
    to { transform: rotate(360deg); }
}

@keyframes project-grid-out {
    to { opacity: 0; filter: blur(5px); transform: translateY(-8px) scale(.985); }
}

@keyframes project-grid-in {
    from { opacity: 0; filter: blur(5px); transform: translateY(14px) scale(.975); }
    to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes orbit-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-pulse {
    50% { box-shadow: 0 0 100px rgba(79, 156, 140, .15), inset 0 0 45px rgba(79, 156, 140, .1); }
}

@keyframes scroll-line {
    to { top: 100%; }
}

@media (max-width: 1050px) {
    .hero-content {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr);
        gap: 10px;
    }

    .hero h1 {
        font-size: clamp(40px, 5.5vw, 62px);
    }

    #thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #filters a {
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    #matrix-rain {
        width: clamp(110px, 23vw, 190px);
        opacity: .19;
    }

    .container {
        width: min(100% - 40px, 600px);
    }

    .sticky-nav {
        height: 68px;
    }

    #mobile-nav {
        display: flex;
        width: 41px;
        height: 41px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        order: 2;
        border: 1px solid var(--line);
        border-radius: 5px;
        background: rgba(14, 20, 29, .8);
        cursor: pointer;
    }

    #mobile-nav span {
        width: 16px;
        height: 1px;
        background: #edf1f7;
        transition: transform .2s ease;
    }

    #mobile-nav[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    #mobile-nav[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    #menu {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        padding: 10px 20px 19px;
        border-bottom: 1px solid var(--line);
        background: rgba(8, 11, 18, .97);
        box-shadow: 0 20px 30px rgba(0, 0, 0, .24);
        backdrop-filter: blur(16px);
    }

    #menu.is-open {
        display: block;
        animation: rise-in .2s ease both;
    }

    #menu-nav {
        display: grid;
        gap: 2px;
    }

    #menu-nav a {
        padding: 10px 4px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 128px 0 85px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-copy {
        max-width: 620px;
    }

    .hero h1 {
        font-size: clamp(40px, 9vw, 62px);
    }

    .hero-description {
        max-width: 520px;
        font-size: 14px;
    }

    .hero-stack {
        margin-top: 28px;
    }

    .hero-visual {
        width: min(100%, 430px);
        justify-self: center;
        margin-top: -4px;
    }

    .orbit-center {
        width: 132px;
        height: 132px;
    }

    .hero-scroll {
        bottom: 19px;
    }

    .page,
    .page-alternate {
        padding: 78px 0;
    }

    .title-page {
        margin-bottom: 34px;
    }

    #work .container > .row:nth-of-type(2) {
        grid-template-columns: 1fr;
        gap: 21px;
    }

    .work-nav {
        position: static;
        margin: 0 -20px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .work-nav::-webkit-scrollbar {
        display: none;
    }

    #filters {
        display: flex;
        width: max-content;
        gap: 5px;
        padding: 0 20px 7px;
    }

    #filters .type-work {
        display: none;
    }

    #filters a {
        padding: 8px 11px;
        border: 1px solid var(--line);
        border-radius: 30px;
        white-space: nowrap;
    }

    #filters a:hover,
    #filters a.selected {
        border-color: rgba(183, 255, 90, .34);
        background: rgba(183, 255, 90, .07);
    }

    #thumbs {
        gap: 10px;
    }

    #about .span4,
    #techs .span4,
    #services .span4,
    #twitter-feed .span4 {
        width: 50%;
    }

    #contact .container > .row:nth-of-type(2) {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 36px);
    }

    .hero {
        padding-top: 115px;
    }

    .eyebrow {
        gap: 7px;
        font-size: 8px;
    }

    .hero h1 {
        font-size: clamp(36px, 10vw, 48px);
    }

    .hero-description {
        margin: 17px 0 22px;
        font-size: 13px;
    }

    .hero-actions {
        gap: 8px;
    }

    .button {
        min-height: 45px;
        gap: 13px;
        padding: 0 13px;
        font-size: 11px;
    }

    .hero-visual {
        width: min(112%, 380px);
        margin-left: -6%;
    }

    .code-card {
        right: 0;
        bottom: 12%;
        width: 70%;
        padding: 12px;
    }

    .code-card code {
        font-size: 7px;
    }

    .visual-label {
        left: 4%;
        font-size: 6px;
    }

    .page,
    .page-alternate {
        padding: 64px 0;
    }

    .title-page .title {
        font-size: 34px;
    }

    .title-page .title-description {
        font-size: 12px;
    }

    #thumbs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    #thumbs .item-thumbs {
        aspect-ratio: .95;
    }

    #thumbs .hover-wrap {
        padding: 9px;
    }

    #thumbs .hover-wrap::after {
        font-size: 10px;
    }

    #about .row,
    #techs .row,
    #services .row,
    #twitter-feed .row:last-child {
        margin: 0 -7px;
    }

    #about .span4,
    #techs .span4,
    #services .span4,
    #twitter-feed .span4 {
        width: 100%;
    }

    #about .profile {
        display: grid;
        grid-template-columns: 105px 1fr;
        column-gap: 14px;
        align-items: start;
        padding: 7px;
    }

    #about .image-wrap {
        grid-row: span 2;
        margin: 0;
    }

    #about .image-wrap > img {
        aspect-ratio: .9;
    }

    #about .image-wrap .hover-wrap {
        right: 5px;
        bottom: 5px;
        padding: 3px 5px;
        font-size: 6px;
    }

    #about .profile-name {
        align-self: end;
        margin-top: 4px;
    }

    #about .profile-description {
        align-self: start;
    }

    #techs .profile,
    #services .profile {
        padding: 22px;
    }

    #twitter-feed .profile {
        min-height: 0;
    }

    footer .row {
        justify-content: flex-start;
        gap: 5px 18px;
    }

    footer .credits {
        font-size: 8px;
    }

    #back-to-top {
        right: 15px;
        bottom: 15px;
        width: 39px;
        height: 39px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }

    .hero-letter {
        animation: none !important;
    }

    .motion-ready .reveal {
        opacity: 1;
        transform: none;
    }
}