:root {
  --bg: #f5f3ee; --surface: #ffffff; --fg: #1b1f1c; --muted: #5b625d; --line: #ddd8cc;
  --green: #1d4a36; --green-2: #2c6a4e; --yellow: #f2b705; --on-green: #f5f3ee; --on-yellow: #1b1f1c;
  --stage-a: #e4e4e0; --stage-b: #c6c8c2; --ph-bg: #fff5d1; --ph-fg: #6b5200; --ph-line: #e2c25a;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121614; --surface: #1a1f1c; --fg: #ecebe6; --muted: #a3aaa5; --line: #2c332f;
  --green: #234f3c; --green-2: #2f6a50; --on-green: #ecebe6; --ph-bg: #3a3112; --ph-fg: #f3d77a; --ph-line: #7a6420; color-scheme: dark } }
:root[data-theme="dark"] { --bg: #121614; --surface: #1a1f1c; --fg: #ecebe6; --muted: #a3aaa5; --line: #2c332f;
  --green: #234f3c; --green-2: #2f6a50; --on-green: #ecebe6; --ph-bg: #3a3112; --ph-fg: #f3d77a; --ph-line: #7a6420; color-scheme: dark }
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--body); overflow-x: hidden }
a { color: inherit }
img { max-width: 100% }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 16px }
.ph { background: var(--ph-bg); color: var(--ph-fg); border: 1px dashed var(--ph-line); border-radius: 4px; padding: 0 5px; white-space: nowrap; font-weight: 500 }
.on-dark .ph { background: rgba(242,183,5,.16); color: #ffe08a; border-color: rgba(242,183,5,.55) }

/* top bar + header */
.topbar { background: var(--green); color: var(--on-green); font-size: 14px }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 7px; align-items: center }
.topbar a { text-decoration: none }
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10 }
header.site .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0 }
.brand img { width: 42px; height: 42px; flex: none }
.brand b { font: 700 25px/0.9 var(--display); letter-spacing: .04em; text-transform: uppercase; display: block }
.brand small { font: 500 12px/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--muted) }
nav.main { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap }
nav.main a { text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 500 }
nav.main a:hover, nav.main a[aria-current] { background: var(--bg) }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 6px; border: 0; cursor: pointer;
  font: 700 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none }
.btn-y { background: var(--yellow); color: var(--on-yellow) }
.btn-g { background: var(--green); color: var(--on-green) }
.btn-o { background: transparent; color: inherit; border: 1.5px solid currentColor }
.btn:focus-visible, nav.main a:focus-visible, .stage:focus-visible, .chip:focus-visible, .card a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px }
.btn[disabled] { opacity: .5; cursor: default }
@media (max-width: 760px) { nav.main { display: none } header.site .wrap { min-height: 60px } .brand b { font-size: 22px } }

/* hero */
.hero { background: var(--green); color: var(--on-green) }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; padding-block: 36px 40px }
.hero h1 { font: 700 clamp(38px, 6vw, 64px)/0.95 var(--display); margin: 0 0 14px; text-wrap: balance; letter-spacing: .005em }
.hero h1 em { font-style: normal; color: var(--yellow) }
.hero p { margin: 0 0 22px; max-width: 46ch; opacity: .92 }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 24px 28px } }

/* turnable stage */
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  background: radial-gradient(120% 90% at 50% 35%, var(--stage-a), var(--stage-b)) }
.stage:active { cursor: grabbing }
.stage img.tt, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.stage img.tt { transform-origin: 50% 55%; will-change: transform }
.stage video { transition: opacity .45s ease; background: #000 }
.stage .fade { opacity: 0; pointer-events: none }
.stage .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--yellow); transition: width .2s, opacity .4s }
.hint-chip { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 8px; align-items: center; background: rgba(20,24,22,.72); color: #fff;
  font-size: 13px; padding: 6px 11px; border-radius: 999px; transition: opacity .4s; pointer-events: none }
.hint-chip.gone { opacity: 0 }
.hint-chip svg { width: 18px; height: 18px }

/* sections */
section { padding-block: 44px }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px }
h2 { font: 700 clamp(30px, 4.4vw, 42px)/1 var(--display); margin: 0; letter-spacing: .01em }
.lead { color: var(--muted); margin: 6px 0 0; max-width: 60ch }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 500 15px/1 var(--body); cursor: pointer }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green) }

/* category tiles */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 6px; text-decoration: none }
.cat b { font: 700 24px/1 var(--display) }
.cat span { color: var(--muted); font-size: 14px }
.cat .n { color: var(--green-2); font-weight: 600; font-size: 14px }
@media (max-width: 760px) { .cats { grid-template-columns: 1fr } }

/* machine cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr }
.card[hidden] { display: none }
.card .pic { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 90% at 50% 35%, var(--stage-a), var(--stage-b)); overflow: hidden }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s }
.card:hover .pic img { transform: scale(1.04) }
.badge { position: absolute; left: 10px; top: 10px; background: var(--yellow); color: var(--on-yellow); font: 700 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px }
.badge.r360 { left: auto; right: 10px; background: rgba(20,24,22,.78); color: #fff }
.card .body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start }
.card .cat-l { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em }
.card h3 { font: 700 26px/1 var(--display); margin: 0 }
.card h3 a { text-decoration: none }
.card h3 a::after { content: ""; position: absolute; inset: 0 }
.card { position: relative }
.card ul.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px }
.card ul.specs li { font-size: 13px; background: var(--bg); border-radius: 4px; padding: 3px 8px }
.price { font: 700 30px/1 var(--display); color: var(--green-2); font-variant-numeric: tabular-nums }
.price small { font: 400 13px/1 var(--body); color: var(--muted); margin-left: 6px }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .price { color: #7fc8a2 } }

/* sell / video in */
.sell { background: var(--surface); border-block: 1px solid var(--line) }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; margin-top: 8px }
.step { border-left: 4px solid var(--yellow); padding: 4px 0 4px 16px }
.step b { display: block; font: 700 22px/1.05 var(--display); margin-bottom: 4px }
.step b::before { counter-increment: s; content: counter(s) ". " }
.step span { color: var(--muted); font-size: 15px }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr } }

/* about + contact */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px }
@media (max-width: 760px) { .two { grid-template-columns: 1fr } }
.usp { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px }
.usp li { display: flex; gap: 10px; align-items: start }
.usp li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 2px; background: var(--yellow) }
.contact-card { background: var(--green); color: var(--on-green); border-radius: 12px; padding: 22px }
.contact-card h3 { font: 700 28px/1 var(--display); margin: 0 0 12px }
.contact-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0 0 18px }
.contact-card dt { opacity: .75 }
.contact-card dd { margin: 0; min-width: 0; overflow-wrap: anywhere }

/* detail page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px }
.crumbs a { color: inherit }
.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "main panel" "desc panel"; gap: 22px 26px; padding-block: 14px 40px; align-items: start }
.detail .d-main { grid-area: main; min-width: 0 } .detail .desc { grid-area: desc } .detail .panel { grid-area: panel }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "panel" "desc" } }
.detail > * { min-width: 0 }
.btn { flex-wrap: wrap; justify-content: center; text-align: center; padding-block: 8px; row-gap: 4px }
.btn .ph { white-space: normal }
.detail h1 { font: 700 clamp(34px, 5vw, 50px)/0.95 var(--display); margin: 6px 0 10px }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center }
.tools .t-hint { color: var(--muted); font-size: 14px }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 14px }
.panel .price { font-size: 40px }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px }
table.spec th, table.spec td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top }
table.spec th { color: var(--muted); font-weight: 400; width: 44% }
.panel .acts { display: grid; gap: 8px }
.panel .acts .btn { justify-content: center }
.desc { max-width: 70ch }

footer.site { background: #142a20; color: #e6e9e4; padding-block: 34px 26px; font-size: 15px }
footer.site .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px }
footer.site h4 { font: 700 18px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; color: var(--yellow) }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; font-size: 13px; opacity: .8; display: flex; flex-wrap: wrap; gap: 6px 18px }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr } }
@media (prefers-reduced-motion: reduce) { .card .pic img, .stage video { transition: none } }

/* v2: machines first — tiles (picture → hover = at work → hold = 360°) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
section.first { padding-top: 22px }
.h1s { font: 700 clamp(30px, 4.4vw, 42px)/1 var(--display); margin: 0 }
.hint-touch { display: none }
@media (hover: none) { .hint-desk { display: none } .hint-touch { display: inline } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px }
@media (max-width: 760px) { .tiles { grid-template-columns: minmax(0, 1fr); gap: 18px } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.tile[hidden] { display: none }
.tile-media { position: relative; aspect-ratio: 16 / 9; background: #1b1f1c; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none }
.tile-media > img.tile-img, .tile-media > video, .tile-media > .stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 }
.tile-media > video, .tile-media > .stage { opacity: 0; transition: opacity .3s; pointer-events: none }
.tile[data-mode="act"] .tile-media > video { opacity: 1 }
.tile[data-mode="rond"] .tile-media > .stage { opacity: 1; pointer-events: auto; cursor: grab }
.tile[data-mode="rond"] .tile-media { cursor: grab }
.tile-hint { position: absolute; left: 12px; bottom: 12px; right: 12px; pointer-events: none }
.tile-hint b { display: none; width: fit-content; max-width: 100%; background: rgba(20,24,22,.74); color: #fff; font: 500 13px/1.25 var(--body); padding: 6px 11px; border-radius: 999px }
.tile[data-mode="pic"] .h-pic, .tile[data-mode="act"] .h-act, .tile[data-mode="rond"] .h-rond { display: block }
.hold-ring { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); opacity: 0; pointer-events: none }
.tile.holding .hold-ring { opacity: 1; border-top-color: var(--yellow); animation: hold .38s linear forwards }
@keyframes hold { from { transform: rotate(0) } to { transform: rotate(300deg) } }
.tile-back { position: absolute; right: 10px; top: 10px; display: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer }
.tile[data-mode="rond"] .tile-back { display: block }
.tile-cap { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 14px 18px 16px; flex-wrap: wrap }
.tile-cap .cat-l { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em }
.tile-cap h3 { font: 700 28px/1 var(--display); margin: 2px 0 8px }
.tile-cap h3 a { text-decoration: none }
.tile-cap ul.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px }
.tile-cap ul.specs li { font-size: 13px; background: var(--bg); border-radius: 4px; padding: 3px 8px }

/* machine page: in action | 360 */
.modes { display: flex; gap: 6px; margin-bottom: 10px }
.mode { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 700 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer }
.mode[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--on-green) }
.mode:focus-visible, .tile-back:focus-visible, .act-play:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px }
.act { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #1b1f1c }
.act video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block }
.act-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--on-yellow); font: 700 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer }
.act-play[hidden] { display: none }
.pane .t-hint { color: var(--muted); font-size: 14px; margin: 10px 0 0 }
