:root {
  --v: #4B1972;
  --t: #19BFCB;
  --b: #2458D3;
  --ink: #0D0B12;
  --muted: #6B6B72;
  --line: #E4E4EA;
  --dark: #0D0B12;
  --max: 1340px;
  --grad: linear-gradient(90deg, var(--v), var(--b), var(--t));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Instrument Sans', sans-serif;
  background: #fff;
  color: var(--ink);
  overflow-x: hidden;
}

.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── TOPBAR ── */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(13, 11, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.logo img {
  height: 32px;
  display: block;
  filter: brightness(0) invert(1);
}

nav { display: flex; align-items: center; gap: 8px; }

nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .18s, color .18s;
  letter-spacing: .01em;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

nav a.cta {
  background: var(--t);
  color: var(--dark);
  font-weight: 700;
}

nav a.cta:hover {
  background: #fff;
  color: var(--dark);
}

/* ── HEADER ── */
header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--dark);
}

/* gradient accent pinned to the very top */
header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  z-index: 3;
}

.header-bg {
  position: absolute;
  inset: 0;
  background: url('https://talven.be/img/bg4.png') center center / cover no-repeat;
  z-index: 0;
  opacity: 0.07;
}

/* ── HERO TEXT ── */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 72px;
  max-width: var(--max);
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t);
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--t);
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3.2rem, 3vw + 2.2rem, 6.8rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.05em;
  color: #fff;
}

.h1-blue { color: var(--b); }
.h1-teal { color: var(--t); }

.hero-sub {
  margin-top: 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 400;
  line-height: 1.6;
  font-style: italic;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all .22s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--t);
  color: var(--dark);
  padding: 14px 30px;
  margin-top: 40px;
  align-self: flex-start;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

/* ── HERO SERVICE PANELS ── */
.hero-services {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.hsvc {
  padding: 44px 48px 52px;
  position: relative;
  overflow: hidden;
  transition: filter .25s;
}

.hsvc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background .25s;
  pointer-events: none;
}

.hsvc:hover::after { background: rgba(255, 255, 255, 0.04); }

/* Panel colours */
.hsvc:nth-child(1) { background: var(--v); }
.hsvc:nth-child(2) { background: var(--b); }
.hsvc:nth-child(3) { background: var(--t); }

/* Teal panel: dark text since teal is light */
.hsvc:nth-child(3) .hsvc-icon  { color: rgba(13, 11, 18, 0.5); }
.hsvc:nth-child(3) .hsvc-num   { color: rgba(13, 11, 18, 0.3); }
.hsvc:nth-child(3) .hsvc-title { color: var(--dark); }
.hsvc:nth-child(3) .hsvc-desc  { color: rgba(13, 11, 18, 0.55); }
.hsvc:nth-child(3) .hsvc-list  { border-top-color: rgba(13, 11, 18, 0.14); }
.hsvc:nth-child(3) .hsvc-list li { color: rgba(13, 11, 18, 0.7); }
.hsvc:nth-child(3) .hsvc-list li::before { background: rgba(13, 11, 18, 0.22); }

.hsvc-icon {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 30px;
  display: block;
  flex-shrink: 0;
}

.hsvc-num {
  font-family: 'Montserrat', sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
}

.hsvc-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 7px;
}

.hsvc-desc {
  font-size: .875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 26px;
}

.hsvc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hsvc-list li {
  font-size: .84rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hsvc-list li::before {
  content: '';
  width: 14px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

/* ── GRADIENT SEPARATOR ── */
.sep {
  height: 3px;
  background: var(--grad);
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--t);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--t), transparent);
  opacity: .35;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.9rem, 1rem + 2.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.02;
  color: var(--ink);
}

/* ── CONTACT ── */
.contact {
  padding: 88px 56px 104px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-left h2 { margin-bottom: 16px; }

.contact-left p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
  max-width: 40ch;
  margin-bottom: 32px;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, .5rem + 1.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--v);
  text-decoration: none;
  border-bottom: 2px solid rgba(75, 25, 114, .18);
  padding-bottom: 5px;
  transition: border-color .2s, gap .2s;
}

.contact-email-link:hover {
  border-color: var(--v);
  gap: 16px;
}

.contact-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-row {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-key {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t);
  margin-bottom: 5px;
}

.detail-val {
  font-size: .92rem;
  color: var(--ink);
  font-weight: 500;
}

.detail-val a { color: var(--v); text-decoration: none; }
.detail-val a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 22px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .28;
  transition: opacity .2s;
}

.footer-logo:hover img { opacity: .7; }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.75); }

.footer-right {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.18);
}

/* ── REVEAL ANIMATION ── */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s }
.d2 { transition-delay: .16s }
.d3 { transition-delay: .24s }
.d4 { transition-delay: .32s }
.d5 { transition-delay: .40s }
.d6 { transition-delay: .48s }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .topbar { padding: 16px 28px; }
  .hero-content { padding: 0 28px 56px; }
  .hero-services { grid-template-columns: 1fr; }
  .hsvc { padding: 36px 28px 44px; }
  .contact { padding: 64px 28px 80px; grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 24px 28px; }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 20px; }
  .hero-content { padding: 0 20px 48px; }
  .hsvc { padding: 32px 20px 40px; }
  .contact { padding: 56px 20px 72px; }
  footer { padding: 20px; flex-direction: column; align-items: flex-start; }
  .footer-links { display: none; }
}
