/* Traceverge website, version 14
   Layout: a standard corporate rhythm. The home page opens with one calm screen: a centred
   headline over a lit horizon; inner pages open with a cover artwork. Sections then alternate between
   light and dark. Section headings are centred; every tile carries a gradient
   from the project palette (Royal Plum to Electric Orchid). */

/* Fonts: served from this site (no outside requests). Outfit and Geist, SIL Open Font License. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-700.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-400.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-500.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/geist-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  /* Project palette */
  --obsidian: #090B10;
  --graphite: #14171F;
  --plum-deep: #43198F;
  --plum: #5E2BB8;
  --violet: #8A3DE8;
  --orchid: #A245F7;
  --mist: #D8C8FF;
  --white: #FFFFFF;
  --ink: #16102C;

  /* Light neutrals, biased toward the brand purple */
  --paper: #FFFFFF;
  --paper-soft: #F7F4FC;
  --paper-tint: #F3ECFD;
  --ink-soft: #453E5C;
  --ink-quiet: #6A6384;
  --ink-line: #E6DCF8;
  --ink-line-strong: #CFC2EC;

  --dark-text: rgba(226, 214, 255, .84);
  --dark-text-quiet: rgba(216, 200, 255, .64);
  --dark-stroke: rgba(216, 200, 255, .16);
  --dark-stroke-strong: rgba(216, 200, 255, .32);
  --dark-glass: rgba(216, 200, 255, .1);
  --on-grad: rgba(255, 255, 255, .88);
  --on-grad-soft: rgba(255, 255, 255, .16);
  --on-grad-stroke: rgba(255, 255, 255, .26);
  --veil: rgba(9, 11, 16, .86);
  --glow: rgba(94, 43, 184, .5);
  --focus-ring: rgba(162, 69, 247, .32);

  /* Gradients: Royal Plum to Electric Orchid */
  --grad: linear-gradient(135deg, #43198F 0%, #5E2BB8 34%, #8A3DE8 70%, #A245F7 100%);
  --grad-btn: linear-gradient(135deg, #5E2BB8 0%, #8A3DE8 100%);
  --grad-btn-hover: linear-gradient(135deg, #6B34C9 0%, #9648EE 100%);
  --grad-text: linear-gradient(90deg, #5E2BB8 0%, #A245F7 100%);
  --grad-light-tile: linear-gradient(135deg, #E9DCFC 0%, #F6F1FE 46%, #FFFFFF 100%);
  --grad-dark-tile: linear-gradient(135deg, rgba(94, 43, 184, .42) 0%, rgba(162, 69, 247, .08) 62%);
  --dots: radial-gradient(rgba(255, 255, 255, .16) 1.2px, rgba(255, 255, 255, 0) 1.6px);

  /* Semantic tokens: dark scope (default) */
  --bg: var(--obsidian);
  --fg-strong: var(--white);
  --fg: var(--dark-text);
  --fg-quiet: var(--dark-text-quiet);
  --accent: var(--orchid);
  --accent-strong: var(--mist);
  --stroke: var(--dark-stroke);
  --stroke-strong: var(--dark-stroke-strong);
  --tile-bg: var(--grad-dark-tile), var(--graphite);
  --tile-stroke: var(--dark-stroke);
  --tile-shadow: 0 24px 60px -40px var(--glow);
  --eyebrow-bg: var(--dark-glass);
  --eyebrow-fg: var(--mist);
  --btn2-bg: var(--dark-glass);
  --btn2-fg: var(--white);
  --btn2-stroke: var(--dark-stroke-strong);
  --field-bg: rgba(9, 11, 16, .55);

  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
  --r-panel: 30px;
  --r-tile: 20px;
  --r-ctl: 12px;
}

/* Semantic tokens: light scope */
.light {
  --bg: var(--paper);
  --fg-strong: var(--ink);
  --fg: var(--ink-soft);
  --fg-quiet: var(--ink-quiet);
  --accent: var(--plum);
  --accent-strong: var(--plum);
  --stroke: var(--ink-line);
  --stroke-strong: var(--ink-line-strong);
  --tile-bg: var(--grad-light-tile);
  --tile-stroke: var(--ink-line);
  --tile-shadow: 0 1px 2px rgba(22, 16, 44, .05), 0 18px 40px -24px rgba(67, 25, 143, .34);
  --eyebrow-bg: var(--paper-tint);
  --eyebrow-fg: var(--plum);
  --btn2-bg: var(--paper);
  --btn2-fg: var(--ink);
  --btn2-stroke: var(--ink-line-strong);
  --field-bg: var(--paper);
  background: var(--bg); color: var(--fg);
}
.light--soft { --bg: var(--paper-soft); }

/* Anything on the solid gradient reads white, whatever section it sits in */
.tile--solid, .cta {
  --fg-strong: var(--white);
  --fg: var(--on-grad);
  --fg-quiet: var(--on-grad);
  --accent: var(--white);
  --accent-strong: var(--white);
  --stroke: var(--on-grad-stroke);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--obsidian); color: var(--fg); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--fg-strong); font-family: var(--font-display); font-weight: 600; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1304px; margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 24px; height: 24px; flex: none; fill: currentColor; }

/* ---------- Buttons, chips, eyebrows ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; font: 500 15.5px/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease; }
.btn .ico { width: 18px; height: 18px; }
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 12px 40px -12px var(--glow); }
.btn--light:hover { background: var(--mist); color: var(--ink); }
.btn--primary { background: var(--grad-btn); color: var(--white); box-shadow: 0 12px 34px -14px var(--glow); }
.btn--primary:hover { background: var(--grad-btn-hover); color: var(--white); }
.btn--primary[disabled] { opacity: .7; cursor: progress; }
.btn--ghost { background: var(--btn2-bg); border-color: var(--btn2-stroke); color: var(--btn2-fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--btn2-fg); }
.btn--on-grad { background: var(--on-grad-soft); border-color: var(--on-grad-stroke); color: var(--white); }
.btn--on-grad:hover { background: var(--on-grad-stroke); color: var(--white); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }


/* ---------- Navigation ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--nav-h); background: var(--veil); border-bottom: 1px solid var(--dark-stroke); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.nav__logo { display: block; flex: none; }
.nav__logo img { display: block; height: 17px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a:not(.btn) { padding: 10px 16px; border-radius: 999px; color: var(--dark-text); font: 500 15px/1 var(--font-body); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.nav__links a:not(.btn):hover { color: var(--white); background: var(--dark-stroke); }
.nav__links a[aria-current="page"] { color: var(--white); background: var(--dark-glass); }
.nav__links .btn { margin-left: 12px; padding: 12px 20px; font-size: 15px; }
.nav__toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--dark-glass); border: 1px solid var(--dark-stroke-strong); border-radius: 12px; color: var(--white); cursor: pointer; }
.nav__toggle .ico--close { display: none; }
.nav__toggle[aria-expanded="true"] .ico--open { display: none; }
.nav__toggle[aria-expanded="true"] .ico--close { display: block; }
@media (max-width: 960px) {
  .nav { height: auto; min-height: var(--nav-h); }
  .nav__in { flex-wrap: wrap; min-height: var(--nav-h); }
  .js .nav__toggle { display: inline-flex; }
  .nav__links { flex-wrap: wrap; padding-bottom: 14px; }
  .js .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 24px; background: var(--obsidian); border-bottom: 1px solid var(--dark-stroke); box-shadow: 0 30px 60px -20px var(--obsidian); }
  .js .nav__links.is-open { display: flex; }
  .js .nav__links a:not(.btn) { padding: 15px 16px; font-size: 17px; }
  .js .nav__links .btn { margin: 14px 0 0; padding: 15px 20px; font-size: 16px; }
}
@media (max-width: 480px) { .nav__logo img { height: 13px; } }
@media (max-width: 360px) { .nav__logo img { height: 11px; } .nav__in { gap: 14px; } }

/* ---------- Display type (the locked two-line headline) ---------- */
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: var(--white); text-wrap: balance; }
.display__l1, .display__l2 { display: block; }
.display__l1 { font-size: var(--fs); line-height: .98; letter-spacing: -.014em; }
.display__l2 { margin-top: .2em; font-size: calc(var(--fs) * .692); line-height: 1.02; letter-spacing: -.008em; color: var(--mist); }

/* ---------- Covers: one artwork per inner page ---------- */
.cover--services { background-image: url("../img/cover-services.webp"); }
.cover--about { background-image: url("../img/cover-about.webp"); }
.cover--contact { background-image: url("../img/cover-contact.webp"); }
@media (max-width: 1200px) {
  .cover--services { background-image: url("../img/cover-services-m.webp"); }
  .cover--about { background-image: url("../img/cover-about-m.webp"); }
  .cover--contact { background-image: url("../img/cover-contact-m.webp"); }
}

/* ---------- Home hero: one calm screen. Headline, one line, two buttons, four facts. ---------- */
.hero { position: relative; margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); overflow: hidden; isolation: isolate; background: var(--obsidian); text-align: center; }
.hero__bg { position: absolute; z-index: -3; inset: 0; pointer-events: none; background:
    radial-gradient(70% 62% at 50% 108%, rgba(162, 69, 247, .40) 0%, rgba(94, 43, 184, .26) 38%, rgba(9, 11, 16, 0) 74%),
    radial-gradient(40% 44% at 6% 0%, rgba(94, 43, 184, .30) 0%, rgba(9, 11, 16, 0) 70%),
    radial-gradient(36% 40% at 96% 0%, rgba(138, 61, 232, .20) 0%, rgba(9, 11, 16, 0) 70%); }
.hero__grid { position: absolute; z-index: -2; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(216, 200, 255, .06) 1px, rgba(216, 200, 255, 0) 1px), linear-gradient(90deg, rgba(216, 200, 255, .06) 1px, rgba(216, 200, 255, 0) 1px); background-size: 72px 72px; background-position: center top; -webkit-mask-image: radial-gradient(64% 70% at 50% 42%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 78%); mask-image: radial-gradient(64% 70% at 50% 42%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 78%); }
/* a single lit horizon line near the foot of the screen */
.hero__horizon { display: none; position: absolute; z-index: -1; left: 50%; bottom: 0; width: 8400px; height: 8400px; margin-left: -4200px; border-radius: 50%; transform: translateY(calc(100% - var(--rise))); pointer-events: none; background: radial-gradient(closest-side, var(--obsidian) 0%, var(--obsidian) 97.6%, #150C2E 100%); border-top: 1.5px solid rgba(226, 208, 255, .78); box-shadow: 0 -2px 22px rgba(190, 130, 255, .85), 0 -26px 90px -8px rgba(162, 69, 247, .6), 0 -90px 200px -30px rgba(94, 43, 184, .55); }
.hero__in { --fs: clamp(26px, 6.6vw, 46px); position: relative; padding-top: clamp(44px, 9vw, 84px); }
.hero__copy { max-width: 1180px; margin-inline: auto; }
.hero__copy .display { margin-top: 0; }
.hero__lede { margin: clamp(18px, 2.4vw, 26px) auto 0; max-width: 40em; font-size: clamp(16.5px, 1.2vw, 19px); line-height: 1.55; color: var(--dark-text); }
.hero__copy .display__l2 { margin-top: .3em; }
.hero__copy .btn { padding: 14px 24px; font-size: 15.5px; }
.hero__copy .cta-row { justify-content: center; margin-top: clamp(26px, 3vw, 38px); }
.hero__facts { position: relative; z-index: 3; margin-top: clamp(44px, 8vw, 72px); padding-bottom: clamp(40px, 6vw, 64px); text-align: left; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(94, 43, 184, .56) 0%, rgba(20, 23, 31, .82) 70%); border: 1px solid var(--dark-stroke-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); min-width: 0; }
.fact .ico { width: 22px; height: 22px; padding: 10px; box-sizing: content-box; border-radius: 12px; background: var(--grad-btn); color: var(--white); }
.fact b { display: block; font: 600 17px/1.25 var(--font-display); color: var(--white); }
.fact span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--dark-text); }

/* Desktop: the hero is exactly one screen. Copy sits in the middle, facts along the foot. */
@media (min-width: 1000px) and (min-height: 540px) {
  .hero { display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 560px; max-height: 960px; }
  .hero__horizon { --rise: clamp(150px, 25vh, 230px); display: block; }
  .hero__in { --fs: clamp(36px, min(3.5vw, 8.4vh), 62px); flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 0; padding-bottom: clamp(150px, 27vh, 250px); }
  .hero__copy { width: 100%; }
  .hero__lede { margin-top: clamp(16px, 2.8vh, 26px); }
  .hero__copy .cta-row { margin-top: clamp(22px, 4vh, 36px); }
  .hero__facts { position: absolute; left: 0; right: 0; bottom: clamp(22px, 4.4vh, 48px); margin-top: 0; padding-bottom: 0; }
}
@media (min-width: 1000px) and (max-width: 1180px) and (min-height: 540px) { .fact { gap: 10px; padding: 13px 14px; } .fact b { font-size: 15.5px; } .fact span { font-size: 13px; } .fact .ico { padding: 8px; width: 20px; height: 20px; } }
@media (max-width: 999px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page heads (inner pages): copy left, cover right ---------- */
.phead { position: relative; margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); overflow: hidden; isolation: isolate; background: var(--obsidian); }
.phead__art { position: absolute; z-index: -1; top: 0; right: 0; height: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: right center; background-repeat: no-repeat; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%); }
.phead::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 22%; pointer-events: none; background: linear-gradient(180deg, rgba(9, 11, 16, 0) 0%, var(--obsidian) 100%); }
.phead__in { --fs: clamp(27px, 3.1vw, 46px); padding-block: clamp(72px, 9.5vw, 148px); }
.phead--plain .cta-row { margin-top: 30px; }
.phead__copy { max-width: 600px; }
.phead .display { margin-top: 0; }
.phead .display__l2 { margin-top: .3em; }
.phead__lede { margin-top: 22px; max-width: 30em; font-size: clamp(16.5px, 1.2vw, 19px); line-height: 1.55; color: var(--dark-text); }

/* Page heads with a live illustration (Services, Contact) */
.phead--live .phead__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px clamp(24px, 4vw, 64px); padding-block: clamp(32px, 3.6vw, 52px); }
.phead__live { justify-self: end; width: 100%; max-width: 530px; }
.live { display: block; width: 100%; height: auto; overflow: visible; }
.live__pulse { opacity: 0; }
@media (max-width: 960px) {
  .phead--live .phead__in { grid-template-columns: minmax(0, 1fr); padding-block: 56px 28px; }
  .phead__live { justify-self: center; max-width: 400px; }
}

@media (prefers-reduced-motion: no-preference) {
  .live__sweep { transform-box: view-box; transform-origin: 360px 310px; animation: sweep 9s linear infinite; }
  .live__pulse { transform-box: view-box; transform-origin: 360px 310px; animation: pulse 4.5s ease-out infinite; }
  .live__card { animation: bob 7s ease-in-out infinite alternate; }
  .live__card--b { animation-duration: 8.5s; animation-delay: -3s; }
  .live__dot { animation: typing 1.4s ease-in-out infinite; }
  .live__dot--2 { animation-delay: .2s; }
  .live__dot--3 { animation-delay: .4s; }
  @keyframes sweep { to { transform: rotate(360deg); } }
  @keyframes pulse { 0% { transform: scale(.32); opacity: .7; } 100% { transform: scale(1); opacity: 0; } }
  @keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
  @keyframes typing { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
  .rise > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise > *:nth-child(2) { animation-delay: .07s; }
  .rise > *:nth-child(3) { animation-delay: .14s; }
  .rise > *:nth-child(4) { animation-delay: .21s; }
  @keyframes rise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  .hero__horizon { animation: horizon 1.6s ease-out .1s both; }
  @keyframes horizon { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 1200px) {
  .phead { display: flex; flex-direction: column; }
  .phead__in { order: 1; padding-bottom: 0; }
  .phead__art { order: 2; position: relative; z-index: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 460px; margin-top: 16px; background-size: cover; background-position: center; -webkit-mask-image: none; mask-image: none; }
  .phead__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--obsidian) 0%, rgba(9, 11, 16, 0) 22%, rgba(9, 11, 16, 0) 78%, var(--obsidian) 100%); }
  .phead::after { display: none; }
}
@media (max-width: 560px) { .phead__in { --fs: clamp(24px, 7.6vw, 40px); } }

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(56px, 6.2vw, 96px); background: var(--bg); }
.sec__hd { max-width: 680px; margin: 0 auto clamp(30px, 3.6vw, 48px); text-align: center; }
.sec__hd h2 { margin-top: 0; }
h2 { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.lead { margin: 14px auto 0; max-width: 36em; font-size: clamp(16px, 1.15vw, 17.5px); line-height: 1.55; color: var(--fg); text-wrap: pretty; }
.sec__more { display: flex; justify-content: center; margin-top: clamp(28px, 3.4vw, 44px); }

/* ---------- Tiles (every tile carries a gradient) ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--4, .grid--5 { grid-template-columns: minmax(0, 1fr); } }

.tile { position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-tile); background: var(--tile-bg); border: 1px solid var(--tile-stroke); box-shadow: var(--tile-shadow); overflow: hidden; color: var(--fg); scroll-margin-top: 100px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
a.tile { text-decoration: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .tile:hover { transform: translateY(-3px); border-color: var(--accent); } }
.tile__ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: var(--white); box-shadow: 0 12px 28px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .3); }
.tile__ico + h3 { margin-top: 20px; }
.tile h3 { font-size: 19.5px; }
.tile > p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.tile__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font: 500 15px/1.2 var(--font-body); color: var(--accent-strong); }
.tile__go .ico { width: 17px; height: 17px; transition: transform .2s ease; }
a.tile:hover .tile__go .ico { transform: translateX(4px); }
.ticks { margin-top: 16px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* link tiles (home services): icon, name, arrow */
.tile--row { flex-direction: row; align-items: center; gap: 16px; padding: 20px 22px; }
.tile--row h3 { font-size: 17.5px; }
.tile--row .tile__ico + h3 { margin-top: 0; }
.tile--row > .ico { margin-left: auto; width: 18px; height: 18px; color: var(--accent-strong); transition: transform .2s ease; }
a.tile--row:hover > .ico { transform: translateX(4px); }

/* service rows (Services page): name, description, what is included */
.svc-list { display: grid; gap: 16px; }
.tile.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: 16px clamp(20px, 3.2vw, 48px); align-items: center; padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.8vw, 36px); }
.svc__hd { display: flex; align-items: center; gap: 16px; min-width: 0; }
.svc__hd h3 { margin: 0; font-size: 19.5px; }
.tile.svc > p { margin-top: 0; }
.tile.svc .ticks { margin-top: 0; }
@media (max-width: 960px) { .tile.svc { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* solid gradient tile */
.tile--solid { background: var(--grad); border-color: var(--on-grad-stroke); box-shadow: 0 30px 70px -34px rgba(94, 43, 184, .85); color: var(--on-grad); }
.tile--solid::before, .cta::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--dots); background-size: 20px 20px; -webkit-mask-image: linear-gradient(225deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 62%); mask-image: linear-gradient(225deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 62%); pointer-events: none; }
.tile--solid::after, .cta::after { content: ""; position: absolute; z-index: -1; left: -20%; top: -60%; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); pointer-events: none; }
.tile--solid .tile__ico { background: var(--on-grad-soft); box-shadow: inset 0 0 0 1px var(--on-grad-stroke); }
@media (hover: hover) { .tile--solid:hover { border-color: var(--white); } }

/* big-word tiles (promise) */
.tile--word h3 { font-size: clamp(25px, 2.2vw, 31px); font-weight: 700; line-height: 1; letter-spacing: -.025em; }
.tile--word .tile__ico + h3 { margin-top: 30px; }
.tile--word > p { margin-top: 12px; font-size: 16px; }

/* small tiles (coverage, values) */
.tile--compact { padding: 22px; }
.tile--compact h3 { font-size: 17.5px; }
.tile--compact > p { font-size: 14.5px; margin-top: 6px; }
.tile--compact .tile__ico { width: 44px; height: 44px; border-radius: 12px; }
.tile--compact .tile__ico + h3 { margin-top: 16px; }

/* ---------- Flow (a real sequence, so numbered) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; counter-reset: step; }
.flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow .tile { overflow: visible; padding: 26px 22px; }
.flow .tile::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 20px; top: 20px; font: 700 15px/1 var(--font-display); letter-spacing: .02em; color: var(--fg-quiet); }
.flow .tile h3 { font-size: 18.5px; }
.flow .tile > p { font-size: 14.5px; margin-top: 8px; }
.flow .tile:not(:last-child)::after { content: ""; position: absolute; z-index: 2; right: -24px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 1100px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 560px; margin-inline: auto; }
  .flow .tile:not(:last-child)::after { right: 50%; top: auto; bottom: -24px; margin: 0 -9px 0 0; transform: rotate(90deg); }
}

/* ---------- Split (About) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(24px, 5vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split h2 { margin-top: 0; }
.split .lead { margin-inline: 0; }
.stack { display: grid; gap: 18px; }
.tile--quote h3 { font: 500 14.5px/1.3 var(--font-body); letter-spacing: 0; color: var(--on-grad); }
.tile--quiet h3 { color: var(--fg-quiet); }
.tile--quote > p { margin-top: 10px; font: 500 clamp(18px, 1.5vw, 21px)/1.36 var(--font-display); letter-spacing: -.01em; color: var(--fg-strong); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Call to action ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-panel); padding: clamp(40px, 6vw, 84px) clamp(24px, 5vw, 72px); background: var(--grad); text-align: center; color: var(--on-grad); box-shadow: 0 40px 110px -50px rgba(94, 43, 184, .9); }
.cta h2 { max-width: 16em; margin-inline: auto; }
.cta p { margin: 14px auto 0; max-width: 32em; font-size: 17px; }
.cta .cta-row { justify-content: center; margin-top: 30px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 20px; align-items: start; }
.contact > * { min-width: 0; }
.panel { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-panel); background: var(--tile-bg); border: 1px solid var(--tile-stroke); box-shadow: var(--tile-shadow); }
.panel h2 { font-size: clamp(23px, 2.1vw, 29px); }
.panel > p { margin-top: 10px; font-size: 16.5px; }
.form { display: grid; gap: 22px; margin-top: 30px; }
.form__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.fg label, .fg legend { display: block; margin-bottom: 8px; padding: 0; font: 500 14.5px/1.3 var(--font-body); color: var(--fg-strong); }
.fg label em, .fg legend em { font-style: normal; font-weight: 400; color: var(--fg-quiet); }
.fg input[type="text"], .fg input[type="email"], .fg select, .fg textarea { display: block; width: 100%; padding: 14px 16px; background-color: var(--field-bg); color: var(--fg-strong); border: 1px solid var(--stroke-strong); border-radius: var(--r-ctl); font: 400 16px/1.4 var(--font-body); transition: border-color .2s ease, box-shadow .2s ease; }
.light .fg input, .light .fg select, .light .fg textarea { color-scheme: light; }
.fg select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5l6 6 6-6' fill='none' stroke='%235E2BB8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.fg textarea { min-height: 150px; resize: vertical; }
.fg ::placeholder { color: var(--fg-quiet); opacity: 1; }
.fg input:focus-visible, .fg select:focus-visible, .fg textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-ring); }
.fg input[aria-invalid="true"], .fg textarea[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
fieldset.fg { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 16px; background: var(--field-bg); border: 1px solid var(--stroke-strong); border-radius: 999px; font: 500 15px/1.2 var(--font-body); color: var(--fg); transition: background-color .15s ease, border-color .15s ease; }
.choice input:checked + span { background: var(--grad-btn); border-color: transparent; color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { font-size: 15px; font-weight: 500; color: var(--accent-strong); }
html:not(.js) .form button[type="submit"] { display: none; }
.result { margin-top: 26px; padding: 24px; background: var(--field-bg); border: 1px solid var(--stroke-strong); border-radius: var(--r-tile); }
.result h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; }
.result h3 .ico { width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: 50%; background: var(--grad-btn); color: var(--white); }
.result p { margin-top: 10px; }
.foot address a { justify-self: start; color: var(--white); text-decoration: underline; text-decoration-color: rgba(216, 200, 255, .45); text-underline-offset: 4px; }
.foot address a:hover { text-decoration-color: currentColor; }
.details { display: grid; gap: 18px; }
.details .tile h3 { display: flex; align-items: center; gap: 12px; font: 500 15px/1.3 var(--font-body); color: var(--fg-quiet); letter-spacing: 0; }
.details .tile h3 .ico { width: 20px; height: 20px; padding: 10px; box-sizing: content-box; border-radius: 12px; background: var(--grad); color: var(--white); }
.details p, .details address { margin-top: 14px; font-style: normal; color: var(--fg-strong); font-size: 16px; line-height: 1.55; }
.details ol { margin-top: 14px; display: grid; gap: 12px; counter-reset: n; }
.details ol li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; counter-increment: n; }
.details ol li::before { content: counter(n); position: absolute; left: 0; top: 0; font: 600 15px/1.6 var(--font-display); color: var(--accent); }
@media (max-width: 960px) { .contact { grid-template-columns: minmax(0, 1fr); } .form__two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pricing (pricing.html) ---------- */
.linkbtn { padding: 0; background: none; border: 0; cursor: pointer; font: 500 14.5px/1.3 var(--font-body); color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.phead--tight .phead__in { padding-block: clamp(40px, 5vw, 76px) clamp(30px, 3.6vw, 52px); }
.phead--tight .phead__copy { max-width: 680px; }
.phead--tight + .sec { padding-top: clamp(36px, 4.4vw, 64px); }
.price-nojs { max-width: 760px; margin: 0 auto 20px; font-weight: 500; color: var(--accent-strong); }

/* The four controls */
.ctrl { padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-tile); }
.ctrl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1.3fr); gap: 18px; align-items: start; }
.ctrl__field { min-width: 0; }
.ctrl__label { display: block; margin-bottom: 8px; font: 500 14.5px/1.3 var(--font-body); color: var(--fg-strong); }
.ctrl__field input[type="text"] { font: 600 18px/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
.ctrl__help { margin-top: 8px; font-size: 13.5px; color: var(--fg-quiet); }
.ctrl .form__err { margin-top: 8px; font-size: 14px; }
.ctrl__note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stroke); font-size: 14.5px; color: var(--fg); }
html:not(.js) .ctrl, html:not(.js) .plans { display: none; }
.seg { display: flex; flex-direction: column; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--stroke-strong); border-radius: 16px; }
.seg__opt { flex: 1 1 auto; min-height: 44px; padding: 9px 16px; background: none; border: 0; border-radius: 12px; cursor: pointer; font: 500 14.5px/1.25 var(--font-body); color: var(--fg); text-align: center; transition: background-color .18s ease, color .18s ease; }
.seg__opt:hover { color: var(--fg-strong); background: var(--paper-tint); }
.seg__opt[aria-pressed="true"] { background: var(--grad-btn); color: var(--white); }

/* Package cards */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin-top: clamp(22px, 2.6vw, 30px); }
.plan { padding: clamp(24px, 2.4vw, 32px); }
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-template-rows: subgrid; grid-row: span 8; row-gap: 0; align-content: start; }
}
.plan__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.plan__hd h3 { font-size: 23px; letter-spacing: -.02em; }
.plan__badge { padding: 7px 13px; border-radius: 999px; background: var(--on-grad-soft); border: 1px solid var(--on-grad-stroke); font: 500 12.5px/1 var(--font-body); color: var(--white); white-space: nowrap; }
.plan__sum { margin-top: 10px; font-size: 15.5px; line-height: 1.5; }
.plan__sum strong { font-weight: 600; color: var(--fg-strong); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 28px; font-size: 15px; color: var(--fg-quiet); }
.plan__amt { font: 600 clamp(32px, 2.9vw, 40px)/1.05 var(--font-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--fg-strong); }
.plan__alt { margin-top: 4px; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--fg-strong); }
.plan__avg, .plan__flat { margin-top: 4px; font-size: 14.5px; font-variant-numeric: tabular-nums; color: var(--fg-quiet); }
.plan .ticks { align-content: start; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--stroke); }
.plan__cta { align-self: end; width: 100%; margin-top: 26px; }
.tile.plan > .plan__cta { margin-top: auto; }
.tile.plan > .ticks { margin-bottom: 26px; }
.over { margin-top: clamp(22px, 2.6vw, 30px); padding-block: clamp(36px, 5vw, 64px); }
.over h2 { font-size: clamp(22px, 2.4vw, 32px); }
.price-notes { display: grid; gap: 12px; max-width: 880px; margin: clamp(26px, 3vw, 36px) auto 0; text-align: center; font-size: 15.5px; line-height: 1.55; }
.price-notes__lead { font-weight: 500; font-size: 16.5px; color: var(--fg-strong); }
.price-notes__fine { font-size: 13.5px; color: var(--fg-quiet); }

/* One-time services */
.ots__grid { max-width: 1040px; margin-inline: auto; }
.ots__tile h3 { font-size: 18px; }
.ots__tile .ots__price { margin-top: 14px; font: 600 clamp(24px, 2.2vw, 30px)/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--fg-strong); }
.ots__tile .ots__price span { font: 400 15px/1.4 var(--font-body); letter-spacing: 0; color: var(--fg-quiet); }

@media (max-width: 1100px) {
  .ctrl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .plans { grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 560px; margin-inline: auto; }
  .plan { display: flex; grid-row: auto; }
  .ots__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 560px) {
  .ctrl__grid { grid-template-columns: minmax(0, 1fr); }
}

/* The chosen estimate, shown on the Contact page */
.estimate { margin-top: 26px; padding: 20px 22px; background: var(--field-bg); border: 1px solid var(--stroke-strong); border-radius: var(--r-tile); }
.estimate__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.estimate__hd h3 { font-size: 17.5px; }
.estimate dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 20px; margin-top: 14px; font-size: 15px; line-height: 1.45; }
.estimate dt { color: var(--fg-quiet); }
.estimate dd { color: var(--fg-strong); font-weight: 500; font-variant-numeric: tabular-nums; }
.estimate__note { margin-top: 14px; font-size: 13.5px; color: var(--fg-quiet); }

/* ---------- Footer ---------- */
.foot { position: relative; padding-top: 64px; border-top: 1px solid var(--dark-stroke); font-size: 15.5px; overflow: hidden; background: var(--obsidian); }
.foot__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px 32px; }
.foot__tag { font: 600 22px/1.3 var(--font-display); color: var(--white); }
.foot__sub { margin-top: 8px; max-width: 36ch; color: var(--dark-text-quiet); }
.foot h2 { font: 500 13.5px/1.3 var(--font-body); letter-spacing: 0; color: var(--mist); }
.foot ul { margin-top: 14px; display: grid; gap: 10px; }
.foot a { color: var(--dark-text); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot address { margin-top: 14px; font-style: normal; display: grid; gap: 10px; color: var(--dark-text); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dark-stroke); font-size: 13.5px; color: var(--dark-text-quiet); }
.foot__base p { max-width: 78ch; }
.foot__mark { display: block; width: 100%; height: auto; margin-top: clamp(36px, 5vw, 64px); margin-bottom: -1.2%; opacity: .09; }
@media (max-width: 820px) { .foot__top { grid-template-columns: minmax(0, 1fr); } }
