/* ==========================================
   LAUNCHSPACE : DESIGN SYSTEM V4
   Light, bold, compact. No gradients.
   ========================================== */

:root {
    --paper: #F6F3ED;
    --paper-alt: #ECE6D9;
    --ink: #14120F;
    --muted: #6E675E;
    --muted-dim: #A79E90;
    --rule: rgba(20, 18, 15, 0.12);
    --accent: #FF4B2B;
    --accent-ink: #FFFFFF;
    --dark: #14120F;
    --dark-text: #F6F3ED;

    --font-display: 'Fraunces', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 44px;
    --space-xl: 76px;
    --radius: 10px;
}

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

html {
    scroll-behavior: smooth; background: var(--paper); color: var(--ink);
    font-family: var(--font-sans); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body { background: var(--paper); color: var(--ink); overflow-x: hidden; }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }

.skip-link { position: absolute; top: -100px; left: var(--space-sm); background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 0.8rem; z-index: 10000; transition: top 0.2s ease; }
.skip-link:focus { top: var(--space-sm); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.cursor { position: fixed; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); pointer-events: none; transform: translate(-50%, -50%) scale(1); transition: transform 0.18s ease; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; }
.cursor-text { font-size: 8px; font-weight: 700; letter-spacing: 0.5px; color: #fff; opacity: 0; transition: opacity 0.2s ease; }
@media (pointer: coarse) { .cursor { display: none; } }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.idea-kicker { font-size: 0.85rem; color: var(--accent); margin-bottom: var(--space-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.idea-kicker-light { color: var(--accent); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; padding: var(--space-sm) 0; background: rgba(246,243,237,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.brand-mark { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.site-nav { display: flex; gap: var(--space-md); }
.site-nav a { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.site-nav a:hover { color: var(--ink); }
.btn-nav { font-size: 0.85rem; font-weight: 700; color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 999px; background: var(--accent); }

/* Sections */
.section { padding: var(--space-xl) 0; border-top: 1px solid var(--rule); }
.section-heading { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; max-width: 680px; letter-spacing: -0.5px; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.section-sub { font-size: 0.95rem; color: var(--muted); max-width: 300px; text-align: right; font-weight: 500; }

/* ============ HERO ============ */
.hero-section { padding-top: 132px; padding-bottom: 0; border-top: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-xl); align-items: center; padding-bottom: var(--space-xl); }
.hero-eyebrow { font-size: 0.95rem; color: var(--muted); margin-bottom: var(--space-md); font-weight: 600; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 0.98; letter-spacing: -2px; margin-bottom: var(--space-md); color: var(--ink); }
.hero-manifesto { font-size: 1.15rem; color: var(--muted); max-width: 440px; margin-bottom: var(--space-lg); }
.hero-actions { display: flex; gap: var(--space-md); align-items: center; flex-wrap: wrap; }

.btn-primary {
    font-size: 0.95rem; font-weight: 700; color: #fff; text-decoration: none;
    padding: 16px 30px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(255,75,43,0.5); }
.btn-primary-light { background: var(--accent); }
.btn-ghost { font-size: 0.95rem; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

.hero-visual { position: relative; display: flex; align-items: flex-end; gap: var(--space-md); height: 380px; }
.hero-block { position: absolute; top: -18px; right: -18px; width: 55%; height: 55%; background: var(--accent); border-radius: var(--radius); z-index: 0; }

/* Custom-built mockup frames (no external images / hotlinked stock) */
.hero-visual { perspective: 1400px; }
.mockup { position: relative; z-index: 1; background: #fff; border-radius: var(--radius); box-shadow: 0 30px 60px -22px rgba(20,18,15,0.3); overflow: hidden; }
.mockup-browser {
    flex: 1; height: 320px;
    transform: rotateY(-6deg) rotateX(3deg);
    transition: transform 0.4s ease;
}
.hero-visual:hover .mockup-browser { transform: rotateY(-2deg) rotateX(1deg); }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--rule); background: #FAFAF8; }
.mockup-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.dot-red { background: #ED6A5E; }
.dot-amber { background: #F4BF4F; }
.dot-green { background: #61C554; }
.mockup-url { margin-left: auto; font-size: 0.7rem; color: var(--muted-dim); background: var(--paper); padding: 4px 14px; border-radius: 999px; font-weight: 600; }
.mockup-body { padding: 24px; }
.mockup-line { height: 12px; border-radius: 4px; background: var(--paper-alt); margin-bottom: 10px; }
.mockup-line-title { width: 65%; height: 22px; }
.mockup-line-sub { width: 40%; }
.mockup-hero-block { height: 70px; border-radius: 8px; margin: 16px 0; background: linear-gradient(120deg, var(--dark) 0%, #3a1f14 45%, var(--accent) 100%); }
.mockup-blocks { display: flex; gap: 10px; }
.mockup-block { flex: 1; height: 46px; border-radius: 8px; background: var(--paper-alt); }
.mockup-block-accent { background: var(--accent); }
.mockup-badge {
    position: absolute; left: 18px; bottom: -14px; z-index: 2;
    background: var(--ink); color: var(--paper); font-size: 0.72rem; font-weight: 700;
    padding: 8px 16px; border-radius: 999px; box-shadow: 0 10px 20px -8px rgba(20,18,15,0.4);
}
.mockup-phone {
    width: 130px; height: 250px; align-self: flex-end;
    transform: rotateY(8deg) rotateX(-2deg);
}
.mockup-notch { height: 16px; display: flex; align-items: center; justify-content: center; }
.mockup-notch::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: var(--rule); }
.mockup-body-phone { padding: 14px; }
.mockup-line-sm { width: 80%; height: 10px; }
.mockup-block-phone { display: block; width: 100%; height: 150px; margin-top: 12px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .mockup-browser { transform: none; } }

.proof-strip { background: var(--dark); }
.proof-strip-inner { display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-xl); padding: var(--space-md) 0; width: 90%; max-width: 1200px; margin: 0 auto; font-size: 0.85rem; color: var(--dark-text); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.service-card { background: var(--paper-alt); border-radius: var(--radius); padding: var(--space-md); transition: transform 0.2s ease; }
.service-card:hover { transform: translateY(-3px); }
.service-num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--accent); display: block; margin-bottom: var(--space-sm); }
.service-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin-bottom: var(--space-xs); }
.service-card p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ============ WORK ============ */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.work-card { background: var(--paper-alt); border-radius: var(--radius); padding: var(--space-md); display: flex; flex-direction: column; transition: transform 0.25s ease; }
.work-card:hover { transform: translateY(-4px); }
.work-cat { display: block; font-size: 0.78rem; margin-bottom: var(--space-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--accent); }
.work-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; margin-bottom: var(--space-xs); }
.work-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: var(--space-sm); }
.work-link { font-size: 0.88rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.work-link:hover { text-decoration: underline; }
.work-link-disabled { color: var(--muted-dim); font-weight: 600; }
@media (max-width: 800px) { .work-grid { grid-template-columns: 1fr; } }

/* ============ TESTIMONIALS ============ */
.testimonials-track {
    display: flex; gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: var(--space-sm); scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
    background: var(--paper-alt); border-radius: var(--radius); padding: var(--space-md);
    display: flex; flex-direction: column; gap: var(--space-md);
    flex: 0 0 clamp(260px, 40vw, 360px); scroll-snap-align: start;
}
.testimonial-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); line-height: 1; font-weight: 700; }
.testimonial-quote { font-size: 1.02rem; color: var(--ink); flex-grow: 1; }
.testimonial-meta { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.testimonial-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }

.carousel-nav { display: flex; gap: var(--space-xs); }
.carousel-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule);
    background: var(--paper); color: var(--ink); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .testimonials-track { scroll-behavior: auto; } }

/* ============ PROCESS ============ */
.process-highlight { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); max-width: 640px; line-height: 1.25; margin-bottom: var(--space-xl); color: var(--ink); }
.process-stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-md); position: relative; }
.process-stepper::before { content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 1px; background: var(--rule); }
.process-step { position: relative; z-index: 1; }
.process-step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: var(--space-sm); color: var(--ink); }
.process-step:nth-child(5) .process-step-num { background: var(--accent); color: #fff; border: none; }
.process-step h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: var(--space-xs); }
.process-step p { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 900px) { .process-stepper { grid-template-columns: 1fr 1fr; } .process-stepper::before { display: none; } }
@media (max-width: 560px) { .process-stepper { grid-template-columns: 1fr; } }

/* ============ APPROACH ============ */
.approach-demo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--rule); }
.approach-layer { transition: opacity 0.7s ease, transform 0.7s ease; }
.approach-label { display: block; font-size: 0.8rem; color: var(--accent); margin-bottom: var(--space-sm); font-weight: 700; text-transform: uppercase; }
.approach-before p, .approach-after p { font-size: 1.02rem; color: var(--muted); max-width: 400px; }
.approach-after { opacity: 0.35; transform: translateY(4px); }
.approach-demo.is-resolved .approach-before { opacity: 0.35; }
.approach-demo.is-resolved .approach-after { opacity: 1; transform: translateY(0); }
@media (max-width: 800px) { .approach-demo { grid-template-columns: 1fr; gap: var(--space-md); } }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: var(--space-xl); align-items: center; }
.portrait-frame { aspect-ratio: 3/4; width: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--muted-dim); background: var(--paper-alt); border-radius: var(--radius); overflow: hidden; font-weight: 600; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-body { font-size: 1.1rem; color: var(--muted); max-width: 540px; margin-bottom: var(--space-md); line-height: 1.6; }
.about-role { font-size: 0.85rem; color: var(--accent); font-weight: 700; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .portrait-frame { max-width: 240px; } }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-question { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-family: var(--font-sans); font-size: 1rem; font-weight: 700; cursor: pointer; padding: var(--space-md) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); }
.faq-icon { flex-shrink: 0; font-size: 1.2rem; color: var(--muted); transition: transform 0.25s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--muted); font-size: 0.95rem; }
.faq-item.is-open .faq-answer { max-height: 220px; padding-bottom: var(--space-md); }

/* ============ CTA ============ */
.cta-section { background: var(--dark); color: var(--dark-text); padding: var(--space-xl) 0; }
.cta-container { max-width: 720px; }
.cta-heading { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin-bottom: var(--space-md); color: var(--dark-text); }
.cta-desc { color: rgba(246,243,237,0.7); font-size: 1.05rem; max-width: 520px; margin-bottom: var(--space-lg); }
.huge-email-link { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--dark-text); text-decoration: none; border-bottom: 2px solid rgba(246,243,237,0.3); display: inline-block; margin-bottom: var(--space-lg); }
.huge-email-link:hover { border-color: var(--accent); }

/* ============ FOOTER ============ */
.site-footer { padding: var(--space-lg) 0 var(--space-md); font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-md); }
.footer-brand-col .footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); display: block; margin-bottom: var(--space-xs); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-col-title { color: var(--ink); font-weight: 700; font-size: 0.82rem; margin-bottom: var(--space-xs); }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: var(--space-sm); font-size: 0.82rem; }

@media (max-width: 700px) {
    .site-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { height: 240px; margin-top: var(--space-md); }
    .mockup-phone { display: none; }
    .hero-block { width: 70%; height: 70%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .approach-layer, .cursor, .service-card, .work-card { transition: none !important; }
}
