/* ==========================================================================
   ANAV IT Solutions: design tokens (mirrored in Figma as variables)
   ========================================================================== */
:root {
  /* Color */
  --ink: #0F1B3D;          /* headings, dark sections */
  --ink-2: #1B2A55;        /* dark surfaces */
  --slate: #4E5A75;        /* body text */
  --line: #DFE4EE;         /* borders, dividers */
  --paper: #F4F6FB;        /* alternate section background */
  --white: #FFFFFF;
  --magenta: #C42E9C;      /* brand accent, primary CTA */
  --magenta-d: #A3237F;
  --blue: #3D5BD9;         /* links, focus */
  --sky: #4BA6DE;
  --ribbon: linear-gradient(120deg, #4BA6DE 0%, #3D5BD9 45%, #C42E9C 100%);

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --fs-sm: 0.875rem;   /* 14 */
  --fs-base: 1.0625rem;/* 17 */
  --fs-lg: 1.25rem;    /* 20 */
  --fs-h3: 1.375rem;   /* 22 */
  --fs-h2: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);    /* 30 → 44 */
  --fs-h1: clamp(2.25rem, 1.5rem + 2.6vw, 3.375rem);  /* 36 → 54 */

  /* Space, shape, depth */
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1760px;
  --gutter: clamp(16px, 4.5vw, 88px);
  --slant: 12%;            /* diagonal edge from the logo, used on photos */
  --shadow: 0 1px 2px rgba(15,27,61,.06), 0 12px 32px -8px rgba(15,27,61,.14);
  --shadow-lg: 0 2px 4px rgba(15,27,61,.06), 0 24px 56px -12px rgba(15,27,61,.22);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(196,46,156,.18); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Gradient ring around an icon: echoes the circles in the company profile */
.icon-ring {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--magenta);
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--ribbon) border-box;
}
.icon-ring .icon { width: 22px; height: 22px; }
.icon-ring-lg { width: 64px; height: 64px; }
.icon-ring-lg .icon { width: 28px; height: 28px; }

/* Decorative rotating gradient ring */
.ring-deco {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: var(--ribbon);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 1rem/1 var(--font-body);
  border-radius: var(--radius-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 8px 20px -8px rgba(196,46,156,.6); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ribbon); opacity: 0; transition: opacity .3s;
}
.btn-primary::after { /* light sweep on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(61,91,217,.55); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { left: 130%; transition: left .7s var(--ease); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: rgba(255,255,255,.6); }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 2px; transition: color .2s;
}
.text-link .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--magenta); }
.text-link:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background-color .3s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.92); border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(15,27,61,.25); }
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--ribbon); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name { font: 700 1.25rem/1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.brand-name span { font-weight: 500; color: var(--slate); }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name span { color: #B9C2DA; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  position: relative; color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ribbon); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(4rem, 3rem + 4vw, 7rem); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .32; }
.blob-1 { width: 520px; height: 520px; right: -120px; top: -160px; background: #E7A3D6; }
.blob-2 { width: 460px; height: 460px; left: -180px; bottom: -200px; background: #A9D3F2; }
.dots {
  position: absolute; width: 132px; height: 132px; opacity: .5;
  background: radial-gradient(var(--ink) 1.6px, transparent 1.8px) 0 0 / 22px 22px;
}
.dots-1 { left: 1.5%; top: 16px; height: 88px; opacity: .3; }
.dots-2 { right: 3%; bottom: 40px; opacity: .25; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-lines path { fill: none; stroke: url(#lineGrad); stroke-width: 1.5; opacity: .55; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 19ch; }
.lead { font-size: var(--fs-lg); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.75rem; }

.hero-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hero-areas a {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line);
  transition: color .2s, padding-left .3s var(--ease);
}
.hero-areas a:hover { color: var(--magenta); padding-left: 6px; }
.hero-areas .icon { color: var(--magenta); }

.hero-media { position: relative; isolation: isolate; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 4.4; max-height: 640px; object-fit: cover;
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
/* Logo-style ribbon offset behind the photo */
.ribbon {
  position: absolute; z-index: -1; inset: 0;
  background: var(--ribbon);
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  transform: translate(-24px, 24px);
}
.ring-hero { width: 170px; height: 170px; right: -56px; top: -56px; z-index: -2; }

/* Floating glass cards over the hero photo */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 14px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg);
  max-width: 290px;
}
.float-card strong { display: block; font: 600 0.9375rem/1.25 var(--font-display); color: var(--ink); }
.float-card small { display: block; font-size: 0.8125rem; color: var(--slate); margin-top: 2px; }
.fc-1 { left: -36px; bottom: 56px; }
.fc-2 { right: -28px; top: 64px; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  display: flex; overflow: hidden; background: var(--ink); padding-block: 22px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; align-items: center; }
.marquee-track li {
  display: flex; align-items: center; white-space: nowrap;
  font: 600 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1 var(--font-display); letter-spacing: -0.01em;
  color: #fff;
}
.marquee-track li:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee-track li::after {
  content: ""; width: 10px; height: 10px; margin-inline: 32px; border-radius: 3px;
  background: var(--ribbon); transform: rotate(45deg);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: var(--space-section); overflow-x: clip; }
.section-alt { background: var(--paper); }
/* Wide screens: heading left, lead right, so the head uses the full width */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head h2 { margin: 0; }
.section-head p { font-size: var(--fs-lg); margin: 0; max-width: 34em; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 18px; border-radius: 2px;
  background: var(--ribbon);
}

/* Services: tabs + panel */
.services { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.service-tabs { display: flex; flex-direction: column; gap: 8px; }
.service-tabs [role="tab"] {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  padding: 18px 18px; text-align: left;
  font: inherit; color: var(--slate); cursor: pointer;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: background-color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.service-tabs [role="tab"] .icon { margin-top: 2px; color: var(--slate); transition: color .3s; }
.service-tabs strong { display: block; font: 600 1.0625rem/1.3 var(--font-display); color: var(--ink); }
.service-tabs small { display: block; font-size: var(--fs-sm); margin-top: 4px; }
.service-tabs [role="tab"]:hover { border-color: #C9D0DE; transform: translateX(4px); }
.service-tabs [role="tab"]::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--ribbon); transform: scaleY(0); transition: transform .35s var(--ease);
}
.service-tabs [aria-selected="true"] { background: var(--white); border-color: transparent; box-shadow: var(--shadow); }
.service-tabs [aria-selected="true"]::before { transform: scaleY(1); }
.service-tabs [aria-selected="true"] .icon { color: var(--magenta); }

.service-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.service-panel[hidden] { display: none; }
.panel-media {
  position: relative; height: 100%; min-height: 380px; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--slant) 100%);
  border-radius: var(--radius) 0 0 var(--radius);
}
.panel-media::after { /* brand tint at the bottom of the photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,27,61,.35), transparent 45%);
}
.panel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-panel:hover .panel-media img { transform: scale(1.05); }
.panel-body h3 { font-size: 1.625rem; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 1.5rem 0 1.75rem; }
.checklist li { position: relative; padding-left: 28px; color: var(--ink); font-weight: 500; line-height: 1.4; }
.checklist li::before, .checklist li::after {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%;
}
.checklist li::before { background: var(--ribbon); }
.checklist li::after {
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.5 3.5L17 9' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.5 3.5L17 9' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about-media::before { /* dot grid peeking from behind */
  content: ""; position: absolute; right: -28px; bottom: -28px; width: 150px; height: 150px; z-index: -1;
  background: radial-gradient(var(--blue) 1.6px, transparent 1.8px) 0 0 / 20px 20px; opacity: .35;
}
.about-media { isolation: isolate; }
.about-copy > p { font-size: var(--fs-lg); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2rem; }
.stats li {
  padding: 20px 22px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,27,61,.04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stats li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stats strong {
  display: inline-block; min-width: 1.4em; font: 700 2.75rem/1 var(--font-display); letter-spacing: -0.03em;
  background: var(--ribbon); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stats span { display: block; margin-top: 8px; color: var(--ink); font-weight: 500; }

/* Why us (dark) */
.section-dark {
  color: #C5CCE0; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(rgba(15,27,61,.9), rgba(15,27,61,.95)),
    url("../assets/img/server-racks.jpg") center / cover;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.spotlight { /* soft light that follows the cursor */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 20%), rgba(196,46,156,.22), transparent 60%);
  transition: background-position .2s;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.why-item {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background-color .35s, border-color .35s;
}
.why-item::before { /* gradient edge on hover */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--ribbon); opacity: 0; transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.why-item:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); }
.why-item:hover::before { opacity: 1; }
.why-item .icon-ring { margin-bottom: 24px; color: #fff; background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, var(--ribbon) border-box; }
.why-item p { margin: 0; }

/* Process (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 76px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 56px; height: 56px; display: grid; place-items: center;
  font: 700 1.25rem/1 var(--font-display); color: #fff;
  border: 3px solid transparent; border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--ribbon) border-box;
  box-shadow: 0 10px 24px -10px rgba(15,27,61,.5);
}
.steps li::after { /* connector that draws in */
  content: ""; position: absolute; top: 27px; left: 64px; right: -12px; height: 2px;
  background: var(--ribbon); transform-origin: left;
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.steps p { margin: 0; font-size: 1rem; }

/* Contact */
.contact-section { overflow: hidden; isolation: isolate; }
.ring-contact-1 { width: 420px; height: 420px; left: -180px; bottom: -160px; z-index: -1; opacity: .5; }
.ring-contact-2 { width: 220px; height: 220px; left: 90px; bottom: -40px; z-index: -1; opacity: .35; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-copy > p { font-size: var(--fs-lg); }
.contact-list { display: grid; gap: 16px; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 500; }
.contact-list a { color: inherit; text-decoration: none; transition: color .2s; }
.contact-list a:hover { color: var(--magenta); }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-lg);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 0.9375rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; min-height: 50px;
  border: 1px solid #C9D0DE; border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #AEB8CC; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 4px rgba(61,91,217,.15);
}
.field [aria-invalid="true"] { border-color: #C2263A; box-shadow: 0 0 0 4px rgba(194,38,58,.12); }
.form-note { font-size: var(--fs-sm); margin: 12px 0 0; }
.form-note.is-error { color: #C2263A; font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #B9C2DA; padding-top: 4.5rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.footer-grid p { margin-top: 1rem; max-width: 30ch; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer nav a { display: block; color: #B9C2DA; text-decoration: none; padding: 4px 0; transition: color .2s, transform .25s var(--ease); }
.site-footer nav a:hover { color: #fff; transform: translateX(4px); }
.footer-wordmark {
  margin: 0; text-align: center; line-height: .8; user-select: none;
  font: 700 clamp(5rem, 22vw, 18rem)/.8 var(--font-display); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 80%); -webkit-background-clip: text; background-clip: text;
}
.footer-bottom { font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.5rem; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: var(--ink); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--magenta); }

/* ==========================================================================
   Motion (all of it lives here, and only runs when the visitor allows motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero load sequence */
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .hero-copy > :nth-child(2) { animation-delay: .18s; }
  .hero-copy > :nth-child(3) { animation-delay: .3s; }
  .hero-copy > :nth-child(4) { animation-delay: .42s; }
  .hero-media img { animation: reveal 1.1s var(--ease) both .15s; }
  .ribbon { animation: ribbonIn 1s var(--ease) both .45s; }
  .fc-1 { animation: pop .7s var(--ease) both .9s, float 6s ease-in-out 1.6s infinite; }
  .fc-2 { animation: pop .7s var(--ease) both 1.1s, float 7s ease-in-out 1.8s infinite reverse; }
  .hero-lines path { stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: draw 2.6s var(--ease) forwards .3s; }
  .hero-lines path + path { animation-delay: .6s; }
  .blob-1 { animation: drift 16s ease-in-out infinite alternate; }
  .blob-2 { animation: drift 20s ease-in-out infinite alternate-reverse; }
  .ring-deco { animation: spin 40s linear infinite; }

  /* Marquee */
  .marquee-track { animation: marquee 45s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  /* Service panel switch */
  .service-panel:not([hidden]) .panel-media { animation: wipe .8s var(--ease) both; }
  .service-panel:not([hidden]) .panel-body > * { animation: rise .6s var(--ease) both; }
  .service-panel:not([hidden]) .panel-body > :nth-child(2) { animation-delay: .06s; }
  .service-panel:not([hidden]) .panel-body > :nth-child(3) { animation-delay: .12s; }
  .service-panel:not([hidden]) .panel-body > :nth-child(4) { animation-delay: .2s; }

  /* Scroll reveal (only when JS is running, so content never stays hidden) */
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js [data-stagger] { opacity: 1; transform: none; }
  .js [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
  .js [data-stagger].is-visible > * { opacity: 1; transform: none; }
  .js [data-reveal="wipe"] { opacity: 1; transform: none; }
  .js [data-reveal="wipe"] img { clip-path: polygon(100% 0, 100% 0, 100% 100%, 88% 100%); transition: clip-path 1.1s var(--ease); }
  .js [data-reveal="wipe"].is-visible img { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
  /* Process connectors draw left to right */
  .js .steps li::after { transform: scaleX(0); transition: transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + .35s); }
  .js .steps.is-visible li::after { transform: scaleX(1); }

  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes reveal { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 88% 100%); } }
  @keyframes wipe { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
  @keyframes ribbonIn { from { opacity: 0; transform: translate(0, 0); } }
  @keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
  @keyframes float { 50% { transform: translateY(-10px); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes drift { to { transform: translate(-60px, 50px) scale(1.12); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes marquee { to { transform: translateX(-100%); } }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; max-width: 640px; }
  .services { grid-template-columns: 1fr; }
  .service-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps li:nth-child(3)::after { display: none; }
  .fc-2 { right: 8px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; }

  .hero-grid, .about-grid, .contact-grid, .service-panel { grid-template-columns: 1fr; }
  .hero-media { order: -1; margin: 0 8px 12px 24px; }
  .hero-media img { aspect-ratio: 16 / 11; }
  .ring-hero { width: 110px; height: 110px; right: -30px; top: -30px; }
  .fc-1 { left: -16px; bottom: 20px; }
  .fc-2 { display: none; }
  .dots-1 { left: auto; right: 12px; top: auto; bottom: 24px; }
  .panel-media { min-height: 0; aspect-ratio: 16 / 9; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero-areas, .checklist, .field-row, .service-tabs { grid-template-columns: 1fr; }
  .stats strong { font-size: 2.25rem; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .steps li { padding: 4px 0 0 76px; min-height: 56px; }
  .steps li::after { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card { padding: 8px 14px 8px 8px; }
  .float-card .icon-ring { width: 36px; height: 36px; }
  .float-card small { display: none; }
}
