:root {
  --bg: #0a0e14;
  --bg-alt: #121722;
  --bg-alt2: #171d29;
  --border: #232b3a;
  --text: #e9edf3;
  --text-dim: #8f9bb0;
  --accent: #3fd6c4;
  --accent-dim: #279a8c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  position: relative;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Film grain overlay, page-wide */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Branded photo treatment */
.graded-img { position: relative; overflow: hidden; }
.graded-img img { filter: grayscale(50%) contrast(1.12) brightness(0.82); }
.graded-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(63,214,196,0.26), rgba(10,14,20,0.15));
  mix-blend-mode: color;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--delay, 0s); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal h2::after, .reveal h3::after {
  content: ""; display: block; width: 0; height: 2px; background: var(--accent);
  transition: width 0.6s ease 0.2s; margin-top: 0.6rem;
}
.reveal.visible h2::after, .reveal.visible h3::after { width: 3rem; }
section h2::after { margin-left: auto; margin-right: auto; }

.parallax-img { will-change: transform; }

/* Nav */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 6%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,14,20,0.88);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.logo { font-size: 1.2rem; font-weight: 700; }
.logo span { color: var(--accent); }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 56px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a.navlink { color: var(--text-dim); text-decoration: none; font-size: 0.95rem; transition: color 0.15s ease; }
nav a.navlink:hover, nav a.navlink.active { color: var(--text); }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #06110d;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: scale(1.03); opacity: 0.92; box-shadow: 0 8px 24px rgba(63,214,196,0.25); }
.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Hero */
.hero-band {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.hero-band.short { min-height: 44vh; }
.hero-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: grayscale(50%) contrast(1.12) brightness(0.75); }
.hero-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(63,214,196,0.2), rgba(10,14,20,0.1)); mix-blend-mode: color; z-index: 0; }
.hero-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,20,0.45) 0%, rgba(10,14,20,0.96) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 4rem 6% 6rem; text-align: center; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; letter-spacing: 2px; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-inner h1 { font-size: 2.9rem; line-height: 1.2; margin-bottom: 1.25rem; }
.hero-inner p { color: var(--text-dim); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-illustration {
  width: 100%; max-width: 460px; margin: 2.5rem auto 0; display: block;
  border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* Sections */
section { padding: 5.5rem 6%; border-top: 1px solid var(--border); position: relative; }
section h2 { font-size: 1.9rem; margin-bottom: 1rem; text-align: center; }
section .section-sub { color: var(--text-dim); text-align: center; max-width: 620px; margin: 0 auto 3rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split .graded-img { border-radius: 12px; border: 1px solid var(--border); }
.split h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.split p { color: var(--text-dim); }

.pull-quote { max-width: 780px; margin: 0 auto; text-align: center; font-size: 1.8rem; font-weight: 600; line-height: 1.4; color: var(--text); }
.pull-quote span { color: var(--accent); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(160px, auto); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.bento .card.featured { grid-column: span 4; }
.bento .card.half { grid-column: span 2; }
@media (min-width: 820px) {
  .bento .card.featured { grid-column: span 2; grid-row: span 2; }
  .bento .card.half { grid-column: span 2; }
}

.services, .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.card.featured { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--bg-alt2), var(--bg-alt)); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(63,214,196,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card .icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; color: var(--accent); }
.card p { color: var(--text-dim); font-size: 0.95rem; }

.timeline { position: relative; max-width: 780px; margin: 0 auto; padding-left: 2.5rem; }
.timeline::before { content: ""; position: absolute; left: 0.9rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--border); }
.timeline-step { position: relative; padding-bottom: 2.5rem; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: attr(data-step); position: absolute; left: -2.5rem; top: 0;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--bg-alt2); border: 1px solid var(--accent-dim); color: var(--accent);
  font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
}
.timeline-step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.timeline-step p { color: var(--text-dim); }

.contact { text-align: center; max-width: 600px; margin: 0 auto; }
.contact p { color: var(--text-dim); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; max-width: 1000px; margin: 0 auto; text-align: center; }
.info-grid h4 { color: var(--accent); font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.75rem; }
.info-grid p { color: var(--text-dim); }

footer { text-align: center; padding: 2.5rem 6%; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.85rem; }

@media (max-width: 780px) {
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .bento, .bento .card.featured, .bento .card.half { grid-column: span 1; grid-row: auto; }
  nav { gap: 1rem; }
  nav a.navlink:not(.btn) { display: none; }
  .hero-inner h1 { font-size: 2.1rem; }
  .pull-quote { font-size: 1.35rem; }
}
