/* KIWITA responsive layer — one gutter, one grid, same rhythm on MacBook / iPad / iPhone */
:root{--gx:clamp(20px,4vw,48px)}
html{-webkit-text-size-adjust:100%}
img,svg,video{max-width:100%}

/* ---------- Browser-proof motion (driven by r.js, class kx on <html>) ---------- */
html.kx .rv,html.kx .evag .rv,html.kx .er,html.kx .er .n,html.kx .er .k,html.kx .vn,html.kx .vk,html.kx .hs .rs,html.kx .dt .cu,html.kx .dt .zm img,html.kx .ua .zm img,html.kx main section:not(:first-child) img.ph,html.kx .evag .cu{animation:none!important}
html.kx .rv,html.kx .er,html.kx .hs .rs{transition:opacity 900ms ease,transform 1000ms cubic-bezier(0.32,0.72,0,1)}
html.kx .rv:not(.kin),html.kx .er:not(.kin),html.kx .hs .rs:not(.kin){opacity:0;transform:translateY(18px)}
html.kx .rv.kin,html.kx .er.kin,html.kx .hs .rs.kin{opacity:1;transform:none}
html.kx main section:not(:first-child) img.ph,html.kx .dt .zm img,html.kx .ua .zm img{transition:transform 1800ms cubic-bezier(0.32,0.72,0,1)}
html.kx main section:not(:first-child) img.ph:not(.kin),html.kx .dt .zm img:not(.kin),html.kx .ua .zm img:not(.kin){transform:scale(1.1)}
html.kx main section:not(:first-child) img.ph.kin,html.kx .dt .zm img.kin,html.kx .ua .zm img.kin{transform:none}
@media (prefers-reduced-motion:reduce){html.kx .rv,html.kx .er,html.kx .hs .rs,html.kx img.ph,html.kx .zm img{opacity:1!important;transform:none!important;transition:none!important}}
/* numbers: the real value lives in .sr and is written by script, so no CSS counters */
html.kx .cu::before,html.kx .cu::after{content:none!important}
html.kx .cu .sr{position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;clip:auto!important;clip-path:none!important;white-space:inherit!important;display:inline!important;font:inherit!important;color:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;font-variant-numeric:tabular-nums}
html.kx .evag .cu.dn{max-width:none!important;margin:0!important;text-align:inherit!important}
/* bars: always inside their track */
html.kx .evag .cr{display:flex!important;align-items:center}
html.kx .evag .cr .cb{display:block!important;position:relative!important;flex:1 1 auto;min-width:0;height:10px;overflow:hidden}
html.kx .evag .cr .cb>i{display:block!important;position:absolute!important;left:0;top:0;bottom:0;height:auto!important;margin:0!important}
/* mushroom grid: the harvest photo belongs in the Harvest column */
html.kx .tgm .tp.w{grid-column:auto!important;aspect-ratio:auto!important;position:relative!important;min-height:0}
html.kx .tgm .tp.w img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* reference notes: always one clear blank line above, bottom right */
main p.note{margin-top:40px!important;text-align:right!important}
.evag .nt2{margin-top:28px!important}

/* ---------- Tablet / iPad (portrait and landscape) ---------- */
@media (min-width:601px) and (max-width:1100px){
  /* home hero: title and film stay side by side, so the first screen is one composed frame */
  main>section:first-child:has(video){flex-wrap:nowrap!important;gap:24px!important;align-items:center!important;min-height:min(68vh,720px);box-sizing:border-box}
  main>section:first-child:has(video)>div:first-child{flex:1 1 58%!important}
  main>section:first-child:has(video)>div:last-child{flex:0 1 40%!important;max-width:40%!important;margin-left:auto!important}
  main>section:first-child:has(video) h1{font-size:clamp(44px,6.2vw,72px)!important}
  /* five industries in one row */
  .indg{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0 20px!important}
  .ind h3{font-size:clamp(18px,2.2vw,22px)!important}
  .ind p{font-size:13px!important}
  .ind p br{display:none}
  /* product cards: two per row */
  .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:48px 20px!important}
  /* process steps: three per row; patents: three across */
  .fl{gap:36px 20px!important}
  .fl .st,.st{flex-basis:calc(33.333% - 14px)!important}
  .pt3{gap:16px!important}
  .pt3 figure{flex-basis:calc(33.333% - 11px)!important;max-width:none!important}
  /* logo tiles: even 4-column grid */
  .lgr{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));padding:0!important}
  .lgf{width:auto!important;height:auto!important;aspect-ratio:1/1;padding:18px 10px 12px!important;gap:10px!important}
  .lgf img{max-width:84px!important;max-height:40px!important}
}
@media (max-width:600px){
  /* home hero on phones: film smaller and centred under the title */
  main>section:first-child:has(video){gap:8px!important}
  main>section:first-child:has(video)>div:last-child{flex-basis:100%!important;max-width:70vw!important;margin:0 auto!important}
}
/* ---------- Tablet (iPad portrait and smaller laptops) ---------- */
@media (max-width:1024px){
  header{padding-top:26px!important;padding-bottom:26px!important}
  .ed>.r{flex-basis:420px}
}

/* ---------- Phone ---------- */
@media (max-width:600px){
  /* header: tight, one quiet row of links */
  header{padding:18px var(--gx) 16px!important;gap:12px 20px!important}
  header>a[aria-label="KIWITA home"]{font-size:24px!important}
  header nav{gap:8px 18px!important;font-size:12px!important;letter-spacing:.08em!important;text-transform:uppercase!important;font-weight:500!important}
  header nav a{background-size:0 2px}
  header nav a[aria-current="page"]{background-size:100% 2px}

  /* section rhythm: same top/bottom breathing on every section */
  main>section{padding-left:var(--gx)!important;padding-right:var(--gx)!important}
  main>section:first-child{padding-top:40px!important}

  /* hero and section titles: smaller tracking so lines break cleanly */
  main h1{font-size:clamp(34px,10vw,44px)!important;letter-spacing:-0.035em!important;line-height:1.02!important}
  .ed h2{font-size:24px!important}
  .ed{gap:20px!important}
  .ed>.l,.ed>.r{flex-basis:100%!important}

  /* tables: never crush — keep natural column width and let the block scroll sideways */
  .tw{display:block;position:relative;contain:paint;max-width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .tw::-webkit-scrollbar{display:none}
  .tw{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
  .ed>.r{min-width:0;max-width:100%}
  .et,.dt{table-layout:auto!important;min-width:520px}
  .et th,.et td{font-size:13px!important;padding:14px 10px!important;overflow-wrap:normal!important;text-wrap:balance}
  .et td:first-child{width:auto!important;white-space:nowrap}
  .dt th,.dt td{font-size:13px!important;padding:12px 8px!important}
  .dt th:first-child,.dt td:first-child{width:auto!important;white-space:nowrap}
  .dt .big{font-size:22px!important}
  .dt img,.dt .zm{max-width:88px!important}

  /* logo tiles: a clean 3-column grid of equal squares */
  .lgr{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));padding:0!important}
  .lgf{width:auto!important;height:auto!important;aspect-ratio:1/1;padding:14px 8px 10px!important;gap:8px!important}
  .lgf img{max-width:72px!important;max-height:34px!important}
  .lgf figcaption{font-size:10px!important;letter-spacing:.04em!important}
  .lgg+.lgg{margin-top:32px!important}

  /* product pack shots: 2 per row, same height */
  .pf.pk,.pk{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
  .pf.pk img,.pk img{height:120px!important}
  .pf.pk figure,.pk figure{text-align:center}
  .pf.pk img,.pk img{margin:0 auto}

  /* process steps and small cards: two per row keeps the eye moving */
  .fl{gap:32px 16px!important}
  .fl .st,.st{flex-basis:calc(50% - 8px)!important}
  .fl .im{height:96px!important;margin-bottom:12px!important}

  /* patents: side by side, not three tall blank blocks */
  .pt3{gap:16px!important}
  .pt3 figure{flex-basis:calc(50% - 8px)!important}

  /* evidence stat rows: number under the title, left aligned like the rest of the page */
  .hs{grid-template-columns:28px minmax(0,1fr)!important;gap:6px 16px!important;padding:28px 0!important}
  .hs .rs{grid-column:2!important;grid-row:4!important;align-items:flex-start!important;text-align:left!important;font-size:44px!important;margin-top:8px}
  .hs .rs .u{margin-top:6px!important}
  .mini{grid-template-columns:1fr 1fr!important;gap:20px 16px!important}

  /* evidence index: tag column drops under the title */
  .ix{flex-wrap:wrap;gap:10px 14px!important}
  .ix .te{flex-basis:100%!important;text-align:left!important}
  .it .tg2{flex-basis:100%!important}

  /* forms */
  .fi{font-size:16px!important}

  /* footer: two columns, then contact full width */
  footer .fcol{flex-basis:calc(50% - 16px)!important}
  footer .fcol[style*="flex:1 1 240px"]{flex-basis:100%!important}
}

/* ---------- Very narrow phones ---------- */
@media (max-width:380px){
  .lgr{grid-template-columns:repeat(2,minmax(0,1fr))}
  header nav{gap:8px 14px!important;font-size:11px!important}
}

/* ---------- FAQ (GEO) ---------- */
.faq{max-width:1200px;margin:0 auto}
.faq .fl2{margin:0 0 20px;font-size:11px;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:#8a948c}
.faq h2{margin:0 0 clamp(28px,3vw,40px);font-size:clamp(24px,2.5vw,34px);font-weight:300;letter-spacing:-0.02em;line-height:1.15;max-width:720px;text-wrap:balance}
.faq details{border-top:1px solid #0b110d}
.faq details:last-child{border-bottom:1px solid #0b110d}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:22px 0;font-size:clamp(17px,1.4vw,20px);font-weight:500;line-height:1.35;letter-spacing:-0.01em}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;font-weight:300;font-size:24px;line-height:1;color:#4bc867;transition:transform 400ms cubic-bezier(0.32,0.72,0,1)}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq .fa{margin:0;padding:0 0 26px;max-width:760px;font-size:16px;line-height:1.7;color:#4d544f}
@media (max-width:600px){.faq summary{padding:18px 0;font-size:16px}.faq .fa{font-size:15px}}
/* phone: stacked gene-expression charts, stable media */
@media (max-width:600px){
.mg3{grid-template-columns:minmax(0,1fr)!important;gap:40px!important}
.mg3 .cc{justify-content:center!important;gap:24px!important;max-width:320px;margin-left:auto;margin-right:auto}
.mg3 .cl{justify-content:center!important;gap:24px!important;max-width:320px;margin-left:auto;margin-right:auto}
.mg3 .cb{flex:0 0 96px!important}
.mg3 .cl span{flex:0 0 96px!important;text-align:center}
}
@media (max-width:600px){
html.kx .tgr{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;align-items:end}
html.kx .tgr>*:nth-child(1),html.kx .tgr>.tc:nth-child(5){display:none!important}
html.kx .tgr>.tl{grid-column:1/-1!important;margin-top:14px}
html.kx .tgr>.tc{font-size:10px;letter-spacing:.12em}
html.kx .tgr>.tp:nth-child(10),html.kx .tgr>.tp:nth-child(15){grid-column:1/-1!important;aspect-ratio:3/2!important;position:relative!important}
html.kx .tgr>.tp:nth-child(10) img,html.kx .tgr>.tp:nth-child(15) img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
}

/* ---------- Language switcher ---------- */
.lsw{display:inline-flex;align-items:center;margin-left:4px;font-size:11px;letter-spacing:.06em;text-transform:none;color:#8a948c}
.lsw a,.lsw b{padding:0 9px;border-left:1px solid #dfe2dd;color:#8a948c;font-weight:500;text-decoration:none;white-space:nowrap}
.lsw>*:first-child{border-left:0;padding-left:0}
.lsw b{color:#0b110d;font-weight:600}
.lsw a:hover{color:#0b110d}
@media (max-width:600px){.lsw{flex-basis:100%;margin:2px 0 0;font-size:11px}.lsw>*:first-child{padding-left:0}}

/* kiwita-dt-mobile: comparison table fits a phone screen without clipping the first column */
@media (max-width:700px){.et,.dt{min-width:0!important;table-layout:fixed!important}.dt th,.dt td{font-size:12px!important;padding:10px 4px!important;white-space:normal!important;overflow-wrap:anywhere}.dt th:first-child,.dt td:first-child{width:24%!important;white-space:normal!important}.dt .big{font-size:18px!important}}

/* kiwita-v3: premium language switch, centred dropdown, patented block, hero */
header .lsw{display:inline-flex;align-items:center;gap:2px;margin-left:14px;padding:3px;border:1px solid #e3e5e1;border-radius:999px;background:#fff;font-size:11px;letter-spacing:.08em;align-self:center}
header .lsw a,header .lsw b{border:0;border-radius:999px;padding:6px 12px;line-height:1;color:#6b756d;font-weight:500;transition:background 400ms cubic-bezier(0.32,0.72,0,1),color 400ms cubic-bezier(0.32,0.72,0,1)}
header .lsw>*:first-child{padding-left:12px}
header .lsw b{background:#0b110d;color:#fff;font-weight:600}
header .lsw a:hover{background:#f3f4f2;color:#0b110d}
@media (max-width:600px){header .lsw{flex-basis:auto;margin:6px 0 0;align-self:flex-start}header .lsw a,header .lsw b{padding:6px 10px}}
@media (min-width:1500px){header .mmp{justify-content:center;gap:40px clamp(56px,7vw,128px)}header .mmp .mmh{flex:0 1 920px}header .mmp .mmt{flex:0 0 auto}}
.ptf{max-width:1200px;margin:clamp(40px,5vw,72px) auto 0;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(16px,2vw,24px);align-items:stretch}
.ptf figure{margin:0;background:#f6f7f5;padding:clamp(24px,3.4vw,48px);display:flex;flex-direction:column;justify-content:space-between;gap:clamp(20px,2.4vw,32px)}
.ptf img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;mix-blend-mode:multiply;margin:auto}
.ptf figcaption{margin:0;padding-top:16px;border-top:1px solid #dfe2dd;font-size:13px;line-height:1.6;color:#4d544f}
.ptf figcaption b{color:#0b110d;font-weight:600}
@media (max-width:800px){.ptf{grid-template-columns:1fr}}
@media (max-width:700px){.hero2{padding-top:28px!important;gap:28px!important}.hero2 .hv{margin:0 auto;width:100%;max-width:340px}}

/* kiwita-v4: header alignment */
header nav{align-items:center!important}
@media (min-width:601px){header .lsw{font-size:13px;letter-spacing:.06em;padding:4px;margin-left:12px;gap:2px}header .lsw a,header .lsw b{padding:9px 16px;font-size:13px}header .lsw>*:first-child{padding-left:16px}}

/* kiwita-lock: deterrent only, text stays in the HTML for search engines */
img,video,picture{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
body{-webkit-user-select:none;user-select:none}
a,input,textarea,select,[data-copy]{-webkit-user-select:text;user-select:text}

/* kiwita-lb */
.pk{display:inline-block}
h1,h2,h3{text-wrap:balance}
p,li{text-wrap:pretty}
:lang(ja),:lang(zh-Hant),:lang(zh-Hans),:lang(zh){line-break:strict}
:lang(ja){word-break:auto-phrase}

.mmh{row-gap:28px}
/*hdr-slim*/header{padding-top:14px!important;padding-bottom:14px!important}.has-mm{padding:14px 0!important;margin:-14px 0!important}
/*mmk*/.mmp .mmk{flex:1;min-width:0}.mmp .mmk .hh{margin:0 0 18px;font-size:13px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:#4d544f}.mmp .mkg{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0 clamp(16px,2vw,32px);border-top:1px solid #0b110d}.mmp .mkg a{display:flex;flex-direction:column;margin:0;padding:14px 0 18px;border-bottom:1px solid #0b110d;color:#0b110d;text-decoration:none}.mmp .mkg .n{display:block;margin:0;font-size:11px;letter-spacing:.16em;color:#4d544f}.mmp .mkg .t{display:block;margin:18px 0 0;font-size:clamp(18px,1.6vw,23px);font-weight:600;letter-spacing:-0.03em;line-height:1.1;color:#0b110d}.mmp .mkg .t span{display:block;margin:0;font-size:inherit;color:#8a948c;font-weight:500}.mmp .mkg b{display:block;margin:16px 0 0;font-size:clamp(20px,2vw,28px);font-weight:600;letter-spacing:-0.03em;line-height:1.1}.mmp .mkg .d{display:block;margin:6px 0 0;font-size:13px;line-height:1.4;color:#4d544f}.mmp .mkg i{margin-top:auto;padding-top:12px;font-style:normal;font-size:18px;line-height:1}.mmp .mkg a b,.mmp .mkg a i,.mmp .mkg a .t span{transition:color 300ms}.mmp .mkg a:hover b,.mmp .mkg a:hover i,.mmp .mkg a:hover .t span{color:#2fae52}.mmp .mkf{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 28px;margin-top:16px;font-size:15px}.mmp .mkf>span{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#4d544f}.mmp .mkf a{margin:0;color:#0b110d;text-decoration:none}.mmp .mkf .all{margin-left:auto}@media(max-width:900px){.mmp .mkg{grid-template-columns:repeat(2,minmax(0,1fr))}}
/*mmh-grid*/.mmh{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0 clamp(16px,1.6vw,28px)!important;padding-left:clamp(28px,3vw,56px)!important}.mmh .hh{grid-column:1/-1}.mmh a{display:flex;flex-direction:column;min-width:0}.mmh a b{font-size:clamp(17px,1.5vw,22px)!important;white-space:nowrap;line-height:1.1}.mmh a span{font-size:13px!important;margin-top:8px!important;line-height:1.4}.mmh a em{order:-1;margin:0 0 14px!important;padding:0}
/*mm-hover*/.mmcols a,.mmc .all,.mmh a b,.mmh a em,.mmh a span{transition:color 300ms}.mmcols a:hover,.mmcols a:active,.mmc .all:hover{color:#2fae52!important}.mmh a:hover b,.mmh a:hover em,.mmh a:active b,.mmh a:active em{color:#2fae52!important}

/*lsw-9*/@media (max-width:600px){header .lsw{display:flex;max-width:100%;gap:0;padding:2px;font-size:10.5px;letter-spacing:0}header .lsw a,header .lsw b{padding:6px 5px}header .lsw>*:first-child{padding-left:5px}}
@media (min-width:601px) and (max-width:1500px){header .lsw{margin-left:0;padding:3px}header .lsw a,header .lsw b{padding:8px 9px;font-size:12px}header .lsw>*:first-child{padding-left:9px}}

/*apple-motion*/
@keyframes kfade{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
html.kx main>section:first-child>*:not(h1):not(.rv):not([style*="overflow:hidden"]){animation:kfade 900ms cubic-bezier(0.28,0.11,0.32,1) 100ms both!important}
html.kx main>section:first-child>div[style*="overflow:hidden"]{animation:kfade 1100ms cubic-bezier(0.28,0.11,0.32,1) 200ms both!important;clip-path:none!important}
html.kx .rv,html.kx .er,html.kx .hs .rs{transition:opacity 800ms cubic-bezier(0.28,0.11,0.32,1),transform 900ms cubic-bezier(0.28,0.11,0.32,1)}
html.kx .rv:not(.kin),html.kx .er:not(.kin),html.kx .hs .rs:not(.kin){opacity:0;transform:translateY(24px)}
html.kx main section:not(:first-child) img.ph,html.kx .dt .zm img,html.kx .ua .zm img{transition:transform 1400ms cubic-bezier(0.28,0.11,0.32,1),opacity 900ms cubic-bezier(0.28,0.11,0.32,1)}
html.kx main section:not(:first-child) img.ph:not(.kin),html.kx .dt .zm img:not(.kin),html.kx .ua .zm img:not(.kin){transform:scale(1.04);opacity:0}
}

/* kiwita-ipad-landscape: header on one row, hero text + film on one screen */
@media (min-width:1101px) and (max-width:1440px){
header{flex-wrap:nowrap!important;gap:16px 20px!important}
header>a[aria-label="KIWITA home"]{flex:none!important}
header nav{flex-wrap:nowrap!important;gap:12px 22px!important;font-size:15px!important;align-items:center!important}
header nav a{white-space:nowrap!important}
header .lsw{margin-left:6px!important}
header .lsw a,header .lsw b{padding:6px 9px!important}
header .lsw>*:first-child{padding-left:9px!important}
}
@media (min-width:1000px) and (max-width:1100px){
header{flex-wrap:nowrap!important;gap:12px 14px!important}
header>a[aria-label="KIWITA home"]{flex:none!important;font-size:24px!important}
header nav{flex-wrap:nowrap!important;gap:12px 14px!important;font-size:14px!important;align-items:center!important}
header nav a{white-space:nowrap!important}
header .lsw{margin-left:2px!important;font-size:10.5px!important;letter-spacing:.02em!important}
header .lsw a,header .lsw b{padding:6px 6px!important}
header .lsw>*:first-child{padding-left:6px!important}
}
@media (min-width:1101px) and (max-width:1320px){
main>section:first-child:has(video){flex-wrap:nowrap!important;gap:24px 40px!important;align-items:center!important}
main>section:first-child:has(video)>div:first-child{flex:1 1 52%!important}
main>section:first-child:has(video)>div:last-child{flex:0 1 42%!important;max-width:42%!important}
main>section:first-child:has(video) h1{font-size:clamp(44px,5.6vw,72px)!important}
}
