/* ═══════════════════════════════════════════════════════════
   MEDICAL CONCIERGE GHOST THEME — screen.css
   5 design directions + post/page/archive styles
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

.design { display: none; min-height: 100vh; }
.design.active { display: block; }

/* Hide selector when in solo (production) mode */
.design-selector, .design-label { display: none; }
body.is-preview .design-selector,
body.is-preview .design-label { display: flex; }

.design-selector {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 1000; gap: 6px;
    background: rgba(20,20,20,0.85); backdrop-filter: blur(12px);
    padding: 6px; border-radius: 999px;
    font-family: 'Albert Sans', sans-serif;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.design-selector button {
    border: none; background: transparent; color: rgba(255,255,255,0.6);
    padding: 8px 16px; font-size: 12px; letter-spacing: 0.08em;
    cursor: pointer; border-radius: 999px; transition: all 0.2s;
    font-weight: 500;
}
.design-selector button:hover { color: rgba(255,255,255,0.95); }
.design-selector button.active { background: rgba(255,255,255,0.95); color: #111; }

.design-label {
    position: fixed; bottom: 24px; left: 24px; z-index: 1000;
    font-family: 'Space Mono', monospace; font-size: 11px;
    color: rgba(0,0,0,0.4); letter-spacing: 0.1em;
    background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
    padding: 8px 14px; border-radius: 4px;
}

/* ════════════════════════════════════════════════
   DESIGN 01 — EDITORIAL LUXURY
   ════════════════════════════════════════════════ */
.d1 {
    --bg: #f4ede0; --bg-alt: #ebe1cf; --ink: #2b1816;
    --accent: #6b1e2e; --gold: #a87c3e; --muted: #6b5d4a;
    background: var(--bg); color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
}
.d1 .nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 32px 56px 24px; border-bottom: 1px solid rgba(43,24,22,0.15);
}
.d1 .nav-logo {
    font-family: 'Fraunces', serif; font-weight: 400; font-size: 22px;
    letter-spacing: 0.18em; font-variation-settings: "opsz" 144;
}
.d1 .nav-logo em { font-style: italic; font-weight: 300; color: var(--accent); }
.d1 .nav-links { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.d1 .nav-links a { color: var(--ink); text-decoration: none; font-family: 'Albert Sans', sans-serif; font-weight: 400; }
.d1 .nav-cta {
    font-family: 'Albert Sans', sans-serif; font-size: 12px; letter-spacing: 0.18em;
    text-transform: uppercase; padding: 12px 22px;
    border: 1px solid var(--ink); background: transparent; cursor: pointer;
    transition: all 0.3s;
}
.d1 .nav-cta:hover { background: var(--ink); color: var(--bg); }

.d1 .hero {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px;
    padding: 80px 56px 100px; align-items: end; position: relative;
}
.d1 .hero-eyebrow {
    font-family: 'Albert Sans', sans-serif; font-size: 11px;
    letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 32px; display: flex; align-items: center; gap: 16px;
}
.d1 .hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.d1 .hero h1 {
    font-family: 'Fraunces', serif; font-weight: 300;
    font-size: clamp(56px, 7vw, 104px); line-height: 0.96;
    letter-spacing: -0.02em; font-variation-settings: "opsz" 144;
}
.d1 .hero h1 em { font-style: italic; font-weight: 300; color: var(--accent); font-variation-settings: "opsz" 144; }
.d1 .hero-sub { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 440px; margin-top: 36px; font-weight: 400; }
.d1 .hero-actions { margin-top: 48px; display: flex; gap: 18px; align-items: center; }
.d1 .btn-primary {
    font-family: 'Albert Sans', sans-serif; font-size: 13px; letter-spacing: 0.18em;
    text-transform: uppercase; padding: 18px 36px;
    background: var(--ink); color: var(--bg); border: none; cursor: pointer;
    transition: all 0.3s;
}
.d1 .btn-primary:hover { background: var(--accent); }
.d1 .btn-text {
    font-family: 'Cormorant Garamond', serif; font-size: 17px;
    font-style: italic; color: var(--ink); text-decoration: underline;
    text-underline-offset: 5px; cursor: pointer;
}
.d1 .hero-visual {
    position: relative; aspect-ratio: 4/5;
    background: linear-gradient(135deg, #c9a87a 0%, #8b6f4e 50%, #3d2820 100%);
    overflow: hidden;
}
.d1 .hero-visual::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(244,237,224,0.25), transparent 60%);
}
.d1 .hero-visual::after {
    content: 'PORTRAIT N°01'; position: absolute; bottom: 24px; left: 24px;
    color: rgba(244,237,224,0.7); font-family: 'Albert Sans', sans-serif;
    font-size: 11px; letter-spacing: 0.3em;
}
.d1 .hero-caption {
    position: absolute; bottom: 100px; left: 56px;
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 14px; color: var(--muted); max-width: 280px; line-height: 1.5;
}
.d1 .hero-caption::before { content: '— '; }

.d1 .marquee {
    border-top: 1px solid rgba(43,24,22,0.15);
    border-bottom: 1px solid rgba(43,24,22,0.15);
    padding: 22px 0; overflow: hidden; white-space: nowrap;
}
.d1 .marquee-inner {
    display: inline-flex; gap: 48px; animation: scroll-d1 40s linear infinite;
    font-family: 'Fraunces', serif; font-style: italic; font-size: 22px;
    color: var(--muted);
}
.d1 .marquee-inner span::after { content: '✦'; margin-left: 48px; color: var(--gold); }
@keyframes scroll-d1 { to { transform: translateX(-50%); } }

.d1 .values {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
    padding: 100px 56px;
}
.d1 .value-card { padding: 0 40px; border-right: 1px solid rgba(43,24,22,0.15); }
.d1 .value-card:last-child { border-right: none; }
.d1 .value-card:first-child { padding-left: 0; }
.d1 .value-num {
    font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
    font-size: 56px; color: var(--accent); line-height: 1; margin-bottom: 24px;
}
.d1 .value-card h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 16px; }
.d1 .value-card p { color: var(--muted); font-size: 17px; line-height: 1.6; }

.d1 .editorial {
    background: var(--bg-alt); padding: 120px 56px;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; align-items: center;
}
.d1 .editorial-img { aspect-ratio: 3/4; background: linear-gradient(160deg, #4a2828 0%, #1a0d0d 100%); position: relative; }
.d1 .editorial-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 20%, rgba(212,165,116,0.3), transparent 60%); }
.d1 .editorial-content .label { font-family: 'Albert Sans', sans-serif; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.d1 .editorial-content h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 60px; line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 32px; }
.d1 .editorial-content h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.d1 .editorial-content p { font-size: 19px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.d1 .editorial-content p:first-letter { font-family: 'Fraunces', serif; font-size: 64px; float: left; line-height: 0.85; margin: 4px 12px 0 0; color: var(--accent); font-weight: 300; }

.d1 .process { padding: 120px 56px; }
.d1 .section-head { text-align: center; margin-bottom: 80px; }
.d1 .section-head .label { font-family: 'Albert Sans', sans-serif; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.d1 .section-head h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -0.015em; }
.d1 .section-head h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.d1 .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.d1 .step { border-top: 1px solid var(--ink); padding-top: 24px; }
.d1 .step-num { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: 13px; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 24px; }
.d1 .step h4 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 24px; margin-bottom: 14px; line-height: 1.2; }
.d1 .step p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* D1 Journal feed */
.d1-journal { padding: 100px 56px; background: var(--bg-alt); }
.d1-journal .journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.d1-journal .journal-card { text-decoration: none; color: inherit; display: block; transition: transform 0.3s; }
.d1-journal .journal-card:hover { transform: translateY(-4px); }
.d1-journal .journal-img {
    aspect-ratio: 4/3; background-size: cover; background-position: center;
    margin-bottom: 24px; background-color: #4a2828;
}
.d1-journal .journal-img-placeholder {
    background: linear-gradient(135deg, #c9a87a 0%, #4a2828 100%);
}
.d1-journal .journal-meta { font-family: 'Albert Sans', sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.d1-journal .journal-card h4 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px; line-height: 1.2; margin-bottom: 12px; }
.d1-journal .journal-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.d1 .cta {
    margin: 0 56px 80px; padding: 100px 60px;
    background: var(--ink); color: var(--bg);
    display: flex; justify-content: space-between; align-items: flex-end; gap: 60px;
}
.d1 .cta h2 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -0.015em; max-width: 600px; }
.d1 .cta h2 em { font-style: italic; color: var(--gold); }
.d1 .cta-btn { font-family: 'Albert Sans', sans-serif; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; padding: 22px 42px; background: var(--bg); color: var(--ink); border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; }

.d1 .footer {
    padding: 40px 56px; display: flex; justify-content: space-between;
    font-family: 'Albert Sans', sans-serif; font-size: 12px; letter-spacing: 0.1em;
    color: var(--muted); border-top: 1px solid rgba(43,24,22,0.15);
}

/* ─── D1: Post & Page Templates ─── */
.d1 .post-article {
    max-width: 760px; margin: 0 auto; padding: 80px 40px 60px;
}
.d1 .post-header { text-align: center; margin-bottom: 60px; }
.d1 .post-eyebrow { font-family: 'Albert Sans', sans-serif; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.d1 .post-eyebrow .dot { margin: 0 8px; }
.d1 .post-article h1 {
    font-family: 'Fraunces', serif; font-weight: 300;
    font-size: clamp(40px, 5vw, 72px); line-height: 1.04;
    letter-spacing: -0.02em; margin-bottom: 28px;
}
.d1 .post-lead { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-style: italic; line-height: 1.45; color: var(--muted); max-width: 600px; margin: 0 auto 40px; }
.d1 .post-author { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 40px; }
.d1 .post-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.d1 .post-author-meta { text-align: left; }
.d1 .post-author-name { font-family: 'Fraunces', serif; font-style: italic; font-size: 16px; }
.d1 .post-author-bio { font-family: 'Albert Sans', sans-serif; font-size: 12px; color: var(--muted); margin-top: 2px; }
.d1 .post-feature { max-width: 1100px; margin: 0 auto 60px; }
.d1 .post-feature img { width: 100%; height: auto; display: block; }
.d1 .post-feature figcaption { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }
.d1 .post-content { font-size: 19px; line-height: 1.7; color: var(--ink); max-width: 700px; margin: 0 auto; }
.d1 .post-content > * + * { margin-top: 1.2em; }
.d1 .post-content h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 36px; line-height: 1.15; margin-top: 2.4em; margin-bottom: 0.6em; letter-spacing: -0.015em; }
.d1 .post-content h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px; margin-top: 1.8em; margin-bottom: 0.5em; }
.d1 .post-content p { font-size: 19px; line-height: 1.7; color: var(--ink); }
.d1 .post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.d1 .post-content blockquote { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; font-size: 28px; line-height: 1.35; color: var(--accent); border-left: 2px solid var(--accent); padding-left: 32px; margin: 40px 0; }
.d1 .post-content figure { margin: 40px -40px; }
.d1 .post-content figure img { width: 100%; height: auto; }
.d1 .post-content figcaption { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.d1 .post-content ul, .d1 .post-content ol { padding-left: 1.5em; }
.d1 .post-content li { margin-bottom: 0.5em; }
.d1 .post-content code { font-family: 'Space Mono', monospace; font-size: 0.85em; background: var(--bg-alt); padding: 0.1em 0.4em; border-radius: 2px; }

.d1 .post-footer { margin-top: 60px; padding-top: 32px; border-top: 1px solid rgba(43,24,22,0.15); }
.d1 .post-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.d1 .post-tag { font-family: 'Albert Sans', sans-serif; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); text-decoration: none; padding: 8px 14px; border: 1px solid var(--gold); border-radius: 999px; }

/* Archive header (tag/author pages) */
.d1 .archive-header { padding: 80px 40px 40px; text-align: center; max-width: 760px; margin: 0 auto; }
.d1 .archive-eyebrow { font-family: 'Albert Sans', sans-serif; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.d1 .archive-header h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(56px, 8vw, 104px); line-height: 1; letter-spacing: -0.02em; }
.d1 .archive-lead { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; line-height: 1.45; color: var(--muted); margin-top: 24px; }
.d1 .archive-meta { font-family: 'Albert Sans', sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 24px; }


/* ════════════════════════════════════════════════
   DESIGN 02 — QUIET AUTHORITY
   ════════════════════════════════════════════════ */
.d2 {
    --bg: #fafaf8; --ink: #0a1929; --accent: #b8654f;
    --line: #d8d6cf; --muted: #5a6571;
    background: var(--bg); color: var(--ink);
    font-family: 'Albert Sans', sans-serif; font-weight: 400;
}
.d2 .nav { padding: 36px 80px; display: flex; justify-content: space-between; align-items: center; }
.d2 .nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: 0.5em; font-weight: 500; text-transform: uppercase; }
.d2 .nav-links { display: flex; gap: 44px; font-size: 13px; letter-spacing: 0.06em; }
.d2 .nav-links a { color: var(--ink); text-decoration: none; }
.d2 .nav-cta { font-size: 13px; letter-spacing: 0.06em; padding: 12px 24px; background: var(--ink); color: var(--bg); border: none; cursor: pointer; border-radius: 999px; }

.d2 .hero { padding: 140px 80px 160px; max-width: 1280px; margin: 0 auto; text-align: center; position: relative; }
.d2 .hero-eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-bottom: 56px; display: inline-flex; align-items: center; gap: 14px; }
.d2 .hero-eyebrow::before, .d2 .hero-eyebrow::after { content: ''; width: 24px; height: 1px; background: var(--accent); }
.d2 .hero h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(56px, 8vw, 120px); line-height: 0.94; letter-spacing: -0.02em; max-width: 1100px; margin: 0 auto; }
.d2 .hero h1 em { font-style: italic; font-weight: 400; }
.d2 .hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 540px; margin: 48px auto 0; }
.d2 .hero-actions { margin-top: 56px; display: flex; gap: 14px; justify-content: center; }
.d2 .btn-primary { font-size: 13px; letter-spacing: 0.06em; padding: 16px 32px; background: var(--ink); color: var(--bg); border: none; cursor: pointer; border-radius: 999px; font-family: inherit; font-weight: 500; }
.d2 .btn-ghost { font-size: 13px; letter-spacing: 0.06em; padding: 16px 32px; background: transparent; color: var(--ink); cursor: pointer; border: 1px solid var(--line); border-radius: 999px; font-family: inherit; }
.d2 .hero-meta { position: absolute; bottom: 60px; left: 80px; right: 80px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

.d2 .stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 80px; }
.d2 .stat { padding: 60px 40px; border-right: 1px solid var(--line); text-align: left; }
.d2 .stat:last-child { border-right: none; }
.d2 .stat-num { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 72px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px; }
.d2 .stat-num em { font-style: italic; color: var(--accent); font-weight: 500; }
.d2 .stat-label { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

.d2 .promise { padding: 180px 80px; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 100px; }
.d2 .promise-label { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.d2 .promise-text { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 36px; line-height: 1.3; letter-spacing: -0.01em; }
.d2 .promise-text em { font-style: italic; }

.d2 .process { padding: 0 80px 160px; max-width: 1280px; margin: 0 auto; }
.d2 .process-head { margin-bottom: 80px; }
.d2 .process-head .label { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.d2 .process-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 60px; line-height: 1.05; letter-spacing: -0.02em; max-width: 700px; }
.d2 .process-head h2 em { font-style: italic; }
.d2 .step-row { display: grid; grid-template-columns: 80px 1fr 1fr 200px; padding: 40px 0; border-top: 1px solid var(--line); gap: 40px; align-items: start; transition: all 0.3s; }
.d2 .step-row:hover { padding-left: 12px; }
.d2 .step-row:last-child { border-bottom: 1px solid var(--line); }
.d2 .step-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400; font-size: 22px; color: var(--accent); }
.d2 .step-row h4 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; letter-spacing: -0.01em; }
.d2 .step-row p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.d2 .step-row .meta { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-align: right; }

/* D2 Journal — list style */
.d2-journal { padding: 0 80px 160px; max-width: 1280px; margin: 0 auto; }
.d2-journal-row { display: grid; grid-template-columns: 80px 200px 1fr 120px; padding: 28px 0; border-top: 1px solid var(--line); gap: 40px; align-items: center; text-decoration: none; color: inherit; transition: all 0.3s; }
.d2-journal-row:hover { padding-left: 12px; }
.d2-journal-row:last-child { border-bottom: 1px solid var(--line); }
.d2-jr-num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; color: var(--accent); }
.d2-jr-tag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.d2-jr-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; }
.d2-jr-date { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-align: right; }

.d2 .cta { background: var(--ink); color: var(--bg); padding: 140px 80px; text-align: center; }
.d2 .cta-eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-bottom: 40px; }
.d2 .cta h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.02em; max-width: 900px; margin: 0 auto; }
.d2 .cta h2 em { font-style: italic; color: var(--accent); }
.d2 .cta-btn { margin-top: 48px; font-size: 13px; letter-spacing: 0.06em; padding: 18px 38px; background: var(--bg); color: var(--ink); border: none; cursor: pointer; border-radius: 999px; font-family: inherit; font-weight: 500; }

.d2 .footer { padding: 32px 80px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.06em; background: var(--ink); color: rgba(255,255,255,0.5); }


/* ════════════════════════════════════════════════
   DESIGN 03 — HANOK MODERN
   ════════════════════════════════════════════════ */
.d3 {
    --bg: #f5f0e6; --bg-alt: #ede5d3; --ink: #1a1612;
    --accent: #c44a2a; --jade: #2d5a3d; --muted: #6b5d4a;
    background: var(--bg); color: var(--ink);
    font-family: 'Noto Sans KR', sans-serif; font-weight: 400; position: relative;
}
.d3::before {
    content: ''; position: fixed; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 10% 10%, rgba(196,74,42,0.04) 1px, transparent 1px), radial-gradient(circle at 80% 60%, rgba(26,22,18,0.025) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px; opacity: 0.6;
}
.d3 > * { position: relative; z-index: 1; }

.d3 .nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 56px; border-bottom: 1px solid rgba(26,22,18,0.12); }
.d3 .nav-logo { display: flex; align-items: baseline; gap: 12px; }
.d3 .nav-logo .kr { font-family: 'Noto Serif KR', serif; font-weight: 700; font-size: 22px; color: var(--accent); }
.d3 .nav-logo .en { font-family: 'Cardo', serif; font-style: italic; font-size: 15px; letter-spacing: 0.1em; color: var(--ink); }
.d3 .nav-links { display: flex; gap: 36px; font-size: 13px; }
.d3 .nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.d3 .nav-links a span { font-family: 'Cardo', serif; font-style: italic; color: var(--muted); margin-left: 4px; font-size: 11px; }

.d3 .hero { padding: 80px 56px 80px; position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; min-height: 70vh; }
.d3 .hero-kr { font-family: 'Noto Serif KR', serif; font-weight: 500; font-size: 16px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 32px; }
.d3 .hero h1 { font-family: 'Cardo', serif; font-weight: 400; font-size: clamp(56px, 7vw, 96px); line-height: 1.0; letter-spacing: -0.02em; }
.d3 .hero h1 .kr-accent { font-family: 'Noto Serif KR', serif; font-weight: 500; color: var(--accent); display: inline-block; font-size: 0.7em; vertical-align: top; margin: 0 4px; }
.d3 .hero h1 em { font-style: italic; color: var(--jade); font-weight: 400; }
.d3 .hero-sub { margin-top: 36px; font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 480px; }
.d3 .hero-sub strong { color: var(--ink); font-weight: 500; }
.d3 .hero-actions { margin-top: 44px; display: flex; gap: 16px; align-items: center; }
.d3 .btn-primary { font-family: 'Noto Sans KR', sans-serif; font-weight: 500; font-size: 14px; padding: 16px 32px; background: var(--accent); color: var(--bg); border: none; cursor: pointer; border-radius: 2px; transition: all 0.3s; }
.d3 .btn-primary:hover { background: var(--ink); }
.d3 .btn-ghost { font-family: 'Cardo', serif; font-style: italic; font-size: 16px; background: transparent; color: var(--ink); cursor: pointer; border: none; padding: 16px 8px; border-bottom: 1px solid var(--ink); text-decoration: none; }

.d3 .hero-visual { position: relative; aspect-ratio: 3/4; }
.d3 .hero-visual .circle { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #d4a373 0%, #8b5a3c 60%, #3d2820 100%); border-radius: 50%; box-shadow: 0 30px 80px rgba(0,0,0,0.15); }
.d3 .hero-visual .stamp { position: absolute; bottom: -20px; right: -20px; width: 90px; height: 90px; background: var(--accent); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--bg); font-family: 'Noto Serif KR', serif; font-weight: 700; transform: rotate(-12deg); box-shadow: 0 10px 30px rgba(196,74,42,0.3); }
.d3 .hero-visual .stamp .kr { font-size: 17px; letter-spacing: 0.05em; }
.d3 .hero-visual .stamp .en { font-family: 'Cardo', serif; font-style: italic; font-size: 11px; letter-spacing: 0.1em; font-weight: 400; margin-top: 2px; }
.d3 .hero-vertical { position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: 'Cardo', serif; font-style: italic; font-size: 12px; letter-spacing: 0.5em; color: var(--muted); }

.d3 .principles { background: var(--bg-alt); padding: 100px 56px; }
.d3 .principles-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 80px; align-items: end; }
.d3 .principles-head .kr-label { font-family: 'Noto Serif KR', serif; font-weight: 500; color: var(--accent); font-size: 14px; letter-spacing: 0.3em; margin-bottom: 24px; }
.d3 .principles-head h2 { font-family: 'Cardo', serif; font-weight: 400; font-size: 56px; line-height: 1.1; letter-spacing: -0.02em; }
.d3 .principles-head h2 em { font-style: italic; color: var(--jade); }
.d3 .principles-head .quote { font-family: 'Noto Serif KR', serif; font-weight: 400; font-size: 17px; line-height: 1.8; color: var(--muted); }
.d3 .principles-head .quote::before { content: '「'; font-family: 'Noto Serif KR', serif; color: var(--accent); font-size: 28px; line-height: 0; }
.d3 .principles-head .quote::after { content: '」'; font-family: 'Noto Serif KR', serif; color: var(--accent); font-size: 28px; line-height: 0; }

.d3 .principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.d3 .principle { padding: 48px 36px; background: var(--bg); border: 1px solid rgba(26,22,18,0.08); margin-right: -1px; margin-bottom: -1px; transition: all 0.3s; }
.d3 .principle:hover { background: var(--bg-alt); }
.d3 .principle .kr-title { font-family: 'Noto Serif KR', serif; font-weight: 500; font-size: 24px; color: var(--accent); margin-bottom: 8px; }
.d3 .principle .en-title { font-family: 'Cardo', serif; font-style: italic; font-size: 14px; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 32px; text-transform: uppercase; }
.d3 .principle h4 { font-family: 'Cardo', serif; font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 16px; }
.d3 .principle p { font-size: 15px; line-height: 1.7; color: var(--muted); }

.d3 .process { padding: 120px 56px; }
.d3 .process-head { text-align: center; margin-bottom: 80px; }
.d3 .process-head .kr { font-family: 'Noto Serif KR', serif; color: var(--accent); font-size: 14px; letter-spacing: 0.3em; margin-bottom: 20px; }
.d3 .process-head h2 { font-family: 'Cardo', serif; font-weight: 400; font-size: 56px; letter-spacing: -0.02em; }
.d3 .process-head h2 em { font-style: italic; color: var(--jade); }

.d3 .timeline { max-width: 900px; margin: 0 auto; border-left: 1px solid var(--ink); padding-left: 60px; }
.d3 .timeline-item { padding-bottom: 56px; position: relative; }
.d3 .timeline-item::before { content: ''; position: absolute; left: -65px; top: 6px; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.d3 .timeline-item .day { font-family: 'Cardo', serif; font-style: italic; font-size: 14px; color: var(--muted); letter-spacing: 0.15em; margin-bottom: 8px; }
.d3 .timeline-item h4 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.d3 .timeline-item h4 .kr { font-family: 'Noto Serif KR', serif; font-weight: 500; font-size: 24px; color: var(--accent); }
.d3 .timeline-item h4 .en { font-family: 'Cardo', serif; font-weight: 400; font-size: 24px; color: var(--ink); }
.d3 .timeline-item p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 560px; }

/* D3 Journal */
.d3-journal { padding: 100px 56px; background: var(--bg-alt); }
.d3-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.d3-journal-card { text-decoration: none; color: inherit; background: var(--bg); padding: 0 0 28px; border: 1px solid rgba(26,22,18,0.08); transition: all 0.3s; }
.d3-journal-card:hover { transform: translateY(-4px); }
.d3-jc-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #8b5a3c; }
.d3-jc-img-placeholder { background: radial-gradient(circle at 50% 50%, #d4a373 0%, #8b5a3c 60%, #3d2820 100%); }
.d3-jc-tag { font-family: 'Noto Serif KR', serif; font-weight: 500; color: var(--accent); font-size: 13px; padding: 20px 28px 0; }
.d3-journal-card h4 { font-family: 'Cardo', serif; font-weight: 400; font-size: 24px; line-height: 1.2; padding: 8px 28px; }
.d3-jc-date { font-family: 'Cardo', serif; font-style: italic; font-size: 13px; color: var(--muted); padding: 0 28px; }

.d3 .cta { background: var(--ink); color: var(--bg); padding: 120px 56px; text-align: center; position: relative; overflow: hidden; }
.d3 .cta::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.3; }
.d3 .cta-kr { font-family: 'Noto Serif KR', serif; color: var(--accent); font-size: 14px; letter-spacing: 0.3em; margin-bottom: 32px; position: relative; z-index: 1; }
.d3 .cta h2 { font-family: 'Cardo', serif; font-weight: 400; font-size: clamp(48px, 6vw, 80px); line-height: 1.05; letter-spacing: -0.02em; max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.d3 .cta h2 em { font-style: italic; color: var(--accent); }
.d3 .cta-btn { margin-top: 48px; font-family: 'Noto Sans KR', sans-serif; font-weight: 500; font-size: 14px; padding: 18px 38px; background: var(--accent); color: var(--bg); border: none; cursor: pointer; border-radius: 2px; position: relative; z-index: 1; }

.d3 .footer { padding: 32px 56px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.d3 .footer .kr { font-family: 'Noto Serif KR', serif; }


/* ════════════════════════════════════════════════
   DESIGN 04 — SANCTUARY WELLNESS
   ════════════════════════════════════════════════ */
.d4 {
    --bg: #f3eee5; --sage: #87917b; --sage-dark: #4a5347;
    --blush: #d9b5a5; --terra: #b56b4a; --ink: #3a352d; --muted: #7a7268;
    background: var(--bg); color: var(--ink);
    font-family: 'Jost', sans-serif; font-weight: 400;
}
.d4 .nav { display: flex; justify-content: space-between; align-items: center; padding: 32px 56px; }
.d4 .nav-logo { font-family: 'Italiana', serif; font-size: 28px; letter-spacing: 0.32em; text-transform: uppercase; }
.d4 .nav-links { display: flex; gap: 40px; font-size: 13px; letter-spacing: 0.08em; }
.d4 .nav-links a { color: var(--ink); text-decoration: none; }
.d4 .nav-cta { font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 0.08em; padding: 14px 28px; background: var(--sage-dark); color: var(--bg); border: none; cursor: pointer; border-radius: 999px; }

.d4 .hero { padding: 60px 56px 100px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.d4 .hero-text { position: relative; z-index: 2; }
.d4 .hero-eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--terra); margin-bottom: 32px; display: flex; align-items: center; gap: 16px; }
.d4 .hero-eyebrow::before { content: '⌇'; font-size: 24px; color: var(--sage); }
.d4 .hero h1 { font-family: 'Italiana', serif; font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: 1.0; letter-spacing: -0.005em; }
.d4 .hero h1 .accent { color: var(--terra); font-family: 'DM Serif Display', serif; font-style: italic; }
.d4 .hero-sub { margin-top: 36px; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 460px; }
.d4 .hero-actions { margin-top: 48px; display: flex; gap: 16px; }
.d4 .btn-primary { font-size: 13px; letter-spacing: 0.08em; padding: 18px 32px; background: var(--sage-dark); color: var(--bg); border: none; cursor: pointer; border-radius: 999px; font-family: inherit; font-weight: 500; }
.d4 .btn-ghost { font-size: 13px; letter-spacing: 0.08em; padding: 18px 32px; background: transparent; color: var(--ink); cursor: pointer; border: 1px solid var(--ink); border-radius: 999px; font-family: inherit; }

.d4 .hero-visual { position: relative; aspect-ratio: 4/5; }
.d4 .hero-visual .blob { position: absolute; top: 0; right: 0; width: 90%; height: 80%; background: linear-gradient(160deg, var(--blush) 0%, var(--terra) 100%); border-radius: 50% 50% 45% 55% / 60% 50% 50% 40%; }
.d4 .hero-visual .blob2 { position: absolute; bottom: 0; left: 0; width: 70%; height: 60%; background: var(--sage); opacity: 0.85; border-radius: 55% 45% 50% 50% / 50% 60% 40% 50%; mix-blend-mode: multiply; }
.d4 .hero-visual .leaf { position: absolute; top: 30%; left: -10%; width: 120px; height: 200px; background: var(--sage-dark); border-radius: 100% 0 100% 0; transform: rotate(25deg); opacity: 0.7; }

.d4 .ribbon { background: var(--sage-dark); color: var(--bg); padding: 28px 0; overflow: hidden; white-space: nowrap; }
.d4 .ribbon-inner { display: inline-flex; gap: 64px; animation: scroll-d4 50s linear infinite; font-family: 'Italiana', serif; font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; }
.d4 .ribbon-inner span::after { content: ' ◊ '; color: var(--blush); margin-left: 64px; }
@keyframes scroll-d4 { to { transform: translateX(-50%); } }

.d4 .pillars { padding: 120px 56px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.d4 .pillars-head .label { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--terra); margin-bottom: 24px; }
.d4 .pillars-head h2 { font-family: 'Italiana', serif; font-size: 56px; line-height: 1.1; margin-bottom: 24px; }
.d4 .pillars-head h2 em { font-family: 'DM Serif Display', serif; font-style: italic; color: var(--terra); }
.d4 .pillars-head p { font-size: 17px; line-height: 1.7; color: var(--muted); }

.d4 .pillar-list { display: flex; flex-direction: column; gap: 0; }
.d4 .pillar { display: grid; grid-template-columns: 60px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid rgba(58,53,45,0.15); align-items: start; }
.d4 .pillar:last-child { border-bottom: 1px solid rgba(58,53,45,0.15); }
.d4 .pillar-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; font-family: 'Italiana', serif; font-size: 22px; color: var(--ink); }
.d4 .pillar:nth-child(2) .pillar-icon { background: var(--sage); }
.d4 .pillar:nth-child(3) .pillar-icon { background: var(--terra); color: var(--bg); }
.d4 .pillar:nth-child(4) .pillar-icon { background: var(--sage-dark); color: var(--bg); }
.d4 .pillar h4 { font-family: 'Italiana', serif; font-size: 28px; margin-bottom: 8px; letter-spacing: 0.01em; }
.d4 .pillar p { font-size: 16px; line-height: 1.65; color: var(--muted); }

.d4 .journey { background: var(--sage-dark); color: var(--bg); padding: 120px 56px; border-radius: 60px 60px 0 0; margin-top: 60px; position: relative; overflow: hidden; }
.d4 .journey::before { content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px; background: var(--terra); opacity: 0.15; border-radius: 50%; }
.d4 .journey-head { text-align: center; margin-bottom: 80px; }
.d4 .journey-head .label { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--blush); margin-bottom: 20px; }
.d4 .journey-head h2 { font-family: 'Italiana', serif; font-size: 60px; line-height: 1.05; }
.d4 .journey-head h2 em { font-family: 'DM Serif Display', serif; font-style: italic; color: var(--blush); }
.d4 .journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.d4 .journey-card { background: rgba(255,255,255,0.04); padding: 32px 28px; border-radius: 28px; border: 1px solid rgba(255,255,255,0.1); }
.d4 .journey-card .num { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 32px; color: var(--blush); margin-bottom: 16px; }
.d4 .journey-card h4 { font-family: 'Italiana', serif; font-size: 22px; margin-bottom: 12px; color: var(--bg); }
.d4 .journey-card p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.7); }

/* D4 Journal */
.d4-journal { padding: 120px 56px; }
.d4-journal .journey-head { text-align: center; margin-bottom: 60px; }
.d4-journal .journey-head .label { color: var(--terra); }
.d4-journal .journey-head h2 { color: var(--ink); }
.d4-journal .journey-head h2 em { color: var(--terra); }
.d4-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1200px; margin: 0 auto; }
.d4-journal-card { text-decoration: none; color: inherit; background: rgba(255,255,255,0.5); padding: 0 0 28px; border-radius: 24px; overflow: hidden; transition: all 0.3s; }
.d4-journal-card:hover { transform: translateY(-4px); }
.d4-jc-img { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.d4-jc-img-placeholder { background: linear-gradient(160deg, var(--blush) 0%, var(--terra) 100%); }
.d4-jc-tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); padding: 24px 28px 4px; }
.d4-journal-card h4 { font-family: 'Italiana', serif; font-size: 24px; padding: 4px 28px 12px; line-height: 1.2; }
.d4-journal-card p { font-size: 14px; color: var(--muted); line-height: 1.55; padding: 0 28px; }

.d4 .cta { padding: 140px 56px; text-align: center; position: relative; }
.d4 .cta::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 600px; background: radial-gradient(circle, var(--blush) 0%, transparent 70%); opacity: 0.4; z-index: 0; }
.d4 .cta-content { position: relative; z-index: 1; }
.d4 .cta h2 { font-family: 'Italiana', serif; font-size: clamp(48px, 6vw, 88px); line-height: 1.05; max-width: 900px; margin: 0 auto 28px; }
.d4 .cta h2 em { font-family: 'DM Serif Display', serif; font-style: italic; color: var(--terra); }
.d4 .cta p { font-size: 18px; color: var(--muted); max-width: 500px; margin: 0 auto 40px; line-height: 1.6; }
.d4 .cta-btn { font-size: 14px; letter-spacing: 0.08em; padding: 20px 40px; background: var(--sage-dark); color: var(--bg); border: none; cursor: pointer; border-radius: 999px; font-family: inherit; font-weight: 500; }

.d4 .footer { padding: 32px 56px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; border-top: 1px solid rgba(58,53,45,0.15); }


/* ════════════════════════════════════════════════
   DESIGN 05 — BOLD CONTEMPORARY
   ════════════════════════════════════════════════ */
.d5 {
    --bg: #ebe7df; --ink: #0f0f0f; --accent: #e84a1f; --muted: #5a5a5a;
    background: var(--bg); color: var(--ink);
    font-family: 'Archivo', sans-serif; font-weight: 500;
}
.d5 .nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 40px; border-bottom: 2px solid var(--ink); }
.d5 .nav-logo { font-family: 'Archivo Black', sans-serif; font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 6px; }
.d5 .nav-logo .slash { color: var(--accent); }
.d5 .nav-links { display: flex; gap: 8px; font-family: 'Space Mono', monospace; font-size: 12px; }
.d5 .nav-links a { color: var(--ink); text-decoration: none; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.d5 .nav-links a:hover { background: var(--ink); color: var(--bg); }
.d5 .nav-cta { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 22px; background: var(--accent); color: var(--bg); border: none; cursor: pointer; }

.d5 .hero { padding: 0; position: relative; display: grid; grid-template-columns: 1.4fr 1fr; border-bottom: 2px solid var(--ink); min-height: 75vh; }
.d5 .hero-text { padding: 60px 56px; border-right: 2px solid var(--ink); position: relative; }
.d5 .hero-tag { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 32px; display: flex; gap: 24px; }
.d5 .hero-tag span::before { content: '◆ '; color: var(--accent); }
.d5 .hero h1 { font-family: 'Archivo Black', sans-serif; font-weight: 900; font-size: clamp(64px, 9vw, 144px); line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase; }
.d5 .hero h1 .strike { background: var(--accent); color: var(--bg); padding: 0 12px; display: inline-block; }
.d5 .hero h1 em { font-style: italic; font-family: 'Archivo', serif; font-weight: 500; color: var(--accent); }
.d5 .hero-meta { position: absolute; bottom: 40px; left: 56px; right: 56px; display: flex; justify-content: space-between; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); border-top: 1px solid var(--ink); padding-top: 20px; }
.d5 .hero-meta strong { color: var(--ink); font-weight: 700; }

.d5 .hero-side { display: flex; flex-direction: column; }
.d5 .hero-img { flex: 1; background: var(--ink); position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); }
.d5 .hero-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent) 0%, transparent 50%); opacity: 0.4; }
.d5 .hero-img::after { content: '01 / 05'; position: absolute; bottom: 16px; right: 16px; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--bg); letter-spacing: 0.1em; }
.d5 .hero-img .crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border: 1px solid rgba(255,255,255,0.5); }
.d5 .hero-img .crosshair::before, .d5 .hero-img .crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,0.5); }
.d5 .hero-img .crosshair::before { top: -20px; bottom: -20px; left: 50%; width: 1px; }
.d5 .hero-img .crosshair::after { left: -20px; right: -20px; top: 50%; height: 1px; }
.d5 .hero-cta-block { padding: 40px 32px; background: var(--ink); color: var(--bg); }
.d5 .hero-cta-block .lbl { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--accent); letter-spacing: 0.16em; margin-bottom: 12px; }
.d5 .hero-cta-block p { font-family: 'Archivo', sans-serif; font-weight: 500; font-size: 16px; line-height: 1.45; margin-bottom: 24px; }
.d5 .hero-cta-block button { width: 100%; font-family: 'Archivo Black', sans-serif; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; padding: 18px; background: var(--accent); color: var(--bg); border: none; cursor: pointer; }
.d5 .hero-cta-block button:hover { background: var(--bg); color: var(--ink); }

.d5 .stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--ink); }
.d5 .stat { padding: 36px 28px; border-right: 2px solid var(--ink); position: relative; }
.d5 .stat:last-child { border-right: none; }
.d5 .stat-num { font-family: 'Archivo Black', sans-serif; font-weight: 900; font-size: 80px; line-height: 0.9; letter-spacing: -0.04em; }
.d5 .stat-num sup { font-size: 20px; color: var(--accent); vertical-align: top; }
.d5 .stat-label { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 16px; text-transform: uppercase; }

.d5 .services { padding: 100px 56px; border-bottom: 2px solid var(--ink); }
.d5 .services-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; }
.d5 .services-head h2 { font-family: 'Archivo Black', sans-serif; font-weight: 900; font-size: 96px; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.d5 .services-head h2 em { font-family: 'Archivo', serif; font-style: italic; font-weight: 500; color: var(--accent); }
.d5 .services-head .tag { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.d5 .service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.d5 .service { padding: 32px 28px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; transition: all 0.3s; cursor: pointer; }
.d5 .service:hover { background: var(--ink); color: var(--bg); }
.d5 .service:hover .service-num { color: var(--accent); }
.d5 .service-num { font-family: 'Archivo Black', sans-serif; font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.d5 .service h4 { font-family: 'Archivo Black', sans-serif; font-size: 24px; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px; text-transform: uppercase; }
.d5 .service p { font-size: 14px; line-height: 1.55; color: var(--muted); font-weight: 400; }
.d5 .service:hover p { color: rgba(255,255,255,0.7); }

/* D5 Journal */
.d5-journal { padding: 100px 56px; border-bottom: 2px solid var(--ink); }
.d5-journal .services-head { margin-bottom: 60px; }
.d5-journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.d5-journal-card { padding: 32px 28px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-decoration: none; color: inherit; transition: all 0.3s; }
.d5-journal-card:hover { background: var(--ink); color: var(--bg); }
.d5-journal-card:hover .d5-jc-num { color: var(--accent); }
.d5-jc-num { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); margin-bottom: 20px; letter-spacing: 0.1em; }
.d5-jc-tag { font-family: 'Archivo Black', sans-serif; font-size: 11px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.06em; }
.d5-journal-card h4 { font-family: 'Archivo Black', sans-serif; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 18px; }
.d5-jc-meta { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.d5-journal-card:hover .d5-jc-meta { color: rgba(255,255,255,0.6); }

.d5 .cta { background: var(--accent); color: var(--bg); padding: 100px 56px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: center; border-bottom: 2px solid var(--ink); }
.d5 .cta-tag { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.1em; margin-bottom: 24px; color: rgba(255,255,255,0.85); }
.d5 .cta h2 { font-family: 'Archivo Black', sans-serif; font-weight: 900; font-size: clamp(56px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.d5 .cta h2 em { font-family: 'Archivo', serif; font-style: italic; font-weight: 500; color: var(--ink); }
.d5 .cta-card { background: var(--ink); padding: 36px; border-radius: 4px; }
.d5 .cta-card label { display: block; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 8px; text-transform: uppercase; }
.d5 .cta-card input { width: 100%; padding: 14px 0; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3); color: var(--bg); font-family: 'Archivo', sans-serif; font-size: 16px; margin-bottom: 20px; outline: none; }
.d5 .cta-card input::placeholder { color: rgba(255,255,255,0.4); }
.d5 .cta-card button { width: 100%; margin-top: 16px; padding: 16px; font-family: 'Archivo Black', sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: var(--bg); border: none; cursor: pointer; }

.d5 .footer { padding: 24px 40px; display: flex; justify-content: space-between; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* Hide success/error messages by default; Ghost shows them when needed */
[data-members-form-success], [data-members-form-error] { display: none; }
[data-members-form-success].success, [data-members-form-error].error { display: block; }

/* Ghost pagination */
.pagination { display: flex; justify-content: center; gap: 24px; padding: 60px 0; font-family: 'Albert Sans', sans-serif; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.pagination a, .pagination .older, .pagination .newer { color: var(--accent); text-decoration: none; padding: 12px 22px; border: 1px solid currentColor; }
.pagination .page { color: var(--muted); }


/* Responsive */
@media (max-width: 1024px) {
    .d1 .hero, .d1 .editorial, .d2 .promise, .d3 .hero, .d3 .principles-head,
    .d4 .hero, .d4 .pillars, .d5 .hero, .d5 .cta {
        grid-template-columns: 1fr !important;
    }
    .d1 .values, .d1 .steps, .d2 .stats, .d3 .principle-grid,
    .d4 .journey-grid, .d5 .stats, .d5 .service-grid,
    .d1-journal .journal-grid, .d3-journal-grid, .d4-journal-grid, .d5-journal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .d1 .nav, .d2 .nav, .d3 .nav, .d4 .nav, .d5 .nav {
        padding-left: 24px !important; padding-right: 24px !important;
    }
    .d2 .step-row, .d2-journal-row { grid-template-columns: 60px 1fr !important; gap: 16px !important; }
    .d2 .step-row p, .d2 .step-row .meta, .d2-jr-tag, .d2-jr-date { display: none; }
}

@media (max-width: 640px) {
    .d1 .values, .d1 .steps, .d2 .stats, .d3 .principle-grid,
    .d4 .journey-grid, .d5 .stats, .d5 .service-grid,
    .d1-journal .journal-grid, .d3-journal-grid, .d4-journal-grid, .d5-journal-grid {
        grid-template-columns: 1fr !important;
    }
    .d1 .nav-links, .d2 .nav-links, .d3 .nav-links, .d4 .nav-links, .d5 .nav-links {
        display: none;
    }
    .d1 .cta { flex-direction: column; align-items: flex-start; }
}
