:root {
  --lime:      #D0F730;
  --black:     #000000;
  --surface:   #1F1F1F;
  --elevated:  #262626;
  --border:    #2c2c2c;
  --offwhite:  #F2F2F2;
  --muted:     #8a8a8a;
  --white:     #ffffff;
  --error:     #ff6b6b;
  --nav-h:     72px;
  --max-w:     1100px;
  --radius:    6px;
  --transition: .2s ease;
  --z-nav:     100;
  --section-py: 120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--offwhite);
  font-family: 'Rubik', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.section-label {
  font-family: 'Rubik', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Exo 2', sans-serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 48px;
}

section { padding: var(--section-py) 0; scroll-margin-top: var(--nav-h); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.nav__logo img { height: 28px; width: auto; }

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-family: 'Rubik', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--lime);
  transition: width .25s ease;
}

.nav-link:hover, .nav-link.active { color: var(--lime); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav__burger { display: none; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  padding-top: var(--nav-h);
  background: rgba(0,0,0,.97);
  z-index: 95;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav .nav-link { font-size: 1.1rem; color: var(--white); }

@media (max-width: 900px) {
  .nav__links { display: none; }

  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }

  .nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--offwhite);
    border-radius: 1px;
    transition: transform .25s, opacity .25s;
  }

  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-nav.is-open { display: flex; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* on mobile browsers, 100vh assumes the address bar
    is hidden and overshoots the actually-visible area on load, pushing
    content under the browser chrome — dvh tracks the real visible height */
  padding-top: var(--nav-h);
  display: flex;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 80% at 0% 50%, rgba(208,247,48,.08), transparent 60%),
    radial-gradient(ellipse 30% 40% at 90% 10%, rgba(208,247,48,.04), transparent 55%),
    repeating-linear-gradient(-45deg, transparent 0, transparent 20px, rgba(208,247,48,.018) 20px, rgba(208,247,48,.018) 21px),
    repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(255,255,255,.01) 14px, rgba(255,255,255,.01) 15px);
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text photo" "cta photo";
  align-items: center;
  align-content: center; /* pack rows to their content height instead of
    stretching to fill the flex parent's full height, which otherwise
    spreads the stacked/paired blocks apart on both mobile and desktop */
  gap: 32px;
  position: relative;
  z-index: 2;
}

.hero__text { grid-area: text; min-width: 0; }

.hero__eyebrow {
  font-family: 'Rubik', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.hero__name {
  font-family: 'Exo 2', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: .95;
  color: var(--white);
  letter-spacing: -.01em;
}

.hero__name span { color: var(--lime); }

.hero__tagline {
  margin-top: 24px;
  font-family: 'Rubik', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--offwhite);
  min-height: 1.6em;
  text-shadow: 0 1px 10px rgba(0,0,0,.95);
}

.hero__cursor {
  color: var(--lime);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__cta { grid-area: cta; display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Rubik', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .15s, opacity .15s, border-color var(--transition), color var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover { transform: scale(1.03); }
.btn--primary { background: var(--lime); color: #080808; }
.btn--outline {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  text-shadow: 0 1px 10px rgba(0,0,0,.95);
}
.btn--outline:hover { border-color: var(--lime); color: var(--lime); }

.hero__photo-col {
  grid-area: photo;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero__photo {
  height: auto;
  max-height: 640px;
  width: auto;
  max-width: none; /* deliberately allowed to bleed past its grid column */
  object-fit: contain;
  /* the cutout's silhouette is soft everywhere except its flat bottom
     crop, which reads as a hard edge against the hero background —
     fade the last stretch of the image to blend it in */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 98%);
  mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 98%);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "photo" "cta";
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 30px;
  }
  .hero__eyebrow { font-size: .8rem; margin-bottom: 18px; }
  .hero__name { font-size: clamp(3.2rem, 12vw, 4.5rem); }
  /* min-height reserves 2 lines (base rule only reserves 1) — the longer
     rotating phrases wrap to 2 lines at this width, and without this the
     hero (and everything below it) shifts as the typewriter cycles. */
  .hero__tagline { margin-top: 26px; font-size: 1.15rem; min-height: 3.2em; }
  .hero__photo { max-height: 350px; max-width: 280px; }
  .hero__text { text-align: center; }
  .hero__cta { justify-content: center; margin-top: 0; }
}

@media (min-width: 901px) {
  /* .hero__inner's two auto rows stretch to fill the flex parent's full
     height (grid align-content defaults to stretch), so text/cta would
     otherwise each center independently within an oversized row, landing
     far apart. Pull them to the row edges so they sit together instead. */
  .hero__text { align-self: end; }
  .hero__cta  { align-self: start; }
}

/* ── Services ── */
.services { background: var(--surface); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  perspective: 1200px;
  cursor: pointer;
}

.service-card__inner {
  position: relative;
  width: 100%;
  min-height: 220px;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}

.service-card.is-flipped .service-card__inner { transform: rotateY(180deg); }

.service-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  background: rgba(24,24,24,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(208,247,48,.22);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.service-card__face--back {
  transform: rotateY(180deg);
  justify-content: center;
}

.service-card__icon {
  width: 32px;
  height: 32px;
  color: var(--lime);
  margin-bottom: auto;
}

.service-card__title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-top: 12px;
  padding-right: 48px;
}

.service-card__hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(208,247,48,.35);
  color: var(--lime);
  font-size: .8rem;
  animation: service-hint-pulse 2.4s ease-in-out infinite;
}

@keyframes service-hint-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

.service-card__desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-card:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ── Process ── */
.process { background: var(--black); border-bottom: 1px solid var(--border); }

.process__list {
  list-style: none;
  position: relative;
  padding-left: 32px;
}

.process__list::before {
  /* bottom/90% fade tuned for the current 4-step copy length, not
     structurally anchored to the last marker's position */
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--lime), transparent 90%);
}

.process__step {
  position: relative;
  margin-bottom: 40px;
}

.process__step:last-child { margin-bottom: 0; }

.process__marker {
  position: absolute;
  left: -37px;
  top: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-size: .6rem;
  font-weight: 700;
  color: #080808;
  background: var(--lime);
  border-radius: 50%;
}

.process__title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.process__desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

/* ── Clients ── */
.clients { background: var(--black); overflow: hidden; }

.clients__marquee {
  margin-top: 56px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.clients__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: clients-scroll 28s linear infinite;
}

.clients__marquee:hover .clients__track { animation-play-state: paused; }

.clients__logo {
  display: block;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity var(--transition);
}

.clients__logo:hover { opacity: 1; }

.clients__logo img { height: 40px; width: auto; }

/* Optical size nudges: these two logos render at ~100% of their canvas
   height already (no croppable padding), but Saher-Aidat's bold wide
   wordmark reads visually larger than the others at the same pixel
   height, and Parikkalan Valo's thinner icon+text lockup reads smaller
   — adjusted here to balance perceived weight across the strip. */
.clients__logo img[src*="saher-aidat"] { height: 34px; }
.clients__logo img[src*="pava"] { height: 46px; }

@keyframes clients-scroll {
  from { transform: translateX(0); }
  /* -32px = half the 64px gap: `gap` only inserts space *between* items, so an
     8-item row (4 real + 4 duplicate) has 7 gaps, not the 8 a symmetric
     half-and-half split assumes. -50% alone lands 32px short of one full
     logo-set period, causing a visible snap at the loop point. This offset
     corrects it so the animation covers exactly one period. */
  to   { transform: translateX(calc(-50% - 32px)); }
}

/* ── Contact ── */
.contact { background: var(--surface); padding-bottom: 0; }

.contact__intro {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  padding-bottom: 80px;
}

.contact__links { list-style: none; border-top: 1px solid var(--border); }

.contact__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition);
}

.contact__link:hover { padding-left: 8px; }
.contact__link:hover .contact__link-label { color: var(--lime); }
.contact__link:hover .contact__link-value { color: var(--white); }
.contact__link:hover .contact__link-arrow { color: var(--lime); transform: translateX(6px); }

.contact__link-label {
  font-family: 'Rubik', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  width: 84px;
  flex-shrink: 0;
  transition: color var(--transition);
}

.contact__link-value { font-size: .92rem; color: var(--offwhite); flex: 1; transition: color var(--transition); }
.contact__link-arrow { font-size: 1.1rem; color: var(--muted); transition: color var(--transition), transform var(--transition); }

.contact-form { position: relative; display: flex; flex-direction: column; gap: 18px; }

.contact-form__field { display: flex; flex-direction: column; gap: 6px; }

.contact-form__field label {
  font-family: 'Rubik', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form__field input,
.contact-form__field textarea {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--offwhite);
  font-family: 'Rubik', sans-serif;
  font-size: .92rem;
  resize: vertical;
  transition: border-color var(--transition);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--lime);
}

.contact-form__error {
  font-size: .76rem;
  color: var(--error);
  min-height: 1em;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__privacy-note { font-size: .78rem; color: var(--muted); }
.contact-form__privacy-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.contact-form__privacy-note a:hover { color: var(--lime); }

.contact-form__submit { align-self: flex-start; margin-top: 6px; }
.contact-form__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.contact-form__status {
  font-size: .85rem;
  min-height: 1.4em;
}
.contact-form__status.success { color: var(--lime); }
.contact-form__status.error   { color: var(--error); }

/* ── Footer ── */
.footer { background: var(--black); border-top: 1px solid var(--border); padding: 24px 0; }

.footer__inner { display: flex; align-items: center; gap: 16px; }

.footer__logo { height: 22px; width: auto; opacity: .5; }

.footer__copy { flex: 1; font-size: .72rem; color: var(--muted); letter-spacing: .06em; }

.footer__top {
  font-family: 'Rubik', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.footer__top:hover { color: var(--lime); }

/* ── Legal (privacy/cookie policy) ── */
.legal { padding: calc(var(--nav-h) + 64px) 0 96px; min-height: 100vh; }

.legal__back {
  display: inline-block;
  margin-bottom: 40px;
  font-family: 'Rubik', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.legal__back:hover { color: var(--lime); }

.legal__prose { max-width: 760px; }

.legal__updated { font-size: .8rem; color: var(--muted); margin-bottom: 40px; }

.legal h1 {
  font-family: 'Exo 2', sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 12px;
}

.legal h2 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--lime);
  margin: 48px 0 16px;
}

.legal h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin: 28px 0 10px;
}

.legal p { margin-bottom: 16px; }
.legal p:last-child { margin-bottom: 0; }

.legal ul { margin: 0 0 16px 20px; }
.legal li { margin-bottom: 8px; }

.legal a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--white); }

.legal__table-wrap { overflow-x: auto; margin-bottom: 16px; }

.legal table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .88rem; }

.legal th, .legal td {
  text-align: left;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--border);
}

.legal th { color: var(--lime); font-weight: 700; white-space: nowrap; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { flex-wrap: wrap; gap: 12px; }
  .legal { padding-top: calc(var(--nav-h) + 40px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cursor { animation: none; opacity: 1; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .contact__link, .footer__top, .nav-link {
    transition: none;
  }
  .nav-link::after,
  .nav__burger span,
  .contact__link-label,
  .contact__link-value,
  .contact__link-arrow,
  .contact-form__field input,
  .contact-form__field textarea,
  .clients__logo {
    transition: none;
  }
  .contact__link:hover .contact__link-arrow { transform: none; }
  .service-card__inner { transition: none; }
  .service-card__hint { animation: none; opacity: .8; }
  .clients__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .clients__logo--duplicate { display: none; }
  .clients__marquee { mask-image: none; -webkit-mask-image: none; }
}
