/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #080808;
  --white:        #FFFFFF;
  --muted:        rgba(255, 255, 255, 0.40);
  --faint:        rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.38);
  --card-bg:      #0D0D0D;
  --card-hover:   #111111;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
}

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

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

/* Locomotive removed — ensure the scroll container wrapper doesn't restrict layout */
[data-scroll-container] {
  overflow: visible;
}

/* ─── Grid Texture ──────────────────────────────────────────────────────────── */
.grid-texture {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ─── Grain Overlay ─────────────────────────────────────────────────────────── */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.038;
  mix-blend-mode: overlay;
}

/* ─── Custom Cursor ─────────────────────────────────────────────────────────── */
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
  will-change: transform;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition:
    width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.35s ease,
    border-color 0.35s ease;
}

.cursor-label {
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

body.cursor-link .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.3);
}

body.cursor-cta .cursor-dot {
  opacity: 0;
}

body.cursor-cta .cursor-ring {
  width: 88px;
  height: 88px;
  background: var(--white);
  border-color: var(--white);
}

body.cursor-cta .cursor-label {
  opacity: 1;
}

/* ─── Preloader ─────────────────────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.preloader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 60px;
  height: 60px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 20px;
}

.pg-cell {
  border-radius: 2px;
  background: transparent;
}

.pg-cell.filled {
  background: var(--white);
  opacity: 0;
  transform: scale(0);
}

.preloader-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.35em;
  color: var(--white);
  overflow: hidden;
}

.preloader-wordmark span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

/* ─── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 16px 60px;
}

.nav-logo img {
  height: 56px;
  width: auto;
  max-width: 300px;
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 9px 22px;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.nav-cta:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--bg);
}

/* ─── Section Label ─────────────────────────────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ─── Hero Brand Mark ───────────────────────────────────────────────────────── */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-brand img {
  height: 14px;
  width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

.hero-brand span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  padding: 0 10vw;
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.95;
  color: var(--white);
  margin: 0 0 28px;
  overflow: visible;
  opacity: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-headline .line {
  display: block;
}

.hero-headline .char {
  display: inline-block;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 44px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--white);
  text-decoration: none;
  position: relative;
}

.hero-cta::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-cta:hover::after {
  width: 100%;
}

.hero-banner {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 38vw, 540px);
  opacity: 0.055;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero-banner img {
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--muted);
}

.hero-scroll-hint span {
  font-family: var(--font-body);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* ─── Services – Horizontal Scroll ─────────────────────────────────────────── */
.services-section {
  overflow: hidden;
  margin-top: -60px;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.services-track {
  display: flex;
  align-items: stretch;
  height: 100vh;
  will-change: transform;
  backface-visibility: hidden;
}

.services-intro-panel {
  min-width: 42vw;
  padding: 10vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}

.services-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 64px);
  color: var(--white);
  line-height: 1.08;
  margin: 16px 0 20px;
}

.services-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 60px;
}

.services-progress {
  position: absolute;
  bottom: 48px;
  left: 8vw;
  right: 8vw;
  height: 1px;
  background: var(--border);
}

.services-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 0.05s linear;
}

.service-panel {
  min-width: 70vw;
  padding: 10vh 8vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.4s ease;
  flex-shrink: 0;
}

.service-panel:hover {
  background: #0A0A0A;
}

.service-num {
  font-family: var(--font-display);
  font-size: clamp(90px, 14vw, 170px);
  font-weight: 800;
  color: var(--white);
  opacity: 0.04;
  line-height: 1;
  position: absolute;
  top: 10vh;
  left: 8vw;
  pointer-events: none;
  user-select: none;
}

.service-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 68px);
  color: var(--white);
  line-height: 1.05;
  margin: 0 0 24px;
}

.service-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 480px;
}

/* ─── Process ───────────────────────────────────────────────────────────────── */
.process-section {
  padding: 140px 10vw;
}

.process-header {
  margin-bottom: 80px;
}

.process-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 70px);
  color: var(--white);
  line-height: 1.08;
  margin-top: 16px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.process-step {
  padding: 52px 40px 52px 0;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.process-step:last-child {
  border-right: none;
}

.step-deco-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(90px, 13vw, 160px);
  color: var(--white);
  opacity: 0.04;
  position: absolute;
  top: 20px;
  right: 20px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.step-label {
  font-family: var(--font-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--white);
  margin: 0 0 16px;
}

.step-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 280px;
}

/* ─── Clip Reveal ───────────────────────────────────────────────────────────── */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.clip-reveal.in-view {
  clip-path: inset(0 0% 0 0);
}

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

.marquee-row {
  overflow: hidden;
}

.marquee-row + .marquee-row {
  margin-top: 16px;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.marquee-left .marquee-inner {
  animation: marquee-left 28s linear infinite;
}

.marquee-right .marquee-inner {
  animation: marquee-right 22s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 58px);
  color: var(--white);
  flex-shrink: 0;
}

.marquee-inner .dot {
  color: var(--muted);
  font-size: clamp(20px, 3vw, 40px);
}

.marquee-right .marquee-inner span {
  color: var(--muted);
}

/* ─── Why Gridsline ─────────────────────────────────────────────────────────── */
.why-section {
  padding: 140px 10vw;
}

.why-header {
  margin-bottom: 64px;
}

.why-list {
  border-top: 1px solid var(--border);
}

.why-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  gap: 40px;
  will-change: transform;
}

.why-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  flex-shrink: 0;
  width: 40px;
}

.why-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 46px);
  color: var(--white);
  line-height: 1.12;
  flex: 1;
  word-break: break-word;
}

/* ─── Closing CTA ───────────────────────────────────────────────────────────── */
.cta-section {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.cta-inner {
  max-width: 900px;
  padding: 0 10vw;
}

.cta-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 86px);
  color: var(--white);
  line-height: 0.96;
  margin: 20px 0 0;
}

.cta-line {
  display: block;
}

.cta-line .char {
  display: inline-block;
  will-change: transform;
  backface-visibility: hidden;
}

.cta-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 52px auto;
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cta-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 38px);
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
  will-change: transform;
}

.cta-phone:hover {
  color: var(--muted);
}

.cta-email {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.cta-email:hover {
  color: var(--white);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
