
:root {
  --cream: #F8F2EA;
  --ivory: #FFFDF9;
  --nude: #E6D8C9;
  --nude-2: #F0E7DD;
  --gold: #C8A46D;
  --sage: #8F9A8C;
  --sage-dark: #6F7B68;
  --espresso: #2D2724;
  --brown: #6E4B3D;
  --rose: #D9B7AA;
  --line: rgba(45,39,36,.12);
  --shadow: 0 18px 45px rgba(45,39,36,.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--espresso);
  background:
    radial-gradient(circle at 12% 6%, rgba(200,164,109,.16), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(143,154,140,.14), transparent 30rem),
    var(--cream);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.75;
  letter-spacing: .025em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; color: rgba(45,39,36,.74); }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.serif, h1, h2, h3 {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-weight: 600;
  letter-spacing: .04em;
}
h1, h2, h3 { margin: 0; line-height: 1.32; }
h1 { font-size: clamp(2.25rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
.section { padding: 88px 0; }
.section.soft { background: rgba(255,253,249,.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.lead { font-size: 1.05rem; max-width: 680px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 48px;
  font-weight: 700;
  font-size: .95rem;
  transition: .2s ease;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { color: #fff; background: var(--sage-dark); box-shadow: 0 14px 30px rgba(111,123,104,.22); }
.btn.primary:hover { transform: translateY(-2px); background: #5F6A58; }
.btn.secondary { color: var(--brown); background: rgba(255,253,249,.75); border-color: rgba(110,75,61,.24); }
.btn.secondary:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn.gold { color: var(--espresso); background: #F1DFBE; border-color: rgba(200,164,109,.4); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  background: rgba(255,253,249,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--brown);
  white-space: nowrap;
}
.logo strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.15rem;
  letter-spacing: .01em;
  line-height: 1;
}
.logo span { font-size: .82rem; color: rgba(45,39,36,.56); }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: .92rem; font-weight: 700; }
.nav-links a { color: rgba(45,39,36,.72); }
.nav-links a:hover { color: var(--sage-dark); }

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248,242,234,.96) 0%, rgba(248,242,234,.86) 44%, rgba(248,242,234,.35) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 82px 0;
}
.hero h1 { color: var(--espresso); margin-bottom: 24px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,253,249,.72);
  border: 1px solid rgba(200,164,109,.22);
  color: rgba(45,39,36,.72);
  font-size: .86rem;
  font-weight: 700;
}
.pill svg, .mini-icon svg {
  width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.hero-visual {
  min-height: 500px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(230,216,201,.15)),
    url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?auto=format&fit=crop&w=1200&q=80') center/cover;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-visual::after {
  content: "Crisci";
  position: absolute;
  right: 28px; top: 26px;
  color: rgba(110,75,61,.55);
  font-family: Georgia, serif;
  font-size: 1.7rem;
}
.photo-card {
  min-height: 330px;
  border-radius: var(--radius-xl);
  background: var(--nude);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.photo-room { background: url('https://images.unsplash.com/photo-1600948836101-f9ffda59d250?auto=format&fit=crop&w=1200&q=80') center/cover; }
.photo-products { background: url('https://images.unsplash.com/photo-1620916566398-39f1143ab7be?auto=format&fit=crop&w=1200&q=80') center/cover; }
.photo-treatment { background: url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=1200&q=80') center/cover; }
.photo-texture { background: url('https://images.unsplash.com/photo-1612817288484-6f916006741a?auto=format&fit=crop&w=1200&q=80') center/cover; }
.photo-journal { background: url('https://images.unsplash.com/photo-1596462502278-27bfdc403348?auto=format&fit=crop&w=1400&q=80') center/cover; }
.photo-serum { background: url('https://images.unsplash.com/photo-1620916297397-a4a5402a3c6c?auto=format&fit=crop&w=1200&q=80') center/cover; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}
.section-head .lead { margin: 14px auto 0; }
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: rgba(255,253,249,.82);
  border: 1px solid rgba(45,39,36,.09);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 16px 40px rgba(45,39,36,.055);
}
.card.center { text-align: center; }
.icon-box {
  width: 68px; height: 68px;
  display: inline-grid; place-items: center;
  border-radius: 22px;
  background: rgba(200,164,109,.1);
  border: 1px solid rgba(200,164,109,.28);
  color: var(--gold);
  margin-bottom: 18px;
}
.icon-box.sage { background: rgba(143,154,140,.12); color: var(--sage-dark); border-color: rgba(143,154,140,.28); }
.icon-box svg { width: 36px; height: 36px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; color: var(--brown); }
.card small { display: block; color: var(--sage-dark); font-weight: 800; margin-top: 16px; }

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 54px;
}
.philosophy-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.feature-mini {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.feature-mini svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-mini strong { display:block; margin:8px 0 4px; color:var(--brown); }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.timeline::before {
  content:"";
  position:absolute; left:7%; right:7%; top:36px;
  height:1px;
  border-top:1px dashed rgba(200,164,109,.65);
}
.step {
  text-align:center;
  position:relative;
  background: rgba(255,253,249,.68);
  padding: 0 10px 20px;
  border-radius: var(--radius-md);
}
.step-num {
  width: 34px; height: 34px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items:center;
  background: var(--gold);
  color:#fff;
  font-weight:800;
  position:relative;
  z-index:2;
}
.step .icon-box { width:62px; height:62px; margin-bottom:10px; background:var(--ivory); }
.step .icon-box svg { width:32px; height:32px; }

.product-grid { grid-template-columns: 1.1fr repeat(4, 1fr); align-items: stretch; }
.product-card {
  min-height: 210px;
  padding: 0;
  overflow:hidden;
}
.product-card .thumb, .article-card .thumb {
  height: 150px;
  background: var(--nude);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.product-card .body, .article-card .body { padding: 18px; }
.thumb.bottles { background: url('https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?auto=format&fit=crop&w=900&q=80') center/cover; }
.thumb.green { background: url('https://images.unsplash.com/photo-1556228720-195a672e8a03?auto=format&fit=crop&w=900&q=80') center/cover; }
.thumb.water { background: url('https://images.unsplash.com/photo-1616394584738-fc6e612e71b9?auto=format&fit=crop&w=900&q=80') center/cover; }
.thumb.dropper { background: url('https://images.unsplash.com/photo-1615397349754-cfa2066a298e?auto=format&fit=crop&w=900&q=80') center/cover; }

.article-card {
  padding: 0;
  overflow: hidden;
}
.tag {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:5px 10px;
  background: rgba(200,164,109,.14);
  color: var(--brown);
  font-size:.78rem;
  font-weight:800;
  margin-bottom:10px;
}
.meta {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.84rem;
  color: rgba(45,39,36,.55);
  margin-top:16px;
}
.meta svg { width:16px; height:16px; stroke: currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.article-card h3 { font-size:1.1rem; }
.article-card p { font-size:.9rem; }
.readmore { display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-weight:800; color:var(--sage-dark); }

.testimonial {
  position: relative;
  padding-top: 44px;
}
.testimonial::before {
  content:"“";
  position:absolute; top:8px; left:24px;
  color: rgba(200,164,109,.32);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height:1;
}
.avatar {
  width:44px; height:44px; border-radius:50%;
  background: linear-gradient(135deg, var(--nude), var(--rose));
  margin-top:18px;
}
.stars { color: var(--gold); letter-spacing: .15em; margin-top: 8px; }

.contact-panel {
  display:grid;
  grid-template-columns: 1fr 1.15fr .8fr;
  gap:24px;
  align-items:stretch;
  background: rgba(255,253,249,.76);
  border:1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow);
}
.contact-list { display:grid; gap:12px; margin-top:18px; }
.contact-list li { list-style:none; display:flex; align-items:flex-start; gap:10px; color:rgba(45,39,36,.75); }
.contact-list svg { width:20px; height:20px; stroke:var(--gold); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; margin-top:4px; }
.map-embed {
  min-height: 260px;
  border-radius: 22px;
  overflow:hidden;
  border:1px solid var(--line);
  background: var(--nude);
}
.map-embed iframe { width:100%; height:100%; min-height:260px; border:0; }
.cta-stack { display:grid; gap:12px; align-content:center; }

.footer {
  padding: 44px 0 24px;
  background: rgba(255,253,249,.7);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display:grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap:34px;
}
.footer h4 { margin:0 0 12px; color:var(--brown); }
.footer a, .footer p { font-size:.9rem; color:rgba(45,39,36,.64); display:block; margin-bottom:8px; }
.socials { display:flex; gap:10px; margin-top:16px; }
.socials a {
  width:36px; height:36px; border-radius:50%;
  display:grid; place-items:center;
  background: rgba(143,154,140,.14);
  color:var(--sage-dark);
  font-weight:800;
}
.copyright { margin-top:30px; padding-top:18px; border-top:1px solid var(--line); font-size:.82rem; color:rgba(45,39,36,.52); text-align:center; }

.mobile-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  display:none;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
  padding:8px;
  border-radius:20px;
  background:rgba(255,253,249,.92);
  backdrop-filter: blur(16px);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.mobile-cta a {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  min-height:48px;
  border-radius:14px;
  font-size:.75rem;
  font-weight:800;
  color:var(--sage-dark);
}
.mobile-cta svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

.page-hero {
  padding: 88px 0 58px;
  background: linear-gradient(135deg, rgba(255,253,249,.7), rgba(230,216,201,.38));
}
.page-hero-inner {
  display:grid;
  grid-template-columns: 1fr .9fr;
  gap:48px;
  align-items:center;
}
.breadcrumb { font-size:.86rem; color:rgba(45,39,36,.56); margin-bottom:22px; }
.category-bar {
  transform: translateY(34px);
  margin-top:-8px;
  background: rgba(255,253,249,.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow);
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
}
.category-tab {
  min-height:96px;
  border-radius:18px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:12px 6px;
  color:var(--brown);
  font-weight:800;
  border:1px solid transparent;
}
.category-tab.active { background: var(--sage-dark); color:#fff; }
.category-tab svg { width:32px; height:32px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; margin-bottom:6px; }
.journal-layout {
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:28px;
}
.featured-article {
  display:grid;
  grid-template-columns: .9fr 1fr;
  gap:32px;
  align-items:center;
  margin-bottom:50px;
}
.sidebar { display:grid; gap:20px; align-content:start; position:sticky; top:100px; }
.topic-list { display:grid; gap:10px; margin-top:10px; }
.topic-list a {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  color:rgba(45,39,36,.72);
  font-weight:700;
}
.topic-list svg { width:20px; height:20px; stroke:var(--gold); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.tag-cloud span { padding:7px 10px; border-radius:999px; background:rgba(230,216,201,.48); font-size:.82rem; color:var(--brown); }

.article-layout {
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:54px;
  align-items:start;
}
.toc {
  position:sticky;
  top:100px;
}
.toc a {
  display:flex; align-items:center; gap:10px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  color:rgba(45,39,36,.68);
  font-size:.9rem;
  font-weight:700;
}
.toc svg { width:20px; height:20px; stroke:var(--gold); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.article-content {
  background: rgba(255,253,249,.78);
  border:1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 46px;
  box-shadow: var(--shadow);
}
.article-section { padding: 10px 0 38px; }
.article-section h2 { font-size:2rem; margin-bottom:16px; }
.article-section p + p { margin-top:12px; }
.bullet-list { margin:18px 0 0; padding:0; display:grid; gap:10px; }
.bullet-list li {
  list-style:none;
  display:flex;
  gap:10px;
  color:rgba(45,39,36,.74);
}
.bullet-list li::before {
  content:"";
  width:7px; height:7px; border-radius:50%;
  background:var(--gold);
  margin-top:12px;
  flex:0 0 auto;
}
.reason-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:20px; }
.reason-card { text-align:center; padding:22px 16px; border:1px solid var(--line); border-radius:18px; background:rgba(248,242,234,.55); }
.reason-card svg { width:32px; height:32px; stroke:var(--gold); fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.callout {
  display:flex;
  gap:16px;
  padding:22px;
  border-radius:20px;
  border:1px solid rgba(200,164,109,.28);
  background:rgba(200,164,109,.1);
  margin:22px 0;
}
.callout svg { width:32px; height:32px; stroke:var(--gold); fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
.inline-media {
  min-height:260px;
  border-radius:24px;
  overflow:hidden;
  margin:24px 0;
}

.newsletter {
  display:grid;
  grid-template-columns: 1fr 1fr auto;
  align-items:center;
  gap:20px;
  padding:28px;
  border-radius: var(--radius-xl);
  background: rgba(230,216,201,.38);
  border:1px solid var(--line);
}
.input {
  width:100%;
  min-height:48px;
  border-radius:999px;
  border:1px solid rgba(45,39,36,.12);
  background:rgba(255,253,249,.84);
  padding:0 18px;
  outline:none;
  color:var(--espresso);
}

@media (max-width: 1024px) {
  .nav-links { display:none; }
  .hero-inner, .split, .page-hero-inner, .featured-article, .contact-panel, .journal-layout, .article-layout { grid-template-columns:1fr; }
  .hero-visual { min-height:380px; }
  .grid-4, .product-grid { grid-template-columns:repeat(2, 1fr); }
  .timeline { grid-template-columns:repeat(3,1fr); }
  .timeline::before { display:none; }
  .category-bar { grid-template-columns: repeat(4,1fr); transform:none; margin-top:24px; }
  .sidebar, .toc { position:static; }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
  .reason-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 640px) {
  body { padding-bottom: 78px; }
  .container { width:min(100% - 28px, var(--max)); }
  .site-header, .nav { height:64px; }
  .logo strong { font-size:1.75rem; }
  .logo span { display:none; }
  .site-header .btn { display:none; }
  .hero { min-height:auto; }
  .hero-inner { padding:44px 0; }
  .hero-visual { min-height:300px; border-radius:24px; }
  .section { padding:58px 0; }
  .grid-4, .grid-5, .product-grid, .grid-3, .grid-2, .timeline, .footer-grid, .reason-grid { grid-template-columns:1fr; }
  .philosophy-icons { grid-template-columns:1fr; }
  .category-bar { display:flex; overflow-x:auto; padding:10px; }
  .category-tab { min-width:128px; }
  .article-content { padding:26px 18px; }
  .newsletter { grid-template-columns:1fr; }
  .contact-panel { padding:18px; }
  .mobile-cta { display:grid; }
}

/* ===================================================================
   CSS-first motion — hover lift, image zoom, scroll reveal (zero JS)
   =================================================================== */

/* hover: card lift + soft shadow */
.card {
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              box-shadow .35s cubic-bezier(.22,.61,.36,1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(45,39,36,.16);
}

/* hover: thumbnail image zoom (parent card already clips via overflow:hidden) */
.product-card .thumb,
.article-card .thumb {
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.product-card:hover .thumb,
.article-card:hover .thumb { transform: scale(1.07); }

/* scroll-driven reveal — progressive enhancement; unsupported = static/visible */
@supports (animation-timeline: view()) {
  /* containers rise + fade (no hover-translate on these, so no conflict) */
  .section-head,
  .feature-mini,
  .featured-article {
    animation: crisci-rise .95s cubic-bezier(.22,.61,.36,1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  /* cards fade only — avoids fighting the hover translateY on .card */
  .card {
    animation: crisci-fade .95s cubic-bezier(.22,.61,.36,1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  @keyframes crisci-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes crisci-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ===================================================================
   Horizontal-scroll rails — narrow-width fix for multi-card grids
   rail-lg engages <=1024 (5-col services); rail-md engages <=768
   (4-col brands, 3-col reviews/knowledge/articles). Desktop grid intact.
   =================================================================== */

/* scroll hint — hidden by default, revealed per breakpoint below */
.hscroll-hint {
  display: none;
  text-align: right;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--sage);
  margin: 2px 2px 12px;
}

/* shared rail behaviour */
.rail-lg, .rail-md {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* keep 3-col grids at 3 columns down to 768 (was collapsing to 2 -> orphan) */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .rail-lg {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .rail-lg > * {
    flex: 0 0 auto;
    width: min(72vw, 300px);
    scroll-snap-align: start;
  }
  .hint-lg { display: block; }
}

@media (max-width: 768px) {
  .rail-md {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .rail-md > * {
    flex: 0 0 auto;
    width: min(78vw, 300px);
    scroll-snap-align: start;
  }
  .hint-md { display: block; }
}

@media (max-width: 640px) {
  .hint-sm { display: block; }
}

/* ===================================================================
   Footer — brand block full-width on narrow, links in tidy columns
   =================================================================== */
@media (max-width: 1024px) {
  /* brand block spans full row; other 4 blocks form a 2x2 grid */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 34px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* brand full row, three link columns share 2 cols, contact full row */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .footer-grid > :first-child,
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

/* a11y: honour reduced-motion — kill all motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
