:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --fg: #1d1d1f;
  --fg-muted: #6e6e73;
  --fg-on-dark: #f5f5f7;
  --muted-on-dark: #a1a1a6;
  --line: #d2d2d7;
  --accent: #c8102e;
  --accent-hover: #a50d25;
  --link: #0066cc;
  --link-on-dark: #2997ff;
  --card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --radius: 22px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --bg-dark: #1d1d1f;
    --fg: #f5f5f7;
    --fg-muted: #a1a1a6;
    --line: #38383d;
    --link: #2997ff;
    --card: #1c1c1e;
    --nav-bg: rgba(22, 22, 23, 0.72);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--fg-muted); font-size: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: 8px; }

/* type */
.display { font-size: clamp(40px, 7.4vw, 80px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.headline { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.028em; font-weight: 700; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--fg-muted); max-width: 680px; margin-top: 18px; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 10px; letter-spacing: 0; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 24px; color: var(--accent); }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav nav a { color: var(--fg); opacity: 0.8; font-size: 13px; letter-spacing: -0.01em; }
.nav nav a:hover, .nav nav a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav nav a[aria-current="page"] { font-weight: 600; }
.lang { font-size: 12px; font-weight: 600; color: var(--fg); border: 1px solid var(--line); border-radius: 980px; padding: 3px 10px; }
.lang:hover { text-decoration: none; border-color: var(--fg); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 760px) {
  .nav-inner { gap: 12px; }
  .nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 36px; height: 44px; margin-left: auto; cursor: pointer; order: 3; }
  .nav-burger span { display: block; height: 1.5px; width: 18px; margin: 0 auto; background: var(--fg); transition: transform .3s; }
  .lang { order: 2; margin-left: auto; }
  .nav nav { position: absolute; top: 52px; left: 0; right: 0; background: var(--bg); max-height: 0; overflow: hidden; transition: max-height .35s ease; margin: 0; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 22px 20px; }
  .nav nav a { display: block; font-size: 24px; font-weight: 600; padding: 10px 0; opacity: 1; }
  .nav-toggle:checked ~ nav { max-height: 420px; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.actions.center { justify-content: center; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-size: 17px; font-weight: 500;
  padding: 12px 24px; border-radius: 980px; transition: background .2s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.link { font-size: 17px; color: var(--link); }
.link.light { color: var(--link-on-dark); }

/* hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero .actions { justify-content: center; }
.hero-art { max-width: 860px; margin: 48px auto 0; padding: 0 22px; }
.hero-art img { margin: 0 auto; max-height: 620px; width: auto; }

.reveal { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
.reveal:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } html { scroll-behavior: auto; } }

/* sections */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--bg-dark); color: var(--fg-on-dark); }
.section.dark .lead { color: var(--muted-on-dark); }
.section.dark .muted { color: var(--muted-on-dark); }
.page-head { padding: 88px 0 72px; overflow: hidden; }
.page-head .hero-art { margin-top: 40px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .actions, .split .btn { margin-top: 28px; }
.split .link { display: inline-block; margin-top: 24px; }
.feature-img img { border-radius: var(--radius); margin: 0 auto; }
.feature-img.tall img { max-height: 640px; width: auto; }
.dark .feature-img img { border-radius: 0; }

/* ecosystem */
.eco-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.eco-card {
  background: var(--card); border-radius: var(--radius); padding: 40px 36px 0; color: var(--fg);
  display: flex; flex-direction: column; overflow: hidden; min-height: 520px; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.eco-card:hover { text-decoration: none; transform: scale(1.012); box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.eco-text h3 { font-size: 32px; letter-spacing: -0.02em; }
.eco-text p { color: var(--fg-muted); margin-top: 8px; }
.eco-text .link { display: inline-block; margin-top: 14px; }
.eco-img { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; }
.eco-img img { max-height: 300px; width: auto; border-radius: 14px 14px 0 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.stats strong { display: block; font-size: clamp(44px, 6vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.stats span { display: block; color: var(--fg-muted); margin-top: 14px; max-width: 260px; margin-left: auto; margin-right: auto; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: start; }
.gallery img { border-radius: var(--radius); width: 100%; }
.gallery img:nth-child(2) { margin-top: 48px; }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cols-4 .product { padding: 28px 22px; }
.cols-4 .product h3 { font-size: 24px; }
.cols-4 .specs div { flex-direction: column; gap: 2px; }
.cols-4 .specs dd { text-align: left; }
.product { background: var(--card); border-radius: var(--radius); padding: 32px; scroll-margin-top: 72px; }
.section:not(.alt) .product { background: var(--bg-alt); }
.product h3 { font-size: 28px; }
.product > p:not(.eyebrow) { color: var(--fg-muted); margin-top: 10px; }
.product-visual { height: 260px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.product-visual .bag-img { max-height: 260px; width: auto; }
.specs { margin: 22px 0 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--fg-muted); }
.specs dd { margin: 0; text-align: right; font-weight: 500; }

/* typographic coffee bag */
.bag {
  width: 150px; height: 230px; border-radius: 10px 10px 16px 16px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 26px; color: #fff;
  box-shadow: inset -18px 0 30px rgba(0,0,0,.22), inset 10px 0 20px rgba(255,255,255,.08), 0 18px 30px -12px rgba(0,0,0,.35);
}
.bag::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 22px; border-radius: 10px 10px 0 0; background: rgba(0,0,0,.18); }
.bag-mark {
  width: 56px; height: 39px; margin-bottom: auto; margin-top: 46px; background: currentColor;
  -webkit-mask: url(/assets/img/true-cafe-mark.png) center / contain no-repeat; mask: url(/assets/img/true-cafe-mark.png) center / contain no-repeat;
}
.bag-grey .bag-mark { background: #97192f; }
.bag-name { font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; line-height: 1.15; padding: 0 10px; }
.bag-sub { font-size: 10px; letter-spacing: 0.24em; opacity: .75; margin-top: 6px; }
.bag-gold { background: linear-gradient(160deg, #3b2a1a, #1e140c); color: #d9b46a; }
.bag-ink { background: linear-gradient(160deg, #2b2b2e, #0d0d0f); color: #e8e8ed; }
.bag-navy { background: linear-gradient(160deg, #24496b, #102a40); color: #d6b25e; }
.bag-red { background: linear-gradient(160deg, #e0263f, #a50d25); }
.bag-brown { background: linear-gradient(160deg, #7a4a2a, #4a2a14); color: #f3e2c7; }
.bag-green { background: linear-gradient(160deg, #2f6b46, #173b25); color: #f1e7cf; }
.bag-grey { background: linear-gradient(160deg, #f2f2f4, #cfcfd4); color: #1d1d1f; }

/* tiles */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.feature-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.tile { background: var(--card); border-radius: var(--radius); padding: 32px 28px; }
.section:not(.alt) .tile { background: var(--bg-alt); }
.tile h3 { font-size: 21px; margin-bottom: 10px; }
.tile p { color: var(--fg-muted); font-size: 16px; overflow-wrap: anywhere; }
.num { display: block; font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }

/* facts */
.facts dl { margin: 0; max-width: 820px; margin: 0 auto; }
.facts div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--fg-muted); }
.facts dd { margin: 0; }

/* chips */
.chips { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips a { display: inline-block; padding: 12px 22px; border-radius: 980px; border: 1px solid var(--line); color: var(--fg); background: var(--card); }
.chips a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.cta-band { padding: 110px 0; }

/* footer */
.footer { background: var(--bg-alt); color: var(--fg-muted); font-size: 13px; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 40px; }
.footer .brand { margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--fg-muted); }
.footer a:hover { color: var(--fg); }
.footer address { font-style: normal; line-height: 1.7; }
.footer address strong { color: var(--fg); }
.footer-base { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: 12px; }

/* responsive */
@media (max-width: 1000px) {
  .feature-grid, .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 52px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .eco-grid, .stats, .gallery, .feature-grid, .feature-grid.three, .footer-grid { grid-template-columns: 1fr; }
  .eco-card { min-height: 0; padding: 32px 24px 0; }
  .eco-text h3 { font-size: 26px; }
  .gallery img:nth-child(2) { margin-top: 0; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .product-grid, .product-grid.cols-4 { grid-template-columns: 1fr; }
  .hero-art img { max-height: 420px; }
}

/* True Food wordmark */
.brand { text-transform: none; letter-spacing: -0.02em; font-size: 20px; font-weight: 600; gap: 7px; }
.brand b { font-weight: 800; color: var(--accent); margin-left: 1px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

/* icons */
.ico { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; margin-bottom: 18px; }
.eco-icons { display: flex; gap: 22px; justify-content: center; align-items: center; padding: 40px 0 56px; }
.eco-icons .ico { width: 64px; height: 64px; stroke-width: 1.2; margin: 0; }
.split + .wrap .feature-grid { margin-top: 56px; }

/* brand list */
.brands { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.brands li { font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: var(--fg-muted); }
.eyebrow.center { text-align: center; }
#oem .feature-grid { margin-top: 48px; }
.hero-collage img { max-height: 560px; border-radius: var(--radius); }
.eco-icons.big { padding: 0; }
.eco-icons.big .ico { width: 120px; height: 120px; stroke: var(--fg-on-dark); stroke-width: 0.9; }
.split .feature-img img { max-height: 560px; width: auto; }

/* photos */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { margin-top: 56px; }
.hero-photo .photo { aspect-ratio: 16 / 9; }
.hero-photo.plain img { max-height: 520px; width: auto; margin: 0 auto; }
.split .photo { aspect-ratio: 4 / 3; }
.split .feature-img img { max-height: 560px; }
.section-tight { padding: 0 0 100px; }

/* Apple-style card rail */
.rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(22px, calc((100vw - var(--wrap)) / 2 + 22px));
  padding: 40px max(22px, calc((100vw - var(--wrap)) / 2 + 22px)) 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
@media (max-width: 760px) {
  .hero-photo .photo { aspect-ratio: 4 / 3; }
  .section-tight { padding-bottom: 72px; }
}
.section:not(.alt):not(.dark) .eco-card { background: var(--bg-alt); }
.rail-nav { display: flex; justify-content: flex-end; gap: 12px; }
.rail-nav[hidden] { display: none; }
.rail-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; line-height: 1;
  background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--fg);
}
.rail-nav button:hover { background: color-mix(in srgb, var(--fg) 18%, transparent); }
.section.dark .rail-nav button { background: rgba(255,255,255,.14); color: #fff; }
@media (hover: none) { .rail-nav { display: none !important; } }

/* ---------- typography tune-up (Vietnamese diacritics need air) ---------- */
body { letter-spacing: -0.005em; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.lead { text-wrap: balance; }
.display { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
.headline { font-size: clamp(30px, 4vw, 48px); line-height: 1.16; letter-spacing: -0.018em; }
.lead { line-height: 1.45; }
.page-head .display { max-width: 900px; margin: 0 auto; }
.eco-text h3, .tile h3, .product h3 { line-height: 1.25; }
.stats strong { letter-spacing: -0.02em; }

/* ---------- scroll motion (only when JS + motion allowed) ---------- */
.motion .mo { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .mo.in { opacity: 1; transform: none; }
.motion .scard.mo { transform: translateX(40px); }
.motion .scard.mo.in { transform: none; }
.motion a.scard.mo.in:hover { transform: scale(1.012); }

/* ---------- Apple Store layout ---------- */



.scard {
  position: relative; flex: 0 0 auto; display: flex; flex-direction: column; overflow: hidden; scroll-snap-align: start;
  width: 400px; height: 500px; border-radius: 18px; background: var(--card); color: var(--fg);
  box-shadow: 2px 4px 12px rgba(0,0,0,.08); transition: box-shadow .3s cubic-bezier(0,0,.5,1), transform .3s cubic-bezier(0,0,.5,1);
}
a.scard:hover { text-decoration: none; transform: scale(1.012); box-shadow: 2px 4px 16px rgba(0,0,0,.16); }
.scard.md { width: 313px; height: 460px; }
.scard.sm { width: 313px; height: auto; min-height: 210px; }
.scard-copy { padding: 26px 28px 0; }
.scard-eb { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #bf4800; margin-bottom: 6px; }
.scard h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.scard.lg h3 { font-size: 28px; }
.scard-sub { font-size: 16px; line-height: 1.45; color: var(--fg-muted); margin-top: 8px; text-wrap: balance; }
.scard-cta { font-size: 15px; color: var(--link); margin-top: 10px; }
.scard-media { flex: 1; min-height: 0; margin-top: 18px; }
.scard-media .scard-img { width: 100%; height: 100%; object-fit: cover; }
.scard-media.contain { padding: 4px 24px 26px; }
.scard-media.contain .scard-img { object-fit: contain; mix-blend-mode: multiply; }
.scard-bag { margin-top: auto; display: flex; justify-content: center; padding: 18px 0 30px; }
.scard.sm .scard-ico { order: -1; padding: 26px 28px 0; }
.scard.sm .scard-ico .ico { width: 36px; height: 36px; margin: 0; }
.scard.sm .scard-copy { padding-top: 14px; padding-bottom: 26px; }
.scard.sm h3 { font-size: 21px; }
@media (prefers-color-scheme: dark) {
  .scard-media.contain .scard-img { mix-blend-mode: normal; }
  .scard-eb { color: #ff9f5a; }
}
@media (max-width: 760px) {
  .scard { width: 82vw; height: 440px; }
  .scard.md { width: 74vw; height: 420px; }
  .scard.sm { width: 74vw; }
}

/* ---------- wrapping & small layout rules ---------- */
.footer address { display: flex; flex-direction: column; gap: 2px; }
.stats span { max-width: 300px; text-wrap: balance; }
.footer p, .footer address span, dd, .tile p, .product > p, .eco-text p, .facts dd { text-wrap: balance; }
.nw { white-space: nowrap; }
.split .feature-img img { max-height: 560px; width: auto; }

/* focal points for portrait crops */
img[src*="/team.webp"] { object-position: 50% 78%; }
img[src*="/farmer-sorting.webp"] { object-position: 50% 35%; }
img[src*="/roastery.webp"] { object-position: 55% 60%; }

/* ======================================================================
   Apple Store layout — measured from apple.com/vn/store
   ====================================================================== */
/* global nav like apple.com: 44px, small centred links */
.nav { background: rgba(250, 250, 252, .8); border-bottom: 0; }
.nav-inner { height: 44px; max-width: 1024px; }
.nav nav a { font-size: 12px; letter-spacing: -0.01em; opacity: .8; }
.brand { font-size: 17px; }
@media (prefers-color-scheme: dark) { .nav { background: rgba(22, 22, 23, .8); } }

.as-page { background: #f5f5f7; padding-bottom: 80px; }
@media (prefers-color-scheme: dark) { .as-page { background: #000; } }
.as-wrap { width: min(1160px, calc(100% - 44px)); margin-left: auto; margin-right: auto; }

/* header: "Store" + right-aligned subheader */
.as-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 90px; }
.as-h1 { font-size: 80px; line-height: 84px; font-weight: 600; letter-spacing: -0.015em; }
.as-sub { text-align: right; max-width: 430px; }
.as-sub p { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: .007em; text-wrap: balance; }
.as-sub a { display: inline-block; margin-top: 6px; font-size: 14px; color: #0066cc; }
@media (prefers-color-scheme: dark) { .as-sub a { color: #2997ff; } }

/* category row: cut-out product shots, 14px semibold labels */
.as-cats { padding-top: 56px; }
.as-cat-rail { list-style: none; margin: 0; gap: 0; padding-top: 0; padding-bottom: 8px; }
.as-cat-rail li { flex: 0 0 auto; scroll-snap-align: start; }
.as-cat-rail a { display: flex; flex-direction: column; align-items: center; width: 136px; padding: 18px 8px 0; color: var(--fg); }
.as-cat-rail a:hover { text-decoration: none; }
.as-cat-visual { width: 120px; height: 78px; display: flex; align-items: center; justify-content: center; transition: transform .3s cubic-bezier(0,0,.5,1); }
.as-cat-rail a:hover .as-cat-visual { transform: scale(1.06); }
.as-cat-visual .as-cut { max-width: 100%; max-height: 78px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.as-cat-visual .illus { height: 70px; width: auto; }
.as-cat-visual .bag { transform: scale(.32); flex: 0 0 auto; }
.as-cat-name { margin-top: 14px; font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; }

/* shelves */
.as-shelf { padding-top: 64px; }
.as-shelf-title { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: .007em; padding-bottom: 8px; }
.as-shelf-title strong { font-weight: 600; color: var(--fg); }
.as-shelf-title span { color: #6e6e73; }
.as-rail { gap: 20px; padding-top: 16px; padding-bottom: 40px; }
.as-page .rail-nav { margin-top: -24px; }
.as-page .rail-nav button { width: 36px; height: 36px; border-radius: 50%; background: rgba(210, 210, 215, .64); color: #fff; font-size: 22px; }
.as-page .rail-nav button:hover { background: rgba(223, 223, 227, .7); }

/* cards: 400×500, radius 18, soft shadow */
.as-card {
  position: relative; flex: 0 0 auto; width: 400px; height: 500px; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: #fff; color: #1d1d1f; scroll-snap-align: start;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, .08); transition: box-shadow .3s cubic-bezier(0,0,.5,1), transform .3s cubic-bezier(0,0,.5,1);
}
a.as-card:hover { text-decoration: none; transform: scale(1.01); box-shadow: 2px 4px 16px rgba(0, 0, 0, .16); }
.as-card.wide { width: 480px; }
.as-card.dark { background: #000; color: #f5f5f7; }
.as-copy { padding: 28px 28px 0; position: relative; z-index: 2; }
.as-eb { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase; color: #b64400; padding-bottom: 8px; }
.as-card.dark .as-eb { color: #ff791b; }
.as-card h3 { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: .007em; text-wrap: balance; }
.as-desc { font-size: 14px; line-height: 18px; padding-top: 10px; text-wrap: balance; }
.as-price { font-size: 14px; line-height: 18px; padding-top: 6px; color: inherit; opacity: .8; }
.as-visual { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px 24px 28px; }
.as-visual .as-cut { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.as-card:not(.dark) .as-visual .as-cut { mix-blend-mode: multiply; }
.as-visual .bag { transform: scale(1.05); }
.as-card.dark .as-visual .bag { box-shadow: 0 30px 60px -20px rgba(255,255,255,.12); }
/* photo that fades up out of the black card */
.as-photo { flex: 1; min-height: 0; margin-top: 18px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%); mask-image: linear-gradient(to bottom, transparent 0, #000 28%); }
.as-photo-img { width: 100%; height: 100%; object-fit: cover; }
/* photo fills the card, caption sits on a soft bottom gradient */
.as-card.full { width: 313px; height: 500px; background: #000; color: #fff; }
.as-full-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-card.full::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.72)); }
.as-full-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 28px 28px; }
.as-eb.light { color: rgba(255,255,255,.8); }
.as-full-copy h3 { font-size: 24px; line-height: 28px; }
/* small cards: icon + sentence with a coloured phrase */
.as-card.small { width: 313px; height: 240px; padding: 28px; }
.as-ico .ico { width: 40px; height: 40px; stroke: currentColor; stroke-width: 1.6; margin: 0 0 14px; }
.as-small-text { font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: .009em; color: #1d1d1f; text-wrap: balance; }

@media (prefers-color-scheme: dark) {
  .as-card:not(.dark):not(.full) { background: #1d1d1f; color: #f5f5f7; }
  .as-small-text { color: #f5f5f7; }
  .as-card:not(.dark) .as-visual .as-cut, .as-cat-visual .as-cut { mix-blend-mode: normal; }
}
@media (max-width: 1068px) {
  .as-h1 { font-size: 64px; line-height: 68px; }
  .as-sub p { font-size: 24px; line-height: 28px; }
}
@media (max-width: 734px) {
  .as-head { flex-direction: column; align-items: flex-start; padding-top: 48px; gap: 16px; }
  .as-h1 { font-size: 48px; line-height: 52px; }
  .as-sub { text-align: left; }
  .as-sub p { font-size: 21px; line-height: 25px; }
  .as-cats { padding-top: 24px; }
  .as-cat-rail a { width: 104px; }
  .as-cat-visual { width: 96px; height: 64px; }
  .as-cat-visual .as-cut { max-height: 64px; }
  .as-cat-visual .illus { height: 58px; }
  .as-cat-visual .bag { transform: scale(.26); }
  .as-shelf { padding-top: 48px; }
  .as-shelf-title { font-size: 21px; line-height: 25px; }
  .as-card, .as-card.wide { width: 82vw; height: 460px; }
  .as-card.full { width: 72vw; height: 440px; }
  .as-card.small { width: 72vw; height: auto; min-height: 200px; }
  .as-card h3 { font-size: 24px; line-height: 28px; }
  .as-small-text { font-size: 21px; line-height: 25px; }
}
/* the white OEM bag used for "your brand" */
.bag-white { background: linear-gradient(160deg, #ffffff, #e8e8ed); color: #1d1d1f; }
.bag-white .bag-mark { background: #b3132b; }
/* align shelf rails with the 1160px store column */
.as-page .rail { padding-left: max(22px, calc((100vw - 1160px) / 2)); padding-right: max(22px, calc((100vw - 1160px) / 2)); scroll-padding-inline: max(22px, calc((100vw - 1160px) / 2)); }
.as-page .as-cat-rail { padding-left: max(14px, calc((100vw - 1160px) / 2 - 8px)); }

/* ---------- technology content ---------- */
.feature-grid.two { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.as-steps .as-cat-visual .ico { width: 44px; height: 44px; stroke: var(--fg); stroke-width: 1.3; margin: 0; }
.as-step-no { margin-top: 10px; font-size: 12px; font-weight: 600; color: #6e6e73; font-variant-numeric: tabular-nums; }
.as-steps .as-cat-name { margin-top: 2px; }
.proc-index { background: var(--bg-alt); padding: 8px 0 0; }
.proc { scroll-margin-top: 60px; }
.split.rev > :first-child { order: 2; }
.proc-ico { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.section.alt .proc-ico { background: var(--bg); }
.proc-ico .ico { width: 120px; height: 120px; stroke-width: .9; margin: 0; }
.proc-key { color: #b64400; }
.proc-points { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.proc-points li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.decl-table { margin-top: 32px; border-top: 1px solid var(--line); }
.decl-row { display: grid; grid-template-columns: 170px 1.2fr 90px 2fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.decl-head { font-size: 12px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) {
  .feature-grid.two { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .decl-row { grid-template-columns: 1fr 1fr; }
  .decl-head { display: none; }
}
.proc-points li { text-wrap: balance; }
