/*
Theme Name: Asif Portfolio
Author: Codex
Description: Minimal monochrome portfolio theme based on the supplied Asif Ahmed page designs.
Version: 1.0.0
Requires at least: 6.0
*/

:root {
    --surface: #f9f9f9;
    --canvas: #ffffff;
    --surface-low: #f3f3f3;
    --surface-mid: #eeeeee;
    --surface-high: #e2e2e2;
    --text: #000000;
    --text-soft: #5e5e5e;
    --text-muted: #646464;
    --border: #000000;
    --border-soft: #dadada;
    --max-width: 1440px;
    --margin-mobile: 20px;
    --margin-desktop: 64px;
    --gutter: 24px;
    --header-height: 73px;
    --footer-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.asif-site {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--canvas);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.cursor-orbit,
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cursor-orbit {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 0, 0, 0.42);
    background: rgba(255, 255, 255, 0.18);
}

.cursor-orbit::before,
.cursor-orbit::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 22px;
    height: 1px;
    background: rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%);
}

.cursor-orbit::after {
    width: 1px;
    height: 22px;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--text);
}

.cursor-orbit.is-visible,
.cursor-dot.is-visible {
    opacity: 1;
}

.cursor-orbit.is-active {
    border-color: var(--text);
    background: rgba(0, 0, 0, 0.08);
}

body.admin-bar .site-header {
    top: 32px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
}

button,
input,
textarea {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px var(--margin-mobile);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
}

.desktop-nav {
    display: none;
}

.nav-link {
    color: var(--text-soft);
    font-weight: 400;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.nav-link.is-active {
    font-weight: 700;
    border-bottom-color: var(--border);
}

.connect-button,
.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 24px;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.connect-button,
.button--primary {
    background: var(--text);
    color: var(--canvas);
}

.connect-button {
    display: none;
}

.button--secondary {
    background: var(--canvas);
    color: var(--text);
}

.button--primary:hover,
.connect-button:hover {
    opacity: 0.8;
}

.button--secondary:hover {
    background: var(--text);
    color: var(--canvas);
}

.button:hover,
.connect-button:hover,
.carousel-arrow:hover {
    transform: translateY(-2px);
}

.button:active,
.connect-button:active,
.carousel-arrow:active {
    transform: translateY(0);
}

.button .material-symbols-outlined,
.project-back .material-symbols-outlined,
.portfolio-category a {
    transition: transform 180ms ease;
}

.button:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.button--wide {
    width: fit-content;
    padding-inline: 32px;
}

.mobile-nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 0;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--canvas);
    padding: 8px var(--margin-mobile) 20px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.mobile-nav .nav-link {
    padding: 12px 0;
}

.site-main,
.page-shell {
    padding-top: var(--header-height);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px var(--margin-mobile) 72px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.asif-3d-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.58;
}

.asif-3d-field canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.asif-3d-field::after {
    content: "";
    position: absolute;
    inset: 0;
    border-inline: 1px solid rgba(0, 0, 0, 0.08);
    background-size: 120px 120px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.055) 1px, transparent 1px);
    opacity: 0.55;
}

.asif-3d-field--inner {
    inset: var(--header-height) 0 auto 0;
    height: min(62vh, 520px);
    opacity: 0.2;
}

.asif-3d-field--inner::after {
    background-size: 96px 96px;
    opacity: 0.32;
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.hero-copy {
    order: 2;
}

.hero-copy h1 {
    margin: 0 0 24px;
    font-size: 56px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
}

.role-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.role-line span {
    width: 48px;
    height: 2px;
    background: var(--text);
}

.role-line p {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    text-transform: uppercase;
}

.hero-intro,
.lead-copy {
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.6;
}

.hero-intro {
    max-width: 600px;
    margin-bottom: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 520px;
    margin-bottom: 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hero-stats div {
    padding: 14px 16px;
    border-right: 1px solid var(--border);
}

.hero-stats div:last-child {
    border-right: 0;
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.hero-stats span {
    margin-top: 6px;
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-actions .button {
    width: 100%;
}

.hero-portrait-wrap {
    order: 1;
    display: flex;
    justify-content: flex-start;
}

.portrait-frame {
    position: relative;
    width: min(100%, 400px);
    aspect-ratio: 1;
    border: 1px solid var(--border);
    padding: 8px;
    background: var(--surface-low);
    transition: transform 320ms ease, background-color 320ms ease;
}

.portrait-frame:hover {
    transform: translateY(-4px);
    background: var(--canvas);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    mix-blend-mode: multiply;
    background: var(--surface-high);
}

.portrait-frame--flat {
    width: 100%;
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.frame-corner--tl {
    top: 8px;
    left: 8px;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.frame-corner--br {
    right: 8px;
    bottom: 8px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.portrait-label {
    display: none;
}

.structural-lines {
    display: none;
}

.page-shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 128px var(--margin-mobile) 96px;
}

.page-shell > :not(.asif-3d-field) {
    position: relative;
    z-index: 2;
}

.page-shell--spacious {
    padding-top: 128px;
}

.page-intro {
    max-width: 760px;
    margin-bottom: 96px;
}

.page-intro--compact {
    margin-bottom: 80px;
}

.page-title {
    margin: 0 0 24px;
    color: var(--text);
    font-size: 52px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.about-grid,
.contact-grid,
.detail-header-grid,
.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.about-content .page-title {
    text-transform: uppercase;
}

.body-panel {
    max-width: 760px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.body-panel p,
.overview-panel p {
    margin: 0 0 24px;
    color: var(--text-soft);
}

.body-panel .lead-copy,
.overview-panel p:first-of-type {
    color: var(--text);
}

.stack-block {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stack-block h2,
.contact-info h2,
.mono-label,
.field label,
.detail-meta span {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 400;
    text-transform: uppercase;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip-list span,
.project-card__heading span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: var(--surface-low);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chip-list span:hover,
.project-card__heading span:hover {
    background: var(--text);
    color: var(--canvas);
    transform: translateY(-2px);
}

.stack-block + .button {
    margin-top: 64px;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.portfolio-stage {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.portfolio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.portfolio-toolbar p {
    margin: 0;
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portfolio-controls {
    display: flex;
    gap: 8px;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--canvas);
    color: var(--text);
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.carousel-arrow:hover {
    background: var(--text);
    color: var(--canvas);
}

.carousel-arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.portfolio-carousel {
    display: flex;
    gap: 16px;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--surface-low);
    padding-bottom: 4px;
}

.portfolio-carousel::-webkit-scrollbar {
    height: 8px;
}

.portfolio-carousel::-webkit-scrollbar-track {
    background: var(--surface-low);
}

.portfolio-carousel::-webkit-scrollbar-thumb {
    background: var(--border);
}

.portfolio-category {
    flex: 0 0 min(86vw, 360px);
    min-height: 360px;
    max-height: 560px;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    background: var(--canvas);
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: transform 240ms ease, background-color 240ms ease, border-color 240ms ease;
}

.portfolio-category:hover,
.portfolio-category.is-active {
    transform: translateY(-3px);
    background: var(--surface-low);
}

.portfolio-category header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.portfolio-category h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.portfolio-category header span {
    flex: 0 0 auto;
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.portfolio-category ol {
    flex: 1 1 auto;
    min-height: 0;
    counter-reset: portfolio-project;
    list-style: none;
    margin: 0;
    padding-left: 0;
    padding-right: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--surface-low);
}

.portfolio-category ol::-webkit-scrollbar {
    width: 7px;
}

.portfolio-category ol::-webkit-scrollbar-track {
    background: var(--surface-low);
}

.portfolio-category ol::-webkit-scrollbar-thumb {
    background: var(--border);
}

.portfolio-category li {
    counter-increment: portfolio-project;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.portfolio-category li:hover {
    background: rgba(0, 0, 0, 0.035);
    border-color: var(--border);
    transform: translateX(3px);
}

.portfolio-category li::before {
    content: counter(portfolio-project, decimal-leading-zero);
    width: 32px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--text);
    color: var(--canvas);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    grid-row: 1 / span 2;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.portfolio-category li:hover::before {
    background: var(--canvas);
    color: var(--text);
    transform: rotate(-2deg);
}

.portfolio-category li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.portfolio-category a {
    grid-column: 2;
    min-width: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: uppercase;
}

.portfolio-category a:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

.portfolio-category p {
    grid-column: 2;
    min-width: 0;
    margin: 5px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    border: 1px solid transparent;
    padding: 16px;
    margin: -16px;
    transition: border-color 180ms ease;
}

.project-card:hover {
    border-color: var(--border);
}

.project-image {
    display: block;
    width: 100%;
    aspect-ratio: 1.79;
    overflow: hidden;
    background: var(--surface-low);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transform: scale(1);
    transition: transform 500ms ease, filter 500ms ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
    filter: grayscale(0);
}

.project-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.project-card__heading h2,
.overview-panel h2,
.stack-panel h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0;
}

.project-card p {
    margin: 0;
    color: var(--text-soft);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    transition: transform 180ms ease, color 180ms ease;
}

.project-links a:hover {
    text-decoration: underline;
    transform: translateX(3px);
}

.project-links a + a {
    color: var(--text-soft);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.contact-major {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
}

.contact-major span {
    color: var(--text-soft);
    font-size: 16px;
}

.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-socials a {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 1.6;
    transition: transform 180ms ease;
}

.contact-socials .material-symbols-outlined {
    font-size: 16px;
    opacity: 0;
    transition: opacity 160ms ease, transform 160ms ease;
}

.contact-socials a:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

.contact-socials a:hover .material-symbols-outlined {
    opacity: 1;
    transform: translateX(3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 600px;
}

.field label {
    display: block;
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 0;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color 180ms ease, border-width 180ms ease, background-color 180ms ease, padding-inline 180ms ease;
}

.field input:focus,
.field textarea:focus {
    border-bottom-width: 2px;
    background: rgba(0, 0, 0, 0.025);
    padding-inline: 8px;
}

.form-status {
    min-height: 20px;
    margin: -16px 0 0;
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
}

.detail-shell {
    padding-top: 104px;
}

.detail-hero {
    width: 100%;
    height: 54vh;
    min-height: 340px;
    max-height: 720px;
    border: 2px solid var(--border);
    overflow: hidden;
    margin-bottom: 64px;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.detail-hero:hover img {
    transform: scale(1.04);
}

.detail-header-grid {
    margin-bottom: 96px;
}

.detail-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.detail-heading .page-title {
    margin-bottom: 0;
    text-transform: uppercase;
}

.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.detail-meta div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-meta strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
}

.detail-meta__wide {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.overview-panel,
.stack-panel {
    border: 1px solid var(--border);
    padding: 32px;
}

.overview-panel {
    background: var(--surface);
}

.stack-panel {
    background: var(--surface-high);
}

.overview-panel h2 {
    padding-bottom: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
    font-size: 40px;
    line-height: 1.1;
}

.single-project {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.project-back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.project-back:hover {
    color: var(--text);
    text-decoration: underline;
}

.project-back .material-symbols-outlined {
    font-size: 16px;
}

.single-project-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.single-project-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.single-project-heading .lead-copy {
    max-width: 720px;
    margin-bottom: 32px;
}

.single-project-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    border: 1px solid var(--border);
    background: var(--surface-low);
    padding: 24px;
}

.single-project-meta div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.single-project-meta span {
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.single-project-meta strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.single-project-body {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 32px;
}

.single-project-body h2 {
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 32px;
    line-height: 1.1;
}

.single-project-content p {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.6;
}

.single-project-content p:last-child {
    margin-bottom: 0;
}

.motion-ready .motion-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.motion-ready .motion-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.motion-ready .motion-reveal:nth-child(2) {
    transition-delay: 70ms;
}

.motion-ready .motion-reveal:nth-child(3) {
    transition-delay: 130ms;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .asif-3d-field {
        opacity: 0.26;
    }

    .cursor-orbit,
    .cursor-dot {
        display: none;
    }
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--canvas);
}

.site-footer__inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px var(--margin-mobile);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: center;
}

.footer-copy,
.footer-links a {
    margin: 0;
    color: var(--text-soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--text);
    text-decoration: underline;
}

@media (min-width: 720px) {
    .site-header__inner {
        padding-inline: var(--margin-desktop);
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .connect-button {
        display: inline-flex;
    }

    .mobile-nav-toggle,
    .mobile-nav {
        display: none;
    }

    .hero-section {
        padding: 116px var(--margin-desktop) 80px;
    }

    .hero-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: var(--gutter);
    }

    .hero-copy {
        order: 1;
        grid-column: 1 / span 8;
        align-self: center;
    }

    .hero-copy h1 {
        font-size: 104px;
    }

    .hero-portrait-wrap {
        order: 2;
        grid-column: 9 / span 4;
        align-items: center;
        justify-content: flex-end;
    }

    .portrait-frame {
        padding: 16px;
    }

    .frame-corner--tl {
        top: 16px;
        left: 16px;
    }

    .frame-corner--br {
        right: 16px;
        bottom: 16px;
    }

    .hero-actions {
        flex-direction: row;
    }

    .hero-actions .button {
        width: auto;
    }

    .structural-lines {
        position: absolute;
        inset: 0 var(--margin-desktop);
        z-index: 1;
        max-width: calc(var(--max-width) - (var(--margin-desktop) * 2));
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        opacity: 0.12;
        pointer-events: none;
    }

    .structural-lines span {
        width: 1px;
        height: 100%;
        background: var(--text);
    }

    .page-shell {
        padding: 160px var(--margin-desktop) 128px;
    }

    .page-title {
        font-size: 80px;
    }

    .about-grid,
    .contact-grid,
    .detail-header-grid,
    .detail-content-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: var(--gutter);
    }

    .about-portrait {
        grid-column: 1 / span 4;
    }

    .about-content {
        grid-column: 5 / span 8;
        padding-left: 64px;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .contact-info {
        grid-column: 1 / span 5;
        padding: 0 48px 0 0;
        border-bottom: 0;
        border-right: 1px solid var(--border);
    }

    .contact-form {
        grid-column: 6 / span 7;
        margin-left: 48px;
    }

    .detail-heading {
        grid-column: 1 / span 8;
    }

    .detail-meta {
        grid-column: 9 / span 4;
        padding-top: 0;
        padding-left: 32px;
        border-top: 0;
        border-left: 2px solid var(--border);
    }

    .overview-panel {
        grid-column: 1 / span 8;
        padding: 48px;
    }

    .stack-panel {
        grid-column: 9 / span 4;
        padding: 32px;
    }

    .site-footer__inner {
        padding-inline: var(--margin-desktop);
        flex-direction: row;
        text-align: left;
    }
}

@media (min-width: 1080px) {
    .hero-copy h1 {
        font-size: 120px;
    }

    .portrait-label {
        position: absolute;
        right: -16px;
        bottom: 48px;
        display: block;
        padding: 8px 16px;
        background: var(--text);
        color: var(--canvas);
        font-family: "JetBrains Mono", monospace;
        font-size: 13px;
        line-height: 1;
        letter-spacing: 0;
        transform: rotate(90deg);
        transform-origin: right bottom;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 719px) {
    .page-shell {
        padding-bottom: 88px;
    }

    .project-card {
        margin-inline: 0;
        padding-inline: 0;
    }

    .project-card:hover {
        border-color: transparent;
    }

    .contact-form .button {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    html {
        height: 100%;
        overflow: hidden;
    }

    body.asif-site {
        min-height: 0;
        height: 100dvh;
        display: grid;
        grid-template-rows: var(--header-height) minmax(0, 1fr) var(--footer-height);
        overflow: hidden;
    }

    body.admin-bar .site-header,
    .site-header {
        position: static;
        inset: auto;
    }

    .site-header__inner {
        min-height: var(--header-height);
        padding-block: 12px;
    }

    .site-main,
    .page-shell {
        min-height: 0;
        height: 100%;
        padding-top: 0;
        overflow: hidden;
    }

    .hero-section,
    .page-shell {
        padding-block: clamp(18px, 3vh, 40px);
    }

    .hero-section {
        min-height: 0;
        height: 100%;
    }

    .hero-copy h1 {
        margin-bottom: clamp(12px, 2vh, 22px);
        font-size: clamp(54px, 10.6vh, 92px);
    }

    .role-line {
        margin-bottom: clamp(16px, 2.5vh, 28px);
    }

    .role-line p {
        font-size: 22px;
    }

    .hero-intro,
    .lead-copy {
        font-size: 16px;
        line-height: 1.45;
    }

    .hero-intro {
        margin-bottom: clamp(20px, 4vh, 40px);
    }

    .hero-stats {
        margin-bottom: clamp(20px, 3.5vh, 34px);
    }

    .hero-stats div {
        padding: clamp(10px, 1.8vh, 14px) 14px;
    }

    .hero-stats strong {
        font-size: clamp(22px, 4vh, 28px);
    }

    .hero-portrait-wrap .portrait-frame {
        width: min(100%, 49vh, 400px);
    }

    .site-footer {
        min-height: var(--footer-height);
    }

    .site-footer__inner {
        min-height: var(--footer-height);
        padding-block: 12px;
        gap: 18px;
    }

    .footer-logo,
    .site-logo {
        font-size: 22px;
    }

    .footer-copy,
    .footer-links a {
        font-size: 12px;
    }

    .page-shell:not(.detail-shell) {
        display: flex;
        flex-direction: column;
    }

    .page-intro {
        flex: 0 0 auto;
        margin-bottom: clamp(22px, 4vh, 48px);
    }

    .page-intro--compact {
        margin-bottom: clamp(20px, 3vh, 40px);
    }

    .page-title {
        margin-bottom: clamp(12px, 2vh, 22px);
        font-size: clamp(44px, 8.4vh, 72px);
    }

    .about-grid,
    .contact-grid {
        flex: 1 1 auto;
        min-height: 0;
        align-items: center;
    }

    .about-portrait .portrait-frame {
        width: min(100%, 48vh, 420px);
    }

    .about-content {
        padding-left: clamp(32px, 5vw, 64px);
    }

    .body-panel {
        padding-top: clamp(16px, 2.5vh, 28px);
    }

    .body-panel p,
    .overview-panel p {
        margin-bottom: clamp(10px, 1.8vh, 18px);
        font-size: 15px;
        line-height: 1.42;
    }

    .body-panel .lead-copy {
        font-size: 16px;
        line-height: 1.45;
    }

    .stack-block {
        margin-top: clamp(22px, 4vh, 44px);
        padding-top: clamp(16px, 2.5vh, 28px);
    }

    .stack-block h2,
    .contact-info h2,
    .mono-label,
    .field label,
    .detail-meta span {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .chip-list {
        gap: 8px;
    }

    .chip-list span,
    .project-card__heading span {
        min-height: 24px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .stack-block + .button {
        margin-top: clamp(22px, 4vh, 44px);
    }

    .button,
    .connect-button {
        min-height: 40px;
        padding: 10px 20px;
        font-size: 12px;
    }

    .project-grid {
        flex: 1 1 auto;
        min-height: 0;
        align-items: start;
        gap: 20px;
    }

    .portfolio-stage {
        flex: 1 1 auto;
        min-height: 0;
    }

    .portfolio-toolbar {
        flex: 0 0 auto;
    }

    .portfolio-carousel {
        flex: 1 1 auto;
        min-height: 0;
        gap: 14px;
        align-items: flex-start;
    }

    .portfolio-category {
        flex: 0 0 min(31vw, 390px);
        height: clamp(300px, 52vh, 360px);
        min-height: 0;
        max-height: none;
        padding: clamp(12px, 2vh, 18px);
        overflow: hidden;
    }

    .portfolio-category header {
        margin-bottom: clamp(8px, 1.5vh, 14px);
        padding-bottom: clamp(8px, 1.5vh, 12px);
    }

    .portfolio-category h2 {
        font-size: clamp(18px, 3vh, 22px);
    }

    .portfolio-category ol {
        padding-left: 0;
    }

    .portfolio-category li {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
        padding: clamp(8px, 1.7vh, 12px) 0;
    }

    .portfolio-category li::before {
        width: 30px;
        height: 22px;
        font-size: 11px;
    }

    .portfolio-category a {
        font-size: 12px;
    }

    .portfolio-category p {
        margin-top: 4px;
        font-size: clamp(11px, 1.75vh, 13px);
        line-height: 1.28;
    }

    .project-card {
        gap: 12px;
        padding: 12px;
        margin: -12px;
    }

    .project-image {
        aspect-ratio: auto;
        height: clamp(140px, 24vh, 230px);
    }

    .project-card__body {
        gap: 8px;
    }

    .project-card__heading h2,
    .overview-panel h2,
    .stack-panel h2 {
        font-size: 21px;
        line-height: 1.22;
    }

    .project-card p {
        font-size: 14px;
        line-height: 1.38;
    }

    .project-links {
        gap: 14px;
        padding-top: 6px;
    }

    .project-links a {
        font-size: 12px;
    }

    .single-project {
        flex: 1 1 auto;
        min-height: 0;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr);
        gap: clamp(14px, 2.2vh, 24px);
    }

    .single-project-hero {
        grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
        gap: 24px;
        align-items: start;
    }

    .single-project-heading .lead-copy {
        margin-bottom: clamp(18px, 3vh, 30px);
    }

    .single-project-meta {
        gap: 18px;
        padding: clamp(16px, 2.6vh, 24px);
    }

    .single-project-meta span {
        font-size: 12px;
    }

    .single-project-meta strong {
        font-size: 16px;
        line-height: 1.3;
    }

    .single-project-body {
        min-height: 0;
        overflow-y: auto;
        padding: clamp(18px, 3vh, 30px);
        scrollbar-width: thin;
        scrollbar-color: var(--border) var(--surface-low);
    }

    .single-project-body::-webkit-scrollbar {
        width: 7px;
    }

    .single-project-body::-webkit-scrollbar-track {
        background: var(--surface-low);
    }

    .single-project-body::-webkit-scrollbar-thumb {
        background: var(--border);
    }

    .single-project-body h2 {
        margin-bottom: clamp(12px, 2vh, 20px);
        padding-bottom: 12px;
        font-size: clamp(24px, 4vh, 32px);
    }

    .single-project-content p {
        font-size: 16px;
        line-height: 1.45;
    }

    .contact-info {
        gap: clamp(20px, 4vh, 40px);
        padding-right: clamp(28px, 4vw, 48px);
    }

    .contact-major {
        font-size: 21px;
        line-height: 1.25;
    }

    .contact-socials {
        gap: 10px;
    }

    .contact-socials a {
        font-size: 16px;
        line-height: 1.4;
    }

    .contact-form {
        gap: clamp(18px, 3.2vh, 32px);
        margin-left: clamp(28px, 4vw, 48px);
    }

    .field input,
    .field textarea {
        padding: 8px 0;
        font-size: 16px;
        line-height: 1.4;
    }

    .field textarea {
        max-height: 92px;
    }

    .detail-shell {
        display: grid;
        grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
        grid-template-rows: minmax(150px, 0.74fr) minmax(0, 1fr);
        gap: 20px;
    }

    .detail-hero {
        grid-column: 1;
        grid-row: 1 / -1;
        height: 100%;
        min-height: 0;
        max-height: none;
        margin-bottom: 0;
    }

    .detail-header-grid {
        grid-column: 2;
        grid-row: 1;
        min-height: 0;
        margin-bottom: 0;
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
        gap: 20px;
        align-items: start;
    }

    .detail-heading,
    .detail-meta {
        grid-column: auto;
    }

    .detail-heading {
        gap: clamp(10px, 2vh, 20px);
    }

    .detail-meta {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        padding-left: 20px;
    }

    .detail-meta strong {
        font-size: 15px;
        line-height: 1.35;
    }

    .detail-meta__wide {
        padding-top: 16px;
    }

    .detail-content-grid {
        grid-column: 2;
        grid-row: 2;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(200px, 0.85fr);
        gap: 20px;
    }

    .overview-panel,
    .stack-panel {
        grid-column: auto;
        min-height: 0;
        padding: clamp(18px, 3vh, 32px);
    }

    .overview-panel h2 {
        margin-bottom: clamp(14px, 2vh, 22px);
        padding-bottom: 12px;
        font-size: clamp(26px, 4vh, 36px);
    }
}

@media (min-width: 1024px) and (max-height: 720px) {
    :root {
        --footer-height: 58px;
        --header-height: 62px;
    }

    .site-header__inner {
        padding-block: 8px;
    }

    .hero-section,
    .page-shell {
        padding-block: 16px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 7.8vh, 56px);
    }

    .role-line {
        margin-bottom: 14px;
    }

    .hero-intro {
        margin-bottom: 18px;
    }

    .hero-stats {
        margin-bottom: 18px;
    }

    .hero-stats div {
        padding: 8px 10px;
    }

    .hero-stats strong {
        font-size: 20px;
    }

    .hero-stats span {
        font-size: 11px;
    }

    .page-title {
        font-size: clamp(38px, 7.4vh, 56px);
    }

    .page-intro {
        margin-bottom: 18px;
    }

    .body-panel p,
    .overview-panel p {
        font-size: 14px;
        line-height: 1.34;
    }

    .project-image {
        height: clamp(120px, 22vh, 170px);
    }

    .portfolio-carousel {
        gap: 10px;
    }

    .portfolio-category {
        height: clamp(250px, 48vh, 300px);
        padding: 10px;
    }

    .portfolio-category header {
        margin-bottom: 7px;
        padding-bottom: 7px;
    }

    .portfolio-category h2 {
        font-size: 16px;
    }

    .portfolio-category ol {
        padding-left: 0;
    }

    .portfolio-category li {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
        padding: 7px 0;
    }

    .portfolio-category li::before {
        width: 26px;
        height: 20px;
        font-size: 10px;
    }

    .portfolio-category a {
        font-size: 10.5px;
    }

    .portfolio-category p {
        font-size: 10px;
        line-height: 1.18;
    }

    .single-project {
        gap: 10px;
    }

    .project-back {
        font-size: 11px;
    }

    .single-project-hero {
        gap: 14px;
    }

    .single-project-heading .lead-copy {
        margin-bottom: 12px;
    }

    .single-project-meta {
        gap: 10px;
        padding: 12px;
    }

    .single-project-meta strong {
        font-size: 13px;
        line-height: 1.2;
    }

    .single-project-body {
        padding: 12px;
    }

    .single-project-body h2 {
        margin-bottom: 8px;
        padding-bottom: 8px;
        font-size: 20px;
    }

    .single-project-content p {
        margin-bottom: 8px;
        font-size: 13px;
        line-height: 1.25;
    }

    .contact-info {
        gap: 18px;
    }

    .contact-form {
        gap: 16px;
    }

    .field textarea {
        max-height: 72px;
    }

    .detail-shell {
        grid-template-rows: minmax(116px, 0.42fr) minmax(0, 1fr);
        gap: 12px;
    }

    .detail-header-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(200px, 0.7fr);
        gap: 14px;
    }

    .detail-heading {
        gap: 8px;
    }

    .detail-meta {
        gap: 10px;
        padding-left: 14px;
    }

    .detail-meta strong {
        font-size: 13px;
        line-height: 1.22;
    }

    .detail-meta__wide {
        padding-top: 10px;
    }

    .detail-content-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(170px, 0.75fr);
        gap: 12px;
    }

    .overview-panel,
    .stack-panel {
        padding: 14px;
    }

    .overview-panel h2 {
        margin-bottom: 8px;
        padding-bottom: 8px;
        font-size: 22px;
    }

    .overview-panel p {
        margin-bottom: 8px;
        font-size: 13px;
        line-height: 1.25;
    }
}
