/* ============================================================
   EMD Satellite Single-Page Stylesheet v3
   KHT Instrument Family — texture analyzer EMD matrix
   Structure: mirror tarotprint.com (15 sections) + long-form
   technical guide appended at the bottom.
   ============================================================ */

:root {
  --primary: #1e3a5f;
  --primary-dark: #152d4a;
  --primary-tint: #eef3fa;
  --primary-tint-2: #dce6f2;
  --accent: #e07b2e;
  --accent-dark: #b55f1e;
  --accent-tint: #fdf2e7;

  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-alt: #f5f3ee;
  --text: #1a1f2e;
  --text-muted: #5a6478;
  --text-faint: #8a93a5;
  --rule: #d7dce6;
  --rule-light: #eaeef5;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;

  --max-width: 780px;
  --max-width-wide: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(21, 45, 74, 0.06);
  --shadow-md: 0 6px 20px rgba(21, 45, 74, 0.08);
  --shadow-lg: 0 18px 50px rgba(21, 45, 74, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--max-width-wide); padding: 0 28px; }

/* ---------- Universal section helpers ---------- */
.section-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-eyebrow.centered { display: block; text-align: center; }
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.18;
  color: var(--primary-dark);
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 0 18px;
}
.section-sub { text-align: center; color: var(--text-muted); max-width: 680px; margin: 0 auto 48px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule-light);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max-width-wide); margin: 0 auto; padding: 0 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary-dark); font-weight: 600; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--primary); color: white;
  border-radius: 6px; font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}
.brand-name { font-size: 15px; letter-spacing: 0.01em; }
.top-nav { display: none; gap: 24px; align-items: center; font-size: 14px; }
.top-nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.top-nav a:hover { color: var(--primary); }
.top-nav .cta-small { padding: 9px 18px; background: var(--primary-dark); color: white; border-radius: var(--radius-sm); font-weight: 600; }
.top-nav .cta-small:hover { background: var(--accent); color: white; }
@media (min-width: 980px) { .top-nav { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.15s ease; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: white; box-shadow: 0 4px 14px rgba(224,123,46,0.25); }
.btn-primary:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,123,46,0.35); }
.btn-ghost { background: var(--surface); color: var(--primary-dark); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--primary-dark); background: var(--surface-alt); }
.btn-large { padding: 16px 30px; font-size: 16px; }

/* ---------- 2. HERO v3 (左文右图 split) ---------- */
.hero-split {
  position: relative; overflow: hidden;
  padding: 80px 0 88px;
  background:
    radial-gradient(ellipse 900px 500px at 0% 0%, var(--accent-tint) 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 100% 100%, var(--primary-tint) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--rule-light);
}
.hero-split .hero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.06; pointer-events: none; }
.hero-split .hero-bg svg { width: 100%; height: 100%; }
.hero-split-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 960px) {
  .hero-split-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.hero-split .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px; padding: 6px 14px;
  background: var(--surface); color: var(--primary-dark);
  border: 1px solid var(--primary-tint-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 100px; box-shadow: var(--shadow-sm);
}
.hero-split .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-split h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(32px, 4.8vw, 52px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--primary-dark);
  margin: 0 0 22px; max-width: 620px;
}
.hero-split .hero-lede { font-size: 19px; line-height: 1.6; color: var(--text-muted); margin: 0 0 32px; max-width: 560px; }
.hero-split .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-split .hero-trust {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px;
  padding-top: 24px; border-top: 1px solid var(--rule-light);
  font-size: 14px; color: var(--text-muted);
}
.hero-split .hero-trust-item { display: flex; align-items: center; gap: 10px; }
.hero-split .hero-trust-item svg { flex-shrink: 0; color: var(--accent); }
.hero-split .byline { font-size: 13px; color: var(--text-faint); margin: 28px 0 0; letter-spacing: 0.01em; }
.hero-split .byline strong { color: var(--text); font-weight: 600; }

.hero-visual {
  position: relative; aspect-ratio: 4 / 5; max-width: 480px;
  margin: 0 auto; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-lg); overflow: hidden; color: white;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(224,123,46,0.28) 0%, transparent 55%);
  pointer-events: none;
}
.hero-visual img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-visual > svg {
  position: relative; z-index: 1;
  width: 100%; height: 100%; padding: 48px;
  color: white;
}

/* Legacy hero-v2 (centered) — kept for backward compat but unused */
.hero-v2 {
  position: relative; overflow: hidden;
  padding: 96px 0 112px; text-align: center;
  background:
    radial-gradient(ellipse 900px 500px at 50% 0%, var(--accent-tint) 0%, transparent 65%),
    radial-gradient(ellipse 700px 400px at 50% 100%, var(--primary-tint) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--rule-light);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.08; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; }
.hero-v2-inner { position: relative; z-index: 1; }
.hero-v2 .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 24px; padding: 6px 14px;
  background: var(--surface); color: var(--primary-dark);
  border: 1px solid var(--primary-tint-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 100px; box-shadow: var(--shadow-sm);
}
.hero-v2 .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-v2 h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--primary-dark);
  margin: 0 auto 22px; max-width: 920px;
}
.hero-v2 .hero-lede { font-size: 20px; line-height: 1.6; color: var(--text-muted); margin: 0 auto 36px; max-width: 680px; }
.hero-v2 .hero-cta { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 28px; }
.hero-v2 .byline { font-size: 13px; color: var(--text-faint); margin: 36px 0 0; }
.hero-v2 .byline strong { color: var(--text); font-weight: 600; }

/* ---------- 3. CAPABILITIES (2-col) ---------- */
.capabilities { padding: 96px 0; background: var(--surface); }
.cap-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 960px) { .cap-grid { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.cap-text h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.2; color: var(--primary-dark); letter-spacing: -0.015em; margin: 0 0 20px; }
.cap-text p { color: var(--text-muted); margin: 0 0 16px; font-size: 16.5px; }
.cap-bullets { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--rule-light); }
.cap-bullets li { padding: 12px 0; border-bottom: 1px solid var(--rule-light); color: var(--text); font-size: 15.5px; }
.cap-bullets strong { color: var(--primary-dark); font-weight: 600; }
.cap-visuals { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1.2fr 1fr; gap: 14px; }
.cap-img {
  aspect-ratio: 1 / 1; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary-tint) 0%, var(--primary-tint-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); overflow: hidden; border: 1px solid var(--rule-light);
}
.cap-img.cap-img-lg { grid-row: 1 / 3; grid-column: 1 / 2; aspect-ratio: auto; }
.cap-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 4. CONFIGURATIONS grid ---------- */
.configs { padding: 96px 0; background: var(--bg); }
.config-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }
@media (min-width: 640px) { .config-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .config-grid { grid-template-columns: repeat(3, 1fr); } }
.config-card {
  background: var(--surface); border: 1px solid var(--rule-light);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.config-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-tint-2); }
.config-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--primary-tint) 0%, var(--primary-tint-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); overflow: hidden;
  border-bottom: 1px solid var(--rule-light);
}
.config-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.config-img > svg { width: 56%; height: auto; max-width: 170px; }
.config-body { padding: 22px 26px 26px; flex: 1; }
.config-card h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--primary-dark); margin: 0 0 10px; }
.config-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- 5. PROCESS timeline ---------- */
.process { padding: 96px 0; background: var(--surface); }
.process-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.process-steps::before {
  content: ""; position: absolute; left: 28px; top: 40px; bottom: 40px; width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 50%, var(--rule-light) 100%);
}
.process-steps li { display: flex; gap: 24px; padding: 16px 0 28px; position: relative; }
.step-num {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary-dark); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  box-shadow: 0 4px 14px rgba(21,45,74,0.18); position: relative; z-index: 1;
}
.process-steps li:hover .step-num { background: var(--accent); }
.step-body { padding-top: 6px; }
.step-body h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--primary-dark); margin: 0 0 8px; }
.step-body p { font-size: 15.5px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ---------- 6. STATS bar ---------- */
.stats-bar { background: var(--primary-dark); color: white; padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; }
@media (min-width: 720px) {
  .stat:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 20%; bottom: 20%;
    width: 1px; background: rgba(255,255,255,0.12);
  }
}
.stat-num { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { margin-top: 8px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- 7/10. GALLERY / WORK-ENV (3x2 grid) ---------- */
.gallery, .work-env { padding: 96px 0; background: var(--bg); }
.work-env { background: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  margin: 0; background: var(--surface); border: 1px solid var(--rule-light);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item > svg, .gallery-item > div:first-child, .gallery-item > img:first-child {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: linear-gradient(145deg, var(--primary-tint) 0%, var(--primary-tint-2) 100%);
}
.gallery-item svg { padding: 20px; color: var(--primary); }
.gallery-item figcaption { padding: 14px 18px; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--rule-light); }

/* ---------- 8. WHY CHOOSE US (4x2 grid) ---------- */
.why-us { padding: 96px 0; background: var(--surface); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  background: var(--bg); border: 1px solid var(--rule-light);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.why-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.why-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-tint); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-card h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; color: var(--primary-dark); margin: 0 0 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ---------- 9. ABOUT horizontal timeline ---------- */
.about-timeline { padding: 96px 0; background: var(--primary-dark); color: white; }
.about-timeline .section-eyebrow { color: var(--accent); }
.about-timeline .section-title { color: white; }
.timeline-h {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; gap: 24px; position: relative;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .timeline-h { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .timeline-h::before {
    content: ""; position: absolute; left: 5%; right: 5%; top: 36px;
    height: 2px; background: rgba(255,255,255,0.12); z-index: 0;
  }
}
.timeline-h li { position: relative; padding: 0 12px; z-index: 1; }
.t-year {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); color: white;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
  margin-bottom: 16px; box-shadow: 0 6px 20px rgba(224,123,46,0.35);
}
.timeline-h strong { display: block; color: white; font-size: 15px; margin-bottom: 6px; }
.timeline-h p { font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.5; margin: 0; }

/* ---------- 11. CUSTOMIZATION DETAILS ---------- */
.details { padding: 96px 0; background: var(--bg); }
.details-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 900px) { .details-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.details-table-wrap { background: var(--surface); border: 1px solid var(--rule-light); border-radius: var(--radius); overflow: hidden; }
.details-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.details-table th, .details-table td { text-align: left; padding: 14px 18px; vertical-align: top; }
.details-table th { width: 40%; background: var(--primary-tint); color: var(--primary-dark); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
.details-table tr { border-bottom: 1px solid var(--rule-light); }
.details-table tr:last-child { border-bottom: none; }
.details-diagram {
  background: var(--surface); border: 1px solid var(--rule-light); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; align-items: center;
}
.details-diagram svg { max-width: 320px; margin: 0 auto 18px; color: var(--primary); }
.diagram-caption { font-size: 14px; color: var(--text-muted); text-align: center; line-height: 1.55; margin: 0; }

/* ---------- 12. FAQ section ---------- */
.faq-section { padding: 96px 0; background: var(--surface); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  margin: 0 0 12px; background: var(--surface); overflow: hidden;
}
.faq-list details[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-list summary {
  padding: 18px 52px 18px 22px; font-weight: 600; font-size: 16px;
  color: var(--primary-dark); cursor: pointer; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300; color: var(--accent);
  background: var(--accent-tint); border-radius: 50%;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > *:not(summary) { padding: 0 22px 20px; border-top: 1px solid var(--rule-light); padding-top: 18px; }
.faq-list .faq-answer p { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.7; }
.faq-list .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- 13. TESTIMONIALS ---------- */
.testimonials { padding: 96px 0; background: var(--bg); }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
@media (min-width: 720px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  margin: 0; background: var(--surface); border: 1px solid var(--rule-light);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.testimonial-card .stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; }
.testimonial-card blockquote {
  margin: 0; padding: 0; border: none;
  font-family: var(--serif); font-size: 18px; line-height: 1.5;
  color: var(--text); font-style: normal;
}
.testimonial-card figcaption { font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ---------- 14. CONTACT ---------- */
.contact-section {
  background: radial-gradient(ellipse 600px 400px at 90% 10%, rgba(224,123,46,0.18) 0%, transparent 60%), var(--primary-dark);
  color: var(--primary-tint);
  padding: 96px 0;
  position: relative; overflow: hidden;
}
.contact-section h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: white; margin: 0 0 18px; letter-spacing: -0.015em; text-align: center; }
.contact-section > .container-wide > p { color: rgba(255,255,255,0.78); margin: 0 auto 40px; max-width: 620px; font-size: 17px; line-height: 1.6; text-align: center; }
.contact-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 24px 28px;
  margin: 0 auto 32px; max-width: 640px; backdrop-filter: blur(10px);
}
.contact-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); align-items: baseline;
}
.contact-row:last-child { border-bottom: none; }
.contact-label { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contact-value { color: white; font-weight: 500; text-decoration: none; font-size: 15px; }
.contact-value[href]:hover { color: var(--accent); }
.contact-section .btn-primary { display: flex; margin: 0 auto; max-width: 280px; }

/* ---------- 15. TECH GUIDE (left-text right-image alternating) ---------- */
.tech-guide { padding: 96px 0 64px; background: var(--surface); }
.tech-guide-head { text-align: center; max-width: 760px; margin: 0 auto 48px; padding: 0 24px; }
.tg-rows { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 28px; }
.tg-row {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: center; padding: 48px 0;
}
.tg-row + .tg-row { border-top: 1px solid var(--rule-light); }
@media (min-width: 840px) {
  .tg-row { grid-template-columns: 1.2fr 1fr; gap: 64px; padding: 64px 0; }
  .tg-row.tg-row-alt { grid-template-columns: 1fr 1.2fr; }
  .tg-row.tg-row-alt .tg-text { order: 2; }
  .tg-row.tg-row-alt .tg-visual { order: 1; }
}
.tg-text { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.tg-text h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2; color: var(--primary-dark); letter-spacing: -0.015em;
  margin: 0 0 20px; padding-top: 14px; position: relative; scroll-margin-top: 88px;
}
.tg-text h2::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 44px; height: 3px; background: var(--accent); border-radius: 2px;
}
.tg-text h3 { font-size: 19px; font-weight: 600; color: var(--primary-dark); margin: 24px 0 10px; }
.tg-text h4 { font-size: 16.5px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.tg-text p { margin: 0 0 16px; }
.tg-text strong { color: var(--text); font-weight: 600; }
.tg-text em { font-style: italic; }
.tg-text ul, .tg-text ol { padding-left: 22px; margin: 0 0 20px; }
.tg-text li { margin-bottom: 8px; }
.tg-text li::marker { color: var(--accent); font-weight: 700; }
.tg-text a { color: var(--primary); font-weight: 500; }
.tg-text a:hover { color: var(--accent); }
.tg-text code { font-family: var(--mono); font-size: 0.88em; background: var(--primary-tint); color: var(--primary-dark); padding: 2px 7px; border-radius: 4px; }
.tg-text blockquote {
  border-left: 3px solid var(--accent); margin: 18px 0; padding: 4px 0 4px 20px;
  color: var(--text); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5;
}
.tg-text table {
  width: 100%; border-collapse: collapse; margin: 18px 0 22px;
  font-size: 14px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden;
}
.tg-text thead { background: var(--primary-tint); }
.tg-text th { text-align: left; font-weight: 600; color: var(--primary-dark); padding: 10px 14px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 2px solid var(--primary); }
.tg-text td { padding: 10px 14px; border-bottom: 1px solid var(--rule-light); vertical-align: top; }
.tg-text tr:last-child td { border-bottom: none; }

.tg-visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary-tint) 0%, var(--primary-tint-2) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); border: 1px solid var(--rule-light);
  box-shadow: var(--shadow-sm);
}
.tg-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-visual > svg { width: 60%; height: auto; max-width: 240px; padding: 0; }

/* ---------- CTA blocks (scatter between sections + mid-article) ---------- */

/* Inline CTA: narrow band between sections, light bg */
.cta-inline {
  padding: 36px 0;
  background: var(--primary-tint);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.cta-inline-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto; padding: 0 28px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
@media (min-width: 720px) {
  .cta-inline-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}
.cta-inline-text { flex: 1; }
.cta-inline-text strong {
  display: block;
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  color: var(--primary-dark); margin-bottom: 4px; line-height: 1.3;
}
.cta-inline-text span { font-size: 15px; color: var(--text-muted); }
.cta-inline-buttons { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

/* Band CTA: full-width dark, centered, 2 buttons */
.cta-band {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 500px 300px at 10% 20%, rgba(224,123,46,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 500px 300px at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 60%),
    linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; text-align: center;
}
.cta-band .container-wide { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 28px; }
.cta-band h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3.5vw, 36px);
  color: white; letter-spacing: -0.015em;
  margin: 0 0 14px; line-height: 1.2;
}
.cta-band p {
  color: rgba(255,255,255,0.8); font-size: 17px;
  max-width: 560px; margin: 0 auto 28px; line-height: 1.6;
}
.cta-band-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.08); color: white; }

/* Mid-article CTA (sits between tg-rows) — warm accent card */
.tg-cta {
  margin: 48px 0; padding: 28px 32px;
  background: linear-gradient(145deg, var(--accent-tint) 0%, #fce8d4 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(224,123,46,0.18);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
@media (min-width: 640px) {
  .tg-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
}
.tg-cta-text { flex: 1; }
.tg-cta-text strong {
  display: block; font-family: var(--serif);
  font-weight: 700; font-size: 19px; color: var(--primary-dark);
  margin-bottom: 4px; line-height: 1.3;
}
.tg-cta-text span { font-size: 14.5px; color: var(--text); line-height: 1.55; }
.tg-cta .btn { flex-shrink: 0; }

/* (legacy) .prose kept for any stray markdown rendering */
.prose {
  font-size: 17px; line-height: 1.8; max-width: var(--max-width);
  padding: 24px 24px 48px;
}
.prose h2 {
  font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.22;
  color: var(--primary-dark); letter-spacing: -0.015em;
  margin: 72px 0 20px; padding-top: 16px; scroll-margin-top: 88px; position: relative;
}
.prose h2::before {
  content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 {
  font-family: var(--sans); font-weight: 600; font-size: 21px; line-height: 1.35;
  color: var(--primary-dark); margin: 44px 0 12px; scroll-margin-top: 88px;
}
.prose h4 { font-weight: 600; font-size: 17px; color: var(--text); margin: 28px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--primary-tint); color: var(--primary-dark); padding: 2px 7px; border-radius: 4px; }
.prose pre { background: var(--primary-dark); color: var(--primary-tint); padding: 22px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 28px 0; }
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose blockquote {
  border-left: 4px solid var(--accent); margin: 32px 0; padding: 4px 0 4px 24px;
  color: var(--text); font-family: var(--serif); font-size: 22px; line-height: 1.5; font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; }
.prose thead { background: var(--primary-tint); }
.prose th { text-align: left; font-weight: 600; color: var(--primary-dark); padding: 14px 18px; border-bottom: 2px solid var(--primary); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.prose td { padding: 14px 18px; border-bottom: 1px solid var(--rule-light); color: var(--text); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 56px 0; }
.prose img { margin: 32px auto; border-radius: var(--radius); border: 1px solid var(--rule-light); box-shadow: var(--shadow-sm); }
.prose a { color: var(--primary); font-weight: 500; }
.prose a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: #0f1a2e; color: rgba(255,255,255,0.6); padding: 56px 0 32px; font-size: 14.5px; }
.site-footer .container-wide { display: grid; gap: 32px; }
.site-footer p { margin: 0 0 10px; line-height: 1.6; }
.site-footer strong { color: white; font-weight: 600; display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer a { color: var(--accent); }
.site-footer a:hover { color: white; }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 12.5px; color: rgba(255,255,255,0.4);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.domain-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
@media (min-width: 768px) {
  .site-footer .container-wide { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; }
}

@media print {
  .site-header, .hero-cta, .contact-section, .top-nav, .stats-bar, .testimonials, .about-timeline, .work-env, .gallery, .process, .configs, .capabilities, .hero-bg { display: none; }
  .prose, .tech-guide { max-width: 100%; font-size: 12pt; padding: 0; }
  .prose h2 { page-break-after: avoid; }
  a { color: var(--text) !important; text-decoration: none; }
  .site-footer { background: none; border-top: 1px solid #ccc; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
