/* Page components, copied from the locked prototype (docs/design/prototype/template.html). The same rules are the
   Elementor global classes (scripts/kit-tokens.py reads them from here), so a component built in Elementor and one
   printed by the theme render alike. */

/* Hero (D10 T01 §12): the brand-red field with a dot-matrix texture and a warm glow rising from the bottom edge. */
.hero-wrap { padding: 8px; }
.hero { position: relative; overflow: hidden; border-radius: 14px; background: radial-gradient(120% 90% at 50% 40%, var(--field) 55%, var(--field-edge) 100%); color: #fff; text-align: center; padding: clamp(72px, 12vw, 160px) 20px clamp(96px, 14vw, 190px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0.8px, transparent 1px); background-size: 6px 6px; mask-image: radial-gradient(90% 80% at 50% 45%, #000 40%, transparent 100%); }
.hero::after { content: ""; position: absolute; left: 50%; bottom: -30%; width: min(900px, 90%); aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, var(--glow) 0%, rgba(255, 217, 138, 0.55) 35%, transparent 70%); filter: blur(6px); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.75; transform: translateX(-50%) scale(1.06); } }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; max-width: 17ch; margin: 28px auto 22px; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 44ch; margin-inline: auto; opacity: 0.95; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* Section heads (D10 T01 §13). An eyebrow inside a head keeps its own look over `.head p` (home version 8,
   D11 T01 §2). */
.head { text-align: center; padding: 96px 20px 40px; }
.head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.head p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }
.eyebrow, .head .eyebrow { font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal-ink); margin-bottom: 18px; }

/* The system (D10 T01 §14): a 3D scene on the cream panel. Until the canvas has drawn, the box shows a still of it
   (light theme only; in dark the cream panel shows until the scene draws). */
:root { --still: url("../img/system-still.png"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --still: none; } }
:root[data-theme="dark"] { --still: none; }
.system-box { position: relative; margin-inline: auto; max-width: 1000px; background: var(--cream) var(--still) center top / 100% auto no-repeat; overflow: hidden; touch-action: pan-y; }
.system-box.live { background-image: none; }
.system-box:not(.live) { aspect-ratio: 1000 / 620; }
.system-box canvas { display: block; width: 100%; cursor: grab; }
.system-box canvas:active { cursor: grabbing; }
.system-note { position: absolute; left: 16px; bottom: 14px; font: 12px/1.4 var(--mono); color: var(--ink-3); }
.system-tip { position: absolute; right: 16px; bottom: 14px; width: min(300px, calc(100% - 32px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-size: 14px; }
.system-tip strong { display: block; font-weight: 600; margin-bottom: 2px; }
.system-tip span { color: var(--ink-2); }
@media (max-width: 600px) { .system-note { display: none; } }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.cols > div { padding: 32px; border-right: 1px solid var(--line); }
.cols > div:last-child { border-right: 0; }
.cols h3 { font-size: 17px; margin: 14px 0 6px; letter-spacing: -0.01em; }
.cols p { color: var(--ink-2); font-size: 15px; }
.ico { width: 26px; height: 26px; color: var(--ink); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } .cols > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Service tabs (D10 T01 §15): a pill bar whose active marker slides between tabs; the panel changes with each tab, and
   the tabs advance on their own until someone picks one. */
.tabs { display: flex; justify-content: center; padding: 0 16px 40px; }
.tabbar { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.marker { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--signal-fill); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); overflow: hidden; }
.marker b { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: rgba(255, 255, 255, 0.7); }
.tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 18px; border: 0; background: none; border-radius: 999px; font: 500 15px/1 var(--face); color: var(--ink); cursor: pointer; transition: color 0.3s; }
.tab svg { width: 16px; height: 16px; }
.tab[aria-selected="true"] { color: #fff; }
.panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 48px 40px; border-top: 1px solid var(--line); min-height: 320px; }
/* The service panels share one grid cell: the tallest sets the height, so switching tabs moves nothing below. */
.panels { display: grid; }
.panels > .panel { grid-area: 1 / 1; }
.panels > .panel[inert] { visibility: hidden; }
.panel.in .copy, .panel.in .art { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.panel.in .art { animation-delay: 0.08s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.copy h3 { font-size: 22px; margin-bottom: 10px; }
.copy p { color: var(--ink-2); max-width: 46ch; }
.copy a { display: inline-block; margin-top: 18px; color: var(--signal-ink); font-weight: 500; text-decoration: none; }
.copy a:hover { text-decoration: underline; }
.art { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--paper); }
.art::before, .art::after { content: ""; position: absolute; width: 7px; height: 7px; border: 1px solid var(--line); background: var(--paper); }
.art::before { top: -4px; left: -4px; } .art::after { right: -4px; bottom: -4px; }
/* Elementor makes every ::before and ::after inside its content border-box; the prototype's corner squares are
   content-box (9px with their borders), as the kit restores for `.rule` (D11 T03 §2). */
.elementor .art::before, .elementor .art::after { box-sizing: content-box; }
.art-head { display: flex; justify-content: space-between; font: 12px/1 var(--mono); color: var(--ink-3); margin-bottom: 16px; }
.art-head em { color: var(--signal-ink); font-style: normal; }
.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.chain::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; border-top: 1px dashed var(--line); }
.node { position: relative; display: grid; place-items: center; gap: 6px; padding: 14px 4px; border: 1px dashed var(--line); border-radius: 6px; background: var(--paper); font-size: 13px; text-align: center; transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.node svg { width: 18px; height: 18px; }
.node.on { border-color: var(--signal); border-style: solid; background: var(--tint); color: var(--signal-ink); }
.art-foot { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.rows { display: grid; gap: 8px; font: 13px/1.2 var(--mono); }
.row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 6px; background: var(--soft); }
.row .st { color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.row.done .st { color: var(--signal-ink); }
.row.new { animation: slidein 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
/* The IT panel's live list: where it is narrow enough for a row to wrap (392px and under), every row keeps two lines, so its height never changes. */
[data-rows] { container: it-rows / inline-size; }
@container it-rows (max-width: 400px) { [data-rows] > .row { min-height: calc(2lh + 22px); } }
@keyframes slidein { from { opacity: 0; transform: translateY(-12px); } }
.spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--signal); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flow .node { padding: 16px 4px; }
.flow-line { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; }
.flow-dot { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 74, 20, 0.15); animation: travel 3.2s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
@keyframes travel { 0% { left: 0; } 100% { left: 100%; } }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; padding: 32px 20px; } .chain { grid-template-columns: repeat(3, 1fr); } .chain::before { display: none; } }

/* Bento of animated cards (D10 T01 §16): the free tools. */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 6px; padding: 28px; background: var(--paper); overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
.card h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 15px; max-width: 42ch; }
.card .push { margin-top: auto; }
.card.red { background: var(--signal-fill); color: #fff; border-color: var(--signal-fill); }
.card.red p { color: #fff; }
/* Inside Elementor content the kit prints `.elementor .eyebrow`, which outranks `.card p`; an eyebrow set as a card's
   paragraph (the service page's related guides, D11 T03 §2) keeps the prototype's cascade, where `.card p` wins. */
.elementor .card p.eyebrow { color: var(--ink-2); font-size: 15px; }
.elementor .card.red p.eyebrow { color: #fff; }
/* The same for a panel's copy, where `.copy p` wins in the prototype (the tools hub's "What happens to what you type",
   D12 T01 §4). */
.elementor .copy p.eyebrow { color: var(--ink-2); }
.term { margin-top: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 14px 16px; font: 13px/1.7 var(--mono); min-height: 170px; }
.term .ok { color: var(--signal-ink); }
.term .dim { color: var(--ink-3); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.toast { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 26px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 10px; font-size: 15px; }
.tag { position: absolute; top: 14px; right: 14px; font: 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; background: var(--paper); }
.card.red .tag { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: transparent; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } }

/* Closing band (D10 T01 §17): the red field again, with icon tiles drifting at an angle. */
.end-wrap { padding: 8px; }
.end { position: relative; overflow: hidden; border-radius: 14px; background: var(--field); color: #fff; text-align: center; padding: 110px 20px; }
.end::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0.8px, transparent 1px); background-size: 6px 6px; }
.end > * { position: relative; }
.end h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; }
.end p { max-width: 50ch; margin: 16px auto 0; font-size: 18px; opacity: 0.95; }
.end .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.tile { position: absolute; display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 10px; background: rgba(255, 255, 255, 0.08); animation: bob 7s ease-in-out infinite; }
.tile svg { width: 28px; height: 28px; }
@keyframes bob { 50% { translate: 0 -10px; } }
.t1 { left: 7%; top: 16%; rotate: -14deg; } .t2 { left: 15%; bottom: 14%; rotate: 10deg; animation-delay: -2s; }
.t3 { right: 8%; top: 20%; rotate: 16deg; animation-delay: -4s; } .t4 { right: 15%; bottom: 12%; rotate: -8deg; animation-delay: -1s; }
@media (max-width: 760px) { .tile { display: none; } }
/* The WhatsApp icon for a button whose text cannot hold an SVG (an Atomic button): the prototype's 18px path, drawn
   as a mask in the text colour where the prototype puts the inline icon, the first item of the button's row. */
.btn-wa::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.2.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 2s.8 2.3 1 2.5c.1.2 1.7 2.6 4.1 3.6 1.5.7 2.1.7 2.9.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.1-1.2l-.3-.2Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.2.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 2s.8 2.3 1 2.5c.1.2 1.7 2.6 4.1 3.6 1.5.7 2.1.7 2.9.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.1-1.2l-.3-.2Z'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }

/* Client proof (D11 T04 §5), from the locked home prototype (template.html:214-236): six permitted logos,
   monochrome in the ink colour so they read in both themes, beside one client's testimonial in their approved
   words on the cream panel. Printed by [rz_part name="home-clients"]. */
.cl-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.cl-logos { display: grid; grid-template-columns: repeat(2, 1fr); border-right: 1px solid var(--line); }
.cl-logos > div { display: grid; place-items: center; min-height: 150px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.cl-logos > div:nth-child(odd) { border-right: 1px solid var(--line); }
.cl-logos > div:nth-last-child(-n+2) { border-bottom: 0; }
.cl-logo { display: block; width: 100%; max-width: var(--w, 170px); height: var(--h, 40px); background: var(--ink-2); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background-color 0.2s; }
.cl-logos > div:hover .cl-logo { background: var(--ink); }
.cl-quote { position: relative; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; background: var(--cream); }
.cl-mark { width: 40px; height: 40px; color: var(--signal); }
.cl-quote blockquote { margin: 22px 0 32px; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.4; letter-spacing: -0.01em; font-weight: 500; text-wrap: pretty; }
.cl-quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px dashed var(--line); }
.cl-quote img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
/* Elementor's frontend resets `.elementor img` (no radius, no shadow) at the same weight and later; inside its content
   the photo keeps the prototype's round crop and ring. */
.elementor .cl-quote img { border-radius: 50%; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
.cl-quote strong { display: block; font-weight: 600; }
.cl-quote figcaption span { color: var(--ink-2); font-size: 15px; }
.cl-foot { padding: 18px 20px; border-top: 1px solid var(--line); text-align: center; font: 12px/1.5 var(--mono); color: var(--ink-3); }
@media (max-width: 960px) {
	.cl-grid { grid-template-columns: 1fr; }
	.cl-logos { border-right: 0; border-bottom: 1px solid var(--line); }
	.cl-quote { padding: 40px 24px; }
}
@media (max-width: 480px) { .cl-logos > div { min-height: 104px; padding: 0 16px; } .cl-quote { padding: 36px 20px; } }

/* The ticker (D10 T01 §17). */
.ticker { overflow: hidden; background: var(--night); color: #fff; font-size: 14px; white-space: nowrap; }
.ticker-in { display: inline-flex; gap: 48px; padding: 12px 0; animation: tick 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; }
.ticker .ic { color: var(--signal); }
@keyframes tick { to { transform: translateX(-50%); } }

/* The contact page (D11 T01 §5), from the approved form page prototype (pages/forms.html:16-18, 89-90, 175, 186-187):
   a plain head with no red hero, then the form beside the side panel, one above the other from 960px. The side
   panel's own rules, and the form's, are in forms.css. */
.fm-head { padding: 64px 40px 40px; border-top: 1px solid var(--line); }
.fm-head h1 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; max-width: 24ch; }
.fm-head .lead { color: var(--ink-2); font-size: 18px; max-width: 56ch; margin-top: 16px; }
.fm-contact { display: grid; grid-template-columns: 1.55fr 1fr; border-top: 1px solid var(--line); }
.fm-main { padding: 48px 40px 56px; min-width: 0; }
@media (max-width: 960px) { .fm-contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .fm-head { padding: 44px 16px 28px; } .fm-main { padding: 32px 16px 40px; } }
