/* ============================================================
   SYNQLINE — style.css
   Where precision meets automation
   ============================================================ */

/* ── Monospace font only (system fonts handle everything else) ── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Custom Properties ── */
:root {
  /* Backgrounds — Apple light palette */
  --bg:            #FFFFFF;
  --bg-2:          #F5F5F7;
  --bg-3:          #E8E8ED;
  --surface:       #FBFBFD;
  --surface-2:     #F5F5F7;
  --surface-3:     #E8E8ED;

  /* Text — Apple grays */
  --text:          #1D1D1F;
  --text-2:        #3A3A3C;
  --text-3:        #6E6E73;
  --text-4:        #86868B;
  --text-5:        #AEAEB2;

  /* Borders on light backgrounds */
  --border:        rgba(0,0,0,0.07);
  --border-mid:    rgba(0,0,0,0.11);
  --border-strong: rgba(0,0,0,0.18);

  /* Brand accent — Apple Science Blue */
  --gold:          #0066CC;
  --gold-light:    #147CE5;
  --gold-btn:      #0066CC;
  --gold-dim:      rgba(0,102,204,0.08);
  --gold-glow:     rgba(0,102,204,0.15);
  --gold-glow-2:   rgba(0,102,204,0.22);

  /* Apple system font stack — SF Pro on Apple devices, best sans elsewhere */
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
           "Helvetica Neue", Arial, sans-serif;
  --mono:  "SF Mono", "JetBrains Mono", "Courier New", monospace;

  /* Legacy aliases used throughout (kept for compatibility) */
  --black:         #1D1D1F;
  --black-rich:    #F5F5F7;
  --white:         #FFFFFF;
  --white-80:      rgba(29,29,31,0.8);
  --white-50:      rgba(29,29,31,0.5);
  --white-30:      rgba(29,29,31,0.3);
  --white-12:      rgba(29,29,31,0.1);

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-2xl: 12rem;

  --container: 1220px;
  --nav-h:     52px;

  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text);
}

.label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

.label--dim {
  color: var(--text-4);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* ── Navigation — Apple style: translucent white, blur ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0);
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              -webkit-backdrop-filter 0.4s ease, border-color 0.4s ease;
}

.nav.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.nav__logo span {
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-3);
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-quart);
}

.nav__links a:hover { color: var(--text); }

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__links a.active { color: var(--text-2); }

.nav__cta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bg);
  background: var(--text);
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--text);
  border-radius: 980px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav__cta:hover {
  background: var(--text-2);
  border-color: var(--text-2);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.72rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.22s var(--ease-out-quart);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold-btn);
  border-color: var(--gold-btn);
  color: #FFFFFF;
}

.btn--gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-glow-2);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--gold-btn);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--gold);
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}

.btn--ghost:hover {
  color: var(--gold-light);
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Sections ── */
section {
  position: relative;
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.section-header .label {
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-3);
  max-width: 52ch;
  line-height: 1.7;
  font-weight: 400;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center,
    rgba(0,102,204,0.05) 0%,
    rgba(245,245,247,0.6) 50%,
    transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.hero__inner {
  padding: clamp(5rem, 10vh, 9rem) 0 clamp(4rem, 8vh, 7rem);
  max-width: 860px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__eyebrow .label {
  color: var(--text-4);
}

.hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--border-strong);
}

.hero__headline {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero__headline em {
  font-style: normal;
  color: var(--gold);
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-3);
  line-height: 1.7;
  max-width: 54ch;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-5);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gold-btn));
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.8; }
}

/* ── Marquee ── */
.marquee-section {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-section__inner {
  position: relative;
}

.marquee-section__inner::before,
.marquee-section__inner::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section__inner::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-2), transparent);
}

.marquee-section__inner::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-2), transparent);
}

.marquee-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 0;
  white-space: nowrap;
}

.marquee-client {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 0 2.5rem;
  transition: color 0.3s ease;
}

.marquee-client:hover {
  color: var(--gold);
}

.marquee-dot {
  width: 3px;
  height: 3px;
  background: var(--gold-btn);
  opacity: 0.35;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Services Grid ── */
.services {
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}

.service-card {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  cursor: default;
  background: var(--bg);
  transition: background 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover {
  background: var(--bg-2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__number {
  font-family: var(--sans);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  margin-bottom: -0.5rem;
  transition: color 0.4s ease;
  user-select: none;
}

.service-card:hover .service-card__number {
  color: rgba(0,102,204,0.1);
}

.service-card__label {
  margin-bottom: 0.8rem;
}

.service-card__title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: var(--text);
  transition: color 0.25s ease;
}

.service-card:hover .service-card__title {
  color: var(--gold);
}

.service-card__body {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 38ch;
}

/* ── Process ── */
.process {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.process-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.process-step {
  padding: 0 2rem;
}

.process-step:first-child { padding-left: 0; }
.process-step:last-child  { padding-right: 0; }

.process-connector {
  display: flex;
  align-items: center;
  padding-top: 1.1rem;
}

.process-connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold-btn), var(--border-strong));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out-expo);
}

.process-connector.line-drawn .process-connector-line {
  transform: scaleX(1);
}

.process-connector-dot {
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--gold-btn);
  background: var(--bg-2);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.7s;
}

.process-connector.line-drawn .process-connector-dot {
  opacity: 1;
}

.process-step__number {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.process-step__title {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  color: var(--text);
}

.process-step__body {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.7;
}

/* ── Metrics ── */
.metrics {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.metric-item {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.metric-item:last-child {
  border-right: none;
}

.metric-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.metric-item:hover::after {
  transform: scaleX(1);
}

.metric-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.metric-value span {
  color: var(--gold);
}

.metric-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-4);
  line-height: 1.5;
}

/* ── Capabilities ── */
.capabilities {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.capabilities-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.cap-tag {
  --tag-delay: 0s;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border-mid);
  background: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: default;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    opacity 0.5s var(--ease-out-expo) var(--tag-delay),
    transform 0.5s var(--ease-out-expo) var(--tag-delay);
}

.cap-tag:hover {
  color: var(--gold);
  border-color: var(--gold-btn);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

.js-ready .capabilities-tags:not(.tags-visible) .cap-tag {
  opacity: 0;
  transform: translateY(12px);
}

.capabilities-tags.tags-visible .cap-tag {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA Section ── */
.cta-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%,
    rgba(0,102,204,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.028em;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-3);
  font-size: 1rem;
  margin-bottom: 2.2rem;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
  background: var(--bg-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.footer__brand .logo {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.9rem;
  display: block;
}

.footer__brand .logo span {
  color: var(--gold);
}

.footer__brand p {
  font-size: 0.82rem;
  color: var(--text-4);
  line-height: 1.7;
  max-width: 36ch;
}

.footer__col h4 {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer__col ul li {
  margin-bottom: 0.7rem;
}

.footer__col ul li a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.2s ease;
}

.footer__col ul li a:hover {
  color: var(--gold);
}

.footer__bottom {
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__bottom p {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: var(--text-5);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem)) 0 clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 50vw;
  height: 100%;
  background: radial-gradient(ellipse at right,
    rgba(0,102,204,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .label {
  margin-bottom: 1.2rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  max-width: 18ch;
  margin-bottom: 1.2rem;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-3);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Services Page ── */
.service-detail {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.service-detail.alt {
  background: var(--bg-2);
}

.service-detail__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.service-detail.alt .service-detail__inner {
  direction: rtl;
}

.service-detail.alt .service-detail__inner > * {
  direction: ltr;
}

.service-detail__tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.service-detail__number {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(0,0,0,0.06);
  line-height: 1;
}

.service-detail .service-detail__inner > div:first-child > h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.service-detail__inner > div:first-child > p {
  font-size: 0.93rem;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.service-detail ul {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-detail ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.6;
}

.service-detail ul li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold-btn);
  flex-shrink: 0;
  margin-top: 0.55rem;
  transform: rotate(45deg);
}

.service-detail__visual {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.service-detail.alt .service-detail__visual {
  background: var(--surface);
}

.service-detail__visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold-btn), transparent);
}

.service-tools {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-tool {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.service-tool:hover {
  border-color: var(--border-mid);
  background: var(--bg-2);
}

.service-tool__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-tool__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-btn);
  fill: none;
  stroke-width: 1.5;
}

.service-tool__name {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-2);
}

.service-tool__desc {
  font-size: 0.78rem;
  color: var(--text-4);
}

/* Only hide tools after JS has initialized */
.js-ready .service-tool {
  opacity: 0;
}

/* ── Service Tool Slide-In ── */
@keyframes tool-slide-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.service-detail__visual.tools-visible .service-tool {
  animation: tool-slide-in 0.5s var(--ease-out-expo) forwards;
}

.service-detail__visual.tools-visible .service-tool:nth-child(1) { animation-delay: 0.05s; }
.service-detail__visual.tools-visible .service-tool:nth-child(2) { animation-delay: 0.13s; }
.service-detail__visual.tools-visible .service-tool:nth-child(3) { animation-delay: 0.21s; }
.service-detail__visual.tools-visible .service-tool:nth-child(4) { animation-delay: 0.29s; }

/* ── About Page ── */
.about-values {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.values-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.value-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 3rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.25s ease;
}

.value-item:hover {
  background: var(--bg-2);
}

.value-item__num {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 2px;
  color: var(--gold);
  padding-top: 0.3rem;
}

.value-item__title {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.value-item__body {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.75;
}

.about-industries {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.industry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-mid);
  border: 1px solid var(--border-mid);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.industry-item {
  background: var(--bg-2);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: background 0.25s ease;
}

.industry-item:hover {
  background: var(--bg);
}

.industry-item h3 {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.industry-item p {
  font-size: 0.82rem;
  color: var(--text-4);
  line-height: 1.6;
}

/* ── Contact Page ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-4);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg);
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 400;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  resize: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 8px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-5);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--gold-btn);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%230066CC' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
}

.form-field select option {
  background: var(--bg);
  color: var(--text);
}

.form-field textarea {
  min-height: 130px;
  border-radius: 8px;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.form-note {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 1.5px;
  color: var(--text-5);
}

/* ── Contact channels ── */
.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.22s ease, background 0.22s ease,
              box-shadow 0.22s ease, transform 0.22s var(--ease-out-quart);
  cursor: pointer;
}

.contact-channel:hover {
  border-color: var(--gold-btn);
  background: var(--gold-dim);
  box-shadow: 0 2px 8px var(--gold-glow);
  transform: translateX(3px);
}

.contact-channel__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  background: var(--bg-2);
  flex-shrink: 0;
}

.contact-channel__icon svg {
  width: 16px;
  height: 16px;
}

.contact-channel__label {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 0.15rem;
}

.contact-channel__value {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

/* ── Contact Grid ── */
.contact-main {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.contact-left {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border-right: 1px solid var(--border);
}

.contact-right {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--bg-2);
}

.contact-right::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: calc(-1 * clamp(2.5rem, 5vw, 4.5rem));
  margin-left: calc(-1 * clamp(2.5rem, 5vw, 4.5rem));
  margin-right: calc(-1 * clamp(2.5rem, 5vw, 4.5rem));
  width: calc(100% + 2 * clamp(2.5rem, 5vw, 4.5rem));
}

.availability-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.availability-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2.5s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.availability-text {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-4);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-left h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 1.2rem;
}

.contact-left > p {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 0.82rem;
  color: var(--text-4);
}

.response-time {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.response-time .label {
  display: block;
  margin-bottom: 1rem;
}

.response-time p {
  font-size: 0.82rem;
  color: var(--text-4);
  line-height: 1.7;
}

/* ── What Next Section ── */
.what-next-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.what-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.what-next-item {
  padding: clamp(2rem, 4vw, 3rem);
  border-right: 1px solid var(--border);
}

.what-next-item:last-child {
  border-right: none;
}

.what-next-item .label {
  margin-bottom: 1.2rem;
  font-size: 0.54rem;
}

.what-next-item h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.what-next-item p {
  font-size: 0.82rem;
  color: var(--text-4);
  line-height: 1.75;
}

/* ── About Story ── */
.about-story {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 8vw, 9rem);
  align-items: start;
}

.about-story__eyebrow {
  display: block;
  margin-bottom: 1.5rem;
}

.about-story__headline {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.about-story__body p {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.about-story__body p:last-child {
  margin-bottom: 0;
}

/* ── Clients Grid ── */
.clients {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.client-card {
  background: var(--bg);
  padding: 2rem;
}

.client-card__category {
  margin-bottom: 0.8rem;
}

.client-card__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.client-card__desc {
  font-size: 0.78rem;
  color: var(--text-4);
}

/* ── Template Previews (Services page) ── */
.template-previews {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.template-preview {
  background: var(--bg-2);
  border: 1px solid var(--border-mid);
  padding: 1.2rem;
}

.template-preview .label {
  margin-bottom: 0.8rem;
  font-size: 0.52rem;
}

.template-preview__text {
  font-size: 0.82rem;
  color: var(--text-3);
  font-family: var(--mono);
  line-height: 1.6;
}

/* ── Services Section Footer ── */
.services__footer {
  margin-top: 2rem;
  text-align: right;
}

/* ── CTA Section Label ── */
.cta-section .label {
  display: block;
  margin-bottom: 1.5rem;
}

/* ── Page Hero Emphasis ── */
.page-hero em {
  font-style: italic;
  color: var(--gold);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Utility ── */
.gold { color: var(--gold); }

/* ── Mobile Nav Overlay ── */
.mobile-nav {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s ease 0.3s;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.3s ease, visibility 0s ease 0s;
}

.mobile-nav .btn {
  margin-top: 1rem;
}

.mobile-nav a {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-3);
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--text);
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--gold-btn);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Page Load Fade ── */
@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: page-in 0.3s ease forwards;
}

/* ── Hero Word Reveal ── */
@keyframes word-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-word {
  display: inline-block;
  opacity: 0;
  animation: word-up 0.6s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--word-i, 0) * 0.08s + 0.1s);
}

.hero-word em {
  display: inline;
  font-style: normal;
  color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .service-detail__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-detail.alt .service-detail__inner {
    direction: ltr;
  }

  .service-detail.alt .service-detail__inner > div:first-child { order: 1; }
  .service-detail.alt .service-detail__inner > div:last-child  { order: 0; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4.5rem;
  }

  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__hamburger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }

  .process-track {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process-connector { display: none; }

  .metrics-grid { grid-template-columns: 1fr 1fr; }

  .metric-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .metric-item:nth-child(2n) { border-right: none; }
  .metric-item:nth-last-child(-n+2):nth-child(odd),
  .metric-item:last-child { border-bottom: none; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .value-item {
    grid-template-columns: 60px 1fr;
    gap: 1.2rem;
  }

  .value-item__body {
    grid-column: 2;
    margin-top: 0.4rem;
  }

  .industry-list { grid-template-columns: 1fr; }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .what-next-grid {
    grid-template-columns: 1fr;
  }

  .what-next-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .what-next-item:last-child {
    border-bottom: none;
  }

  .hero__headline { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .section-header h2 { font-size: clamp(1.7rem, 7vw, 2.5rem); }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-item { border-right: none; }
  .metric-item:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--border); }
  .metric-item:last-child { border-bottom: none; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .cta-actions   { flex-direction: column; }
}

/* ── Custom Cursor ── */
@media (hover: hover) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  opacity: 0;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #1D1D1F;
  scale: 1;
  transition: opacity 0.35s ease, scale 0.5s var(--ease-out-expo);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(29,29,31,0.3);
  background: transparent;
  transition: opacity 0.35s ease,
              width  0.55s var(--ease-out-expo),
              height 0.55s var(--ease-out-expo),
              border-color 0.4s ease,
              background-color 0.4s ease;
}

.cursor-dot.cursor-on,
.cursor-ring.cursor-on { opacity: 1; }

html.cursor-hover .cursor-dot  { scale: 0; }

html.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: rgba(29,29,31,0.1);
  background-color: rgba(29,29,31,0.03);
}

html.cursor-click .cursor-ring {
  width: 28px;
  height: 28px;
  border-color: rgba(29,29,31,0.6);
  transition-duration: 0.08s;
}

/* ── Button Press State ── */
.btn:active {
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.08s;
}

.btn--gold:active {
  box-shadow: none;
  transform: translateY(1px) scale(0.97);
}

/* ── Mobile Nav Link Stagger ── */
@keyframes nav-link-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav.open a:nth-child(1) { animation: nav-link-in 0.45s var(--ease-out-expo) 0.04s both; }
.mobile-nav.open a:nth-child(2) { animation: nav-link-in 0.45s var(--ease-out-expo) 0.10s both; }
.mobile-nav.open a:nth-child(3) { animation: nav-link-in 0.45s var(--ease-out-expo) 0.16s both; }
.mobile-nav.open a:nth-child(4) { animation: nav-link-in 0.45s var(--ease-out-expo) 0.22s both; }
.mobile-nav.open a:nth-child(5) { animation: nav-link-in 0.45s var(--ease-out-expo) 0.28s both; }

/* ── Metric Counter ── */
.metric-value {
  transition: opacity 0.3s ease;
}

/* ── Form Success State ── */
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 3.5rem 2rem;
  text-align: center;
  animation: form-success-in 0.5s var(--ease-out-expo) forwards;
}

.form-success__check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-success__check svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-btn);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: check-draw 0.45s var(--ease-out-expo) 0.3s forwards;
}

.form-success__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text);
}

.form-success__body {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 32ch;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }

  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-word { opacity: 1; animation: none; }
  .marquee-track { animation: none; }
  .hero__scroll-line { animation: none; opacity: 0.4; }

  .process-connector-line { transform: scaleX(1); transition: none; }
  .process-connector-dot  { opacity: 1; transition: none; }

  .js-ready .capabilities-tags:not(.tags-visible) .cap-tag { opacity: 1; transform: none; }
  .js-ready .service-tool { opacity: 1; animation: none; }

  .mobile-nav.open a { animation: none; opacity: 1; transform: none; }
  .form-success { animation: none; opacity: 1; transform: none; }
  .form-success__check svg { animation: none; stroke-dashoffset: 0; }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
