/* /ai page styles. Shared tokens, nav, buttons and footer are copied from views/about.ejs (premium theme). */
:root {
    /* Deep-space / charcoal base */
    --ink:        #0A0E1A;
    --ink-2:      #0E1424;
    --ink-3:      #131C33;
    /* Off-white canvas */
    --canvas:     #FAFAF8;
    --surface:    #FFFFFF;
    --surface-2:  #F4F5F7;
    /* Text */
    --text:       #0B1220;
    --text-2:     #4A5568;
    --text-3:     #8A94A6;
    --on-dark:    #F5F7FB;
    --on-dark-2:  #9AA6BD;
    /* Hairlines */
    --line:       rgba(11,18,32,0.09);
    --line-2:     rgba(11,18,32,0.16);
    --line-dark:  rgba(255,255,255,0.10);
    --line-dark-2:rgba(255,255,255,0.18);
    /* Brand — refined enterprise blue */
    --brand:      #2E5CFF;
    --brand-600:  #2449D6;
    --brand-soft: rgba(46,92,255,0.10);
    --brand-glow: rgba(46,92,255,0.30);
    /* Low-saturation status accents */
    --ok:         #4F9D77;
    --ok-soft:    rgba(79,157,119,0.12);
    --warn:       #C79A4B;
    --warn-soft:  rgba(199,154,75,0.14);
    --bad:        #C36B72;
    --bad-soft:   rgba(195,107,114,0.12);
    /* Radii & shadow */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(11,18,32,0.04), 0 2px 8px rgba(11,18,32,0.04);
    --shadow:    0 4px 12px rgba(11,18,32,0.06), 0 12px 40px rgba(11,18,32,0.08);
    --shadow-lg: 0 20px 60px rgba(11,18,32,0.14);
    --maxw: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    font-family: 'Manrope', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--canvas);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
    overflow-x: hidden;
}
/* ===== Fixed office parallax backdrop: a real position:fixed layer behind all content.
   Light content sections are transparent so this faint office wash shows through between
   the white cards; JS fades it in whenever the light content is in view. ===== */
.para-bg {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-position: center; background-repeat: no-repeat; background-size: cover;
    opacity: 0; transition: opacity 0.45s ease; will-change: opacity;
}
.para-office { background-image: linear-gradient(rgba(250,250,248,0.80), rgba(250,250,248,0.86)), url('/images/office-bg.webp?v=4'); }

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.12;
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-glow); color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.bmp { font-family: 'Pacifico', cursive; font-weight: 400; font-style: normal; letter-spacing: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--brand);
}
.eyebrow::before {
    content: ''; width: 22px; height: 1px; background: var(--brand); opacity: 0.6;
}
.eyebrow.on-dark { color: #8FB0FF; }
.eyebrow.on-dark::before { background: #8FB0FF; }

section { position: relative; }
.section-pad { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: inherit; font-size: 0.95rem; font-weight: 600;
    padding: 0.9rem 1.55rem; border-radius: 999px; cursor: pointer;
    border: 1px solid transparent; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap; letter-spacing: -0.01em;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.25s ease; }
.btn-primary {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    background: linear-gradient(135deg, #4A72FF 0%, #2E5CFF 52%, #2449D6 100%);
    box-shadow: 0 8px 24px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.38), inset 0 -1px 0 rgba(0,0,0,0.12);
}
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; z-index: 1;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55) 50%, transparent);
    transform: skewX(-18deg); pointer-events: none;
    animation: btn-sheen 6s ease-in-out 1.5s infinite;
}
.btn-primary > * { position: relative; z-index: 2; }
@keyframes btn-sheen { 0%, 82%, 100% { left: -130%; } 90% { left: 150%; } }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.14); }
.btn-primary:hover::after { animation: btn-sheen-hover 0.85s ease; }
@keyframes btn-sheen-hover { 0% { left: -130%; } 100% { left: 150%; } }
.btn-primary:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { animation: none; } }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); background: var(--surface); transform: translateY(-2px); }
.btn-ghost.on-dark { color: var(--on-dark); border-color: var(--line-dark-2); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.5); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

/* ============ Navigation ============ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: all 0.3s ease; border-bottom: 1px solid transparent;
    background: var(--ink);
}
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav.scrolled {
    background: var(--ink); border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 6px 24px -10px rgba(0,0,0,0.6);
}
.nav.scrolled .nav-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand-logo {
    position: relative; display: inline-flex; align-items: center; line-height: 0; gap: 0;
    font-weight: 700; font-size: 1.12rem; letter-spacing: -0.03em; color: var(--on-dark);
    transform-origin: left center; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), color 0.3s ease;
}
.brand-logo:hover { transform: scale(1.04); }
.nav.scrolled .brand-logo { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--on-dark-2);
    padding: 0.5rem 0.85rem; border-radius: 8px; transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-dark); background: rgba(255,255,255,0.07); }
.nav-cta { display: flex; align-items: center; gap: 0.5rem; }
.nav-cta .btn { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.45rem; color: var(--on-dark); line-height: 0; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Animated video logo in the nav (loops) */
.brand-video-logo {
    height: 54px; width: auto; display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-composite: intersect;
}
.brand-text {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap;
    font-family: 'Pacifico', cursive; font-weight: 400; font-size: 1.55rem; line-height: 1; color: #EBA24E;
    opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .brand-video-logo { display: none; }
    .brand-text { position: static; transform: none; opacity: 1; }
}

/* ============ Section header ============ */
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); margin: 1rem 0 0.9rem; font-weight: 700; }
.sec-head p { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--text-2); line-height: 1.7; }
.sec-head .center-eyebrow { justify-content: center; }

/* ============ Footer (from landing-premium) ============ */
.footer { background: var(--ink-2); color: var(--on-dark-2); padding: 3.5rem 0 2rem; border-top: 1px solid var(--line-dark); }
.footer-content { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem,4vw,2.5rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer .logo { font-family: 'Pacifico', cursive; font-weight: 400; color: #EBA24E; font-size: 1.5rem; letter-spacing: 0; }
.footer .social-links { display: flex; gap: 0.6rem; }
.footer .social-link { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--on-dark-2); transition: all 0.2s ease; position: relative; }
.footer .social-link svg { width: 19px; height: 19px; fill: currentColor; }
.footer .social-link[title="Line"] { color: #06C755; border-color: rgba(6,199,85,0.45); }
.footer .social-link[title="Instagram"] { color: #E4405F; border-color: rgba(228,64,95,0.45); }
.footer .social-link[title="Facebook"] { color: #1877F2; border-color: rgba(24,119,242,0.45); }
.footer .social-link[title="Copy email"] { color: #EBA24E; border-color: rgba(235,162,78,0.45); }
.footer .social-link:hover { background: rgba(255,255,255,0.06); border-color: currentColor; transform: translateY(-2px); }
.footer .copy-toast { position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; white-space: nowrap; }
.footer .copy-toast.show { opacity: 1; }
.footer-links { max-width: var(--maxw); margin: 2rem auto 0; padding: 1.75rem clamp(1.25rem,4vw,2.5rem) 0; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.footer-links a { font-size: 0.85rem; color: var(--on-dark-2); transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: 1.5rem auto 0; padding: 0 clamp(1.25rem,4vw,2.5rem); font-size: 0.8rem; color: var(--text-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.5rem; text-align: center; }

/* ============ Scroll reveal ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }


/* ============================================================
   /ai — "流程綻放" (Process Bloom)
   Dark editorial canvas; tangled lines straighten, then bloom.
============================================================ */
:root {
    --gold:      #EBA24E;
    --gold-soft: rgba(235,162,78,0.14);
    --serif: 'Noto Serif TC', 'Songti TC', serif;
    --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
body.ai2 { background: var(--ink); color: var(--on-dark); }
body.ai2 h1, body.ai2 h2, body.ai2 h3, body.ai2 h4 { color: #fff; text-wrap: balance; }
body.ai2 ::selection { background: var(--gold); color: var(--ink); }

/* film grain over everything (pointer-transparent) */
.grain {
    position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
    60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}

.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
.label { color: var(--on-dark-2); display: inline-flex; align-items: center; gap: 0.7rem; }
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.5; }
.label.gold { color: var(--gold); }

.display {
    font-family: var(--serif); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08;
}

/* line-mask reveal: each .ln wraps one visual line */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ln > span { display: inline-block; will-change: transform; }

/* ============ HERO (pinned canvas story) ============ */
.bloom-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.bloom-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bloom-hero .vignette {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, rgba(10,14,26,0.85) 100%);
}
.hero-stage {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
    padding: 6rem clamp(1.25rem, 4vw, 2.5rem) 4rem; pointer-events: none;
}
.hero-stage .beat { grid-area: 1 / 1; max-width: 62rem; }
.hero-stage .beat a, .hero-stage .beat button { pointer-events: auto; }
.beat-1 h1 { font-size: clamp(1.9rem, 6.2vw, 5.6rem); margin: 1.4rem 0 1.6rem; }
.beat-1 h1 .ln > span { white-space: nowrap; }
.beat-1 h1 em { font-style: normal; color: var(--gold); }
.beat-1 p { color: var(--on-dark-2); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.8; max-width: 36rem; margin: 0 auto 2.2rem; }
.beat-2, .beat-3 { opacity: 0; align-self: end; margin-bottom: 9vh; }
.beat-2 .display, .beat-3 .display { font-size: clamp(2rem, 5.6vw, 4.8rem); }
.beat-3 .display em { font-style: normal; color: var(--gold); }
.beat .sub { margin-top: 1.2rem; color: var(--on-dark-2); font-size: 1.05rem; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
    position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
    color: var(--on-dark-2); display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--on-dark-2), transparent); animation: cue 2s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero-progress {
    position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 1.1rem; color: var(--on-dark-2);
}
.hero-progress span { opacity: 0.35; transition: opacity 0.4s ease, color 0.4s ease; }
.hero-progress span.on { opacity: 1; color: #fff; }

/* ============ Section scaffolding ============ */
.sec { position: relative; padding: clamp(6rem, 12vw, 11rem) 0; }
.sec-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 5rem); align-items: end; }
.sec-intro h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.12; letter-spacing: -0.02em; }
.sec-intro p { text-wrap: balance; color: var(--on-dark-2); font-size: 1.05rem; line-height: 1.8; max-width: 34rem; margin-top: 1rem; }
.hair { height: 1px; background: var(--line-dark); }

/* ============ PAIN: word-by-word light-up ============ */
.pain-list { display: grid; gap: clamp(2rem, 4vw, 3.2rem); }
.pain-item { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: baseline; }
.pain-item .mono { color: var(--gold); }
.pain-item p {
    font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.8rem); line-height: 1.35; letter-spacing: -0.01em;
}
.pain-item p .w { color: rgba(245,247,251,0.16); transition: color 0.2s linear; }
.pain-item p .w.lit { color: #fff; }

/* ============ METHOD: pinned horizontal ============ */
.method { padding-bottom: 0; }
.method-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.method-track { display: flex; gap: 0; will-change: transform; padding-left: clamp(1.25rem, 8vw, 8rem); }
.method-head { flex: 0 0 auto; width: min(34rem, 80vw); padding-right: 6vw; align-self: center; }
.method-head h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.1; margin: 1.2rem 0; }
.method-head p { color: var(--on-dark-2); line-height: 1.8; }
.panel {
    flex: 0 0 auto; width: min(36rem, 84vw); height: min(70vh, 34rem); margin-right: 4vw;
    border: 1px solid var(--line-dark); border-radius: 28px; padding: clamp(1.6rem, 3vw, 2.6rem);
    background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
    display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.panel .num { font-family: var(--serif); font-weight: 900; font-size: clamp(5rem, 11vw, 9rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.22); }
.panel h3 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); margin: 0.6rem 0 0.8rem; }
.panel p { color: var(--on-dark-2); line-height: 1.8; font-size: 1.1rem; max-width: 26rem; }
.panel .panel-note { margin-top: 0.8rem; font-size: 0.85rem; color: var(--gold); }
.panel svg.illus { position: absolute; right: -4%; top: 8%; width: 62%; height: auto; opacity: 0.95; }
.panel svg.illus path, .panel svg.illus circle { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.panel--gold { border-color: rgba(235,162,78,0.35); background: linear-gradient(160deg, rgba(235,162,78,0.10), rgba(255,255,255,0.01)); }
.panel--gold .num { -webkit-text-stroke-color: rgba(235,162,78,0.55); }

/* ============ CASES: sticky index + stories ============ */
.cases2 { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); }
.case-index { position: sticky; top: 7rem; align-self: start; }
.case-index h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 3.1vw, 3rem); line-height: 1.12; margin: 1.2rem 0 1rem; }
.case-index p { color: var(--on-dark-2); line-height: 1.8; font-size: 0.95rem; margin-bottom: 2rem; }
.case-index ol { list-style: none; display: grid; gap: 0.2rem; border-top: 1px solid var(--line-dark); }
.case-index li a {
    display: grid; grid-template-columns: 2.6rem 1fr; padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark-2); transition: color 0.3s ease, padding-left 0.4s var(--ease-out);
}
.case-index li a.on { color: #fff; padding-left: 0.6rem; }
.case-index li a.on .mono { color: var(--gold); }
.stories { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.story { border: 1px solid var(--line-dark); border-radius: 28px; padding: clamp(1.8rem, 3.4vw, 3rem); background: rgba(255,255,255,0.02); position: relative; overflow: hidden; }
.story .big { position: absolute; right: 1.5rem; top: 0.4rem; font-family: var(--serif); font-weight: 900; font-size: clamp(6rem, 12vw, 10rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.08); line-height: 1; pointer-events: none; }
.story .mono { color: var(--gold); }
.story h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; margin: 1rem 0 1rem; max-width: 80%; position: relative; text-wrap: balance; }
.story .case-line { color: var(--on-dark-2); font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.8; position: relative; }

/* ============ SELF: marquee ============ */
.self2 { text-align: center; }
.self2 h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.15; margin: 1.2rem auto 1.2rem; max-width: 18ch; }
.self2 > .container > p { color: var(--on-dark-2); max-width: 36rem; margin: 0 auto; line-height: 1.85; }
.marquee { margin-top: clamp(3rem, 6vw, 5rem); overflow: hidden; border-block: 1px solid var(--line-dark); padding: 1.6rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 1.2rem; padding: 0 2.2rem; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 700; white-space: nowrap; }
.marquee-item svg { color: var(--gold); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ FAQ ============ */
.faq2 { border-top: 1px solid var(--line-dark); max-width: 54rem; }
.faq2 .faq-item { border-bottom: 1px solid var(--line-dark); }
.faq2 .faq-q {
    width: 100%; background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; color: #fff;
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.6rem 0;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600;
}
.faq2 .faq-q .ic { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.faq2 .faq-q .ic::before, .faq2 .faq-q .ic::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--gold); transform: translate(-50%,-50%); border-radius: 2px; transition: transform 0.4s var(--ease-out); }
.faq2 .faq-q .ic::before { width: 14px; height: 1.5px; }
.faq2 .faq-q .ic::after { width: 1.5px; height: 14px; }
.faq2 .faq-item.open .faq-q .ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq2 .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.faq2 .faq-a-inner { padding: 0 3rem 1.7rem 0; color: var(--on-dark-2); line-height: 1.85; }

/* ============ CTA ============ */
.cta2 { position: relative; text-align: center; padding: clamp(7rem, 14vw, 12rem) 0; overflow: hidden; }
.cta2 canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.45; }
.cta2 .container { position: relative; }
.cta2 h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 1.4rem 0; }
.cta2 h2 em { font-style: normal; color: var(--gold); }
.cta2 p { color: var(--on-dark-2); max-width: 32rem; margin: 0 auto 2.6rem; line-height: 1.8; }
.magnetic { will-change: transform; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 12px 40px -12px rgba(235,162,78,0.6); }
.btn-gold:hover { background: #F4B566; transform: translateY(-2px); }

/* ============ TRUST (shared partial) + /security ============ */
.cred-row { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 2.6rem; }
.cred { position: relative; display: flex; align-items: center; gap: 1.6rem; padding: 1.8rem 2rem; border: 1px solid rgba(235,162,78,0.28); border-radius: 24px; overflow: hidden;
    background: radial-gradient(120% 140% at 0% 0%, rgba(235,162,78,0.12), transparent 55%), rgba(255,255,255,0.02);
    transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.cred:hover { border-color: rgba(235,162,78,0.6); transform: translateY(-3px); }
.cred::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.07) 45%, transparent 60%); transform: translateX(-100%); transition: transform 0.9s var(--ease-out); }
.cred:hover::after { transform: translateX(100%); }
.cred-mark { position: relative; width: 96px; height: 96px; flex-shrink: 0; color: var(--gold); display: grid; place-items: center; }
.cred-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cred-mark span { font-family: var(--serif); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.02em; color: #fff; }
.cred-body { display: grid; gap: 0.3rem; }
.cred-scope { color: var(--gold); }
.cred-body strong { font-family: var(--serif); font-size: clamp(1.1rem, 1.45vw, 1.32rem); color: #fff; line-height: 1.35; }
.cred-issuer { color: var(--on-dark-2); font-size: 0.95rem; }
.cred-valid { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: #7ED0A8; margin-top: 0.3rem; }
.cred-valid i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.cred--placeholder { opacity: 0.55; border-style: dashed; }
.trust-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; margin-bottom: 2rem; }
.trust-points li { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); color: #fff; }
.trust-points svg { color: var(--gold); flex-shrink: 0; }
.trust-more { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-weight: 600; transition: gap 0.3s var(--ease-out); }
.trust-more:hover { gap: 0.9rem; }

.page-hero { padding: clamp(10rem, 18vw, 14rem) 0 clamp(4rem, 8vw, 6rem); position: relative; overflow: hidden; }
.page-hero .glow { position: absolute; top: -30%; right: -10%; width: 760px; height: 620px; background: radial-gradient(circle at center, rgba(235,162,78,0.16), transparent 62%); filter: blur(20px); pointer-events: none; }
.page-hero h1 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); margin: 1.4rem 0 1.4rem; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero p { color: var(--on-dark-2); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 34rem; line-height: 1.8; }
.practice-list { border-top: 1px solid var(--line-dark); }
.practice { display: grid; grid-template-columns: 5rem 1.1fr 1.6fr; gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line-dark); }
.practice .mono { color: var(--on-dark-2); }
.practice h3 { font-family: var(--serif); font-size: clamp(1.2rem, 2.1vw, 1.6rem); }
.practice p { color: var(--on-dark-2); line-height: 1.75; }
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.data-grid > div { border-top: 2px solid var(--line-dark-2); padding-top: 1.4rem; }
.data-grid > div:nth-child(2) { border-top-color: var(--brand); }
.data-grid > div:nth-child(3) { border-top-color: var(--gold); }
.data-grid h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 0.6rem; }
.data-grid p { color: var(--on-dark-2); line-height: 1.75; }

/* ============ Responsive / motion fallbacks ============ */
@media (max-width: 980px) {
    .sec-intro { grid-template-columns: 1fr; }
    .cases2 { grid-template-columns: 1fr; }
    .case-index { position: static; }
    .case-index ol { display: none; }
    .cred { padding: 1.4rem 1.4rem; gap: 1.1rem; }
    .cred-mark { width: 72px; height: 72px; }
    .cred-mark span { font-size: 1.15rem; }
    .practice { grid-template-columns: 3rem 1fr; }
    .practice p { grid-column: 2; }
    .data-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .nav-cta { margin-left: auto; }
    .nav-links.mobile-open {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink); padding: 1rem 1.5rem; gap: 0.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
    }
    .nav-links.mobile-open a { color: var(--on-dark); padding: 0.8rem 0.5rem; }
    .hero-progress { display: none; }
    /* horizontal pin becomes a vertical stack */
    .method-pin { height: auto; overflow: visible; display: block; }
    .method-track { flex-direction: column; padding: 0 clamp(1.25rem, 4vw, 2.5rem); gap: 1.25rem; transform: none !important; }
    .method-head { width: 100%; padding: 0 0 1rem; }
    .panel { width: 100%; height: auto; min-height: 22rem; margin-right: 0; }
    .pain-item { grid-template-columns: 1fr; gap: 0.4rem; }
}
@media (max-width: 560px) {
    .nav-cta .btn-ghost { display: none; }
    .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .grain, .marquee-track, .scroll-cue i { animation: none !important; }
    .pain-item p .w { color: #fff; }
    .beat-2, .beat-3 { display: none; }
}

/* ============ Shared editorial content pages (about, portfolio, faq, services, legal) ============ */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }
.watermark { position: absolute; right: -2vw; bottom: -0.18em; font-family: 'Pacifico', cursive; font-size: clamp(5rem, 16vw, 15rem); line-height: 1; color: rgba(235,162,78,0.06); pointer-events: none; white-space: nowrap; }
.statements { border-top: 1px solid var(--line-dark); }
.statement { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: clamp(1.8rem, 3.5vw, 2.8rem) 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.statement .mono { color: var(--gold); }
.statement p { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.4; color: #fff; }
.statement p span { color: var(--on-dark-2); }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.person { border: 1px solid var(--line-dark); border-radius: 28px; padding: clamp(1.8rem, 3.4vw, 2.8rem); background: rgba(255,255,255,0.02); display: grid; gap: 1.2rem; align-content: start; position: relative; overflow: hidden; }
.person-top { display: flex; align-items: center; gap: 1.2rem; }
.monogram { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(235,162,78,0.45); display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 1.8rem; color: var(--gold); flex-shrink: 0; }
.person h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); display: flex; align-items: center; gap: 0.6rem; }
.person h3 a { color: var(--on-dark-2); display: inline-flex; }
.person h3 a:hover { color: var(--gold); }
.person .mono { color: var(--gold); }
.person .edu { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; }
.person .edu svg { color: var(--gold); }
.person p { color: var(--on-dark-2); line-height: 1.85; }
.beliefs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.belief { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-dark); }
.belief img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.8); transition: transform 0.8s var(--ease-out), filter 0.6s ease; }
.belief:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.9); }
.belief::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,14,26,0.92) 100%); }
.belief div { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.3rem; z-index: 1; }
.belief h3 { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.6rem); margin-bottom: 0.35rem; }
.belief p { color: rgba(245,247,251,0.82); font-size: 0.93rem; line-height: 1.6; }
.cta-plain { text-align: center; padding: clamp(6rem, 12vw, 10rem) 0; position: relative; overflow: hidden; }
.cta-plain .glow { position: absolute; left: 50%; top: 10%; width: 720px; height: 520px; transform: translateX(-50%); background: radial-gradient(circle at center, rgba(235,162,78,0.14), transparent 62%); filter: blur(20px); pointer-events: none; }
.cta-plain .container { position: relative; }
.cta-plain h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.12; margin: 1.2rem 0; }
.cta-plain h2 em { font-style: normal; color: var(--gold); }
.cta-plain p { color: var(--on-dark-2); margin: 0 auto 2.4rem; max-width: 30rem; line-height: 1.8; }
.cta-plain .hero-cta { justify-content: center; }
@media (max-width: 980px) {
    .people { grid-template-columns: 1fr; }
    .beliefs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .statement { grid-template-columns: 1fr; gap: 0.4rem; }
    .beliefs { grid-template-columns: 1fr; }
    .belief { aspect-ratio: 4 / 3; }
}

/* ============ Portfolio ============ */
.showcase { display: grid; gap: clamp(4rem, 9vw, 7.5rem); }
.show { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.show:nth-child(even) { grid-template-columns: 1fr 1.55fr; }
.show:nth-child(even) .show-media { order: 2; }
.show-media { position: relative; padding-right: 9%; padding-bottom: 7%; }
.show-desk { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-dark-2); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); background: #111; }
.show-desk .bar { display: flex; gap: 6px; padding: 10px 12px; background: #161B29; border-bottom: 1px solid var(--line-dark); }
.show-desk .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.show-desk img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.show:hover .show-desk img { transform: scale(1.03); }
.show-phone { position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 19.5; border-radius: 26px; padding: 6px; background: #05070D; border: 1px solid var(--line-dark-2); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.85); }
.show-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 20px; display: block; }
.show-copy .num { font-family: var(--serif); font-weight: 900; font-size: clamp(3.5rem, 7vw, 6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(235,162,78,0.45); }
.show-copy .mono { color: var(--gold); display: block; margin: 1rem 0 0.6rem; }
.show-copy h3 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.show-copy .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.show-copy .tags span { font-size: 0.82rem; color: var(--on-dark); border: 1px solid var(--line-dark-2); border-radius: 999px; padding: 0.3rem 0.8rem; }
.show-copy blockquote { font-family: var(--serif); font-size: 1.25rem; color: #fff; border-left: 2px solid var(--gold); padding-left: 1rem; margin-bottom: 1.6rem; }
.show-copy blockquote small { display: block; font-family: inherit; font-size: 0.85rem; color: var(--on-dark-2); margin-top: 0.4rem; }
.visit { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; border-bottom: 1px solid var(--line-dark-2); padding-bottom: 0.25rem; transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s var(--ease-out); }
.visit:hover { color: var(--gold); border-color: var(--gold); gap: 0.8rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.work { display: block; border: 1px solid var(--line-dark); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,0.02); transition: border-color 0.4s ease, transform 0.4s var(--ease-out); }
.work:hover { border-color: rgba(235,162,78,0.5); transform: translateY(-4px); }
.work img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; filter: brightness(0.92); }
.work div { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: 0.3rem; }
.work strong { font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.work span { font-size: 0.88rem; color: var(--on-dark-2); }
.work-grid--compact { grid-template-columns: repeat(4, 1fr); }
.work-grid--compact strong { font-size: 1.05rem; }
@media (max-width: 980px) {
    .show, .show:nth-child(even) { grid-template-columns: 1fr; }
    .show:nth-child(even) .show-media { order: 0; }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .work-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .work-grid, .work-grid--compact { grid-template-columns: 1fr; }
    .show-phone { width: 30%; border-radius: 18px; padding: 4px; }
    .show-phone img { border-radius: 14px; }
}

/* ============ Legal / policy pages (dark editorial) ============ */
main.legal { max-width: 860px; margin: 0 auto; padding: clamp(9rem, 15vw, 12rem) clamp(1.25rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem); position: relative; }
main.legal::before { content: ''; position: absolute; top: 0; right: -20%; width: 620px; height: 520px; background: radial-gradient(circle at center, rgba(235,162,78,0.12), transparent 62%); filter: blur(20px); pointer-events: none; z-index: -1; }
.legal-header { margin-bottom: 2.4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-dark); }
.legal-header::before { content: 'Policy'; display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.legal-header h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; color: #fff; margin-bottom: 1rem; }
.legal-meta { color: var(--on-dark-2); font-size: 0.9rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.6rem; }
.legal-nav a { font-size: 0.88rem; padding: 0.45rem 1rem; border-radius: 999px; color: var(--on-dark-2); border: 1px solid var(--line-dark-2); transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.legal-nav a:hover { color: #fff; border-color: var(--gold); }
.legal-nav a.active { color: var(--ink); background: var(--gold); border-color: var(--gold); font-weight: 700; }
.legal-intro { color: var(--on-dark); font-size: 1.08rem; line-height: 1.95; margin-bottom: 2.4rem; padding: 1.4rem 1.6rem; border-left: 2px solid var(--gold); background: rgba(235,162,78,0.05); border-radius: 0 14px 14px 0; }
div.legal { counter-reset: none; }
div.legal h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.55rem); color: #fff; margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); scroll-margin-top: 6rem; }
div.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
div.legal h3 { font-size: 1.05rem; color: #fff; margin: 1.6rem 0 0.6rem; }
div.legal p { color: var(--on-dark-2); line-height: 1.95; margin-bottom: 1rem; }
div.legal ul, div.legal ol { margin: 0 0 1.2rem 1.3rem; color: var(--on-dark-2); }
div.legal li { line-height: 1.9; margin-bottom: 0.55rem; padding-left: 0.2rem; }
div.legal li::marker { color: var(--gold); }
div.legal a, .legal-contact a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
div.legal strong { color: #fff; font-weight: 600; }
div.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: 0.95rem; }
div.legal th, div.legal td { border-bottom: 1px solid var(--line-dark); padding: 0.75rem 0.6rem; text-align: left; color: var(--on-dark-2); vertical-align: top; }
div.legal th { color: #fff; }
.legal-contact { margin-top: 3rem; padding: 1.8rem 2rem; border: 1px solid rgba(235,162,78,0.3); border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(235,162,78,0.1), transparent 55%), rgba(255,255,255,0.02); color: var(--on-dark); line-height: 1.95; }
.legal-contact strong { color: #fff; }
@media (max-width: 560px) { .legal-intro { padding: 1.1rem 1.2rem; } .legal-contact { padding: 1.4rem 1.3rem; } }

/* ============ Blog index + post (dark editorial) ============ */
.blog-hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(9rem, 15vw, 12rem) clamp(1.25rem, 4vw, 2.5rem) 2.4rem; position: relative; }
.blog-hero::before { content: 'Journal'; display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.blog-hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.05; color: #fff; margin-bottom: 1rem; }
.blog-hero p { color: var(--on-dark-2); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 34rem; line-height: 1.8; }
.categories-bar { max-width: var(--maxw); margin: 0 auto 2.4rem; padding: 0 clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-btn { font: inherit; font-size: 0.88rem; padding: 0.45rem 1rem; border-radius: 999px; background: none; color: var(--on-dark-2); border: 1px solid var(--line-dark-2); cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease; }
.cat-btn:hover { color: #fff; border-color: var(--gold); }
.cat-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.posts-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-card { border: 1px solid var(--line-dark); border-radius: 22px; overflow: hidden; background: rgba(255,255,255,0.02); transition: border-color 0.4s ease, transform 0.4s var(--ease-out); }
.post-card:first-child { grid-column: 1 / -1; }
.post-card:first-child a { flex-direction: row; align-items: stretch; }
.post-card:first-child .post-cover { width: 58%; aspect-ratio: auto; min-height: 340px; flex-shrink: 0; }
.post-card:first-child .post-body { align-content: center; padding: 2rem 2.4rem; }
.post-card:hover { border-color: rgba(235,162,78,0.5); transform: translateY(-4px); }
.post-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-cover, .post-cover-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-cover-placeholder { display: grid; place-items: center; color: rgba(235,162,78,0.5); background: radial-gradient(120% 140% at 0% 0%, rgba(235,162,78,0.12), transparent 60%), #0E1424; }
.post-body { padding: 1.3rem 1.4rem 1.6rem; display: grid; gap: 0.6rem; }
.post-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.post-category { font-size: 0.75rem; font-weight: 700; color: #fff; padding: 0.2rem 0.65rem; border-radius: 999px; }
.post-date { font-family: var(--mono); font-size: 0.75rem; color: var(--on-dark-2); letter-spacing: 0.06em; }
.post-card h2 { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.4; color: #fff; }
.post-card:first-child h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.post-excerpt { color: var(--on-dark-2); font-size: 0.95rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty-state { text-align: center; color: var(--on-dark-2); padding: 4rem 1rem; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin: 3rem auto 0; padding: 0 1rem; flex-wrap: wrap; }
.page-btn { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-dark-2); color: var(--on-dark); background: none; font: inherit; cursor: pointer; }
.page-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.page-btn:disabled { opacity: 0.35; cursor: default; }
.footer-gap { height: clamp(4rem, 8vw, 6rem); }

.post-cover-hero { display: block; width: 100%; height: clamp(260px, 46vh, 520px); object-fit: cover; margin-top: 76px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.post-cover-hero-placeholder { height: 120px; }
.article-container { max-width: 760px; margin: 1.5rem auto 0; padding: 0 clamp(1.25rem, 4vw, 2rem); position: relative; }
.back-link { display: inline-flex; gap: 0.4rem; color: var(--on-dark-2); font-size: 0.9rem; margin-bottom: 1.6rem; }
.back-link:hover { color: var(--gold); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.article-category { font-size: 0.75rem; font-weight: 700; color: #fff; padding: 0.22rem 0.7rem; border-radius: 999px; }
.article-date, .article-views { font-family: var(--mono); font-size: 0.78rem; color: var(--on-dark-2); letter-spacing: 0.05em; }
.article-container h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.2; color: #fff; margin-bottom: 2.4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-dark); }
.article-content { color: var(--on-dark); font-size: 1.07rem; line-height: 1.95; }
.article-content h2 { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: #fff; margin: 2.8rem 0 1rem; line-height: 1.35; }
.article-content h3 { font-size: 1.2rem; color: #fff; margin: 2rem 0 0.75rem; }
.article-content p { margin-bottom: 1.2rem; }
.article-content strong { color: #fff; }
.article-content img { max-width: 100%; border-radius: 16px; margin: 1.6rem 0; display: block; border: 1px solid var(--line-dark); }
.article-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 1.6rem 0; padding: 1.1rem 1.4rem; border-left: 2px solid var(--gold); background: rgba(235,162,78,0.05); border-radius: 0 14px 14px 0; color: #fff; font-family: var(--serif); }
.article-content pre { background: #070A12; border: 1px solid var(--line-dark); border-radius: 14px; padding: 1.1rem 1.2rem; overflow-x: auto; margin: 1.4rem 0; font-size: 0.9rem; }
.article-content code { font-family: var(--mono); font-size: 0.88em; background: rgba(255,255,255,0.06); padding: 0.12em 0.4em; border-radius: 6px; }
.article-content pre code { background: none; padding: 0; }
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.article-content li { margin-bottom: 0.45rem; }
.article-content li::marker { color: var(--gold); }
.article-content hr { border: none; height: 1px; background: var(--line-dark); margin: 2.4rem 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.article-content th, .article-content td { border-bottom: 1px solid var(--line-dark); padding: 0.7rem 0.6rem; text-align: left; }
.article-content th { color: #fff; }
.related-section { max-width: var(--maxw); margin: clamp(4rem, 8vw, 6rem) auto 0; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.related-section h3 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 1.6rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.related-card { border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.02); transition: border-color 0.4s ease, transform 0.4s var(--ease-out); }
.related-card:hover { border-color: rgba(235,162,78,0.5); transform: translateY(-3px); }
.related-card a { display: block; color: inherit; }
.related-card img, .related-card-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.related-card-placeholder { background: radial-gradient(120% 140% at 0% 0%, rgba(235,162,78,0.12), transparent 60%), #0E1424; }
.related-card .card-body { padding: 1rem 1.1rem 1.2rem; }
.related-card h4 { font-family: var(--serif); font-size: 1.05rem; line-height: 1.45; color: #fff; }
.related-card .card-date { font-family: var(--mono); font-size: 0.72rem; color: var(--on-dark-2); margin-top: 0.4rem; }
@media (max-width: 980px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .post-card:first-child a { flex-direction: column; } .post-card:first-child .post-cover { width: 100%; min-height: 0; aspect-ratio: 16 / 9; } .post-card:first-child .post-body { padding: 1.3rem 1.4rem 1.6rem; } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

/* ============ FAQ page + Services page (dark editorial; markup unchanged) ============ */
body.ai2 > main > .page-header { max-width: var(--maxw); margin: 0 auto; padding: clamp(9rem, 15vw, 12rem) clamp(1.25rem, 4vw, 2.5rem) 2.4rem; text-align: left; }
body.ai2 .page-header h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.05; color: #fff; margin-bottom: 1rem; background: none; -webkit-text-fill-color: currentColor; }
body.ai2 .page-header p { color: var(--on-dark-2); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 34rem; line-height: 1.8; margin: 0; }
.faq-categories { max-width: var(--maxw); margin: 0 auto 3rem; padding: 0 clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 0.5rem; position: sticky; top: 76px; z-index: 5; }
.faq-cat-link { font-size: 0.88rem; padding: 0.45rem 1rem; border-radius: 999px; color: var(--on-dark); border: 1px solid var(--line-dark-2); background: rgba(10,14,26,0.85); backdrop-filter: blur(8px); transition: color 0.2s ease, border-color 0.2s ease; }
.faq-cat-link:hover { color: var(--gold); border-color: var(--gold); }
.faq-group { max-width: var(--maxw); margin: 0 auto clamp(3.5rem, 7vw, 5rem); padding: 0 clamp(1.25rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; scroll-margin-top: 9rem; }
.faq-group-title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem); color: #fff; line-height: 1.2; }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq-list .faq-item { border-bottom: 1px solid var(--line-dark); scroll-margin-top: 9rem; }
.faq-question { width: 100%; background: none; border: none; cursor: pointer; font: inherit; text-align: left; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0; font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 600; }
.faq-question::after { content: '+'; color: var(--gold); font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform 0.4s var(--ease-out); flex-shrink: 0; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; color: var(--on-dark-2); line-height: 1.9; }
.faq-item.open .faq-answer-inner { padding-bottom: 1.6rem; }
.faq-answer-inner strong { color: #fff; }
.faq-answer-inner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-cta, .services-cta { max-width: var(--maxw); margin: clamp(4rem, 8vw, 6rem) auto clamp(4rem, 8vw, 6rem); padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); text-align: center; border: 1px solid rgba(235,162,78,0.28); border-radius: 28px; background: radial-gradient(90% 120% at 50% 0%, rgba(235,162,78,0.12), transparent 60%), rgba(255,255,255,0.02); }
.faq-cta h2, .services-cta h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 4vw, 3rem); color: #fff; margin-bottom: 0.8rem; }
.faq-cta p, .services-cta p { color: var(--on-dark-2); margin: 0 auto 2rem; max-width: 30rem; line-height: 1.8; }
.faq-cta-buttons, .services-cta-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.faq-cta-btn, .services-cta-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.95rem 1.7rem; border-radius: 999px; font-weight: 700; transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.faq-cta-btn--line, .services-cta-btn--line { background: var(--gold); color: var(--ink); }
.faq-cta-btn--line:hover, .services-cta-btn--line:hover { transform: translateY(-2px); background: #F4B566; }
.faq-cta-btn--secondary, .services-cta-btn--secondary { border: 1px solid var(--line-dark-2); color: #fff; }
.faq-cta-btn--secondary:hover, .services-cta-btn--secondary:hover { border-color: var(--gold); color: var(--gold); }
.services-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-dark); border-radius: 24px; padding: 1.8rem 1.6rem; background: rgba(255,255,255,0.02); transition: border-color 0.4s ease, transform 0.4s var(--ease-out); }
.service-card:hover { border-color: rgba(235,162,78,0.5); transform: translateY(-4px); }
.service-card--featured { border-color: rgba(235,162,78,0.4); background: radial-gradient(120% 140% at 0% 0%, rgba(235,162,78,0.12), transparent 55%), rgba(255,255,255,0.02); }
.service-card--featured::before { content: '核心服務'; position: absolute; top: 1.2rem; right: 1.2rem; font-size: 0.72rem; font-weight: 700; color: var(--ink); background: var(--gold); padding: 0.2rem 0.65rem; border-radius: 999px; }
.service-illus { width: 132px; height: 132px; border-radius: 22px; overflow: hidden; margin: -0.4rem 0 1.2rem -0.6rem; background: #0A0E1A; }
.service-illus img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.6rem); color: #fff; margin-bottom: 0.7rem; }
.service-tagline { color: var(--on-dark-2); line-height: 1.75; font-size: 0.95rem; margin-bottom: 1.2rem; }
.service-use-cases { list-style: none; margin: 0 0 1.4rem; display: grid; gap: 0.55rem; flex: 1; }
.service-use-cases li { position: relative; padding-left: 1.2rem; color: var(--on-dark); font-size: 0.93rem; line-height: 1.6; }
.service-use-cases li::before { content: ''; position: absolute; left: 0; top: 0.6rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.service-price { color: var(--on-dark-2); font-size: 0.92rem; margin-bottom: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line-dark-2); }
.service-price strong { color: var(--gold); }
.service-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 600; border-bottom: 1px solid var(--line-dark-2); padding-bottom: 0.2rem; }
.service-cta:hover, .service-cta--primary { color: var(--gold); border-color: var(--gold); }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .faq-group { grid-template-columns: 1fr; gap: 0.6rem; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } .faq-categories { top: 64px; } }

/* Page hero with a right-side illustration (e.g. /security) */
.page-hero--art { min-height: min(86vh, 760px); display: flex; align-items: center; }
.page-hero--art .container { position: relative; z-index: 1; }
.page-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; pointer-events: none; }
.page-hero--art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--ink) 0%, rgba(10,14,26,0.85) 35%, rgba(10,14,26,0) 62%), linear-gradient(180deg, transparent 70%, var(--ink) 100%); }
@media (max-width: 820px) {
    .page-hero--art { min-height: 0; }
    .page-hero-art { opacity: 0.35; object-position: 80% center; }
}
