/* Wizardtec — site styles.
   Type: Archivo (variable width) for display and text, set heavier for the
   accent word in headlines, JetBrains Mono for labels and data.
   Colour: warm paper and ink with one electric ultramarine accent and a flame for alerts. */

:root {
  --bg: #f2efe8;
  --bg-2: #e9e5db;
  --bg-3: #dfdace;
  --fg: #0e0e0c;
  --fg-2: #46453f;
  --mute: #78756c;
  --line: rgba(14, 14, 12, 0.13);
  --line-2: rgba(14, 14, 12, 0.3);
  --accent: #2a2df5;
  --accent-2: #1b1ec4;
  --accent-fg: #ffffff;
  --accent-soft: rgba(42, 45, 245, 0.09);
  --hot: #ff5a1f;
  --ok: #0f9d58;
  --inv-bg: #0e0e0c;
  --inv-bg-2: #19191a;
  --inv-fg: #ece9e1;
  --inv-mute: #8e8b83;
  --inv-line: rgba(236, 233, 225, 0.14);
  --grain-op: 0.06;
  --f-d: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --hdr: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0c;
    --bg-2: #161615;
    --bg-3: #1f1f1d;
    --fg: #ece9e1;
    --fg-2: #bdb9af;
    --mute: #8e8b83;
    --line: rgba(236, 233, 225, 0.12);
    --line-2: rgba(236, 233, 225, 0.28);
    --accent: #6064ff;
    --accent-2: #8487ff;
    --accent-soft: rgba(96, 100, 255, 0.14);
    --inv-bg: #e9e5db;
    --inv-bg-2: #dfdace;
    --inv-fg: #0e0e0c;
    --inv-mute: #5f5d56;
    --inv-line: rgba(14, 14, 12, 0.14);
    --grain-op: 0.08;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0c;
  --bg-2: #161615;
  --bg-3: #1f1f1d;
  --fg: #ece9e1;
  --fg-2: #bdb9af;
  --mute: #8e8b83;
  --line: rgba(236, 233, 225, 0.12);
  --line-2: rgba(236, 233, 225, 0.28);
  --accent: #6064ff;
  --accent-2: #8487ff;
  --accent-soft: rgba(96, 100, 255, 0.14);
  --inv-bg: #e9e5db;
  --inv-bg-2: #dfdace;
  --inv-fg: #0e0e0c;
  --inv-mute: #5f5d56;
  --inv-line: rgba(14, 14, 12, 0.14);
  --grain-op: 0.08;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-d);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 300;
  pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.lbl {
  font-family: var(--f-m);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.mute { color: var(--mute); }
.d1, .d2, .d3, .d4 {
  font-family: var(--f-d);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.d1 { font-size: clamp(54px, 11.6vw, 212px); line-height: 0.86; letter-spacing: -0.055em; }
.d2 { font-size: clamp(42px, 7.4vw, 128px); }
.d3 { font-size: clamp(34px, 4.8vw, 76px); line-height: 0.95; letter-spacing: -0.04em; }
.d4 { font-size: clamp(26px, 2.8vw, 42px); line-height: 1.02; letter-spacing: -0.03em; }
/* The emphasised word in a headline: same face, heavier, no italics. */
.d1 em, .d2 em, .d3 em, .d4 em, .ser {
  font-style: normal;
  font-weight: 800;
}
.acc { color: var(--accent); }
.lede { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.38; letter-spacing: -0.012em; color: var(--fg-2); max-width: 34ch; }
.lede.wide { max-width: 52ch; }
.prose p { max-width: 64ch; color: var(--fg-2); }
.prose p + p { margin-top: 1em; }

/* Lines that rise into place: <span class="ln"><span>text</span></span> */
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ln > span { display: inline-block; }
.js .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .is-in .ln > span, .js .ln.is-in > span { transform: none; }
.ln:nth-child(2) > span { transition-delay: 0.08s; }
.ln:nth-child(3) > span { transition-delay: 0.16s; }
.ln:nth-child(4) > span { transition-delay: 0.24s; }

/* Content is visible without script; site.js adds .js to <html> before anything is hidden. */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: 0.08s; }
.rv[data-d="2"] { transition-delay: 0.16s; }
.rv[data-d="3"] { transition-delay: 0.24s; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--fg);
  --b-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--accent-fg); }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn.ghost { --b-bg: transparent; --b-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.acc-b { --b-bg: var(--accent); --b-fg: var(--accent-fg); }
.btn.acc-b::before { background: var(--fg); }
.btn.acc-b:hover { color: var(--bg); }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14px; }
.arr { width: 14px; height: 14px; flex: none; }

.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
  padding-bottom: 2px;
}
.link-u:hover { background-size: 100% 1px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color 0.3s, color 0.3s; }
.tlink:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--hdr);
  transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-stretch: 115%; font-size: 21px; letter-spacing: -0.04em; }
.logo svg { width: 26px; height: 26px; transition: transform 0.8s var(--ease); }
.logo:hover svg { transform: rotate(90deg); }
.nav { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.nav a { position: relative; padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; transition: background-color 0.25s, color 0.25s; }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { background: var(--fg); color: var(--bg); }
.hdr-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .hdr-tools { margin-left: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.25s, box-shadow 0.25s; }
.icon-btn:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); font-size: 14px; transition: box-shadow 0.25s, color 0.25s; }
.search-btn:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); }
.search-btn svg { width: 16px; height: 16px; }
.kbd { font-family: var(--f-m); font-size: 11px; padding: 3px 7px; border-radius: 6px; background: var(--bg-2); color: var(--fg-2); }
.menu-btn { display: none; }
.theme-ico-moon { display: none; }
:root[data-theme="dark"] .theme-ico-sun { display: none; }
:root[data-theme="dark"] .theme-ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-ico-sun { display: none; }
  :root:not([data-theme="light"]) .theme-ico-moon { display: block; }
}

@media (max-width: 1080px) {
  .nav, .hdr-cta, .search-btn .t, .search-btn .kbd { display: none; }
  .search-btn { width: 42px; padding: 0; justify-content: center; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; }
}

/* Full-screen menu (mobile) */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--inv-bg);
  color: var(--inv-fg);
  display: flex;
  flex-direction: column;
  padding: calc(var(--hdr) + 12px) var(--gut) 28px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
  visibility: hidden;
}
.mnav.is-open { clip-path: inset(0); visibility: visible; }
.mnav-close { position: absolute; top: 15px; right: var(--gut); height: 42px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--inv-line); font-size: 14px; }
.mnav ol { list-style: none; border-top: 1px solid var(--inv-line); }
.mnav li { border-bottom: 1px solid var(--inv-line); }
.mnav li a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; font-size: clamp(34px, 9vw, 64px); font-weight: 500; font-stretch: 112%; letter-spacing: -0.045em; line-height: 1; }
.mnav li a .lbl { color: var(--inv-mute); }
.mnav-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--inv-mute); font-size: 15px; }
.mnav-foot a { color: var(--inv-fg); }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: clamp(84px, 11vw, 168px) 0; }
.sec.tight { padding: clamp(60px, 7vw, 104px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: 24px clamp(24px, 4vw, 64px); align-items: start; padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: clamp(44px, 6vw, 88px); }
.sec-head .lbl { padding-top: 0.6em; display: flex; gap: 10px; }
.sec-head .lbl b { font-weight: 500; color: var(--fg); }
.sec-head .sh-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

.inv { background: var(--inv-bg); color: var(--inv-fg); --line: var(--inv-line); --line-2: color-mix(in srgb, var(--inv-fg) 30%, transparent); --mute: var(--inv-mute); --fg: var(--inv-fg); --fg-2: color-mix(in srgb, var(--inv-fg) 76%, transparent); --bg: var(--inv-bg); --bg-2: var(--inv-bg-2); }
.inv ::selection { background: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--hdr) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(36px, 5vw, 72px); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--mute); margin-bottom: clamp(26px, 4vw, 52px); }
.hero-meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 0 0 rgba(15, 157, 88, 0.5); animation: ping 2.2s infinite; vertical-align: 1px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(15, 157, 88, 0.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(15, 157, 88, 0); } }
.hero .d1 { margin-left: -0.04em; }
.hero-kw { color: var(--fg); max-width: 46ch; }
.hero .d1 { font-size: clamp(46px, 9.2vw, 168px); }
.hero .d1 .ind { padding-left: 0.9em; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-ctas { justify-content: flex-start; } .hero .d1 .ind { padding-left: 0.5em; } }

/* System map (the tangle that straightens itself) */
.sysmap { margin-top: clamp(40px, 6vw, 88px); border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; position: relative; }
.sysmap-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sysmap-bar .lbl { color: var(--mute); }
.sysmap-stats { display: flex; gap: 22px; }
.sysmap-stats b { font-family: var(--f-m); font-weight: 500; font-size: 13px; color: var(--fg); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mute); transition: color 0.35s; }
.js .seg button[aria-pressed="true"] { color: var(--bg); }
html:not(.js) .seg { display: none; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 999px; background: var(--fg); transition: transform 0.55s var(--ease), width 0.55s var(--ease); }
.sysmap svg { width: 100%; height: auto; aspect-ratio: 1200 / 440; }
.sysmap .edge { fill: none; stroke: var(--fg); stroke-width: 1.2; opacity: 0.55; }
.sysmap .edge.x { stroke: var(--hot); stroke-dasharray: 4 5; }
.sysmap .node rect { fill: var(--bg); stroke: var(--line-2); stroke-width: 1; }
.sysmap .node.k rect { fill: var(--fg); stroke: var(--fg); }
.sysmap .node text { font-family: var(--f-m); font-size: 12.5px; fill: var(--fg); letter-spacing: 0.02em; }
.sysmap .node.k text { fill: var(--bg); }
.sysmap .node .n { fill: var(--mute); font-size: 10.5px; }
.sysmap .node.k .n { fill: color-mix(in srgb, var(--bg) 60%, transparent); }
.sysmap .pulse { fill: var(--accent); }
.sysmap-cap { position: absolute; left: 18px; bottom: 14px; color: var(--mute); }
@media (max-width: 640px) { .sysmap svg { aspect-ratio: 360 / 560; } .sysmap-stats { display: none; } .sysmap-cap { display: none; } }

/* ---------- Marquee ---------- */
.marq { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; white-space: nowrap; user-select: none; }
.marq-track { display: inline-flex; gap: 0; animation: marq 70s linear infinite; will-change: transform; }
.marq:hover .marq-track { animation-play-state: paused; }
.marq a { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; font-stretch: 110%; letter-spacing: -0.035em; transition: color 0.25s; }
.marq a:hover { color: var(--accent); }
.marq a::after { content: ""; width: 0.42em; height: 0.42em; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--mute); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { font-size: clamp(30px, 4.3vw, 70px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500; font-stretch: 108%; max-width: 22ch; }
.js .statement .w { opacity: 0.16; transition: opacity 0.25s linear; }
.js .statement .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 22px 22px 0 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
.stat .v { font-size: clamp(46px, 6vw, 96px); font-weight: 500; font-stretch: 112%; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 0.4em; letter-spacing: -0.02em; margin-left: 0.1em; color: var(--mute); }
.stat p { margin-top: 14px; color: var(--fg-2); font-size: 15px; max-width: 24ch; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 22px; } }

/* ---------- Services index ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc a { position: relative; display: grid; grid-template-columns: 80px 1.25fr 1fr 190px 52px; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px) 0; isolation: isolate; transition: color 0.45s var(--ease), padding 0.5s var(--ease); }
.svc a::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.55s var(--ease); }
.svc a:hover { color: var(--accent-fg); padding-left: 18px; }
.svc a:hover::before { transform: none; }
.svc .no { color: var(--mute); transition: color 0.3s; }
.svc a:hover .no, .svc a:hover .from, .svc a:hover .sum { color: color-mix(in srgb, var(--accent-fg) 80%, transparent); }
.svc .nm { font-size: clamp(30px, 4vw, 64px); font-weight: 500; font-stretch: 112%; letter-spacing: -0.05em; line-height: 0.95; }
.svc .sum { color: var(--fg-2); font-size: 16px; max-width: 40ch; transition: color 0.3s; }
.svc .from { color: var(--mute); text-align: right; }
.svc .go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.5s var(--ease), background-color 0.3s, box-shadow 0.3s; }
.svc a:hover .go { background: var(--accent-fg); color: var(--accent); box-shadow: none; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .svc a { grid-template-columns: 44px 1fr 44px; gap: 8px 14px; }
  .svc .sum, .svc .from { grid-column: 2; text-align: left; }
  .svc .go { grid-row: 1; grid-column: 3; width: 44px; height: 44px; }
}

/* ---------- Work index ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg-2); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
label.chip { position: relative; cursor: pointer; white-space: nowrap; user-select: none; }
label.chip input { position: absolute; opacity: 0; pointer-events: none; }
label.chip:has(input:checked) { background: var(--fg); color: var(--bg); box-shadow: none; }
label.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip .c { font-family: var(--f-m); font-size: 11px; opacity: 0.6; }
.work { margin-top: 28px; border-top: 1px solid var(--line-2); }
.work-hd, .work-row > button { display: grid; grid-template-columns: 56px 1.4fr 1.1fr 0.7fr 0.7fr 40px; gap: 20px; align-items: center; text-align: left; width: 100%; }
.work-hd { padding: 12px 0; color: var(--mute); border-bottom: 1px solid var(--line); }
.work-row { border-bottom: 1px solid var(--line); }
.work-row[hidden] { display: none; }
.work-row > button { padding: 22px 0; position: relative; isolation: isolate; }
.work-row > button::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; border-radius: 12px; background: var(--bg-2); opacity: 0; transition: opacity 0.25s; }
.work-row > button:hover::before { opacity: 1; }
.work-row .i { font-family: var(--f-m); font-size: 12px; color: var(--mute); }
.work-row .nm { font-size: clamp(22px, 2.3vw, 34px); font-weight: 500; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1.05; }
.work-row .ty { color: var(--fg-2); font-size: 15px; }
.work-row .co { font-family: var(--f-m); font-size: 15px; font-variant-numeric: tabular-nums; }
.work-row .tm { font-family: var(--f-m); font-size: 13px; color: var(--mute); }
.work-row .pl { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; transition: transform 0.45s var(--ease), background-color 0.3s; }
.work-row .pl svg { width: 14px; height: 14px; }
.work-row.is-open .pl { transform: rotate(45deg); background: var(--accent); color: var(--accent-fg); box-shadow: none; }
.work-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.work-row.is-open .work-body { grid-template-rows: 1fr; }
.work-body > div { overflow: hidden; }
.work-body .in { display: grid; grid-template-columns: 56px 1.4fr 2.5fr; gap: 20px; padding: 0 0 28px; }
.work-body p { font-size: 18px; line-height: 1.5; color: var(--fg-2); max-width: 58ch; grid-column: 3; }
.work-body .tlink { margin-top: 16px; }
.work-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; color: var(--mute); }
@media (max-width: 860px) {
  .work-hd { display: none; }
  .work-row > button { grid-template-columns: 30px 1fr auto; gap: 4px 12px; }
  .work-row .nm { grid-column: 2; }
  .work-row .ty { grid-column: 2; grid-row: 2; font-size: 14px; }
  .work-row .co { grid-column: 2; grid-row: 3; font-size: 13px; }
  .work-row .tm { display: none; }
  .work-row .pl { grid-column: 3; grid-row: 1 / span 3; }
  .work-body .in { grid-template-columns: 30px 1fr; gap: 12px; }
  .work-body p { grid-column: 2; font-size: 16px; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; border-top: 1px solid var(--line); }
.step { position: relative; padding: 28px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.steps.is-in .step::before, html:not(.js) .step::before { transform: none; }
.steps.is-in .step:nth-child(2)::before { transition-delay: 0.25s; }
.steps.is-in .step:nth-child(3)::before { transition-delay: 0.5s; }
.steps.is-in .step:nth-child(4)::before { transition-delay: 0.75s; }
.step .lbl { color: var(--accent); }
.step h3 { margin: 56px 0 14px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1.02; }
.step p { color: var(--fg-2); font-size: 16px; max-width: 30ch; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { border-left: 0; padding-left: 0; } .step h3 { margin-top: 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Reviews ---------- */
.revs { display: flex; flex-direction: column; gap: 16px; overflow: hidden; padding-block: 4px; }
.revs-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.revs-track { display: flex; gap: 16px; width: max-content; animation: marq 90s linear infinite; }
.rev-back .revs-track { animation-direction: reverse; animation-duration: 100s; }
.revs:hover .revs-track { animation-play-state: paused; }
.rev { width: 360px; flex: none; padding: 24px 26px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 18px; }
.rev blockquote { font-size: 19px; font-weight: 500; line-height: 1.32; letter-spacing: -0.015em; }
.rev .who { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.rev .who b { font-weight: 600; }
.rev .stars { color: #f5a524; font-size: 17px; letter-spacing: 3px; line-height: 1; }
@media (max-width: 720px) { .rev { width: 280px; } .rev blockquote { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .revs-row { overflow-x: auto; } .revs-track { animation: none; } .revs-track > [aria-hidden] { display: none; } }
.rev-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: clamp(28px, 4vw, 56px); border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.rev-empty .d4 { max-width: 22ch; }

/* ---------- Directory ---------- */
.dir-search { position: relative; max-width: 760px; }
.dir-search input { width: 100%; height: 72px; padding: 0 148px 0 60px; border-radius: 999px; border: 0; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 19px; letter-spacing: -0.01em; outline: none; transition: box-shadow 0.3s; }
.dir-search input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.dir-search input::placeholder { color: var(--mute); }
.dir-search > svg { position: absolute; left: 24px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--mute); }
.dir-search .btn { position: absolute; right: 9px; top: 9px; height: 54px; }
@media (max-width: 560px) { .dir-search input { height: 60px; padding-right: 20px; font-size: 17px; } .dir-search .btn { display: none; } }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-top: clamp(40px, 5vw, 72px); }
.cat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 230px; padding: 24px; background: var(--bg); transition: background-color 0.35s, color 0.35s; }
.cat:hover { background: var(--accent); color: var(--accent-fg); }
.cat:hover .lbl, .cat:hover p { color: color-mix(in srgb, var(--accent-fg) 80%, transparent); }
.cat .top { display: flex; justify-content: space-between; color: var(--mute); }
.cat h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1; }
.cat p { padding-right: 30px; margin-top: 10px; color: var(--fg-2); font-size: 14.5px; line-height: 1.45; }
.cat .ar { position: absolute; right: 22px; bottom: 24px; transition: transform 0.45s var(--ease); }
.cat:hover .ar { transform: rotate(-45deg); }
.cat.more { background: var(--bg-2); }
@media (max-width: 1080px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } .cat { min-height: 0; } }

.listings { list-style: none; border-top: 1px solid var(--line); }
.lst { display: grid; grid-template-columns: 1.1fr 1.6fr 0.7fr 44px; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lst[hidden] { display: none; }
.lst h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.lst h3 a:hover { color: var(--accent); }
.lst .cv { margin-top: 6px; color: var(--mute); }
.lst p { color: var(--fg-2); font-size: 15.5px; }
.lst .ct { color: var(--mute); }
.lst .ext { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
.lst .ext:hover { background: var(--accent); color: var(--accent-fg); box-shadow: none; transform: rotate(-45deg); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-m); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 3px; margin-left: 8px; }
.tag.loc { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
@media (max-width: 860px) { .lst { grid-template-columns: 1fr 44px; gap: 8px 16px; } .lst p, .lst .ct { grid-column: 1; } .lst .ext { grid-column: 2; grid-row: 1; } }
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.filters .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters .row > .lbl { width: 92px; color: var(--mute); }
.empty { padding: 48px 0; color: var(--mute); }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.region h3 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; font-stretch: 110%; letter-spacing: -0.04em; }
.region p.lede { font-size: 17px; margin-bottom: 22px; max-width: 48ch; }
.towns { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -0.02em; line-height: 1.45; }
.towns a { transition: color 0.2s; }
.towns a:hover { color: var(--accent); }
.towns a.mj { font-weight: 600; }
.towns a:not(:last-child)::after { content: "/"; margin: 0 0.42em; color: var(--line-2); font-weight: 400; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }

/* ---------- About teaser / proof ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { list-style: none; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts li .lbl { color: var(--mute); padding-top: 4px; }
.facts li p { color: var(--fg-2); }
.facts li b { color: var(--fg); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.phero { padding-top: calc(var(--hdr) + clamp(40px, 7vw, 110px)); padding-bottom: clamp(48px, 6vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--mute); margin-bottom: clamp(26px, 4vw, 48px); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.phero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.phero-grid .side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
@media (max-width: 860px) { .phero-grid { grid-template-columns: 1fr; } }
.price-pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px; }

.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.point { background: var(--bg); padding: clamp(24px, 3vw, 44px); min-height: 260px; display: flex; flex-direction: column; }
.point .lbl { color: var(--accent); }
.point h3 { margin-top: auto; padding-top: 48px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; font-stretch: 110%; letter-spacing: -0.045em; line-height: 1; }
.point p { margin-top: 14px; color: var(--fg-2); max-width: 44ch; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } .point { min-height: 0; } }

.ptable { list-style: none; border-top: 1px solid var(--line); columns: 2; column-gap: clamp(24px, 4vw, 64px); }
.ptable li { break-inside: avoid; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ptable li span:last-child { font-family: var(--f-m); font-size: 14px; color: var(--fg-2); white-space: nowrap; }
@media (max-width: 720px) { .ptable { columns: 1; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-style: normal; transition: transform 0.4s var(--ease), background-color 0.3s; }
.faq details[open] summary i { transform: rotate(45deg); background: var(--fg); color: var(--bg); box-shadow: none; }
.faq details p { padding: 0 60px 26px 0; color: var(--fg-2); max-width: 70ch; }

.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.other { padding: 22px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 30px; min-height: 180px; transition: background-color 0.3s, box-shadow 0.3s; }
.other:hover { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.other .lbl { color: var(--mute); display: flex; justify-content: space-between; }
.other h3 { margin-top: auto; font-size: 26px; font-weight: 500; font-stretch: 110%; letter-spacing: -0.04em; line-height: 1.02; }
@media (max-width: 860px) { .others { grid-template-columns: 1fr; } .other { min-height: 0; } }

/* ---------- Contact ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--mute); }
.field input, .field textarea, .field select { width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; font-size: 19px; outline: none; border-radius: 0; transition: border-color 0.3s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.form .chips { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s; }
.ccard:hover { background: var(--bg-2); }
.ccard b { display: block; font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -0.035em; margin-top: 6px; word-break: break-word; }

/* ---------- Footer ---------- */
.ftr { background: var(--inv-bg); color: var(--inv-fg); --line: var(--inv-line); --mute: var(--inv-mute); --fg: var(--inv-fg); --fg-2: color-mix(in srgb, var(--inv-fg) 74%, transparent); --bg: var(--inv-bg); --bg-2: var(--inv-bg-2); --line-2: color-mix(in srgb, var(--inv-fg) 30%, transparent); overflow: hidden; }
.ftr-cta { padding: clamp(84px, 11vw, 160px) 0 clamp(60px, 7vw, 100px); }
.ftr-cta .d2 { max-width: 13ch; }
.ftr-cta .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; margin-top: clamp(32px, 4vw, 56px); }
.ftr-cta .mail { font-size: clamp(22px, 3vw, 46px); font-weight: 500; letter-spacing: -0.04em; font-stretch: 108%; }
.ftr-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.ftr-cols h4 { color: var(--mute); margin-bottom: 16px; font-weight: 400; }
.ftr-cols ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.ftr-cols a { color: var(--fg-2); transition: color 0.2s; }
.ftr-cols a:hover { color: var(--fg); }
.ftr-cols .about p { color: var(--fg-2); font-size: 15px; max-width: 34ch; }
@media (max-width: 960px) { .ftr-cols { grid-template-columns: 1fr 1fr; } .ftr-cols .about { grid-column: 1 / -1; } }
.ftr-mark { font-size: 21.2vw; font-weight: 600; font-stretch: 112%; letter-spacing: -0.07em; line-height: 0.76; white-space: nowrap; margin: 0.08em 0 0 -0.035em; padding-bottom: 0.02em; color: var(--fg); user-select: none; overflow: hidden; }
.ftr-mark span { display: inline-block; }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px 0 26px; border-top: 1px solid var(--line); color: var(--mute); }
.ftr-base a:hover { color: var(--fg); }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 250; display: none; align-items: flex-start; justify-content: center; padding: min(14vh, 120px) 16px 16px; background: color-mix(in srgb, var(--fg) 30%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cmdk.is-open { display: flex; animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.cmdk-box { width: min(680px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 20px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 40px 120px -20px rgba(0, 0, 0, 0.45); overflow: hidden; animation: pop 0.35s var(--ease); }
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 18px; height: 18px; color: var(--mute); flex: none; }
.cmdk-in input { flex: 1; height: 62px; border: 0; background: transparent; outline: none; font-size: 18px; }
.cmdk-list { list-style: none; overflow-y: auto; padding: 8px; }
.cmdk-list li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 14px; border-radius: 12px; }
.cmdk-list li a .t { font-weight: 500; }
.cmdk-list li a .s { grid-column: 1; color: var(--mute); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-list li a .lbl { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--mute); }
.cmdk-list li[aria-selected="true"] a { background: var(--bg-2); }
.cmdk-list li[aria-selected="true"] a .lbl { color: var(--accent); }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--mute); }
.cmdk-empty { padding: 28px 18px; color: var(--mute); }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--fg-2); }
.note { padding: 18px 20px; border-radius: 14px; background: var(--bg-2); color: var(--fg-2); font-size: 15px; }
.note b { color: var(--fg); }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: clamp(48px, 6vw, 88px); }
.big-404 { font-size: clamp(120px, 30vw, 420px); font-weight: 600; font-stretch: 120%; letter-spacing: -0.08em; line-height: 0.8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .ln > span { opacity: 1; transform: none; }
  .js .statement .w { opacity: 1; }
  .marq-track { animation: none; }
}
@media print { .hdr, .ftr, .cmdk, body::after { display: none; } }
