/* ============================================================
   F_ARCHITECT INDONESIA — Premium Architecture Studio
   Dark & Warm Design System
   ============================================================ */

/* --- Design Tokens --- */
:root {
    --ink: #1a1a17;
    --ink-deep: #111110;
    --ink-soft: #2a2a27;
    --muted: #8a857d;
    --muted-light: #b0a99f;
    --paper: #f5f0eb;
    --paper-warm: #ece5dc;
    --surface: #faf7f3;
    --surface-dark: #1e1e1b;
    --line: rgba(22, 20, 18, .1);
    --line-light: rgba(255, 255, 255, .12);
    --gold: #c4a265;
    --gold-soft: #d4b87a;
    --sage: #657267;
    --shadow: 0 28px 70px rgba(28, 23, 17, .14);
    --shadow-sm: 0 4px 16px rgba(28, 23, 17, .08);
    --shadow-lg: 0 40px 100px rgba(0, 0, 0, .25);
    --radius: 4px;
    --radius-lg: 8px;
    --radius-pill: 999px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --duration: .45s;
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --container: 1240px;
    --header-h: 78px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    letter-spacing: -.005em;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Layout --- */
.site-shell { overflow: hidden; }
.container { width: min(var(--container), calc(100vw - 48px)); margin-inline: auto; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    background: rgba(26, 26, 23, .88);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--line-light);
    transition: background var(--duration) var(--ease), transform .35s var(--ease);
}
.site-header.scrolled { background: rgba(17, 17, 16, .95); }
.site-header.hidden-nav { transform: translateY(-100%); }

.nav {
    min-height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand {
    font-family: var(--font-serif);
    font-size: 22px; font-weight: 600; letter-spacing: .04em;
    color: #fff; white-space: nowrap;
    display: flex; align-items: center; gap: 10px;
}
.brand-logo {
    height: 44px; width: auto;
    display: block; object-fit: contain;
    border-radius: 4px;
    transition: transform .4s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-name {
    font-family: var(--font-sans);
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em;
    color: rgba(255,255,255,.85);
    position: relative; padding-bottom: 3px;
    transition: color var(--duration) var(--ease);
    white-space: nowrap;
}
.brand-name::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
}
.brand:hover .brand-name::after { transform: scaleX(1); transform-origin: left; }
.brand-name-accent { color: var(--gold); margin-left: 2px; }
.brand:hover .brand-name { color: #fff; }
.footer .brand-logo { height: 40px; }
.brand-prefix { color: var(--gold); }
.brand-sub {
    display: block; font-family: var(--font-sans);
    font-size: 9px; font-weight: 500; letter-spacing: .22em;
    text-transform: uppercase; color: var(--muted-light);
    margin-top: 2px;
}
.nav-center {
    display: flex; align-items: center; gap: 32px;
    font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
    color: rgba(255,255,255,.7);
}
.nav-center a {
    position: relative; padding: 6px 0;
    transition: color var(--duration) var(--ease);
}
.nav-center a:hover, .nav-center a.active { color: #fff; }
.nav-center a::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px; background: var(--gold);
    transform: scaleX(0); transform-origin: right;
    transition: transform .35s var(--ease);
}
.nav-center a:hover::after, .nav-center a.active::after {
    transform: scaleX(1); transform-origin: left;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border: 1px solid rgba(255,255,255,.35);
    border-radius: var(--radius-pill); color: #fff;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    transition: all .3s var(--ease);
}
.nav-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav-cta .arrow { font-size: 14px; transition: transform .3s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px) translateY(-2px); }

/* Hamburger */
.hamburger {
    display: none; width: 42px; height: 42px;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer;
}
.hamburger span {
    display: block; width: 22px; height: 1.5px; background: #fff;
    transition: all .3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(5.3px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-5.3px); }

/* Mobile Menu Overlay */
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(17, 17, 16, .97);
    backdrop-filter: blur(24px);
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    opacity: 0; pointer-events: none;
    transition: opacity .4s var(--ease);
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a {
    font-family: var(--font-serif); font-size: 36px; color: #fff;
    opacity: .7; transition: opacity .3s; letter-spacing: .02em;
}
.mobile-menu a:hover { opacity: 1; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: flex-end;
    padding: 0 0 64px; overflow: hidden;
    background: var(--ink-deep);
}

/* Hero Slider */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 1.2s var(--ease-out);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(.55) saturate(.9);
    transform: scale(1.05);
    transition: transform 8s linear;
}
.hero-slide.active img { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17,17,16,.3) 0%,
        rgba(17,17,16,.15) 40%,
        rgba(17,17,16,.55) 75%,
        rgba(17,17,16,.85) 100%
    );
}

.hero-content {
    position: relative; z-index: 2;
    width: min(var(--container), calc(100vw - 48px));
    margin-inline: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    align-items: end;
}
.hero-text { max-width: 700px; }
.hero-tag {
    display: inline-block;
    font-size: 11px; font-weight: 500; text-transform: uppercase;
    letter-spacing: .18em; color: var(--gold-soft);
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(48px, 7.5vw, 96px);
    line-height: .95; color: #fff;
    margin-bottom: 22px;
}
.hero .hero-desc {
    font-size: 15px; color: rgba(255,255,255,.65);
    max-width: 480px; line-height: 1.65;
    margin-bottom: 36px;
}
.hero-actions {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}

/* Buttons */
.button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    transition: all .35s var(--ease);
    min-height: 48px;
}
.button-outline {
    border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent;
}
.button-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.button-dark {
    border: 1px solid var(--ink); color: #fff; background: var(--ink);
}
.button-dark:hover { background: var(--ink-soft); }
.button-primary {
    border: 1px solid var(--ink); color: var(--paper); background: var(--ink);
}
.button-primary:hover { background: #333; }
.button .arrow { font-size: 14px; transition: transform .3s var(--ease); }
.button:hover .arrow { transform: translateX(3px) translateY(-2px); }

.button-play {
    display: inline-flex; align-items: center; gap: 12px;
    color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .05em;
}
.play-circle {
    width: 48px; height: 48px;
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 50%; display: grid; place-items: center;
    transition: all .35s var(--ease);
}
.button-play:hover .play-circle { background: #fff; border-color: #fff; }
.button-play:hover .play-circle svg { color: var(--ink); }
.play-circle svg { width: 16px; height: 16px; color: #fff; }

/* Hero bottom bar */
.hero-bottom {
    position: absolute; bottom: 32px; left: 0; right: 0; z-index: 3;
    width: min(var(--container), calc(100vw - 48px)); margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between;
}
.slide-pagination {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 500; color: #fff;
}
.slide-pagination .current { font-weight: 600; }
.slide-pagination .divider { font-weight: 300; color: rgba(255,255,255,.3); }
.slide-progress {
    width: 100px; height: 2px; background: rgba(255,255,255,.2);
    border-radius: 1px; overflow: hidden; margin: 0 8px;
}
.slide-progress-bar {
    height: 100%; background: #fff; border-radius: 1px;
    transition: width .4s var(--ease);
}
.scroll-indicator {
    display: flex; align-items: center; gap: 12px;
    font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
    color: rgba(255,255,255,.6);
}
.scroll-circle {
    width: 40px; height: 40px;
    border: 1.5px solid rgba(255,255,255,.35); border-radius: 50%;
    display: grid; place-items: center;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
.scroll-circle svg { width: 14px; height: 14px; color: rgba(255,255,255,.7); }

/* Dots nav (right side vertical) */
.hero-dots {
    position: absolute; right: 24px; top: 50%; z-index: 3;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 14px;
}
.hero-dot {
    width: 10px; height: 10px;
    border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%;
    cursor: pointer;
    transition: all .3s var(--ease);
}
.hero-dot.active { background: #fff; border-color: #fff; }

/* ============================================================
   SECTIONS (General)
   ============================================================ */
.section { padding: 110px 0; }
.section-light { background: var(--paper); }
.section-cream { background: var(--paper-warm); }
.section-dark { background: var(--ink-deep); color: #fff; }
.section-dark .eyebrow { color: var(--gold-soft); }
.section-dark .muted, .section-dark .meta { color: rgba(255,255,255,.5); }

.eyebrow {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .2em; color: var(--muted);
    margin-bottom: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif); font-weight: 500;
    line-height: 1; margin: 0;
}
h2 { font-size: clamp(38px, 5vw, 68px); line-height: .96; }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
.lead {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--muted); line-height: 1.6; max-width: 600px;
}
.meta { color: var(--muted); font-size: 13px; line-height: 1.6; }

.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 40px; margin-bottom: 56px;
}
.section-header-text { max-width: 640px; }
.section-header-text h2 { margin-bottom: 16px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 4px;
    transition: gap .3s var(--ease);
    white-space: nowrap;
}
.link-arrow:hover { gap: 14px; }
.section-dark .link-arrow { color: #fff; border-color: rgba(255,255,255,.4); }

/* ============================================================
   FEATURED PROJECTS
   ============================================================ */
.project-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project-card {
    position: relative; display: block;
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--ink-soft);
    transition: transform .5s var(--ease);
}
.project-card:hover { transform: translateY(-6px); }
.project-card-img {
    position: relative; overflow: hidden;
    aspect-ratio: 3 / 4;
}
.project-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease), filter .7s var(--ease);
}
.project-card:hover .project-card-img img {
    transform: scale(1.06); filter: brightness(.85);
}
.project-card-number {
    position: absolute; top: 16px; left: 16px;
    background: rgba(0,0,0,.55); color: #fff;
    padding: 5px 12px; border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 600;
    backdrop-filter: blur(8px);
}
.project-card-body {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; gap: 12px;
}
.project-card-body h3 {
    font-size: 18px; font-weight: 500; color: #fff;
    line-height: 1.25;
}
.project-card-body .meta { color: rgba(255,255,255,.5); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.project-card-arrow {
    width: 40px; height: 40px; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
    display: grid; place-items: center;
    transition: all .3s var(--ease);
}
.project-card-arrow svg { width: 14px; height: 14px; color: #fff; }
.project-card:hover .project-card-arrow { background: #fff; border-color: #fff; }
.project-card:hover .project-card-arrow svg { color: var(--ink); }

/* Stats row */
.stats-row {
    display: flex; align-items: center; gap: 48px;
    padding-top: 56px; margin-top: 56px;
    border-top: 1px solid var(--line);
}
.section-dark .stats-row { border-color: var(--line-light); }
.stat-item { text-align: left; }
.stat-number {
    font-family: var(--font-serif); font-size: 42px;
    font-weight: 500; line-height: 1; margin-bottom: 4px;
}
.stat-label {
    font-size: 12px; text-transform: uppercase;
    letter-spacing: .08em; color: var(--muted);
}
.section-dark .stat-label { color: rgba(255,255,255,.5); }

/* ============================================================
   SERVICES / EXPERTISE
   ============================================================ */
.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.service-card {
    position: relative; overflow: hidden;
    aspect-ratio: 3 / 4; cursor: pointer;
}
.service-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s var(--ease), filter .5s var(--ease);
    filter: brightness(.65);
}
.service-card:hover img { transform: scale(1.08); filter: brightness(.45); }
.service-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px;
}
.service-card-number {
    font-size: 12px; font-weight: 600; color: var(--gold-soft);
    margin-bottom: 8px;
}
.service-card-overlay h3 {
    font-size: 20px; font-weight: 600; color: #fff;
    text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: 4px;
    font-family: var(--font-sans);
}
.service-card-overlay .meta {
    color: rgba(255,255,255,.55); font-size: 13px;
    text-transform: uppercase; letter-spacing: .03em;
}
.service-card-arrow {
    position: absolute; bottom: 28px; right: 28px;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
    display: grid; place-items: center;
    transition: all .3s var(--ease);
}
.service-card-arrow svg { width: 13px; height: 13px; color: #fff; }
.service-card:hover .service-card-arrow { background: #fff; border-color: #fff; }
.service-card:hover .service-card-arrow svg { color: var(--ink); }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.philosophy-text h2 {
    font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05;
    margin-bottom: 28px;
}
.philosophy-text .lead { margin-bottom: 28px; }
.philosophy-text .founder-sig {
    margin-top: 32px;
}
.founder-sig .sig-line {
    font-family: var(--font-serif); font-size: 28px; font-style: italic;
    color: var(--ink); margin-bottom: 4px;
}
.founder-sig .meta { font-size: 13px; color: var(--muted); }

.philosophy-media {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.philosophy-media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.play-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: rgba(0,0,0,.25);
    transition: background .3s var(--ease);
}
.play-overlay:hover { background: rgba(0,0,0,.4); }
.play-overlay .play-circle {
    width: 64px; height: 64px;
}
.play-overlay-text {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .12em; color: #fff;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.process-steps { display: flex; flex-direction: column; gap: 0; }
.process-step {
    display: flex; gap: 20px; padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.section-dark .process-step { border-color: var(--line-light); }
.process-step:last-child { border-bottom: none; }
.process-step-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid var(--line); border-radius: 50%;
    display: grid; place-items: center;
    color: var(--gold);
}
.section-dark .process-step-icon { border-color: var(--line-light); }
.process-step-icon svg { width: 18px; height: 18px; }
.process-step h4 {
    font-family: var(--font-sans); font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 6px;
}
.process-step .meta { font-size: 14px; line-height: 1.5; }

.process-media {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.process-media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.process-3d-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; background: rgba(0,0,0,.55);
    backdrop-filter: blur(12px); border-radius: var(--radius-pill);
    color: #fff; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    border: 1px solid rgba(255,255,255,.2);
}
.process-toolbar {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(12px);
    padding: 14px 20px;
}
.toolbar-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 20px; color: rgba(255,255,255,.7);
    font-size: 12px; font-weight: 500; text-transform: uppercase;
    letter-spacing: .06em; cursor: pointer;
    transition: color .3s;
    border-right: 1px solid rgba(255,255,255,.12);
}
.toolbar-item:last-child { border-right: none; }
.toolbar-item:hover { color: #fff; }
.toolbar-item svg { width: 16px; height: 16px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    padding: 100px 0;
    background: var(--ink-deep); color: #fff;
    border-top: 1px solid var(--line-light);
}
.cta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center;
}
.cta-text h2 {
    font-size: clamp(36px, 5vw, 64px); line-height: 1;
    margin-bottom: 8px;
}
.cta-text .eyebrow { margin-bottom: 16px; }
.cta-right {
    display: flex; flex-direction: column; gap: 24px;
}
.cta-right .lead { color: rgba(255,255,255,.55); }
.cta-stats {
    display: flex; gap: 40px;
}
.cta-stats .stat-number { color: #fff; }
.cta-stats .stat-label { color: rgba(255,255,255,.45); }

/* ============================================================
   FEATURE BADGES BAR
   ============================================================ */
.badges-bar {
    padding: 40px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
}
.badges-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.badge-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 0;
}
.badge-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    display: grid; place-items: center;
    color: var(--gold);
}
.badge-icon svg { width: 22px; height: 22px; }
.badge-item h4 {
    font-family: var(--font-sans); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: 2px;
}
.badge-item .meta { font-size: 12px; line-height: 1.45; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 56px 0 28px;
    background: var(--ink-deep); color: rgba(255,255,255,.85);
    border-top: 1px solid var(--line-light);
}
.footer-grid {
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.footer .brand { font-size: 20px; }
.footer-links {
    display: flex; align-items: center; gap: 24px;
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,.45);
}
.footer-links a { transition: color .3s; }
.footer-links a:hover { color: #fff; }
.footer-copy {
    text-align: center; padding-top: 28px; margin-top: 28px;
    border-top: 1px solid var(--line-light);
    font-size: 12px; color: rgba(255,255,255,.3);
}

/* ============================================================
   SHARED / UTILITIES
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.portrait, .editorial-image {
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    object-fit: cover; width: 100%;
}
.portrait { aspect-ratio: 4 / 5; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
    border-top: 1px solid var(--line); padding-top: 28px;
}
.quote p {
    font-family: var(--font-serif); font-size: 20px; line-height: 1.45;
    margin-bottom: 16px;
}

/* Page hero (non-home) */
.page-hero { padding: 160px 0 72px; }
.detail-hero { min-height: 82vh; display: grid; align-items: end; }

/* ── Bento Gallery Hero ── */
.bento-hero {
    position: relative;
    min-height: 85vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--ink-deep);
}
.bento-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 6px;
}
.bento-tile {
    overflow: hidden;
    position: relative;
}
.bento-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.bento-tile:hover img { transform: scale(1.04); }
.bento-main {
    grid-row: 1 / span 2;
}
.bento-top-right {
    grid-row: 1;
}
.bento-small {
    grid-row: 2;
}
.bento-grid:has(.bento-small:nth-child(4)) {
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    grid-template-rows: 1fr 1fr;
}
.bento-grid:has(.bento-small:nth-child(4)) .bento-main {
    grid-row: 1 / span 2;
}
.bento-grid:has(.bento-small:nth-child(4)) .bento-top-right {
    grid-row: 1;
}

.bento-overlay {
    position: relative;
    z-index: 3;
    padding-bottom: 64px;
    pointer-events: none;
}
.bento-overlay .eyebrow,
.bento-overlay h1,
.bento-overlay .lead { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }

.bento-count {
    position: absolute; bottom: 80px; right: 32px;
    z-index: 4;
    background: rgba(0,0,0,.65); backdrop-filter: blur(10px);
    color: #fff; font-size: 13px;
    padding: 6px 14px; border-radius: var(--radius-pill);
    letter-spacing: .3px;
}

/* Scrollable extra images */
.bento-scroll {
    padding: 48px 0;
    background: var(--surface);
}
.bento-scroll-track {
    display: flex; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.bento-scroll-item {
    flex: 0 0 280px; scroll-snap-align: start;
    aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg);
}
.bento-scroll-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s var(--ease);
}
.bento-scroll-item:hover img { transform: scale(1.06); }

/* Hide old gallery section on show page if bento exists */
.bento-hero ~ .section .gallery { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 0.6fr 0.4fr;
    }
    .bento-grid:has(.bento-small:nth-child(4)) {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 0.6fr 0.4fr;
    }
    .bento-main { grid-row: 1 / span 2; }
    .bento-top-right { grid-row: 1; }
    .bento-small { grid-row: 2; }
    .bento-scroll-item { flex: 0 0 200px; }
    .bento-count { bottom: 100px; right: 16px; }
}

/* Contact form */
.contact-panel { border-top: 1px solid var(--line); padding-top: 26px; }
.contact-form { display: grid; gap: 16px; }
.field {
    width: 100%; border: 1px solid var(--line); background: var(--surface);
    min-height: 52px; padding: 14px 16px; border-radius: var(--radius);
    font: inherit; transition: border-color .3s;
}
.field:focus { outline: none; border-color: var(--gold); }
textarea.field { min-height: 160px; resize: vertical; }
.error { color: #9d2f25; font-size: 13px; }

/* Gallery / Stories */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.viewer-frame { position: relative; min-height: 560px; background: #151515; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.viewer-frame canvas { width: 100%; height: 100%; display: block; }
.viewer-toolbar { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 8px; }
.icon-button { border: 1px solid rgba(255,255,255,.35); color: white; background: rgba(0,0,0,.28); border-radius: 999px; width: 42px; height: 42px; cursor: pointer; }
.loader { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: rgba(0,0,0,.35); z-index: 1; }

/* Service list (other pages) */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-item { border-top: 1px solid var(--line); padding-top: 26px; }

/* Principles grid (philosophy page) */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { background: var(--surface); padding: 34px; min-height: 190px; }

/* ============================================================
   ADVANCED ANIMATIONS & MOTION
   ============================================================ */
/* 1. Lenis Smooth Scroll Base */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* 2. Custom Magnetic Cursor */
@media (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, .magnetic { cursor: none; }
    .custom-cursor, .custom-cursor-dot {
        position: fixed; top: 0; left: 0;
        pointer-events: none; z-index: 9999;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        mix-blend-mode: difference;
    }
    .custom-cursor {
        width: 32px; height: 32px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
    }
    .custom-cursor-dot {
        width: 6px; height: 6px;
        background: #fff;
        transition: opacity 0.3s;
    }
    .custom-cursor.cursor-grow {
        width: 64px; height: 64px;
        background: rgba(255, 255, 255, 0.1);
        border-color: transparent;
    }
    .custom-cursor-dot.cursor-grow {
        opacity: 0;
    }
}

/* 3. Text Reveal Wrappers */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.word, .char {
    display: inline-block;
    will-change: transform, opacity;
}

/* 4. Scroll Progress Bar Global */
.scroll-progress-bar-global {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--gold);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
}

/* 5. Line Draw Effects */
.process-step { position: relative; --line-scale: 0; }
.process-step::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; width: 100%; height: 1px;
    background: var(--gold);
    transform-origin: left;
    transform: scaleX(var(--line-scale));
    will-change: transform;
}

/* 6. Base GSAP Initial States */
.reveal { opacity: 0; transform: translateY(32px); will-change: transform, opacity; }
.philosophy-media, .process-media { clip-path: inset(0 100% 0 0); will-change: clip-path; }
.philosophy-media img, .process-media img { will-change: transform; }
.stats-row .stat-item, .cta-stats .stat-item { opacity: 0; will-change: transform, opacity; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .badges-grid { grid-template-columns: repeat(3, 1fr); }
    .process-grid { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    :root { --header-h: 66px; }
    .nav-center { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }

    .hero { min-height: 85vh; }
    .hero h1 { font-size: clamp(40px, 10vw, 64px); }
    .hero-dots { display: none; }

    .split, .project-grid, .philosophy-grid, .quote-grid,
    .story-grid, .gallery, .process-grid, .cta-grid {
        grid-template-columns: 1fr;
    }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .service-list { grid-template-columns: 1fr; }
    .principles { grid-template-columns: 1fr 1fr; }
    .section { padding: 72px 0; }
    .stats-row { flex-wrap: wrap; gap: 28px; }
    .badges-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { flex-direction: column; text-align: center; }
    .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 28px, var(--container)); }
    .brand { font-size: 18px; }
    .brand-logo { height: 36px; }
    .brand-name { display: none; }
    .brand-sub { font-size: 8px; }
    h1 { font-size: 42px !important; }
    .page-hero { padding-top: 120px; }
    .principles { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .badges-grid { grid-template-columns: 1fr; }
    .cta-stats { flex-direction: column; gap: 20px; }
    .process-toolbar { flex-wrap: wrap; }
    .hero-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}
