/* =================================================================
   Vayoweb — v2
   Design tokens + styles, extracted from the Claude DC design.
   ================================================================= */

/* =================================================================
   THEME TOKENS
   Dark is the default. Light overrides live in [data-theme="light"].
   Most text colours flow through RGB *channel* variables (--text-rgb,
   --on-orange-rgb, --accent-rgb) so a theme only re-declares the numbers
   and every rgba() that uses them flips automatically.
   ================================================================= */
:root {
  /* surfaces */
  --bg:        #0b0b0b;
  --surface:   #141414;
  --surface-2: #0e0e0e;
  --surface-3: #181818;

  /* body text */
  --text-rgb:  244, 243, 240;
  --text:      rgb(var(--text-rgb));

  /* accent */
  --accent:     #ff5a1f;
  --accent-2:   #ff6f3c;
  --accent-rgb: 255, 90, 31;

  --muted-72: rgba(var(--text-rgb), 0.72);
  --muted-60: rgba(var(--text-rgb), 0.60);
  --muted-55: rgba(var(--text-rgb), 0.55);
  --muted-45: rgba(var(--text-rgb), 0.45);
  --line:     rgba(var(--text-rgb), 0.10);
  --line-2:   rgba(var(--text-rgb), 0.08);

  /* text sitting on the colourful hero / contact / featured surfaces */
  --on-orange-rgb: 11, 11, 11;
  --on-orange:    rgb(var(--on-orange-rgb));
  --on-orange-72: rgba(var(--on-orange-rgb), 0.72);
  --on-orange-62: rgba(var(--on-orange-rgb), 0.62);
  --card-title:   #fbf7f2;   /* the big light heading on those surfaces */

  /* chrome */
  --logo-filter:     invert(1) brightness(2);
  --nav-bg:          rgba(11, 11, 11, 0.10);
  --nav-bg-scrolled: rgba(11, 11, 11, 0.78);
  --nav-border:      rgba(255, 255, 255, 0.07);
  --nav-panel-bg:    rgba(11, 11, 11, 0.96);
  --nav-link-hover:  rgba(255, 255, 255, 0.05);
  --btn-dark-bg:     #0b0b0b;
  --btn-dark-text:   #fbf7f2;

  --font-display: 'Archivo', sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;

  --wrap:       1280px;
  --pad-x:      32px;
  --radius-lg:  30px;
  --radius-md:  20px;
  --radius-sm:  12px;

  /* hero / contact colourful surfaces + blackhole tint */
  --hero-grad:      radial-gradient(120% 140% at 80% 0%, #ff9a3c 0%, #ff5a1f 38%, #e23a06 70%, #b62a02 100%);
  --contact-grad:   radial-gradient(120% 130% at 20% 10%, #ff9a3c 0%, #ff5a1f 40%, #e23a06 72%, #9e2402 100%);
  --hero-aura-grad: linear-gradient(20deg, #ffffff, #ffbd1e20 16.5%, #ff5a1f 33%, #ff5a1f20 49.5%, #ffffff 66%, #ffd9c060 85.5%, #ffbd1e 100%);
  --bh-vignette:    #0b0b0b;
  --bh-core:        var(--accent);

  color-scheme: dark;
}

/* ---- Light theme (synthwave palette) ---- */
[data-theme="light"] {
  --bg:        #F0F3FF;
  --surface:   #FFFFFF;
  --surface-2: #F0F3FF;
  --surface-3: #E7EAFF;

  --text-rgb:  33, 25, 81;          /* #211951 deep indigo */

  --accent:     #836FFF;            /* purple */
  --accent-2:   #6f59ff;
  --accent-rgb: 131, 111, 255;

  --on-orange-rgb: 240, 243, 255;   /* light text on the indigo hero/contact cards */
  --card-title:    #FFFFFF;

  --logo-filter:     none;
  --nav-bg:          rgba(240, 243, 255, 0.35);
  --nav-bg-scrolled: rgba(240, 243, 255, 0.82);
  --nav-border:      rgba(33, 25, 81, 0.10);
  --nav-panel-bg:    rgba(255, 255, 255, 0.97);
  --nav-link-hover:  rgba(33, 25, 81, 0.06);
  --btn-dark-bg:     #FFFFFF;          /* light CTA so it pops on the indigo hero */
  --btn-dark-text:   #211951;

  /* hero/contact become deep-indigo cards; the blackhole supplies the rainbow */
  --hero-grad:      radial-gradient(120% 140% at 80% 0%, #2e2568 0%, #211951 52%, #181238 100%);
  --contact-grad:   radial-gradient(120% 130% at 20% 10%, #2e2568 0%, #211951 50%, #181238 100%);
  --hero-aura-grad: linear-gradient(20deg, #ffffff, #836FFF20 16.5%, #F72798 33%, #15F5BA20 49.5%, #ffffff 66%, #FFC70060 85.5%, #15F5BA 100%);
  --bh-vignette:    #0e0a24;
  --bh-core:        #15F5BA;

  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, textarea, button { font-family: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.accent { color: var(--accent); }

/* ---------- shared bits ---------- */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--dark   { color: var(--on-orange-62); }
.eyebrow--muted  { color: var(--muted-45); }
.eyebrow--sm     { font-size: 12.5px; letter-spacing: 0.14em; margin-bottom: 8px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: 48px; flex-wrap: wrap;
}
.section-head__title {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 5.4vw, 72px); line-height: 0.98; letter-spacing: -0.03em;
}
.section-head__text {
  margin: 0; max-width: 340px; font-size: 15px; line-height: 1.6; color: var(--muted-55);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: background .25s, border-color .25s, transform .25s;
}
.btn__arrow {
  display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center;
  background: var(--bg); color: var(--accent); border-radius: 999px; font-size: 11px;
}
.btn__arrow--accent { background: var(--accent); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--accent-2); }
.btn--dark { background: var(--btn-dark-bg); color: var(--btn-dark-text); padding: 13px 22px; }
.btn--ghost { border-color: rgba(var(--text-rgb), 0.18); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  /* At the top of the page: just a light blur over the content, no solid bar.
     On scroll the .is-scrolled state fades in the dark, more-opaque background. */
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--nav-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
/* CTA + theme toggle grouped tight, pushed to the right edge */
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 22px; filter: var(--logo-filter); }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14.5px; font-weight: 500; }
.nav__links a { color: var(--muted-72); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta-mobile { display: none; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: 14px; padding-top: 0;}
.hero__card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--hero-grad); min-height: 88vh; padding: 48px;
  display: flex; flex-direction: column;
}
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow--light { right: -6%; top: -10%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 62%); }
.hero__glow--dark  { left: -8%; bottom: -14%; width: 460px; height: 460px; background: radial-gradient(circle, rgba(0,0,0,0.22), transparent 64%); }
/* --- blackhole layer (sits over the orange gradient, under the content) --- */
.hero__bh { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* vignette: multiplied over the orange so the vortex centre glows and the edges fall to dark — the "hole" */
.hero__bh::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 150%; height: 140%;
  background: radial-gradient(ellipse at 50% 55%, transparent 12%, var(--bh-vignette) 64%);
  mix-blend-mode: multiply; transform: translate3d(-50%, -50%, 0);
}
/* warm core glow where the particles rise (recoloured from the original purple) */
.hero__bh::after {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 5;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 78%, rgba(255,255,255,0.55) 6%, var(--bh-core) 34%, transparent 72%);
  mix-blend-mode: screen; transform: translate3d(-50%, -50%, 0);
}
.hero__aura {
  position: absolute; top: -71.5%; left: 50%; z-index: 3;
  width: 30%; height: 140%;
  background: var(--hero-aura-grad) 0 100% / 100% 200%;
  border-radius: 0 0 100% 100%; filter: blur(50px);
  mix-blend-mode: plus-lighter; opacity: 0.6; transform: translate3d(-50%, 0, 0);
  animation: auraGlow 5s infinite linear;
}
@keyframes auraGlow { 0% { background-position: 0 100%; } 100% { background-position: 0 300%; } }
.hero__overlay {
  position: absolute; inset: 0; z-index: 10;
  background: repeating-linear-gradient(transparent, transparent 1px, rgba(255,255,255,0.5) 1px, rgba(255,255,255,0.5) 2px);
  mix-blend-mode: overlay; opacity: 0.35;
}

.hero__top { display: flex; align-items: flex-start; justify-content: space-between; flex: 1; gap: 40px; position: relative; z-index: 2; }
.hero__lead { max-width: 1000px; display: flex; flex-direction: column; justify-content: center; }
.hero__title {
  margin: 0 0 4px; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(58px, 9.5vw, 144px); line-height: 1.04; letter-spacing: -0.035em; color: var(--card-title);
  /* Mask only the bottom edge so the word can rise into view; leave the sides
     free (negative insets) so heavy glyphs aren't clipped on the right. */
  clip-path: inset(-0.25em -0.5em 0 -0.5em);
}
.hero__title .js-rotator {
  display: inline-block; padding-right: 0.08em;   /* room for the last glyph's ink overhang under the filter layer */
  animation: wordRise 0.72s cubic-bezier(.2,.7,.15,1) both; will-change: transform, opacity, filter;
}
.hero__subtitle {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 6.4vw, 98px); line-height: 0.96; letter-spacing: -0.03em; color: rgba(var(--on-orange-rgb),0.82);
}
.hero__aside { max-width: 320px; align-self: flex-end; padding-bottom: 6px; }
.hero__aside-title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.18; color: var(--card-title); }
.hero__aside-text { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: rgba(var(--on-orange-rgb),0.66); }
.hero__aside .btn--dark { margin-bottom: 18px; }

.hero__index {
  position: relative; z-index: 2; list-style: none; margin: 0; padding: 26px 0 0;
  border-top: 1px solid rgba(var(--on-orange-rgb),0.28);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.hero__index-num { display: block; font-size: 13px; font-weight: 600; color: rgba(var(--on-orange-rgb),0.5); margin-bottom: 6px; }
.hero__index-label { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: rgba(var(--on-orange-rgb),0.92); }

/* ---------- trusted (infinite marquee) ---------- */
.trusted { padding-top: 34px; padding-bottom: 8px; display: flex; align-items: center; gap: 40px; }
.trusted__label { flex: none; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(var(--text-rgb),0.4); max-width: 160px; line-height: 1.4; }
.trusted__marquee {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  /* fade the brands in/out at the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.trusted__track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 26s linear infinite;
}
.trusted__marquee:hover .trusted__track { animation-play-state: paused; }
/* even padding on each item keeps the -50% loop seamless */
.trusted__track span { padding: 0 28px; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--muted-72); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trusted__track { animation: none; }
}

/* ---------- about ---------- */
.about { padding-top: 90px; padding-bottom: 40px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about__heading { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.025em; }
.about__body { padding-top: 8px; }
.about__lead { margin: 0 0 18px; font-size: 17px; line-height: 1.65; color: rgba(var(--text-rgb),0.82); }
.about__text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted-55); }
.about__links { display: flex; gap: 14px; margin-top: 28px; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 0;
}
.stats__item { display: flex; align-items: baseline; gap: 14px; justify-content: center; }
.stats__item:nth-child(2) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.stats__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(54px, 7vw, 92px); line-height: 1; letter-spacing: -0.03em; }
.stats__num--accent { color: var(--accent); }
.stats__label { font-size: 14px; line-height: 1.3; color: var(--muted-60); }
/* tooltip on stats (e.g. the list of countries) — shows on hover + keyboard focus */
.stats__item.has-tip { position: relative; cursor: help; outline: none; }
.stats__item.has-tip .stats__label { border-bottom: 1px dotted var(--muted-45); padding-bottom: 2px; }
.stats__tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(6px);
  width: max-content; max-width: 260px; z-index: 5;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; line-height: 1.55; text-align: center;
  box-shadow: 0 14px 34px rgba(0,0,0,0.35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.stats__tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--surface-3);
}
.stats__item.has-tip:hover .stats__tip,
.stats__item.has-tip:focus .stats__tip,
.stats__item.has-tip:focus-within .stats__tip {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* ---------- projects ---------- */
.projects { padding-top: 80px; padding-bottom: 40px; }
.projects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project { display: block; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-md); overflow: hidden; transition: border-color .35s, transform .35s; }
.project:hover { border-color: rgba(var(--accent-rgb),0.55); transform: translateY(-4px); }
.project__media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .55s ease; }
.project:hover .project__media img { transform: scale(1.045); }
.project__body { padding: 24px 26px 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.project__desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted-55); max-width: 90%; }
.project__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: none; }
.project__year { font-size: 13px; color: var(--muted-45); }
.project__arrow { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--accent); color: var(--bg); border-radius: 999px; font-size: 16px; }

/* ---------- services ---------- */
.services { padding-top: 80px; padding-bottom: 40px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-md); padding: 34px 30px; display: flex; flex-direction: column; min-height: 320px; }
.service__bar { height: 4px; width: 46px; background: var(--accent); border-radius: 999px; margin-bottom: auto; }
.service__content { margin-top: 40px; }
.service__title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 25px; letter-spacing: -0.01em; }
.service__desc { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(var(--text-rgb),0.58); }
.service--featured { background: var(--accent); border-color: var(--accent); }
.service--featured .service__bar { background: var(--bg); }
.service--featured .eyebrow { color: rgba(var(--on-orange-rgb),0.55); }
.service--featured .service__title { color: var(--on-orange); }
.service--featured .service__desc { color: rgba(var(--on-orange-rgb),0.7); }

/* ---------- skills ---------- */
.skills { padding-top: 80px; padding-bottom: 40px; }
.skills__intro { max-width: 620px; margin-bottom: 44px; }
.skills__heading { margin: 0 0 16px; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.0; letter-spacing: -0.025em; }
.skills__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-55); }
.skills__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skill-group { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px 28px 30px; transition: border-color .3s, background .3s; }
.skill-group:hover { border-color: rgba(var(--accent-rgb),0.45); background: var(--surface-3); }
.skill-group__title { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 11px; }
.skill-group__title::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }
.skill-group__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skill-group__list li {
  font-size: 14px; font-weight: 500; color: rgba(var(--text-rgb),0.85);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px; transition: border-color .2s, color .2s, background .2s;
}
.skill-group__list li:hover { border-color: var(--accent); color: var(--text); }

/* ---------- testimonials ---------- */
.testimonials { padding-top: 80px; padding-bottom: 40px; }
.testimonials__head { margin-bottom: 44px; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-md); padding: 32px 30px; display: flex; flex-direction: column; margin: 0; }
.testimonial__quote { font-family: var(--font-display); font-weight: 900; font-size: 54px; line-height: 1; color: var(--accent); margin-bottom: 4px; }
.testimonial__text { margin: 0 0 26px; font-size: 16px; line-height: 1.6; color: rgba(var(--text-rgb),0.85); }
.testimonial__meta { margin-top: auto; display: flex; flex-direction: column; }
.testimonial__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.testimonial__role { font-size: 13px; color: var(--muted-45); }

/* ---------- faq ---------- */
.faq { padding-top: 80px; padding-bottom: 40px; }
.faq__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.faq__heading { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.0; letter-spacing: -0.025em; }
.faq__item { border-top: 1px solid rgba(var(--text-rgb),0.12); }
.faq__item:last-child { border-bottom: 1px solid rgba(var(--text-rgb),0.12); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--text); }
.faq__q > span:first-child { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.faq__icon { color: var(--accent); font-size: 24px; line-height: 1; flex: none; }
.faq__a { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .4s ease, opacity .4s ease; }
.faq__a p { margin: 0 0 24px; font-size: 15px; line-height: 1.65; color: var(--muted-60); max-width: 560px; }
.faq__item.is-open .faq__a { max-height: 320px; opacity: 1; }
.faq__q > span:first-child { transition: color .25s ease; }
.faq__item.is-open .faq__q > span:first-child { color: var(--accent); }

/* ---------- contact ---------- */
.contact { padding: 60px 14px 14px; }
.contact__card { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr; }
.contact__intro { position: relative; overflow: hidden; background: var(--contact-grad); padding: 54px 48px; display: flex; flex-direction: column; justify-content: space-between; min-height: 520px; }
.contact__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(46px, 6vw, 86px); line-height: 0.96; letter-spacing: -0.03em; color: var(--card-title); }
.contact__text { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--on-orange-72); max-width: 340px; }
.contact__email { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--on-orange); border-bottom: 2px solid rgba(var(--on-orange-rgb),0.4); padding-bottom: 3px; }
.contact__form-wrap { padding: 54px 48px; }
.contact__form-wrap .eyebrow { margin-bottom: 26px; }
.contact__form { display: flex; flex-direction: column; gap: 16px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted-55); }
.contact__form input, .contact__form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid rgba(var(--text-rgb),0.12);
  border-radius: var(--radius-sm); padding: 13px 15px; color: var(--text); font-size: 15px; outline: none;
  transition: border-color .2s;
}
.contact__form textarea { resize: vertical; }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--accent); }
.btn--submit { width: 100%; justify-content: center; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 16px; padding: 15px; border-radius: var(--radius-sm); margin-top: 8px; }
.btn--submit:hover { background: var(--accent-2); }
.btn--submit:disabled { opacity: 0.6; cursor: not-allowed; }
/* honeypot — keep it out of the visual + tab flow but reachable by bots */
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__status { margin: 12px 0 0; font-size: 14px; line-height: 1.5; min-height: 1.2em; }
.contact__status.is-success { color: #5ad17f; }
.contact__status.is-error   { color: #ff7a59; }

/* ---------- footer ---------- */
.footer { padding-top: 40px; padding-bottom: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 20px; filter: var(--logo-filter); }
.footer__copy { font-size: 14px; color: var(--muted-45); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(var(--text-rgb),0.16); border-radius: 999px; font-size: 13px; color: rgba(var(--text-rgb),0.75); transition: border-color .2s, color .2s; }
.footer__social a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- scroll reveal ---------- */
/* Elements tagged .reveal fade + rise into view as they enter the viewport
   (toggled by initReveals() in main.js). Only active when JS is on and the
   visitor hasn't asked to reduce motion. .reveal-group staggers its children. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16, .84, .44, 1), transform .7s cubic-bezier(.16, .84, .44, 1);
  }
  /* directional variants for titles / text — slide in horizontally */
  .js .reveal--left  { transform: translateX(-44px); }
  .js .reveal--right { transform: translateX(44px); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .js .reveal-group > .reveal:nth-child(2) { transition-delay: .07s; }
  .js .reveal-group > .reveal:nth-child(3) { transition-delay: .14s; }
  .js .reveal-group > .reveal:nth-child(4) { transition-delay: .21s; }
  .js .reveal-group > .reveal:nth-child(5) { transition-delay: .28s; }
  .js .reveal-group > .reveal:nth-child(6) { transition-delay: .35s; }
  .js .reveal-group > .reveal:nth-child(7) { transition-delay: .42s; }
  .js .reveal-group > .reveal:nth-child(8) { transition-delay: .49s; }
}

/* ---------- keyframes ---------- */
@keyframes wordRise {
  0%   { transform: translateY(108%); opacity: 0; filter: blur(14px); }
  60%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; filter: blur(0); }
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
.is-loaded .preloader { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader__logo { height: 30px; filter: var(--logo-filter); animation: preloadPulse 1.4s ease-in-out infinite; }
.preloader__bar { display: block; width: 140px; height: 3px; border-radius: 999px; background: rgba(var(--text-rgb),0.12); overflow: hidden; }
.preloader__bar > span { display: block; width: 40%; height: 100%; border-radius: 999px; background: var(--accent); animation: preloadSlide 1.1s ease-in-out infinite; }
@keyframes preloadPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes preloadSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(350%); } }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--bg); border: 0; border-radius: 999px;
  font-size: 18px; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.9);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--accent-2); transform: translateY(-2px) scale(1); }

/* ---------- theme toggle ---------- */
.theme-toggle {
  flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); border: 1px solid var(--nav-border, rgba(128,128,128,0.2));
  border-radius: 999px; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle .theme-toggle__sun  { display: none; }
[data-theme="light"] .theme-toggle .theme-toggle__moon { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .services__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  :root { --pad-x: 22px; }
  .nav .btn--accent { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { position: relative; }
  /* Mobile/tablet dropdown panel — hidden until the hamburger toggles .is-open */
  .nav__links {
    position: absolute; top: calc(100% + 14px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--nav-panel-bg);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--nav-border);
    border-radius: var(--radius-md); padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 16px; color: var(--text); }
  .nav__links a:hover { background: var(--nav-link-hover); }
  .nav__cta-mobile { display: flex; align-items: center; gap: 9px; margin-top: 4px; justify-content: center; background: var(--accent); color: var(--bg) !important; font-weight: 700; }
  .nav__cta-mobile:hover { background: var(--accent-2); }
  .nav__cta-mobile .btn__arrow { background: var(--bg); color: var(--accent); }
  .hero__card { padding: 30px; min-height: auto; }
  .hero__top { flex-direction: column; gap: 28px; }
  .hero__aside { align-self: flex-start; max-width: none; }
  .hero__aside-title, .hero__aside-text { color: var(--on-orange); }
  .hero__index { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: 1fr; }
  .skills__groups { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stats__item { padding: 22px 0; }
  .stats__item:nth-child(2) { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .contact__card { grid-template-columns: 1fr; }
  .contact__intro { min-height: auto; }
  .contact__row { grid-template-columns: 1fr; }
}

/* ---------- gdpr / privacy notice ---------- */
.gdpr {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--nav-border);
  animation: gdpr-in .5s ease both;
}
html.gdpr-ok .gdpr { display: none; }          /* dismissed → gone (set before paint) */
.gdpr__inner { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 11px; padding-bottom: 11px; }
.gdpr__text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted-72); }
.gdpr__text a { color: var(--accent); text-decoration: underline; }
.gdpr__close {
  flex: none; cursor: pointer; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--bg); font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 8px 18px; transition: background .25s ease;
}
.gdpr__close:hover { background: var(--accent-2); }
/* lift the back-to-top button above the notice while it's showing */
html:not(.gdpr-ok) .to-top.is-visible { bottom: 84px; }
@keyframes gdpr-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 560px) {
  .gdpr__inner { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .gdpr__text { font-size: 12px; }
  .gdpr__close { padding: 7px 14px; }
}

/* ---------- legal / policy page ---------- */
.legal { padding-top: 56px; padding-bottom: 96px; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; margin: 14px 0 6px; }
.legal__updated { color: var(--muted-55); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 38px 0 12px; }
.legal h3 { font-weight: 700; font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted-72); font-size: 15.5px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--text); }
.footer__link { color: var(--muted-72); text-decoration: underline; }
.footer__link:hover { color: var(--accent); }
