/*
Theme Name: FlowStack
Theme URI: https://example.com/kraftloop
Author: FlowStack
Description: A fast, plugin-free theme for a software studio: home, services, products, blog and contact. Dark and light modes, a live 3D loop in the hero, and Services and Products as their own content types, so adding one is as easy as writing a post. Creates its own Home, Blog, Contact, About, FAQ and legal pages, and includes a contact form that saves every message, one-click sample content, and texts editable in the Customizer.
Version: 2.2.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kraftloop
Tags: blog, portfolio, custom-logo, custom-menu, featured-images, translation-ready
*/

@font-face { font-family: "Unbounded"; src: url("assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- tokens
   Dark is the base. Light mode swaps the surface tokens only; the accent and the
   four-colour "loop" spectrum stay the same in both. `.is-night` pins a block to
   the dark set whatever the mode (footer, call to action). */
:root, .is-night {
  --bg: #070818;
  --bg-2: #0b0d23;
  --surface: #111430;
  --surface-2: #191d40;
  --line: rgba(152, 162, 255, .16);
  --line-strong: rgba(172, 180, 255, .34);
  --text: #b9bedd;
  --muted: #8a90b6;
  --head: #f3f4ff;
  --link: #a9a2ff;
  --link: color-mix(in oklab, var(--accent) 55%, white);
  --ok: #3ee0a8;
  --warn: #ffc24d;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --glass: rgba(10, 12, 34, .72);
}
:root {
  color-scheme: dark;
  --accent: #6457ff;
  --accent-ink: #fff;
  --s2: #b45cff;
  --s3: #ff6b7a;
  --s4: #ffc24d;
  --spectrum: linear-gradient(90deg, var(--accent), var(--s2), var(--s3), var(--s4));
  --display: "Unbounded", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --header-space: 76px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5fb;
  --bg-2: #eaecf7;
  --surface: #ffffff;
  --surface-2: #f1f2fb;
  --line: rgba(22, 26, 84, .13);
  --line-strong: rgba(22, 26, 84, .3);
  --text: #3a4064;
  --muted: #5f6689;
  --head: #0a0c22;
  --link: #4338d9;
  --link: color-mix(in oklab, var(--accent) 82%, black);
  --ok: #0c8a66;
  --warn: #8a5a00;
  --shadow: 0 30px 70px -34px rgba(22, 26, 84, .35);
  --glass: rgba(255, 255, 255, .78);
}
.is-night { color: var(--text); background-color: var(--bg); }

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-color: var(--line-strong) transparent; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--head); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--head); line-height: 1.12; margin: 0 0 .5em; font-weight: 500; letter-spacing: -.03em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; background: var(--head); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--bg); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 780px); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font: 600 1rem/1 var(--body); padding: 1em 1.5em; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--head); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s; }
.btn:hover { border-color: var(--head); color: var(--head); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px var(--accent); }
.btn-primary:hover { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent), 0 14px 36px -10px var(--accent); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-light { background: #fff; border-color: #fff; color: #0a0c22; }
.btn-light:hover { background: #fff; border-color: #fff; color: #0a0c22; box-shadow: 0 0 0 5px rgba(255, 255, 255, .22); }
.btn-small { padding: .8em 1.2em; font-size: .93rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn .icon { width: 1.1em; height: 1.1em; }
.text-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--head); }
.text-link .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- header: a floating glass bar */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 14px; pointer-events: none; }
.admin-bar .site-header { top: 32px; }
.header-bar { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 10px 8px 22px; border-radius: 32px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled .header-bar { border-color: var(--line-strong); box-shadow: var(--shadow); }
.brand-link, .footer-brand { display: inline-flex; align-items: center; gap: 11px; font: 600 1.08rem/1 var(--display); color: var(--head); text-decoration: none; letter-spacing: -.04em; }
.brand-link:hover { color: var(--head); }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; flex: none; background: conic-gradient(from 200deg, var(--accent), var(--s2), var(--s3), var(--s4), var(--accent)); -webkit-mask: radial-gradient(closest-side, transparent 50%, #000 53%); mask: radial-gradient(closest-side, transparent 50%, #000 53%); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.brand-link:hover .brand-mark { transform: rotate(180deg); }
.custom-logo { max-height: 40px; width: auto; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; }
.menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.menu li { position: relative; }
.menu a { display: block; padding: 10px 15px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem; transition: color .15s, background-color .15s; }
.menu a:hover { color: var(--head); background: color-mix(in srgb, var(--head) 8%, transparent); }
.menu .current-menu-item > a, .menu .current_page_parent > a, .menu .current-menu-ancestor > a { color: var(--head); background: color-mix(in srgb, var(--head) 10%, transparent); }
.menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 10px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); display: none; }
.menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { display: block; }
.menu .sub-menu a { border-radius: var(--r-s); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--head); cursor: pointer; transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--head) 8%, transparent); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .icon-sun, :root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
.nav-toggle { display: none; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.read-progress { position: absolute; left: 30px; right: 30px; bottom: -1px; height: 2px; overflow: hidden; border-radius: 2px; }
.read-progress span { display: block; height: 100%; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }

/* ---------- hero */
.hero { position: relative; overflow: hidden; overflow: clip; margin-top: calc(-1 * var(--header-space)); padding-top: var(--header-space); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1.5px); background-size: 30px 30px; -webkit-mask: radial-gradient(70% 70% at 72% 45%, #000, transparent 75%); mask: radial-gradient(70% 70% at 72% 45%, #000, transparent 75%); opacity: .7; }
.hero::after { content: ""; position: absolute; width: 62vw; max-width: 900px; aspect-ratio: 1; right: -8vw; top: 50%; translate: 0 -50%; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; min-height: clamp(620px, 86vh, 860px); padding-block: 48px 72px; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 4.1rem); max-width: 9.4em; margin: 0; }
.hero h1 .w { display: inline-block; }
.hero-text { font-size: 1.2rem; max-width: 44ch; margin: 1.5em 0 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 2.4em; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; max-width: 560px; }
.hero-tags a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; transition: border-color .2s, color .2s, background-color .2s; }
.hero-tags a:hover, .hero-tags a:focus-visible { border-color: var(--link); color: var(--head); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.hero-tags .icon { color: var(--s4); width: 1.05em; height: 1.05em; }
:root[data-theme="light"] .hero-tags .icon { color: var(--accent); }
.hero-visual { position: relative; align-self: stretch; min-height: 460px; }
.hero-loop { position: absolute; inset: -40px calc(-1 * clamp(0px, (100vw - var(--wrap)) / 2 - 12px, 90px)) -40px -50px; }
.hero-loop canvas { display: block; width: 100%; height: 100%; }
/* Without JavaScript the canvas stays empty, so the rings stand in for the loop. */
.hero-loop:not(.is-live)::before, .hero-loop:not(.is-live)::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(78%, 480px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, var(--accent), var(--s2), var(--s3), var(--s4), var(--accent)); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.hero-loop:not(.is-live)::after { width: min(52%, 320px); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .w { animation: kl-word .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 60ms + 80ms); }
  .hero .hero-text, .hero .hero-actions, .hero .hero-tags { animation: kl-fade .9s ease both; animation-delay: .55s; }
  .hero .hero-actions { animation-delay: .65s; }
  .hero .hero-tags { animation-delay: .75s; }
  @keyframes kl-word { from { opacity: 0; transform: translateY(.5em) rotate(3deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes kl-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @view-transition { navigation: auto; }
}

/* ---------- sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-flush { padding-top: clamp(32px, 4vw, 56px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: start; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; max-width: 14em; }
.section-intro p { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 52ch; }
.section-intro .text-link { margin-top: 16px; }
.section-intro p + .text-link { margin-top: 18px; }
.section-intro { padding-top: .45em; }
.section-intro:not(:has(p)) { justify-self: end; align-self: center; padding-top: 0; }
.empty { color: var(--muted); padding: 40px 0; }

/* services: an index you run your eye down, not a wall of cards */
.svc-list { border-bottom: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.1fr) 52px; gap: 24px; align-items: center; padding: 26px 18px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; transition: opacity .25s, background-color .25s, padding .25s; }
.svc-row::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--spectrum); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.svc-row h3 { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.95rem); letter-spacing: -.04em; transition: translate .25s; }
.svc-row p { margin: 0; color: var(--muted); }
.svc-icon { width: 52px; height: 52px; padding: 13px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--link); transition: color .25s, border-color .25s; }
.svc-go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); color: var(--head); transition: background-color .25s, border-color .25s, color .25s, rotate .25s; }
.svc-go .icon { width: 20px; height: 20px; }
@media (hover: hover) {
  .svc-list:hover .svc-row { opacity: .5; }
  .svc-list .svc-row:hover { opacity: 1; }
}
.svc-row:hover, .svc-row:focus-visible { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); }
.svc-row:hover::before, .svc-row:focus-visible::before { transform: none; }
.svc-row:hover h3, .svc-row:focus-visible h3 { translate: 8px 0; }
.svc-row:hover .svc-icon, .svc-row:focus-visible .svc-icon { color: var(--s4); border-color: var(--line-strong); }
:root[data-theme="light"] .svc-row:hover .svc-icon { color: var(--accent); }
.svc-row:hover .svc-go, .svc-row:focus-visible .svc-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); rotate: -45deg; }

/* products */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; display: flex; flex-direction: column; transition: border-color .25s, translate .25s; }
.product-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%); }
.product-card:hover, .product-card:focus-within { border-color: var(--line-strong); translate: 0 -3px; }
.product-card:hover::before, .product-card:focus-within::before { opacity: 1; }
.product-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.product-top > div { flex: 1; min-width: 0; }
.product-card h3 { margin: 4px 0 0; font-size: 1.08rem; }
.product-card h3 a { color: var(--head); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.product-type { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.product-text { flex: 1; margin: 0 0 22px; }
.product-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; font-size: .93rem; }
.product-links a { text-decoration: none; display: inline-flex; align-items: center; gap: .4em; color: var(--head); }
.product-links .ext { position: relative; z-index: 1; color: var(--muted); font-weight: 500; }
.product-links .ext:hover { color: var(--link); }
.product-links .icon { width: 1em; height: 1em; }
.tile { width: 50px; height: 50px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface-2); color: var(--link); display: grid; place-items: center; flex: none; overflow: hidden; }
.tile .icon { width: 24px; height: 24px; }
.tile-image { border: 0; }
.tile-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { display: inline-flex; align-items: center; gap: 7px; font: 600 .75rem/1 var(--body); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); vertical-align: middle; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge-beta { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.badge-soon { color: var(--link); border-color: color-mix(in srgb, var(--link) 35%, transparent); }
.badge-live::before { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .badge-live::before { animation: kl-ping 2.4s ease-out infinite; }
  @keyframes kl-ping { 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
}
.filters { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 32px; }
.filters a { display: block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; transition: border-color .2s, color .2s; }
.filters a:hover { border-color: var(--line-strong); color: var(--head); }
.filters a.is-active { background: var(--head); border-color: var(--head); color: var(--bg); }

/* process: the steps really are a loop, so they sit on one */
.process-loop { position: relative; padding-inline: clamp(84px, 8vw, 120px); }
.loop-track { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.loop-track rect { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.loop-track .runner { stroke: url(#kl-run); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 70 930; }
.process-loop::before, .process-loop::after { content: ""; position: absolute; top: 50%; width: 11px; height: 11px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; }
.process-loop::before { left: -6px; margin-top: -2px; rotate: -135deg; }
.process-loop::after { right: -6px; margin-top: -9px; rotate: 45deg; }
.steps { position: relative; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 72px; column-gap: 28px; margin: 0; padding: 0; }
.steps li { position: relative; counter-increment: step; grid-column: span 2; padding: 46px 0 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--head); font: 500 .95rem/1 var(--display); transition: background-color .25s, border-color .25s, color .25s; }
.section-tint .steps li::before { background: var(--bg-2); }
.steps li:hover::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps li:nth-child(4) { grid-row: 2; grid-column: 4 / span 3; }
.steps li:nth-child(5) { grid-row: 2; grid-column: 1 / span 3; }
.steps li:nth-child(n+4) { padding: 0 0 46px; align-self: end; }
.steps li:nth-child(n+4)::before { top: auto; bottom: -22px; }
.steps h3 { margin-bottom: 8px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; max-width: 34ch; }
@media (prefers-reduced-motion: no-preference) {
  .loop-track .runner { animation: kl-run 16s linear infinite; }
  @keyframes kl-run { to { stroke-dashoffset: -1000; } }
}

/* blog rows */
.post-list { border-top: 1px solid var(--line); }
.post-row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.post-date { font-family: var(--display); color: var(--head); line-height: 1; }
.post-date .d { display: block; font-size: 2.3rem; font-weight: 500; letter-spacing: -.05em; }
.post-date .m { display: block; font-size: .85rem; color: var(--muted); margin-top: 8px; font-family: var(--body); }
.post-body h2 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); margin-bottom: .5em; line-height: 1.25; }
.post-body h2 a { color: var(--head); text-decoration: none; background: linear-gradient(var(--link), var(--link)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s; padding-bottom: 2px; }
.post-body h2 a:hover { background-size: 100% 1.5px; }
.post-body p { margin: 0 0 .7em; max-width: 68ch; }
.post-thumb img { width: 200px; height: 130px; object-fit: cover; border-radius: var(--r-m); display: block; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; margin: 0; }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--link); }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; align-items: start; }
.blog-side { position: sticky; top: 110px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.blog-side h2 { font-size: .95rem; margin: 26px 0 8px; }
.topic-list { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.topic-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.topic-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.topic-list a { color: var(--text); text-decoration: none; font-weight: 500; }
.topic-list a:hover { color: var(--link); }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; border-radius: 999px; padding-left: 20px; }
.search-form .icon-btn { width: 50px; height: 50px; flex: none; background: var(--surface-2); }
.search-form .icon-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; }
.page-numbers.current { background: var(--head); border-color: var(--head); color: var(--bg); }
a.page-numbers:hover { border-color: var(--line-strong); color: var(--head); }

/* blog index: a lead story and a grid of cards. The home page keeps the plain rows above. */
.blog-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 34px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips a { display: block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--text); text-decoration: none; font-weight: 500; font-size: .93rem; transition: border-color .2s, color .2s, background-color .2s; }
.chips a:hover { border-color: var(--line-strong); color: var(--head); }
.chips a[aria-current] { background: var(--head); border-color: var(--head); color: var(--bg); }
.blog-tools .search-form { flex: 0 1 320px; margin-left: auto; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .card-cover img { transform: scale(1.04); }
.card-art { position: absolute; inset: 0; --a1: var(--accent); --a2: var(--s2); background: var(--surface-2); background: radial-gradient(90% 130% at 0% 100%, color-mix(in srgb, var(--a1) 55%, transparent), transparent 62%), radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--a2) 45%, transparent), transparent 64%), var(--surface-2); }
.card-art::before, .card-art::after { content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 120deg, transparent 8%, var(--accent), var(--s2), var(--s3), var(--s4), transparent 78%); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px)); }
.card-art::before { width: 74%; right: -16%; top: -58%; }
.card-art::after { width: 44%; right: 16%; top: -40%; opacity: .55; rotate: 70deg; }
.art-1 { --a1: var(--s2); --a2: var(--s3); }
.art-1::before { right: auto; left: -20%; top: auto; bottom: -74%; rotate: 190deg; }
.art-1::after { right: auto; left: 12%; top: auto; bottom: -52%; rotate: 250deg; }
.art-2 { --a1: var(--s3); --a2: var(--s4); }
.art-2::before { width: 60%; right: 20%; top: -12%; rotate: 30deg; }
.art-2::after { width: 34%; right: 33%; top: 18%; rotate: 200deg; }
.art-3 { --a1: var(--s4); --a2: var(--accent); }
.art-3::before { right: auto; left: -24%; top: -66%; rotate: 300deg; }
.art-3::after { right: -10%; top: auto; bottom: -46%; rotate: 160deg; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 24px; }
.card-body > p { margin: 0; }
.card-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--link); min-height: 1.2em; }
.card-kicker a { position: relative; z-index: 2; color: inherit; text-decoration: none; }
.card-kicker a:hover { color: var(--head); }
.card-flag { padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); letter-spacing: .04em; }
.post-card h2 { font-size: 1.12rem; line-height: 1.3; margin: 0; }
.card-link { color: var(--head); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:hover { color: var(--head); }
.card-text { font-size: .97rem; }
.post-card .meta { margin-top: auto; padding-top: 8px; }
.post-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: var(--r-l); margin-bottom: 24px; }
.post-lead:hover { transform: none; }
.post-lead .card-cover { aspect-ratio: auto; min-height: 360px; }
.post-lead .card-body { justify-content: center; gap: 16px; padding: clamp(26px, 4vw, 56px); }
.post-lead h2 { font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.18; }
.post-lead .card-text { font-size: 1.08rem; }
.post-lead .meta { margin-top: 0; padding-top: 0; }
.post-lead:hover .text-link .icon { transform: translateX(4px); }

/* page headings: two arcs of the loop sit behind every title */
.page-head { position: relative; overflow: hidden; overflow: clip; padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head::before, .page-head::after, .cta-panel::before, .cta-panel::after { content: ""; position: absolute; pointer-events: none; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 120deg, transparent 8%, var(--accent), var(--s2), var(--s3), var(--s4), transparent 78%); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px)); }
.page-head::before { width: 620px; right: -150px; top: -330px; }
.page-head::after { width: 380px; right: 60px; top: -250px; opacity: .55; rotate: 70deg; }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); margin: 0; max-width: 15em; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; margin: 1.1em 0 0; }
.crumb { margin: 0 0 18px; font-weight: 600; font-size: .93rem; }
.crumb a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; transition: border-color .2s, color .2s; }
.crumb a::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; rotate: 45deg; margin-left: 4px; }
.crumb a:hover { border-color: var(--line-strong); color: var(--head); }
.post-head h1 { max-width: none; font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.12; }
.post-head .meta { margin-top: 22px; }
.detail-head { display: flex; gap: 26px; align-items: flex-start; }
.detail-icon { width: 72px; height: 72px; padding: 18px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--s4); margin-top: 4px; }
:root[data-theme="light"] .detail-icon { color: var(--accent); }
.detail-head .tile { width: 72px; height: 72px; border-radius: 22px; margin-top: 4px; }
.detail-head .tile .icon { width: 32px; height: 32px; }
.detail-head .badge { font-size: .85rem; translate: 0 -.35em; margin-left: 6px; letter-spacing: 0; }

/* services list */
.service-rows { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.1fr); gap: 40px; padding: 34px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); align-items: start; transition: border-color .25s; }
.service-row:hover { border-color: var(--line-strong); }
.service-row-head { display: flex; gap: 18px; align-items: center; }
.service-row h2 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); margin: 0; }
.service-row h2 a { color: var(--head); text-decoration: none; }
.service-row h2 a:hover { color: var(--link); }
.service-row-text p { margin-bottom: 1em; }
.price { font-weight: 600; color: var(--ok); margin: 6px 0 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.checks .icon { color: var(--ok); margin-top: .2em; width: 1.1em; height: 1.1em; }

/* detail pages */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.detail-side { position: sticky; top: 110px; border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; background: var(--surface); box-shadow: var(--shadow); }
.detail-side h2 { font-size: 1rem; margin-bottom: 16px; }
.detail-side .checks { margin-bottom: 20px; }
.detail-side .price { margin-bottom: 14px; font-size: 1.1rem; }

/* long-form content */
.entry-content { font-size: 1.08rem; line-height: 1.75; }
.entry-content > * { max-width: 72ch; }
.entry-content > .alignwide, .entry-content > .alignfull, .entry-content > figure, .entry-content > table { max-width: 100%; }
.entry-content h2 { font-size: 1.55rem; margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.entry-content strong { color: var(--head); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--link); }
.entry-content blockquote { margin: 1.8em 0; padding: 6px 0 6px 26px; border-left: 3px solid; border-image: linear-gradient(var(--accent), var(--s3), var(--s4)) 1; font-size: 1.25rem; color: var(--head); }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .12em .4em; border-radius: 7px; }
.entry-content pre { background: #05061a; color: #dfe2ff; border: 1px solid var(--line); padding: 22px; border-radius: var(--r-m); overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry-content img { border-radius: var(--r-m); }
.entry-content figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .98rem; }
.entry-content th, .entry-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.entry-content th { color: var(--head); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-button__link { border-radius: 999px; background: var(--accent); color: var(--accent-ink); padding: .95em 1.5em; font-weight: 600; }
.post-cover { margin: 40px 0 0; }
.post-cover img { border-radius: var(--r-l); display: block; width: 100%; }
.single-post .entry-content { padding-top: 40px; }
.post-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.tags a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; margin: 0 4px 6px 0; }
.tags a:hover { border-color: var(--line-strong); color: var(--head); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 64px; }
.post-nav > div { position: relative; border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px 22px; background: var(--surface); transition: border-color .2s; }
.post-nav > div:hover { border-color: var(--line-strong); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post-nav a { font-family: var(--display); font-weight: 500; font-size: .98rem; letter-spacing: -.02em; color: var(--head); text-decoration: none; }
.post-nav a::after { content: ""; position: absolute; inset: 0; }
.comments { margin-bottom: 72px; }
.comments h2, .comment-reply-title { font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.comment-meta a { color: inherit; }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form p { margin: 0 0 16px; }

/* legal pages: the sections listed beside the text */
.legal-date { display: block; margin-top: 20px; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: start; }
.legal-side { position: sticky; top: 110px; max-height: calc(100vh - 140px); overflow-y: auto; display: grid; gap: 30px; font-size: .93rem; scrollbar-width: thin; }
.legal-side h2 { font: 500 .85rem/1.2 var(--body); color: var(--muted); letter-spacing: 0; margin: 0 0 12px; }
.toc, .policy-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a, .policy-list a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; color: var(--text); text-decoration: none; line-height: 1.35; transition: color .15s, border-color .15s; }
.toc a:hover, .policy-list a:hover { color: var(--head); border-left-color: var(--line-strong); }
.policy-list .current-menu-item > a { color: var(--head); font-weight: 600; border-left-color: var(--accent); }
.legal-content > :first-child { margin-top: 0; }
.entry-content .legal-contact { list-style: none; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); font-size: 1rem; }
.entry-content .legal-contact li:last-child { margin-bottom: 0; }

/* questions and answers: <details> blocks, as on the FAQ page */
.entry-content details { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); margin: 0 0 12px; transition: border-color .2s; }
.entry-content details:hover, .entry-content details[open] { border-color: var(--line-strong); }
.entry-content summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font: 500 1.02rem/1.35 var(--display); letter-spacing: -.02em; color: var(--head); border-radius: var(--r-m); }
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -3px; transition: rotate .2s, translate .2s; }
.entry-content details[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.entry-content details > :not(summary) { margin-inline: 22px; }
.entry-content details > :last-child:not(summary) { margin-bottom: 20px; }
.entry-content details + p { margin-top: 28px; }

/* forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; font: inherit; color: var(--head); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent); }
textarea { resize: vertical; min-height: 140px; }
label { display: block; font-weight: 600; color: var(--head); font-size: .93rem; margin-bottom: 7px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.contact-form { position: relative; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 3vw, 40px); background: var(--surface); box-shadow: var(--shadow); }
.contact-form::before { content: ""; position: absolute; left: 40px; right: 40px; top: -1px; height: 2px; background: var(--spectrum); border-radius: 2px; }
.contact-form p { margin: 0 0 20px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 0 !important; }
.form-hint { color: var(--muted); font-size: .9rem; }
.form-note { padding: 14px 16px; border-radius: var(--r-s); margin-bottom: 22px; border: 1px solid; }
.form-note.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.form-note.err { color: #ff8b95; border-color: rgba(255, 107, 122, .4); background: rgba(255, 107, 122, .1); }
:root[data-theme="light"] .form-note.err { color: #a11425; }
.kl-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { width: 46px; height: 46px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--link); }
.contact-list strong { display: block; color: var(--muted); font-size: .85rem; font-weight: 500; }
.contact-list a, .contact-list span { color: var(--head); font-size: 1.08rem; text-decoration: none; }
.contact-list a:hover { color: var(--link); }
.contact-next { border-top: 1px solid var(--line); padding-top: 28px; }
.contact-next h2 { font-size: 1.05rem; margin-bottom: 14px; }
.contact-next ol { padding-left: 1.2em; margin: 0; color: var(--muted); }
.contact-next li { margin-bottom: .6em; }
.contact-next li::marker { color: var(--link); font-weight: 600; }

/* 404 */
.lost { position: relative; overflow: hidden; overflow: clip; text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.lost .lost-code { font: 600 clamp(6rem, 24vw, 17rem)/.9 var(--display); letter-spacing: -.07em; margin: 0 0 .15em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); background: var(--spectrum); -webkit-background-clip: text; background-clip: text; }
@supports (-webkit-background-clip: text) { .lost .lost-code { -webkit-text-stroke: 0; } }
.lost h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: none; }
.lost p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.lost .hero-actions { justify-content: center; margin: 2em 0; }
.lost .search-form { max-width: 440px; margin-inline: auto; }

/* call to action */
.cta-band { padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.cta-panel { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(32px, 6vw, 80px); border-radius: var(--r-l); border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%), var(--surface); }
.cta-panel::before { width: 760px; right: -220px; top: -420px; }
.cta-panel::after { width: 460px; right: -40px; top: -300px; opacity: .6; rotate: 60deg; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); margin-bottom: .45em; max-width: 13em; }
.cta-panel p { margin: 0; max-width: 52ch; font-size: 1.1rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); font-size: .97rem; overflow: hidden; overflow: clip; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-block: 72px 48px; }
.footer-brand { margin-bottom: 16px; font-size: 1.15rem; }
.footer-about p { max-width: 34ch; }
.footer-title { font: 500 .85rem/1.2 var(--body); color: var(--muted); margin: 4px 0 16px; letter-spacing: 0; }
.footer-menu, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--head); text-decoration: none; }
.site-footer a:hover { color: var(--link); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.social a { display: block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }
.social a:hover { border-color: var(--line-strong); }
.footer-wordwrap { overflow: hidden; }
.footer-word { display: block; margin: 0 0 -.08em; font: 700 1rem/.92 var(--display); font-size: min(calc((100vw - 40px) / (var(--chars) * .68)), calc(var(--wrap) / (var(--chars) * .68)), 20rem); letter-spacing: -.045em; white-space: nowrap; color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 62%, transparent), color-mix(in srgb, var(--accent) 6%, transparent) 92%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--head); }
.legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.form-hint a { color: inherit; }
.form-hint a:hover { color: var(--link); }

/* ---------- smaller screens */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-block: 8px 64px; }
  .hero-visual { order: -1; min-height: 0; height: clamp(300px, 76vw, 460px); }
  .hero-loop { inset: 0 -20px; }
  .hero::before { -webkit-mask: radial-gradient(90% 50% at 50% 22%, #000, transparent 75%); mask: radial-gradient(90% 50% at 50% 22%, #000, transparent 75%); }
  .hero::after { width: 110vw; right: -5vw; top: 22%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; }
  .section-intro:not(:has(p)) { justify-self: start; }
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row .checks { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .detail-layout, .blog-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-side, .blog-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: -1px; right: -1px; top: calc(100% + 10px); margin: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px; padding: 14px; flex-direction: column; align-items: stretch; gap: 12px; box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow-y: auto; }
  .nav-open .site-nav { display: flex; }
  .menu { flex-direction: column; gap: 0; }
  .menu > li + li { border-top: 1px solid var(--line); }
  .menu a { padding: 15px 12px; border-radius: var(--r-s); font: 500 1.2rem/1.2 var(--display); letter-spacing: -.03em; color: var(--head); }
  .menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 12px; background: none; min-width: 0; }
  .menu .sub-menu a { font: 500 1rem/1.3 var(--body); letter-spacing: 0; color: var(--text); padding: 9px 12px; }
  .nav-cta { display: flex; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; }
  /* the loop becomes a single line down the left */
  .process-loop { padding-inline: 0; }
  .process-loop::before, .process-loop::after, .loop-track { display: none; }
  .steps { display: block; }
  .steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 1.5px; background: linear-gradient(var(--accent), var(--s2), var(--s3), var(--s4)); }
  .steps li, .steps li:nth-child(n+4) { padding: 8px 0 34px 68px; }
  .steps li::before, .steps li:nth-child(n+4)::before { top: 0; bottom: auto; }
  .steps li:last-child { padding-bottom: 0; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .admin-bar .site-header { top: 0; }
  .header-bar { padding-left: 18px; }
  .product-grid, .service-row, .form-row.two, .footer-grid, .post-nav { grid-template-columns: 1fr; }
  .service-row { padding: 24px; gap: 22px; }
  .service-row .checks { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 6px 16px; padding: 22px 4px; }
  .svc-row p { grid-column: 2 / 3; grid-row: 2; font-size: .95rem; }
  .svc-icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; grid-row: 1 / 3; align-self: start; }
  .svc-go { width: 40px; height: 40px; grid-row: 1 / 3; }
  .post-nav .next { grid-column: 1; text-align: left; }
  .post-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .post-date { display: flex; align-items: baseline; gap: 8px; }
  .post-date .d { font-size: 1.3rem; }
  .post-date .m { margin: 0; }
  .post-thumb { display: none; }
  .detail-head { flex-direction: column; gap: 16px; }
  .hero-text { font-size: 1.08rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cta-panel .btn { width: 100%; }
  .footer-grid { gap: 32px; padding-block: 56px 36px; }
}
@media (max-width: 1020px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-lead { grid-template-columns: 1fr; }
  .post-lead .card-cover { aspect-ratio: 16 / 9; min-height: 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 36px; }
  .legal-side { position: static; max-height: none; overflow: visible; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-tools { margin-top: 26px; }
  .blog-tools .search-form { flex: 1 1 100%; }
  .card-body { padding: 20px; }
  .footer-bottom { flex-direction: column; }
  /* a table in a policy becomes a list: one block per row */
  .legal-content table, .legal-content tbody, .legal-content tr, .legal-content td { display: block; }
  .legal-content thead { display: none; }
  .legal-content tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .legal-content td { padding: 2px 0; border: 0; }
  .legal-content td:first-child { color: var(--head); font-weight: 600; }
  .legal-content td[data-label] { color: var(--muted); font-size: .93rem; }
  .legal-content td[data-label]::before { content: attr(data-label) ": "; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
