/* Nafaarts Development — Landing Page */
:root {
  --bg: oklch(0.16 0.012 60);
  --bg-2: oklch(0.20 0.014 60);
  --bg-3: oklch(0.24 0.016 60);
  --line: oklch(0.32 0.012 60);
  --line-soft: oklch(0.26 0.010 60);
  --ink: oklch(0.96 0.008 80);
  --ink-2: oklch(0.78 0.012 70);
  --ink-3: oklch(0.58 0.014 70);
  --accent: #f8941f;
  --accent-2: #d97a10;
  --accent-soft: rgba(248, 148, 31, 0.14);
  --good: oklch(0.78 0.14 155);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 18px;
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: auto;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: clip;
  background:
    radial-gradient(1200px 700px at 78% -10%, oklch(0.32 0.06 70 / 0.45), transparent 60%),
    radial-gradient(900px 600px at -10% 90%, oklch(0.26 0.04 250 / 0.35), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom-color: var(--line-soft);
}.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 8px 24px -12px var(--accent);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 25px;
  line-height: 1;
  color: var(--ink);
}
.brand-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-2);
  transition: all .2s;
}
.nav-cta:hover {
  background: var(--bg-3);
  border-color: var(--accent);
}
.nav-cta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 var(--good);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklab, var(--good) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 0%, transparent); }
}

/* === HERO === */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 64px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero-globe-slot {
  /* Reserved space; the actual globe is rendered position:fixed and aligns to this column */
  width: 100%;
  aspect-ratio: 1 / 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.eyebrow .pin {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.eyebrow .pin::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
}
h1.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
h1.headline em {
  font-style: normal;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.lede {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 26px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 0 oklch(1 0 0 / 0.08) inset, 0 12px 30px -16px oklch(0 0 0 / 0.6);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-2);
  background: var(--bg-2);
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
}
.meta-row .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-row .stat-num {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}
.meta-row .sep {
  width: 1px;
  height: 32px;
  background: var(--line-soft);
}

/* === GLOBE === */
.floating-globe {
  position: fixed;
  width: 1200px;
  height: 1200px;
  top: 0;
  left: 0;
  transform-origin: top left;
  transform: translate3d(-1000px, -300px, 0) scale(0.4);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.globe-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.globe-wrap::before {
  /* Faint circular guide ring so the globe reads as a full circle even
     before the halo glow finishes loading */
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  opacity: 0.5;
  pointer-events: none;
}
.globe-canvas {
  position: absolute;
  inset: 0;
  display: block;
  cursor: grab;
}
.globe-canvas:active { cursor: grabbing; }

.globe-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.globe-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.globe-corner.tl { top: 8px; left: 8px; }
.globe-corner.tr { top: 8px; right: 8px; }
.globe-corner.bl { bottom: 8px; left: 8px; }
.globe-corner.br { bottom: 8px; right: 8px; }

.globe-corner .tick {
  width: 12px; height: 1px;
  background: var(--ink-3);
}

/* Pin label — rendered at body root via FloatingGlobe so it sits ABOVE
   the page content (the globe itself is z-index:0, content is z-index:1). */
.pin-label {
  position: fixed;
  transform: translate(-50%, -100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  margin-top: -20px;
  z-index: 15;
  transition: opacity .25s;
  box-shadow: 0 8px 28px -10px oklch(0 0 0 / 0.5);
}
.pin-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px; height: 8px;
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.pin-label .lat-lon {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* === LOGO MARQUEE === */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
  background: color-mix(in oklab, var(--bg-2) 50%, transparent);
}
.marquee-row {
  display: flex;
  align-items: center;
  gap: 64px;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  flex-wrap: wrap;
}
.marquee-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* === SECTION HEADER === */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: end;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-num::before {
  content: "[ ";
  color: var(--ink-3);
}
.section-num::after {
  content: " ]";
  color: var(--ink-3);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  max-width: 800px;
  text-wrap: balance;
}
.section-title em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 16px;
}

/* === SERVICES === */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background .25s;
  cursor: pointer;
  min-height: 320px;
}
.service:hover {
  background: var(--bg-2);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.15;
}
.service p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
.service-stack {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 20px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
}
.service-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--bg-2);
}
.service:hover .service-icon {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* === PROCESS === */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.step {
  position: relative;
  background: var(--bg);
  padding: 32px 28px;
  border-top: 3px solid transparent;
  transition: background .25s;
}
.step:hover { background: var(--bg-2); }
.step.active { border-top-color: var(--accent); }
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step.active .step-num { color: var(--accent); }
.step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.step p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* === WORK === */
.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.work-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
  transition: transform .3s ease, border-color .3s;
  cursor: pointer;
}
.work-card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}
.work-thumb {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg,
      oklch(0.22 0.012 60) 0 12px,
      oklch(0.24 0.014 60) 12px 24px);
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.work-thumb .placeholder-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.work-info {
  padding: 24px 28px 28px;
}
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.work-meta .year { color: var(--accent); }
.work-info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.work-info p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* === CTA STRIP === */
.cta-strip {
  margin: 0 0 0;
  padding: 96px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  z-index: 1;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
  max-width: 700px;
}
.cta-strip h2 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* === FOOTER === */
.footer {
  padding: 80px 0 0;
  position: relative;
  z-index: 1;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  overflow: hidden;
}
.footer > .container {
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-soft);
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14.5px; color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer-address {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* Big logotype at bottom */
.big-logo {
  display: block;
  width: 100%;
  margin: 40px 0 0;
  user-select: none;
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* === FLOATING SCROLL CONTROL === */
.scroll-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: color-mix(in oklab, var(--bg-2) 80%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px oklch(0 0 0 / 0.6);
  transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}
.scroll-fab svg {
  display: block;
  transition: transform .25s ease;
}
.scroll-fab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}
.scroll-fab.top:hover svg { transform: translateY(-2px); }
.scroll-fab.next:hover svg { transform: translateY(2px); }
@media (max-width: 720px) {
  .scroll-fab-label { display: none; }
  .scroll-fab { padding: 10px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .globe-wrap { max-width: 480px; margin: 0 auto; }
  .services { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .work { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cta-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-bottom {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    font-size: 9.5px;
  }
}
