/* =========================================================
   Bergin CT – single page site
   Palette taken from berginct.com (Enfold theme)
   ========================================================= */
:root {
  --blue: #35a6f2;        /* primary brand blue */
  --blue-dark: #1384d0;
  --blue-mid: #2495e1;
  --blue-light: #57c8f4;
  --blue-wash: #f1f9ff;
  --ink: #222222;
  --ink-2: #333333;
  --text: #555555;
  --muted: #888888;
  --line: #e1e1e1;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --night: #16191d;
  --night-2: #1e2227;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(19, 132, 208, .25);
  --shadow-lg: 0 25px 60px -20px rgba(19, 132, 208, .4);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 300; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--blue); font-weight: 700; }
.accent-light { color: var(--blue-light); font-weight: 700; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; max-width: 640px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.8em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 .95rem/1 "Lato", sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -8px rgba(53,166,242,.8); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 14px 30px -10px rgba(53,166,242,.9); }
.btn-primary::after { /* shine sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transition: transform .7s var(--ease); transform: translateX(120%); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--blue); background: rgba(53,166,242,.15); color: #fff; }
.btn-sm { padding: .7em 1.3em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue-light), var(--blue), var(--blue-dark));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.scrolled {
  background: rgba(22, 25, 29, .88);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  --header-h: 64px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; transition: height .35s; }
.scrolled .brand img { height: 34px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative;
  color: rgba(255,255,255,.82);
  font-size: .92rem; font-weight: 700;
  padding: .5em .85em;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .15em;
  height: 2px; border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a.active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  background: radial-gradient(1200px 600px at 75% 20%, #1d3a52 0%, transparent 60%),
              linear-gradient(160deg, var(--night) 0%, #102231 100%);
  color: #fff; overflow: hidden;
}
#network { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; z-index: -1; width: 620px; aspect-ratio: 1; right: -160px; top: 10%;
  background: radial-gradient(circle, rgba(53,166,242,.35), transparent 65%);
  filter: blur(20px);
  animation: float 12s ease-in-out infinite;
}
.hero .eyebrow { color: var(--blue-light); }
.hero-title {
  color: #fff; font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  letter-spacing: -.02em; line-height: 1.1;
  max-width: 900px;
}
.rotator {
  display: inline-block; position: relative;
  color: var(--blue); font-weight: 900;
  min-width: 5.2em;
}
.rotator-word { display: inline-block; }
.rotator-word.out { animation: wordOut .45s var(--ease) forwards; }
.rotator-word.in  { animation: wordIn .55s var(--ease) forwards; }
.rotator::after { /* animated underline */
  content: ""; position: absolute; left: 0; bottom: .06em; height: .08em; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 1em;
  animation: underline 2.8s var(--ease) infinite;
  transform-origin: left;
}
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255,255,255,.75); max-width: 560px; margin: 1.4rem 0 2.2rem; }
.hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; translate: -50% 0;
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--blue);
  animation: wheel 1.8s ease-in-out infinite;
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section-head.light h2 { color: #fff; }
.section-head.light .eyebrow { color: var(--blue-light); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 1.6rem 0 0; list-style: none; }
.industry-tags li {
  padding: .45em 1em; border-radius: 999px;
  background: var(--blue-wash); color: var(--blue-dark);
  font-size: .85rem; font-weight: 700;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.stat-num { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; color: var(--blue); line-height: 1; margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .9rem; color: var(--muted); font-weight: 700; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(60px, 8vw, 100px); }
.pillar { padding: 8px 4px; }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  box-shadow: var(--shadow);
}
.pillar-icon svg, .service-icon svg {
  width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Services ---------- */
.services { background: var(--surface-2); }
.services::before { /* subtle dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(53,166,242,.18) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.service-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 34px 30px 30px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.service-card::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(53,166,242,.12), transparent 60%);
  transition: opacity .3s;
}
.service-card::after { /* top accent bar */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-dark));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: 18px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--blue);
  transition: transform .5s var(--ease), border-radius .5s;
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); border-radius: 50%; }
.service-card h3 { margin-bottom: .2em; }
.tagline { color: var(--blue); font-weight: 700; font-size: .92rem; margin-bottom: .9em; }
.service-card p { font-size: .97rem; }

.service-card details { margin-top: auto; align-self: stretch; }
.service-card .card-link { margin-top: auto; }
details { border-top: 1px solid var(--line); padding-top: 12px; }
summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--ink-2); font-size: .93rem;
  display: flex; align-items: center; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-wash); color: var(--blue-dark); font-size: 1.1rem;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
details[open] summary::after { transform: rotate(135deg); background: var(--blue); color: #fff; }
details[open] .checklist { animation: dropIn .45s var(--ease); }

.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: .55em; font-size: .93rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat;
}
.card-link { display: inline-flex; gap: .4em; font-weight: 700; font-size: .93rem; margin-top: 4px; }
.card-link span { transition: transform .3s var(--ease); }
.card-link:hover span { transform: translateX(5px); }

/* ---------- Management tiers ---------- */
.tiers { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tier-track {
  position: absolute; top: 46px; left: 8%; right: 8%; height: 3px;
  background: var(--line); border-radius: 3px; overflow: hidden;
}
.tier-track-fill {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-dark));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s;
}
.tiers.in-view .tier-track-fill { transform: scaleX(1); }
.tier {
  position: relative; padding: 0 28px 34px; text-align: center;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.tier:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.tier-step {
  display: grid; place-items: center; position: relative; z-index: 1;
  width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--blue);
  color: var(--blue); font-size: 1.6rem; font-weight: 900;
  transform: translateY(0);
}
.tier-featured { background: linear-gradient(170deg, var(--blue) 0%, var(--blue-dark) 100%); border: 0; color: rgba(255,255,255,.88); }
.tier-featured h3 { color: #fff; }
.tier-featured .tier-step { background: #fff; border-color: #fff; color: var(--blue-dark); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: ring 2.4s infinite; }
.tier-badge {
  position: absolute; top: 18px; right: 18px;
  padding: .3em .8em; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.2); color: #fff;
}
.tier p { font-size: .97rem; }
.tier { margin-top: 46px; }
.tier .tier-step { margin-top: -46px; }

/* ---------- Cloud ---------- */
.cloud { background: linear-gradient(160deg, var(--night) 0%, #0f2a3f 100%); color: rgba(255,255,255,.78); overflow: hidden; }
.cloud-bg span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45;
  background: var(--blue);
  animation: float 16s ease-in-out infinite;
}
.cloud-bg span:nth-child(1) { width: 420px; height: 420px; left: -120px; top: 10%; }
.cloud-bg span:nth-child(2) { width: 320px; height: 320px; right: -80px; top: 40%; background: var(--blue-light); animation-delay: -5s; opacity: .3; }
.cloud-bg span:nth-child(3) { width: 260px; height: 260px; left: 40%; bottom: -120px; background: var(--blue-dark); animation-delay: -9s; }
.price-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.price-card {
  display: flex; flex-direction: column;
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), background .4s, border-color .4s;
}
.price-card:hover { transform: translateY(-8px); background: rgba(255,255,255,.1); border-color: rgba(87,200,244,.6); }
.price-card h3 { color: #fff; font-size: 1.1rem; }
.price { display: flex; align-items: flex-start; color: #fff; font-weight: 900; line-height: 1; margin-top: 6px; }
.price .cur { font-size: 1.4rem; margin-top: .3em; color: var(--blue-light); }
.price .amt { font-size: 3.4rem; font-variant-numeric: tabular-nums; }
.per { font-size: .82rem; color: rgba(255,255,255,.55); margin: .5em 0 1em; }
.price-card .checklist li { color: rgba(255,255,255,.82); }
.price-rows { display: grid; gap: 10px; margin-top: 4px; }
.price-rows div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06);
  font-size: .9rem;
}
.price-rows strong { color: #fff; font-size: 1.35rem; white-space: nowrap; }
.price-rows small { font-size: .72rem; font-weight: 400; color: rgba(255,255,255,.6); }
.small { font-size: .9rem; }
.price-card-alt { background: linear-gradient(160deg, rgba(53,166,242,.35), rgba(19,132,208,.2)); }
.price-card-alt .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Partners ---------- */
.partners { padding-bottom: clamp(70px, 8vw, 110px); }
.partners .section-head { margin-bottom: 40px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img {
  height: 80px; width: auto;
  filter: grayscale(1); opacity: .6; mix-blend-mode: multiply;
  transition: filter .35s, opacity .35s, transform .35s var(--ease);
}
.marquee img:hover { filter: none; opacity: 1; transform: scale(1.08); }

/* ---------- Contact ---------- */
.contact { background: var(--surface-2); }
.call-banner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 34px clamp(24px, 4vw, 48px); margin-bottom: 50px; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.call-banner::before {
  content: ""; position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,.18), transparent 30%);
  animation: spin 9s linear infinite;
}
.call-banner > * { position: relative; }
.call-q { margin: 0; font-size: 1.05rem; opacity: .9; }
.call-num { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: .02em; }
.call-num:hover { color: #fff; text-shadow: 0 0 24px rgba(255,255,255,.6); }
.pulse-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; flex: none; animation: ring 2s infinite; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-item {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .35s var(--ease);
}
.info-item:hover { border-color: var(--blue); transform: translateY(-4px); }
.info-item h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: .6em; }
.info-item p { margin: 0; font-size: .97rem; color: var(--ink-2); }

.contact-form {
  padding: clamp(26px, 4vw, 40px); border-radius: calc(var(--radius) + 6px);
  background: var(--surface); box-shadow: var(--shadow);
}
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 8px;
  font: 400 1rem "Lato", sans-serif; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 10px;
  outline: none; resize: vertical;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field label {
  position: absolute; left: 17px; top: 15px; color: var(--muted); pointer-events: none;
  transition: transform .25s var(--ease), color .25s, font-size .25s;
  transform-origin: left top;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(53,166,242,.15); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.78); color: var(--blue-dark); font-weight: 700;
}
.field.invalid input, .field.invalid textarea { border-color: #e0524f; animation: shake .4s; }
.form-note { margin: 12px 0 0; font-size: .9rem; min-height: 1.4em; text-align: center; color: var(--blue-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.6); padding: 70px 0 26px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer a { color: var(--blue-light); }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.to-top {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue); color: #fff !important; font-weight: 900;
  transition: transform .3s var(--ease), background .3s;
}
.to-top:hover { transform: translateY(-4px); background: var(--blue-dark); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
.service-card.reveal.visible { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }

/* ---------- Keyframes ---------- */
@keyframes wordOut { to { opacity: 0; transform: translateY(-.6em) rotateX(70deg); filter: blur(4px); } }
@keyframes wordIn  { from { opacity: 0; transform: translateY(.6em) rotateX(-70deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes underline { 0% { transform: scaleX(0); } 40%, 75% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 30px) scale(1.08); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 30px)); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 80%, 100% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 90px 24px 24px;
    background: rgba(22,25,29,.97); backdrop-filter: blur(12px);
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s;
  }
  .nav-open .nav { transform: none; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { font-size: 1.1rem; padding: .8em .6em; }
  .nav a:not(.btn)::after { left: .6em; right: auto; width: 30px; }
  .nav .btn { margin: 16px 0 0; }
  .nav-toggle { position: relative; z-index: 2; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; gap: 20px; }
  .tier-track { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .service-grid, .price-grid, .contact-info { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px; }
  .call-banner { flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { gap: 16px; }
  .rotator { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
