/* Dragon Forge AI — one stylesheet for every page.
   Ground is near-black, action is forge orange; the three films carry the rest. */
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
:root {
  --ground: #04060b;
  --ground-2: #0a0e17;
  --panel: rgba(16, 21, 33, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #9aa4b2;
  --fire: #f26a13;
  --fire-lift: #ff8a3d;
  --ember: #ffb347;
  --cyan: #38d6ff;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font: 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 0.5em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p { color: var(--muted); margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; position: relative; z-index: 2; }
.molten { background: linear-gradient(100deg, var(--fire) 0%, var(--ember) 45%, var(--fire-lift) 70%, var(--fire) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 6s linear infinite; }
@keyframes flow { to { background-position: -220% 0; } }
.label { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fire-lift); margin-bottom: 1.2em; }
.label::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--fire); vertical-align: middle; margin-right: 12px; box-shadow: 0 0 8px var(--fire); }

/* bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 14px max(20px, calc((100% - 1200px) / 2)); background: linear-gradient(to bottom, rgba(4, 6, 11, 0.85), rgba(4, 6, 11, 0.4)); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar nav { display: flex; gap: 24px; margin-left: auto; }
.bar nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.bar nav a:hover { color: var(--text); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.brand b { color: var(--fire); }
.sigil { width: 22px; height: 22px; border-radius: 6px; background: conic-gradient(from 210deg, var(--fire), var(--ember), var(--fire-lift), var(--fire)); box-shadow: 0 0 18px rgba(242, 106, 19, 0.6); animation: spin 8s linear infinite; }
@keyframes spin { to { filter: hue-rotate(25deg); transform: rotate(360deg); } }

/* buttons */
.btn { --b: var(--fire); display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; background: var(--b); color: #120700; font-weight: 600; text-decoration: none; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 170, 90, 0.4), 0 10px 40px -8px rgba(242, 106, 19, 0.7); transition: transform 0.2s, box-shadow 0.2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 190, 120, 0.7), 0 16px 50px -6px rgba(242, 106, 19, 0.9); }
.btn:hover::after { transform: translateX(120%); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--fire-lift), 0 0 30px -6px rgba(242, 106, 19, 0.6); }
.btn-big { font-size: 1.15rem; padding: 20px 34px; }
.link-arrow { display: inline-block; margin-top: 8px; font: 500 0.9rem var(--mono); color: var(--fire-lift); text-decoration: none; border-bottom: 1px solid rgba(242, 106, 19, 0.4); padding-bottom: 2px; }
.link-arrow::after { content: " →"; transition: margin 0.2s; }
.link-arrow:hover::after { margin-left: 6px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-film, .band-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-film { transform: scale(1.08); animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.16) translateY(-2%); } }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(4, 6, 11, 0.55) 55%, rgba(4, 6, 11, 0.95) 100%), linear-gradient(to right, rgba(4, 6, 11, 0.92) 0%, rgba(4, 6, 11, 0.5) 45%, rgba(4, 6, 11, 0.1) 100%), linear-gradient(to top, var(--ground) 0%, transparent 30%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-in { position: relative; z-index: 2; width: min(1200px, 100% - 40px); margin: 0 auto; padding: 120px 0 140px; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 8.4rem); margin-bottom: 0.3em; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); }
.kicker { font: 500 0.8rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); box-shadow: 0 0 12px var(--fire); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 34em; color: #c9d1dc; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2em; }
.ticker { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; border-top: 1px solid var(--line); background: rgba(4, 6, 11, 0.6); backdrop-filter: blur(8px); overflow: hidden; padding: 16px 0; }
.ticker-run { display: flex; gap: 48px; width: max-content; animation: run 40s linear infinite; font: 500 0.85rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ticker-run span::before { content: "◆"; color: var(--fire); margin-right: 48px; font-size: 0.6em; vertical-align: 2px; }
@keyframes run { to { transform: translateX(-50%); } }

/* sections */
section { position: relative; }
.claw, .products, .how { padding: clamp(90px, 12vw, 160px) 0; }
.claw { overflow: hidden; background: radial-gradient(ellipse at 85% 20%, rgba(242, 106, 19, 0.13), transparent 55%), var(--ground); }
.claw::before, .how::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); opacity: 0.5; pointer-events: none; }
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.screen { margin: 0; position: relative; }
.screen video { width: 100%; display: block; border-radius: 16px; border: 1px solid rgba(255, 150, 80, 0.35); background: #000; aspect-ratio: 16 / 9; position: relative; z-index: 1; }
.screen-glow { position: absolute; inset: -12%; background: radial-gradient(ellipse, rgba(242, 106, 19, 0.45), transparent 65%); filter: blur(30px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.5; transform: scale(0.95); } }
.screen figcaption { font: 0.8rem var(--mono); color: var(--muted); margin-top: 14px; position: relative; z-index: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { background: var(--ground-2); padding: 28px 24px; }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { font: 0.8rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--fire-lift); }
.stat-note { grid-column: 1 / -1; margin: 0; padding: 12px 24px; background: var(--ground-2); font: 0.75rem var(--mono); }

.products { background: linear-gradient(to bottom, var(--ground), var(--ground-2)); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }
.card { --mx: 50%; --my: 50%; position: relative; padding: 34px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(242, 106, 19, 0.18), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.card:hover { border-color: rgba(242, 106, 19, 0.45); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.9rem; margin-top: 18px; }
.chip { font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; border: 1px solid; }
.chip-live { color: #7cf0b0; border-color: rgba(124, 240, 176, 0.35); background: rgba(124, 240, 176, 0.06); }
.chip-trial { color: var(--cyan); border-color: rgba(56, 214, 255, 0.35); background: rgba(56, 214, 255, 0.06); }
.chip-build { color: var(--ember); border-color: rgba(255, 179, 71, 0.35); background: rgba(255, 179, 71, 0.06); }

.build, .start { padding: clamp(110px, 14vw, 180px) 0; overflow: hidden; }
.band-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, var(--ground-2) 0%, rgba(4, 6, 11, 0.72) 25%, rgba(4, 6, 11, 0.72) 75%, var(--ground) 100%); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.pane { padding: 30px; border-radius: 18px; background: rgba(8, 11, 18, 0.66); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.1); }
.num { font: 500 0.85rem var(--mono); color: var(--fire); display: block; margin-bottom: 40px; }

.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; top: 9px; left: 0; height: 2px; width: calc(var(--fill, 0) * 100%); background: linear-gradient(90deg, var(--fire), var(--ember)); box-shadow: 0 0 14px var(--fire); transition: width 0.2s linear; }
.steps li { padding-top: 40px; position: relative; }
.steps li::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 2px solid var(--fire); box-shadow: 0 0 12px var(--fire); z-index: 1; }
.steps b { display: block; font-size: 1.5rem; margin-bottom: 8px; }
.steps span { color: var(--muted); }

.start-in { text-align: center; }
.start-in p { font-size: 1.2rem; max-width: 30em; margin: 0 auto 2em; color: #c9d1dc; }
.start h2 { font-size: clamp(2.8rem, 7vw, 5.6rem); }

.foot { border-top: 1px solid var(--line); padding: 34px 0; font-size: 0.9rem; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--fire-lift); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.seen { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar .btn-sm { margin-left: auto; }
  .two, .grid, .three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { top: 0; bottom: 0; left: 7px; width: 2px; height: auto; right: auto; }
  .steps::after { height: calc(var(--fill, 0) * 100%); width: 2px; bottom: auto; }
  .steps li { padding: 0 0 34px 44px; }
  .steps li::before { top: 4px; }
  .hero-in { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- added for the full site ---- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fire); color: #120700; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(242, 106, 19, 0.45)); }
.bar nav a[aria-current="page"] { color: var(--text); box-shadow: 0 2px 0 var(--fire); }
.menu { display: none; background: none; border: 1px solid var(--line); color: var(--text); font: 500 0.85rem var(--mono); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
/* The seasonal line sits just under the fixed header and under the drawer. */
.notice { position: fixed; inset: 70px 0 auto; z-index: 48; margin: 0; padding: 7px 20px; text-align: center; font-size: 0.86rem; line-height: 1.4; color: var(--text); background: rgba(10, 14, 23, 0.94); border-bottom: 1px solid rgba(242, 106, 19, 0.35); }
.notice a { color: var(--fire-lift); margin-left: 0.4em; white-space: nowrap; }
/* The header is 65px tall once the menu button replaces the links. */
@media (max-width: 980px) { .notice { top: 65px; } }
.drawer { position: fixed; inset: 64px 0 auto; z-index: 49; background: rgba(4, 6, 11, 0.97); border-bottom: 1px solid var(--line); padding: 12px 20px 24px; }
.drawer nav { display: grid; }
.drawer a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.1rem; }
.drawer a[aria-current="page"] { color: var(--fire-lift); }
.sect { padding: clamp(80px, 11vw, 150px) 0; overflow-x: clip; }
.alt { background: var(--ground-2); }
.narrow > * { max-width: 46rem; }
.narrow-p { max-width: 40em; }
.page-hero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; padding: 150px 0 90px; overflow: hidden; }
.page-hero.tall { min-height: 92svh; align-items: center; }
.page-hero.short { min-height: 0; padding: 150px 0 20px; background: radial-gradient(ellipse at 80% 0%, rgba(242, 106, 19, 0.15), transparent 60%); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); }
.page-hero .chip { display: inline-block; margin-bottom: 1.2em; }
.band { overflow: hidden; }
.film { pointer-events: none; }
.ticks { list-style: none; padding: 0; margin: 1.5em 0; }
.ticks li { position: relative; padding: 0 0 14px 34px; color: #c9d1dc; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 9px; border-left: 2px solid var(--fire); border-bottom: 2px solid var(--fire); transform: rotate(-45deg); filter: drop-shadow(0 0 6px var(--fire)); }
.ticks b { color: var(--text); }
.service { display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: start; }
.service-num { font: 700 clamp(4rem, 9vw, 8rem)/0.9 var(--display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(242, 106, 19, 0.7); text-shadow: 0 0 40px rgba(242, 106, 19, 0.25); }
.callout { padding: 32px; border-radius: 20px; background: var(--panel); border: 1px solid rgba(242, 106, 19, 0.3); box-shadow: 0 0 60px -20px rgba(242, 106, 19, 0.5); }
.callout p:last-child { margin-bottom: 0; }
.callout a, .prose a, .card h3 a { color: var(--fire-lift); }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--fire-lift); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 36px 0 28px; }
.tool { display: block; padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.3s, transform 0.3s; }
.tool:hover { border-color: rgba(242, 106, 19, 0.5); transform: translateY(-3px); }
.tool b { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.tool b::after { content: " ↗"; color: var(--fire); font-size: 0.85em; }
.tool span { color: var(--muted); font-size: 0.95rem; }
.about-logo { width: 100%; max-width: 420px; height: auto; justify-self: center; filter: drop-shadow(0 0 50px rgba(242, 106, 19, 0.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #c9d1dc; }
.prose blockquote { border-left: 3px solid var(--fire); margin: 1.5em 0; padding: 4px 0 4px 20px; }
.prose code { font: 0.9em var(--mono); background: var(--panel); padding: 2px 6px; border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot-brand p { margin-top: 12px; }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot-nav a { text-decoration: none; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.post-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s; }
.post-card:hover { border-color: rgba(242, 106, 19, 0.45); transform: translateY(-3px); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--ground-2); }
.post-card div { padding: 22px; }
.post-card h2 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.meta { font: 0.78rem var(--mono); color: var(--fire-lift); letter-spacing: 0.06em; text-transform: uppercase; }
.post-hero img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 18px; margin-top: 30px; border: 1px solid var(--line); }
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }

/* blog: a cyber post's picture as an advert, its slogan set over it in type
   (shared/shell.js heroAd). The gradient sits between picture and words so
   the slogan reads on any of the pictures, bright or dark. */
.ad { position: relative; margin: 30px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--ground-2); isolation: isolate; }
.ad::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4, 6, 11, 0.9) 0%, rgba(4, 6, 11, 0.62) 42%, rgba(4, 6, 11, 0) 78%), linear-gradient(0deg, rgba(4, 6, 11, 0.8) 0%, rgba(4, 6, 11, 0) 60%); }
.post-hero .ad > img, .post-card .ad > img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: 0; border: 0; border-radius: 0; }
.ad-panel { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 18px; padding: clamp(20px, 4vw, 48px); max-width: 66%; }
.ad-slogan { margin: 0; font: 700 clamp(1.6rem, 3.6vw, 2.9rem)/1.06 var(--display); letter-spacing: -0.03em; color: var(--text); text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65); }
.ad-mark { display: inline-flex; align-items: center; gap: 10px; font: 500 0.8rem/1 var(--mono); letter-spacing: 0.08em; color: var(--ember); text-decoration: none; padding: 7px 12px 7px 7px; border-radius: 999px; background: rgba(4, 6, 11, 0.6); border: 1px solid rgba(242, 106, 19, 0.35); }
a.ad-mark:hover { border-color: var(--fire-lift); color: var(--text); }
.post-hero .ad-mark img, .post-card .ad-mark img { width: 24px; height: 24px; margin: 0; border: 0; border-radius: 50%; aspect-ratio: auto; background: none; }
.ad-card { margin: 0; border: 0; border-radius: 0; }
.post-card .ad-card > img { aspect-ratio: 16 / 9; }
.ad-card .ad-panel { max-width: 100%; gap: 10px; padding: 16px 18px; }
.ad-card .ad-slogan { font-size: 1.2rem; }
.ad-card .ad-mark { font-size: 0.68rem; padding: 4px 9px 4px 4px; }
.post-card .ad-card .ad-mark img { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .ad-panel { max-width: 100%; gap: 10px; padding: 16px; }
  .ad-slogan { font-size: 1.3rem; }
  .ad-mark { font-size: 0.68rem; padding: 4px 9px 4px 4px; }
  .post-hero .ad-mark img { width: 18px; height: 18px; }
  .ad::after { background: linear-gradient(0deg, rgba(4, 6, 11, 0.92) 0%, rgba(4, 6, 11, 0.55) 55%, rgba(4, 6, 11, 0.15) 100%); }
}

/* Cindra */
.cindra { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.cindra-open { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid rgba(242, 106, 19, 0.55); background: rgba(10, 14, 23, 0.9); color: var(--text); font: 600 0.95rem var(--display); cursor: pointer; backdrop-filter: blur(10px); box-shadow: 0 10px 40px -10px rgba(242, 106, 19, 0.7); animation: beckon 4s ease-in-out infinite; }
@keyframes beckon { 50% { box-shadow: 0 10px 50px -6px rgba(242, 106, 19, 0.95); } }
.cindra-open img { border-radius: 50%; }
.cindra-panel { position: absolute; right: 0; bottom: 64px; width: min(380px, calc(100vw - 40px)); max-height: min(560px, calc(100svh - 110px)); display: flex; flex-direction: column; border-radius: 20px; background: rgba(8, 11, 18, 0.97); border: 1px solid rgba(242, 106, 19, 0.4); box-shadow: 0 30px 80px -20px #000, 0 0 50px -20px rgba(242, 106, 19, 0.6); overflow: hidden; }
.cindra-panel[hidden] { display: none; }
.cindra-head { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cindra-head span { color: var(--muted); font-size: 0.85rem; }
.cindra-close { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cindra-log { list-style: none; margin: 0; padding: 16px; overflow-y: auto; flex: 1; display: grid; gap: 10px; align-content: start; }
.cindra-log li { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; }
.cindra-log .me { justify-self: end; background: var(--fire); color: #120700; border-bottom-right-radius: 4px; }
.cindra-log .her { background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cindra-log .wait { color: var(--muted); font-style: italic; }
.cindra-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.cindra-form input { flex: 1; min-width: 0; background: var(--ground); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 0.95rem; }
.cindra-note { font-size: 0.75rem; padding: 0 16px 14px; margin: 0; }
.cindra-note a { color: var(--fire-lift); }

@media (max-width: 1100px) { .bar nav { gap: 16px; } .bar nav a { font-size: 0.85rem; } }
@media (max-width: 980px) {
  .bar nav, .bar .btn-sm { display: none; }
  .menu { display: inline-block; margin-left: auto; }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cindra-open span { display: none; }
  .cindra-open { padding: 8px; }
}
.tight { padding-top: 24px; }
.more { margin-top: 3em; }

/* free website check (/health-check, static/health-check.js) and its home-page section */
.hc-promo { padding: clamp(70px, 9vw, 120px) 0; background: radial-gradient(ellipse at 15% 50%, rgba(242, 106, 19, 0.12), transparent 60%), var(--ground); }
.hc-promo-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.hc-promo-in .cta { margin-top: 0; justify-content: flex-start; }
.hc-hero { padding-bottom: 40px; }
.hc-form { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 1.6em; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--panel); border: 1px solid rgba(242, 106, 19, 0.45); box-shadow: 0 0 50px -20px rgba(242, 106, 19, 0.7); }
.hc-form:focus-within { border-color: var(--fire-lift); }
.hc-prefix { font: 500 0.9rem var(--mono); color: var(--muted); }
.hc-form input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 1.05rem; padding: 10px 0; }
.hc-form input:focus { outline: none; }
.hc-form .btn { flex: none; cursor: pointer; border: 0; font: inherit; font-weight: 600; }
.hc-turnstile { margin-top: 14px; max-width: 640px; }
.hc-err { color: #ff8f80; min-height: 1.6em; margin: 12px 0 0; }
.hc-reassure { font-size: 0.92rem; max-width: 40em; }
.hc-small { font-size: 0.9rem; max-width: 46em; margin-top: 28px; }
.hc-small a { color: var(--fire-lift); }
.hc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hc-tiles .pane { padding: 24px; }
.hc-tiles h3 { font-size: 1.1rem; }
.hc-tiles p { font-size: 0.95rem; margin: 0; }
.hc-out { padding-top: 10px; padding-bottom: 20px; scroll-margin-top: 90px; }
.hc-out[hidden] { display: none; }
.hc-out .wrap { max-width: 900px; }
.hc-loading { padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.hc-loading-head { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.hc-steps { margin: 0; padding-left: 1.3em; }
.hc-steps li { color: var(--muted); opacity: 0.45; transition: opacity 0.4s, color 0.4s; }
.hc-steps li.on { opacity: 1; color: var(--text); }
.hc-card { padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.hc-summary { display: grid; grid-template-columns: 148px 1fr; gap: 28px; align-items: center; }
.hc-summary h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); overflow-wrap: anywhere; margin-bottom: 0.3em; }
.hc-ring { position: relative; width: 148px; height: 148px; }
.hc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hc-track { stroke: var(--line); }
.hc-arc.hc-good { stroke: #7cf0b0; }
.hc-arc.hc-mid { stroke: var(--ember); }
.hc-arc.hc-bad { stroke: #ff6b5b; }
.hc-grade { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hc-grade b { font-size: 3rem; line-height: 1; }
.hc-grade small { font: 0.8rem var(--mono); color: var(--muted); }
b.hc-good { color: #7cf0b0; }
b.hc-mid { color: var(--ember); }
b.hc-bad { color: #ff6b5b; }
.hc-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font: 0.85rem var(--mono); }
.hc-count::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: currentColor; }
.hc-count.hc-fail { color: #ff8f80; }
.hc-count.hc-warn { color: var(--ember); }
.hc-count.hc-pass { color: #7cf0b0; }
.hc-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 26px; }
.hc-bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; margin-bottom: 6px; }
.hc-bar-label span { font-family: var(--mono); color: var(--muted); }
.hc-track-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hc-fill { height: 100%; width: 0; border-radius: 99px; }
.hc-fill.hc-good { background: #7cf0b0; }
.hc-fill.hc-mid { background: var(--ember); }
.hc-fill.hc-bad { background: #ff6b5b; }
.hc-top, .hc-gate, .hc-cat { margin-top: 34px; }
.hc-top h3, .hc-gate h3 { font-size: 1.4rem; }
.hc-issue { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.hc-issue h4 { margin: 2px 0 4px; font-size: 1.05rem; }
.hc-issue p { margin: 0; overflow-wrap: anywhere; }
.hc-issue .hc-fix { margin-top: 8px; color: #c9d1dc; }
.hc-fix strong { color: var(--text); }
.hc-badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 1px solid currentColor; }
.hc-badge.hc-fail { color: #ff8f80; }
.hc-badge.hc-warn { color: var(--ember); }
.hc-badge.hc-pass { color: #7cf0b0; }
.hc-badge.hc-info { color: var(--muted); }
.hc-gate { padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid rgba(242, 106, 19, 0.35); box-shadow: 0 0 60px -24px rgba(242, 106, 19, 0.6); }
.hc-gate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.hc-field { margin: 0; display: grid; gap: 6px; }
.hc-field label { font-size: 0.88rem; color: var(--muted); }
.hc-field input { width: 100%; background: var(--ground); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; }
.hc-field input:focus { outline: none; border-color: var(--fire-lift); }
.hc-field:nth-child(3), .hc-consent, .hc-gate-form .hc-err, .hc-gate-form .btn { grid-column: 1 / -1; }
.hc-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.hc-consent input { margin-top: 5px; accent-color: var(--fire); width: 18px; height: 18px; flex: none; }
.hc-consent a { color: var(--fire-lift); }
.hc-gate-form .hc-err { margin: 0; min-height: 0; }
.hc-gate-form .btn { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.hc-ok { margin-top: 30px; padding: 14px 18px; border-radius: 14px; background: rgba(124, 240, 176, 0.06); border: 1px solid rgba(124, 240, 176, 0.3); color: #c9f7dc; overflow-wrap: anywhere; }
.hc-cat h3 { display: flex; justify-content: space-between; gap: 12px; font-size: 1.3rem; }
.hc-cat h3 span { font: 0.9rem var(--mono); color: var(--muted); }
.hc-passes summary { cursor: pointer; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); }
.hc-passes ul { margin: 0 0 10px; color: var(--muted); }
.hc-closing { margin-top: 36px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hc-closing h3 { font-size: 1.3rem; }
.hc-closing p { margin: 0; max-width: 34em; }
.hc-again { margin-top: 26px; cursor: pointer; border: 0; font: inherit; }
@media (max-width: 900px) {
  .hc-promo-in { grid-template-columns: 1fr; }
  .hc-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hc-form { flex-wrap: wrap; border-radius: 20px; padding: 10px 10px 10px 16px; }
  .hc-form input { flex-basis: 60%; }
  .hc-form .btn { width: 100%; justify-content: center; }
  .hc-tiles, .hc-bars, .hc-gate-form { grid-template-columns: 1fr; }
  .hc-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hc-counts { justify-content: center; }
  .hc-card, .hc-gate { padding: 20px; }
  .hc-gate-form .btn { justify-self: stretch; justify-content: center; }
}
.cindra-log .her a { color: var(--fire-lift); word-break: break-all; }


/* blog: Cindra's byline and the share row */
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -6px 0 6px; color: var(--muted); font-size: 0.95rem; }
.post-hero .byline img { width: 28px; height: 28px; aspect-ratio: auto; margin: 0; border: 0; border-radius: 50%; }
.byline b { color: var(--text); }
.ask-cindra { background: none; border: 1px solid rgba(242, 106, 19, 0.5); color: var(--fire-lift); border-radius: 999px; padding: 6px 14px; font: 500 0.85rem var(--display); cursor: pointer; }
.ask-cindra:hover { background: rgba(242, 106, 19, 0.1); }
.share { margin: 3em 0 1em; padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.share-label { font: 500 0.78rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fire-lift); margin: 0 0 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); text-decoration: none; font: 500 0.9rem var(--display); cursor: pointer; }
.share-btn:hover { border-color: var(--fire); color: var(--fire-lift); }
.share-native { background: var(--fire); color: #120700; border-color: var(--fire); }
.share-native[hidden] { display: none; }
/* the same row at the foot of a page */
.share-sect { padding: 10px 0 70px; }
.share-sect .share { margin: 0; }


/* home: local-first */
.local-first { margin-top: 90px; }
.local-note { margin-top: 22px; font-size: 0.9rem; max-width: 52em; }

/* the Cardiff pages: questions and plain answers, one under another */
.local-qa h3 { margin-top: 1.8em; font-size: 1.2rem; }
.local-qa h3 + p { margin-top: 0.5em; color: #c9d1dc; max-width: 40em; }
.service .link-arrow + br + .link-arrow { margin-top: 0.6em; }
