@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

/* ============================================================
   CSS 自定义属性
   ============================================================ */
:root {
  --c-neon: #69ff69;
  --c-cyan: #00ffff;
  --c-ink: #172617;
  --c-ink2: #1e351e;
  --c-ink3: #243824;
  --c-ink-light: #2e4a2e;
  --c-text: #d4f5d4;
  --c-text-muted: #7eb87e;
  --c-chrome: #b8ffc8;
  --c-iris1: #69ff69;
  --c-iris2: #00ffff;
  --c-iris3: #a78bfa;
  --c-surface: #1a2e1a;
  --c-card: #1d321d;
  --c-card-border: rgba(105, 255, 105, 0.18);
  --c-glow-neon: rgba(105, 255, 105, 0.45);
  --c-glow-cyan: rgba(0, 255, 255, 0.35);
  --radius-card: 28px;
  --radius-btn: 50px;
  --shadow-card: 0 4px 32px rgba(105,255,105,0.10), 0 1px 6px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 18px var(--c-glow-neon), 0 0 40px var(--c-glow-cyan);
  --font: 'Noto Sans Thai', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --container: 1160px;
  --header-h: 108px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--c-ink);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--c-neon);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
a:hover, a:focus-visible {
  color: var(--c-cyan);
  text-shadow: 0 0 8px var(--c-glow-cyan);
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ============================================================
   Site wrap — background texture
   ============================================================ */
.site-wrap {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(105,255,105,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 90% 60%, rgba(0,255,255,0.05) 0%, transparent 60%),
    var(--c-ink);
}

/* ============================================================
   Header — two rows
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 38, 23, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(105,255,105,0.15);
}

.header-brand-row {
  border-bottom: 1px solid rgba(105,255,105,0.08);
}
.header-brand-row .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.65rem;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-text);
}
.logo-mark { width: 36px; height: 36px; border-radius: 8px; }
.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(90deg, var(--c-neon), var(--c-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-badge {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2em 0.7em;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(105,255,105,0.18), rgba(0,255,255,0.12));
  border: 1px solid rgba(105,255,105,0.3);
  color: var(--c-neon);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  min-height: 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--c-neon);
  color: var(--c-neon);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-contact-btn:hover {
  background: rgba(105,255,105,0.12);
  box-shadow: 0 0 14px var(--c-glow-neon);
  color: var(--c-neon);
  text-shadow: none;
}

/* Nav row */
.header-nav-row .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav { flex: 1; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.nav-list li a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-shadow: none;
}
.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  color: var(--c-neon);
  border-bottom-color: var(--c-neon);
  text-shadow: 0 0 8px var(--c-glow-neon);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(105,255,105,0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-neon);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero — right image, left text
   ============================================================ */
.hero-section {
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding-block: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(105,255,105,0.04) 0%, rgba(0,255,255,0.04) 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chrome-text {
  background: linear-gradient(90deg, var(--c-neon), var(--c-cyan), var(--c-iris3), var(--c-neon));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chrome-shift 4s linear infinite;
}
@keyframes chrome-shift {
  to { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes chrome-shift { to { background-position: 0 center; } }
}

.hero-h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
  text-shadow: 0 0 30px rgba(105,255,105,0.2);
}

.hero-desc {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glow);
}
.hero-deco {
  min-height: 220px;
}

/* Chrome orb decoration */
.chrome-orb {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(105,255,105,0.3),
    rgba(0,255,255,0.4),
    rgba(167,139,250,0.3),
    rgba(105,255,105,0.3)
  );
  filter: blur(2px);
  animation: orb-spin 8s linear infinite;
  position: relative;
}
.chrome-orb::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23,38,23,0.9) 60%, transparent 100%);
}
@keyframes orb-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .chrome-orb { animation: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  min-height: 44px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-shadow: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--c-neon), #3ddd3d);
  color: var(--c-ink);
}
.btn-primary:hover {
  color: var(--c-ink);
  background: linear-gradient(135deg, #7fff7f, var(--c-neon));
}

.glow-btn {
  box-shadow: 0 0 16px var(--c-glow-neon), 0 4px 12px rgba(0,0,0,0.4);
}
.glow-btn:hover {
  box-shadow: 0 0 28px var(--c-glow-neon), 0 0 50px rgba(0,255,255,0.2), 0 4px 12px rgba(0,0,0,0.4);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(105,255,105,0.35);
  color: var(--c-neon);
}
.btn-ghost:hover {
  background: rgba(105,255,105,0.08);
  border-color: var(--c-neon);
  color: var(--c-neon);
  box-shadow: 0 0 12px var(--c-glow-neon);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.9em;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.badge-neon {
  background: rgba(105,255,105,0.12);
  border: 1px solid rgba(105,255,105,0.4);
  color: var(--c-neon);
}
.badge-chrome {
  background: rgba(0,255,255,0.1);
  border: 1px solid rgba(0,255,255,0.35);
  color: var(--c-cyan);
}
.badge-iris {
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.35);
  color: #c4b5fd;
}

/* ============================================================
   Content section (prose)
   ============================================================ */
.content-section {
  padding-block: 2.5rem;
}

.prose-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  max-width: 76ch;
}
.prose-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-neon);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 12px var(--c-glow-neon);
}
.prose-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-cyan);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose-body p { margin-bottom: 1rem; }
.prose-body ul, .prose-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  list-style: disc;
}
.prose-body ol { list-style: decimal; }
.prose-body li { margin-bottom: 0.4rem; }
.prose-body a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0,255,255,0.35);
}
.prose-body a:hover { text-decoration-color: var(--c-cyan); }
.prose-body strong { color: var(--c-neon); font-weight: 600; }
.prose-body blockquote {
  border-left: 3px solid var(--c-neon);
  padding-left: 1rem;
  color: var(--c-text-muted);
  font-style: italic;
  margin: 1.5rem 0;
}
.prose-body code {
  background: rgba(105,255,105,0.1);
  border: 1px solid rgba(105,255,105,0.2);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
  color: var(--c-neon);
}
.prose-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.prose-body th {
  background: rgba(105,255,105,0.1);
  color: var(--c-neon);
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 2px solid rgba(105,255,105,0.25);
}
.prose-body td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(105,255,105,0.08);
}

/* ============================================================
   Cards section — table structure
   ============================================================ */
.cards-section {
  padding-block: 2rem 3.5rem;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.neon-heading {
  color: var(--c-neon);
  text-shadow: 0 0 16px var(--c-glow-neon);
}

.table-wrap { overflow-x: auto; }

.cards-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

.card-row {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.card-row.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .card-row { opacity: 1; transform: none; transition: none; }
}

.card-cell { padding: 0; }

.card-link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.4rem;
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--c-text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(105,255,105,0.0), rgba(0,255,255,0.04));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}
.card-link:hover {
  border-color: rgba(105,255,105,0.45);
  box-shadow: 0 0 20px rgba(105,255,105,0.15), var(--shadow-card);
  transform: translateY(-2px);
  color: var(--c-text);
  text-shadow: none;
}
.card-link:hover::before { opacity: 1; }

.card-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-neon);
  background: rgba(105,255,105,0.1);
  border: 1px solid rgba(105,255,105,0.25);
  border-radius: 50px;
  padding: 0.2em 0.7em;
  white-space: nowrap;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  grid-column: 2;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  grid-column: 2;
  grid-row: 2;
}
.card-date {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  white-space: nowrap;
}

/* ============================================================
   Article layout
   ============================================================ */
.article-hero-section {
  padding-block: 2.5rem 2rem;
  border-bottom: 1px solid rgba(105,255,105,0.08);
}
.article-hero-inner { max-width: 820px; }
.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--c-text-muted);
}
.breadcrumb-home, .breadcrumb-parent { color: var(--c-text-muted); }
.breadcrumb-home:hover, .breadcrumb-parent:hover { color: var(--c-neon); text-shadow: none; }
.breadcrumb-sep { color: rgba(105,255,105,0.3); }
.meta-date { margin-left: auto; }

.article-h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
  margin-bottom: 0.75rem;
}
.article-lead {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 60ch;
  line-height: 1.65;
}
.article-hero-fig { margin-top: 1.5rem; }
.article-hero-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glow);
}

.article-body-section { padding-block: 2.5rem 4rem; }

.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-figure-top .deco-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--c-neon), var(--c-cyan), transparent);
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.article-bottom-aside { margin-top: 1rem; }

/* ============================================================
   Aside boxes
   ============================================================ */
.aside-box {
  background: var(--c-card);
  border: 1px solid var(--c-card-border);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
}
.aside-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-neon);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.aside-links { display: flex; flex-direction: column; gap: 0.3rem; }
.aside-links li a {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  display: block;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(105,255,105,0.06);
  transition: color 0.15s, padding-left 0.15s;
}
.aside-links li a:hover {
  color: var(--c-neon);
  padding-left: 0.4rem;
  text-shadow: none;
}
.aside-links li:last-child a { border-bottom: none; }
.aside-cta p {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ============================================================
   Page banner (about / contact / privacy)
   ============================================================ */
.page-banner {
  padding-block: 3rem 2.5rem;
  border-bottom: 1px solid rgba(105,255,105,0.08);
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 100%;
  background: radial-gradient(ellipse at right, rgba(0,255,255,0.05), transparent 70%);
  pointer-events: none;
}
.page-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.page-h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}
.page-lead {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 58ch;
}
.about-date {
  display: block;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-top: 0.75rem;
}

/* ============================================================
   About layout
   ============================================================ */
.about-body-section { padding-block: 2.5rem 4rem; }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  align-items: start;
}
.about-main { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.about-figure { display: flex; justify-content: center; }
.about-img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glow);
}
.about-deco-fig {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}
.iris-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: conic-gradient(var(--c-neon), var(--c-cyan), #a78bfa, var(--c-neon)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: iris-rotate 6s linear infinite;
}
@keyframes iris-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .iris-ring { animation: none; } }

.about-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

/* ============================================================
   Contact layout
   ============================================================ */
.contact-body-section { padding-block: 2.5rem 4rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  align-items: start;
}
.contact-main { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-deco-fig { display: flex; justify-content: center; align-items: center; padding: 1rem 0; }
.contact-orb-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(105,255,105,0.2), rgba(0,255,255,0.2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--c-glow-neon);
  animation: pulse-glow 3s ease-in-out infinite;
}
.orb-inner {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-neon), var(--c-cyan));
  opacity: 0.6;
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px var(--c-glow-neon); }
  50% { box-shadow: 0 0 40px var(--c-glow-neon), 0 0 60px var(--c-glow-cyan); }
}
@media (prefers-reduced-motion: reduce) { .contact-orb-ring { animation: none; } }
.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================================
   Privacy layout
   ============================================================ */
.privacy-body-section { padding-block: 2.5rem 4rem; }
.privacy-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  align-items: start;
}
.privacy-main { min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.privacy-deco { padding: 0.5rem 0 1rem; }
.privacy-badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.priv-badge {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3em 0.85em;
  border-radius: 50px;
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.25);
  color: var(--c-cyan);
}
.privacy-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

/* ============================================================
   Default layout
   ============================================================ */
.default-body-section { padding-block: 2.5rem 4rem; }
.default-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  align-items: start;
}
.default-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-item.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-item { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--c-ink2);
  border-top: 1px solid rgba(105,255,105,0.12);
  margin-top: auto;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 2.5rem 2rem;
}
.footer-brand {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--c-neon), var(--c-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.footer-col-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-neon);
  margin-bottom: 0.85rem;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-nav-list li a {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  transition: color 0.15s;
  display: inline-block;
  padding-block: 0.15rem;
  min-height: 28px;
  line-height: 1.7;
}
.footer-nav-list li a:hover {
  color: var(--c-neon);
  text-shadow: none;
}
.footer-bottom {
  border-top: 1px solid rgba(105,255,105,0.08);
  padding-block: 1rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}
.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding-block: 0.1rem;
}
.footer-bottom-links a:hover { color: var(--c-neon); text-shadow: none; }

/* ============================================================
   Responsive — tablet
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { order: -1; }
  .chrome-orb { width: 140px; height: 140px; }

  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; flex-direction: row; flex-wrap: wrap; }

  .about-layout,
  .contact-layout,
  .privacy-layout,
  .default-layout { grid-template-columns: 1fr; }
  .about-aside,
  .contact-aside,
  .privacy-aside,
  .default-aside { position: static; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Responsive — mobile
   ============================================================ */
@media (max-width: 640px) {
  :root { --header-h: 96px; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(23,38,23,0.98);
    border-bottom: 1px solid rgba(105,255,105,0.15);
    z-index: 200;
    padding: 0.5rem 0;
  }
  .main-nav.nav-open { display: block; }
  .nav-list { flex-direction: column; flex-wrap: nowrap; }
  .nav-list li a {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(105,255,105,0.06);
    border-bottom-width: 1px;
    border-left: none;
  }

  .header-nav-row { position: relative; }

  .hero-section { padding-block: 2rem 1.5rem; min-height: auto; }
  .hero-h1 { font-size: 1.45rem; }
  .hero-deco { display: none; }

  .card-link {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
  }
  .card-eyebrow { grid-column: 1; grid-row: 1; }
  .card-title { grid-column: 2; grid-row: 1; }
  .card-desc { grid-column: 1 / -1; grid-row: 2; }
  .card-date { grid-column: 1 / -1; grid-row: 3; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.75rem 1.25rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .article-aside { flex-direction: column; }
  .contact-layout,
  .about-layout,
  .privacy-layout,
  .default-layout { gap: 1.5rem; }

  .page-banner { padding-block: 2rem 1.5rem; }
}
