/* Self-hosted brand fonts (SIL Open Font License, see assets/fonts/OFL_*.txt|md) */
@font-face { font-family: "Source Serif 4"; src: url("fonts/SourceSerif4-Semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Brand palette "Brass & Ink" (decided 2026-11-21). All site colors, including inline SVG art,
     read these variables. favicon.svg is a separate file and keeps its own colors. */
  --c-bg: #0E1726;
  --c-panel: #16233A;
  --c-surface: #0E1726;
  --c-surface-2: #16233A;
  --c-line: #4F709A;
  --c-line-soft: rgba(79, 112, 154, 0.45);
  --c-line-strong: #4F709A;
  --c-ink: #ECE5D3;
  --c-ink-soft: #A9B3C2;
  --c-muted: #4F709A;
  --c-accent: #C8A24A;
  --c-accent-hover: #D9B864;
  --c-link: #D9B864;
  --c-accent-soft: #A9B3C2;
  --c-accent-tint: rgba(200, 162, 74, 0.14);
  --c-accent-2: #ECE5D3;
  --c-accent-2-light: #ECE5D3;
  --c-on-accent: #0E1726;
  --c-header-bg: rgba(14, 23, 38, 0.94);
  --c-shadow: rgba(0, 0, 0, 0.35);
  --c-shadow-flood: #000000;
  --c-contact-from: #16233A;
  --c-contact-to: #16233A;
  --c-draft-bg: rgba(200, 162, 74, 0.12);
  --c-draft-line: #C8A24A;
  --c-draft-ink: #ECE5D3;

  --font-serif: "Source Serif 4", "Noto Serif TC", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ink: var(--c-ink);
  --ink-soft: var(--c-ink-soft);
  --blue: var(--c-accent);
  --blue-dark: var(--c-accent-hover);
  --teal: var(--c-accent);
  --line: var(--c-line-soft);
  --soft: var(--c-surface-2);
  --white: var(--c-surface);
  --radius: 4px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--c-ink); }
h1, h2, h3, .subhead { font-family: var(--font-serif); font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--c-header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand { display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; }
.brand .wordmark { font-family: var(--font-serif); font-weight: 600; font-size: 21px; letter-spacing: 0.14em; }
.brand .llc { font-family: var(--font-sans); font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 2px;
  font-weight: 600; font-size: 16px; text-decoration: none; font-family: var(--font-sans);
  border: 1.5px solid var(--blue);
}
.btn-primary { background: var(--blue); color: var(--c-on-accent); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--c-on-accent); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--soft); }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 2px; padding: 5px 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.01em; margin: 20px 0 18px; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 36em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mail-text { font-size: 15px; color: var(--ink-soft); }
.mail-text a { font-weight: 600; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 600; color: var(--c-accent); text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.section-intro { color: var(--ink-soft); max-width: 44em; margin: 0 0 36px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px var(--c-shadow); }
.card p { color: var(--ink-soft); margin: 0; }
.card .art { background: var(--c-panel); border-radius: 2px; margin: -6px -6px 20px; padding: 10px; border: 1px solid var(--line); }
.card .art svg { width: 100%; height: auto; display: block; }
/* Brand rule: illustrations are thin brass line drawings, so shapes inside illustration boxes render as outlines */
.card .art svg :is(rect, circle, ellipse, path, polyline, line) { stroke: var(--c-accent) !important; stroke-width: 1.3px !important; vector-effect: non-scaling-stroke; }
/* Closed shapes are opaque so foreground objects hide what is behind them; open lines stay unfilled */
.card .art svg :is(rect, circle, ellipse) { fill: var(--c-panel) !important; }
.card .art svg :is(path, polyline, line) { fill: none !important; }
.card .art svg text { fill: var(--c-accent) !important; stroke: none !important; font-family: var(--font-sans); }
.card .tag { align-self: flex-start; display: inline-block; font-size: 12px; color: var(--c-accent); border: 1px solid var(--c-accent); border-radius: 2px; padding: 1px 8px; margin-bottom: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.card ul { color: var(--ink-soft); padding-left: 20px; margin: 10px 0 0; }
.card ul li { margin-bottom: 4px; }
.card .note { font-size: 15px; margin-top: 12px; }
.card .card-cta { margin-top: 16px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.card { display: flex; flex-direction: column; }
.card .card-cta:last-child { margin-top: auto; padding-top: 18px; }

.icon { width: 44px; height: 44px; margin-bottom: 14px; }

.subhead { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }

.platforms { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink-soft); font-size: 15px; }
.chip { border: 1px solid var(--line); border-radius: 2px; padding: 4px 12px; background: var(--white); color: var(--ink); font-size: 14px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.steps li { position: relative; padding-top: 64px; }
.steps .num {
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-bg); border: 1.5px solid var(--blue); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-weight: 700; z-index: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; left: 56px; right: -12px;
  border-top: 2px dashed var(--c-line-strong);
}
.steps p { color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* Company details */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.facts div { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin: 0 0 4px; }
.facts dd { margin: 0; font-weight: 600; }

/* Contact */
.contact-box { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: linear-gradient(135deg, var(--c-contact-from) 0%, var(--c-contact-to) 100%); }
.contact-box .big-mail { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); font-weight: 600; }
.contact-box p { color: var(--ink-soft); margin: 6px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-soft); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--c-link); }
.site-footer p { margin: 6px 0; }
.site-footer .tm { margin-top: 18px; font-size: 13px; }

/* Policy pages */
.policy { padding: 56px 0 72px; }
.policy .wrap { max-width: 800px; }
.policy h1 { font-size: clamp(30px, 4vw, 42px); margin-top: 8px; }
.policy h2 { font-size: 22px; margin: 36px 0 10px; }
.policy p, .policy li { color: var(--ink-soft); }
.draft-banner { border: 1px solid var(--c-draft-line); background: var(--c-draft-bg); color: var(--c-draft-ink); border-radius: var(--radius); padding: 12px 16px; font-size: 15px; }

/* Animations */
.orbit-spin { transform-origin: 260px 260px; animation: spin linear infinite; }
.spin-1 { animation-duration: 18s; }
.spin-2 { animation-duration: 30s; }
.spin-3 { animation-duration: 46s; }
.spin-4 { animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }
.draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s ease forwards 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-spin, .pulse, .draw { animation: none; }
  .draw { stroke-dashoffset: 0; }
  .card { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; justify-content: center; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 6px; }
  .nav { width: 100%; gap: 18px; }
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 300px; margin: 0 auto; }
  .lede { font-size: 17px; }
  section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-top: 0; padding-left: 64px; min-height: 46px; }
  .steps li:not(:last-child)::after { top: 52px; left: 22px; right: auto; bottom: -18px; border-top: 0; border-left: 2px dashed var(--c-line-strong); }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
  .contact-box { grid-template-columns: 1fr; padding: 26px; }
}

/* Cookie consent banner */
#consent-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: var(--c-panel); color: var(--ink); border: 1px solid var(--c-accent); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between;
  box-shadow: 0 12px 32px var(--c-shadow); font-size: 15px;
}
#consent-banner p { margin: 0; flex: 1 1 360px; color: var(--ink-soft); }
#consent-banner .consent-actions { display: flex; gap: 10px; }
#consent-banner button { cursor: pointer; }
.cookie-link { background: none; border: 0; padding: 0; color: var(--c-link); text-decoration: underline; font: inherit; cursor: pointer; }
