/* Creative Power: corporate energy style (after Hitachi Energy, Schneider, ABB) in brand orange */
:root {
  --bg: #ffffff;
  --grey: #f4f4f4;
  --ink: #1f1f1f;
  --muted: #555555;
  --accent: #ff6600;
  --accent-d: #e05500;
  --dark: #1c1c1c;
  --wrap: 1280px;
  --m: clamp(16px, 4vw, 40px);
  --font: "Sarabun", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--m)); margin-inline: auto; }
.grey { background: var(--grey); }
section { padding-block: clamp(64px, 8vw, 112px); }
h2 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: 32px; }
h2.mk::before, h1.mk::before { content: ""; display: block; width: 48px; height: 5px; background: var(--accent); margin-bottom: 20px; }
.lead-d { max-width: 62ch; color: var(--muted); margin: -12px 0 40px; }

/* buttons: square, flat */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--ink); font-weight: 600; text-decoration: none;
  padding: 14px 26px; border: 2px solid var(--accent); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-o { background: transparent; border-color: #fff; color: #fff; }
.btn-o:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-o2 { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-o2:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-w { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-w:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-s { padding: 9px 18px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.sq { display: inline-grid; place-items: center; width: 48px; height: 48px; background: var(--ink); color: #fff; transition: background .2s, transform .2s var(--ease); }
a.sq:hover { background: var(--accent); }

/* header */
.bar { position: sticky; top: 0; z-index: 10; background: #fff; display: flex; align-items: center; gap: 40px; padding: 14px var(--m); box-shadow: 0 1px 0 #e6e6e6; }
.wm img { width: 170px; }
.bar nav { display: flex; gap: 28px; font-weight: 600; font-size: 16px; margin-right: auto; }
.bar nav a, .lang { text-decoration: none; position: relative; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--accent); scale: 0 1; transition: scale .25s var(--ease); }
.bar nav a:hover::after { scale: 1 1; }
.bar-r { display: flex; align-items: center; gap: 20px; font-weight: 600; }
.lang:hover { color: var(--accent); }

/* hero: full-bleed photo, white type */
.hero { position: relative; min-height: min(78svh, 760px); display: grid; align-items: end; padding: 0; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 18s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .52); }
.hero-in { position: relative; z-index: 1; width: min(var(--wrap), 100% - 2 * var(--m)); margin: 0 auto; padding-block: 120px clamp(56px, 8vw, 104px); }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.12; }
.hero .lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 52ch; margin: 20px 0 32px; }
@keyframes zoom { from { scale: 1.08; } to { scale: 1; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 48px; gap: 24px; }
.stats div { border-left: 4px solid var(--accent); padding-left: 20px; }
.stats dt { font-size: clamp(30px, 3vw, 44px); font-weight: 700; line-height: 1.1; }
.stats dd { color: var(--muted); }

/* product cards (SE style) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; text-decoration: none; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgb(0 0 0 / .1); }
.card-img { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; transition: scale .4s var(--ease); }
.card:hover .card-img img { scale: 1.05; }
.card-b { display: flex; flex-direction: column; gap: 6px; padding: 20px; flex: 1; }
.card-b strong { font-size: 19px; }
.card-b > span { color: var(--muted); font-size: 15px; }
.card-b .more { margin-top: auto; padding-top: 12px; color: #b84500; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* split tiles (Hitachi style) */
.details { padding: 0; }
.tile { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.tile-r .tile-img { order: 2; }
.tile-img { background: var(--grey); display: grid; place-items: center; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; max-height: 640px; object-fit: contain; padding: 8%; transition: scale .8s var(--ease); }
#universal .tile-img img { object-fit: cover; object-position: top left; padding: 0; }
.tile:hover .tile-img img { scale: 1.03; }
.tile-txt { padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.tile-txt h3 { font-size: clamp(28px, 2.6vw, 36px); }
.tile-txt > p { font-size: 19px; }
.tile-txt ul { list-style: none; display: grid; gap: 8px; }
.tile-txt li { padding-left: 22px; position: relative; }
.tile-txt li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 3px; background: var(--accent); }
.tile-act { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.man { font-weight: 600; }
.tile-accent .man { color: #fff; }
.tile-accent .man:hover { color: var(--ink); }
.tile-accent .tile-txt { background: var(--accent); color: #fff; }
.tile-accent .tile-txt li, .tile-accent .tile-txt > p { font-weight: 600; }
.tile-accent li::before { background: #fff; }
.tile-accent .sq { background: #fff; color: var(--accent-d); }
.tile-accent a.sq:hover { background: var(--ink); color: #fff; }

/* choose by site: buyer tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { font: 600 17px var(--font); padding: 14px 24px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.tabs button:hover { background: var(--ink); color: #fff; }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.panel { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; margin-bottom: 20px; }
.panel[hidden] { display: none; }
.pn-l, .tool { background: #fff; padding: clamp(24px, 3vw, 40px); }
.pn-l h3 { font-size: clamp(24px, 2.2vw, 30px); }
.problem { font-size: 19px; margin: 8px 0 24px; }
.panel h4 { font-size: 16px; margin: 0 0 12px; }
.opts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.opts li { background: var(--grey); padding: 20px; border-top: 4px solid var(--accent); }
.opts strong { display: block; font-size: 18px; margin-bottom: 6px; }
.opts span { color: var(--muted); font-size: 16px; }
.know { list-style: none; display: grid; gap: 8px; margin-bottom: 28px; }
.know li { padding-left: 22px; position: relative; }
.know li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 3px; background: var(--accent); }
.tool { display: flex; flex-direction: column; gap: 14px; align-self: start; border-top: 4px solid var(--ink); }
.tool h4 { font-size: 20px; margin: 0; }
.tool label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.tool input { font: 400 20px var(--font); padding: 10px 12px; border: 2px solid #cfcfcf; background: #fff; color: var(--ink); width: 100%; }
.tool input:focus { border-color: var(--accent); outline: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.out { display: grid; gap: 4px; background: var(--ink); color: #fff; padding: 20px; min-height: 96px; }
.out strong { font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.out span { color: #d6d6d6; font-size: 15px; }
.tool .note { color: var(--muted); font-size: 14px; }
.tool .links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.tool .links a, .man { color: #b84500; }
.tool .links a:hover, .man:hover { color: var(--ink); }

/* how we work */
.si-in { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.steps li { background: #fff; padding: 28px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: var(--ink); font-weight: 700; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }

/* journey row */
.j-top { display: flex; justify-content: space-between; align-items: end; }
.j-btns { display: flex; gap: 8px; margin-bottom: 32px; }
.j-btns button { width: 48px; height: 48px; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.j-btns button:hover { background: var(--accent); }
.j-row { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.j-row::-webkit-scrollbar { display: none; }
.jc { scroll-snap-align: start; background: var(--grey); }
.jc img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; background: #fff; }
.jc .yr { display: block; margin: 20px 20px 2px; color: #b84500; font-weight: 700; font-size: 22px; }
.jc h3 { font-size: 18px; margin: 0 20px 6px; }
.jc p { margin: 0 20px 24px; color: var(--muted); font-size: 16px; }
.jc-txt { display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); color: #fff; }
.jc-txt .yr { font-size: clamp(48px, 5vw, 72px); color: var(--accent); line-height: 1; }
.jc-txt p { color: #d6d6d6; }
.jc-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; aspect-ratio: 7 / 5; align-items: center; padding: 24px; background: #fff; }
.jc-logos img { max-height: 64px; width: auto; margin: auto; object-fit: contain; }

/* customers */
.logos { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos li { background: #fff; outline: 1px solid #e8e8e8; aspect-ratio: 2 / 1; display: grid; place-items: center; padding: 16px;
  transition: outline-color .25s, box-shadow .25s, transform .25s var(--ease); }
.logos li:hover { outline: 2px solid var(--accent); box-shadow: 0 10px 24px rgb(0 0 0 / .12); transform: translateY(-3px); }
.logos img { max-height: 64px; width: auto; object-fit: contain; }

/* founders */
.pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pt { background: #fff; }
.pt img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pt figcaption { padding: 24px; }
.pt strong { display: block; font-size: 19px; }
.pt span { color: #b84500; font-weight: 600; font-size: 15px; }
.pt p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* faq */
.qs { max-width: 900px; }
.qs details { border-bottom: 1px solid #ddd; }
.qs summary { font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding: 20px 48px 20px 0; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-size: 28px; font-weight: 400; color: var(--accent); transition: rotate .25s; }
.qs details[open] summary::after { rotate: 45deg; }
.qs summary:hover { color: var(--accent-d); }
.qs p { color: var(--muted); padding-bottom: 20px; }

/* orange band */
.band { background: var(--accent); color: var(--ink); padding-block: 64px; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.band h2 { margin-bottom: 8px; }
.band p { max-width: 60ch; }

/* contact + map */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.co { font-weight: 600; margin-bottom: 20px; }
.facts { display: grid; gap: 14px; margin-bottom: 32px; }
.facts dt { font-size: 14px; color: var(--muted); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--grey); }

/* footer */
.foot { background: var(--dark); color: #d6d6d6; padding-top: 64px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.foot-in > div { display: flex; flex-direction: column; gap: 8px; }
.foot h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-logo { filter: brightness(0) invert(1); width: 170px; margin-bottom: 12px; }
.foot-b { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px 28px; border-top: 1px solid #3a3a3a; font-size: 13px; color: #a8a8a8; }
.cr a { text-decoration: underline; }

/* entrance */
.js .rv { opacity: 0; translate: 0 24px; }
.js .rv.in { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1 !important; translate: none !important; }
  .hero-img { animation: none; }
}

/* tablet */
@media (max-width: 1024px) {
  .bar nav { display: none; }
  .bar-r { margin-left: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-r { grid-template-columns: 1fr; min-height: 0; }
  .tile-r .tile-img { order: 0; }
  .tile-img { aspect-ratio: 16 / 10; }
  .panel { grid-template-columns: 1fr; }
  .si-in, .contact { grid-template-columns: 1fr; }
  .j-row { grid-auto-columns: calc((100% - 20px) / 2.3); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .pts { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
/* phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wm img { width: 130px; }
  .bar { gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards, .steps, .pts, .opts, .fields { grid-template-columns: 1fr; }
  .tabs button { flex: 1 1 100%; }
  .j-row { grid-auto-columns: 78%; }
  .j-btns { display: none; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .band-in { flex-direction: column; align-items: flex-start; }
  .hero .acts .btn { flex: 1 1 100%; justify-content: center; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-b { flex-direction: column; }
}
