/* Dorvyth Technologies — site styles. Colours and type follow the brand kit (dorvyth-brand-guide.pdf). */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --obsidian: #07090C;
  --ink: #0B0E13;
  --slate: #2F3640;
  --steel: #6B7380;
  --silver: #C9CED6;
  --silver-white: #E6E9EE;
  --paper: #F4F5F7;
  --cyan: #00E5FF;          /* accent on dark only */
  --cyan-light: #00A8C2;    /* graphics on light only, never text */
  --error: #FF8A8A;         /* form errors on dark (not in the brand kit; text always says "Error:") */

  --font-head: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 4.5rem;
  --radius: 14px;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 7.5rem);
  --focus: var(--cyan);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

/* Keep the hidden attribute authoritative when a class also sets display. */
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--silver-white);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--obsidian);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--silver-white); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--cyan); color: var(--obsidian); }
.btn-primary:hover { background: var(--silver-white); }
.btn-ghost { background: transparent; color: var(--silver-white); border-color: var(--silver); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
.btn-lg { min-height: 56px; padding: 1rem 2.25rem; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn-arrow { display: inline-block; transition: translate .2s ease-out; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

.eyebrow {
  margin-bottom: 1rem;
  font: 600 0.8125rem/1.4 var(--font-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--silver); max-width: 40rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.site-header.is-scrolled { background: var(--obsidian); border-bottom-color: var(--slate); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand-full { width: 211px; height: auto; }
.brand-icon { display: none; width: 40px; height: 40px; }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-links { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav-ctas { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-ctas .btn { white-space: nowrap; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.875rem;
  color: var(--silver-white);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.875rem; right: 0.875rem; bottom: 6px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform .2s ease-out;
}
.nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-links a[aria-current], .mobile-menu-links a[aria-current] { color: var(--cyan); }
.mobile-menu-links a[aria-current] { box-shadow: inset 3px 0 0 var(--cyan); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--slate);
  border-radius: 10px;
  background: transparent;
  color: var(--silver-white);
  cursor: pointer;
}
.menu-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Inner pages: the bar is solid from the start so type stays readable over light sections. */
.subpage .site-header {
  background: var(--obsidian);
  border-bottom-color: var(--slate);
}
.subpage main { padding-top: var(--header-h); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  background: var(--obsidian);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--slate);
}
.mobile-menu-top .menu-toggle { display: inline-flex; }
.mobile-menu-links { margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.mobile-menu-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--slate);
  color: var(--silver-white);
  font: 600 1.625rem/1.2 var(--font-head);
  text-decoration: none;
}
.mobile-menu-links a:hover { color: var(--cyan); }

/* Full nav plus both header buttons needs the room; below this, use the menu. */
@media (max-width: 1200px) {
  .js .nav-links, .js .nav-ctas { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .no-js .nav-ctas { display: none; }
  .no-js .nav-links a { padding: 0 0.5rem; font-size: 0.9375rem; }
}
@media (max-width: 860px) {
  .brand-full { display: none; }
  .brand-icon { display: block; }
}
.mobile-cta { display: grid; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 229, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(0, 229, 255, .07) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--obsidian);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 70% 45%, transparent 0%, var(--obsidian) 78%);
  pointer-events: none;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-js .hero-canvas { display: none; }
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero h1 { margin-bottom: 1.5rem; }
.hero .accent { color: var(--cyan); }
.hero h1 .word { display: inline-block; }
.hero .lead { margin-bottom: 2.25rem; }
.hero-art { justify-self: center; width: min(100%, 26rem); }
.hero-art img { width: 100%; height: auto; will-change: transform; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 2.5rem); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { width: min(70%, 18rem); }
}

/* Sections */
.section { padding-block: var(--section-y); }
.section-raised { background: var(--ink); border-block: 1px solid var(--slate); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head :is(h1, h2) { margin-bottom: 1rem; max-width: 40rem; }
.section-head h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}
.section-cta { margin-top: 2.5rem; }

/* Light section (About) */
.section-light { background: var(--paper); color: var(--slate); --focus: var(--ink); }
.section-light :is(h1, h2) { color: var(--ink); margin-bottom: 1.5rem; }
.section-light h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}
.section-light .eyebrow { color: var(--slate); }
.section-light .eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.5rem; height: 2px;
  margin-right: 0.75rem;
  vertical-align: middle;
  background: var(--cyan-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-copy p { font-size: 1.0625rem; max-width: 38rem; }
.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font: 600 0.8125rem/1.4 var(--font-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.location-tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.section-light .location-tag { color: var(--ink); }
.section-light .location-tag::before { background: var(--cyan-light); }

.founder-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--obsidian);
  color: var(--silver);
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.founder-photo img {
  width: 200px;
  height: 200px;
  border: 1px solid var(--slate);
  border-radius: 16px;
  background: var(--ink);
}
.founder-card h2 {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.founder-name { margin-bottom: 0.25rem; font: 600 1.5rem/1.2 var(--font-head); color: var(--silver-white); }
.founder-role { margin-bottom: 1rem; font-weight: 500; color: var(--silver-white); }
.founder-bio { font-size: 0.9375rem; }
.founder-signoff {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate);
  font: 600 0.8125rem/1.5 var(--font-head);
  letter-spacing: 0.06em;
  color: var(--silver-white);
}
@media (min-width: 561px) and (max-width: 860px) {
  .founder-card { grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  background: var(--ink);
}
/* Home overview: three across, then two equal cards. One column on small screens. */
.teaser-grid { grid-template-columns: 1fr; }
.teaser-card { display: flex; flex-direction: column; }
.teaser-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}
.teaser-card .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 861px) {
  .teaser-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .teaser-card { grid-column: span 3; }
  .teaser-card:nth-child(-n + 3) { grid-column: span 2; }
}
.service-card { transition: transform .25s ease-out, border-color .15s; }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { border-color: rgba(0, 229, 255, .55); }
}
.service-card h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.icon {
  width: 40px; height: 40px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Products */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--silver);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--silver-white);
}
.chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--silver);
}
.chip-live { border-color: var(--cyan); color: var(--cyan); }
.chip-live::before { border: 0; background: var(--cyan); }

.product-name { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.375rem; }
.product-tagline { font: 500 1.0625rem/1.4 var(--font-head); color: var(--silver-white); }

.product-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.25rem;
  background: var(--obsidian);
  border-color: rgba(0, 229, 255, .4);
}
.product-featured .btn { margin-top: 0.5rem; }
.note { margin-top: 0.875rem; font-size: 0.875rem; color: var(--silver); }
.product-featured .feature-list { margin: 1.5rem 0 2rem; }

/* Decorative INVOICE-X preview (aria-hidden, sample labels only) */
.invoice-mock {
  align-self: center;
  border: 1px solid var(--slate);
  border-radius: 12px;
  background: var(--ink);
  overflow: hidden;
}
.im-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--slate);
  font: 600 0.75rem/1 var(--font-head);
  letter-spacing: 0.12em;
  color: var(--silver);
}
.im-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.im-bar span { margin-left: auto; }
.im-doc { margin: 1rem; padding: 1.25rem; border-radius: 8px; background: var(--paper); color: var(--ink); }
.im-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.im-title { display: block; font: 600 1rem/1.3 var(--font-head); }
.im-sub { display: block; font-size: 0.8125rem; color: var(--slate); }
.im-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.im-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-light); }
.im-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--silver); }
.im-row i, .im-total i { height: 8px; border-radius: 4px; background: var(--silver); transform-origin: left; }
.im-row i:first-child { width: 55%; }
.im-row:nth-child(3) i:first-child { width: 42%; }
.im-row:nth-child(4) i:first-child { width: 63%; }
.im-row i:last-child { width: 16%; transform-origin: right; }
.im-total { display: flex; justify-content: space-between; align-items: center; padding-top: 0.875rem; font-size: 0.875rem; font-weight: 600; }
.im-total i { width: 24%; height: 10px; background: var(--ink); transform-origin: right; }

.feature-list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 1.5rem; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 8px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
}
.list-label {
  margin: 1.5rem 0 0.75rem;
  font: 600 0.8125rem/1.4 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-white);
}
.product-card strong { color: var(--silver-white); }
.product-card > .btn { margin-top: 1.75rem; }

/* Product card switches (see README.md) */
html[data-show-pascogo="false"] [data-product="pascogo"],
html[data-show-bugscout="false"] [data-product="bugscout"] { display: none; }

/* Testimonials and client logos. Hidden means removed from layout and the accessibility tree.
   Quote and logo markup is in the HTML comment on Home and Work. See README. */
html[data-show-testimonials="false"] [data-testimonials] { display: none !important; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.logo-row:empty { display: none; }
.logo-row img { height: 2rem; width: auto; }
.quote-grid { align-items: stretch; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--silver-white);
}
.quote-card footer { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--silver); }
.quote-card cite { font-style: normal; font-weight: 600; color: var(--silver-white); }

/* Work: case studies. Same card, chip and invoice mock as Products. */
.case-study {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 1.25rem;
  background: var(--obsidian);
}
.case-study:last-of-type { margin-bottom: 0; }
.case-study:first-of-type { border-color: rgba(0, 229, 255, .4); }
.case-study strong { color: var(--silver-white); }
.case-study h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.case-study .feature-list { margin: 0.75rem 0 1.5rem; }
.case-study .btn { margin-top: 0.5rem; }
.report-mock .rm-label {
  margin: 0.85rem 0 0.35rem;
  font: 600 0.6875rem/1.3 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.report-mock .rm-line {
  display: block;
  height: 8px;
  width: 88%;
  border-radius: 4px;
  background: var(--silver);
}
.report-mock .rm-line.short { width: 62%; }

@media (max-width: 860px) {
  .about-grid, .product-featured, .case-study { grid-template-columns: 1fr; }
}

/* Contact */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.contact-panel {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    conic-gradient(from var(--angle), var(--slate) 0 55%, var(--cyan) 70%, var(--slate) 85%) border-box;
}
.contact-title {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.contact .lead { margin-bottom: 2.25rem; }
.email-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}
.email-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--silver-white);
}
.email-text:hover { color: var(--cyan); }
.no-js .copy-btn { display: none; }
.toast { min-height: 1.65em; margin: 0.75rem 0 0; font-weight: 600; color: var(--cyan); }
.contact .location-tag { color: var(--silver); }
.contact-meta {
  display: grid;
  justify-items: center;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.contact-meta li,
.contact-meta a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--silver-white);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.contact-meta a:hover { color: var(--cyan); }
.founder-block .list-label { margin-top: 0.5rem; }
.founder-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.founder-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.founder-card .founder-links { justify-content: flex-start; }
.founder-card .founder-links a:hover { color: var(--silver-white); }
@media (min-width: 961px) {
  .contact-panel { grid-template-columns: 1fr 1fr; text-align: left; }
  .contact-panel .contact-inner { align-items: flex-start; }
  .contact-panel .email-line { justify-content: flex-start; }
  .contact-inner .contact-meta { justify-items: start; }
  .contact-inner .contact-meta li,
  .contact-inner .contact-meta a { text-align: left; }
  .contact-inner .founder-links { justify-content: flex-start; }
}

/* Book a call */
.book-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.book-layout .section-head { margin-bottom: 0; }
.book-form { margin: 0; }
@media (min-width: 961px) {
  .book-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
@media (max-width: 960px) {
  .book-layout { text-align: center; }
  .book-layout .lead { margin-inline: auto; }
  .book-form { text-align: left; }
}

/* Forms (enquiry + PascoGo notify). Hidden without JS; mailto links remain. */
.no-js .js-only, .js .no-js-only { display: none; }
[data-form]:focus { outline: none; }
.contact-form {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  background: var(--obsidian);
  text-align: left;
}
.contact-form h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.field { display: grid; gap: 0.375rem; margin-bottom: 1.125rem; }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); column-gap: 1rem; }
.contact-form label, .notify-form label { font-size: 0.9375rem; font-weight: 600; color: var(--silver-white); }
.optional { font-weight: 400; color: var(--silver); }
.contact-form input, .contact-form select, .contact-form textarea, .notify-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--steel);
  border-radius: 10px;
  background: var(--ink);
  color: var(--silver-white);
  font: 400 1rem/1.4 var(--font-body);
  color-scheme: dark;
  transition: border-color .15s;
}
.contact-form textarea { resize: vertical; min-height: 8.5rem; }
.contact-form select {
  appearance: none;
  padding-right: 2.5rem;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23C9CED6' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
}
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover, .notify-form input:hover { border-color: var(--silver); }
.contact-form :is(input, select, textarea):focus-visible, .notify-form input:focus-visible { border-color: var(--cyan); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-hint { margin: 0; font-size: 0.8125rem; color: var(--silver); }
.field-error { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--error); }
.field-error::before { content: "Error: "; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 0.5rem; }
.btn[aria-busy="true"] { cursor: progress; opacity: .8; }
.form-status:empty { display: none; }
.form-status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--slate);
  border-left: 3px solid var(--silver);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--silver-white);
}
.form-status p { margin: 0; }
.form-status p + p { margin-top: 0.375rem; }
.form-status.is-success { border-left-color: var(--cyan); }
.form-status.is-error { border-left-color: var(--error); }
.form-status a { color: var(--cyan); font-weight: 600; }

.notify-form { display: grid; gap: 0.5rem; margin-top: 1.75rem; }
.notify-row { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.notify-row input { flex: 1 1 14rem; width: auto; }
.notify-row .btn { flex: 0 0 auto; }
.notify-form .form-status { margin-top: 0.5rem; }

/* Footer: brand, then equal link columns, then a slim bar.
   The stacked mark's viewBox is mostly padding, so .footer-mark crops to the artwork. */
.site-footer { border-top: 1px solid var(--slate); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
  padding-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
}
.footer-main:has(nav[aria-label="Founder"]) {
  grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
}
.footer-main > * { min-width: 0; }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.footer-mark {
  width: 11rem;
  max-width: 100%;
  aspect-ratio: 680 / 650;
  position: relative;
  overflow: hidden;
}
.footer-mark img {
  position: absolute;
  width: calc(1000 / 680 * 100%);
  max-width: none;
  height: auto;
  left: calc(-170 / 680 * 100%);
  top: calc(-170 / 650 * 100%);
}
.footer-tagline {
  margin: 0;
  font: 600 1.0625rem/1.4 var(--font-head);
  color: var(--silver-white);
}
.footer-heading {
  margin: 0 0 0.375rem;
  font: 600 0.8125rem/1.4 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-white);
}
.footer-links { display: grid; margin: 0; padding: 0; list-style: none; }
.footer-links > li {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--silver);
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.footer-links a:hover { color: var(--cyan); }
.footer-links a[aria-current="page"] {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}
.footer-bar { border-top: 1px solid var(--slate); }
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
  font-size: 0.875rem;
  color: var(--silver);
}
.footer-bar p { margin: 0; }
@media (max-width: 1100px) {
  .footer-main,
  .footer-main:has(nav[aria-label="Founder"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .footer-main,
  .footer-main:has(nav[aria-label="Founder"]) { grid-template-columns: 1fr; }
  .footer-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-block: 1rem;
  }
}

/* WhatsApp. Rendered only after a number is set (see main.js). Sits above the footer bar. */
.whatsapp-btn {
  position: fixed;
  z-index: 40;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--obsidian);
  color: var(--cyan);
  text-decoration: none;
  box-shadow: 0 0 0 4px rgba(7, 9, 12, .55);
}
.whatsapp-btn:hover { background: var(--ink); color: var(--silver-white); }
.whatsapp-btn:focus-visible { border-radius: 50%; outline-offset: 4px; }
.whatsapp-btn svg { width: 26px; height: 26px; fill: currentColor; }
body.has-whatsapp .footer-bar-inner { padding-bottom: 5.5rem; }

/* 404 */
.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem var(--gutter);
  text-align: center;
}
.notfound-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 34rem; }
.notfound-inner > a:first-child { margin-bottom: 2.5rem; }
.notfound h1 { font-size: clamp(2rem, 7vw, 3.5rem); margin-bottom: 1rem; }
.notfound .lead { margin-bottom: 2rem; }

/* Scroll progress (JS + motion allowed only) */
.scroll-progress {
  display: none;
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* "What we build" strip: a static, wrapping list unless JS runs and motion is allowed */
.build-strip { position: relative; overflow: hidden; border-block: 1px solid var(--slate); }
.build-track { display: flex; justify-content: center; padding-inline: var(--gutter); }
.build-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.build-list li {
  display: flex;
  align-items: center;
  padding-block: 1.125rem;
  font: 500 clamp(1rem, 1.6vw, 1.25rem)/1.2 var(--font-head);
  color: var(--silver-white);
  white-space: nowrap;
}
.build-list li::after {
  content: "";
  width: 7px; height: 7px;
  margin-inline: 1.75rem;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
}
.build-list[aria-hidden], .strip-toggle { display: none; }
.strip-toggle {
  position: absolute;
  top: 50%; right: var(--gutter);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  translate: 0 -50%;
  padding: 0;
  border: 1px solid var(--slate);
  border-radius: 10px;
  background: var(--obsidian);
  color: var(--silver-white);
  cursor: pointer;
}
.strip-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.strip-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.strip-toggle .i-play { fill: currentColor; stroke: none; display: none; }
.build-strip.is-paused .i-play { display: block; }
.build-strip.is-paused .i-pause { display: none; }

@keyframes rise { from { opacity: 0; translate: 0 14px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

@media (prefers-reduced-motion: no-preference) {
  .js .scroll-progress { display: block; }

  /* Entry reveals, staggered via --d (set in main.js) */
  .js .reveal:not(.is-visible) { opacity: 0; }
  .js .reveal.is-visible { animation: rise .5s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms) both; }

  /* Hero sequence: eyebrow, then the headline word by word, then the rest */
  .js .hero-copy > :not(h1), .js .hero h1 .word { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero h1 .word:nth-child(2) { animation-delay: .09s; }
  .js .hero h1 .word:nth-child(3) { animation-delay: .18s; }
  .js .hero-copy > .lead { animation-delay: .3s; }
  .js .hero-copy > .btn-row { animation-delay: .4s; }

  .js .build-strip { mask-image: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent); }
  .js .build-track { justify-content: flex-start; width: max-content; padding-inline: 0; animation: marquee 45s linear infinite; }
  .js .build-list { flex-wrap: nowrap; }
  .js .build-list[aria-hidden] { display: flex; }
  .js .strip-toggle { display: inline-flex; }
  .build-strip.is-paused .build-track,
  .build-strip:not(.in-view) .build-track,
  .build-strip:hover .build-track,
  .build-strip:focus-within .build-track { animation-play-state: paused; }

  .contact-panel.in-view { animation: spin 8s linear infinite; }

  .js .product-featured.is-visible .im-row i,
  .js .case-study.is-visible .invoice-mock .im-row i { animation: grow .6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .product-featured.is-visible .im-row:nth-child(2) i,
  .js .case-study.is-visible .invoice-mock .im-row:nth-child(2) i { animation-delay: .35s; }
  .js .product-featured.is-visible .im-row:nth-child(3) i,
  .js .case-study.is-visible .invoice-mock .im-row:nth-child(3) i { animation-delay: .5s; }
  .js .product-featured.is-visible .im-row:nth-child(4) i,
  .js .case-study.is-visible .invoice-mock .im-row:nth-child(4) i { animation-delay: .65s; }
  .js .product-featured.is-visible .im-total i,
  .js .case-study.is-visible .invoice-mock .im-total i { animation: grow .6s .8s cubic-bezier(.2, .7, .2, 1) both; }
  .js .product-featured.is-visible .im-status,
  .js .case-study.is-visible .invoice-mock .im-status { animation: pop .35s 1.2s cubic-bezier(.3, 1.6, .5, 1) both; }
}

/* Fine-pointer extras: tilt, spotlight, button sheen, arrow nudge */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-2px); }
  .spot { position: relative; isolation: isolate; }
  .spot::before, .spot::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
  }
  .spot::before {
    inset: -1px;
    padding: 1px;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, .8), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  .spot::after {
    inset: 0;
    z-index: -1;
    background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 229, 255, .07), transparent 65%);
  }
  .spot:hover::before, .spot:hover::after { opacity: 1; }

  .btn-primary { position: relative; isolation: isolate; overflow: hidden; }
  .btn-primary:hover { background: var(--cyan); }
  .btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
    translate: -100% 0;
    transition: translate .6s ease-out;
  }
  .btn-primary:hover::after { translate: 100% 0; }
  .btn:hover .btn-arrow { translate: 3px -3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
