:root {
  color-scheme: light;
  --ink: #101411;
  --muted: #667069;
  --paper: #f6f6f2;
  --surface: #ffffff;
  --line: #dedfd9;
  --accent: #234b87;
  --accent-bright: #b9d5ff;
  --dark: #111827;
  --shell: 1120px;
  --side: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #3d6fb6; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }
.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 40; width: 100%; margin-inline: auto; border: 1px solid transparent; border-bottom-color: rgba(222,223,217,.8); background: rgba(246,246,242,.94); backdrop-filter: blur(12px); transition: top .26s ease, width .26s ease, border-radius .26s ease, background-color .26s ease, box-shadow .26s ease; }
.site-header.is-scrolled { top: 10px; width: min(calc(100% - 24px), 1160px); border-color: rgba(255,255,255,.14); border-radius: 14px; background: rgba(17,24,39,.88); box-shadow: 0 12px 32px rgba(10,18,32,.16); color: #fff; backdrop-filter: blur(16px); }
.nav { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 24px; transition: min-height .26s ease; }
.site-header.is-scrolled .nav { min-height: 52px; }
.site-header.is-scrolled .desktop-nav { color: rgba(255,255,255,.78); }
.site-header.is-scrolled .desktop-nav a:not(.nav-cta):hover { color: #fff; }
.site-header.is-scrolled .nav-cta { background: #fff; color: #172c4d; }
.site-header.is-scrolled .menu-toggle { border-color: rgba(255,255,255,.3); color: #fff; }
.site-header.is-scrolled.is-over-dark { border-color: rgba(23,44,77,.14); background: rgba(255,255,255,.9); color: #172c4d; box-shadow: 0 12px 32px rgba(7,18,36,.18); }
.site-header.is-scrolled.is-over-dark .desktop-nav { color: #46556a; }
.site-header.is-scrolled.is-over-dark .desktop-nav a:not(.nav-cta):hover { color: #172c4d; }
.site-header.is-scrolled.is-over-dark .nav-cta { background: #172c4d; color: #fff; }
.site-header.is-scrolled.is-over-dark .menu-toggle { border-color: rgba(23,44,77,.25); color: #172c4d; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.desktop-nav { display: flex; align-items: center; gap: 26px; color: #39413c; font-size: 14px; }
.desktop-nav a:not(.nav-cta) { position: relative; padding: 21px 0 18px; }
.site-header.is-scrolled .desktop-nav a:not(.nav-cta) { padding-top: 15px; padding-bottom: 14px; }
.site-header.is-scrolled .desktop-nav a:not(.nav-cta)::after { bottom: 10px; }
.desktop-nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: 14px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .22s ease; }
.desktop-nav a:not(.nav-cta):hover { color: #000; }
.desktop-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; transition: background-color .18s ease, transform .18s ease; }
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; }
.mobile-menu { position: fixed; inset: 68px 0 0; z-index: 39; padding: 24px var(--side); background: var(--paper); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: clamp(24px, 8vw, 36px); font-weight: 700; letter-spacing: -.04em; }
.mobile-menu .mobile-cta { margin-top: 20px; border: 0; color: var(--accent); font-size: 18px; }

.hero { min-height: 650px; padding: clamp(68px, 8vw, 108px) 0 42px; overflow: hidden; background: var(--dark); color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr); gap: clamp(48px, 8vw, 120px); align-items: end; }
.hero-grid > *, .product-hero-grid > *, .contact-grid > * { min-width: 0; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(50px, 7vw, 88px); font-weight: 750; line-height: .93; letter-spacing: -.07em; text-wrap: balance; }
.hero h1 em { color: var(--accent-bright); font-style: normal; }
.hero-copy { padding-bottom: 12px; }
.hero-copy p { max-width: 440px; margin: 0 0 26px; color: #b8c2bc; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid currentColor; background: transparent; font-weight: 700; transition: transform .18s ease, background-color .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: #fff; color: #111; border-color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .text-button { display: inline-flex; min-height: 48px; align-items: center; padding: 0 8px; color: #fff; border-bottom: 1px solid #65736c; font-weight: 700; }
.hero-foot { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(60px, 8vw, 105px); padding-top: 18px; border-top: 1px solid #35403a; color: #859189; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.section-space { padding: clamp(68px, 8vw, 108px) 0; }
.section-index, .kicker { margin: 0 0 18px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.section-intro { display: grid; grid-template-columns: .58fr 1.42fr; gap: 34px; margin-bottom: clamp(42px, 6vw, 72px); }
.section-intro h2, .overview-grid h2, .next-grid h2 { max-width: 720px; margin: 0; font-size: clamp(36px, 5vw, 60px); line-height: 1.03; letter-spacing: -.055em; }
.section-intro p:not(.section-index) { max-width: 500px; margin: 16px 0 0; color: var(--muted); font-size: 18px; }

.products-section { background: var(--surface); }
.product-story { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(34px, 6vw, 76px); align-items: center; min-height: 520px; padding: 52px 0; border-top: 1px solid var(--line); }
.product-story:nth-child(even) { grid-template-columns: 1.25fr .75fr; }
.product-story:nth-child(even) .product-copy { order: 2; }
.product-copy h3 { margin: 0 0 18px; font-size: clamp(52px, 7vw, 82px); line-height: .92; letter-spacing: -.07em; }
.product-copy p { max-width: 420px; margin: 0 0 30px; color: var(--muted); font-size: 18px; }
.text-link { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-weight: 750; }
.text-link:hover { color: var(--accent); }
.product-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.store-link { display: inline-flex; width: 135px; height: 40px; align-items: center; padding: 0; overflow: hidden; border: 0; border-radius: 4px; line-height: 0; transition: transform .18s ease, filter .18s ease; }
.store-link:hover { transform: translateY(-2px); filter: brightness(1.06); }
.google-play-badge { width: 100%; height: 100%; display: block; object-fit: contain; }
.store-link-large { width: 162px; height: 48px; }
.product-stage { min-height: 410px; padding: clamp(24px, 4vw, 52px); display: grid; place-items: center; overflow: hidden; background: var(--product-soft); color: #171917; transition: transform .32s ease, box-shadow .32s ease; }
.product-story:hover .product-stage { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(31,45,65,.1); }
.product-stage-large { min-height: 580px; }
.product-shot { width: 100%; margin: 0; overflow: hidden; }
.product-shot img { width: 100%; height: auto; display: block; }
.product-stage-bukaku { width: min(100%, 680px); min-height: 0; padding: 0; justify-self: center; overflow: visible; background: transparent; }
.bukaku-shot { width: 100%; max-width: none; border-radius: 14px; box-shadow: 0 24px 54px rgba(83,31,26,.18), 0 4px 12px rgba(83,31,26,.09); }
.product-stage-large.product-stage-bukaku { width: min(100%, 680px); min-height: 0; padding: 0; }
.product-stage-tuma { width: min(100%, 720px); min-height: 0; padding: 0; justify-self: center; overflow: visible; background: transparent; }
.tuma-shot { width: 100%; border-radius: 18px; background: #18304a; box-shadow: 0 24px 54px rgba(24,48,74,.2), 0 4px 12px rgba(24,48,74,.1); }
.product-stage-large.product-stage-tuma { width: min(100%, 760px); min-height: 0; padding: 0; }
.register-ui, .qelyra-ui, .tsumma-shot { width: min(100%, 580px); box-shadow: 0 30px 70px rgba(25,30,27,.16); }
.register-ui { background: #fff; border: 1px solid rgba(90,38,30,.2); }
.register-top, .printer-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; background: #251c1a; color: #fff; font-size: 13px; font-weight: 700; }
.register-body { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 310px; }
.catalog { display: grid; align-content: start; gap: 10px; padding: 24px; background: #faf8f6; }
.catalog span { margin-bottom: 14px; color: #8b817c; font-size: 12px; }
.catalog b { padding: 18px; border: 1px solid #e8e1dd; background: #fff; }
.checkout { padding: 24px 20px; border-left: 1px solid #e8e1dd; }
.checkout small { color: #8b817c; }
.receipt-line, .checkout-total { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #eee9e5; font-size: 13px; }
.checkout-total { margin-top: 60px; border: 0; color: var(--product); }
.tsumma-shot { height: 420px; margin: 0; overflow: hidden; background: #17375c; }
.tsumma-shot img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 34%; }
.product-stage-tsumma:not(.product-stage-large) { width: min(100%, 310px); min-height: 0; padding: 0; justify-self: center; overflow: visible; background: transparent; }
.product-stage-tsumma:not(.product-stage-large) .tsumma-shot { width: 100%; height: auto; overflow: hidden; border-radius: 18px; background: transparent; box-shadow: 0 24px 54px rgba(30,58,95,.2), 0 4px 12px rgba(30,58,95,.1); }
.product-story:hover .product-stage-tsumma:not(.product-stage-large) { box-shadow: none; }
.product-stage-tsumma:not(.product-stage-large) .tsumma-shot img { width: 100%; height: auto; object-fit: contain; object-position: center; }
.product-stage-large.product-stage-tsumma {
  width: min(100%, 390px);
  min-height: 0;
  padding: 0;
  justify-self: center;
  overflow: visible;
  background: transparent;
}
.product-stage-large.product-stage-tsumma::before {
  content: none;
}
.product-stage-large.product-stage-tsumma .tsumma-shot {
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 24px 54px rgba(30,58,95,.2), 0 4px 12px rgba(30,58,95,.1);
}
.product-stage-large.product-stage-tsumma .tsumma-shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.qelyra-ui { background: #fff; border: 1px solid #cbd7e8; }
.printer-head { background: #172c4d; }
.connected { color: #b9d5ff; }
.paper-select { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 20px; }
.paper-select b { display: grid; min-height: 52px; place-items: center; border: 1px solid #dce6e2; }
.paper-select .selected { background: var(--product); color: #fff; border-color: var(--product); }
.print-sheet { width: calc(100% - 40px); margin: 0 20px 24px; padding: 22px; border: 1px dashed #9baac2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.print-sheet > strong { display: block; padding-bottom: 18px; text-align: center; }
.print-sheet span { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #e6eaf1; }

.backend-section { background: #e9edf4; }
.backend-preview { border-top: 1px solid #bfc8d6; }
.backend-row { display: grid; grid-template-columns: 58px .72fr 1.1fr auto; gap: 26px; align-items: center; padding: 24px 12px 24px 0; border-bottom: 1px solid #bfc8d6; transition: padding-left .22s ease, background-color .22s ease; }
.backend-row:hover { padding-left: 14px; background: rgba(255,255,255,.38); }
.backend-number { color: #53647c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.backend-summary p { margin: 0 0 4px; color: #607086; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-transform: uppercase; }
.backend-summary h3 { margin: 0; color: #152b4b; font-size: clamp(25px, 2.6vw, 34px); letter-spacing: -.045em; }
.backend-description { max-width: 520px; margin: 0; color: #556477; }
.backend-link { white-space: nowrap; }
.backend-all { margin-top: 36px; text-align: right; }

.backend-page { background: #f5f3ef; }
.backend-page .site-header:not(.is-scrolled) { background: rgba(245,243,239,.94); }
.backend-hero { padding: clamp(76px, 9vw, 120px) 0; background: #152b4b; color: #fff; }
.backend-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(50px, 9vw, 140px); align-items: end; }
.case-index { margin: 0 0 22px; color: #96b9ea; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.backend-hero h1 { max-width: 740px; margin: 0; font-size: clamp(50px, 7vw, 84px); line-height: .92; letter-spacing: -.07em; }
.backend-hero-grid > div:last-child p { margin: 0 0 30px; color: #c3cfdf; font-size: 19px; }
.backend-hero .text-link { color: #fff; }
.backend-cases { background: #f5f3ef; }
.backend-case { padding: clamp(62px, 8vw, 96px) 0; border-bottom: 1px solid #cbd0d8; scroll-margin-top: 80px; }
.backend-case:first-child { padding-top: 20px; }
.case-heading { display: grid; grid-template-columns: .45fr .75fr .8fr; gap: 34px; align-items: end; }
.case-heading .case-index { color: #5d7190; }
.case-heading h2 { margin: 0; color: #152b4b; font-size: clamp(44px, 6vw, 70px); line-height: .93; letter-spacing: -.065em; }
.case-heading > p:last-child { margin: 0; color: #596679; font-size: 18px; }
.case-stack { display: flex; flex-wrap: wrap; gap: 0; margin: 36px 0 52px; border-top: 1px solid #bfc6d0; border-bottom: 1px solid #bfc6d0; }
.case-stack span { padding: 12px 20px 12px 0; margin-right: 20px; color: #3d4d64; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.case-features { margin-bottom: 68px; }
.case-section-heading { display: grid; grid-template-columns: .45fr 1.55fr; gap: 34px; align-items: baseline; margin-bottom: 22px; }
.case-section-heading h3 { margin: 0; color: #152b4b; font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -.045em; }
.backend-feature-list { border-top: 1px solid #aeb8c5; }
.backend-feature { display: grid; grid-template-columns: 54px .72fr 1.28fr; gap: 24px; align-items: start; padding: 21px 10px 21px 0; border-bottom: 1px solid #aeb8c5; transition: padding-left .2s ease, background-color .2s ease; }
.backend-feature:hover { padding-left: 10px; background: rgba(255,255,255,.42); }
.backend-feature > span { color: #718198; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.backend-feature h3 { margin: 0; color: #203956; font-size: 20px; letter-spacing: -.025em; }
.backend-feature p { max-width: 640px; margin: 0; color: #5d697a; }
.case-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 9vw, 130px); }
.case-domains > div { padding: 13px 0; border-bottom: 1px solid #ccd1d8; color: #273c59; font-size: 18px; }
.case-highlights ul { margin: 0; padding: 0; list-style: none; counter-reset: highlights; }
.case-highlights li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid #ccd1d8; color: #273c59; font-size: 18px; counter-increment: highlights; }
.case-highlights li::before { content: "0" counter(highlights); color: #6d7d93; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.case-flow { margin-top: 64px; }
.architecture-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; padding: 0; border-top: 1px solid #9eabbc; border-bottom: 1px solid #9eabbc; list-style: none; }
.architecture-flow li { position: relative; min-height: 132px; padding: 18px; border-right: 1px solid #9eabbc; transition: background-color .2s ease; }
.architecture-flow li:hover { background: rgba(255,255,255,.5); }
.architecture-flow li:last-child { border-right: 0; }
.architecture-flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -5px; z-index: 1; width: 9px; height: 9px; border-top: 1px solid #445a78; border-right: 1px solid #445a78; transform: rotate(45deg); background: #f5f3ef; }
.architecture-flow span { display: block; margin-bottom: 38px; color: #728198; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.architecture-flow strong { color: #152b4b; font-size: 16px; }
.case-workflows { display: grid; grid-template-columns: .45fr 1.55fr; gap: clamp(40px, 7vw, 88px); margin-top: 68px; }
.workflow-intro > p:last-child { max-width: 340px; margin: 0; color: #667286; font-size: 14px; }
.workflow-list { border-top: 1px solid #aeb8c5; }
.workflow-item { padding: 24px 10px 28px 0; border-bottom: 1px solid #aeb8c5; transition: padding-left .22s ease, background-color .22s ease; }
.workflow-item:hover { padding-left: 12px; background: rgba(255,255,255,.42); }
.workflow-item header { display: grid; grid-template-columns: 74px .65fr 1.35fr; gap: 22px; align-items: start; }
.workflow-item header > span { color: #718198; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-transform: uppercase; }
.workflow-item h3 { margin: 0; color: #152b4b; font-size: 20px; letter-spacing: -.025em; }
.workflow-item header p { margin: 0; color: #5d697a; }
.workflow-item ol { display: flex; align-items: center; gap: 0; margin: 28px 0 0 96px; padding: 0; list-style: none; counter-reset: workflow-step; }
.workflow-item li { position: relative; flex: 1; padding: 10px 20px 10px 0; color: #334861; font-size: 12px; counter-increment: workflow-step; }
.workflow-item li::before { content: counter(workflow-step); display: inline-grid; width: 24px; height: 24px; margin-right: 8px; place-items: center; border: 1px solid #8090a5; border-radius: 50%; color: #53657d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.workflow-item li:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: 8px; width: 18px; border-top: 1px solid #9aa7b7; }

.services { background: var(--paper); }
.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 64px .8fr 1.2fr; gap: 28px; padding: 24px 10px 24px 0; border-bottom: 1px solid var(--line); transition: padding-left .2s ease; }
.service-item:hover { padding-left: 12px; }
.service-item > span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.service-item h3 { margin: 0; font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -.035em; }
.service-item p { max-width: 560px; margin: 0; color: var(--muted); }
.capabilities { background: var(--dark); color: #fff; }
.capabilities .section-index, .capabilities .section-intro p { color: #9aa69f; }
.capability-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.capability-layout > p { max-width: 420px; margin: 0; color: #aab5ae; font-size: 20px; }
.capability-groups { border-top: 1px solid #39433e; }
.capability-group { display: grid; grid-template-columns: .6fr 1.4fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid #39433e; }
.capability-group h3 { margin: 0; font-size: 16px; }
.capability-group p { margin: 0; color: #aab5ae; }
.process-line { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-step { min-height: 210px; padding: 22px 18px; border-right: 1px solid var(--line); transition: background-color .2s ease, transform .2s ease; }
.process-step:hover { z-index: 1; background: #fff; transform: translateY(-4px); }
.process-step:last-child { border-right: 0; }
.process-step span { display: block; margin-bottom: 58px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.process-step h3 { margin: 0 0 10px; font-size: 20px; }
.process-step p { margin: 0; color: var(--muted); font-size: 14px; }
.about-section { background: #e8ebe4; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 9vw, 130px); }
.about-grid h2 { margin: 0; font-size: clamp(42px, 6vw, 70px); line-height: .96; letter-spacing: -.065em; }
.about-copy { padding-top: 12px; }
.about-copy p { margin: 0 0 24px; color: #4f5b54; font-size: 19px; }
.about-person { display: grid; gap: 7px; margin-top: 44px; padding-top: 17px; border-top: 1px solid #b8c0b7; }
.about-person span { color: #667169; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.about-person strong { color: #172c4d; font-size: clamp(23px, 2.7vw, 34px); letter-spacing: -.04em; }
.career-block { display: grid; grid-template-columns: .58fr 1.42fr; gap: 34px; margin-top: clamp(64px, 8vw, 104px); padding-top: 24px; border-top: 1px solid #b8c0b7; }
.career-heading h3 { max-width: 360px; margin: 0; color: #172c4d; font-size: clamp(28px, 3.4vw, 42px); line-height: 1; letter-spacing: -.045em; }
.career-timeline { border-top: 1px solid #b8c0b7; }
.career-timeline article { display: grid; grid-template-columns: minmax(120px, .48fr) 1.52fr; gap: 24px; align-items: start; padding: 21px 0; border-bottom: 1px solid #b8c0b7; }
.career-period { color: #667169; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.career-timeline h4 { margin: 0 0 5px; color: #172c4d; font-size: 21px; letter-spacing: -.025em; }
.career-timeline p { margin: 0; color: #566159; }
.contact-section { padding: clamp(90px, 12vw, 170px) 0; background: var(--accent); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: end; }
.contact-grid h2 { max-width: 760px; margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: .94; letter-spacing: -.07em; }
.contact-detail p { margin: 0 0 24px; color: #c5d9d3; font-size: 18px; }
.contact-email { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid #8cb6aa; font-size: clamp(16px, 2vw, 22px); font-weight: 750; overflow-wrap: anywhere; }
.site-footer { padding: 24px 0; background: #0a0d0b; color: #7f8982; }
.footer-meta { font-size: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-meta .footer-links { display: inline-flex; gap: 18px; }
.footer-meta .footer-links a { color: #aeb8af; border-bottom: 1px solid transparent; }
.footer-meta .footer-links a:hover { color: #fff; border-color: currentColor; }

.product-page { background: #fff; }
.product-page[data-product="tuma"] { --ink: #18304a; --muted: #5d7187; --line: #dce7ed; font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; }
.product-page[data-product="tuma"] .product-hero { background: #eaf1f6; }
.product-page[data-product="tuma"] .product-category { color: #c73543; }
.product-page[data-product="tuma"] .feature-section { background: #f3f7fa; }
.product-page[data-product="tuma"] .product-next { background: #18304a; }
.product-page[data-product="tuma"] .feature-row > span { color: #c73543; }
.product-hero { padding: clamp(62px, 8vw, 100px) 0; background: var(--product-soft); }
.product-hero-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(45px, 7vw, 100px); align-items: center; }
.back-link { display: inline-block; margin-bottom: 60px; color: #555f58; font-size: 14px; border-bottom: 1px solid currentColor; }
.product-category { color: var(--product); font-weight: 750; }
.product-hero h1 { margin: 0; font-size: clamp(64px, 8vw, 104px); line-height: .87; letter-spacing: -.075em; }
.product-tagline { max-width: 520px; margin: 30px 0 0; color: #4e5851; font-size: clamp(19px, 2vw, 24px); }
.product-actions { margin-top: 34px; }
.product-button { background: var(--product); border-color: var(--product); color: #fff; }
.portfolio-index { color: #fff; background: #172c4d; }
.portfolio-index-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 130px); align-items: end; }
.portfolio-index-copy .section-index { color: #9db9df; }
.portfolio-index-copy h2 { margin: 0; font-size: clamp(38px, 5.4vw, 68px); line-height: .98; letter-spacing: -.06em; }
.portfolio-index-copy > p:last-child { max-width: 480px; margin: 24px 0 0; color: #bac8dc; font-size: 18px; }
.portfolio-tracks { border-top: 1px solid #526681; }
.portfolio-tracks a { display: grid; grid-template-columns: 54px .8fr 1.2fr; gap: 20px; align-items: center; min-height: 112px; padding: 20px 4px; border-bottom: 1px solid #526681; transition: padding-left .2s ease, background-color .2s ease; }
.portfolio-tracks a:hover { padding-left: 14px; background: rgba(255,255,255,.05); }
.portfolio-tracks span { color: #91acd1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.portfolio-tracks strong { font-size: clamp(21px, 2.2vw, 29px); letter-spacing: -.035em; }
.portfolio-tracks small { color: #aebdd1; font-size: 14px; line-height: 1.5; }
.portfolio-category { scroll-margin-top: 66px; }
.portfolio-category-label { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 54px; padding-bottom: 16px; border-bottom: 3px solid #a9362c; }
.portfolio-category-label span { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-category-label strong { font-size: clamp(24px, 3vw, 38px); letter-spacing: -.045em; }
.portfolio-category-label-dark { border-bottom-color: #315da8; }
.portfolio-category-label-dark strong { color: #152b4b; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 110px); }
.overview-lead { margin: 0 0 46px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; letter-spacing: -.02em; }
.product-facts { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.product-facts span { color: var(--muted); }
.feature-section { background: var(--paper); }
.feature-list { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 64px .7fr 1.3fr; gap: 26px; padding: 27px 10px 27px 0; border-bottom: 1px solid var(--line); transition: padding-left .2s ease, background-color .2s ease; }
.feature-row:hover { padding-left: 10px; background: rgba(255,255,255,.46); }
.feature-row > span { color: var(--product); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-row h3 { margin: 0; font-size: 26px; }
.feature-row p { max-width: 600px; margin: 0; color: var(--muted); }
.screenshot-section { background: #fff; }
.gallery-heading { display: grid; grid-template-columns: .6fr 1.4fr; gap: 40px; margin-bottom: 54px; }
.gallery-heading h2 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.06em; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.screenshot-item { grid-column: span 5; margin: 0; }
.screenshot-item:nth-child(even) { grid-column: 7 / span 6; margin-top: 120px; }
.screenshot-item img { display: block; width: 100%; height: auto; background: var(--product-soft); }
.screenshot-item figcaption { padding-top: 12px; color: var(--muted); font-size: 14px; }
.product-next { background: var(--dark); color: #fff; }
.next-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.next-grid p { max-width: 420px; color: #aab5ae; font-size: 19px; }
.missing { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.legal { min-height: 70vh; padding: 100px 0; }
.legal-inner { max-width: 760px; }
.legal h1 { margin: 0 0 30px; font-size: clamp(48px, 7vw, 80px); line-height: 1; letter-spacing: -.06em; }
.legal h2 { margin-top: 44px; font-size: 24px; }
.legal p { color: var(--muted); }
.legal p .button { margin: 4px 0 12px; color: var(--ink); }
.legal p .button:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; }
  .hero-grid, .section-intro, .capability-layout, .about-grid, .contact-grid, .product-hero-grid, .overview-grid, .next-grid, .portfolio-index-grid, .career-block { grid-template-columns: 1fr; }
  .portfolio-index-grid { gap: 54px; }
  .hero-copy { max-width: 650px; }
  .hero-foot { margin-top: 90px; }
  .product-story, .product-story:nth-child(even) { grid-template-columns: 1fr; min-height: auto; padding: 70px 0; }
  .product-story:nth-child(even) .product-copy { order: 0; }
  .product-stage { min-height: 460px; }
  .service-item, .feature-row { grid-template-columns: 55px 1fr; }
  .service-item p, .feature-row p { grid-column: 2; }
  .process-line { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-bottom: 1px solid var(--line); }
  .process-step:nth-child(2n) { border-right: 0; }
  .process-step:last-child { grid-column: 1 / -1; min-height: 190px; }
  .product-hero-grid > :first-child { order: 1; }
  .backend-row { grid-template-columns: 48px 1fr; }
  .backend-description, .backend-link { grid-column: 2; }
  .backend-hero-grid, .case-heading, .case-body, .case-workflows { grid-template-columns: 1fr; }
  .case-section-heading { grid-template-columns: 1fr; gap: 8px; }
  .backend-feature { grid-template-columns: 44px 1fr; }
  .backend-feature p { grid-column: 2; }
  .case-heading { align-items: start; }
  .architecture-flow { grid-template-columns: repeat(2, 1fr); }
  .architecture-flow li:nth-child(2) { border-right: 0; }
  .workflow-item header { grid-template-columns: 60px 1fr; }
  .workflow-item header p { grid-column: 2; }
  .workflow-item ol { margin-left: 82px; flex-wrap: wrap; }
  .workflow-item li { flex: 0 0 50%; }
  .gallery-heading { grid-template-columns: 1fr; }
  .back-link { margin-bottom: 35px; }
}

@media (max-width: 600px) {
  :root { --side: 18px; }
  .shell { width: calc(100% - 36px); }
  .hero { padding-top: 70px; }
  .hero h1 { font-size: clamp(46px, 14vw, 62px); overflow-wrap: break-word; }
  .hero-foot { display: grid; margin-top: 70px; }
  .section-intro { margin-bottom: 48px; }
  .portfolio-tracks a { grid-template-columns: 38px 1fr; gap: 12px; min-height: 0; padding: 22px 0; }
  .portfolio-tracks small { grid-column: 2; }
  .portfolio-category-label { display: grid; gap: 8px; margin-bottom: 38px; }
  .career-timeline article { grid-template-columns: 1fr; gap: 8px; }
  .product-story { gap: 28px; padding: 54px 0; }
  .product-copy h3 { font-size: 52px; }
  .product-stage, .product-stage-large { min-height: 360px; padding: 18px; }
  .product-stage-bukaku, .product-stage-large.product-stage-bukaku { min-height: 0; padding: 0; }
  .product-stage-tuma, .product-stage-large.product-stage-tuma { min-height: 0; padding: 0; }
  .register-body { grid-template-columns: 1fr; }
  .catalog { display: none; }
  .checkout { border-left: 0; }
  .paper-select { gap: 4px; padding: 14px; }
  .paper-select b { min-height: 42px; font-size: 12px; }
  .print-sheet { width: calc(100% - 28px); margin: 0 14px 16px; padding: 15px; }
  .tsumma-shot { height: 390px; }
  .product-stage-tsumma:not(.product-stage-large) { width: min(100%, 280px); min-height: 0; padding: 0; }
  .product-stage-tsumma:not(.product-stage-large) .tsumma-shot { width: 100%; height: auto; }
  .product-stage-large.product-stage-tsumma { width: min(100%, 350px); min-height: 0; padding: 0; }
  .product-stage-large.product-stage-tsumma .tsumma-shot { width: 100%; height: auto; max-width: none; margin: 0; }
  .service-item, .feature-row { grid-template-columns: 40px 1fr; gap: 18px; }
  .capability-group { grid-template-columns: 1fr; gap: 8px; }
  .process-line { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(2n), .process-step:last-child { grid-column: auto; min-height: 190px; border-right: 0; }
  .process-step span { margin-bottom: 50px; }
  .contact-grid h2 { font-size: 46px; }
  .product-hero h1 { font-size: 62px; }
  .product-facts { grid-template-columns: 90px 1fr; }
  .backend-row { grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
  .backend-description { font-size: 14px; }
  .backend-all { text-align: left; }
  .backend-hero { padding-top: 68px; }
  .backend-hero h1 { font-size: 48px; }
  .case-heading h2 { font-size: 48px; }
  .case-stack { margin-bottom: 50px; }
  .case-features { margin-bottom: 54px; }
  .backend-feature { grid-template-columns: 30px 1fr; gap: 14px; padding: 18px 0; }
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-flow li, .architecture-flow li:nth-child(2) { min-height: 120px; border-right: 0; border-bottom: 1px solid #9eabbc; }
  .architecture-flow li:last-child { border-bottom: 0; }
  .architecture-flow li:not(:last-child)::after { top: auto; right: 22px; bottom: -5px; transform: rotate(135deg); }
  .architecture-flow span { margin-bottom: 30px; }
  .case-workflows { margin-top: 64px; }
  .workflow-item header { grid-template-columns: 1fr; gap: 8px; }
  .workflow-item header p { grid-column: auto; }
  .workflow-item ol { display: grid; margin-left: 0; }
  .workflow-item li { padding: 8px 0; }
  .workflow-item li:not(:last-child)::after { top: auto; right: auto; bottom: -2px; left: 12px; width: 1px; height: 8px; border-top: 0; border-left: 1px solid #9aa7b7; }
  .screenshot-gallery { grid-template-columns: 1fr; gap: 36px; }
  .screenshot-item, .screenshot-item:nth-child(even) { grid-column: auto; margin-top: 0; }
  .product-stage-large.product-stage-tsumma { width: min(100%, 350px); min-height: 0; padding: 0; }
}

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