/* R3ASON — site styles. Spacing follows Fibonacci: 3 5 8 13 21 34 55 89 144. */
:root {
  --bg: #ffffff; --ink: #111111; --muted: #6b6b68; --line: #eaeaea; --rule: #111111;
  --soft: #f7f6f3; --link: #08707b; --teal: #0db1c2; --teal-ink: #08707b; --border: #8c8c88;
  --btn-bg: #111111; --btn-ink: #ffffff; --meter-off: #eaeaea; --toggle-border: #d0d0cc; --dot: #d0d0cc;
  --font: 'IBM Plex Sans', 'IBM Plex Sans JP', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111111; --ink: #f5f5f3; --muted: #a3a3a0; --line: #2a2a2a; --rule: #f5f5f3;
  --soft: #1a1a1a; --link: #3fcad9; --teal-ink: #3fcad9; --border: #6e6e6b;
  --btn-bg: #f5f5f3; --btn-ink: #111111; --meter-off: #2a2a2a; --toggle-border: #3a3a3a; --dot: #3a3a3a;
  color-scheme: dark;
}
html:lang(ja) { --font: 'IBM Plex Sans JP', 'IBM Plex Sans', system-ui, sans-serif; }
html:lang(th) .h1, html:lang(th) .h2 { line-height: 1.25; }
html:lang(ja) .h1, html:lang(ja) .h2 { line-height: 1.2; }
html:lang(th) { --font: 'IBM Plex Sans', 'IBM Plex Sans Thai', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--btn-bg); color: var(--btn-ink); padding: 8px 13px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 34px; padding-right: 34px; }
.sec { padding-top: 144px; }
.label { margin: 0 0 13px; font-size: 12px; line-height: 18px; letter-spacing: 0.08em; font-weight: 500; color: var(--muted); text-transform: uppercase; }
.label.dot { display: flex; align-items: center; gap: 8px; }
.label.dot::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--teal); }
.h1, .h2 { margin: 0; font-size: 55px; line-height: 60px; font-weight: 700; letter-spacing: -0.025em; }
.h2 + .lead, .h1 + .lead { margin-top: 21px; }
.lead { margin: 0; max-width: 610px; font-size: 18px; line-height: 30px; }
.muted { color: var(--muted); }
.teal { color: var(--teal); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 13px 21px; border-radius: 8px; font-weight: 500; font-size: 15px; line-height: 18px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-dark { background: var(--btn-bg); color: var(--btn-ink); }
.btn-dark:hover { color: var(--btn-ink); opacity: .88; }
.btn-line { border: 1px solid var(--border); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-teal { background: var(--teal); color: #111111; padding: 21px 34px; font-size: 18px; font-weight: 700; gap: 13px; }
.btn-teal:hover { color: #111111; filter: brightness(1.06); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 21px; padding-top: 21px; padding-bottom: 21px; }
.logo { display: flex; color: var(--ink); }
.logo svg { width: 144px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav a.nl { color: var(--ink); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav a.nl:hover { border-bottom-color: var(--line); }
.nav a.nl[aria-current="page"] { font-weight: 500; border-bottom-color: var(--teal); }
.langs { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; gap: 5px; }
.langs a { color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: 13px; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--toggle-border); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0; align-items: center; justify-content: center; }

/* Hero header (Home): over the picture, always light text */
.hero { position: relative; min-height: min(890px, 100svh); background: #111111; color: #ffffff; overflow: hidden; display: flex; flex-direction: column; }
.hero .site-header { border-bottom: 0; }
.hero .site-header .wrap { padding-top: 34px; padding-bottom: 34px; }
.hero .logo, .hero .nav a.nl, .hero .menu-btn, .hero .theme-btn { color: #ffffff; }
.hero .theme-btn { border-color: rgba(255,255,255,0.35); }
.hero .langs, .hero .langs a { color: #a3a3a0; }
.hero .langs a[aria-current="true"] { color: #ffffff; }
.hero .nav-ask { background: var(--teal); color: #111111; letter-spacing: 0.08em; font-size: 14px; text-transform: uppercase; }
.hero .nav-ask:hover { color: #111111; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.kb { position: absolute; inset: 0; opacity: 0; animation: kbfade 18s linear infinite; }
.kb img, .kb .kb-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kbzoom 18s linear infinite; transform-origin: 60% 40%; }
.kb:nth-child(2), .kb:nth-child(2) img { animation-delay: 6s; }
.kb:nth-child(3), .kb:nth-child(3) img { animation-delay: 12s; }
.kb.solo { opacity: 1; animation: none; }
.kb.solo img { animation: kbsolo 34s ease-in-out infinite alternate; }
.kb .blueprint { object-fit: contain; object-position: 70% 40%; opacity: .55; }
@keyframes kbfade { 0% { opacity: 0 } 5% { opacity: 1 } 33% { opacity: 1 } 38% { opacity: 0 } 100% { opacity: 0 } }
@keyframes kbzoom { 0% { transform: scale(1) } 38% { transform: scale(1.13) } 100% { transform: scale(1.13) } }
@keyframes kbsolo { from { transform: scale(1) } to { transform: scale(1.13) } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0.5) 0%, rgba(17,17,17,0) 21%, rgba(17,17,17,0) 55%, rgba(17,17,17,0.8) 100%), linear-gradient(90deg, rgba(17,17,17,0.45) 0%, rgba(17,17,17,0) 55%); }
.hero-credit { position: absolute; z-index: 1; top: 144px; left: 0; right: 0; pointer-events: none; }
.hero-credit .wrap { position: relative; height: 21px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: #f5f5f3; text-transform: uppercase; }
.kb-cr { position: absolute; right: 34px; top: 0; opacity: 0; animation: kbfade 18s linear infinite; white-space: nowrap; }
.kb-cr:nth-child(2) { animation-delay: 6s; } .kb-cr:nth-child(3) { animation-delay: 12s; }
.hero-body { position: relative; z-index: 1; flex: 1; display: flex; align-items: flex-end; padding-bottom: 89px; }
.hero-kicker { margin: 0 0 21px; font-size: 14px; line-height: 20px; letter-spacing: 0.16em; font-weight: 500; color: #f5f5f3; }
.hero-h1 { margin: 0; font-size: clamp(40px, 6vw, 89px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
.hero-lead { margin: 34px 0 0; max-width: 610px; font-size: 18px; line-height: 30px; color: #f5f5f3; }

/* Pillar bars (Home) */
.bars { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); column-gap: 55px; row-gap: 21px; margin-top: 55px; }
/* Each bar shares the same three columns (subgrid), so the titles line up and the longest title sets the width. */
.bar { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 144px; border-radius: 13px; padding: 34px 55px; background: var(--teal); color: var(--ink); text-decoration: none; overflow: hidden; transition: background-color 400ms ease; }
.bar-txt { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 8px; align-items: center; opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 400ms ease; }
@supports not (grid-template-columns: subgrid) {
  .bars { display: flex; flex-direction: column; }
  .bar { display: flex; }
  .bar-txt { width: 100%; grid-template-columns: 89px 300px minmax(0, 1fr); column-gap: 55px; }
}
.bar:hover, .bar:focus-visible { background: var(--soft); color: var(--ink); }
.bar:hover .bar-txt, .bar:focus-visible .bar-txt { opacity: 1; transform: none; }
.bar-l { margin: 0; white-space: nowrap; font-size: 12px; letter-spacing: 0.08em; font-weight: 500; color: var(--muted); }
.bar-h { margin: 0; font-size: 26px; line-height: 34px; font-weight: 500; letter-spacing: -0.015em; white-space: nowrap; }
.bar-d { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
@media (hover: none) { .bar, .bar:hover { background: var(--teal); color: #111111; } .bar-txt { opacity: 1; transform: none; } .bar .bar-l, .bar .bar-d { color: rgba(17,17,17,0.72); } }

/* From why to wow */
.steps { margin: 55px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 55px; }
.step { position: relative; display: flex; flex-direction: column; gap: 13px; }
.step > *:not(.mark) { position: relative; z-index: 1; }
.step-n { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step h3 { margin: 0; font-size: 21px; line-height: 30px; font-weight: 500; }
.step p.w { margin: 0; color: var(--muted); }
.sbar { height: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.sfill { height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 610ms cubic-bezier(.65,0,.35,1); }
.mark { position: absolute; top: 34px; right: 0; z-index: 0; font-size: 55px; line-height: 55px; font-weight: 700; color: var(--line); opacity: 0; transition: color 400ms ease, opacity 400ms ease; pointer-events: none; user-select: none; }
.mark .d { display: inline-block; position: relative; top: -13px; }
@keyframes wonder { 0% { transform: none } 25% { transform: translateY(-8px) rotate(-13deg) } 50% { transform: translateY(-5px) rotate(8deg) } 75% { transform: translateY(-2px) rotate(-3deg) } 100% { transform: none } }
@keyframes think { 0%, 100% { opacity: .25; transform: none } 40% { opacity: 1; transform: translateY(-5px) } }
@keyframes pop { 0% { transform: scale(.618) translateY(8px) } 60% { transform: scale(1.13) translateY(-5px) } 100% { transform: none } }
/* Desktop: hover drives it. Touch: .on classes set by the autoplay script. */
@media (hover: hover) {
  .steps:has(.s1:hover) .s1 .sfill, .steps:has(.s2:hover) .s1 .sfill, .steps:has(.s2:hover) .s2 .sfill, .steps:has(.s3:hover) .sfill { transform: scaleX(1); }
  .steps:has(.s3:hover) .s2 .sfill { transition-delay: 144ms; }
  .steps:has(.s3:hover) .s3 .sfill { transition-delay: 288ms; }
  .step:hover .mark { opacity: 1; color: var(--ink); }
  .s1:hover .mark { animation: wonder 900ms ease-in-out; }
  .s2:hover .mark .d { animation: think 1200ms ease-in-out infinite; }
  .s2:hover .mark .d:nth-child(2) { animation-delay: 200ms; }
  .s2:hover .mark .d:nth-child(3) { animation-delay: 400ms; }
  .s3:hover .mark { color: var(--teal); animation: pop 610ms cubic-bezier(.34,1.56,.64,1); }
}
.steps.auto .step.on .sfill { transform: scaleX(1); }
.steps.auto .step.on .mark { opacity: 1; color: var(--ink); }
.steps.auto .s1.on .mark { animation: wonder 900ms ease-in-out; }
.steps.auto .s2.on .mark .d { animation: think 1200ms ease-in-out infinite; }
.steps.auto .s2.on .mark .d:nth-child(2) { animation-delay: 200ms; }
.steps.auto .s2.on .mark .d:nth-child(3) { animation-delay: 400ms; }
.steps.auto .s3.on .mark { color: var(--teal); animation: pop 610ms cubic-bezier(.34,1.56,.64,1); }

/* Section head with actions */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 21px; margin-bottom: 55px; }
.sec-actions { display: flex; align-items: center; gap: 21px; }
.arrow-btn { width: 55px; height: 55px; border-radius: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arrow-btn:disabled { opacity: .25; cursor: default; }

/* Work tiles */
.tiles { width: 100%; background: #2a2a2a; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 1px; }
.tile-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; background: #1a1a1a; color: #ffffff; text-decoration: none; overflow: hidden; }
.tile:hover { color: #ffffff; }
.tile[hidden] { display: none; }
.tile .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 610ms ease; }
.tile:hover .bg { transform: scale(1.03); }
.tile .bg-plain { position: absolute; inset: 0; background: linear-gradient(rgba(245,245,243,0.04) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(245,245,243,0.04) 1px, transparent 1px) 0 0 / 34px 34px, #1a1a1a; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0.15) 0%, rgba(17,17,17,0.75) 100%); }
.tile .num { position: absolute; left: 34px; top: 34px; font-family: var(--mono); font-size: 15px; color: #f5f5f3; }
.tile .arrow { position: absolute; right: 34px; top: 34px; font-size: 21px; color: var(--teal); opacity: 0; transition: opacity 400ms ease; }
.tile .txt { position: absolute; left: 34px; right: 89px; bottom: 34px; display: flex; flex-direction: column; gap: 8px; }
.tile .tag { font-size: 12px; letter-spacing: 0.08em; font-weight: 500; color: #a3a3a0; }
.tile h3 { margin: 0; font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.015em; text-transform: uppercase; }
.tile .why { margin: 0; font-size: 15px; line-height: 24px; color: #f5f5f3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 400ms ease; }
.tile .meter { position: absolute; right: 34px; bottom: 34px; }
.tile .rule { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 400ms ease; }
.tile:hover .why, .tile:focus-visible .why { opacity: 1; transform: none; }
.tile:hover .rule, .tile:focus-visible .rule { transform: scaleX(1); }
.tile:hover .arrow, .tile:focus-visible .arrow { opacity: 1; }
.tile:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
@media (hover: none) { .tile .why { opacity: 1; transform: none; } }

/* 3-bar meter */
.meter { display: inline-flex; flex-direction: column; gap: 3px; flex: none; }
.meter span { display: block; width: 21px; height: 5px; border-radius: 2px; background: var(--meter-off); }
.meter span.on { background: var(--teal); }
.tile .meter span { background: rgba(245,245,243,0.25); }
.tile .meter span.on { background: var(--teal); }

/* Own projects list */
.plist { border-top: 1px solid var(--rule); margin-top: 34px; }
.prow { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr) minmax(0, 2fr); gap: 13px 34px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: center; color: var(--ink); text-decoration: none; }
a.prow:hover h3 { color: var(--teal-ink); }
.prow h3 { margin: 0; font-size: 34px; line-height: 42px; font-weight: 500; letter-spacing: -0.015em; transition: color 200ms ease; }
.prow p { margin: 0; }
.ptags { display: flex; align-items: center; gap: 13px; font-size: 12px; letter-spacing: 0.08em; font-weight: 500; color: var(--muted); text-transform: uppercase; }
.purl { font-family: var(--mono); font-size: 13px; color: var(--teal-ink); text-align: right; }

/* CTA */
.cta { padding-top: 34px; padding-bottom: 55px; }
.cta-in { border-top: 1px solid var(--rule); padding-top: 55px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 34px; }
.cta-in > div { max-width: 610px; }
.cta-in p.lead { margin-top: 21px; }

/* Footer: always dark */
.site-footer { background: #111111; color: #f5f5f3; }
:root[data-theme="dark"] .site-footer { border-top: 1px solid #2a2a2a; }
.site-footer .wrap { padding-top: 55px; padding-bottom: 55px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 34px; align-items: flex-start; }
.site-footer .logo { color: #f5f5f3; }
.f-tag { margin: 13px 0 0; font-size: 13px; color: #a3a3a0; }
.f-nav { display: flex; flex-wrap: wrap; gap: 34px; font-size: 15px; }
.f-nav a { color: #f5f5f3; text-decoration: none; }
.f-nav a:hover { color: var(--teal); }
.f-copy { margin: 0; width: 100%; font-size: 13px; color: #a3a3a0; border-top: 1px solid #2a2a2a; padding-top: 21px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 13px; }
.f-copy a { color: #a3a3a0; font-family: var(--mono); }

/* Page intro */
.intro { padding-top: 89px; padding-bottom: 55px; }

/* Work page */
.filters-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 21px 55px; padding-bottom: 55px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--bg); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; padding: 13px 21px; font-size: 15px; font-family: inherit; cursor: pointer; min-height: 44px; }
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); font-weight: 500; }
.legend { display: flex; align-items: center; gap: 13px; max-width: 610px; }
.legend .meter span { background: var(--teal); }
.legend p { margin: 0; font-size: 13px; line-height: 21px; color: var(--muted); }
.legend strong { font-weight: 500; color: var(--ink); }
.player { width: 100%; margin-top: 34px; }
.player iframe { width: 100%; height: 377px; border: 0; display: block; }
.lab { background: #111111; color: #f5f5f3; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; margin-top: 144px; }
.lab .wrap { padding-top: 144px; padding-bottom: 144px; }
.lab .label { color: #a3a3a0; }
.lab .lead { color: #f5f5f3; margin-bottom: 55px; }
.lab-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 55px; align-items: start; }
.lab-list { border-top: 1px solid #2a2a2a; }
.lab-tab { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #2a2a2a; border-left: 3px solid transparent; padding: 21px 21px 21px 18px; cursor: pointer; font-family: inherit; color: inherit; }
.lab-tab[aria-selected="true"] { background: #1a1a1a; border-left-color: var(--teal); }
.lab-tab .top { display: flex; justify-content: space-between; align-items: baseline; gap: 13px; }
.lab-tab .nm { font-size: 21px; line-height: 30px; font-weight: 500; color: #f5f5f3; }
.lab-tab .wh { display: block; margin-top: 5px; font-size: 15px; line-height: 24px; color: #a3a3a0; }
.lab-tab .st { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: #6e6e6b; }
.lchip { flex: none; font-size: 12px; letter-spacing: 0.08em; font-weight: 500; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; border: 1px solid #6e6e6b; color: #a3a3a0; }
.lchip.live { border-color: var(--teal); color: #3fcad9; }
.lab-screen { border: 1px solid #2a2a2a; border-radius: 13px; overflow: hidden; }
.lab-screen .in { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 13px; padding: 34px; background: linear-gradient(rgba(245,245,243,0.04) 1px, transparent 1px) 0 0 / 34px 34px, linear-gradient(90deg, rgba(245,245,243,0.04) 1px, transparent 1px) 0 0 / 34px 34px, #1a1a1a; }
.lab-screen img { width: 100%; height: 100%; object-fit: cover; }
.lab-screen .big { font-size: 55px; line-height: 60px; font-weight: 700; letter-spacing: -0.025em; }
.lab-screen .sm { font-family: var(--mono); font-size: 13px; color: #a3a3a0; }
.lab-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 13px; margin-top: 21px; }
.lab-foot p { margin: 0; font-size: 15px; line-height: 24px; color: #a3a3a0; }
.lab-foot b { font-weight: 400; color: #f5f5f3; }
.lab-foot a { color: #3fcad9; font-weight: 500; }

/* About */
.name-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 55px; align-items: start; }
.name-grid > .full { grid-column: 1 / -1; }
.name-grid > * { min-width: 0; }
.name-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 13px 34px; margin-bottom: -21px; }
.blueprint-box { background: #111111; border-radius: 13px; overflow: hidden; }
:root[data-theme="dark"] .blueprint-box { border: 1px solid #2a2a2a; }
.three-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 21px 55px; padding-top: 34px; }
.three-head p { margin: 0; flex: 1 1 340px; max-width: 470px; font-size: 18px; line-height: 30px; }
.col { border-top: 1px solid var(--rule); padding-top: 21px; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 21px; align-content: start; }
.col .stp { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; color: var(--teal-ink); }
.col h3 { margin: 0; font-size: 26px; line-height: 34px; font-weight: 500; letter-spacing: -0.015em; }
.col > p { margin: 0; }
.col dl { margin: 0; display: flex; flex-direction: column; gap: 13px; }
.col dt { font-size: 21px; line-height: 30px; font-weight: 500; }
.col dt span { font-family: 'IBM Plex Sans JP', 'IBM Plex Sans Thai', sans-serif; font-weight: 400; color: var(--muted); }
.col dd { margin: 3px 0 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 89px; align-items: start; }
.two > div:first-child { display: flex; flex-direction: column; gap: 21px; }
.nlist { border-top: 1px solid var(--rule); }
.nrow { padding: 21px 0; border-bottom: 1px solid var(--line); display: flex; gap: 21px; align-items: baseline; }
.nrow > span { font-family: var(--mono); font-size: 13px; color: var(--muted); width: 34px; flex: none; }
.nrow h3 { margin: 0; font-size: 21px; line-height: 30px; font-weight: 500; }
.nrow p { margin: 5px 0 0; color: var(--muted); }
.pp { background: var(--soft); border-radius: 13px; padding: 89px 55px; }
.pp .nrow > span { color: var(--teal-ink); }
.pp.two { grid-template-columns: minmax(min-content, 1fr) minmax(0, 1fr); }
.pp-btns { display: flex; flex-wrap: nowrap; gap: 13px; margin-top: 13px; }
.pp-btns .btn { white-space: nowrap; flex: 0 0 auto; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 55px 89px; padding-top: 89px; padding-bottom: 55px; }
.contact-l { flex: 1 1 340px; display: flex; flex-direction: column; gap: 34px; }
.contact-r { flex: 999 1 560px; min-width: 0; }
.cinfo { border-top: 1px solid var(--rule); padding-top: 21px; display: flex; flex-direction: column; gap: 21px; }
.cinfo p { margin: 0; }
.cinfo .k { margin: 0 0 5px; }
.cinfo a.mail { font-size: 18px; color: var(--ink); line-height: 30px; }
.form { background: var(--soft); border-radius: 13px; padding: 55px; display: flex; flex-direction: column; gap: 21px; }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 21px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea { height: 55px; padding: 0 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 16px; font-family: inherit; width: 100%; }
.field textarea { height: auto; padding: 13px; line-height: 26px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 15px; color: #c0392b; }
.thanks { background: var(--soft); border-radius: 13px; padding: 55px; display: flex; flex-direction: column; gap: 13px; }
.thanks .tbar { width: 55px; height: 8px; border-radius: 3px; background: var(--teal); }
.thanks h2 { margin: 8px 0 0; font-size: 34px; line-height: 42px; font-weight: 500; }
.thanks p { margin: 0; color: var(--muted); }

/* Case */
.case-meta dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 21px; border-top: 1px solid var(--line); padding-top: 21px; }
.case-meta dd { margin: 5px 0 0; }
.case-sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 89px; }
.case-sec .n { margin: 0 0 13px; font-family: var(--mono); font-size: 13px; color: var(--teal-ink); }
.case-sec h2 { margin: 0; font-size: 34px; line-height: 42px; font-weight: 500; letter-spacing: -0.015em; }
.case-sec .sub { margin: 8px 0 0; color: var(--muted); }
.case-why { margin: 0; font-size: 21px; line-height: 34px; }
.rlist { border-top: 1px solid var(--rule); }
.rrow { padding: 21px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 34px; }
.rrow h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.rrow p { margin: 0; color: var(--muted); }
.wrow { padding: 21px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); gap: 8px 34px; }
.wrow .k { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 30px; color: var(--teal-ink); }
.wrow .v { margin: 0; font-size: 18px; line-height: 30px; }
.tline { display: flex; gap: 5px; }
.tline > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tline .b { display: block; height: 8px; border-radius: 3px; background: var(--teal); }
.tline .t { font-size: 13px; line-height: 21px; color: var(--muted); }
.tline strong { font-weight: 500; color: var(--ink); }
.carousel { position: relative; }
.slide { aspect-ratio: 16 / 9; width: 100%; background: var(--soft); display: none; }
.slide.on { display: block; }
.slide img, .slide video, .slide iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.carousel .cbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 55px; height: 55px; border-radius: 8px; border: 0; background: rgba(17,17,17,0.72); color: #f5f5f3; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.carousel .cbtn.p { left: 34px; } .carousel .cbtn.n { right: 34px; }

/* Mobile menu */
.mnav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .bars { display: flex; flex-direction: column; }
  .bar { display: flex; }
  .bar-txt { width: 100%; grid-template-columns: 1fr; gap: 5px; }
  .prow { grid-template-columns: 1fr 1fr; }
  .purl { text-align: left; }
}
@media (max-width: 959px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .head-tools { display: flex; align-items: center; gap: 8px; }
  .site-header .wrap { justify-content: space-between; gap: 21px; }
  .mnav { display: block; position: fixed; inset: 0; z-index: 50; background: var(--bg); color: var(--ink); padding: 21px; transform: translateY(-100%); transition: transform 400ms cubic-bezier(.65,0,.35,1); visibility: hidden; }
  .mnav.open { transform: none; visibility: visible; }
  .mnav .top { display: flex; justify-content: space-between; align-items: center; }
  .mnav nav { display: flex; flex-direction: column; margin-top: 55px; border-top: 1px solid var(--line); }
  .mnav nav a { color: var(--ink); text-decoration: none; font-size: 34px; line-height: 42px; font-weight: 700; padding: 21px 0; border-bottom: 1px solid var(--line); }
  .mnav .langs { margin-top: 34px; font-size: 15px; gap: 13px; }
  .mnav .btn-teal { margin-top: 34px; width: 100%; justify-content: center; }
  .steps, .name-grid, .two, .case-sec, .tile-grid.three { grid-template-columns: 1fr; }
  .col { display: flex; flex-direction: column; grid-row: auto; }
  .lab-grid { grid-template-columns: 1fr; }
  .mark { font-size: 34px; line-height: 34px; top: 21px; }
  .mark .d { top: -8px; }
}
@media (min-width: 960px) { .head-tools { display: none; } }
@media (max-width: 639px) {
  .wrap { padding-left: 21px; padding-right: 21px; }
  .sec { padding-top: 89px; }
  .h1, .h2 { font-size: 34px; line-height: 40px; letter-spacing: -0.02em; }
  .lead, .hero-lead, .three-head p { font-size: 16px; line-height: 26px; }
  .logo svg { width: 89px; }
  .hero .site-header .wrap, .site-header .wrap { padding-top: 21px; padding-bottom: 21px; }
  .hero-credit { top: 89px; }
  .kb-cr { right: 21px; }
  .hero-body { padding-bottom: 55px; }
  .hero-kicker { font-size: 12px; letter-spacing: 0.12em; }
  .hero-h1 { white-space: normal; font-size: 34px; }
  .bar { padding: 21px; min-height: 0; border-radius: 13px; }
  .bar-h { font-size: 21px; line-height: 30px; white-space: normal; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile .num, .tile .arrow { top: 21px; } .tile .num { left: 21px; } .tile .arrow { right: 21px; }
  .tile .txt { left: 21px; bottom: 21px; right: 55px; } .tile .meter { right: 21px; bottom: 21px; }
  .tile h3 { font-size: 26px; line-height: 34px; }
  .sec-head { margin-bottom: 34px; }
  .prow { grid-template-columns: 1fr; padding: 21px 0; gap: 8px; }
  .prow h3 { font-size: 26px; line-height: 34px; }
  .btn-teal { width: 100%; justify-content: center; }
  .pp { padding: 34px 21px; }
  .pp-btns { flex-wrap: wrap; }
  .form, .thanks { padding: 34px 21px; }
  .lab .wrap { padding-top: 89px; padding-bottom: 89px; }
  .lab { margin-top: 89px; }
  .lab-screen .big { font-size: 34px; line-height: 40px; }
  .wrow { grid-template-columns: 1fr; }
  .carousel .cbtn.p { left: 8px; } .carousel .cbtn.n { right: 8px; }
  .three-head { padding-top: 0; }
  .nowrap { white-space: normal; }
  .name-top { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .kb:first-child, .kb-cr:first-child { opacity: 1; }
}
@media (max-width: 1199px) { .pp.two { grid-template-columns: minmax(0, 1fr); } }
