/* ─── Custom properties ─────────────────────────────────────── */
:root {
  --cobalt: #1E3AFF;
  --ink: #111111;
  --paper: #F7F5EE;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { margin: 0; background: #111; font-family: 'Plus Jakarta Sans', sans-serif; }
a { text-decoration: none; }

/* ─── Page ───────────────────────────────────────────────────── */
.page {
  position: relative;
  height: 100vh;
  background: var(--ink);
  overflow: hidden;
  color: white;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.6);
}

.content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: relative;
  z-index: 20;
  width: 100%;
}

.navbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo {
  height: 2.5rem;
  width: auto;
}

.logo-name {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-variation-settings: 'opsz' 72;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1;
}

.pill-nav {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 0.375rem 0.5rem;
  gap: 0.125rem;
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: 9999px;
  transition: color 0.15s, background-color 0.15s;
}

.pill-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.contact-link .arrow-icon {
  transition: transform 0.15s;
}

.pill-nav .contact-link:hover .arrow-icon {
  transform: translate(2px, -2px);
}


/* ─── Info row ───────────────────────────────────────────────── */
.info-row {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-left {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 24rem;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  line-height: 0.9;
  letter-spacing: -0.025em;
  font-weight: 300;
  font-variation-settings: 'opsz' 72;
}

.h1-line {
  display: block;
  color: white;
}

/* ─── ShinyText ──────────────────────────────────────────────── */
.shiny {
  position: relative;
  display: inline-block;
  font-style: italic;
}

.shiny-text {
  background-image: linear-gradient(100deg, #1E3AFF 35%, #6B8AFF 50%, #1E3AFF 65%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 3s linear infinite;
}

.period {
  color: white;
  font-style: normal;
}

/* ─── CTA ────────────────────────────────────────────────────── */
.cta-row {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cobalt);
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  transition: background-color 0.15s;
}

.cta-btn:hover {
  background: rgba(30, 58, 255, 0.9);
}

.cta-arrow {
  transition: transform 0.15s;
}

.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

.copied-pill {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.375rem 0.75rem;
  /* Hidden by default */
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.copied-pill.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #BEBBB3;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  padding: 1rem 1.5rem;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer span {
  font-size: 0.75rem;
  color: rgba(17, 17, 17, 0.4);
}

.footer-email {
  font-size: 0.75rem;
  color: rgba(17, 17, 17, 0.4);
  text-decoration: none;
}

.footer-email:hover {
  color: rgba(17, 17, 17, 0.8);
}

/* ─── Services section ───────────────────────────────────────── */
.services-section {
  background: linear-gradient(
    to bottom,
    #111    0%,
    #141412 12%,
    #1b1a16 26%,
    #222019 40%,
    #2d2b23 54%,
    #504e45 66%,
    #706e68 78%,
    #888580 86%,
    #4a4843 100%
  );
  padding: 0 1.5rem 5rem;
}

.services-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding-top: 5rem;
}

.svc-header {
  margin-bottom: 4rem;
}

.svc-eyebrow {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
}

.svc-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 300;
  font-variation-settings: 'opsz' 72;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.svc-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
}

.svc-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 42rem;
}

.svc-ethos {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
  max-width: 36rem;
  padding-left: 0.875rem;
  border-left: 2px solid rgba(30, 58, 255, 0.45);
}

.service-block {
  margin-bottom: 4rem;
}

.service-block-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
}

.block-websites .service-block-header  { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.block-software .service-block-header  { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.block-automation .service-block-header { border-bottom: 1px solid rgba(17, 17, 17, 0.12); }

.sb-num {
  font-size: 1.25rem;
  color: rgba(30, 58, 255, 0.85);
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  line-height: 1;
}

.sb-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sb-desc {
  font-size: 0.875rem;
  margin-left: auto;
  max-width: 22rem;
  line-height: 1.6;
  text-align: right;
}

.block-websites  .sb-name,
.block-software  .sb-name { color: white; }
.block-websites  .sb-desc,
.block-software  .sb-desc { color: rgba(255, 255, 255, 0.5); }
.block-automation .sb-name { color: #111; }
.block-automation .sb-desc { color: rgba(17, 17, 17, 0.5); }

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.svc-card {
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.card-dot {
  width: 6px;
  height: 6px;
  background: var(--cobalt);
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.75rem;
  line-height: 1.55;
}

.block-websites .svc-card,
.block-software .svc-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.block-websites .card-title,
.block-software .card-title { color: rgba(255, 255, 255, 0.9); }

.block-websites .card-desc,
.block-software .card-desc  { color: rgba(255, 255, 255, 0.45); }

.block-software .svc-card--light {
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.3);
}

.block-automation .svc-card {
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.3);
}

.block-software .svc-card--light .card-title,
.block-automation .card-title { color: #111; }

.block-software .svc-card--light .card-desc,
.block-automation .card-desc  { color: rgba(17, 17, 17, 0.55); }

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  margin-top: 1rem;
}

.services-cta-text {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: #111;
  line-height: 1.45;
}

.cta-btn--dark {
  background: #111;
  color: white;
  flex-shrink: 0;
}

.cta-btn--dark:hover {
  background: rgba(17, 17, 17, 0.8);
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.3s ease forwards;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 639px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .service-block-header {
    flex-wrap: wrap;
  }

  .sb-desc {
    margin-left: 0;
    text-align: left;
    max-width: 100%;
    width: 100%;
    margin-top: 0.25rem;
  }

  .services-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 640px) {
  .eyebrow { font-size: 0.875rem; }
  h1 { font-size: 3.75rem; }
  .svc-title { font-size: 2.5rem; }
}

@media (min-width: 768px) {
  h1 { font-size: 4.5rem; }
  .cta-btn { padding: 1rem 2rem; }
}

@media (min-width: 1024px) {
  .info-row  { flex-direction: row; justify-content: space-between; }
  .info-left { font-size: 1rem; }
  .svc-title { font-size: 3rem; }
  .services-section { padding: 0 1.5rem 6rem; }
}

@media (min-width: 1280px) {
  h1 { font-size: 8rem; }
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
