/* ============================================
   ABDULLAH ALI — ATELIER PORTFOLIO
   Warm editorial system, not a SaaS kit.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --paper: #F1EBE1;
    --paper-raised: #F8F4ED;
    --paper-sunken: #E6DFD3;
    --ink: #1A1714;
    --ink-soft: #3D3830;
    --muted: #736B61;
    --line: #D2C8BA;
    --line-strong: #B7AC9B;
    --accent: #C44512;
    --accent-deep: #9A320C;
    --accent-soft: #EFD4C3;
    --charcoal: #171512;
    --charcoal-2: #221E1A;
    --on-dark: #EDE6DA;
    --on-dark-muted: #A89F91;
    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
    --max: 1180px;
    --header-h: 76px;
    --radius: 3px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --text-muted: var(--muted);
    --light: var(--ink);
    --dark: var(--paper);
    --dark-card: var(--paper-raised);
    --dark-secondary: var(--paper-sunken);
    --glass-border: var(--line);
    --primary: var(--accent);
    --primary-light: var(--accent);
    --gradient: var(--accent);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

section[id],
.page-intro {
    scroll-margin-top: calc(var(--header-h) + 8px);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; }

::selection {
    background: var(--accent);
    color: var(--paper-raised);
}

/* Reveal */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-left { transform: translateX(-22px); }
.reveal-right { transform: translateX(22px); }
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: none;
}
.delay-100 { transition-delay: 0.08s; }
.delay-200 { transition-delay: 0.16s; }
.delay-300 { transition-delay: 0.24s; }
.delay-400 { transition-delay: 0.32s; }
.delay-500 { transition-delay: 0.4s; }

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    padding-right: 0.16em;
}

.text-gradient { color: var(--accent); }
.text-muted { color: var(--muted); }

/* ============================================
   HEADER
   ============================================ */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

header.is-scrolled {
    background: var(--paper);
    border-bottom-color: var(--line);
}

.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.05rem 1.75rem;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.site-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.logo:hover .site-logo-img {
    transform: scale(1.06);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-link {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--accent);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
    background: var(--ink);
    color: var(--paper);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: 0;
}
.menu-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: var(--ease);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.35rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    padding: calc(var(--header-h) + 3.5rem) 0 4rem;
    position: relative;
}

.hero-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.75rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: end;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.hero-kicker .dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.7rem, 6.4vw, 5.15rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 1.6rem;
}

.hero-desc {
    font-size: 1.08rem;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 38rem;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-visual { position: relative; }

.hero-collage {
    position: relative;
    min-height: 540px;
}

.hero-collage-shot {
    position: absolute;
    top: 0; right: 0;
    width: 74%;
    aspect-ratio: 4/5;
    object-fit: cover;
    filter: grayscale(0.55) contrast(1.05);
    border: 1px solid var(--line);
}

.hero-collage-portrait {
    position: absolute;
    left: 0; bottom: 8px;
    width: 54%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--ink);
    z-index: 2;
    background: var(--paper-raised);
    box-shadow: 14px 14px 0 var(--accent);
}

/* ============================================
   LAYOUT / SECTIONS
   ============================================ */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--paper-sunken); }
.section-dark {
    background: var(--charcoal);
    color: var(--on-dark);
}
.section-dark .section-label,
.section-dark .section-desc,
.section-dark .step-desc,
.section-dark p { color: var(--on-dark-muted); }
.section-dark .section-title,
.section-dark .step-title,
.section-dark h3 { color: var(--on-dark); }
.section-dark .serif-italic { color: var(--accent-soft); }

.section-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.75rem;
}

.section-header {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 3.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
.section-dark .section-header { border-bottom-color: rgba(237, 230, 218, 0.12); }

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--ink);
}

.section-desc {
    grid-column: 2;
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 36rem;
    line-height: 1.7;
    margin-top: 0.7rem;
}

.section-header .section-title { grid-column: 2; }
.section-header .section-label { grid-column: 1; grid-row: 1 / 3; align-self: start; padding-top: 0.55rem; }

.page-intro {
    padding: calc(var(--header-h) + 4.5rem) 0 2.5rem;
}
.page-intro .section-header {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ============================================
   PROCESS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.step-card {
    display: grid;
    grid-template-columns: 120px 1fr 1.4fr;
    gap: 1.5rem;
    padding: 2.1rem 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    align-items: start;
}
.section-dark .step-card { border-bottom-color: rgba(237, 230, 218, 0.12); }
.step-card:hover { transform: none; box-shadow: none; border-color: inherit; }
.step-card::before { display: none; }

.step-number {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 500;
    font-style: italic;
    color: var(--accent);
    line-height: 1;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.step-desc {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
    align-items: center;
}

.about-img-wrap {
    position: relative;
}
.about-img-wrap::before {
    content: '';
    position: absolute;
    inset: 1.1rem -1.1rem -1.1rem 1.1rem;
    background: var(--accent);
    z-index: 0;
}
.about-img-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--ink);
    background: var(--paper-raised);
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.3rem;
}

.about-text p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.about-bullets {
    list-style: none;
    margin: 1.6rem 0 2rem;
    display: grid;
    gap: 0.55rem;
}
.about-bullets li {
    display: grid;
    grid-template-columns: 1.4rem 1fr;
    gap: 0.7rem;
    color: var(--ink);
    font-size: 0.95rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
}
.about-bullets li .bullet-check {
    color: var(--accent);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.service-card {
    background: transparent;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 0 2rem 0 0;
    margin-right: 2rem;
}
.service-card:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
}
.service-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
}
.service-card::after { display: none; }

.service-index {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-bullets {
    list-style: none;
    margin-top: 1.4rem;
}
.service-bullets li {
    color: var(--ink-soft);
    font-size: 0.9rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--line);
}
.service-bullets li::before { content: none; }

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem 1.75rem;
    counter-reset: work;
}

.projects-grid[data-limit] {
    grid-template-columns: 1fr 1fr;
}

.projects-grid[data-limit] .project-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    counter-increment: work;
    transition: none;
}
.project-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.project-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--paper-sunken);
    border: 1px solid var(--line);
}
.projects-grid[data-limit] .project-card:first-child .project-img-container {
    aspect-ratio: 16/11;
}

.project-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease), filter 0.4s;
    filter: grayscale(0.15);
}
.project-card:hover .project-img {
    transform: scale(1.03);
    filter: grayscale(0);
}

.project-tech-badge {
    position: absolute;
    top: 0.85rem; left: 0.85rem;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.55rem;
}

.project-content {
    padding: 1.15rem 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.projects-grid[data-limit] .project-card:first-child .project-content {
    padding: 0.4rem 0 0;
    justify-content: center;
}

.project-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    letter-spacing: -0.02em;
}
.project-title::before {
    content: counter(work, decimal-leading-zero) '  ';
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-right: 0.35rem;
    vertical-align: middle;
}

.project-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink);
    padding: 0.1rem 0;
    background: none;
    border-radius: 0;
}
.project-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.filter-group {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 2rem 0 0;
    border-top: 1px solid var(--line);
}
.filter-btn {
    padding: 0.85rem 1.1rem 0.85rem 0;
    margin-right: 1.4rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
}
.filter-btn.active,
.filter-btn:hover {
    background: transparent;
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.section-more {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.empty-note,
.empty-error {
    grid-column: 1 / -1;
    padding: 3.5rem 1rem;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
}
.empty-error { color: #9A320C; }

.skeleton-card { pointer-events: none; }
.skeleton-block {
    background: var(--paper-sunken);
    animation: pulse-soft 1.4s ease-in-out infinite;
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* ============================================
   UPCOMING
   ============================================ */
.upcoming-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.upcoming-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    align-items: center;
}
.upcoming-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
}
.upcoming-card::after { display: none; }

.upcoming-img-container {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-sunken);
}
.upcoming-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.2);
    transition: filter 0.4s, transform 0.6s var(--ease);
}
.upcoming-card:hover .upcoming-img {
    filter: grayscale(0);
    transform: scale(1.04);
}

.upcoming-body { min-width: 0; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0;
    border: 0;
    background: none;
    margin-bottom: 0.55rem;
    border-radius: 0;
}
.status-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.status-planning { color: #9A6B12; }
.status-in_progress { color: var(--accent); }
.status-testing { color: #2C6B45; }
.status-launching_soon { color: #8A3A22; }

.upcoming-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.upcoming-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.progress-container { margin-bottom: 0.7rem; max-width: 320px; }
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.progress-bar-bg {
    height: 2px;
    background: var(--line);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    transition: width 1s var(--ease);
}
.release-date {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}
.faq-item.open {
    border-color: var(--line);
    box-shadow: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.35rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    user-select: none;
    gap: 1rem;
}
.faq-question .arrow {
    flex-shrink: 0;
    width: auto; height: auto;
    background: none;
    border: 0;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.3s;
}
.faq-item.open .faq-question .arrow {
    transform: rotate(45deg);
    background: none;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.8;
    padding: 0;
    max-width: 42rem;
}
.faq-item.open .faq-answer {
    max-height: 280px;
    padding-bottom: 1.4rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid,
.contact-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}
.contact-info p { color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }

.contact-item,
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--line);
}

.contact-icon,
.info-icon {
    width: auto;
    height: auto;
    background: none;
    border: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: 0.2rem;
    min-width: 3.5rem;
}

.info-details h4,
.contact-item-text strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}
.info-details p,
.contact-item-text {
    font-size: 0.92rem;
    color: var(--muted);
}

.contact-form-wrapper {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.15rem; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--ink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.form-control {
    width: 100%;
    background: var(--paper);
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    color: var(--ink);
    font-size: 0.95rem;
    padding: 0.75rem 0;
    outline: none;
    transition: border-color 0.2s;
}
.form-control:focus {
    border-bottom-color: var(--accent);
    box-shadow: none;
}
.form-control::placeholder { color: #A3988A; }
textarea.form-control { resize: vertical; min-height: 130px; }

.alert {
    padding: 0.9rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    margin-bottom: 1rem;
}
.alert-success { background: #E5EEDC; border: 1px solid #B7C9A4; color: #2C4A22; }
.alert-danger  { background: #F3DDD4; border: 1px solid #D9A894; color: #8A3218; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--charcoal);
    color: var(--on-dark);
    border-top: 0;
    padding: 4.5rem 0 2rem;
    text-align: left;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.75rem;
}

.footer-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-email {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--on-dark);
    display: inline-block;
    border-bottom: 1px solid rgba(237, 230, 218, 0.25);
    padding-bottom: 0.2rem;
}
.footer-email:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }

.footer-tagline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin: 0.4rem 0 1.2rem;
    line-height: 1.08;
    color: var(--on-dark);
}

.footer-logo { margin-bottom: 1.5rem; }
.footer-logo .logo { color: var(--on-dark); }

.footer-bottom,
.footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(237, 230, 218, 0.12);
}

.footer-socials {
    display: flex;
    gap: 1.4rem;
    justify-content: flex-start;
    margin: 0;
}
.social-icon {
    color: var(--on-dark-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.social-icon:hover { color: var(--on-dark); }

.footer-divider { display: none; }
.footer-text {
    color: var(--on-dark-muted);
    font-size: 0.82rem;
}

/* ============================================
   DETAIL DRAWER
   ============================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 21, 18, 0.55);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    overflow: hidden;
}
.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel {
    position: fixed;
    inset: 0;
    background: var(--paper);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.35s ease;
    z-index: 10000;
}
.drawer-overlay.active .drawer-panel {
    transform: none;
    opacity: 1;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}
.drawer-header-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.drawer-close-btn {
    background: none;
    border: 0;
    color: var(--ink);
    font-size: 1.8rem;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}
.drawer-close-btn:hover { color: var(--accent); transform: none; }

.drawer-content {
    flex: 1;
    overflow-y: auto;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 2.5rem;
}
.drawer-content::-webkit-scrollbar { width: 6px; }
.drawer-content::-webkit-scrollbar-thumb { background: var(--line-strong); }

.drawer-main-image-container {
    width: 100%;
    min-height: 430px;
    height: min(64vh, 680px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-sunken);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.drawer-main-image {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.drawer-gallery-horizontal {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
}
.drawer-gallery-item {
    flex-shrink: 0;
    width: 76px; height: 76px;
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: pointer;
    background: var(--paper-sunken);
}
.drawer-gallery-item.active,
.drawer-gallery-item:hover { border-color: var(--accent); }
.drawer-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.drawer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.drawer-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 600;
    margin: 1.4rem 0 0.8rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.drawer-tech {
    display: inline-flex;
    color: var(--accent);
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.drawer-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--muted);
    max-width: 42rem;
    margin-bottom: 2rem;
    white-space: pre-line;
}
.drawer-progress-section {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.drawer-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.drawer-btn,
.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}
.store-badge {
    gap: 0.8rem;
    width: 230px;
    min-height: 70px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: #111;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.7);
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge-icon { width: 42px; height: 42px; flex: 0 0 auto; }
.store-badge-play .store-badge-icon { color: #4ade80; }
.store-badge-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.store-badge-copy span {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.store-badge-copy strong {
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}
.drawer-btn {
    gap: 0.75rem;
    padding: 1.05rem 1.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    min-height: 70px;
}
.drawer-btn:hover { background: var(--ink); color: var(--paper); }

/* ===================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Mobile, Tablet, and Desktop Optimization
   =================================================== */

/* Tablet Landscape & Medium Desktops (<= 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .hero-collage {
        min-height: 440px;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-grid,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid[data-limit] .project-card:first-child {
        grid-column: 1;
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .service-card {
        border-right: 0;
        margin-right: 0;
        padding: 1.6rem 0;
        border-bottom: 1px solid var(--line);
    }
}

/* Tablet Portrait & Large Phones (<= 860px) */
@media (max-width: 860px) {
    .nav-container {
        padding: 0.95rem 1.4rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1002;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 1.5rem 1.75rem 2rem;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 36px rgba(23, 21, 19, 0.12);
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.05rem;
        width: 100%;
        padding: 0.35rem 0;
    }

    .section {
        padding: 4.5rem 0;
    }

    /* Fix section-header multi-column squishing on tablets/phones */
    .section-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1.25rem;
    }

    .section-header .section-label {
        grid-column: 1;
        grid-row: auto;
        padding-top: 0;
        margin-bottom: 0.25rem;
    }

    .section-header .section-title {
        grid-column: 1;
        font-size: clamp(2rem, 5.5vw, 3rem);
    }

    .section-header .section-desc {
        grid-column: 1;
        margin-top: 0.35rem;
        max-width: 100%;
    }

    /* Fix steps grid on process section */
    .step-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1.6rem 0;
    }

    .step-number {
        font-size: 1.35rem;
    }

    /* Fix projects grid */
    .projects-grid,
    .projects-grid[data-limit] {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .projects-grid[data-limit] .project-card:first-child {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Hero section */
    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 1.5rem) 0 3.25rem;
    }

    .hero-title {
        font-size: clamp(2.3rem, 6.8vw, 4rem);
        line-height: 1.02;
    }

    .hero-collage {
        min-height: 380px;
        max-width: 440px;
        margin: 0 auto;
    }

    /* About section image accent box overflow fix */
    .about-img-wrap::before {
        inset: 0.75rem -0.5rem -0.75rem 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

/* Mobile Screens (<= 580px) */
@media (max-width: 580px) {
    .nav-container,
    .section-container,
    .hero-container {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.08;
    }

    .hero-desc {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .hero-collage {
        min-height: 300px;
        max-width: 100%;
    }

    .hero-collage-shot {
        width: 80%;
    }

    .hero-collage-portrait {
        width: 60%;
        box-shadow: 8px 8px 0 var(--accent);
    }

    .hero-meta {
        gap: 0.5rem 1rem;
        font-size: 0.76rem;
    }

    .btn-group {
        width: 100%;
        flex-direction: column;
        gap: 0.65rem;
    }

    .btn-group .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 3.25rem 0;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .contact-form-wrapper {
        padding: 1.35rem 1rem;
    }

    .footer-email {
        font-size: 1.35rem;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .footer-tagline {
        font-size: 1.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .about-img-wrap::before {
        inset: 0.5rem 0 -0.5rem 0;
    }

    .filter-group {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        border-top: 0;
    }

    .filter-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }

    .drawer-footer {
        flex-direction: column;
    }

    .store-badge,
    .drawer-btn {
        width: 100%;
    }
}

/* Extra Small Screens (<= 380px) */
@media (max-width: 380px) {
    .logo {
        font-size: 1rem;
    }

    .site-logo-img {
        width: 26px;
        height: 26px;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .section-title {
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}