/* =========================================================
   NEA Brown Sugar — landing page
   Layout concept: a printed company profile turned into one
   scrolling page — numbered "profile pages", photo-led spreads,
   warm paper ground, deep cane-leaf green and brown-sugar accents.
   ========================================================= */
:root {
  /* colour */
  --paper:      #F8F4EC;  /* warm paper ground */
  --paper-2:    #EFE7D8;  /* raw-sugar tint for alternate bands */
  --card:       #FFFDF8;
  --ink:        #2B261F;  /* warm brown-black text */
  --ink-soft:   #6B6152;
  --line:       #E0D6C4;
  --green:      #164536;  /* deep cane-leaf green */
  --green-2:    #2C6B4F;
  --leaf:       #7FA35A;  /* young leaf, used sparingly */
  --sugar:      #A8702F;  /* brown sugar / caramel */
  --sugar-soft: #D9B98C;
  --on-dark:    #F5EFE2;
  --line-green: #06C755;  /* LINE brand button */

  /* type */
  --f-display: "Noto Serif Thai", "Playfair Display", Georgia, serif;
  --f-body: "Sarabun", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  --f-accent: "Playfair Display", Georgia, serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem);

  --radius: 14px;
  --header-h: 68px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.3; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sugar); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 500 1rem/1 var(--f-body);
  padding: .95em 1.4em; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .6em 1.05em; font-size: .95rem; }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 6px 18px -8px rgba(6, 199, 85, .7); }
.btn-line:hover { background: #05b04b; }
.btn-ghost { color: var(--on-dark); border-color: rgba(245, 239, 226, .55); background: rgba(22, 69, 54, .15); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(245, 239, 226, .15); }
.btn-outline-light { background: transparent; color: var(--on-dark); border-color: rgba(245, 239, 226, .45); }
.btn-outline-light:hover { background: rgba(245, 239, 226, .1); }

/* ---------- header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(248, 244, 236, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(43, 38, 31, .5); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--f-accent); font-style: normal; font-size: 1.3rem; letter-spacing: .12em; color: var(--green); font-weight: 500; }
.brand-text small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-soft);
  padding: .5em .85em; border-radius: 999px; transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav a.active { color: var(--green); background: var(--paper-2); }
.nav-line { margin-left: 8px; }
.lang { margin-left: 12px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; position: relative; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--green); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* language switcher */
.lang {
  position: relative; display: flex; align-items: center; gap: 4px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; padding-left: 10px;
  color: var(--green); background: var(--card);
}
.lang svg { width: 17px; height: 17px; flex: none; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--green);
  font: 500 .92rem/1 var(--f-body); padding: .62em 1.9em .62em .25em; cursor: pointer; border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23164536' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75em center; background-size: 10px 7px;
}
.lang select:focus-visible { outline: 3px solid var(--sugar); outline-offset: 2px; }

/* per-language type */
html[lang="en"] { --f-display: "Playfair Display", Georgia, "Times New Roman", serif; }
html[lang^="zh"] {
  --f-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --f-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Sarabun", sans-serif;
}
html[lang="ko"] {
  --f-display: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Sarabun", sans-serif;
}
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] p, html[lang="ko"] span { word-break: keep-all; }
html[lang^="zh"] .hero h1, html[lang="ko"] .hero h1 { line-height: 1.35; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--on-dark); overflow: hidden; }
.hero { background: var(--green); }
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: auto; width: 54%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: -2; }
.hero-inner > * { max-width: min(600px, 46vw); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 69, 54, 1) 0%, rgba(22, 69, 54, 1) 46%, rgba(22, 69, 54, .5) 51%, rgba(22, 69, 54, 0) 58%),
    linear-gradient(0deg, rgba(16, 48, 37, .45), transparent 30%);
}
.hero-inner { padding-block: clamp(72px, 10vw, 140px) clamp(64px, 8vw, 110px); max-width: var(--container); }
.hero h1 { font-size: var(--step-4); font-weight: 700; margin-top: 18px; animation: rise .9s ease both; }
.hero h1 em { font-style: normal; color: var(--sugar-soft); }
.hero-sub { margin-top: 14px; font-family: var(--f-accent); font-style: italic; font-size: var(--step-1); color: rgba(245, 239, 226, .85); max-width: 40ch; animation: rise .9s .06s ease both; }
.eb-en { opacity: .75; }
.h-en { display: block; margin-top: 2px; font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: .62em; color: var(--sugar); }
.hero-lead { max-width: 44ch; margin-top: 22px; font-size: var(--step-1); font-weight: 300; line-height: 1.7; color: rgba(245, 239, 226, .9); animation: rise .9s .12s ease both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: rise .9s .24s ease both; }
.hero-slogan { margin-top: 40px; font-family: var(--f-accent); font-style: italic; font-size: 1.35rem; color: var(--sugar-soft); opacity: .9; }

@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sugar); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.eyebrow-light { color: var(--sugar-soft); }
.eyebrow .pg {
  font-family: var(--f-accent); font-style: italic; font-size: 1.05rem; letter-spacing: 0; text-transform: none;
  padding-right: 12px; border-right: 1px solid currentColor;
}

/* ---------- facts strip ---------- */
.facts { background: var(--green); color: var(--on-dark); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding-block: 26px; padding-inline: 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(245, 239, 226, .16); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 600; color: var(--sugar-soft); line-height: 1.2; font-variant-numeric: tabular-nums; }
.fact-num sup { font-size: .55em; }
.fact-label { font-size: .95rem; color: rgba(245, 239, 226, .82); }

/* ---------- section scaffold ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); color: var(--green); max-width: 36ch; }

/* ---------- next generation ---------- */
.nextgen { background: var(--paper-2); overflow: hidden; }
.ng-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ng-text { display: grid; gap: 16px; }
.ng-text h2 { font-size: var(--step-3); color: var(--green); }
.ng-text > p:not(.eyebrow):not(.ng-slogan) { color: var(--ink-soft); max-width: 44ch; }
.ng-slogan { font-family: var(--f-accent); font-style: italic; color: var(--sugar); font-size: 1.1rem; }
.ng-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); align-items: start; }
.ng-gallery figure { margin: 0; display: grid; gap: 8px; }
.ng-gallery figure:nth-child(even) { margin-top: clamp(28px, 4vw, 56px); }
.ng-gallery img { width: 100%; height: auto; max-width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: #D6D2CE; transition: transform .4s ease; }
.ng-gallery figure:hover img { transform: translateY(-4px); }
.ng-gallery figcaption { font-family: var(--f-accent); font-style: italic; font-size: .92rem; color: var(--sugar); text-align: center; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 5 / 3.4; object-fit: cover; width: 100%; }
.about-photo figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.about-text { display: grid; gap: 18px; min-width: 0; }
.about-text .lead { font-size: var(--step-1); line-height: 1.7; color: var(--ink); }
.about-text p { color: var(--ink-soft); max-width: 62ch; }
.values { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.values strong { font-family: var(--f-accent); font-style: italic; font-weight: 500; color: var(--sugar); font-size: 1.05rem; }
.values span { color: var(--ink-soft); font-size: .98rem; }

.timeline {
  list-style: none; padding: 0; margin: clamp(56px, 7vw, 88px) 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border-top: 2px solid var(--green);
}
.timeline li { position: relative; padding: 24px 18px 0 0; }
.timeline li::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--green);
}
.timeline li:first-child::before, .timeline li:last-child::before { background: var(--sugar); border-color: var(--sugar); }
.tl-year { display: block; font-family: var(--f-display); font-weight: 600; color: var(--green); font-size: 1.15rem; }
.tl-en { display: block; font-family: var(--f-accent); font-style: italic; color: var(--sugar); font-size: .95rem; }
.timeline p { margin-top: 8px; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }

.people { display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 32px); margin-top: clamp(56px, 7vw, 88px); }
.person { margin: 0; display: grid; grid-template-columns: 42% 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person img { width: 100%; height: 100%; object-fit: cover; object-position: top center; min-height: 300px; }
.person figcaption { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person blockquote { margin: 0 0 14px; font-family: var(--f-display); font-size: 1.08rem; line-height: 1.6; color: var(--green); font-weight: 500; }
.person strong { color: var(--ink); font-weight: 600; margin-top: 6px; }
.person span { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.person-founder { grid-template-columns: minmax(0, 46%) 1fr; }
.person-founder img { min-height: 0; aspect-ratio: 586 / 546; object-position: center top; }
.person-founder figcaption { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.person-founder blockquote { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); line-height: 1.55; max-width: 26ch; }
.leaders-head { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 10px; }
.leaders-head h3 { font-size: var(--step-2); color: var(--green); }
.leaders-head p { color: var(--ink-soft); max-width: 62ch; }
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: 24px; }
.leader { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.leader img { width: 100%; aspect-ratio: 4 / 5; max-width: 100%; object-fit: cover; object-position: center top; background: #D9D5D0; }
.leader-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); min-width: 0; }
.leader h4 { margin: 0; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: var(--green); line-height: 1.35; }
.leader .leader-title { color: var(--sugar); font-weight: 600; font-size: .95rem; }
.leader-body p:not(.leader-title) { color: var(--ink-soft); font-size: .94rem; line-height: 1.6; }

/* ---------- products ---------- */
.products { background: var(--paper-2); }
.feature { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.feature-text { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.feature-text h3 { font-size: var(--step-2); color: var(--green); }
.feature-text p { color: var(--ink-soft); }
.feature-text .pack-line { font-size: .95rem; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink); }

.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(28px, 4vw, 44px); }
.series { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.series:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(43, 38, 31, .55); }
.series img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #F7F5F0; padding: 10px; }
.series-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.series-en { font-family: var(--f-accent); font-style: italic; color: var(--sugar); font-size: 1rem; }
.series h3 { font-size: 1.25rem; color: var(--green); }
.series-body > p:not(.series-en) { color: var(--ink-soft); font-size: .97rem; line-height: 1.6; }
.chips { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .85rem; font-weight: 500; padding: .2em .75em; border-radius: 999px; background: var(--paper-2); color: var(--green); font-variant-numeric: tabular-nums; }

.cta-band {
  margin-top: clamp(36px, 5vw, 56px); padding: 26px clamp(20px, 4vw, 36px);
  border-radius: var(--radius); background: var(--green); color: var(--on-dark);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.cta-band p { font-family: var(--f-display); font-size: var(--step-1); font-weight: 500; }

/* ---------- quality ---------- */
.quality-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quality-photo { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.process { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; }
.process li { counter-increment: step; display: grid; grid-template-columns: 3rem 11rem 1fr; gap: 12px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--line); }
.process li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-accent); font-style: italic; color: var(--sugar); font-size: 1.15rem; }
.process strong { color: var(--green); font-weight: 600; }
.process span { color: var(--ink-soft); font-size: .97rem; line-height: 1.6; }

.certs { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.certs li { text-align: center; align-items: center; }
.certs li { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--card); display: flex; flex-direction: column; gap: 2px; }
.certs strong { color: var(--green); font-size: 1.02rem; letter-spacing: .02em; }
.certs span { color: var(--ink-soft); font-size: .86rem; line-height: 1.45; }
.certs li { padding-top: 12px; }
.certs .cert-logo {
  display: flex; align-items: center; justify-content: center;
  height: 84px; margin-bottom: 10px; padding: 8px; border-radius: 8px;
  background: #FFFFFF; border: 1px solid var(--line);
}
.certs .cert-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* 30 years of trust */
.trust { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; margin-bottom: clamp(28px, 4vw, 40px); }
.trust-text { display: grid; gap: 14px; }
.trust-h { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); color: var(--green); letter-spacing: .01em; text-transform: uppercase; line-height: 1.15; }
html[lang="th"] .trust-h, html[lang^="zh"] .trust-h, html[lang="ko"] .trust-h { text-transform: none; }
.trust-sub { font-family: var(--f-display); font-size: var(--step-1); color: var(--green-2); }
.trust-rule { display: block; width: 72px; height: 2px; background: var(--leaf); margin-block: 6px; }
.trust-text > p:not(.trust-sub) { color: var(--ink-soft); max-width: 52ch; }
.trust-side { display: grid; gap: 8px; }
.trust-stat { display: grid; gap: 2px; padding-left: 22px; border-left: 1px solid var(--line); }
.trust-range { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green); letter-spacing: .04em; }
.trust-range svg { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: #DCE6D6; color: var(--green); box-sizing: border-box; }
.trust-num { font-family: var(--f-display); font-size: clamp(3.4rem, 2.4rem + 3vw, 5rem); line-height: 1; font-weight: 700; color: var(--green); }
.trust-num sup { font-size: .45em; }
.trust-label { text-transform: uppercase; letter-spacing: .08em; color: var(--green-2); font-weight: 500; max-width: 22ch; line-height: 1.4; }
.trust-map { position: relative; color: var(--green); aspect-ratio: 2 / 1; max-width: 100%;
  background-image: radial-gradient(circle, rgba(22, 69, 54, .16) 1.2px, transparent 1.6px); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 60% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 75% 75% at 60% 50%, #000 55%, transparent 100%); }
.trust-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-label { position: absolute; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green); line-height: 1.25; text-align: center; transform: translateX(-50%); white-space: nowrap; }
.map-th { left: 37.5%; top: 77%; }
.map-jp { left: 82.5%; top: 30%; }
.milestones { list-style: none; margin: 0; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; background: #E6EDE1; border-radius: var(--radius); position: relative; }
.milestones li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; min-width: 0; }
.milestones li:not(:last-child)::after { content: ""; position: absolute; top: 36px; left: calc(50% + 44px); right: calc(-50% + 44px); height: 2px; background: var(--green-2); opacity: .55; }
.ms-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #CFDDC6; border: 2px solid var(--green-2); color: var(--green); margin-bottom: 6px; }
.ms-icon svg { width: 34px; height: 34px; }
.milestones strong { color: var(--ink); font-size: 1.05rem; }
.milestones span:not(.ms-icon) { color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
.quality-grid { margin-top: clamp(40px, 5vw, 64px); }
.quality-fig { margin: 0; display: grid; gap: 14px; }
.quality-right { display: grid; gap: clamp(28px, 4vw, 48px); min-width: 0; }
.trust-quote { margin: 0; display: grid; gap: 4px; padding: 14px 52px 14px 22px; justify-self: start; width: fit-content; max-width: 100%; background: var(--green); color: var(--on-dark); border-radius: var(--radius); position: relative; overflow: hidden; }
.trust-quote::before { content: "“"; position: absolute; top: -.2em; right: .15em; font-family: var(--f-accent); font-size: 4.5rem; line-height: 1; color: var(--sugar-soft); opacity: .18; }
.tq-en { margin: 0; font-family: var(--f-accent); font-style: italic; font-weight: 500; font-size: clamp(1rem, .8rem + .7vw, 1.3rem); line-height: 1.35; color: var(--on-dark); }
.tq-local { margin: 0; color: var(--sugar-soft); font-size: .88rem; }
.tq-en::before, .tq-en::after { color: var(--sugar); }

/* ---------- contact ---------- */
.contact { background: var(--green); color: var(--on-dark); }
.contact .section-head h2 { color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-info { display: grid; gap: 28px; min-width: 0; }
.info-block h3 { font-size: 1.15rem; color: var(--sugar-soft); margin-bottom: 8px; }
.info-block p { color: var(--on-dark); line-height: 1.8; }
.info-block .muted-en { color: rgba(245, 239, 226, .65); font-size: .92rem; margin-top: 6px; }
.info-list { margin: 0; display: grid; border-top: 1px solid rgba(245, 239, 226, .18); }
.info-list div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-block: 11px; border-bottom: 1px solid rgba(245, 239, 226, .18); }
.info-list dt { color: rgba(245, 239, 226, .65); font-size: .92rem; }
.info-list dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.info-list a { text-decoration-color: rgba(217, 185, 140, .6); text-underline-offset: 3px; }
.info-list a:hover { color: var(--sugar-soft); }

.line-card {
  background: rgba(245, 239, 226, .07); border: 1px solid rgba(245, 239, 226, .2);
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.line-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 239, 226, .65); }
.line-id { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; color: var(--on-dark); line-height: 1.3; }
.line-note { font-size: .9rem; color: rgba(245, 239, 226, .7); }
.line-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.line-card { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.line-body { min-width: 0; }
.line-qr { margin: 0; display: grid; justify-items: center; gap: 8px; }
.line-qr img { width: 150px; height: 150px; max-width: 100%; background: #FFFFFF; border-radius: 12px; padding: 8px; }
.line-qr figcaption { font-size: .82rem; color: rgba(245, 239, 226, .8); text-align: center; max-width: 160px; line-height: 1.4; }
.cta-qr { width: 96px; height: 96px; background: #FFFFFF; border-radius: 10px; padding: 5px; flex: none; }
.cta-band > a { margin-left: auto; }

.map-card { display: grid; gap: 12px; }
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; max-width: 100%; background: var(--green-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; }
.map-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.map-fallback p { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(22, 69, 54, .85); padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.map-link { color: var(--sugar-soft); font-weight: 500; text-decoration: none; }
.map-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer { background: #10342A; color: rgba(245, 239, 226, .7); font-size: .9rem; }
.footer-inner { padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer strong { color: var(--on-dark); font-weight: 500; }

/* ---------- floating LINE ---------- */
.line-float {
  position: fixed; z-index: 70;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 8px;
  background: var(--line-green); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 10px 28px -10px rgba(6, 120, 55, .8);
  transition: transform .2s ease;
}
.line-float svg { width: 26px; height: 26px; }
.line-float:hover { transform: translateY(-3px) scale(1.03); }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: .95rem; z-index: 80;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) and (min-width: 561px) {
  .hero-bg { width: 100%; object-position: 50% 20%; }
  .hero::after { background: linear-gradient(90deg, rgba(22, 69, 54, .94) 0%, rgba(22, 69, 54, .8) 55%, rgba(22, 69, 54, .35) 100%); }
  .hero-inner > * { max-width: 34rem; }
}
@media (max-width: 980px) {
  .ng-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid, .quality-grid, .contact-grid { grid-template-columns: 1fr; }
  .quality-photo { aspect-ratio: 16 / 9; }
  .people { grid-template-columns: 1fr; }
  .person-founder { grid-template-columns: minmax(0, 42%) 1fr; }
  .feature { grid-template-columns: 1fr; }
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--green); margin-left: 6px; }
  .timeline li { padding: 0 0 22px 24px; }
  .timeline li::before { top: 6px; left: -7px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .lang { margin-left: auto; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8em 1em; border-radius: 10px; }
  .nav-line { margin: 8px 0 0; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding-inline: 16px; border-left: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid rgba(245, 239, 226, .16); }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(245, 239, 226, .16); }
  .process li { grid-template-columns: 2.6rem 1fr; }
  .process span { grid-column: 2; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .milestones { grid-template-columns: 1fr; gap: 0; padding-block: 12px; }
  .milestones li { flex-direction: row; text-align: left; gap: 14px; padding-block: 10px; align-items: center; }
  .milestones li::after { display: none; }
  .ms-icon { width: 52px; height: 52px; margin: 0; flex: none; }
  .ms-icon svg { width: 26px; height: 26px; }
  .milestones strong { min-width: 5.5rem; }
  .milestones span:not(.ms-icon) { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero-bg {
    position: relative; width: 100%; height: 360px; object-position: 50% 15%;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
            mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
  .hero::after { display: none; }
  .hero-inner > * { max-width: none; }
  .hero-inner { padding-block: 8px 56px; }
  .series-grid { grid-template-columns: 1fr; }
  .trust-quote { padding: 12px 34px 12px 16px; }
  .tq-en { font-size: 3.4vw; white-space: nowrap; }
  .trust-quote::before { font-size: 3rem; }
  .ng-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person, .person-founder { grid-template-columns: 1fr; }
  .leaders { grid-template-columns: 1fr; }
  .leader img { aspect-ratio: 4 / 4.2; }
  .person img { aspect-ratio: 4 / 3.4; min-height: 0; }
  .values li { grid-template-columns: 1fr; gap: 0; }
  .info-list div { grid-template-columns: 1fr; gap: 0; }
  .line-float span { display: none; }
  .line-float { padding: 14px; }
  .btn { width: 100%; }
  .site-nav .btn, .line-actions .btn { width: auto; }
  .line-card { grid-template-columns: 1fr; justify-items: start; }
  .line-qr { justify-items: start; }
  .line-qr figcaption { text-align: left; }
  .cta-qr { display: none; }
  .cta-band > a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
