/* ================================
   PROJECT DETAIL PAGE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0b;
    --bg-card: #111113;
    --text-primary: #f0ece5;
    --text-secondary: #b0a99e;
    --text-muted: #5c5650;
    --accent: #c9a87c;
    --accent-light: #dcc4a4;
    --border: rgba(240, 236, 229, 0.06);
    --font: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 300;
    font-size: 16px;
}

/* ================================
   HERO SECTION - Full bleed background
   ================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 60px 100px;
    width: 100%;
}

.hero-back {
    position: fixed;
    top: 28px;
    left: 40px;
    z-index: 100;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 11, 0.6);
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.hero-back:hover {
    color: var(--text-primary);
    background: rgba(10, 10, 11, 0.85);
    border-color: var(--accent);
}

.hero-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-meta span {
    font-size: 11px;
    font-weight: 400;
    color: rgba(176, 169, 158, 0.8);
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-desc {
    font-size: 15px;
    color: rgba(176, 169, 158, 0.9);
    line-height: 1.9;
    max-width: 520px;
    font-weight: 300;
}

/* Hero compact (non-image pages) */
.hero-compact {
    height: 50vh;
    min-height: 360px;
}

.hero-compact .hero-content {
    padding-bottom: 80px;
}

/* ================================
   CONTENT SECTIONS
   ================================ */
.content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 60px;
}

.section {
    padding: 80px 0;
    border-bottom: none;
}

.section:last-child {
    border-bottom: none;
}

.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    display: block;
}

.section h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}

.section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 2;
    font-weight: 300;
    max-width: 100%;
    margin-bottom: 20px;
}

.section p:last-child {
    margin-bottom: 0;
}

.section p strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Question block */
.question-block {
    padding-left: 0;
    margin: 20px 0;
}

.question-block p {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: -0.2px;
}

/* Section subtitle (project name under question) */
.section-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Approach list */
.approach-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.approach-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 2;
}

.approach-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 12px;
}

/* Project blocks (for multi-project pages) */
.project-block {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 28px 32px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease, padding-left 0.3s ease;
}

.project-block:hover {
    border-color: rgba(201, 168, 124, 0.2);
    padding-left: 40px;
}

.project-block h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-block p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 0;
    font-weight: 300;
}

/* Deliverables grid */
.deliverables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

.deliverable-item {
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 18px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: border-color 0.3s ease;
}

.deliverable-item:hover {
    border-color: rgba(201, 168, 124, 0.2);
}

/* Highlights / results grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.highlight-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
}

.highlight-card .number {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.highlight-card .label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Footer */
.page-footer {
    padding: 80px 60px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.page-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.page-footer a:hover {
    color: var(--accent);
}

/* ================================
   ANIMATIONS
   ================================ */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   IMAGES & MEDIA
   ================================ */
.project-img {
    width: 100%;
    border-radius: 4px;
    display: block;
    margin: 56px 0;
}

.img-break {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 80px;
    margin-bottom: 80px;
    overflow: hidden;
}

.img-break img {
    width: 100%;
    display: block;
}

.img-break::before,
.img-break::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.img-break::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg), transparent);
}

.img-break::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg), transparent);
}

.section-video {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: 80px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

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

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .hero-content { padding: 0 40px 60px; }
    .content { padding: 0 40px; }
    .hero h1 { font-size: 32px; }
}

@media (max-width: 768px) {
    .hero { min-height: 400px; height: 60vh; }
    .hero-compact { height: 50vh; min-height: 320px; }
    .hero h1 { font-size: 26px; }
    .hero-desc { font-size: 14px; line-height: 1.9; }
    .hero-content { padding: 0 24px 48px; }
    .hero-back { top: 16px; left: 16px; font-size: 11px; padding: 8px 14px; }
    .hero-meta { gap: 12px; }
    .hero-meta span { font-size: 11px; }
    .content { padding: 0 24px; }
    .section { padding: 48px 0; }
    .section h2 { font-size: 20px; }
    .section p { font-size: 14px; line-height: 1.9; }
    .question-block { padding-left: 20px; }
    .question-block p { font-size: 20px; }
    .deliverables { grid-template-columns: 1fr; }
    .approach-list li { font-size: 14px; }
    .page-footer { padding: 40px 24px; }
    .img-pair { grid-template-columns: 1fr; gap: 8px; }
    .project-img { margin: 40px 0; }
    .img-pair { margin: 40px 0; }
    .project-img.full-bleed { margin-top: 40px; margin-bottom: 40px; }
}

@media (max-width: 390px) {
    .hero h1 { font-size: 22px; }
    .question-block p { font-size: 18px; }
    .section h2 { font-size: 18px; }
}
