/* Asom Tea site styles, built on the Asom Tea design system.
   Brand colours are constant; semantic tokens switch between the Cream (light) and Garden (dark) themes. */
:root {
  /* Brand palette */
  --green-night: #0d2218;
  --green-deep: #162b1e;
  --green-mid: #234d35;
  --green-light: #3a7a52;
  --green-leaf: #4a9060;
  --green-mist: #a8c5b0;
  --green-sage: #8aa593;
  --hill-back: #1a4028;
  --hill-mid: #1e5032;
  --hill-fore: #1a3a28;
  --amber: #c8862a;
  --amber-light: #e8a84a;
  --amber-pale: #f5d9a0;
  --amber-deep: #8a5a14;
  --cream: #f7f2e8;
  --parchment: #ede4d2;
  --earth: #4a3728;
  --text-dark: #1c1209;
  --text-mid: #3d2e1e;

  /* Semantic, Cream theme */
  --surface: var(--cream);
  --surface-alt: var(--parchment);
  --surface-raised: var(--cream);
  --surface-input: #fbf8f2;
  --text: var(--green-deep);
  --text-body: var(--text-mid);
  --text-muted: var(--earth);
  --accent: var(--amber);
  --accent-text: var(--amber-deep);
  --on-accent: var(--green-deep);
  --line: rgba(74, 55, 40, .3);
  --line-accent: rgba(200, 134, 42, .28);
  --focus-ring: var(--amber-deep);
  --status-success-bg: #dcead8;
  --status-success-border: #3a7a52;
  --status-success-text: #285a39;
  --status-error-bg: #f4ded8;
  --status-error-border: #a84d3e;
  --status-error-text: #7d3027;

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-label: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --nav-h: 72px;
  --content-max: 1100px;
  --section-y: 7rem;
  --gutter: 6vw;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f1f16;
    --surface-alt: var(--green-deep);
    --surface-raised: #1d3727;
    --surface-input: #0f1f16;
    --text: var(--cream);
    --text-body: #ddd5c4;
    --text-muted: #b9cbbd;
    --accent-text: var(--amber-light);
    --line: rgba(232, 168, 74, .25);
    --line-accent: rgba(232, 168, 74, .3);
    --focus-ring: var(--amber-light);
    --status-success-bg: #1d3a2c;
    --status-success-border: #6fa67b;
    --status-success-text: #a8d4b0;
    --status-error-bg: #3f2320;
    --status-error-border: #c9705f;
    --status-error-text: #f0b4a8;
    color-scheme: dark;
  }
}

/* ─── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body { font-family: var(--font-body); font-size: 18px; line-height: 1.7; background: var(--surface); color: var(--text-body); overflow-x: hidden }
img { display: block; max-width: 100% }
a { text-decoration: none; color: inherit }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px }
.on-dark { --focus-ring: var(--amber-light) }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E") }

/* ─── Section header: tag, title, body ─────────────────────── */
.as-tag { font: 400 .68rem/1.4 var(--font-label); letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 1rem }
.as-title { font: 700 clamp(2rem, 4.5vw, 3.4rem)/1.15 var(--font-display); color: var(--text); margin-bottom: 1.5rem; text-wrap: balance }
.as-title em { font-style: italic; color: var(--accent-text) }
.as-body { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.85; color: var(--text-body) }
.as-body p + p { margin-top: 1.2em }
.on-dark .as-tag { color: var(--amber-light) }
.on-dark .as-title { color: var(--cream) }
.on-dark .as-title em { color: var(--amber-light) }
.on-dark .as-body { color: var(--green-mist) }

/* ─── Buttons ──────────────────────────────────────────────── */
.as-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 2.2rem; border: 1px solid transparent; font: 600 .75rem/1.4 var(--font-label); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .25s, border-color .25s, color .25s, transform .2s }
.as-btn--primary { background: var(--amber); color: var(--on-accent) }
.as-btn--primary:hover { background: var(--amber-light); transform: translateY(-2px) }
.as-btn--outline { border-color: rgba(200, 134, 42, .6); color: var(--accent-text); background: transparent; font-weight: 400 }
.as-btn--outline:hover { border-color: var(--amber); transform: translateY(-2px) }
.on-dark .as-btn--outline { color: var(--amber-pale) }
.on-dark .as-btn--outline:hover { color: var(--amber-light) }
.as-btn[disabled] { opacity: .65; cursor: progress; transform: none }
.as-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center }

/* ─── Leaf divider and leaf mark ───────────────────────────── */
.as-divider { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 0 auto; width: fit-content }
.as-divider::before, .as-divider::after { content: ''; width: 80px; height: 1px; background: linear-gradient(to right, transparent, var(--amber)) }
.as-divider::after { background: linear-gradient(to left, transparent, var(--amber)); order: 2 }
.as-leaf { width: 14px; height: 8px; background: var(--amber); border-radius: 50% 10% 50% 10%; transform: rotate(-30deg); flex-shrink: 0 }
.as-mark { width: 36px; height: 36px; flex-shrink: 0; background: var(--green-deep); border-radius: 50%; display: grid; place-items: center }
.as-mark .as-leaf { background: var(--amber-light) }

/* ─── Navigation ───────────────────────────────────────────── */
.as-nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 5vw; background: rgba(22, 43, 30, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(200, 134, 42, .25); transition: background .3s }
.as-nav.scrolled { background: rgba(22, 43, 30, .98) }
.as-nav__brand { display: flex; align-items: center; flex-shrink: 0 }
.as-nav__brand img { height: 48px; width: auto }
.as-nav__links { display: flex; gap: clamp(1.2rem, 2.2vw, 2.4rem); list-style: none }
.as-nav__links a { position: relative; font: 400 .72rem/1.4 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--green-mist); white-space: nowrap; transition: color .25s }
.as-nav__links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s ease }
.as-nav__links a:hover, .as-nav__links a[aria-current="page"] { color: var(--amber-light) }
.as-nav__links a:hover::after, .as-nav__links a[aria-current="page"]::after { transform: scaleX(1) }
.as-nav__menu { display: none; width: 44px; height: 44px; border: 1px solid rgba(200, 134, 42, .45); background: transparent; color: var(--cream); font-size: 1.3rem; line-height: 1; cursor: pointer }
.as-nav__menu[aria-expanded="true"] { color: var(--amber-light); border-color: var(--amber-light) }
.as-nav__panel { display: none }

/* ─── Hero (homepage tea garden) ───────────────────────────── */
.as-hero { min-height: 100svh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--green-deep); padding: calc(var(--nav-h) + 2rem) 0 6rem }
.as-garden { position: absolute; inset: 0 }
.as-garden::before { content: ''; position: absolute; inset: 0; background: linear-gradient(170deg, var(--green-night) 0%, #1a3d28 28%, #2d6040 55%, var(--green-light) 72%, var(--green-leaf) 85%, #5aaa72 100%) }
.as-mist { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .18; background: #b0d8be }
.as-mist--1 { width: 800px; height: 220px; top: 38%; left: -10% }
.as-mist--2 { width: 600px; height: 160px; top: 44%; right: -5%; opacity: .12 }
.as-mist--3 { width: 400px; height: 100px; top: 55%; left: 30%; opacity: .1 }
.as-hills { position: absolute; inset: 0 }
.as-hill { position: absolute; bottom: 0; left: 0; right: 0 }
.as-hill--back { height: 52%; background: var(--hill-back); border-radius: 60% 40% 0 0 / 100% 80% 0 0 }
.as-hill--mid { height: 42%; background: var(--hill-mid); border-radius: 50% 60% 0 0 / 90% 100% 0 0; transform: translateX(-5%) }
.as-hill--front { height: 30%; background: var(--green-mid); border-radius: 40% 60% 0 0 / 100% 80% 0 0; transform: translateX(8%) }
.as-hill--fore { height: 18%; background: var(--hill-fore) }
.as-tea-rows { position: absolute; bottom: 14%; left: 0; right: 0; height: 20% }
.as-tea-row { position: absolute; border-radius: 60% 60% 40% 40%; background: radial-gradient(ellipse at top, var(--green-leaf), #2d6040) }
.as-sun { position: absolute; top: 8%; right: 15%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--amber-pale) 0%, var(--amber) 40%, transparent 70%); box-shadow: 0 0 80px 40px rgba(200, 134, 42, .22), 0 0 200px 80px rgba(200, 134, 42, .1); animation: as-pulse 4s ease-in-out infinite }
.as-stars { position: absolute; inset: 0 }
.as-star { position: absolute; border-radius: 50%; background: #f5f0e8; animation: as-twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s) }
.as-river { position: absolute; bottom: 16%; left: 20%; right: 35%; height: 12px; background: linear-gradient(90deg, transparent, rgba(180, 220, 200, .35), rgba(200, 220, 210, .5), transparent); border-radius: 50%; filter: blur(2px); animation: as-shimmer 3s ease-in-out infinite }
.as-trees { position: absolute; bottom: 17%; left: 5%; display: flex; gap: 8px; align-items: flex-end }
.as-tree { position: relative; width: 0; height: 0; border-left: solid transparent; border-right: solid transparent; border-bottom: solid var(--green-deep) }
.as-tree::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 4px; height: 18px; background: #0d1f15 }
.as-float-leaf { position: absolute; width: 18px; height: 10px; background: var(--green-light); border-radius: 50% 10% 50% 10%; opacity: .6; animation: as-float var(--dur, 8s) ease-in-out infinite var(--dly, 0s) }
.as-hero__content { position: relative; z-index: 10; text-align: center; padding: 0 1.5rem; animation: as-rise 1.2s cubic-bezier(.22, .68, 0, 1.2) both }
.as-hero__eyebrow { font: 400 .72rem/1.4 var(--font-label); letter-spacing: .35em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 1.4rem }
.as-hero__title { font: 900 clamp(3rem, 8vw, 7rem)/1 var(--font-display); color: var(--cream); text-shadow: 0 4px 40px rgba(0, 0, 0, .5); text-wrap: balance }
.as-hero__title em { display: block; font-style: italic; color: var(--amber-light) }
.as-hero__sub { font-size: clamp(1.15rem, 2.5vw, 1.5rem); color: var(--green-mist); max-width: 520px; margin: 1.5rem auto 2.5rem; line-height: 1.7; letter-spacing: .02em }
.as-hero .as-actions { justify-content: center }
.as-scroll-hint { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: .7; z-index: 10 }
.as-scroll-hint span { font: 400 .62rem var(--font-label); letter-spacing: .25em; text-transform: uppercase; color: var(--green-mist) }
.as-scroll-hint i { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--amber), transparent); animation: as-scroll-line 1.8s ease-in-out infinite }

/* ─── Page hero (inner pages) ──────────────────────────────── */
.as-page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 5rem) var(--gutter) 5rem; background: radial-gradient(circle at 78% 20%, rgba(200, 134, 42, .16), transparent 16%), linear-gradient(170deg, var(--green-night) 0%, #1a3d28 48%, var(--green-mid) 100%); color: var(--cream) }
.as-page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 18%; background: var(--hill-fore); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .55; pointer-events: none }
.as-page-hero__inner { position: relative; z-index: 1; max-width: var(--content-max); margin: 0 auto }
.as-page-hero h1 { max-width: 860px; margin-bottom: 1.3rem; font: 700 clamp(2.6rem, 6vw, 5.4rem)/1.04 var(--font-display); letter-spacing: -.03em; color: var(--cream); text-wrap: balance }
.as-page-hero h1 em { font-style: italic; color: var(--amber-light) }
.as-page-hero p:not(.as-tag) { max-width: 700px; color: var(--green-mist); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.65 }

/* ─── Sections ─────────────────────────────────────────────── */
.as-section { padding: var(--section-y) var(--gutter) }
.as-section--alt { background: var(--surface-alt) }
.as-section--dark { background: var(--green-deep) }
.as-inner { max-width: var(--content-max); margin: 0 auto }
.as-center { text-align: center; max-width: 680px; margin: 0 auto }
.as-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start }
.as-split > * { min-width: 0 }
.as-split--center { align-items: center; gap: 6rem }

/* Prose pages */
.as-prose { max-width: var(--content-max); margin: 0 auto; padding: 4.5rem var(--gutter) 6rem }
.as-prose > h2 { margin: 4rem 0 1.2rem; font: 700 clamp(2rem, 4vw, 3.2rem)/1.12 var(--font-display); color: var(--text); text-wrap: balance }
.as-prose > h2:first-child { margin-top: 0 }
.as-prose > p { max-width: 760px; color: var(--text-body); font-size: 1.15rem; line-height: 1.8 }
.as-prose > p + p { margin-top: 1em }
.as-prose .as-actions { margin-top: 2.5rem }

/* ─── Stats ────────────────────────────────────────────────── */
.as-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem }
.as-stat { border-left: 2px solid var(--amber); padding-left: 1.2rem }
.as-stat strong { display: block; font: 700 2.2rem/1 var(--font-display); color: var(--text) }
.as-stat strong small { font-size: 1.2rem }
.as-stat span { display: block; margin-top: .4rem; font: 400 .66rem/1.4 var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted) }

/* Tea cup illustration */
.as-cup { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 300px }
.as-cup__halo { position: absolute; width: 320px; height: 320px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(200, 134, 42, .08), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%) }
.as-cup__ring { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px dashed rgba(200, 134, 42, .3); top: 50%; left: 50%; translate: -50% -50%; animation: as-pulse 4s ease-in-out infinite }
.as-cup__saucer { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 120px; height: 16px; background: var(--earth); border-radius: 50%; box-shadow: 0 4px 20px rgba(74, 55, 40, .3) }
.as-cup__body { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); width: 90px; height: 70px; background: linear-gradient(135deg, #5a3d2b, #3a2518); border-radius: 10px 10px 20px 20px; box-shadow: inset -8px 0 20px rgba(0, 0, 0, .2), 0 4px 20px rgba(74, 55, 40, .3) }
.as-cup__body::after { content: ''; position: absolute; right: -22px; top: 15px; width: 20px; height: 28px; border: 4px solid #3a2518; border-left: none; border-radius: 0 12px 12px 0 }
.as-cup__body::before { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; height: 8px; border-radius: 50%; background: radial-gradient(ellipse at center, #a0561c, #5d2e0c) }
.as-cup__steam { position: absolute; bottom: 112px; left: 50%; translate: -50% 0; display: flex; gap: 12px; align-items: flex-end }
.as-cup__steam i { width: 4px; height: 0; border-radius: 4px; background: linear-gradient(to top, rgba(200, 200, 200, .7), transparent); animation: as-steam var(--d, 2s) ease-in-out infinite var(--dl, 0s) }
.as-cup__note { position: absolute; font: italic 400 1.1rem var(--font-display); color: var(--accent-text) }
.as-cup__note small { display: block; margin-top: .3rem; font: 400 .58rem var(--font-label); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted) }

/* ─── Quote banner ─────────────────────────────────────────── */
.as-quote { position: relative; overflow: hidden; padding: 5rem var(--gutter); background: var(--green-deep); text-align: center }
.as-quote::before { content: '\201C'; position: absolute; top: -2rem; left: 4vw; font: 400 20rem/1 var(--font-display); color: rgba(255, 255, 255, .03); pointer-events: none }
.as-quote blockquote { max-width: 800px; margin: 2rem auto; font: italic 400 clamp(1.5rem, 3.5vw, 2.6rem)/1.5 var(--font-display); color: var(--cream) }
.as-quote cite { display: block; margin-bottom: 2rem; font: 400 .68rem var(--font-label); font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--amber-light) }

/* ─── Feature list and timeline ────────────────────────────── */
.as-features { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; list-style: none }
.as-feature { display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.4rem; background: var(--surface-alt); border-left: 3px solid var(--amber); transition: transform .25s, box-shadow .25s }
.as-feature:hover { transform: translateX(4px); box-shadow: -4px 0 0 var(--green-mid) }
.as-feature h3 { font: 600 1.1rem/1.3 var(--font-display); color: var(--text); margin-bottom: .3rem }
.as-feature p { font-size: 1rem; line-height: 1.65; color: var(--text-muted) }
.as-timeline { position: relative; padding-left: 2rem; margin-top: 2rem; list-style: none }
.as-timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--amber), var(--green-mist), transparent) }
.as-timeline li { position: relative; padding: 0 0 2rem 1.4rem }
.as-timeline li::before { content: ''; position: absolute; left: calc(-2rem - 6px); top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--amber) }
.as-timeline strong { display: block; margin-bottom: .35rem; font: 400 .68rem var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text) }
.as-timeline p { font-size: 1.05rem; line-height: 1.6; color: var(--text-body) }

/* ─── Grade cards ──────────────────────────────────────────── */
.as-grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem }
.as-grade { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 2.5rem 2rem; background: rgba(255, 255, 255, .04); border: 1px solid rgba(200, 134, 42, .2); transition: transform .3s, border-color .3s }
.as-grade::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(200, 134, 42, .06), transparent); opacity: 0; transition: opacity .3s; pointer-events: none }
.as-grade:hover { transform: translateY(-6px); border-color: rgba(200, 134, 42, .6) }
.as-grade:hover::before { opacity: 1 }
.as-grade__num { position: absolute; top: 1rem; right: 1.2rem; font: 900 4rem/1 var(--font-display); color: rgba(200, 134, 42, .14) }
.as-grade__code { font: 700 2.4rem/1 var(--font-display); color: var(--amber-pale); margin-bottom: .4rem }
.as-grade__name { font: 400 .66rem/1.5 var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 1rem }
.as-grade p { font-size: 1.05rem; line-height: 1.7; color: var(--green-mist) }
.as-grade__tag { margin-top: auto; padding-top: 1.2rem }
.as-grade__tag span, .as-grade__tag a { display: inline-block; padding: .35rem .9rem; border: 1px solid rgba(200, 134, 42, .4); font: 400 .62rem var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--amber-light) }
.as-grade__tag a:hover { border-color: var(--amber-light) }
.as-panel-dark { margin-top: 3rem; padding: 2rem; max-width: 700px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(200, 134, 42, .2) }
.as-panel-dark p:not(.as-tag) { color: var(--green-mist); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.2rem }
.as-grades-wrap { background: var(--green-deep); padding: 3.5rem 2.5rem; margin: 2.5rem calc(var(--gutter) * -1) }
.as-grades--flush { margin-top: 0 }
.as-prose > .as-grades-wrap:first-child { margin-top: -4.5rem }

/* ─── Legacy cards and info cards ──────────────────────────── */
.as-legacy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem }
.as-legacy article { text-align: center; padding: 2.5rem 1.5rem; background: var(--surface-raised); border-top: 3px solid var(--amber); transition: transform .25s }
.as-legacy article:hover { transform: translateY(-4px) }
.as-legacy .as-leaf { margin: 0 auto 1.2rem }
.as-legacy h3 { font: 700 1.1rem/1.3 var(--font-display); color: var(--text); margin-bottom: .7rem }
.as-legacy p { font-size: 1rem; line-height: 1.7; color: var(--text-muted) }
.as-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 2rem 0 }
.as-card { position: relative; padding: 2rem 1.5rem; background: var(--green-deep); border: 1px solid rgba(200, 134, 42, .22); border-top: 3px solid var(--amber); transition: transform .25s, border-color .25s }
.as-card:hover { transform: translateY(-5px); border-color: rgba(200, 134, 42, .65) }
.as-card h3 { margin-bottom: .6rem; font: 700 1.45rem/1.25 var(--font-display); color: var(--amber-pale) }
.as-card p { color: var(--green-mist); font-size: 1.05rem; line-height: 1.65 }
.as-note { max-width: 760px; margin: 2rem 0; padding: 1.3rem 1.5rem; background: var(--surface-alt); border-left: 3px solid var(--amber); color: var(--text-body); font-size: 1.1rem }
.as-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px }

/* ─── Steps: the CTC process and how to order ──────────────── */
.as-flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 2.2rem 0 1rem }
.as-flow--order { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.as-flow li { position: relative; padding: 2rem 1.6rem 2.1rem; background: var(--surface-alt); border-top: 3px solid var(--amber) }
.as-flow__num { position: absolute; top: 1.1rem; right: 1.3rem; font: italic 700 3rem/1 var(--font-display); color: var(--amber); opacity: .35 }
.as-flow h3 { margin: 0 0 .7rem; padding-right: 3.2rem; font: 700 1.3rem/1.25 var(--font-display); color: var(--text) }
.as-flow p { font-size: 1.1rem; line-height: 1.75; color: var(--text-muted) }
.as-flow--order li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -1.05rem; width: .7rem; height: .7rem; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); transform: translateY(-50%) rotate(45deg); z-index: 1 }

/* ─── Grade comparison table ───────────────────────────────── */
.as-gt { margin: 2.2rem 0 3rem }
.as-gt__caption { margin: 0 0 1.1rem; max-width: 760px; font-size: 1.15rem; line-height: 1.75; color: var(--text-muted) }
.as-gt__caption strong { color: var(--text); font-weight: 600 }
.as-gt__scroll { overflow-x: auto; border: 1px solid var(--line-accent); background: var(--surface) }
.as-gt__scroll:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px }
.as-gt__table { width: 100%; min-width: 780px; border-collapse: collapse; text-align: left }
.as-gt__table thead th { padding: 1.2rem 1.3rem; vertical-align: bottom; background: var(--green-deep); border-bottom: 3px solid var(--amber) }
.as-gt__h { display: block; font: 600 .66rem/1.4 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--amber-light) }
.as-gt__sub { display: block; margin-top: .3rem; font: italic 400 .98rem/1.35 var(--font-body); color: var(--green-mist) }
.as-gt__table tbody tr { border-top: 1px solid var(--line) }
.as-gt__table tbody tr:nth-child(even) { background: var(--surface-alt) }
.as-gt__table tbody th, .as-gt__table td { padding: 1.3rem; vertical-align: middle; font-weight: 400 }
.as-gt__grade { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; color: var(--text) }
.as-gt__mark { grid-row: span 2; font: italic 700 1.7rem/1 var(--font-display); color: var(--amber) }
.as-gt__code { font: 700 1.45rem/1.1 var(--font-display) }
.as-gt__table tbody th { min-width: 220px }
.as-gt__code { white-space: nowrap }
.as-gt__name { font-size: .98rem; line-height: 1.35; color: var(--text-muted) }
.as-gt__grade:hover .as-gt__code { color: var(--accent-text) }
.as-meter { display: flex; gap: 3px; margin-bottom: .45rem }
.as-meter i { width: 14px; height: 8px; border-radius: 50% 10% 50% 10%; background: var(--line) }
.as-meter i.on { background: var(--amber) }
.as-meter__label { font: 400 .64rem/1.4 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted) }
.as-gt__cup { font: italic 400 1.15rem/1.45 var(--font-display); color: var(--text); min-width: 180px }
.as-gt__use { font-size: 1.08rem; line-height: 1.55; color: var(--text-body); min-width: 210px }

/* ─── FAQ ──────────────────────────────────────────────────── */
.as-faq { display: grid; gap: .9rem; max-width: 860px; margin: 1.8rem 0 2.6rem }
.as-faq details { background: var(--surface-alt); border-left: 3px solid transparent; transition: border-color .2s }
.as-faq details[open] { border-left-color: var(--amber) }
.as-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.3rem 1.5rem }
.as-faq summary::-webkit-details-marker { display: none }
.as-faq__q { font: 700 1.2rem/1.35 var(--font-display); color: var(--text) }
.as-faq__icon { flex: 0 0 30px; height: 30px; border: 1px solid var(--amber); position: relative }
.as-faq__icon::before, .as-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--accent-text); transform: translate(-50%, -50%) }
.as-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s }
.as-faq details[open] .as-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg) }
.as-faq summary:hover .as-faq__q { color: var(--accent-text) }
.as-faq__a { padding: 0 1.5rem 1.5rem }
.as-faq__a p { max-width: 68ch; font-size: 1.15rem; line-height: 1.9; color: var(--text-muted) }

.as-prose > p a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px }
.as-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

@media (max-width: 1000px) {
  .as-flow, .as-flow--order { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .as-flow--order li:not(:last-child)::after { display: none }
}
@media (max-width: 600px) {
  .as-flow, .as-flow--order { grid-template-columns: 1fr }
  .as-faq summary { padding: 1.1rem 1.1rem }
  .as-faq__a { padding: 0 1.1rem 1.2rem }
}

/* ─── Contact ──────────────────────────────────────────────── */
.as-contact-list { display: flex; flex-direction: column; gap: 1.8rem; margin-top: 2.5rem; list-style: none }
.as-contact-list li { display: flex; align-items: flex-start; gap: 1rem }
.as-contact-list strong { display: block; margin-bottom: .3rem; font: 400 .66rem var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text) }
.as-contact-list p { color: var(--text-body); line-height: 1.55 }
.as-contact-list a { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line-accent) }

/* ─── Form ─────────────────────────────────────────────────── */
.as-form { display: flex; flex-direction: column; gap: 1.2rem; padding: 2rem; background: var(--surface-alt); border: 1px solid var(--line-accent); border-top: 3px solid var(--amber) }
.as-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem }
.as-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0 }
.as-label { font: 400 .66rem/1.4 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted) }
.as-label span { text-transform: none; letter-spacing: .05em }
.as-input, .as-textarea { width: 100%; padding: .85rem 1rem; background: var(--surface-input); border: 1px solid var(--line); border-radius: 0; font: 400 1.05rem var(--font-body); color: var(--text); outline: none; transition: border-color .25s, box-shadow .25s }
.as-input:focus, .as-textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200, 134, 42, .15) }
.as-input:user-invalid { border-color: var(--status-error-border) }
.as-textarea { resize: vertical; min-height: 140px }
.as-field small { font-size: .9rem; line-height: 1.35; color: var(--text-muted) }
.as-field small.as-error { color: var(--status-error-text); min-height: 1.1em }
.as-form__note { font-size: .95rem; font-style: italic; color: var(--text-muted) }
.as-form .as-btn { align-self: flex-start }
.as-status { padding: .9rem 1rem; border-left: 3px solid; font-size: 1rem }
.as-status--success { background: var(--status-success-bg); border-color: var(--status-success-border); color: var(--status-success-text) }
.as-status--error { background: var(--status-error-bg); border-color: var(--status-error-border); color: var(--status-error-text) }

/* ─── Footer ───────────────────────────────────────────────── */
.as-footer { background: var(--green-deep); padding: 4rem var(--gutter) 2rem; border-top: 1px solid rgba(200, 134, 42, .2) }
.as-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .08) }
.as-footer__brand img { height: 64px; width: auto; margin-bottom: 1rem }
.as-footer__sub { font: 400 .62rem var(--font-label); letter-spacing: .25em; text-transform: uppercase; color: var(--green-mist); margin-bottom: 1rem }
.as-footer__tagline { font-size: 1rem; color: var(--green-sage); line-height: 1.7; max-width: 300px }
.as-footer h2 { font: 400 .66rem var(--font-label); letter-spacing: .25em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 1.2rem }
.as-footer h2 + ul + h2 { margin-top: 1.6rem }
.as-footer ul { list-style: none; display: flex; flex-direction: column; gap: .7rem }
.as-footer li { font-size: 1rem; color: var(--green-sage) }
.as-footer li a { transition: color .2s }
.as-footer li a:hover { color: var(--amber-light) }
.as-footer__bottom { padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font: 400 .62rem var(--font-label); letter-spacing: .15em; text-transform: uppercase; color: var(--green-sage) }
.as-footer__bottom a { color: var(--amber-light) }

/* ─── Reveal on scroll (only when JS runs) ─────────────────── */
.js .as-reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease }
.js .as-reveal.visible { opacity: 1; transform: none }
.as-delay-1 { transition-delay: .15s }
.as-delay-2 { transition-delay: .3s }
.as-delay-3 { transition-delay: .45s }

@keyframes as-pulse { 0%, 100% { opacity: .85; transform: scale(1) } 50% { opacity: 1; transform: scale(1.06) } }
@keyframes as-twinkle { 0%, 100% { opacity: .9 } 50% { opacity: .2 } }
@keyframes as-shimmer { 0%, 100% { opacity: .6 } 50% { opacity: 1 } }
@keyframes as-float { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-30px) rotate(25deg) } }
@keyframes as-rise { from { opacity: 0; transform: translateY(40px) } to { opacity: 1; transform: none } }
@keyframes as-scroll-line { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform: scaleY(1); transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }
@keyframes as-steam { 0% { height: 0; opacity: .8 } 60% { opacity: .5 } 100% { height: 60px; opacity: 0; transform: translateX(var(--tx, 6px)) scaleX(1.4) } }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .as-nav__links { display: none }
  .as-nav__menu { display: block }
  .as-nav__panel { position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; padding: .5rem 5vw 1rem; background: rgba(22, 43, 30, .99); border-bottom: 1px solid rgba(200, 134, 42, .25); box-shadow: 0 18px 35px rgba(7, 17, 12, .35); max-height: calc(100svh - var(--nav-h)); overflow-y: auto }
  .as-nav__panel.open { display: grid }
  .as-nav__panel a { padding: 1rem .2rem; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 400 .78rem var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: var(--green-mist) }
  .as-nav__panel a:last-child { border-bottom: 0 }
  .as-nav__panel a[aria-current="page"], .as-nav__panel a:hover { color: var(--amber-light) }
  .as-legacy { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 900px) {
  .as-split, .as-split--center, .as-footer__top { grid-template-columns: 1fr; gap: 3rem }
  .as-grades { grid-template-columns: repeat(2, 1fr); gap: 1.2rem }
}
@media (max-width: 640px) {
  :root { --section-y: 5rem; --gutter: 5vw }
  .as-nav__brand img { height: 40px }
  .as-grades, .as-legacy, .as-form__row { grid-template-columns: 1fr }
  .as-form { padding: 1.4rem }
  .as-stats { gap: 1.5rem }
  .as-cup__note { display: none }
  .as-grades-wrap { padding: 2.5rem 1.2rem }
}

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