/* Tact-VC product page, on top of styles.css. Tokens only. */
.t-hero h1 { font-size: clamp(26px, 8.8vw, 120px); } /* longest line ("ein Menschenrecht.") must stay on one line down to phones */
@media (min-width: 961px) { .t-hero { grid-template-rows: repeat(4, auto) 1fr auto; } } /* the tall figure's height goes below the buttons, not between the ledes */
@media (min-width: 961px) { .t-hero h1 { font-size: min(7vw, 104px); } .t-hero h1 .ln:nth-child(-n+2) { display: inline-block; } .t-hero h1 .ln:first-child { margin-right: .25em; } } /* two lines on desktop, so the figure sits above the fold */
.line-fig { min-width: 0; }
.line-fig svg { height: auto; }
.line-fig .draw { fill: none; stroke: var(--ink); stroke-width: var(--stroke-figure); }
.line-fig .wire { stroke-width: var(--stroke); }
.js .line-fig .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--dur-draw) var(--ease-out); }
.line-fig .pc-b .draw { transition-delay: 200ms; } .line-fig .wire { transition-delay: 500ms; }
.js .in .line-fig .draw { stroke-dashoffset: 0; }
.line-fig .lbl, .line-fig .cap { fill: var(--ink); font: 500 11px var(--font-mono); letter-spacing: .08em; text-anchor: middle; dominant-baseline: middle; }
.line-fig .lock rect, .line-fig .packets rect, .line-fig .wave rect { fill: var(--ink); }
.line-fig .lock path { fill: none; stroke: var(--ink); stroke-width: var(--stroke-figure); }
.line-fig .lock { transform-origin: 260px 160px; transition: transform var(--dur-quick) var(--ease-press) 800ms, visibility 0s 800ms; }
.js .line-fig .lock { transform: scale(1.4) rotate(-10deg); visibility: hidden; }
.js .in .line-fig .lock { transform: none; visibility: visible; }

.t-sub { margin-top: var(--stack-lg); }

/* Drawn figures share one language. */
.detour-fig rect, .scan-fig rect { fill: var(--paper); stroke: var(--ink); stroke-width: var(--stroke-figure); }
.detour-fig .lbl, .scan-fig .lbl { fill: var(--ink); font: 500 11px var(--font-mono); letter-spacing: .08em; text-anchor: middle; dominant-baseline: middle; }
.detour-fig .eye, .scan-fig .eye { fill: var(--paper); stroke: var(--ink); stroke-width: var(--stroke-figure); }
.detour-fig .eye-p, .detour-fig .dot, .scan-fig .eye-p, .scan-fig .dot { fill: var(--ink); }
.detour-fig .log text { fill: var(--ink); font: 500 11px var(--font-mono); letter-spacing: .04em; }
.detour-fig .x { stroke: var(--ink); stroke-width: var(--stroke-figure); stroke-linecap: square; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.detour-fig .via { fill: none; stroke: var(--ink); stroke-width: var(--stroke-figure); }
.detour-fig .direct { fill: none; stroke: var(--ink); stroke-width: var(--stroke-figure); stroke-dasharray: 1; stroke-dashoffset: 1; }
.detour-fig .srv.gone .lbl { text-decoration: line-through; }
.scan-fig .beam { fill: url(#dith); }
.scan-fig .direct { fill: none; stroke: var(--ink); stroke-width: var(--stroke-figure); }
.scan-fig .q { fill: var(--ink); font: 600 20px var(--font-mono); text-anchor: middle; visibility: hidden; }
.scan-fig .slot.hit text { text-decoration: line-through; }
#dith rect { fill: var(--ink); }

/* 02 Seal */
.seal { display: grid; grid-template-columns: 1fr 1.3fr 1fr; margin-top: var(--stack-2xl); }
.seal > * { padding: var(--inset-md); display: flex; flex-direction: column; gap: var(--stack-sm); min-width: 0; }
.seal > * + * { border-left: var(--stroke) solid var(--ink); }
.seal .field input { padding-inline: var(--space-12); }
.seal-wire { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.seal-wire output { font-size: 14px; line-height: 1.5; word-break: break-all; min-height: 3em; }
.seal-run { position: absolute; left: 0; bottom: 0; height: var(--space-4); width: 18%; background: var(--paper); animation: run 1.6s linear infinite; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(560%); } }
.seal-out output { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; word-break: break-word; }
.seal-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--stack-2xl); border-block: var(--stroke) solid var(--ink); }
.seal-notes > * { padding: var(--inset-md); min-width: 0; }
.seal-notes > * + * { border-left: var(--stroke) solid var(--ink); }
.seal-notes h3 { margin-bottom: var(--stack-sm); }
.fp { display: grid; grid-template-columns: auto 1fr; gap: var(--space-8) var(--inline-md); margin-top: var(--stack-md); align-items: center; }
.fp b { font-weight: 600; font-size: 14px; letter-spacing: .1em; padding: var(--space-4) var(--space-8); border: var(--stroke) solid var(--ink); justify-self: start; background: var(--ink); color: var(--paper); }

/* 03 Sign-up */
.signup .sf { display: grid; grid-template-columns: var(--space-96) 1fr; gap: var(--space-12); align-items: center; padding: var(--space-12) var(--inline-md); max-width: none; margin: 0; position: relative; }
.signup .sf + .sf { background: var(--rule-dot) top / 100% 1px no-repeat; }
.signup .sf:not(.keep)::after { content: ""; position: absolute; left: var(--space-12); right: var(--space-12); top: 50%; height: var(--stroke); background: var(--ink); transform-origin: 0 50%; transition: transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--dur-reveal) + var(--i) * 300ms); }
.js .signup .sf:not(.keep)::after { transform: scaleX(0); }
.js .signup.in .sf:not(.keep)::after { transform: none; }
.signup .sf.keep { background: var(--ink); color: var(--paper); }

/* 04 Tour */
.tour { margin-top: var(--stack-2xl); }
.tour [role="tab"] { display: inline-flex; align-items: center; gap: var(--space-12); font: 500 11px/1.45 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.tour-stage { display: grid; grid-template-columns: 1fr 1.6fr; border-top: 0; }
.tabs .tour-stage { padding-block: 0; } /* the divider runs the full frame height */
.tour-text { padding: var(--inset-lg); display: flex; flex-direction: column; gap: var(--stack-md); border-right: var(--stroke) solid var(--ink); min-width: 0; }
.tour-text p + p { margin-top: 0; }
.tour-text h3 { max-width: none; }
.tour-text [data-tour-p] { white-space: pre-line; }
.tour-shot { min-width: 0; }

/* 05 Sound */
.scope canvas { display: block; width: 100%; height: auto; }
.knobs { display: flex; flex-direction: column; gap: var(--stack-md); margin-top: var(--stack-xl); }
.knob { display: flex; flex-direction: column; gap: var(--space-8); }
.sound-play { align-self: flex-start; }
.knob .seg { align-self: flex-start; }

/* 06 Mesh */
.mesh svg { display: block; }
.mesh .ln { stroke: var(--ink); stroke-width: var(--stroke); fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--dur-draw) var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mesh .pp { fill: var(--ink); }
.mesh .nd rect { fill: var(--paper); stroke: var(--ink); stroke-width: var(--stroke-figure); }
.mesh .nd text { fill: var(--ink); font: 500 11px var(--font-mono); letter-spacing: .08em; text-anchor: middle; dominant-baseline: middle; }
.mesh .nd { animation: pop var(--dur-quick) var(--ease-press) both; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { transform: scale(1.4); } to { transform: none; } }
.mesh-ctl { align-items: center; }
.mesh-ctl .icon-btn[disabled] { border-style: dashed; cursor: not-allowed; }
.mesh-ctl .icon-btn[disabled]::after { display: none; }

.honest .n { font-size: clamp(56px, 7vw, 96px); }
.t-get .facts { margin-top: var(--stack-lg); }

@media (max-width: 1100px) {
  .seal { grid-template-columns: 1fr; }
  .seal > * + * { border-left: 0; border-top: var(--stroke) solid var(--ink); }
}
@media (max-width: 360px) {
  .seal .field input { font-size: 14px; }
}
@media (max-width: 960px) {
  .line-fig { max-width: 520px; width: 100%; justify-self: center; }
  .seal-notes, .tour-stage { grid-template-columns: 1fr; }
  .seal-notes > * + * { border-left: 0; border-top: var(--stroke) solid var(--ink); }
  .tour-text { border-right: 0; border-bottom: var(--stroke) solid var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .seal-run { display: none; }
  .mesh .ln, .detour-fig .direct { stroke-dashoffset: 0; }
}

.signup .sf > :last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .tour [role="tablist"] { mask-image: linear-gradient(to right, #000 85%, transparent); } }
.pic[data-crop] { -webkit-mask: var(--src) center / contain no-repeat, linear-gradient(90deg, #000 89%, transparent 89%); -webkit-mask-composite: source-in; mask: var(--src) center / contain no-repeat, linear-gradient(90deg, #000 89%, transparent 89%); mask-composite: intersect; } /* 10: the next friend card stays outside the frame */
/* 10 as the closing Band: the section swaps ink and paper, so everything inside inverts with it */
body { --band-ink: var(--paper); --band-paper: var(--ink); }
.t-get.band { --ink: var(--band-ink); --paper: var(--band-paper); --rule-dot: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 2px); background: var(--paper); color: var(--ink); }
.t-get.band .btn { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.t-get.band .btn.primary { background: var(--ink); color: var(--paper); }
