/* === TOKENS === */
:root {
  --bg:        #f5f2ee;
  --surface:   #ede9e3;
  --surface2:  #e4dfd8;
  --text:      #0f0f0e;
  --muted:     rgba(15,15,14,0.48);
  --accent:    #F5914F;
  --accent-lo: rgba(245,145,79,0.10);
  --border:    rgba(15,15,14,0.09);
  --max:       1140px;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'DM Sans', system-ui, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 400; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* === LAYOUT === */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* === NAV === */
nav { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 20px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.01em; color: var(--text); display: flex; flex-direction: column; gap: 0; }
.nav-logo-sub { font-family: var(--sans); font-size: 0.6rem; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.875rem; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.nav-active { color: var(--text); }
.nav-links a.nav-active { font-weight: 500; }
.nav-cta { color: var(--text) !important; background: var(--accent); padding: 8px 22px; border-radius: 2px; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; transition: opacity 0.2s !important; }
.nav-cta:hover { opacity: 0.85; }

/* === HERO === */
.hero { position: relative; padding: 120px 0 100px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(245,145,79,0.07) 0%, transparent 65%); pointer-events: none; }
.hero-layout { display: grid; grid-template-columns: 1fr 260px; gap: 60px; align-items: start; }
@media (max-width: 860px) { .hero-layout { grid-template-columns: 1fr; } }
.hero-eyebrow { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::after { content: ''; display: block; width: 40px; height: 1px; background: var(--accent); opacity: 0.5; }
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; line-height: 1.18; text-wrap: balance; margin-bottom: 28px; }
.hero-sub { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; max-width: 560px; margin-bottom: 40px; }
.hero-sub p + p { margin-top: 16px; }

/* === HERO STAT CARD === */
.hero-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 36px 32px; }
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.stat-divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* === BUTTONS === */
.btn-primary { display: inline-block; background: var(--accent); color: #fff; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 32px; border-radius: 2px; transition: opacity 0.2s; cursor: pointer; border: none; white-space: nowrap; }
.btn-primary:hover { opacity: 0.85; }

/* === CARDS === */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 36px 32px; position: relative; overflow: hidden; transition: border-color 0.25s; }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); opacity: 0; transition: opacity 0.25s; }
.card:hover { border-color: rgba(245,145,79,0.35); }
.card:hover::before { opacity: 1; }
.card-tag { display: inline-flex; align-items: center; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; background: var(--accent-lo); padding: 4px 10px; border-radius: 2px; }
.card h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; line-height: 1.45; margin-bottom: 14px; color: var(--text); }
.card p { font-size: 0.875rem; color: var(--muted); line-height: 1.78; margin-bottom: 24px; }
.card-link { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); transition: opacity 0.2s; }
.card-link:hover { opacity: 0.75; }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .cards-grid { grid-template-columns: 1fr; } }

/* === SECTIONS === */
.section-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.section-intro { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; color: var(--text); line-height: 1.65; }
.divider { border: none; border-top: 1px solid var(--border); }

/* === COMPARE TABLE === */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare-table th { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th:first-child { color: transparent; }
.compare-table td { padding: 16px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr td:first-child { color: var(--text); font-weight: 500; }
.compare-table td.highlight { color: var(--text); }
.table-footnote { font-size: 0.72rem; color: var(--muted); margin-top: 12px; font-style: italic; }

/* === PROCESS STEPS === */
.process-steps { display: flex; flex-direction: column; }
.process-step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--border); }
.process-step:last-child { border-bottom: none; }
.step-num { font-family: var(--serif); font-size: 2.5rem; color: var(--accent); opacity: 0.35; line-height: 1; padding-top: 4px; }
.step-content h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; margin-bottom: 10px; color: var(--text); }
.step-content p { font-size: 0.875rem; color: var(--muted); line-height: 1.78; }

/* === FORMAT CARD === */
.format-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 28px 32px; margin-top: 40px; }
.format-card h4 { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.format-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.format-list li { font-size: 0.875rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.format-key { color: var(--text); font-weight: 500; flex-shrink: 0; }

/* === POINTS LIST === */
.points-list { display: flex; flex-direction: column; }
.point-item { padding: 32px 0; border-bottom: 1px solid var(--border); }
.point-item:last-child { border-bottom: none; }
.point-item h3 { font-family: var(--serif); font-size: 1rem; font-weight: 400; margin-bottom: 10px; color: var(--text); }
.point-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.78; }
.point-item p + p { margin-top: 10px; }

/* === EMCC SECTION === */
.emcc-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.emcc-inner { max-width: 760px; }
.emcc-inner p { font-size: 0.9375rem; color: var(--muted); line-height: 1.78; }
.emcc-inner p + p { margin-top: 16px; }

/* === CHI SONO === */
.about-layout { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: start; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; gap: 40px; } }
.about-photo { position: sticky; top: 100px; }
.about-photo img { width: 100%; border-radius: 4px; display: block; filter: grayscale(8%); }
@media (max-width: 860px) { .about-photo { position: static; max-width: 260px; } }
.about-text { display: flex; flex-direction: column; gap: 24px; }
.about-text p { font-size: 0.9375rem; color: var(--muted); line-height: 1.85; }
.about-text p.lead { font-family: var(--serif); font-size: 1.1rem; color: var(--text); line-height: 1.65; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-cell { background: var(--surface); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.stat-cell .num { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; }
.stat-cell .lbl { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }

/* === CTA SECTION === */
.cta-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.35; margin-bottom: 10px; text-wrap: balance; }
.cta-text p { font-size: 0.9rem; color: var(--muted); }
.cta-text p + p { margin-top: 8px; }

/* === FOOTER === */
footer { padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-family: var(--serif); font-size: 0.9rem; color: var(--muted); }
.footer-contacts { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.footer-contacts a { transition: color 0.2s; }
.footer-contacts a:hover { color: var(--text); }

/* === COOKIE BANNER === */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--surface); border-top: 1px solid var(--border); padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
#cookie-banner p { font-size: 0.875rem; color: var(--muted); flex: 1; min-width: 200px; }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; align-items: center; }
#cookie-refuse { cursor: pointer; border: none; background: none; font-family: var(--sans); font-size: 0.875rem; color: var(--muted); padding: 8px 16px; transition: color 0.2s; }
#cookie-refuse:hover { color: var(--text); }
@media (max-width: 640px) { #cookie-banner { padding: 20px; } }

/* === TPOST === */
.post-wrap { max-width: 720px; margin: 0 auto; padding: 80px 40px 120px; }
@media (max-width: 640px) { .post-wrap { padding: 60px 20px 80px; } }
.post-eyebrow { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.post-h1 { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 400; line-height: 1.22; text-wrap: balance; margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border); color: var(--text); }
.post-body { font-size: 0.9375rem; color: var(--muted); line-height: 1.85; }
.post-body p { margin-bottom: 24px; }
.post-body h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--text); margin: 48px 0 16px; line-height: 1.35; }
.post-body h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--text); margin: 32px 0 12px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 24px; }
.post-body li { margin-bottom: 8px; line-height: 1.75; }
.post-body blockquote { border-left: 2px solid var(--accent); padding-left: 20px; margin: 32px 0; font-style: italic; color: var(--text); }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-cta-box { margin-top: 64px; padding: 36px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.post-cta-box h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; margin-bottom: 10px; color: var(--text); }
.post-cta-box p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

/* === 404 === */
.page-404 { min-height: 70vh; display: flex; align-items: center; }
.page-404 h1 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 4rem); font-weight: 400; color: var(--accent); opacity: 0.35; margin-bottom: 24px; }
.page-404 h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; margin-bottom: 16px; }
.page-404 p { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; margin-bottom: 32px; max-width: 480px; }
