:root {
    --bg: #f6f0e5;
    --bg-soft: #fffaf1;
    --surface: rgba(255, 250, 241, 0.82);
    --surface-strong: #fffdf8;
    --text: #201a12;
    --muted: #6b6056;
    --line: rgba(32, 26, 18, 0.12);
    --accent: #b85c38;
    --accent-dark: #8f4528;
    --accent-soft: rgba(184, 92, 56, 0.12);
    --shadow: 0 24px 80px rgba(58, 38, 19, 0.12);
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 999px;
    --container: 1400px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Geist', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(184, 92, 56, 0.16), transparent 34%),
        radial-gradient(circle at 85% 15%, rgba(54, 106, 87, 0.16), transparent 24%),
        linear-gradient(180deg, #f7f0e4 0%, #f3eadc 100%);
}

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

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

.page-shell {
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 20px 0;
    background: transparent;
    border-bottom: 0;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(8, 8, 8, 0.58);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: #fff;
    justify-self: start;
}

.brand-logo {
    display: block;
    width: auto;
    height: 42px;
    max-width: 200px;
    object-fit: contain;
}

.main-nav {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    justify-self: center;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #fff;
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-cta {
    min-height: auto;
    padding: 12px 14px;
    background: linear-gradient(#b5b5b5, #e2e2e2);
    border-radius: 25px !important;
    color: #111111;
    border: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    font-family: 'Geist', sans-serif;
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible {
    transform: none;
}

.header-cta:hover,
.header-cta:focus-visible {
    background: transparent;
    color: #f3f3f3;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 250px 0;
    color: #f6f1e8;
    background:
        linear-gradient(180deg, rgba(8, 8, 8, 0.7) 0%, rgba(8, 8, 8, 0.78) 100%),
        url('../images/hero bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 60px auto auto -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(184, 92, 56, 0.08);
    filter: blur(24px);
    pointer-events: none;
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    align-items: center;
    gap: 44px;
}

.hero-content {
    width: 100%;
}

.hero-centered {
    display: flex;
    justify-content: center;
}

.hero-centered .hero-content {
    width: 100%;
    max-width: none;
    text-align: center;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-family: 'Geist', sans-serif;
    font-size: 4rem;
    line-height: 1.3em;
    letter-spacing: -0.05em;
    max-width: 800px;
    font-weight: 500;
    color: #E8E8E8;
}

.hero-text {
    margin: 0;
    color: #BBBBBB;
    font-size: 1.25rem;
    line-height: 1.75;
    max-width: 760px;
    font-weight: 300 !important;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: 'Geist', sans-serif;
    text-decoration: none;
}

.primary-btn {
    background-image: linear-gradient(#cecece, #c0c0c0);
    padding: 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
}

.header-cta-wrap {
    flex-shrink: 0;
    justify-self: end;
}

.primary-btn .button {
    min-height: auto;
    padding: 12px 14px;
    background: linear-gradient(#b5b5b5, #e2e2e2);
    border-radius: 25px !important;
    color: #111111;
    border: 0;
}

.primary-btn .button:hover,
.primary-btn .button:focus-visible {
    background: transparent;
}

.secondary-btn {
    display: inline-flex;
}

.secondary-btn .button {
    background: #252525;
    color: #f3f3f3;
    border: 0;
    border-radius: 25px;
    min-height: auto;
    padding: 16px 18px;
    border-radius: 8px;
}

.secondary-btn .button:hover,
.secondary-btn .button:focus-visible {
    background: #2b2b2b;
}

.hero-centered .hero-text {
    margin-inline: auto;
}

.hero-centered h1 {
    margin-inline: auto;
}

.portfolio-section {
    padding: 120px 0;
    background: #040406;
    color: #e8e8e8;
}

.portfolio-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
    gap: 30px;
    align-items: end;
    margin-bottom: 40px;
}

.portfolio-heading h2 {
    margin: 0;
    max-width: 760px;
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.portfolio-intro {
    margin: 0;
    color: #b8b8b8;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
}

.portfolio-slider {
    display: grid;
    gap: 24px;
}

.portfolio-slider-frame {
    overflow: hidden;
}

.portfolio-track {
    display: flex;
    transition: transform 0.35s ease;
}

.portfolio-slide {
    min-width: 100%;
}

.portfolio-card {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: stretch;
    padding: 10px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(144, 213, 255, 0.08));
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.portfolio-media {
    width: 100%;
    display: flex;
}

.portfolio-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.portfolio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 7 / 5;
    overflow: hidden;
    border-radius: 18px;
    background: #0e0f13;
}

.portfolio-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-image-1 {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(150deg, rgba(12, 13, 18, 0.9) 0%, rgba(42, 53, 82, 0.7) 100%);
}

.portfolio-image-2 {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 26%),
        linear-gradient(150deg, rgba(17, 18, 20, 0.94) 0%, rgba(71, 39, 30, 0.68) 100%);
}

.portfolio-image-3 {
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 24%),
        linear-gradient(150deg, rgba(10, 13, 18, 0.94) 0%, rgba(22, 64, 78, 0.68) 100%);
}

.portfolio-image-4 {
    background:
        radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.14), transparent 26%),
        linear-gradient(150deg, rgba(14, 14, 18, 0.94) 0%, rgba(67, 30, 62, 0.68) 100%);
}

.portfolio-tag {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.type-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.portfolio-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.portfolio-details-top,
.portfolio-details-bottom {
    display: grid;
    gap: 16px;
}

.portfolio-details h3 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 500;
    color: #f0f0f0;
    letter-spacing: -0.04em;
}

.portfolio-details p {
    margin: 0;
    color: #b8b8b8;
    line-height: 1.75;
    font-size: 1.05rem;
    font-weight: 300;
}

.portfolio-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding-bottom: 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #8ed8a2;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.portfolio-project-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.portfolio-project-link:hover,
.portfolio-project-link:focus-visible {
    color: #b9f5c7;
    border-bottom-color: #b9f5c7;
}

.portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.portfolio-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(77, 126, 232, 0.12);
    border: 1px solid rgba(77, 126, 232, 0.24);
    color: rgba(213, 226, 255, 0.92);
    font-size: 13px;
    font-weight: 400;
}

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

.portfolio-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #e8e8e8;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.portfolio-nav svg {
    width: 20px;
    height: 20px;
    display: block;
}

.portfolio-nav-next svg {
    transform: rotate(180deg);
}

.portfolio-nav:hover,
.portfolio-nav:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.portfolio-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.about-section {
    padding: 120px 0;
    background: #060606;
    color: #e8e8e8;
}

.project-page {
    padding: 160px 0 100px;
    min-height: 100vh;
    background: #050507;
    color: #e8e8e8;
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
}

.project-type {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.project-type-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.project-copy h1,
.project-not-found h1 {
    margin: 0 0 18px;
    max-width: 14ch;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.05em;
}

.project-summary,
.project-not-found p {
    margin: 0;
    max-width: 760px;
    color: #bbbbbb;
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 300;
}

.project-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.project-media,
.project-media-placeholder {
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 22px;
}

.project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-media-placeholder {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
        linear-gradient(150deg, rgba(14, 16, 23, 0.94) 0%, rgba(33, 46, 78, 0.7) 100%);
}

.project-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
    align-items: start;
}

.project-content-panel,
.project-side-card {
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.project-content-panel h2,
.project-side-card h3 {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.project-description p,
.project-side-card p {
    margin: 0 0 16px;
    color: #bbbbbb;
    line-height: 1.85;
    font-weight: 300;
}

.project-description p:last-child,
.project-side-card p:last-child {
    margin-bottom: 0;
}

.project-sidebar {
    display: grid;
    gap: 16px;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 500;
}

.project-not-found {
    display: grid;
    gap: 18px;
    justify-items: start;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: center;
}

.section-label {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    color: rgba(255, 255, 255, 0.7);
}

.about-copy h2 {
    margin: 0 0 24px;
    max-width: 620px;
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.about-highlight {
    color: inherit;
}

.about-highlight-blue {
    color: #8faee8;
}

.about-highlight-green {
    color: #9bc9a6;
}

.about-highlight-orange {
    color: #d8b07a;
}

.about-text {
    margin: 0 0 18px;
    max-width: 620px;
    color: #bbbbbb;
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-media {
    display: grid;
    place-items: center;
}

.about-media-frame {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: min(100%, 500px);
    min-height: 620px;
}

.about-media-frame::before {
    content: '';
    position: absolute;
    inset: 42px 20px 18px;
    border-radius: 36px;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.about-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: grayscale(100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

.about-panel {
    display: grid;
    gap: 16px;
}

.about-item {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.about-item-title {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    color: #f2f2f2;
}

.about-item p {
    margin: 0;
    color: #b8b8b8;
    line-height: 1.7;
    font-size: 1rem;
    font-weight: 300;
}

.contact-section {
    padding: 120px 0 100px;
    background: #060606;
    color: #e8e8e8;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 640px);
    gap: 60px;
    align-items: start;
}

.contact-copy h2 {
    margin: 0;
    max-width: 12ch;
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.contact-intro {
    margin: 18px 0 0;
    max-width: 520px;
    color: #bbbbbb;
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 32px;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: fit-content;
    padding: 0 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-method:hover,
.contact-method:focus-visible {
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.contact-method-text {
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.contact-method svg {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.48);
    transition: color 0.2s ease;
}

.contact-method:hover svg,
.contact-method:focus-visible svg {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-card {
    width: 100%;
    justify-self: stretch;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-form-message {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-form-message-success {
    border: 1px solid rgba(86, 200, 120, 0.2);
    background: rgba(37, 91, 51, 0.28);
    color: #dbffe3;
}

.contact-form-message-error {
    border: 1px solid rgba(217, 90, 90, 0.2);
    background: rgba(107, 39, 39, 0.28);
    color: #ffe3e3;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field span,
.contact-field legend {
    color: #f0f0f0;
    font-size: 14px;
    font-weight: 500;
}

.contact-choice-group {
    padding: 0;
    margin: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-choice-group legend {
    width: 100%;
    margin-bottom: 8px;
}

.contact-choice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 0;
    color: #d9d9de;
    cursor: pointer;
    position: relative;
}

.contact-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-choice-box {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.contact-choice-box::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid #0b0b0d;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: translate(-50%, -58%) rotate(45deg);
}

.contact-choice-text {
    line-height: 1.5;
}

.contact-choice:has(input:checked) {
    color: #eef9f1;
}

.contact-choice:has(input:checked) .contact-choice-box {
    border-color: #8ed8a2;
    background: #8ed8a2;
}

.contact-choice:has(input:checked) .contact-choice-box::after {
    opacity: 1;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #f1f1f1;
    font: inherit;
}

.contact-field input {
    min-height: 54px;
    padding: 0 16px;
}

.contact-field textarea {
    min-height: 170px;
    padding: 16px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #8d8d94;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.contact-select {
    position: relative;
}

.contact-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #8d8d94;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.contact-select.is-open .contact-select-trigger,
.contact-select-trigger:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.contact-select.has-value .contact-select-trigger {
    color: #f1f1f1;
}

.contact-select-arrow {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 1.5px solid rgba(255, 255, 255, 0.72);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.contact-select.is-open .contact-select-arrow {
    transform: scaleY(-1) rotate(45deg) translateY(-2px);
}

.contact-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: #17171b;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.28);
}

.contact-select-menu[hidden] {
    display: none;
}

.contact-select-option {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #d7d7dc;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.contact-select-option:hover,
.contact-select-option:focus-visible,
.contact-select-option.is-selected {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.contact-form-action {
    margin-top: 4px;
    width: 100%;
}

.contact-form-action .button {
    width: 100%;
    gap: 10px;
    justify-content: center;
}

.contact-form-action .button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.contact-note {
    margin: 0;
    color: #a8a8ae;
    line-height: 1.7;
    font-size: 14px;
}

.contact-note a {
    color: #d8d8dc;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}
.site-footer {
    padding: 28px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #050505;
    color: #d8d8d8;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: start;
    padding-bottom: 28px;
}

.footer-brand {
    max-width: 420px;
}

.footer-logo {
    display: block;
    height: 42px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    margin: 0;
    color: #a9a9af;
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, auto));
    gap: 36px;
}

.footer-column {
    display: grid;
    gap: 12px;
}

.footer-title {
    margin-bottom: 4px;
    color: #f1f1f1;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.footer-column a {
    color: #b8b8bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    margin: 0;
    color: #8f8f95;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }

    .portfolio-header,
    .project-hero,
    .project-content-grid,
    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .about-media {
        place-items: center;
    }

    .about-media-frame {
        min-height: 560px;
    }

    .about-media-frame::before {
        inset: 36px 18px 14px;
    }

    .contact-methods,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header {
        padding: 16px 0;
    }

    .brand-logo {
        height: 40px;
        max-width: 170px;
    }

    .header-cta {
        min-height: 46px;
        padding: 0 18px;
    }

    .hero-section {
        padding: 140px 0;
    }

    .hero-content h1 {
        margin-top: 18px;
        font-size: 3rem;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.72;
    }

    .portfolio-section,
    .about-section,
    .contact-section {
        padding: 80px 0;
    }

    .portfolio-heading h2,
    .project-copy h1,
    .project-not-found h1,
    .about-copy h2,
    .contact-copy h2 {
        font-size: 2.25rem;
    }

    .portfolio-intro,
    .project-summary,
    .project-not-found p,
    .about-text,
    .contact-intro {
        font-size: 1rem;
        line-height: 1.75;
    }

    .portfolio-card {
        padding: 20px;
        gap: 20px;
    }

    .portfolio-details {
        padding-right: 0;
    }

    .portfolio-details h3 {
        font-size: 1.6rem;
    }

    .portfolio-details p {
        font-size: 1rem;
    }

    .portfolio-controls {
        justify-content: space-between;
    }

    .portfolio-nav {
        width: 44px;
        height: 44px;
    }

    .project-page {
        padding: 130px 0 80px;
    }

    .project-content-panel,
    .project-side-card {
        padding: 20px;
    }

    .contact-form-card,
    .about-item {
        padding: 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-logo {
        height: 36px;
    }
}
