/* ============================================
   EKRON DIGITAL SOLUTIONS
   Editorial consulting aesthetic
   ============================================ */

:root {
  --cream:       #f7f5f0;
  --cream-dark:  #ede9e1;
  --ink:         #1a1714;
  --ink-mid:     #4a4641;
  --ink-light:   #8a8580;
  --accent:      #1e3a6e;
  --accent-light: rgba(30, 58, 110, 0.07);
  --accent-mid:   rgba(30, 58, 110, 0.18);
  --rule:        rgba(26, 23, 20, 0.14);
  --radius:      4px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-w:       1120px;
  --transition:  0.18s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  /* subtle grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
}

/* ---- UTILITIES ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  border-radius: var(--radius);
  padding: 11px 24px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #2d5299;
}

.btn-text {
  background: transparent;
  color: var(--ink-mid);
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
}
.btn-text:hover {
  color: var(--ink);
  border-color: var(--ink-mid);
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.82rem;
}
.btn-nav:hover { background: #2d5299; }

.btn-lg { padding: 14px 32px; font-size: 0.95rem; }

/* ---- NAV ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 0;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.logo {
  height: 128px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-nav { color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 180px 0 100px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.hero-deco-word {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-52%);
  font-family: var(--font-display);
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(30, 58, 110, 0.13);
  text-stroke: 1.5px rgba(30, 58, 110, 0.13);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 48px;
  max-width: 760px;
}

.hero-heading em {
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  display: flex;
  align-items: flex-start;
  gap: 64px;
  max-width: 760px;
  margin-bottom: 64px;
}

.hero-body p {
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  flex: 1;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 4px;
}

.hero-rule {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  max-width: 480px;
}

.hero-rule span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-right: 24px;
}

.hero-rule span + span {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

/* ---- INTRO BAND ---- */
.intro-band {
  padding: 72px 0;
  background: var(--ink);
}

.intro-statement {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(247, 245, 240, 0.88);
  max-width: 820px;
}

/* ---- SERVICES ---- */
.services {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}

.services-header {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.services-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--transition), padding var(--transition), margin var(--transition);
  overflow: hidden;
}

.service-item::after {
  content: attr(data-bg-num);
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 11rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(30, 58, 110, 0.11);
  text-stroke: 1.5px rgba(30, 58, 110, 0.11);
  pointer-events: none;
  user-select: none;
  transition: opacity var(--transition);
}

.service-item:hover::after {
  -webkit-text-stroke-color: rgba(30, 58, 110, 0.22);
}
.service-item:hover {
  background: var(--accent-light);
  margin: 0 -32px;
  padding-left: 32px;
  padding-right: 32px;
}
.service-item:last-child { border-bottom: none; }

.service-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-light);
  padding-top: 6px;
  font-style: italic;
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-content > p {
  color: var(--ink-mid);
  font-size: 0.975rem;
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 20px;
}

.service-details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 24px;
}

.service-details li {
  font-size: 0.82rem;
  color: var(--ink-light);
  width: 50%;
  padding-left: 14px;
  position: relative;
}

.service-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1px;
  background: var(--ink-light);
}

.service-link {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.service-link:hover { opacity: 0.7; }

/* ---- APPROACH ---- */
.approach {
  padding: 100px 0;
  background: var(--cream-dark);
  border-bottom: 1px solid var(--rule);
}

.approach-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.approach-left {
  position: sticky;
  top: 100px;
}

.approach-left .section-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-top: 4px;
}

.approach-lead {
  font-size: 1.05rem;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 48px;
}

.pillar {
  max-width: 580px;
}

.pillar-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.pillar p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.7;
}

.privacy-statement {
  padding: 20px 24px;
  border-left: 2px solid var(--accent-mid);
  background: rgba(255,255,255,0.5);
  max-width: 580px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.privacy-statement p {
  font-size: 0.875rem;
  color: var(--ink-light);
  line-height: 1.65;
}

/* ---- PROCESS ---- */
.process {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}

.process .section-heading {
  margin-top: 4px;
  margin-bottom: 72px;
  max-width: 560px;
}

/* ---- TIMELINE ---- */
.timeline {
  max-width: 760px;
}

.tl-step {
  display: grid;
  grid-template-columns: 68px 52px 1fr;
  align-items: start;
}

.tl-left {
  padding-top: 4px;
  text-align: right;
  padding-right: 0;
}

.tl-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(30, 58, 110, 0.15);
  transition: color 0.45s ease, -webkit-text-stroke-color 0.45s ease;
}

.tl-step.visible .tl-num {
  color: var(--accent);
  -webkit-text-stroke-color: transparent;
}

.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.tl-node {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: var(--cream);
  flex-shrink: 0;
  margin-top: 9px;
  position: relative;
  z-index: 1;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.tl-step.visible .tl-node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-light);
}

.tl-line {
  width: 1px;
  flex: 1;
  min-height: 56px;
  background: var(--rule);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.tl-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0;
  background: var(--accent);
  transition: height 0.65s ease 0.35s;
}

.tl-step.visible .tl-line::after {
  height: 100%;
}

.tl-body {
  padding: 0 0 60px 4px;
}

.tl-last .tl-body {
  padding-bottom: 0;
}

.tl-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
  margin-top: 4px;
}

.tl-body p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.75;
  max-width: 520px;
}

/* ---- CTA ---- */
.cta-section {
  position: relative;
  padding: 120px 0;
  background: var(--cream-dark);
  overflow: hidden;
}

.cta-deco {
  position: absolute;
  right: -0.02em;
  bottom: -0.15em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 14rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(30, 58, 110, 0.11);
  text-stroke: 1.5px rgba(30, 58, 110, 0.11);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.cta-inner {
  max-width: 600px;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-inner p {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.cta-direct {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 0.875rem;
}

.cta-direct a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition);
}
.cta-direct a:hover { opacity: 0.7; }

.cta-direct .divider {
  color: var(--rule);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--ink);
  padding-top: 72px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.1);
}

.footer-logo {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  filter: invert(1) brightness(0.88);
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(247, 245, 240, 0.45);
  font-style: italic;
  font-family: var(--font-display);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247, 245, 240, 0.35);
  margin-bottom: 6px;
}

.footer-col a, .footer-col span {
  color: rgba(247, 245, 240, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(247, 245, 240, 0.9); }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(247, 245, 240, 0.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .hero-body {
    flex-direction: column;
    gap: 28px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .approach-left { position: static; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.05rem; }
  .hamburger { display: flex; z-index: 101; position: relative; }

  .hero { padding: 160px 0 72px; }
  .logo { height: 96px; }

  .service-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .service-item:hover {
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .service-num { display: none; }

  .service-details li { width: 100%; }

  .tl-step { grid-template-columns: 52px 40px 1fr; }
  .tl-num { font-size: 2rem; }

  .hero-rule { flex-direction: column; gap: 8px; }
  .hero-rule span + span {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 8px;
  }

  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; }

  .intro-band { padding: 52px 0; }
}
