/* ===== Design Tokens ===== */
:root, [data-theme="light"] {
  --color-bg:             #f5f4f0;
  --color-surface:        #f9f8f5;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #ece9e3;
  --color-divider:        #d6d2cb;
  --color-border:         #cac6be;

  --color-text:           #1e1c17;
  --color-text-muted:     #6b6760;
  --color-text-faint:     #a8a49e;
  --color-text-inverse:   #f9f8f4;

  /* Steel-blue primary — industrial, precision, trustworthy */
  --color-primary:        #2b5c7a;
  --color-primary-hover:  #1e4460;
  --color-primary-active: #132e42;
  --color-primary-highlight: #c8d8e2;

  --color-accent:         #b85c1e;  /* warm copper accent for CTAs */
  --color-accent-hover:   #943f0e;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px oklch(0.2 0.01 60 / 0.08);
  --shadow-md: 0 4px 16px oklch(0.2 0.01 60 / 0.10);
  --shadow-lg: 0 12px 40px oklch(0.2 0.01 60 / 0.14);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --font-display: 'Noto Serif TC', 'Georgia', serif;
  --font-body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

[data-theme="dark"] {
  --color-bg:             #131210;
  --color-surface:        #1a1917;
  --color-surface-2:      #201f1c;
  --color-surface-offset: #252320;
  --color-divider:        #2e2c28;
  --color-border:         #363430;
  --color-text:           #cccac5;
  --color-text-muted:     #7a7872;
  --color-text-faint:     #4e4c48;
  --color-text-inverse:   #1e1c17;
  --color-primary:        #5a9ab8;
  --color-primary-hover:  #3d7d9e;
  --color-primary-highlight: #1e3040;
  --color-accent:         #e0834a;
  --color-accent-hover:   #c8652e;
  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.45);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scroll-padding-top: 5rem; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); }
p { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }
a, button, [role="button"] {
  transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), opacity var(--transition-interactive);
}
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ===== Layout Utilities ===== */
.container { max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6); }
.container-wide { max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-zh {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}
.logo-en {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  font-weight: 400;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.nav-link:hover { color: var(--color-text); background: var(--color-surface-offset); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
}
.nav-cta:hover { background: var(--color-primary-hover); }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  margin-left: var(--space-3);
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface-offset); }
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.mobile-menu-btn:hover { background: var(--color-surface-offset); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-surface-offset) 100%);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, var(--color-text) 0px, var(--color-text) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, var(--color-text) 0px, var(--color-text) 1px, transparent 1px, transparent 60px);
  pointer-events: none;
}
.hero-accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-accent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
}
.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: oklch(from var(--color-accent) l c h / 0.10);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-8);
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.2);
}
.btn-secondary:hover { background: var(--color-surface-offset); border-color: var(--color-border); }
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.stat-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero-img-block {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-offset);
}
.hero-img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Philosophy Section ===== */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.8;
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-top: var(--space-12);
}
.philosophy-principles {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.principle-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.principle-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.5;
}
.principle-body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.principle-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.philosophy-visual {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.philosophy-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
}
.philosophy-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.est-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}

/* ===== About ===== */
.about-section {
  background: var(--color-surface);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
}
.about-image-col {
  position: relative;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-offset);
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width:100%; height:100%; object-fit: cover; }
.about-img-badge {
  position: absolute;
  bottom: -var(--space-6);
  right: calc(-1 * var(--space-4));
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  box-shadow: var(--shadow-md);
  right: -1rem;
  bottom: 1.5rem;
}
.about-img-badge-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.about-img-badge-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.about-content { padding-top: var(--space-4); }
.about-body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.info-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.info-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

/* ===== Products Section ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.product-card {
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--color-surface-offset);
  overflow: hidden;
}
.product-img img { width:100%; height:100%; object-fit:cover; }
.product-body {
  padding: var(--space-5) var(--space-6);
}
.product-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.product-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.product-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--color-surface);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.contact-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
}
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(from var(--color-primary) l c h / 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}
.contact-card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}
.contact-card-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.6;
}
.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-offset);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding-block: var(--space-12);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid oklch(from var(--color-text-inverse) l c h / 0.12);
}
.footer-brand {}
.footer-logo-zh {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-1);
}
.footer-logo-en {
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-tagline {
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.6);
  margin-top: var(--space-3);
  max-width: 28ch;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.footer-link-group {}
.footer-link-group-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(from var(--color-text-inverse) l c h / 0.4);
  margin-bottom: var(--space-4);
}
.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-link-list a {
  text-decoration: none;
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
}
.footer-link-list a:hover { color: var(--color-text-inverse); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-copy {
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.4);
}
.footer-tax {
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.4);
}

/* ===== Divider ===== */
hr.divider {
  border: none;
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  margin-block: 0;
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}
.mobile-nav a:hover { background: var(--color-surface-offset); color: var(--color-text); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-visual { order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-image-col { max-width: 400px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .about-info-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, oklch(from var(--color-primary) l c h / 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-bg), var(--color-surface));
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), visibility 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.page-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-10);
  text-align: center;
}
.loader-mark {
  width: 84px;
  height: 84px;
  position: relative;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.loader-ring::before,
.loader-ring::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--color-primary);
  border-right-color: oklch(from var(--color-primary) l c h / 0.35);
}
.loader-ring::before {
  animation: spin 1.1s linear infinite;
}
.loader-ring::after {
  inset: 22px;
  border-top-color: var(--color-accent);
  border-right-color: oklch(from var(--color-accent) l c h / 0.35);
  animation: spinReverse 1.8s linear infinite;
}
.loader-bars {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 14px;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.loader-bars span {
  width: 8px;
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
  opacity: 0.45;
  transform-origin: center bottom;
  animation: pulse 0.95s ease-in-out infinite;
}
.loader-bars span:nth-child(2) { animation-delay: 0.12s; background: var(--color-accent); }
.loader-bars span:nth-child(3) { animation-delay: 0.24s; }
.loader-bars span:nth-child(4) { animation-delay: 0.36s; background: var(--color-accent); }
.loader-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: var(--color-text);
}
.loader-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}
.loader-track {
  width: 180px;
  height: 2px;
  border-radius: 999px;
  background: oklch(from var(--color-text) l c h / 0.08);
  overflow: hidden;
}
.loader-track::before {
  content: '';
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
  animation: sweep 1.35s ease-in-out infinite;
}
body.is-loading { overflow: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes pulse {
  0%, 100% { transform: scaleY(0.7); opacity: 0.35; }
  50% { transform: scaleY(1.7); opacity: 1; }
}
@keyframes sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}


/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; } }
