/* HWC Coffee v2 — Warm Origin */
:root {
  --cream: #f3ece2;
  --cream-2: #ebe1d3;
  --white: #ffffff;
  --espresso: #2a1c13;
  --espresso-2: #3a2a1f;
  --ink-soft: #5c4a3d;
  --caramel: #a8642f;
  --caramel-dark: #8c4f20;
  --caramel-light: #e9cfb5;
  --sage: #7d8b6a;
  --sage-light: #dfe4d6;
  --line: #e1d4c3;
  --ph: #ddcbb5;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(42, 28, 19, .35);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- base (wrapped in :where to keep specificity 0) ---------- */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:where(body) {
  margin: 0; background: var(--cream); color: var(--espresso);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;

}
:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
:where(img) { display: block; max-width: 100%; height: auto; }
:where(a) { color: inherit; }
:where(button, input, textarea) { font: inherit; color: inherit; }
:where(address) { font-style: normal; }
:where(:focus-visible) { outline: 3px solid var(--caramel); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--espresso); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- type ---------- */
.display, .h2, .h3, .h4 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; letter-spacing: -0.01em; color: var(--espresso); }
.display { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.06; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.14; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.25; }
.h4 { font-size: 1.16rem; line-height: 1.3; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 36em; }
.lead-sm { font-size: 1.08rem; color: var(--ink-soft); }
.note { font-size: .86rem; color: var(--ink-soft); }
.split-copy > * + *, .sec-head > * + *, .products-intro > * + *, .cta-copy > * + * { margin-top: 18px; }
.split-copy p, .sec-head p, .products-intro p { color: var(--ink-soft); }
.sec-head { max-width: 720px; margin: 0 auto 48px; }
.sec-head.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 2px solid var(--caramel); transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-solid { background: var(--caramel); color: #fff; }
.btn-solid:hover { background: var(--caramel-dark); border-color: var(--caramel-dark); }
.btn-outline { background: transparent; color: var(--caramel-dark); }
.btn-outline:hover { background: var(--caramel); color: #fff; }
.btn-on-dark { color: #f3d9bf; border-color: #c98a55; }
.btn-on-dark:hover { background: #f3ece2; color: var(--espresso); border-color: #f3ece2; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .9rem; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--caramel-dark); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--caramel-light); padding-bottom: 2px; }
.text-link:hover { border-color: var(--caramel); }
.text-link .ico { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover .ico { transform: translateX(3px); }

.ico { width: 22px; height: 22px; flex: none; }
.icon-circle { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sage-light); color: #4f5c3f; flex: none; }
.icon-circle .ico { width: 26px; height: 26px; }
.icon-lg { width: 72px; height: 72px; }
.icon-lg .ico { width: 36px; height: 36px; }

/* ---------- images ---------- */
.pic { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--ph) linear-gradient(135deg, #e6d6c2, #cfb89c); }
.pic img { width: 100%; height: 100%; object-fit: cover; color: transparent; background-color: var(--ph); }
.concept-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(42, 28, 19, .78); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; pointer-events: none;
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.sec-cream { background: var(--cream); }
.sec-white { background: var(--white); }
.sec-espresso { background: var(--espresso); color: #f3ece2; }
.sec-espresso .h2 { color: #fbf6ef; }
.sec-espresso p { color: #d9c9b8; }
.sec-espresso .eyebrow { color: #e0a56f; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243, 236, 226, .94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; flex: none; }
.logo img { width: 104px; height: auto; }
.logo-invert img { filter: invert(1); }
.main-nav { flex: 1; }
.main-nav ul { display: flex; justify-content: center; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--espresso); white-space: nowrap; }
.main-nav a:hover { background: var(--cream-2); }
.main-nav a.is-active { background: var(--espresso); color: #fbf6ef; }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.utility-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.utility-link .ico { width: 18px; height: 18px; color: var(--sage); }
.utility-link:hover { color: var(--caramel-dark); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; left: 0; right: 0; top: 76px; bottom: 0; background: var(--cream); overflow-y: auto; padding: 16px 0 40px; border-top: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a:not(.btn) { display: block; padding: 16px 4px; text-decoration: none; }
.mobile-menu a span { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.mobile-menu a small { display: block; color: var(--ink-soft); font-size: .88rem; }
.mobile-menu a.is-active span { color: var(--caramel-dark); }
.mobile-menu-foot { display: grid; gap: 12px; margin-top: 24px; }
.menu-open { overflow: hidden; }

@media (max-width: 1180px) {
  .utility-link span { display: none; }
  .main-nav a { padding: 8px 9px; font-size: .88rem; }
}
@media (max-width: 1020px) {
  .main-nav, .utility-link { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 380px) {
  .header-actions .btn-sm { padding: 8px 12px; font-size: .84rem; }
  .logo img { width: 86px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 22px; }
.hero-media { position: relative; padding: 0 0 40px 40px; }
.hero-main { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero-small { position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 1; border: 6px solid var(--cream); border-radius: var(--r-lg); }
.hero-badge { position: absolute; right: -8px; top: 34px; background: #fff; border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--shadow); display: grid; }
.hero-badge-num { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--caramel); line-height: 1; }
.hero-badge-txt { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- split / collage ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.collage { position: relative; padding: 0 18% 18% 0; }
.collage-a { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.collage-b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 8px solid var(--white); }
.sec-cream .collage-b { border-color: var(--cream); }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.tick-list .ico { color: var(--sage); margin-top: 3px; }

/* ---------- journey ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px; counter-reset: j; position: relative; }
.journey-step { position: relative; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.journey-step:not(:last-child)::after {
  content: ''; position: absolute; z-index: 3; top: calc(50% - 60px); right: -19px; width: 14px; height: 14px;
  border-top: 3px solid var(--caramel); border-right: 3px solid var(--caramel); transform: rotate(45deg);
}
.journey-step:not(:last-child) { overflow: visible; }
.journey-pic { aspect-ratio: 4 / 3; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.journey-body { padding: 22px 22px 26px; }
.journey-num { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--sage); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.journey-body p { color: var(--ink-soft); font-size: .95rem; margin-top: 10px; }

/* ---------- products ---------- */
.products-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.products-pic { aspect-ratio: 4 / 3; margin-top: 28px; }
.products-list { display: grid; gap: 14px; }
.product-card { display: flex; gap: 18px; align-items: center; background: var(--cream); border-radius: var(--r-md); padding: 18px 22px; }
.sec-cream .product-card { background: var(--white); }
.product-card p { color: var(--ink-soft); font-size: .95rem; margin-top: 2px; }
.products-list .note { margin-top: 6px; }
.products-list .text-link { justify-self: start; margin-top: 4px; }

/* ---------- figures / map ---------- */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.figure { background: var(--white); border-radius: var(--r-md); padding: 18px 20px; }
.sec-white .figure { background: var(--cream); }
.figure dt { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--caramel); line-height: 1.1; }
.figure dt sup { font-size: .5em; color: var(--ink-soft); }
.figure dd { font-size: .92rem; color: var(--ink-soft); }
.figures-wide { grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: 0 auto 16px; }
.split-map { grid-template-columns: .9fr 1.1fr; }
.map-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--shadow); }
.sec-white .map-card { background: var(--cream); box-shadow: none; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: #e8eee2; overflow: hidden; }
.map-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-land path { fill: #c9b79f; stroke: #fff; stroke-width: .3; vector-effect: non-scaling-stroke; }
.map-marker { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; text-decoration: none; z-index: 2; }
.map-dot { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--caramel); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(42, 28, 19, .35); flex: none; }
.map-dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--caramel); opacity: .45; }
.map-label { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); background: var(--espresso); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.map-marker.label-left .map-label { left: auto; right: 22px; }
.map-marker:hover .map-label, .map-marker.is-active .map-label { background: var(--caramel); }
.map-marker.is-active .map-dot { transform: scale(1.3); background: var(--espresso); }
.map-marker.is-dim { opacity: .35; }
.map-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.map-legend li { display: grid; font-size: .88rem; }
.map-legend strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.map-legend span { color: var(--ink-soft); }

.market-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; justify-content: center; }
.chip { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--espresso); }
.chip:hover { border-color: var(--caramel); }
.chip.is-active { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.global-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.global-grid .map-card .note { margin-top: 12px; }
.market-list { display: grid; gap: 16px; }
.market-card { background: var(--cream); border-radius: var(--r-lg); padding: 24px; border: 2px solid transparent; transition: border-color .2s, opacity .2s; scroll-margin-top: 100px; }
.market-card > * + * { margin-top: 12px; }
.market-card p { color: var(--ink-soft); }
.market-head { display: flex; gap: 14px; align-items: center; }
.market-since { font-size: .88rem; font-weight: 600; color: var(--sage) !important; }
.market-card.is-active { border-color: var(--caramel); background: #fff7ef; }
.market-card.is-hidden { display: none; }

/* ---------- CTA band ---------- */
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta-pic { aspect-ratio: 5 / 4; background: #4a3628 linear-gradient(135deg, #4a3628, #2f2118); }
.cta-pic img { background-color: #4a3628; }

/* ---------- page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-grid.no-media { grid-template-columns: 1fr; max-width: calc(860px + var(--gutter) * 2); text-align: center; }
.page-hero-grid.no-media .lead { margin-left: auto; margin-right: auto; }
.page-hero-copy .lead { margin-top: 22px; }
.page-hero-media { position: relative; padding: 0 0 32px 32px; }
.ph-main { aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.ph-small { position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 1; border: 6px solid var(--cream); }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: var(--r-lg); padding: 28px; }
.sec-white .card { background: var(--cream); }
.card > * + * { margin-top: 14px; }
.card p { color: var(--ink-soft); font-size: .96rem; }

.quote { margin-top: 24px; padding: 28px 30px; background: var(--cream); border-radius: var(--r-lg); border-left: 5px solid var(--caramel); }
.quote p { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--espresso) !important; font-weight: 400; }
.quote footer { margin-top: 16px; font-weight: 600; color: var(--caramel-dark); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; margin-bottom: 24px; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: var(--caramel-light); }
.timeline li { position: relative; padding-top: 0; }
.timeline-year { position: relative; display: inline-block; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; background: var(--caramel); color: #fff; border-radius: 999px; padding: 6px 18px; }
.timeline p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- coffee page ---------- */
.expertise-row + .expertise-row { margin-top: clamp(56px, 7vw, 96px); }
.expertise-row.is-flip > :first-child { order: 2; }
.expertise-pic { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.step-chip { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #4f5c3f; background: var(--sage-light); border-radius: 999px; padding: 6px 14px; }
.step-chip .ico { width: 18px; height: 18px; }

/* ---------- stores ---------- */
.concepts { display: grid; gap: clamp(40px, 6vw, 72px); }
.concept { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.concept.is-flip .concept-pic { order: 2; }
.concept-pic { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.concept-body > * + * { margin-top: 16px; }
.spec-list { display: grid; gap: 10px; margin-top: 22px !important; }
.spec-list div { background: var(--cream); border-radius: var(--r-md); padding: 14px 18px; display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.spec-list dt { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); padding-top: 2px; }
.note-box { display: flex; gap: 12px; align-items: center; justify-content: center; background: var(--sage-light); color: #3f4a32; border-radius: var(--r-md); padding: 16px 22px; font-size: .95rem; font-weight: 500; }

/* ---------- partner ---------- */
.support-list { margin-top: 24px !important; display: grid; gap: 14px; }
.support-list li { display: flex; gap: 14px; background: var(--white); border-radius: var(--r-md); padding: 16px 20px; }
.support-list .ico { color: var(--sage); margin-top: 3px; }
.support-list p { font-size: .94rem; margin-top: 4px !important; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.steps::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--caramel) 0 8px, transparent 8px 14px); }
.steps li { position: relative; text-align: center; padding: 0 6px; }
.steps-num { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--caramel); color: #fff; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; border: 5px solid var(--white); }
.steps p { color: var(--ink-soft); font-size: .94rem; margin-top: 8px; }

.form-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-intro > * + * { margin-top: 18px; }
.form-intro p { color: var(--ink-soft); }
.contact-mini { display: grid; gap: 10px; margin-top: 26px !important; }
.contact-mini a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-mini .ico { color: var(--caramel); }
.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 44px); box-shadow: var(--shadow); min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { font-weight: 600; font-size: .92rem; }
.req { color: var(--caramel); }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input[type=text], .field input[type=email], .field textarea, .dropdown-btn {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fdfaf6; font-size: 1rem; color: var(--espresso);
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .dropdown-btn:focus-visible { outline: none; border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(168, 100, 47, .2); }
.has-error input, .has-error textarea, .has-error .dropdown-btn { border-color: #b3402a; background: #fff6f3; }
.field-error { color: #a3361f; font-size: .86rem; font-weight: 500; }
.form-alert { display: grid; gap: 2px; background: #fbe9e3; color: #7d2a17; border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 24px; }
.form-alert:focus { outline: 3px solid #b3402a; }

.dropdown { position: relative; }
.dropdown-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.dropdown-btn .ico { width: 20px; height: 20px; color: var(--caramel); transition: transform .2s; }
.dropdown-btn[aria-expanded=true] .ico { transform: rotate(180deg); }
.dropdown-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-value.is-placeholder { color: #8f7d6e; }
.dropdown-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 20px 40px -16px rgba(42, 28, 19, .35);
  padding: 6px; max-height: 280px; overflow-y: auto;
}
.dropdown-list:focus { outline: none; }
.dropdown-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .96rem; }
.dropdown-list li .ico { width: 18px; height: 18px; color: var(--caramel); visibility: hidden; }
.dropdown-list li[aria-selected=true] { font-weight: 600; }
.dropdown-list li[aria-selected=true] .ico { visibility: visible; }
.dropdown-list li:hover, .dropdown-list li.is-focus { background: var(--cream); }
.dropdown-list li.is-focus { box-shadow: inset 0 0 0 2px var(--caramel-light); }

.privacy { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.privacy > p { font-size: .9rem; color: var(--ink-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500 !important; font-size: .95rem !important; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check-box { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid var(--caramel); background: #fff; transition: background-color .15s; margin-top: 1px; }
.check-box .ico { width: 16px; height: 16px; color: #fff; opacity: 0; stroke-width: 2.6; }
.check input:checked + .check-box { background: var(--caramel); }
.check input:checked + .check-box .ico { opacity: 1; }
.check input:focus-visible + .check-box { outline: 3px solid var(--caramel); outline-offset: 3px; }
.has-error .check-box { border-color: #b3402a; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.thanks { text-align: center; display: grid; justify-items: center; gap: 16px; }
.thanks p { color: var(--ink-soft); max-width: 34em; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--cream); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.news-pic { aspect-ratio: 16 / 10; border-radius: 0; }
.news-body { padding: 22px 24px 28px; display: grid; gap: 10px; }
.news-body > p:last-child { color: var(--ink-soft); font-size: .95rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .84rem; color: var(--ink-soft); }
.tag { background: var(--sage); color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: .76rem; letter-spacing: .04em; }
.news-card.is-lead { grid-column: span 2; flex-direction: row; }
.news-card.is-lead .news-pic { flex: 1.1; aspect-ratio: auto; min-height: 320px; }
.news-card.is-lead .news-body { flex: .9; align-content: center; padding: 32px; }

/* ---------- footer ---------- */
.site-footer { background: #1f140d; color: #d9c9b8; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 40px; }
.footer-tag { font-family: var(--serif); font-size: 1.2rem; color: #fbf6ef; margin-top: 18px; }
.footer-small { font-size: .88rem; margin-top: 6px; }
.footer-h { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #e0a56f; margin-bottom: 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:not(.btn):hover { color: #fff; text-decoration: underline; }
.footer-nav li + li, .footer-social li + li { margin-top: 8px; }
.footer-contact p + p { margin-top: 10px; }
.footer-contact a, .footer-social a:not(.btn) { display: inline-flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.footer-contact .ico, .footer-social .ico { width: 18px; height: 18px; color: #c98a55; }
.footer-social .btn { margin-top: 20px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(217, 201, 184, .18); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .82rem; }
.demo-note { max-width: 720px; color: #a8957f; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey-step:nth-child(2)::after { display: none; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .figures-wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .split-map, .products-grid, .cta-grid, .page-hero-grid, .global-grid, .form-wrap, .concept { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
  .expertise-row.is-flip > :first-child, .concept.is-flip .concept-pic { order: 0; }
  .collage { max-width: 560px; }
  .page-hero-media { max-width: 600px; }
  .cols-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .timeline::before { display: none; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.is-lead { flex-direction: column; }
  .news-card.is-lead .news-pic { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .news-card.is-lead .news-body { padding: 22px 24px 28px; }
}
@media (max-width: 640px) {
  :where(body) { font-size: 16px; }
  .journey { grid-template-columns: 1fr; }
  .journey-step::after { display: none !important; }
  .cols-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; text-align: left; }
  .steps li { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; text-align: left; }
  .steps-num { grid-row: span 2; margin: 0; }
  .steps p { margin-top: 4px; }
  .form-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.is-lead { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .map-legend { grid-template-columns: 1fr; }
  .hero-media { padding: 0 0 28px 24px; }
  .hero-badge { right: 0; top: 18px; padding: 12px 14px; }
  .hero-badge-num { font-size: 1.6rem; }
  .btn-row .btn { width: 100%; }
  .map-label { font-size: .7rem; padding: 2px 8px; }
  .product-card { padding: 16px; gap: 14px; }
  .note-box { justify-content: flex-start; }
}

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

/* 主圖被小圖疊住左下角，標籤改放左上 */
.hero-main .concept-tag, .ph-main .concept-tag, .collage-a .concept-tag { top: 12px; bottom: auto; }

/* backdrop-filter 會讓 fixed 子元素以 header 為容器，選單打開時關掉 */
.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
/* 長選項不撐寬欄位 */
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dropdown, .dropdown-value { min-width: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
