/* Flexisoft 2026 redesign. Theme follows the OS setting (light when unknown) until the visitor picks one with the toggle; dark = :root[data-theme="dark"], choice saved in localStorage "theme".
    No build step, no CDN: tokens + components, mobile first.
   Structure follows the lekto-web stylesheet; palette moves from moss/sand to
   ink navy + logo green, with code-editor accents for the "programming + business" theme. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #3d7a14;          /* logo green, darkened for AA text/buttons on white */
  --brand-strong: #2f6210;
  --brand-logo: #5da227;
  --brand-bright: #8fdc4f;   /* on dark backgrounds */
  --brand-soft: #eef6e5;
  --sky: #3aa0ff;
  --night-1: #070c18;
  --night-2: #0c1426;
  --night-3: #12213b;
  --bg: #ffffff;
  --bg-alt: #f5f7f4;
  --surface: #ffffff;
  --line: #e3e8e1;
  --text: #0e1525;
  --muted: #535c6e;
  --on-dark: #ffffff;
  --on-dark-muted: #aab4c8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(14 21 37 / 5%), 0 14px 34px -14px rgb(14 21 37 / 18%);
  --shadow-lg: 0 34px 80px -24px rgb(7 12 24 / 50%);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --header-bg: rgb(255 255 255 / 86%);
  --hero-bg:
    radial-gradient(900px 520px at 88% 6%, rgb(58 160 255 / 13%), transparent 60%),
    radial-gradient(760px 520px at 6% 92%, rgb(93 162 39 / 16%), transparent 60%),
    linear-gradient(170deg, #ffffff 0%, #f6faf2 55%, #edf5e6 100%);
  --hero-dot: rgb(14 21 37 / 16%);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand: #8fdc4f;
  --brand-strong: #a6e86e;
  --brand-soft: #1b2b14;
  --bg: #0a101d;
  --bg-alt: #0e1627;
  --surface: #121b2f;
  --line: #22304a;
  --text: #eef2f8;
  --muted: #a3adc2;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 14px 34px -14px rgb(0 0 0 / 55%);
  --header-bg: rgb(10 16 29 / 78%);
  --hero-bg:
    radial-gradient(900px 520px at 88% 6%, rgb(58 160 255 / 22%), transparent 60%),
    radial-gradient(760px 520px at 6% 92%, rgb(93 162 39 / 22%), transparent 60%),
    linear-gradient(170deg, var(--night-1) 0%, var(--night-2) 60%, var(--night-3) 100%);
  --hero-dot: rgb(255 255 255 / 11%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body.v2 {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.v2 img, .v2 svg { display: block; max-width: 100%; height: auto; }
.v2 a { color: var(--brand); text-underline-offset: 3px; }
.v2 h1, .v2 h2, .v2 h3 { line-height: 1.12; letter-spacing: -0.028em; margin: 0 0 .5em; text-wrap: balance; }
.v2 h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
.v2 h2, .v2 .h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.v2 h3, .v2 .h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.015em; }
.v2 .local-card .h3 { font-size: 1.5rem; }
.v2 p { margin: 0 0 1em; text-wrap: pretty; }
.v2 :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.v2 main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text) !important; text-decoration: none; font-weight: 800; font-size: 1.42rem; letter-spacing: -0.02em; }
.brand img { width: 44px; height: auto; transform: rotate(-6deg); }
.nav { display: none; gap: 2px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* "Services" dropdown (native <details>, closed by v2.js on outside click / Esc). */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 650; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover, .nav-drop[open] summary { color: var(--text); background: var(--bg-alt); }
.nav-drop summary svg { transition: transform .15s; }
.nav-drop[open] summary svg { transform: rotate(180deg); }
.nav-drop-panel { position: absolute; left: 0; top: calc(100% + 10px); z-index: 60; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; width: min(620px, 80vw); padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.nav-drop-col ul { list-style: none; margin: 0; padding: 0; }
.nav .nav-drop-label { display: block; margin: 0 0 6px; padding: 0 10px; background: none; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.nav a.nav-drop-label:hover { background: none; text-decoration: underline; }
.nav .nav-drop-col li a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--text); font-size: .94rem; font-weight: 600; line-height: 1.3; }
.nav .nav-drop-col li a:hover { background: var(--brand-soft); }
.nav .nav-drop-all { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 6px; padding: 8px 10px; border-radius: 10px; color: var(--brand); font-size: .9rem; font-weight: 700; }
.nav .nav-drop-all .ico { width: 16px; height: 16px; }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 750; font-size: .85rem; padding: 8px 10px; border-radius: 999px; display: flex; gap: 6px; align-items: center; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--text); background: var(--bg-alt); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--brand-soft); }
.lang li small { color: var(--muted); text-transform: uppercase; font-weight: 700; }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.theme-toggle:hover { color: var(--text); background: var(--bg-alt); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: inline-flex; background: none; border: 0; color: var(--text); padding: 8px; border-radius: 10px; cursor: pointer; }
.mobile-nav { display: none; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
.mobile-nav a:not(.btn) { display: block; color: var(--text); text-decoration: none; font-weight: 650; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; width: 100%; }
.mobile-drop { border-bottom: 1px solid var(--line); }
.mobile-drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; color: var(--text); font-weight: 650; padding: 12px 4px; }
.mobile-drop summary::-webkit-details-marker { display: none; }
.mobile-drop summary svg { color: var(--muted); transition: transform .15s; }
.mobile-drop[open] summary svg { transform: rotate(180deg); }
.mobile-sub { padding: 0 0 12px 14px; }
.mobile-nav .mobile-sub a { padding: 9px 4px; border-bottom: 0; font-size: .94rem; font-weight: 600; color: var(--muted); }
.mobile-nav .mobile-sub-label { display: block; margin: 10px 0 2px; padding: 0 4px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.mobile-nav .mobile-sub a.mobile-sub-label { padding: 0 4px; margin-top: 16px; color: var(--brand); font-size: .72rem; font-weight: 700; }
.mobile-nav .mobile-sub a.mobile-sub-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--brand); font-weight: 700; }
.mobile-sub-all .ico { width: 16px; height: 16px; }
.header-cta { display: none !important; }
@media (min-width: 960px) {
  .nav { display: flex; margin-left: clamp(24px, 3vw, 44px); }
  .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
  .header-cta { display: inline-flex !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 750 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff !important; box-shadow: 0 10px 24px -10px rgb(61 122 20 / 70%); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { color: var(--text) !important; border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.04rem; }
:root[data-theme="dark"] .btn-primary { color: #0b1405 !important; box-shadow: 0 10px 28px -12px rgb(143 220 79 / 55%); }

/* ---------- Eyebrows ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.eyebrow .slash { opacity: .55; }
.eyebrow-pill { color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-logo); box-shadow: 0 0 0 4px rgb(93 162 39 / 18%); }
.eyebrow-pill.on-dark { color: var(--on-dark-muted); background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 12%); box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); margin-top: -69px; padding: calc(69px + clamp(36px, 6vw, 80px)) 0 clamp(44px, 6vw, 80px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* Dot matrix (like a design canvas / graph paper) instead of a line grid. */
  background-image: radial-gradient(circle, var(--hero-dot) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.3vw, 3.35rem); }
.hero h1 .accent { display: block; color: var(--brand); }
/* Two-level heading: a small kicker ("Software house") above a large statement
   with the key phrase in green ("Mobile and web app development"). */
.hero .hero-title { margin-bottom: .5em; }
.hero .hero-kicker { display: block; margin-bottom: .5em; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; color: var(--muted); }
.hero .hero-statement { display: block; font-size: clamp(2.4rem, 4.8vw, 3.8rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; color: var(--text); }
.hero .hero-statement .accent { display: inline; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 36em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .94rem; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { color: var(--brand); }
.trust.on-dark { flex-direction: column; color: var(--on-dark-muted); }
.trust.on-dark .ico { color: var(--brand-bright); }

.hero-visual { position: relative; padding: 28px 0 40px; }
.editor {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #0f1a2e, #0a1222);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  color: #d7deea; font-family: var(--mono); font-size: clamp(.74rem, 1.6vw, .86rem);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.editor-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgb(255 255 255 / 4%); border-bottom: 1px solid rgb(255 255 255 / 7%); font-size: .78rem; }
.editor-bar .dots { display: inline-flex; gap: 6px; }
.editor-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; }
.editor-bar .dots i:nth-child(2) { background: #ffbd2e; }
.editor-bar .dots i:nth-child(3) { background: #28c941; }
.editor-tab { color: #fff; background: rgb(255 255 255 / 8%); padding: 4px 10px; border-radius: 6px; }
.editor-branch { margin-left: auto; color: #8a96ab; }
.editor-code { margin: 0; padding: 18px 18px 18px 0; line-height: 1.75; overflow-x: auto; white-space: pre; }
.editor-code .ln { display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: #4d5a72; user-select: none; }
.editor-code .k { color: #c792ea; }
.editor-code .t { color: #7cc4ff; }
.editor-code .f { color: #82e0aa; }
.editor-code .s { color: #f6c177; }
.editor-code .n { color: #ff9e64; }
.editor-code .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; background: var(--brand-bright); margin-left: 2px; animation: blink 1.1s steps(2, start) infinite; }
.editor-status { display: flex; justify-content: space-between; padding: 8px 14px; border-top: 1px solid rgb(255 255 255 / 7%); color: #8a96ab; font-size: .72rem; }
.editor-status .ok { color: var(--brand-bright); }
@keyframes blink { to { visibility: hidden; } }

.float-card {
  position: absolute; z-index: 2;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: .86rem;
  animation: float 6s ease-in-out infinite;
}
.float-card .label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.float-card.sprint { top: 0; right: 4%; width: 210px; }
.float-card.sprint .bar { display: block; height: 8px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.float-card.sprint .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-logo), var(--brand-bright)); }
.float-card.toast { left: -4%; bottom: 8px; display: flex; align-items: center; gap: 10px; animation-delay: -2s; }
.float-card.toast .toast-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.float-card.toast strong { display: block; font-size: .92rem; }
.float-card.toast small { color: var(--muted); }
.float-card.apps { right: -2%; bottom: -6px; animation-delay: -4s; }
.app-stack { display: flex; }
.app-stack img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--surface); margin-left: -8px; box-shadow: 0 4px 10px -4px rgb(0 0 0 / 30%); }
.app-stack img:first-child { margin-left: 0; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-visual { padding: 40px 0 56px 12px; }
}
@media (max-width: 959px) {
  .editor { transform: none; }
  .float-card.toast { left: 0; }
  .float-card.apps { right: 0; }
  .float-card.sprint { right: 0; }
}
@media (max-width: 520px) {
  .float-card.apps { display: none; }
  .float-card.sprint { width: 170px; top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card, .editor-code .caret { animation: none; }
  .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Logos ---------- */
.logos { border-bottom: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.logos-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; padding-block: 26px; }
.logos-label { margin: 0; flex: none; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* Infinite logo carousel: the list is rendered twice, the track slides by half its width. */
.marquee {
  flex: 1 1 320px; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; padding-right: 56px; }
.marquee-track img { height: 34px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: opacity .2s, filter .2s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 719px) {
  .logos-inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .marquee { flex-basis: auto; width: 100%; }
  .marquee-track li { padding-right: 40px; }
  .marquee-track img { height: 28px; }
  .eyebrow-pill { font-size: .7rem; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}
:root[data-theme="dark"] .marquee-track img { filter: grayscale(1) invert(1) brightness(1.4); opacity: .55; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 5vw, 68px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head-row > div { max-width: 44rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }

.cards { display: grid; gap: 18px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); }
.card-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card-icon .ico { width: 24px; height: 24px; }
.card-icon--sm { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 14px; }
.card-icon--sm .ico { width: 20px; height: 20px; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 750; text-decoration: none; color: var(--brand); }
.card-link .ico { transition: transform .15s; }
.card-link:hover .ico, .card:hover .card-link .ico, .post:hover .card-link .ico { transform: translateX(3px); }

/* ---------- Work ---------- */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
.work-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%;
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--text) !important; transition: transform .2s, box-shadow .2s;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card img { width: 64px; height: 64px; margin-bottom: 14px; object-fit: cover; }
.work-card img.app-icon { border-radius: 15px; box-shadow: 0 8px 18px -8px rgb(0 0 0 / 35%); }
.work-card img.app-shot { border-radius: 12px; object-position: top; }
.work-cat { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: var(--brand); margin-bottom: 2px; }
.work-cat .slash { opacity: .55; }
.work-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.work-sub { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.work-more { border-style: dashed; justify-content: center; }
.work-more .card-icon { margin-bottom: 14px; }
.work-more .work-name { display: inline-flex; align-items: center; gap: 6px; }
.work-more .work-name .ico { width: 16px; height: 16px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps .num { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 8px; margin-bottom: 16px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (min-width: 1080px) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -14px; width: 10px; height: 2px; background: var(--line); }
}

/* ---------- Pricing ---------- */
.tiers { display: grid; gap: 16px; }
@media (min-width: 680px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .tiers { grid-template-columns: repeat(5, 1fr); } .tier { padding: 22px 20px; } .tier-price { font-size: 1.32rem; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tier h3 { font-size: 1rem; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.tier-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.tier p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }
.tier.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.tiers-foot { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.tiers-foot p { margin: 0; font-size: .95rem; max-width: 46rem; }

/* ---------- Stack + local ---------- */
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-family: var(--mono); font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--line); }
.local-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); }
.local-card p { color: var(--muted); }
.cities { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cities li { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 18px; }
@media (min-width: 860px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s, transform .2s; }
.post:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post time { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.post h3 a { color: var(--text); text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 750; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--brand); font-size: 1.2rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 46rem; }

/* ---------- CTA band + form ---------- */
.cta-band {
  position: relative; overflow: hidden; color: var(--on-dark);
  padding-block: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(800px 480px at 90% 0%, rgb(58 160 255 / 20%), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgb(93 162 39 / 26%), transparent 60%),
    linear-gradient(160deg, var(--night-1), var(--night-2) 55%, var(--night-3));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgb(255 255 255 / 10%) 1.1px, transparent 1.6px);
  background-size: 22px 22px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.cta-grid { position: relative; display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .cta-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--on-dark-muted); font-size: 1.1rem; }
.cta-mail { display: flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--on-dark-muted); }
.cta-mail a { color: #fff; font-weight: 700; }
.form-card { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg); }

/* Estimate form partial (shared with the old base, which styles it with Tailwind utilities). */
#estimate-target .grid { display: grid; }
#estimate-target .gap-5 { gap: 18px; }
#estimate-target .mt-5 { margin-top: 18px; }
#estimate-target .mt-6 { margin-top: 22px; }
#estimate-target .mt-3 { margin-top: 12px; }
#estimate-target .flex { display: flex; flex-wrap: wrap; }
#estimate-target .items-center { align-items: center; }
#estimate-target .justify-between { justify-content: space-between; }
#estimate-target .gap-4 { gap: 16px; }
#estimate-target .text-sm { font-size: .86rem; color: var(--muted); margin: 0; flex: 1 1 220px; }
@media (min-width: 640px) {
  #estimate-target .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #estimate-target .sm\:col-span-2 { grid-column: span 2 / span 2; }
}
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-weight: 700; font-size: .92rem; }
.field-hint { margin: -2px 0 2px; font-size: .8rem; color: var(--muted); }
#estimate-target input[type="text"], #estimate-target input[type="email"], #estimate-target input[type="number"],
#estimate-target input:not([type]), #estimate-target select, #estimate-target textarea {
  width: 100%; font: 500 1rem/1.4 var(--font); color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
#estimate-target textarea { resize: vertical; min-height: 120px; }
#estimate-target input:focus, #estimate-target select:focus, #estimate-target textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
#estimate-target [aria-invalid="true"] { border-color: #d64545; }
.field-error { margin: 0; color: #c23b3b; font-size: .84rem; font-weight: 600; }
.form-error-summary { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #8f2424; font-weight: 650; }
.checkbox-row { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 750 1rem/1 var(--font); cursor: pointer; border: 1px solid transparent; }
.hero-cta--solid { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgb(61 122 20 / 70%); }
.hero-cta--solid:hover { background: var(--brand-strong); }
.hero-cta--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.success-panel .font-display { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.success-panel .eyebrow { margin-bottom: 8px; }
:root[data-theme="dark"] .hero-cta--solid { color: #0b1405; }
:root[data-theme="dark"] .form-error-summary { background: #3a1717; color: #ffb4b4; }

/* ---------- Subpage hero + breadcrumbs ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--hero-bg); margin-top: -69px; padding: calc(69px + clamp(20px, 3vw, 36px)) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--hero-dot) 1.1px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero-grid { display: grid; gap: 40px; align-items: center; margin-top: clamp(20px, 3vw, 36px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 22ch; }
.page-hero h1 .accent { color: var(--brand); }
.page-hero .lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 40em; }
.page-hero .lead.prose p { color: var(--muted); }
.page-hero .hero-actions { margin: 26px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); font-weight: 650; }

/* ---------- Rich text (Wagtail RichTextField output) ---------- */
.prose { color: var(--text); max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--brand); }
.prose strong, .prose b { color: var(--text); font-weight: 750; }
.prose a { color: var(--brand); font-weight: 650; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); font-size: 1.1rem; color: var(--text); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-alt); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose pre { font-family: var(--mono); font-size: .88rem; line-height: 1.7; background: #0f1a2e; color: #d7deea; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; margin: 1.4em 0; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 750; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose-wide { max-width: none; }

/* ---------- Media + lightbox ---------- */
.media-frame { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 10px; box-shadow: var(--shadow); }
.media-frame img { width: 100%; border-radius: calc(var(--radius) - 8px); object-fit: cover; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(7 12 24 / 82%); backdrop-filter: blur(4px); }
.lightbox img { max-width: 100%; max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox figcaption, .lightbox p { color: #e8edf5; text-align: center; margin: 12px 0 0; font-size: .95rem; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #0e1525; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.lightbox-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { margin: 0; }
.gallery-item .lightbox-trigger { overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-alt); }
.gallery-item .lightbox-trigger img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: transform .3s; }
.gallery-item .lightbox-trigger:hover img { transform: scale(1.03); }
.gallery-item figcaption { margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* ---------- Services ---------- */
.svc-intro { padding-block: clamp(32px, 4.5vw, 56px) 0; }
.svc-list { display: grid; gap: 18px; }
@media (min-width: 860px) { .svc-list { grid-template-columns: repeat(2, 1fr); } }
.svc-card { padding: 0; overflow: hidden; }
.svc-card-body { display: flex; flex-direction: column; gap: 12px; padding: 28px; flex: 1; }
.svc-card-body .card-icon { margin-bottom: 4px; }
.svc-card-body h2, .svc-card-body h3 { font-size: 1.4rem; margin: 0; }
.svc-card-body .prose { max-width: none; }

.svc-parts { display: grid; gap: 18px; }
.svc-part { display: grid; gap: 22px; padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.svc-part-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.svc-part-icon svg { width: 32px; height: 32px; }
.svc-part h3 { font-size: 1.4rem; margin: 0 0 .6em; }
.svc-part .prose { max-width: none; }
@media (min-width: 760px) {
  .svc-part { grid-template-columns: 64px 1fr; gap: 32px; align-items: start; }
}
.section-alt .svc-part { background: var(--surface); }

.v2 .svc-sub { font-family: var(--mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 24px 0 12px; }
.svc-stack { display: grid; gap: 14px; }
@media (min-width: 640px) { .svc-stack { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.svc-stack-item { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.svc-stack-item .eyebrow { margin-bottom: 6px; }
.svc-stack-item h3 { font-size: 1.1rem; margin: 0 0 .4em; }
.svc-stack-item .prose { max-width: none; font-size: .95rem; }

.svc-industries { display: grid; gap: 18px; }
@media (min-width: 680px) { .svc-industries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .svc-industries { grid-template-columns: repeat(3, 1fr); } }
.svc-industry .card-icon { margin-bottom: 16px; }
.svc-industry h3 { font-size: 1.3rem; margin: 0 0 .5em; }
.svc-industry .prose { max-width: none; margin-bottom: 18px; }
.svc-industries-intro { margin-bottom: 28px; }

.svc-body { display: grid; gap: 32px; }
.svc-body h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0 0 .6em; }
.svc-quote { margin: 0; padding: 22px 26px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.15rem; font-weight: 650; color: var(--text); }

/* ---------- Portfolio ---------- */
.pf-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pf-grid { grid-template-columns: repeat(3, 1fr); } }
.pf-card { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.pf-card-media { display: flex; align-items: center; justify-content: flex-start; margin-bottom: 22px; }
.pf-card-media img { width: 112px; height: 112px; object-fit: cover; }
.pf-card-media img.app-icon { border-radius: 25px; box-shadow: 0 14px 28px -12px rgb(0 0 0 / 40%); }
.pf-card-media img.app-shot { border-radius: 16px; object-position: top; border: 1px solid var(--line); }
.pf-card .eyebrow { margin-bottom: 8px; }
.pf-card h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.pf-card .prose { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.pf-card .prose p { color: var(--muted); }
.pf-card .card-link { margin-top: auto; }
.pf-card:hover .card-link .ico { transform: translateX(3px); }
.pf-card { position: relative; }
.pf-card-title { color: var(--text) !important; text-decoration: none; }
.pf-card-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pf-card:hover .pf-card-title { color: var(--brand) !important; }
.pf-card-summary { color: var(--muted); font-size: .95rem; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.pf-list.section { padding-top: clamp(32px, 4vw, 52px); }
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); }
.pf-filters[hidden] { display: none; }
.pf-filter { min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 650 .95rem/1 var(--font); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.pf-filter:hover { color: var(--text); border-color: var(--muted); }
.pf-filter[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.pf-grid > li[hidden] { display: none; }
@media (max-width: 520px) { .pf-filters { gap: 6px; } .pf-filter { min-height: 38px; padding: 0 9px; font-size: .86rem; } }
.pf-more { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); }
.pf-more .card-icon { margin: 0; }
.pf-more-text { flex: 1 1 320px; }
.pf-more-text h2 { font-size: 1.3rem; margin: 0 0 4px; }
.pf-more-text p { margin: 0; color: var(--muted); font-size: .97rem; }
.pf-intro { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .pf-intro.has-icon { grid-template-columns: auto 1fr; gap: 48px; } }
.pf-appicon { width: 160px; height: 160px; border-radius: 36px; object-fit: cover; box-shadow: 0 24px 44px -18px rgb(0 0 0 / 45%); }
@media (min-width: 760px) { .pf-appicon { width: 220px; height: 220px; border-radius: 50px; } }
.pf-shot { width: 150px; height: auto; border-radius: 26px; border: 6px solid #0f1a2e; box-shadow: 0 24px 44px -18px rgb(0 0 0 / 45%); }
@media (min-width: 760px) { .pf-shot { width: 200px; border-radius: 32px; } }
.pf-gallery { margin-top: 40px; }
.pf-step-sub { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.pf-step h3 { font-size: 1.1rem; margin: 0 0 8px; }
.pf-step .prose p { font-size: .95rem; color: var(--muted); }
.pf-step-preview { margin-top: 14px; }
.pf-card-item h3 { font-size: 1.1rem; margin: 0 0 8px; }
.pf-card-item .eyebrow { margin-bottom: 8px; }
.pf-process .steps { grid-template-columns: 1fr; }
@media (min-width: 720px) { .pf-process .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pf-process .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Blog ---------- */
.blog-intro { margin-bottom: 36px; }
.blog-post-summary { flex: 1; color: var(--muted); font-size: .95rem; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.blog-meta .card-icon--sm { margin: 0; }
.blog-meta-text { display: flex; flex-direction: column; line-height: 1.3; }
.blog-cat { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.blog-meta time { margin: 0; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.blog-article { max-width: 70ch; margin: 0 auto; }
.blog-article .prose { max-width: none; }
.blog-article > * + * { margin-top: 1.4em; }
.blog-sections { display: grid; gap: 20px; margin-top: 40px; }
.blog-section { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.blog-section h3 { margin: 0 0 .5em; font-size: 1.3rem; }
.blog-section .prose { max-width: none; }
.blog-section img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
@media (min-width: 860px) { .blog-section { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.blog-gallery-wrap { margin-top: 40px; }
.blog-code-block { margin: 1.4em 0; border-radius: var(--radius-sm); overflow: hidden; background: #0f1a2e; }
.blog-code-block__meta { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #8ea0bd; padding: 8px 20px; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.blog-code-block pre { margin: 0; border-radius: 0; }
.blog-quote-block { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--brand); }
.blog-quote-block__text { font-size: 1.2rem; font-weight: 600; color: var(--text); margin: 0; }
.blog-quote-block__author { margin-top: 8px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.blog-inline-image { margin: 1.6em 0; }
.blog-inline-image .lightbox-trigger { border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; }
.blog-inline-image img { width: 100%; height: auto; display: block; margin: 0; border-radius: 0; }
.blog-inline-image figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }

/* ---------- About, contact, standard, error pages ---------- */
.pg-cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pg-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pg-cards--4 { grid-template-columns: repeat(4, 1fr); } }
.pg-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.pg-card .eyebrow { margin-bottom: 10px; }
.pg-steps { grid-template-columns: 1fr; }
@media (min-width: 720px) { .pg-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .pg-steps { grid-template-columns: repeat(2, 1fr); } .pg-steps li::after { display: none !important; } }
.pg-steps h3 { margin: 0 0 10px; font-size: 1.3rem; }
.pg-steps .prose { max-width: none; }
.pg-contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .pg-contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }
.pg-contact-list { display: grid; gap: 16px; }
.pg-contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s, box-shadow .15s; }
.pg-contact-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.pg-contact-card .card-icon { margin: 0; flex: none; }
.pg-contact-card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.pg-contact-card p { margin: 6px 0 0; color: var(--muted); }
.pg-contact-card a { font-weight: 750; font-size: 1.05rem; color: var(--brand); word-break: break-word; }
.pg-summary { font-size: 1.12rem; max-width: 760px; }
.pg-summary p { color: var(--text); }
.pg-body { max-width: 820px; }
.pg-body > * + * { margin-top: 0; }
.pg-block h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 18px; }
.pg-quote { max-width: 820px; margin: 0; padding: 8px 0 8px 24px; border-left: 4px solid var(--brand); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 650; color: var(--text); }
.pg-error { padding-block: clamp(40px, 6vw, 80px); }
.pg-error-panel { max-width: 720px; margin-inline: auto; text-align: center; }
.pg-error-panel h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 16px; }
.pg-error-panel .lead { color: var(--muted); font-size: 1.1rem; margin: 0 auto 28px; max-width: 34em; }
.pg-error-panel .hero-actions { justify-content: center; }
.pg-error-panel .eyebrow { justify-content: center; }

.blog-sections--flush { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-1); color: var(--on-dark-muted); padding-top: 56px; }
.site-footer .brand { color: #fff !important; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 14px; max-width: 26rem; font-size: .95rem; }
.site-footer h2 { font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgb(255 255 255 / 8%); font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 859px) {
  .site-footer { padding-top: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 32px; }
  .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer ul { gap: 2px; }
  .site-footer ul a { display: inline-block; padding: 6px 0; }
  .footer-bottom { flex-direction: column; gap: 6px; padding-block: 20px 28px; }
}
