/* Precise AI Solutions, revision 3 (brief of 16/11/2026: brand palette, bigger logo, founder bio)
   Style language: Minimalism, editorial luxury (hairline rules, paper surfaces, no boxed cards).
   Grounded in the Intaglio system (website-library): engraved hairlines, inscriptional display type,
   0 radius surfaces, one precious accent used at panel scale; rhythm 4/8/12/16/24/40/64/96/144.
   Re-cut to the brand palette of the logo: midnight navy, electric blue, cyan, platinum silver, ice white; violet only as a trace.
   Fonts (Fontshare, one link per family): Zodiak (display) + General Sans (text). */

:root {
  /* Client brand palette (brief 16/11, from the Precise AI Solutions logo) */
  --c-navy: #0C1B34;          /* Deep Midnight Navy: main background */
  --c-navy-2: #13284A;
  --c-blue: #167BD9;          /* Electric Blue: brand accent (graphics, rules; 3.9:1, never small text) */
  --c-cyan: #42C9F5;          /* Brilliant Cyan Blue: highlighted titles, buttons (8.9:1 on navy) */
  --c-cyan-lum: #21CDEB;      /* Luminous Cyan: geometric artwork */
  --c-cyan-hi: #9BE3FA;
  --c-violet: #7952C7;        /* Metallic Violet: subtle decoration only */
  --c-silver: #D1D9E4;        /* Platinum Silver: secondary text on navy (12.1:1) */
  --c-ice: #F1F5FA;           /* Ice White: light sections */
  --c-white: #FFFFFF;
  --c-blue-ink: #1162B0;      /* darker Electric Blue for text on light: 5.7:1 on ice, 6.1:1 on white */

  /* Roles */
  --c-on-navy: var(--c-white);          /* 17.2:1 */
  --c-on-navy-soft: var(--c-silver);    /* 12.1:1 on navy, 10.3:1 on navy-2 */
  --c-on-paper: var(--c-navy);          /* 15.7:1 on ice */
  --c-on-paper-soft: #46546B;           /* 7.0:1 on ice, 7.7:1 on white */
  --c-rule-paper: rgba(12, 27, 52, 0.14);
  --c-rule-paper-strong: rgba(12, 27, 52, 0.36);
  --c-rule-navy: rgba(66, 201, 245, 0.28);
  --c-rule-navy-strong: rgba(209, 217, 228, 0.5);
  --c-scrim: rgba(12, 27, 52, 0.94);
  --c-scrim-soft: rgba(12, 27, 52, 0.6);
  --header-h: 124px;

  --f-display: 'Zodiak', Georgia, serif;
  --f-text: 'General Sans', 'Helvetica Neue', sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 40px; --s-7: 64px; --s-8: 96px; --s-9: 144px;
  --section: clamp(88px, 10vw, 144px);
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  --r-0: 0;
  --r-pill: 999px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-reveal: 800ms;
  --z-header: 40;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  background: var(--c-ice);
  color: var(--c-on-paper);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a, button, input, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
.paper :focus-visible, .white :focus-visible { outline-color: var(--c-navy); }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-cyan); color: var(--c-navy); padding: var(--s-3) var(--s-4);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s-4); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }

/* Type */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--c-on-navy);
  max-width: 16ch;
  text-wrap: balance;
}
.accent { color: var(--c-cyan); }
.display .accent { display: block; }
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h4 {
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--c-on-navy-soft); max-width: 50ch; }
.sub { font-size: 18px; color: var(--c-on-paper-soft); max-width: 54ch; }
.ink .sub { color: var(--c-on-navy-soft); }

/* Icons (Phosphor regular, inline) */
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--c-navy);
  border-bottom: 1px solid var(--c-rule-navy);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 104px; width: auto; }
.nav { display: flex; gap: var(--s-6); margin-left: auto; }
.nav a {
  color: var(--c-on-navy); text-decoration: none; font-size: 16px; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 44px;
  background: linear-gradient(var(--c-cyan), var(--c-cyan)) no-repeat left 78% / 0 1px;
  transition: background-size var(--dur-base) var(--ease);
}
.nav a:hover, .nav a:focus-visible { background-size: 100% 1px; }

/* Button: mechanic ported from Uiverse cssbuttons-io/tame-panda-59 (MIT): a 2px metallic frame
   around an inner face that drops away on hover. Re-cut to brilliant cyan + navy (solid frame: the brand is flat cyan, no gradient). */
.btn {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--r-pill);
  background: var(--c-cyan);
  text-decoration: none;
  min-height: 54px;
  cursor: pointer;
}
.btn-face {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  background: var(--c-navy);
  color: var(--c-on-navy);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 17px;
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.btn:hover .btn-face, .btn:focus-visible .btn-face { background: transparent; color: var(--c-navy); }
.btn:active .btn-face { background: var(--c-cyan-hi); color: var(--c-navy); }
.btn-cyan .btn-face { background: var(--c-cyan); color: var(--c-navy); }
.btn-cyan:hover .btn-face, .btn-cyan:focus-visible .btn-face { background: transparent; }
.btn-sm { min-height: 46px; }
.btn-sm .btn-face { padding: 0 var(--s-4); font-size: 15px; }

.link-quiet {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;
  color: var(--c-on-navy); text-decoration: none; font-weight: 500;
  background: linear-gradient(var(--c-cyan), var(--c-cyan)) no-repeat left bottom / 100% 1px;
  transition: color var(--dur-fast) var(--ease);
}
.link-quiet:hover { color: var(--c-cyan); }

/* Hero: navy stage, engraved guilloche as the section background */
.hero {
  position: relative; overflow: hidden;
  background: var(--c-navy);
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: var(--s-8) 0 var(--s-8);
}
.guilloche { position: absolute; pointer-events: none; max-width: none; }
.hero .guilloche { right: -14vw; top: 50%; width: min(78vw, 1040px); height: auto; aspect-ratio: 1; transform: translateY(-50%); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, var(--c-scrim) 0%, var(--c-scrim-soft) 42%, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: var(--s-6); justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); }

.guilloche path { fill: none; stroke: var(--c-cyan-lum); vector-effect: non-scaling-stroke; }
.guilloche .g2 { stroke: var(--c-blue); }
.guilloche .g3 { stroke: var(--c-violet); }
.guilloche .g4 { stroke: var(--c-silver); }

/* Sections */
.section { padding: var(--section) 0; }
.paper { background: var(--c-ice); color: var(--c-on-paper); }
.white { background: var(--c-white); color: var(--c-on-paper); }
.ink { background: var(--c-navy); color: var(--c-on-navy); }
.sec-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: 760px; }

/* Services: two lanes split by an engraved rule, no cards */
.split { display: grid; gap: var(--s-7); }
.lane { display: grid; gap: var(--s-4); align-content: start; }
.lane-out { color: var(--c-on-paper-soft); max-width: 46ch; }
.ticks { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
.ticks li {
  position: relative; padding: var(--s-3) 0 0 var(--s-6);
  border-top: 1px solid var(--c-rule-paper);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: calc(var(--s-3) + 0.8em);
  width: 22px; height: 1px; background: var(--c-blue-ink);
}
.underneath {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid var(--c-rule-paper-strong);
  max-width: 70ch; color: var(--c-on-paper-soft);
}

/* Estimate calculator */
.calc {
  display: grid; gap: var(--s-6);
  border-top: 1px solid var(--c-rule-navy);
  padding-top: var(--s-6);
}
.calc-mode { border: 0; display: grid; gap: var(--s-3); }
.calc-legend { font-weight: 500; font-size: 16px; color: var(--c-on-navy-soft); margin-bottom: var(--s-3); }
/* Segmented switch: radio mechanic after Uiverse radio-tabs pattern, re-cut to navy and cyan */
.seg { justify-self: start; display: inline-flex; border: 1px solid var(--c-cyan); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); font-weight: 500; font-size: 16px; color: var(--c-on-navy);
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.seg-opt input:checked + span { background: var(--c-cyan); color: var(--c-navy); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--c-ice); outline-offset: 2px; }

.calc-inputs { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: 16px; color: var(--c-on-navy); }
.hint { color: var(--c-on-navy-soft); }
.field-row { display: grid; grid-template-columns: 1fr 8ch; align-items: center; gap: var(--s-4); }
.field output {
  font-family: var(--f-display); font-size: 22px; color: var(--c-cyan); text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--c-cyan) var(--fill, 50%), var(--c-rule-navy-strong) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--c-rule-navy-strong); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--c-cyan); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%;
  background: var(--c-cyan); border: 4px solid var(--c-navy); box-shadow: 0 0 0 1px var(--c-cyan);
  transition: transform var(--dur-fast) var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-cyan); border: 4px solid var(--c-navy); box-shadow: 0 0 0 1px var(--c-cyan);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }

.calc-result { display: grid; gap: var(--s-4); align-content: start; }
.res-label { color: var(--c-on-navy-soft); font-size: 16px; }
.res-big {
  font-family: var(--f-display); font-weight: 400; color: var(--c-cyan);
  font-size: clamp(64px, 9vw, 128px); line-height: 0.9; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.res-unit { font-size: 0.32em; letter-spacing: 0; color: var(--c-on-navy); }
.res-list { display: grid; gap: 0; margin-top: var(--s-3); }
.res-list div {
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  padding: var(--s-3) 0; border-top: 1px solid var(--c-rule-navy);
}
.res-list dt { color: var(--c-on-navy-soft); font-size: 16px; }
.res-list dd { color: var(--c-on-navy); font-weight: 500; font-variant-numeric: tabular-nums; }
.res-math { font-size: 15px; color: var(--c-on-navy-soft); border-left: 1px solid var(--c-cyan); padding-left: var(--s-4); }
.calc-note { margin-top: var(--s-6); font-size: 15px; color: var(--c-on-navy-soft); max-width: 70ch; }

/* What we measure */
.split-tight { gap: var(--s-6); }
.metric-list { margin-top: var(--s-4); }
.metric-list li {
  font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.2;
  padding: var(--s-4) 0; border-top: 1px solid var(--c-rule-paper);
}
.metric-list li:last-child { border-bottom: 1px solid var(--c-rule-paper); }

/* Approach */
.steps { display: grid; gap: var(--s-6); counter-reset: s; }
.step { display: grid; gap: var(--s-3); align-content: start; border-top: 1px solid var(--c-rule-paper-strong); padding-top: var(--s-5); }
.step-n { font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--c-blue-ink); }
.step p { color: var(--c-on-paper-soft); font-size: 17px; }

/* About: founder seal without a photo */
.about-grid { display: grid; gap: var(--s-7); align-items: start; }
.founder {
  position: relative; width: min(100%, 420px); aspect-ratio: 1;
  background: var(--c-navy); border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
}
.guilloche-seal { inset: 0; width: 100%; height: 100%; }
.about-copy { display: grid; gap: var(--s-4); }
.founder-role { font-weight: 600; color: var(--c-blue-ink); font-size: 17px; margin-top: calc(var(--s-3) * -1); }
.bio { display: grid; gap: var(--s-4); max-width: 62ch; }
.bio p { color: var(--c-on-paper-soft); }
.bio p:first-child { color: var(--c-on-paper); font-size: 20px; }
.direct { font-size: 16px; color: var(--c-on-paper-soft); }
.direct a {
  display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; margin-left: var(--s-1);
  color: var(--c-blue-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.direct a:hover { text-decoration-thickness: 2px; }
.about-group { color: var(--c-on-paper-soft); font-size: 16px; max-width: 62ch; }
.founder picture { position: relative; width: 74%; height: 74%; display: block; }
.founder-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--c-cyan-lum), 0 0 0 6px var(--c-navy); }
.who { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--c-rule-paper-strong); }
.who-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.who-list li { font-family: var(--f-display); font-size: 22px; }
.who-also { color: var(--c-on-paper-soft); font-size: 16px; }

/* Closing CTA */
.cta {
  position: relative; overflow: hidden;
  min-height: 70svh; display: flex; align-items: center;
  padding: var(--section) 0;
  background: var(--c-navy); color: var(--c-on-navy);
}
.cta .guilloche { right: -18vw; top: 50%; width: min(80vw, 1080px); height: auto; aspect-ratio: 1; transform: translateY(-50%); }
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, var(--c-scrim) 0%, var(--c-scrim-soft) 48%, transparent 85%);
}
.cta-inner { position: relative; z-index: 1; display: grid; gap: var(--s-5); justify-items: start; }
.cta-title { color: var(--c-on-navy); max-width: 12ch; }

/* Footer */
.site-footer { background: var(--c-navy); color: var(--c-on-navy); border-top: 1px solid var(--c-rule-navy); padding: var(--s-7) 0; }
.footer-bar { display: grid; gap: var(--s-5); }
.footer-id p { color: var(--c-on-navy-soft); margin-top: var(--s-2); font-size: 16px; }
.brand-logo-foot { height: 84px; }
.footer-nav { display: flex; gap: var(--s-2) var(--s-6); flex-wrap: wrap; }
.footer-nav a {
  color: var(--c-on-navy); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px;
  background: linear-gradient(var(--c-cyan), var(--c-cyan)) no-repeat left 78% / 0 1px;
  transition: background-size var(--dur-base) var(--ease);
}
.footer-nav a:hover, .footer-nav a:focus-visible { background-size: 100% 1px; }
.legal { color: var(--c-on-navy-soft); font-size: 14px; }

/* Reveal (gated by .js, off with reduced motion) */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .rv.on { opacity: 1; transform: none; }

/* Desktop layout */
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 0; }
  .split > :first-child { padding-right: var(--s-7); border-right: 1px solid var(--c-rule-paper-strong); }
  .split > :last-child { padding-left: var(--s-7); }
  .calc { grid-template-columns: 1.1fr 1fr; column-gap: var(--s-8); }
  .calc-mode { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); }
  .founder { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .footer-bar { grid-template-columns: 1fr auto; align-items: end; }
  .legal { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 899px) {
  .nav { display: none; }
  .split > * + * { padding-top: var(--s-7); border-top: 1px solid var(--c-rule-paper-strong); }
}
@media (max-width: 759px) {
  :root { --header-h: 84px; }
  .header-bar { gap: var(--s-3); }
  .brand-logo { height: 62px; }
  .hero { min-height: auto; padding: var(--s-8) 0 var(--s-8); }
  .hero .guilloche { right: -75vw; top: auto; bottom: -45vw; width: 180vw; transform: none; }
  .hero::after { background: linear-gradient(to bottom, var(--c-scrim-soft) 0%, var(--c-scrim-soft) 45%, transparent 100%); }
  .cta .guilloche { right: -80vw; top: auto; bottom: -60vw; width: 170vw; transform: none; }
  .cta::after { background: linear-gradient(to bottom, var(--c-scrim) 0%, var(--c-scrim-soft) 60%, transparent 100%); }
  .founder { width: min(100%, 300px); }
}
@media (max-width: 380px) {
  .brand-logo { height: 54px; }
  .btn-sm .btn-face { padding: 0 var(--s-3); font-size: 14px; }
  .field-row { grid-template-columns: 1fr 7ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn-face, .link-quiet, .nav a, .footer-nav a, .seg-opt span { transition: none; }
}

/* Privacy page */
.doc { padding: var(--s-8) 0 var(--section); }
.doc .wrap { max-width: 760px; }
.doc h1 { margin-bottom: var(--s-6); }
.doc h2 { font-family: var(--f-display); font-weight: 400; font-size: 26px; margin: var(--s-7) 0 var(--s-3); }
.doc p { color: var(--c-on-paper-soft); margin-bottom: var(--s-4); }
.doc a { color: var(--c-blue-ink); text-underline-offset: 3px; }
