@charset "utf-8";
/* ==========================================================================
   富士牌 FUJI BRAND — 千富塑膠廠股份有限公司
   Modern responsive stylesheet
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  --navy-900: #0d1338;
  --navy-800: #151d55;
  --navy-700: #1e2a7a;
  --navy-100: #e8ebf7;

  --accent: #0f9fc9;
  --accent-600: #0b7fa3;
  --accent-100: #e2f4fa;

  --ink: #1a2035;
  --body: #4a5468;
  --muted: #78829a;
  --line: #e3e7f0;
  --bg: #f5f7fb;
  --card: #ffffff;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(13, 19, 56, .06), 0 2px 8px rgba(13, 19, 56, .05);
  --shadow: 0 6px 20px rgba(13, 19, 56, .08);
  --shadow-lg: 0 18px 44px rgba(13, 19, 56, .14);

  --header-h: 72px;
  --container: 1180px;

  --font: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體",
    "Hiragino Sans", Roboto, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; display: block; border: 0; }
img { height: auto; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

a { color: var(--accent-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.35; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section { padding-block: clamp(44px, 7vw, 84px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--alt { background: #fff; }

.section-head { margin-bottom: clamp(24px, 4vw, 40px); }
.section-head.center { text-align: center; margin-inline: auto; max-width: 720px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -.01em;
}

.section-title + p { margin-top: 12px; color: var(--body); }

.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--body); }

p + p { margin-top: 14px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 159, 201, .3);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 159, 201, .38); }

.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { color: #fff; background: var(--navy-700); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: #fff; color: var(--navy-800); transform: translateY(-2px); }

.btn--outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-600); transform: translateY(-2px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: auto; height: 42px; }
.brand-text { display: none; }
.brand-text strong { display: block; font-size: 15px; color: var(--navy-800); line-height: 1.3; }
.brand-text span { display: block; font-size: 11px; letter-spacing: .14em; color: var(--muted); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.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); }

.site-nav ul { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.site-nav a:hover { background: var(--navy-100); color: var(--navy-800); }
.site-nav a[aria-current="page"] { background: var(--navy-800); color: #fff; }

.header-cta { display: none; }

@media (max-width: 959px) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
  }
  .site-nav > ul { overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; padding-inline: clamp(16px, 4vw, 32px); }
  .site-header.is-open .site-nav { grid-template-rows: 1fr; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { padding: 15px 4px; border-radius: 10px; font-size: 16px; }
  .site-nav a[aria-current="page"] { background: none; color: var(--accent-600); }
  .site-nav li:first-child a { margin-top: 6px; }
  .site-nav li:last-child a { margin-bottom: 10px; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .brand-text { display: block; }
  .brand img { height: 46px; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 1100px) {
  .site-nav a { padding: 10px 18px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(400px, 56vw, 560px);
  padding-block: clamp(56px, 9vw, 96px);
  color: #fff;
  background: var(--navy-900) center / cover no-repeat;
  background-image:
    linear-gradient(105deg, rgba(13, 19, 56, .92) 0%, rgba(21, 29, 85, .78) 46%, rgba(15, 159, 201, .35) 100%),
    url("../images/main-banner-big.jpg");
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: linear-gradient(to top, var(--bg), rgba(245, 247, 251, 0));
  z-index: -1;
}

.hero-inner { max-width: 640px; }

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.22;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.hero h1 em { font-style: normal; color: #7fe0ff; }

.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, .86);
  margin-bottom: 30px;
  max-width: 46ch;
}

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 76px);
  color: #fff;
  background: var(--navy-900) center / cover no-repeat;
  background-image:
    linear-gradient(100deg, rgba(13, 19, 56, .94) 0%, rgba(21, 29, 85, .82) 55%, rgba(15, 159, 201, .42) 100%),
    url("../images/main-banner-big.jpg");
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(26px, 4.6vw, 40px);
  letter-spacing: -.01em;
}
.page-hero p { color: rgba(255, 255, 255, .82); margin-top: 10px; max-width: 60ch; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* ---------- stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: clamp(-40px, -4vw, -28px);
  position: relative;
  z-index: 2;
}
.stats div { background: #fff; padding: 22px 18px; text-align: center; }
.stats strong {
  display: block;
  font-size: clamp(22px, 3.2vw, 30px);
  color: var(--navy-800);
  line-height: 1.2;
}
.stats span { font-size: 13px; color: var(--muted); }

@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 720px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}

/* product tile */
.tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: var(--ink);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfd8ea; color: var(--ink); }

.tile-media {
  height: clamp(150px, 24vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #f7f9fd 0%, #eef2f9 100%);
  border-bottom: 1px solid var(--line);
}
.tile-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }

.tile-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.tile-body h3 { font-size: 17px; }
.tile-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.tile-more { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--accent-600); }
.tile:hover .tile-more { color: var(--accent); }

/* feature card */
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-100);
  color: var(--accent-600);
  font-weight: 800;
  font-size: 15px;
}
.feature h3 { font-size: 17px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* split (image + text) */
.split { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.split--stretch { align-items: stretch; }
@media (min-width: 900px) {
  .split--stretch .map-embed { aspect-ratio: auto; height: 100%; min-height: 320px; }
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.1fr .9fr; } }

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-800);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- news list ---------- */
.news { display: grid; gap: 12px; }
.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-item .dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.news-item h3 { font-size: 16.5px; }
.news-item p { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--navy-100));
}
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}
.timeline strong { display: block; color: var(--navy-800); font-size: 18px; }
.timeline p { font-size: 14.5px; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gallery img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery a:hover img { transform: scale(1.02); box-shadow: var(--shadow); }

/* ---------- product page layout ---------- */
.product-layout { display: grid; gap: clamp(20px, 3vw, 32px); align-items: start; grid-template-columns: minmax(0, 1fr); }
.product-layout > * { min-width: 0; }
@media (min-width: 940px) { .product-layout { grid-template-columns: 268px minmax(0, 1fr); } }

.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
@media (min-width: 940px) { .side-nav { position: sticky; top: calc(var(--header-h) + 16px); } }

.side-nav h2 { font-size: 14px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; padding: 6px 10px 12px; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.side-nav a::after { content: "›"; color: var(--muted); font-size: 18px; line-height: 1; }
.side-nav a:hover { background: var(--navy-100); color: var(--navy-800); }
.side-nav a[aria-current="page"] { background: var(--navy-800); color: #fff; }
.side-nav a[aria-current="page"]::after { color: rgba(255, 255, 255, .7); }

/* on small screens the series list becomes a horizontal chip strip */
@media (max-width: 939px) {
  .side-nav { padding: 12px; }
  .side-nav h2 { padding: 2px 4px 10px; }
  .side-nav ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .side-nav li { flex: 0 0 auto; scroll-snap-align: start; }
  .side-nav a {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 14.5px;
  }
  .side-nav a::after { display: none; }
  .side-nav a[aria-current="page"] { border-color: var(--navy-800); }
}

.product-head { display: grid; gap: clamp(18px, 3vw, 32px); margin-bottom: clamp(22px, 3vw, 32px); }
@media (min-width: 700px) { .product-head { grid-template-columns: 300px minmax(0, 1fr); align-items: center; } }

.product-photo {
  display: grid;
  place-items: center;
  padding: 26px;
  min-height: 240px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f6fc 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.product-photo img { max-height: 260px; width: auto; mix-blend-mode: multiply; }

.product-title { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 10px; }

.product-intro { margin-bottom: clamp(22px, 3vw, 32px); }

/* ---------- tables ---------- */
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-card > h3 {
  font-size: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, #f5f7fb);
}
.table-card + .table-card { margin-top: 20px; }
.table-card + .product-head { margin-top: clamp(28px, 4vw, 40px); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table-scroll table { width: 100%; min-width: 520px; font-size: 14.5px; }

.table-scroll th {
  background: var(--navy-800);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  padding: 13px 14px;
  white-space: nowrap;
}
.table-scroll td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.table-scroll tbody tr:nth-child(even) td { background: #fafbfe; }
.table-scroll tbody tr:hover td { background: var(--accent-100); }
.table-scroll tbody tr:last-child td { border-bottom: 0; }

.scroll-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (min-width: 700px) { .scroll-hint { display: none; } }

/* ---------- contact info ---------- */
.info-list { display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-100);
  font-size: 18px;
}
.info-list dt, .info-list .label { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.info-list .value { display: block; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.info-list a.value:hover { color: var(--accent-600); }

.map-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
}
.map-embed iframe { width: 100%; height: 100%; }
@media (min-width: 900px) { .map-embed { aspect-ratio: 21 / 9; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 62%, var(--accent-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
}
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(21px, 3vw, 28px); }
.cta-band p { color: rgba(255, 255, 255, .82); margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  padding-top: clamp(40px, 6vw, 64px);
}
.footer-grid { display: grid; gap: clamp(26px, 4vw, 40px); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand img { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; }
.site-footer .footer-brand p { margin-top: 14px; max-width: 34ch; font-size: 14px; line-height: 1.8; }

.footer-links { display: grid; gap: 10px; }
.footer-office + .footer-office { margin-top: 18px; }
.footer-office strong { color: #fff; display: block; font-size: 14.5px; margin-bottom: 4px; }
.footer-office p { line-height: 1.8; }

.footer-bottom {
  margin-top: clamp(30px, 5vw, 46px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-600); }

/* ---------- reveal on scroll (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .to-top, .hero, .page-hero, .cta-band { display: none !important; }
  body { background: #fff; }
  .card, .table-card { box-shadow: none; border-color: #ccc; }
}
