/* =================================================================
   HOUSE VISION UPGRADES — COMMON STYLESHEET
   Used by: index, about, contact, newsletter, unsubscribe, terms, privacy
   ================================================================= */

:root {
  --bone: #E7DFF0;
  --bone-light: #F3EDF8;
  --bone-dark: #CFC2DC;
  --ink: #21152A;
  --ink-soft: #34223F;
  --taupe: #685873;
  --taupe-light: #9585A0;
  --terracotta: #D75C7C;
  --brass: #A989D6;
  --line: rgba(33, 21, 42, 0.12);
  --line-strong: rgba(33, 21, 42, 0.25);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bone);
    color: var(--ink);
    margin: 0;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

.font-display {
    font-family: 'Fraunces', serif;
    font-optical-sizing: auto;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ─── NAV ─── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    background: transparent;
}

#nav.scrolled {
    padding: 14px 40px;
    background: rgba(232, 226, 216, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.nav-logo svg {
    transition: transform 0.4s ease;
}

.nav-logo:hover svg {
    transform: rotate(45deg);
}

.nav-logo-text {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-logo-text em {
    font-style: italic;
    font-weight: 400;
    color: var(--taupe);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--terracotta);
}

.nav-cta {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    display: inline-block;
}

.nav-cta:hover {
    background: var(--ink);
    color: var(--bone);
}

.nav-mark {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--taupe-light);
    letter-spacing: 0.1em;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    background: transparent;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobileMenu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

#mobileMenu.open {
    transform: translateY(0);
}

#mobileMenu a {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    color: var(--bone);
    text-decoration: none;
}

/* ─── HERO (LEGACY - kept for safety) ─── */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.5;
    pointer-events: none;
}

.btn-primary {
    padding: 16px 32px;
    background: var(--ink);
    color: var(--bone);
    border: none;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary:hover {
    border-color: var(--ink);
}

/* ─── HERO CINEMATIC (current home hero) ─── */
.hero-cinematic {
    position: relative;
    height: 100vh;
    min-height: 800px;
    width: 100vw;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    overflow: hidden;
    background: var(--ink);
}

.hc-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
    transform: scale(1.05);
    animation: ambientPan 30s ease-in-out infinite alternate;
}

@keyframes ambientPan {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1.5%, 1.5%); }
}

.hc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 23, 21, 0.95) 0%, rgba(26, 23, 21, 0.2) 50%, rgba(26, 23, 21, 0.1) 100%);
    z-index: 1;
}

.hc-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: flex-end;
}

.hc-title-wrapper {
    color: var(--bone);
    padding-bottom: 20px;
}

.hc-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hc-badge::before {
    content: '';
    width: 60px;
    height: 1px;
    background: var(--terracotta);
}

.hc-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(3.5rem, 8vw, 8.5rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
}

.hc-title i {
    color: var(--terracotta);
    font-style: italic;
}

.hc-panel {
    background: var(--bone);
    padding: 56px 48px;
    color: var(--ink);
    border-radius: 2px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hc-panel-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--taupe);
    margin-bottom: 48px;
}

.hc-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hc-btn-primary {
    background: var(--ink);
    color: var(--bone);
    border: none;
    padding: 18px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.hc-btn-primary:hover {
    background: var(--terracotta);
}

.hc-btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    padding: 18px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.hc-btn-secondary:hover {
    border-color: var(--ink);
}

@media (max-width: 1024px) {
    .hc-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hc-panel {
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .hero-cinematic {
        padding: 24px;
        align-items: center;
    }
    .hc-content {
        padding-top: 100px;
    }
    .hc-title-wrapper {
        padding-bottom: 0;
    }
    .hc-panel {
        padding: 40px 32px;
    }
}

/* ─── SECTION COMMON ─── */
section {
    position: relative;
}

.section-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 80px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.section-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--taupe-light);
    letter-spacing: 0.15em;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
}

.section-title em {
    font-style: italic;
    color: var(--terracotta);
    font-weight: 300;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── ABOUT V2 ─── */
.about-v2 {
    padding: 160px 40px;
    background: var(--ink);
    color: var(--bone);
    position: relative;
}

.about-v2-wrap {
    max-width: 1400px;
    margin: 0 auto;
}

.about-v2-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 120px auto;
}

.about-v2-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--terracotta);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 32px;
}

.about-v2-statement {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.about-v2-statement i {
    color: var(--taupe-light);
}

.about-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.about-v2-card {
    background: var(--ink-soft);
    padding: 48px 40px;
    border: 1px solid rgba(232, 226, 216, 0.05);
    transition: transform 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
}

.about-v2-card:hover {
    transform: translateY(-8px);
    background: rgba(200, 112, 77, 0.05);
    border-color: rgba(200, 112, 77, 0.3);
}

.about-v2-card-num {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-style: italic;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 40px;
}

.about-v2-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.about-v2-card p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(232, 226, 216, 0.6);
    margin: 0;
    flex-grow: 1;
}

@media (min-width: 1025px) {
    .about-v2-card:nth-child(2) {
        transform: translateY(40px);
    }
    .about-v2-card:nth-child(2):hover {
        transform: translateY(32px);
    }
    .about-v2-card:nth-child(3) {
        transform: translateY(80px);
    }
    .about-v2-card:nth-child(3):hover {
        transform: translateY(72px);
    }
}

@media (max-width: 1024px) {
    .about-v2-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about-v2-header {
        margin-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .about-v2 {
        padding: 100px 20px;
    }
    .about-v2-card {
        padding: 32px 24px;
    }
    .about-v2-statement {
        font-size: 2rem;
    }
}

/* ─── SERVICES ─── */
#services {
    padding: 140px 0;
    background: var(--bone-light);
}

.services-list {
    border-top: 1px solid var(--ink);
}

.service-row {
    display: grid;
    grid-template-columns: 60px 40px 1fr 2fr 40px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: all 0.4s ease;
    gap: 24px;
    position: relative;
}

.service-row:hover {
    padding-left: 16px;
    background: rgba(200, 112, 77, 0.03);
}

.service-row.active .service-toggle {
    transform: rotate(45deg);
    background: var(--terracotta);
    color: var(--bone);
    border-color: var(--terracotta);
}

.service-number {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 22px;
    color: var(--taupe);
}

.service-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.2;
    transition: transform 0.4s ease;
}

.service-row:hover .service-icon svg {
    transform: scale(1.1) rotate(-5deg);
    color: var(--terracotta);
}

.service-name {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    letter-spacing: -0.02em;
    margin: 0;
}

.service-short {
    font-size: 13px;
    color: var(--taupe);
    line-height: 1.5;
    margin: 0;
}

.service-toggle {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    justify-self: end;
}

.service-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease;
    border-bottom: 1px solid var(--line);
}

.service-panel.open {
    grid-template-rows: 1fr;
}

.service-panel-inner {
    overflow: hidden;
}

.service-panel-content {
    padding: 32px 0 40px 100px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.service-detail {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-soft);
    max-width: 600px;
}

.service-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-meta-item {
    padding: 16px;
    background: var(--bone);
    border-left: 2px solid var(--terracotta);
}

.service-meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe-light);
    display: block;
    margin-bottom: 6px;
}

.service-meta-value {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    color: var(--ink);
}

/* ─── PROCESS ─── */
#process {
    padding: 140px 0;
    background: var(--ink);
    color: var(--bone);
}

#process .section-num {
    color: rgba(232, 226, 216, 0.4);
}

#process .section-header {
    border-bottom-color: rgba(232, 226, 216, 0.15);
}

#process .section-title {
    color: var(--bone);
}

#process .section-title em {
    color: var(--terracotta);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(232, 226, 216, 0.2);
}

.process-step {
    padding: 0 24px;
    position: relative;
    padding-top: 60px;
}

.process-step:first-child {
    padding-left: 0;
}

.process-step:last-child {
    padding-right: 0;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ink);
    border: 1.5px solid var(--terracotta);
}

.process-step:first-child::before {
    left: 0;
}

.process-step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--terracotta);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: block;
}

.process-step-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--bone);
}

.process-step-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(232, 226, 216, 0.6);
    margin: 0;
}

.process-step-list {
    margin-top: 16px;
    list-style: none;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(232, 226, 216, 0.4);
    letter-spacing: 0.08em;
}

.process-step-list li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(232, 226, 216, 0.08);
}

.process-step-list li:last-child {
    border: none;
}

/* ─── FAQ ─── */
#faq {
    padding: 140px 0;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 120px;
}

.faq-intro p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--taupe);
    max-width: 340px;
    margin-top: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 0;
    position: relative;
}

.faq-question {
    display: grid;
    grid-template-columns: 50px 1fr 40px;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 20px;
    color: var(--taupe);
}

.faq-q-text {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
    transition: color 0.3s ease;
}

.faq-item.open .faq-q-text {
    color: var(--terracotta);
}

.faq-toggle {
    width: 28px;
    height: 28px;
    position: relative;
    justify-self: end;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--ink);
    transition: transform 0.3s ease;
}

.faq-toggle::before {
    width: 14px;
    height: 1px;
    transform: translate(-50%, -50%);
}

.faq-toggle::after {
    width: 1px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item.open .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-content {
    padding: 0 0 32px 70px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--taupe);
    max-width: 640px;
}

/* ─── TESTIMONIALS ─── */
#testimonials {
    padding: 140px 0;
    background: var(--bone-light);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.test-card {
    padding: 36px;
    border: 1px solid var(--line);
    background: var(--bone);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.test-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
}

.test-card-1 {
    grid-column: span 7;
}

.test-card-2 {
    grid-column: span 5;
}

.test-card-3 {
    grid-column: span 5;
}

.test-card-4 {
    grid-column: span 7;
}

.test-quote-mark {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 48px;
    color: var(--terracotta);
    line-height: 0.5;
    margin-bottom: 20px;
}

.test-text {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 28px;
    flex: 1;
}

.test-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.test-name {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 500;
}

.test-location {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--taupe);
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.test-rating {
    display: flex;
    gap: 2px;
}

.test-rating svg {
    width: 12px;
    height: 12px;
    fill: var(--terracotta);
}

.test-project {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--taupe-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* ─── NEWSLETTER ─── */
#newsletter {
    padding: 140px 0;
}

.news-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px;
    border: 1px solid var(--ink);
    background: var(--bone-light);
    position: relative;
}

.news-wrap::before,
.news-wrap::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--ink);
    background: var(--bone-light);
}

.news-wrap::before {
    top: -7px;
    left: -7px;
}

.news-wrap::after {
    bottom: -7px;
    right: -7px;
}

.news-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--taupe);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.news-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.news-title em {
    font-style: italic;
    color: var(--terracotta);
}

.news-sub {
    font-size: 14px;
    color: var(--taupe);
    margin-bottom: 40px;
    line-height: 1.7;
}

.news-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ─── FORMS (shared) ─── */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe);
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-bottom-color: var(--terracotta);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1715' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}

.form-error {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--terracotta);
    letter-spacing: 0.05em;
    min-height: 14px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-bottom-color: var(--terracotta);
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bone);
    border: 1px solid var(--line);
}

.consent-row input {
    margin-top: 3px;
    accent-color: var(--terracotta);
}

.consent-row label {
    font-size: 12px;
    line-height: 1.5;
    color: var(--taupe);
    cursor: pointer;
}

.news-submit {
    align-self: flex-start;
    padding: 16px 36px;
    background: var(--ink);
    color: var(--bone);
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.news-submit:hover {
    background: var(--terracotta);
}

.news-unsub {
    margin-top: 24px;
    font-size: 12px;
    color: var(--taupe-light);
    text-align: center;
}

.news-unsub a {
    color: var(--ink);
    text-decoration: underline;
    font-size: 12px;
    font-family: inherit;
    padding: 0;
}

.news-unsub a:hover {
    color: var(--terracotta);
}

/* ─── CONTACT ─── */
#contact {
    padding: 140px 0;
    background: var(--bone-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-heading {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}

.contact-heading em {
    font-style: italic;
    color: var(--terracotta);
}

.contact-intro {
    font-size: 14px;
    line-height: 1.8;
    color: var(--taupe);
    margin-bottom: 40px;
    max-width: 380px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.contact-info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--taupe-light);
    margin-bottom: 6px;
    display: block;
}

.contact-info-value {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    color: var(--ink);
}

.contact-form {
    padding: 48px;
    background: var(--bone);
    border: 1px solid var(--line);
}

.contact-form-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.contact-form-title {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 400;
}

.contact-form-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--taupe-light);
    letter-spacing: 0.1em;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-form-grid .full {
    grid-column: span 2;
}

.contact-submit {
    margin-top: 16px;
    padding: 18px 40px;
    background: var(--ink);
    color: var(--bone);
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-submit:hover {
    background: var(--terracotta);
}

/* ─── FOOTER ─── */
footer {
    background: var(--ink);
    color: var(--bone);
    padding: 100px 40px 40px;
    position: relative;
    overflow: hidden;
}

.footer-mark {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(232, 226, 216, 0.4);
    letter-spacing: 0.15em;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(232, 226, 216, 0.1);
    padding-bottom: 20px;
}

.footer-center {
    text-align: center;
    margin: 40px auto 60px;
    max-width: 600px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--bone);
    font-family: 'Fraunces', serif;
    font-size: 24px;
}

.footer-logo svg {
    stroke: var(--bone);
}

.footer-desc {
    font-size: 14px;
    color: rgba(232, 226, 216, 0.6);
    line-height: 1.7;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: end;
    border-top: 1px solid rgba(232, 226, 216, 0.1);
    padding-top: 32px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 12px;
    color: rgba(232, 226, 216, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.04em;
}

.footer-nav a:hover {
    color: var(--terracotta);
}

.footer-legal {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-legal a,
.footer-legal button {
    background: none;
    border: none;
    color: rgba(232, 226, 216, 0.6);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-legal a:hover,
.footer-legal button:hover {
    color: var(--terracotta);
}

.footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(232, 226, 216, 0.4);
    letter-spacing: 0.1em;
    text-align: right;
}

/* ─── SUCCESS POPUPS ─── */
/* Contact: full screen overlay */
.success-contact {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    flex-direction: column;
    padding: 40px;
}

.success-contact.open {
    opacity: 1;
    pointer-events: auto;
}

.success-check {
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
}

.success-check circle {
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 1.5;
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
}

.success-check path {
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 2;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

.success-contact.open .success-check circle {
    animation: drawCircle 0.8s ease 0.2s forwards;
}

.success-contact.open .success-check path {
    animation: drawCheck 0.5s ease 0.8s forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--terracotta);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.success-contact-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    color: var(--bone);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.1;
}

.success-contact-title em {
    font-style: italic;
    color: var(--terracotta);
}

.success-contact-text {
    font-size: 14px;
    color: rgba(232, 226, 216, 0.6);
    text-align: center;
    max-width: 400px;
    line-height: 1.7;
    margin: 0 0 40px;
}

.success-contact-close {
    padding: 14px 32px;
    background: transparent;
    color: var(--bone);
    border: 1px solid rgba(232, 226, 216, 0.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-contact-close:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
}

/* Newsletter: side notification */
.success-news {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 300;
    background: var(--ink);
    color: var(--bone);
    padding: 24px 28px;
    max-width: 360px;
    border-left: 3px solid var(--terracotta);
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.success-news.open {
    transform: translateX(0);
}

.success-news-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid var(--terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
}

.success-news-content {
    flex: 1;
}

.success-news-title {
    font-family: 'Fraunces', serif;
    font-size: 16px;
    margin: 0 0 4px;
}

.success-news-text {
    font-size: 12px;
    color: rgba(232, 226, 216, 0.6);
    line-height: 1.5;
    margin: 0;
}

.success-news-close {
    background: none;
    border: none;
    color: rgba(232, 226, 216, 0.4);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
}

/* Unsubscribe: centered minimal */
.success-unsub {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(26, 23, 21, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.success-unsub.open {
    opacity: 1;
    pointer-events: auto;
}

.success-unsub-panel {
    background: var(--bone);
    padding: 48px;
    max-width: 380px;
    text-align: center;
    border: 1px solid var(--line-strong);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
}

.success-unsub.open .success-unsub-panel {
    transform: scale(1) translateY(0);
}

.success-unsub-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-unsub-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.success-unsub-text {
    font-size: 13px;
    color: var(--taupe);
    line-height: 1.6;
    margin: 0 0 28px;
}

.success-unsub-close {
    padding: 12px 28px;
    background: var(--ink);
    color: var(--bone);
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.success-unsub-close:hover {
    background: var(--terracotta);
}

/* ─── INNER PAGE HERO (for about, contact, newsletter, unsubscribe, terms, privacy) ─── */
.page-hero {
    padding: 180px 40px 60px;
    background: var(--bone-light);
    position: relative;
    z-index: 1;
}

.page-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.page-hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--terracotta);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 24px;
}

.page-hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    max-width: 900px;
}

.page-hero-title em {
    font-style: italic;
    color: var(--terracotta);
    font-weight: 300;
}

.page-hero-sub {
    font-size: 15px;
    line-height: 1.8;
    color: var(--taupe);
    max-width: 620px;
    margin: 0;
}

.page-hero-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--taupe-light);
    letter-spacing: 0.15em;
    margin-top: 24px;
    display: block;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 130px 20px 40px;
    }
}

/* ─── LEGAL PAGES (terms, privacy) ─── */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
}

.legal-page .legal-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

.legal-page .legal-section:first-child {
    padding-top: 0;
}

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

.legal-page .legal-section-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 22px;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.legal-page .legal-section-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--taupe);
}

.legal-cta {
    margin-top: 60px;
    padding: 40px;
    background: var(--bone-light);
    border: 1px solid var(--line);
    text-align: center;
}

.legal-cta p {
    font-size: 14px;
    color: var(--taupe);
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── UNSUBSCRIBE PAGE ─── */
.unsub-page {
    padding: 60px 40px 120px;
}

.unsub-page-panel {
    max-width: 540px;
    margin: 0 auto;
    padding: 56px 48px;
    background: var(--bone-light);
    border: 1px solid var(--ink);
    position: relative;
}

.unsub-page-panel::before,
.unsub-page-panel::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--ink);
    background: var(--bone-light);
}

.unsub-page-panel::before {
    top: -7px;
    left: -7px;
}

.unsub-page-panel::after {
    bottom: -7px;
    right: -7px;
}

.unsub-page-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.unsub-page-buttons button,
.unsub-page-buttons a {
    flex: 1;
    padding: 16px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--ink);
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.unsub-page-cancel {
    background: transparent;
    color: var(--ink);
}

.unsub-page-cancel:hover {
    background: var(--bone-dark);
}

.unsub-page-confirm {
    background: var(--ink);
    color: var(--bone);
}

.unsub-page-confirm:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
}

@media (max-width: 600px) {
    .unsub-page-panel {
        padding: 36px 24px;
    }
    .unsub-page-buttons {
        flex-direction: column;
    }
}

/* ─── CTA STRIP (used on home to link out to other pages) ─── */
.cta-strip {
    padding: 140px 0;
    background: var(--ink);
    color: var(--bone);
}

.cta-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 40px;
}

.cta-strip-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--terracotta);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
}

.cta-strip-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 32px;
    color: var(--bone);
}

.cta-strip-title em {
    font-style: italic;
    color: var(--terracotta);
}

.cta-strip-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-strip-actions .btn-primary {
    background: var(--bone);
    color: var(--ink);
}

.cta-strip-actions .btn-primary:hover {
    background: var(--terracotta);
    color: var(--bone);
}

.cta-strip-actions .btn-secondary {
    color: var(--bone);
    border-color: rgba(232, 226, 216, 0.3);
}

.cta-strip-actions .btn-secondary:hover {
    border-color: var(--bone);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .about-v2-grid,
    .faq-layout,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .faq-intro,
    .contact-info {
        position: static;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }

    .process-grid::before {
        display: none;
    }

    .test-card-1,
    .test-card-2,
    .test-card-3,
    .test-card-4 {
        grid-column: span 6;
    }

    .service-panel-content {
        grid-template-columns: 1fr;
        padding-left: 60px;
    }

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

    .contact-form-grid .full {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    #nav {
        padding: 16px 20px;
    }

    #nav.scrolled {
        padding: 12px 20px;
    }

    .nav-links,
    .nav-cta,
    .nav-mark {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .section-wrap {
        padding: 0 20px;
    }

    #services,
    #process,
    #faq,
    #testimonials,
    #newsletter,
    #contact {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .service-row {
        grid-template-columns: 40px 32px 1fr 32px;
        gap: 12px;
        padding: 20px 0;
    }

    .service-short {
        display: none;
    }

    .service-panel-content {
        padding: 20px 0 24px 52px;
    }

    .test-card-1,
    .test-card-2,
    .test-card-3,
    .test-card-4 {
        grid-column: span 12;
    }

    .news-wrap {
        padding: 32px 24px;
    }

    .news-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px 20px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .unsub-page {
        padding: 40px 20px 80px;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero-cinematic .hc-title {
        font-size: 3rem;
    }
}

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