/* ==========================================================================
   INNOVAL STUDIO
   One stylesheet for every page. No framework, no build step.

   The design follows the NOVA export the owner supplied: a textured near-black
   ground, Manrope headlines, pink→purple→blue gradients, deeply rounded dark
   panels, pill buttons with a gradient arrow, and a numbered ✳ eyebrow on
   every section.
   ========================================================================== */

:root {
  --bg: #0D0D0F;
  --panel: #121214;
  --panel-2: #171719;
  --text: #F7F7F7;
  --muted: #A3A3AA;
  --muted-2: #8F8F96;
  --line: #323237;
  --line-soft: rgba(255, 255, 255, .08);

  --pink: #FF37C7;
  --blue: #58B9FF;
  --purple: #8C63FF;
  --grad: linear-gradient(135deg, var(--pink), var(--purple) 48%, var(--blue));

  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1130px;
  --shell-wide: 1280px;
  --radius: 28px;
  --section: clamp(72px, 9vw, 112px);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* clip, not hidden: hidden would make <body> its own scroll container and
     the page would stop scrolling with the window */
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255,255,255,.035), transparent 25%),
    radial-gradient(circle at 90% 40%, rgba(117,98,255,.06), transparent 22%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.013) 0 1px, transparent 1px 4px);
}
@supports not (overflow: clip) {
  body { overflow-x: visible; }
  section, .hero { overflow: hidden; }
}

/* the fine grain over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .28; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
::selection { background: var(--purple); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--text); }
p { margin: 0; }

.container { width: min(var(--shell), calc(100% - 44px)); margin-inline: auto; position: relative; z-index: 1; }
.wide { width: min(var(--shell-wide), calc(100% - 28px)); margin-inline: auto; position: relative; z-index: 1; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: #fff; color: #111; padding: 12px 20px; border-radius: 12px;
}
.skip:focus { left: 12px; top: 12px; }

/* all three languages live in the page; CSS shows one. Scoped to body so the
   <html lang> attribute can never blank the document. The <html> tag ships
   with its default, so this works even if the JavaScript never runs. */
body [lang="sq"], body [lang="en"], body [lang="it"] { display: none; }
html[data-lang="sq"] body [lang="sq"],
html[data-lang="en"] body [lang="en"],
html[data-lang="it"] body [lang="it"] { display: revert; }

/* ==========================================================================
   header
   ========================================================================== */

.site-header { position: sticky; top: 0; z-index: 30; padding: 18px 0; background: rgba(13,13,15,.78); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.site-header.stuck { background: rgba(13,13,15,.95); }

.header-inner { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; font: 800 27px/1 var(--display); }
/* the brand sits in a flex row, so the logo has to refuse to be squeezed:
   flex-shrink 0 and max-width none, or a tight header squashes it sideways
   while the fixed height stays, which reads as a stretched logo */
.brand img {
  height: 42px; width: auto;
  max-width: none; flex: 0 0 auto;
  object-fit: contain;
}
.brand { flex: 0 0 auto; }
@media (max-width: 620px) { .brand img { height: 32px; } }
.site-footer .brand img, .contact-details .brand img { height: 38px; }

.nav {
  margin: auto; display: flex; gap: clamp(18px, 2.4vw, 42px);
  padding: 0 clamp(14px, 2.4vw, 36px) 18px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--pink), var(--blue)) 1;
}
.nav a { font-weight: 600; letter-spacing: .01em; transition: color .25s ease; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"], .nav a.active { color: #D888FF; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lang button { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px 2px; }
.lang button[aria-pressed="true"] { color: #fff; font-weight: 700; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; color: #fff;
  background: transparent; border: 1px solid #555; border-radius: 11px; font-size: 20px;
  cursor: pointer;
}
@media (max-width: 940px) {
  .burger { display: block; }
  .nav, .header-inner > .lang, .header-inner > .btn { display: none; }
}

.drawer {
  position: fixed; inset: 0; z-index: 29;
  background: #0B0B0D;
  padding: 100px 22px 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .45s cubic-bezier(.6,.05,.2,1), visibility .45s;
  overflow-y: auto;
}
.drawer.open { transform: none; visibility: visible; }
/* the panel eases out rather than snapping, so it is obvious the tap landed */
.drawer { opacity: 0; transition: transform .42s cubic-bezier(.6,.05,.2,1), opacity .3s ease, visibility .42s; }
.drawer.open { opacity: 1; }
/* the items follow the panel out, quickly, so the eye goes to the page */
.drawer a, .drawer .lang, .drawer-contact {
  opacity: 0; transform: translateY(-8px);
  transition: opacity .28s ease, transform .28s ease;
}
.drawer.open a, .drawer.open .lang, .drawer.open .drawer-contact { opacity: 1; transform: none; }
.drawer.open a:nth-of-type(2) { transition-delay: .05s; }
.drawer.open a:nth-of-type(3) { transition-delay: .1s; }
.drawer.open a:nth-of-type(4) { transition-delay: .15s; }
.drawer.open .lang { transition-delay: .2s; }
.drawer.open .drawer-contact { transition-delay: .24s; }
.drawer a {
  font: 700 27px/1.2 var(--display); color: #fff;
  padding: 16px 0; border-bottom: 1px solid #2A2A2F;
}
.drawer .lang { margin-top: 26px; font-size: 15px; }
.drawer-contact { margin-top: auto; padding-top: 30px; font-size: 14.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer a, .drawer .lang, .drawer-contact { transition: none; }
  .drawer a, .drawer .lang, .drawer-contact { transform: none; }
}

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap;          /* a button label never wraps mid-phrase */
  min-height: 52px;
  border: 1px solid #777; border-radius: 12px;
  background: #F7F7F7; color: #111;
  padding: 6px 19px 6px 7px;
  font-weight: 700; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn::before {
  content: "›";
  display: grid; place-items: center;
  width: 39px; height: 39px; flex: 0 0 39px;
  border-radius: 10px; background: var(--grad);
  color: #fff; font-size: 23px; line-height: 1;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px #895cff35; }
.btn-dark { background: transparent; color: #fff; }
.btn-slim { min-height: 46px; font-size: 14px; }

/* ==========================================================================
   sections
   ========================================================================== */

section { position: relative; padding: var(--section) 0; }
/* the header is sticky, so an anchor must stop below it */
section[id] { scroll-margin-top: 92px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  font: 700 clamp(17px, 2vw, 21px)/1.2 var(--display);
  color: var(--text);
}
.eyebrow::before {
  content: "✳"; font-size: 26px; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow::after { content: ""; display: block; flex: 0 1 168px; height: 1px; background: #73737A; }

.section-title { font: 700 clamp(2.3rem, 5vw, 4.5rem)/1.07 var(--display); letter-spacing: -.055em; }
.section-copy { color: var(--muted); max-width: 650px; font-size: 17.5px; }
.h-md { font: 700 clamp(21px, 2.2vw, 28px)/1.2 var(--display); }

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(120px, 15vw, 180px) 0 clamp(80px, 10vw, 130px);
  border-radius: 0 0 60px 60px;
  background: linear-gradient(120deg, rgba(8,8,10,.97) 0%, rgba(8,8,10,.86) 46%, rgba(8,8,10,.55) 100%);
}
.hero::after {
  content: "";
  position: absolute; width: min(780px, 105vw); height: min(570px, 70vw);
  right: -180px; bottom: -170px;
  background: radial-gradient(ellipse, #FF34CD 0%, #885BFF 39%, rgba(68,172,255,.46) 57%, transparent 73%);
  filter: blur(24px); opacity: .9; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.float-orb { position: absolute; z-index: 1; border-radius: 50%; opacity: .7; pointer-events: none; }
.orb-a { width: 112px; height: 112px; left: -40px; top: 46%;
  background: radial-gradient(circle at 35% 30%, #fff, #777 42%, #111 70%); }
.orb-b { width: 55px; height: 55px; right: 13%; top: 18%; background: var(--grad); filter: blur(8px); }
@media (max-width: 620px) { .orb-a { display: none; } }

.rating-line {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid #2E2E34; background: rgba(255,255,255,.03);
  font-size: 14px; color: #E4E4E8;
}
.rating-line b { font-weight: 700; color: #fff; }
.rating-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: 0 0 8px; }

.hero h1 {
  margin: 30px 0 26px; max-width: 16ch;
  font: 800 clamp(3rem, 6.4vw, 6rem)/.99 var(--display);
  letter-spacing: -.065em;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* the gradient is painted only inside the element's box, and the headline's
     negative letter-spacing lets the last glyph hang past it — so pad the box
     and pull the same amount back, which fixes the clipping without moving
     anything on the line */
  padding-right: .12em;
  margin-right: -.12em;
}
.hero-copy { max-width: 60ch; color: #C4C4C9; font-size: 18.5px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: clamp(20px, 4vw, 46px); margin-top: 36px; flex-wrap: wrap; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(46px, 6vw, 76px); padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid #2A2A30;
}
.facts dt { font-size: 13px; color: var(--muted-2); }
.facts dd { margin: 6px 0 0; font: 700 clamp(26px, 3.2vw, 40px)/1.1 var(--display); letter-spacing: -.04em; }

/* ==========================================================================
   services — big image-and-text cards
   ========================================================================== */

.services-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 52px; flex-wrap: wrap; }
.service-stack { display: grid; gap: 24px; }
.service-card {
  display: grid; grid-template-columns: 1fr .9fr;
  border: 1px solid #3A3A40; border-radius: 34px; overflow: hidden;
  background: #101012;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.service-card:hover { border-color: #805FFF; box-shadow: 0 30px 70px #0007; transform: rotate(-.35deg); }
.service-body { padding: clamp(28px, 3.4vw, 54px); }
.service-body h3 { font: 700 clamp(26px, 3vw, 38px)/1.1 var(--display); letter-spacing: -.035em; margin-bottom: 20px; }
.service-body h3 .star { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-body p { color: #A8A8AE; font-size: 16.5px; }
.feature-list { padding: 0; margin: 24px 0 34px; list-style: none; }
.feature-list li { margin: 13px 0; font-weight: 600; font-size: 15px; }
.feature-list li::before {
  content: "✓"; display: inline-grid; place-items: center;
  width: 18px; height: 18px; margin-right: 12px;
  border-radius: 50%; background: #DDD; color: #111; font-size: 11px;
}
.service-shot { position: relative; min-height: 260px; background: var(--panel-2); overflow: hidden; }
.service-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #101012 0%, transparent 34%); }
.service-shot.tint { background: var(--grad); }
.service-shot.tint::after { background: linear-gradient(90deg, #101012 0%, rgba(16,16,18,.45) 60%, transparent 100%); }

/* ==========================================================================
   call-to-action band
   ========================================================================== */

.cta-band {
  min-height: 420px; display: flex; align-items: center;
  background: linear-gradient(120deg, rgba(0,0,0,.86), rgba(0,0,0,.25)), var(--grad);
  border-radius: 0;
}
.cta-band h2 { max-width: 18ch; font: 700 clamp(2.4rem, 5.2vw, 4.4rem)/1.06 var(--display); margin-bottom: 22px; letter-spacing: -.05em; }
.cta-band p { max-width: 60ch; color: #D6D6DB; font-size: 17.5px; margin-bottom: 30px; }

/* ==========================================================================
   why choose us
   ========================================================================== */

.why-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #333; border: 1px solid #333; border-radius: 30px; overflow: hidden;
}
.why-card { min-height: 240px; padding: 32px; background: #111113; transition: background-color .25s ease, box-shadow .25s ease; }
.why-card:hover { background: linear-gradient(145deg, #18181B, #111114); box-shadow: inset 0 -4px 0 #8B66FF; }
.why-card .num { font: 700 17px var(--display); color: #8B8B92; }
.why-card .icon { font-size: 30px; margin: 26px 0; }
.why-card h3 { font: 700 22px var(--display); margin-bottom: 10px; }
.why-card p { color: #8F8F96; font-size: 15px; }

/* ==========================================================================
   portfolio
   ========================================================================== */

.portfolio-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.portfolio-copy { position: sticky; top: 110px; }
.project-list { display: grid; gap: 20px; }
.project { position: relative; overflow: hidden; border-radius: 30px; background: #171719; display: block; }
.project img { width: 100%; height: clamp(220px, 30vw, 360px); object-fit: cover; object-position: top center; transition: transform .5s ease; }

/* a card showing a logo rather than a screenshot: fit the whole mark inside
   the frame instead of cropping it, and give it room to breathe */
.project--logo img {
  object-fit: contain;
  object-position: center;        /* the base rule anchors screenshots to the
                                     top; a logo belongs in the middle */
  padding: clamp(30px, 5vw, 70px);
  background: linear-gradient(140deg, #1B1B20, #101014);
}
.project--logo:hover img { transform: none; }
.project:hover img { transform: scale(1.035); }
.project-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; }
.project-info h3 { font: 700 clamp(20px, 2.2vw, 25px) var(--display); }
.project-info .meta { color: var(--muted-2); font-size: 13px; margin-top: 4px; }
.tag { padding: 7px 14px; border-radius: 99px; background: #2B2B2E; color: #DDD; font-size: 13px; white-space: nowrap; }

/* the longer card used on the Work page */
.project-body { padding: 0 26px 26px; }
.project-body p { color: var(--muted); font-size: 15.5px; max-width: 68ch; }
.project-body .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.project-body .chips .tag { background: transparent; border: 1px solid #3A3A40; color: #BFBFC6; font-size: 12px; }
.project-body .visit { display: inline-block; margin-top: 18px; font-weight: 700; color: #D888FF; }
a.project:hover .visit { text-decoration: underline; }

/* ==========================================================================
   process
   ========================================================================== */

.process-wrap { border-radius: 48px; background: linear-gradient(135deg, #060608 30%, #15101B 100%); overflow: hidden; }
.process-top { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(26px, 4vw, 60px); padding: clamp(36px, 5vw, 74px); }
.process-top h2 { font: 700 clamp(2rem, 4.2vw, 3.5rem)/1.05 var(--display); letter-spacing: -.045em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 clamp(20px, 3vw, 40px) clamp(30px, 4vw, 50px); }
.step { padding: 30px; border: 1px solid #3B3B42; border-radius: 28px; background: #111113; }
.step small { color: #8A8A91; letter-spacing: .08em; font-size: 12px; }
.step h3 { font: 700 25px var(--display); margin: 10px 0 12px; }
.step p { color: #9B9BA2; font-size: 15px; }

/* ==========================================================================
   contact
   ========================================================================== */

.contact-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.contact-card {
  display: grid; grid-template-columns: .8fr 1.2fr;
  margin-top: 46px; border: 1px solid #34343A; border-radius: 38px; overflow: hidden;
}
.contact-visual { position: relative; min-height: 320px; overflow: hidden; background: var(--panel-2); }
.contact-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* a dark wash so the "available" line stays readable over the photograph */
.contact-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,6,8,.92), rgba(6,6,8,.30) 62%, rgba(6,6,8,.10));
}
.contact-visual .available { z-index: 1; }
.contact-visual .available { position: absolute; left: 32px; bottom: 30px; font: 700 22px var(--display); }
.available .dot {
  display: inline-block; width: 12px; height: 12px; margin-right: 10px;
  border-radius: 50%; background: #25EB34; box-shadow: 0 0 12px #25EB34;
}
.contact-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; padding: clamp(30px, 4vw, 56px); background: #111113; }
.contact-details h4 { font: 700 20px var(--display); margin-bottom: 8px; }
.contact-details p { color: #95959C; }
.contact-details a { border-bottom: 1px solid var(--purple); }
.contact-details a:hover { color: #D888FF; }
.contact-details .full { grid-column: 1 / -1; border-bottom: 1px solid #333; padding-bottom: 30px; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.points li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); }

/* ==========================================================================
   footer and back to top
   ========================================================================== */

.site-footer { padding: 42px 0; border-top: 1px solid #2B2B30; color: #888; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }

/* the Instagram line: icon and label sit on one baseline */
.ig-link { display: inline-flex; align-items: center; gap: 9px; }
.ig-link .ig { flex: 0 0 18px; transition: transform .25s ease; }
.ig-link:hover .ig { transform: scale(1.12); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #2B2B30; padding-top: 22px; font-size: 13.5px; }

.back-top {
  position: fixed; z-index: 20; right: 24px; bottom: 22px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid #45454B; border-radius: 10px; background: #171719; color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   reveal on scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero { border-radius: 0 0 32px 32px; }
  .service-card { grid-template-columns: 1fr; }
  .service-shot { order: -1; min-height: 230px; }
  .why-head, .portfolio-grid, .contact-card, .process-top { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .portfolio-copy { position: static; }
  .contact-visual { min-height: 260px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--shell)); }
  .brand { font-size: 23px; }
  .brand .badge { width: 40px; height: 40px; font-size: 21px; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-details .full { grid-column: auto; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   MOTION — the animated variant
   Everything here is additive: remove this block and the site is the quiet
   version again. All of it is switched off under prefers-reduced-motion.
   ========================================================================== */

/* --- the menu: a line that grows from the middle on hover --------------- */
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  /* scale, not left/right: this way the browser composites the line instead
     of laying the page out again on every frame */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.nav a:hover::after, .nav a.active::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* the language switch and the brand answer to the cursor too */
.lang button { transition: color .2s ease, transform .2s ease; }
.lang button:hover { transform: translateY(-1px); }
.brand img { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.brand:hover img { transform: scale(1.03); }

/* --- the hero arrives in order ------------------------------------------ */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .rating-line,
.hero h1,
.hero .hero-copy,
.hero .hero-actions,
.hero .facts { animation: rise .7s cubic-bezier(.2,.7,.3,1) backwards; }
.hero .rating-line  { animation-delay: .05s; }
.hero h1            { animation-delay: .15s; }
.hero .hero-copy    { animation-delay: .28s; }
.hero .hero-actions { animation-delay: .38s; }
.hero .facts        { animation-delay: .48s; }

/* the rotating word swaps with a small lift */
@keyframes word-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
[data-rotate] { display: inline-block; }
[data-rotate].swap { animation: word-in .45s cubic-bezier(.2,.7,.3,1); }

/* --- cards come in one after another, not all at once ------------------- */
.service-stack .reveal:nth-child(2) { transition-delay: .08s; }
.service-stack .reveal:nth-child(3) { transition-delay: .16s; }
.service-stack .reveal:nth-child(4) { transition-delay: .24s; }
.why-grid .reveal:nth-child(2), .project-list .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .07s; }
.why-grid .reveal:nth-child(3), .project-list .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .14s; }
.why-grid .reveal:nth-child(4), .project-list .reveal:nth-child(4) { transition-delay: .21s; }
.why-grid .reveal:nth-child(5) { transition-delay: .28s; }
.why-grid .reveal:nth-child(6) { transition-delay: .35s; }

/* --- hover: a small lift, nothing theatrical ---------------------------- */
.why-card { transition: background-color .25s ease, box-shadow .25s ease, transform .3s cubic-bezier(.2,.7,.3,1); }
.why-card:hover { transform: translateY(-4px); }
.service-card { transition: border-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.2,.7,.3,1); }
.service-card:hover { transform: translateY(-4px) rotate(-.3deg); }
.step { transition: border-color .25s ease, transform .3s cubic-bezier(.2,.7,.3,1); }
.step:hover { border-color: #4A4A52; transform: translateY(-3px); }
.tag, .chips .tag { transition: border-color .25s ease, color .25s ease; }
.contact-card a { transition: color .2s ease; }

/* --- the gradient in the hero breathes ---------------------------------- */
@keyframes bloom {
  from { transform: translate3d(0,0,0) scale(1); opacity: .82; }
  to   { transform: translate3d(-3%, 3%, 0) scale(1.07); opacity: 1; }
}
.hero::after { animation: bloom 16s ease-in-out infinite alternate; }

/* --- back to top slides rather than blinks ------------------------------ */
.back-top { transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.back-top.show { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .nav a::after { transition: none; }
  .nav a:hover::after { transform: scaleX(1); }
  .hero .rating-line, .hero h1, .hero .hero-copy, .hero .hero-actions, .hero .facts,
  [data-rotate].swap, .hero::after { animation: none; }
  .service-stack .reveal, .why-grid .reveal, .project-list .reveal, .steps .reveal { transition-delay: 0s; }
  .why-card:hover, .service-card:hover, .step:hover, .brand:hover img, .lang button:hover { transform: none; }
  .back-top { transform: none; }
}
