/* Superior Solutions Consulting — site styles */

@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #08090b;
  --bg-alt: #0c0d10;
  --surface: #111317;
  --surface-hi: #16191e;
  --text: #eceef1;
  --muted: #9aa1ab;
  --faint: #5d646e;
  --silver: #c9ced6;
  --chrome: linear-gradient(180deg, #ffffff 0%, #e4e7eb 55%, #b4b9c1 100%);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  --glow: rgba(214, 220, 230, 0.55);
  --max: 1200px;
  --measure: 680px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Tight', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--silver); color: var(--bg); }

:focus-visible { outline: 1px solid var(--silver); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only, .hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* Icons */
.icon {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-lg { width: 28px; height: 28px; }

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover { box-shadow: 0 0 32px rgba(214, 220, 230, .25); }
.btn:hover .icon { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost::before { background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), transparent); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-small { padding: 9px 16px; font-size: 12px; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, transform .45s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 9, 11, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header.tucked { transform: translateY(-100%); }
.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--silver));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 30px; width: auto; }
.brand-name {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver);
}
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) {
  position: relative;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -8px;
  height: 1px;
  background: var(--text);
  transition: right .35s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.active { color: var(--text); }
.site-nav a:not(.btn):hover::after,
.site-nav a.active::after { right: 0; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-toggle .bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--text);
  transition: transform .25s, top .25s;
}
.menu-toggle .bar:nth-of-type(2) { top: 17px; }
.menu-toggle .bar:nth-of-type(3) { top: 25px; }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-of-type(3) { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  --hx: 50%;
  --hy: 40%;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 140px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 36%, rgba(201, 206, 214, 0.07), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 110%, rgba(201, 206, 214, 0.05), transparent 70%),
    var(--bg);
}
.hero-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 15%, transparent 75%);
}
/* A brighter copy of the grid that only shows around the cursor */
.hero-grid-lit {
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle 260px at var(--hx) var(--hy), #000, transparent 70%);
  mask-image: radial-gradient(circle 260px at var(--hx) var(--hy), #000, transparent 70%);
  opacity: 0;
  transition: opacity .6s;
}
.hero:hover .hero-grid-lit { opacity: 1; }
.hero-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 420px at var(--hx) var(--hy), rgba(214, 220, 230, .07), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo-wrap {
  margin-bottom: 52px;
  perspective: 900px;
}
.hero-logo {
  width: min(430px, 76vw);
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .5s var(--ease);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% { translate: 0 -8px; }
}
.hero h1 {
  max-width: 1000px;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 600;
}
.hero h1 .w {
  display: inline-block;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.no-split .hero h1, .hero h1:not(.is-split) {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  max-width: var(--measure);
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 42px; }

/* Invisible anchor where the scroll thread begins */
.thread-start {
  position: absolute;
  left: 50%; bottom: 64px;
  width: 1px; height: 1px;
}

/* Ticker */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--silver);
}
.ticker span.dim { color: #4a5059; }
.ticker i {
  width: 7px; height: 7px;
  border: 1px solid var(--silver);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes ticker { to { transform: translateX(calc(-50% - 20px)); } }

/* Sections */
.section { position: relative; padding: 136px 0; }
.section > .wrap { position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Background textures */
.section-caps::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(201, 206, 214, .05), transparent 70%),
    radial-gradient(ellipse 40% 30% at 0% 100%, rgba(201, 206, 214, .04), transparent 70%);
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 65%);
  mask-image: linear-gradient(90deg, #000, transparent 65%);
}
.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 85% 60%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 60% at 85% 60%, #000, transparent 70%);
}

.section-head { margin-bottom: 64px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
.eyebrow span::after {
  content: "";
  width: 32px; height: 1px;
  background: var(--line-strong);
  transition: width .6s var(--ease), background .6s;
}
.eyebrow.lit span::after { width: 56px; background: var(--silver); }
.section h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-intro {
  max-width: var(--measure);
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
}
.section-intro.muted { margin-top: 12px; font-size: 16px; color: var(--faint); }

/* Cursor spotlight for cards */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 50%), rgba(214, 220, 230, .08), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}
.spot:hover::after { opacity: 1; }

/* Silo index */
.silo-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 104px;
}
.silo-link {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px;
  background: var(--bg);
}
.silo-link > .icon-lg { color: var(--silver); }
.silo-link span { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.silo-link strong { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.silo-link em { font-style: normal; font-size: 15px; color: var(--muted); }
.silo-link .arrow { color: var(--faint); transition: transform .3s var(--ease), color .3s; }
.silo-link:hover .arrow { color: var(--text); transform: translateX(5px); }

/* Silos */
.silo + .silo { margin-top: 104px; }
.silo-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}
.silo-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--silver);
  flex-shrink: 0;
  transition: border-color .6s, box-shadow .6s, color .6s, background .6s;
}
.silo-num.lit {
  border-color: var(--silver);
  color: #fff;
  background: rgba(214, 220, 230, .08);
  box-shadow: 0 0 24px rgba(214, 220, 230, .22), inset 0 0 12px rgba(214, 220, 230, .12);
}
.silo-head h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; }
.silo-head p { margin-top: 6px; color: var(--muted); }

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
}
.service {
  padding: 40px 32px 46px;
  background: var(--bg);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--silver), transparent);
  transition: width .6s var(--ease);
}
.service:hover::before { width: 100%; }
.service-no {
  position: absolute;
  top: 34px; right: 30px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 30px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
  color: var(--text);
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.service:hover .service-icon {
  border-color: var(--silver);
  box-shadow: 0 0 24px rgba(214, 220, 230, .18);
  transform: translateY(-3px);
}
.service-icon .icon { width: 24px; height: 24px; }
/* Icons draw themselves in as the card appears */
.js .service.reveal .icon,
.js .contact-direct.reveal .service-icon .icon {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0) * 120ms + 250ms);
}
.js .service.reveal.in .icon,
.js .contact-direct.reveal.in .service-icon .icon { stroke-dashoffset: 0; }
.service h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; padding-right: 24px; }
.service p { margin-top: 12px; font-size: 15.5px; color: var(--muted); }

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.about-side .section-head { margin-bottom: 48px; }
.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at 50% 50%, rgba(214, 220, 230, .07), transparent 65%) padding-box,
    linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
    conic-gradient(from var(--spin), transparent 0 62%, rgba(214, 220, 230, .7) 75%, transparent 88%) border-box,
    linear-gradient(var(--line), var(--line)) border-box;
  animation: spin 9s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }
.emblem img { width: 64%; }
.emblem .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--silver);
}
.emblem .tl { top: -6px; left: -6px; border-top-width: 1px; border-left-width: 1px; }
.emblem .tr { top: -6px; right: -6px; border-top-width: 1px; border-right-width: 1px; }
.emblem .bl { bottom: -6px; left: -6px; border-bottom-width: 1px; border-left-width: 1px; }
.emblem .br { bottom: -6px; right: -6px; border-bottom-width: 1px; border-right-width: 1px; }
.emblem.lit { box-shadow: 0 0 60px rgba(214, 220, 230, .08); }

.about-lead {
  font-family: var(--display);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}
.experience {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.mini-head {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.experience p { color: var(--muted); font-size: 16.5px; }
.expertise {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.expertise li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-alt);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background .3s;
}
.expertise li::before {
  content: "";
  width: 6px; height: 6px;
  border: 1px solid var(--silver);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: background .3s;
}
.expertise li:hover { background: var(--surface); }
.expertise li:hover::before { background: var(--silver); }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 56px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 26px 18px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.contact-form textarea { min-height: 190px; resize: vertical; padding-top: 32px; }
/* Floating labels */
.field label {
  position: absolute;
  left: 19px; top: 19px;
  font-family: var(--display);
  font-size: 15px;
  color: var(--faint);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s, letter-spacing .25s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(.72);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}
.contact-form input:hover,
.contact-form textarea:hover { border-color: var(--line-strong); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--silver);
  background: var(--surface-hi);
  box-shadow: 0 0 0 4px rgba(214, 220, 230, .06);
}
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-error { margin: 0; color: var(--muted); font-size: 15px; border-left: 2px solid var(--silver); padding-left: 14px; }
.form-error a { color: var(--text); }
/* Shown in place of the form after a successful send */
.contact-form[hidden], .form-success[hidden] { display: none; }
.form-success {
  padding: 48px 40px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  animation: success-in .6s var(--ease);
}
.form-success:focus { outline: none; }
.form-success .service-icon { margin-bottom: 26px; }
.form-success h3 { font-size: 28px; font-weight: 600; margin: 0 0 10px; }
.form-success p { color: var(--muted); margin: 0 0 28px; }
@keyframes success-in { from { opacity: 0; transform: translateY(12px); } }

.contact-direct {
  padding: 38px 34px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.contact-direct .service-icon { margin-bottom: 26px; }
.contact-direct h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.email-link {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.email-link:hover { background-size: 100% 1px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 12px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.copy-btn .icon { width: 14px; height: 14px; }
.copy-btn:hover, .copy-btn.done { color: var(--text); border-color: var(--silver); }

/* Footer */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--faint);
}
.footer-brand { display: flex; align-items: center; }
.footer-mark { height: 28px; width: auto; }
.footer-mail { color: var(--muted); transition: color .2s; }
.footer-mail:hover { color: var(--text); }
.to-top {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.to-top .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.to-top:hover { color: var(--text); }
.to-top:hover .icon { transform: translateY(-3px); }

/* Scroll thread (drawn by js/main.js) */
.thread {
  position: absolute;
  top: 0; left: 0;
  z-index: 40;
  pointer-events: none;
  overflow: visible;
}
.thread path { fill: none; stroke-linecap: round; }
.thread .track { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.thread .trail { stroke: url(#thread-grad); stroke-width: 1.5; }
.thread .node {
  fill: var(--bg);
  stroke: rgba(255, 255, 255, .25);
  stroke-width: 1;
  transition: fill .5s, stroke .5s;
}
.thread .node-ring {
  fill: none;
  stroke: var(--silver);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.thread g.lit .node { fill: var(--silver); stroke: var(--silver); }
.thread g.lit .node-ring { animation: ring 1.1s var(--ease) forwards; }
@keyframes ring {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.2); }
}
.thread .head { fill: #fff; filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 14px var(--glow)); }

/* Scroll reveal (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .hero h1 .w {
  opacity: 0;
  transform: translateY(.5em);
  filter: blur(8px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 250ms);
}
.js .hero h1.in .w { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero h1 .w { opacity: 1; transform: none; filter: none; transition: none; }
  .js .service.reveal .icon, .js .contact-direct.reveal .service-icon .icon { stroke-dashoffset: 0; transition: none; }
  .hero-logo, .emblem, .form-success { animation: none; }
  /* Keep the service ticker moving (slower) so every item stays visible */
  .ticker-track { animation-duration: 80s; }
}

/* Tablet */
@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr; }
  .silo-index { grid-template-columns: 1fr; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .emblem { max-width: 240px; }
  .footer-inner { flex-wrap: wrap; }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 24px; }
  .site-header { background: rgba(8, 9, 11, 0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .brand img { height: 26px; }
  .brand-name { font-size: 10px; letter-spacing: 0.2em; padding-left: 12px; }
  .brand { gap: 12px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 20px; justify-content: center; }
  .hero-logo-wrap { margin-bottom: 40px; }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 44px; }
  .silo-index { margin-bottom: 72px; }
  .silo-link { padding: 24px 20px; }
  .silo + .silo { margin-top: 80px; }
  .service { padding: 32px 24px 36px; }
  .service-no { top: 30px; right: 22px; }
  .expertise { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { align-self: stretch; justify-content: center; }
  .contact-direct { padding: 30px 24px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-mark { height: 34px; }
  .to-top { margin-left: 0; }
}
