/* =========================================================
   PMR Media — Design Tokens
   Clean, light theme with sky-blue gradient accents.
   ========================================================= */
:root {
  /* --- Surfaces (light theme) --- */
  --bg-900: #ffffff;     /* page background */
  --bg-850: #f3f8fe;     /* alt section (soft sky tint) */
  --bg-800: #ffffff;     /* cards / panels */
  --bg-700: #eef4fc;     /* raised panels / hover */
  --bg-border: #e2eaf4;  /* hairline borders */

  /* --- Text --- */
  --text-100: #0c1628;   /* headings (deep navy) */
  --text-200: #38445c;   /* body */
  --text-300: #64748b;   /* muted */
  --text-400: #94a3b8;   /* faint */

  /* --- Brand accents (sky blue) --- */
  --accent: #0ea5e9;        /* sky-500 */
  --accent-2: #2563eb;      /* blue-600 */
  --accent-soft: rgba(14, 165, 233, 0.12);

  /* --- Vibrant card palette (cohesive sky/blue family) --- */
  --card-coral: #0ea5e9;    /* sky */
  --card-green: #06b6d4;    /* cyan */
  --card-blue: #3b82f6;     /* blue */
  --card-amber: #f59e0b;    /* gold (used for star ratings) */
  --card-violet: #6366f1;   /* indigo */
  --success: #16a34a;       /* confirmation green */

  /* --- Effects --- */
  --gradient-brand: linear-gradient(120deg, #38bdf8 0%, #0ea5e9 45%, #2563eb 100%);
  --gradient-dark: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
  --shadow-sm: 0 4px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 44px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 12px 40px rgba(14, 165, 233, 0.32);

  /* --- Typography --- */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- Radius --- */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* --- Layout --- */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-900);
  color: var(--text-200);
  line-height: 1.65;
  font-size: clamp(0.98rem, 0.5vw + 0.9rem, 1.05rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-100);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.icon {
  display: inline-block;
  flex-shrink: 0;
}

/* ===================== Layout helpers ===================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  width: 100%;
  max-width: var(--container-wide);
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--alt {
  background: var(--bg-850);
}

/* ===================== Accessibility ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

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

/* ===================== Scroll-reveal ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Custom scrollbar (webkit) */
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-900);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-700);
  border-radius: 999px;
  border: 2px solid var(--bg-900);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ===================== Button ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.92rem 1.7rem;
  border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
  position: relative;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 60px rgba(255, 90, 60, 0.4);
}

.btn--secondary {
  background: var(--bg-800);
  color: var(--text-100);
  border: 1px solid var(--bg-border);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-100);
  padding-inline: 0.4rem;
}
.btn--ghost:hover {
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===================== Section heading ===================== */
.section-heading {
  max-width: 720px;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.section-heading--center {
  margin-inline: auto;
  text-align: center;
}
.section-heading--left {
  text-align: left;
}

.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-heading__eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-heading--center .section-heading__eyebrow::after {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-heading__title {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 800;
}

.section-heading__subtitle {
  margin-top: 1.1rem;
  color: var(--text-300);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.7;
}

/* ===================== Navbar ===================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--bg-border);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.navbar:not(.navbar--scrolled) .navbar__logo,
.navbar:not(.navbar--scrolled) .navbar__toggle {
  color: #fff;
}
.navbar:not(.navbar--scrolled) .navbar__brand-sub {
  color: rgba(255, 255, 255, 0.72);
}
@media (min-width: 921px) {
  .navbar:not(.navbar--scrolled) .navbar__links a {
    color: rgba(255, 255, 255, 0.88);
  }
  .navbar:not(.navbar--scrolled) .navbar__links a:hover {
    color: #fff;
  }
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
  margin-inline: auto;
  width: 100%;
  max-width: var(--container-wide);
  padding-inline: var(--gutter);
}

.navbar__brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.navbar__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--text-100);
  letter-spacing: 0.02em;
}
.navbar__logo-dot {
  color: var(--accent);
}
.navbar__brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--text-300);
  margin-top: 3px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-200);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.navbar__links a:hover {
  color: var(--text-100);
}
.navbar__links a:hover::after {
  width: 100%;
}
.navbar__cta-mobile {
  display: none;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar__cta-desktop {
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
}
.navbar__toggle {
  display: none;
  color: var(--text-100);
  padding: 6px;
}

.navbar__backdrop {
  display: none;
}
.navbar__backdrop.is-open {
  display: block;
}

@media (max-width: 920px) {
  .navbar__cta-desktop {
    display: none;
  }
  .navbar__toggle {
    display: inline-flex;
  }
  .navbar__cta-mobile {
    display: block;
    margin-top: 0.8rem;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(82vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem 2.2rem;
    background: var(--bg-850);
    border-left: 1px solid var(--bg-border);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    z-index: 1100;
  }
  .navbar__links.is-open {
    transform: translateX(0);
  }
  .navbar__links a {
    font-size: 1.25rem;
    font-weight: 600;
  }

  .navbar__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1050;
  }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 60px;
  overflow: hidden;
  background: #06080f;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 15, 0.55) 0%, rgba(6, 8, 15, 0.35) 40%, rgba(6, 8, 15, 0.78) 100%),
    radial-gradient(120% 90% at 75% 10%, rgba(14, 165, 233, 0.28), transparent 55%),
    linear-gradient(180deg, transparent 78%, var(--bg-900) 100%);
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 30%, #000 20%, transparent 70%);
}
.hero__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  animation: heroFloat 14s ease-in-out infinite;
}
.hero__bg-glow--1 {
  width: 460px;
  height: 460px;
  background: rgba(56, 189, 248, 0.55);
  top: -120px;
  right: -60px;
}
@keyframes heroFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 38px, 0); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  max-width: 24ch;
  margin-bottom: 1.9rem;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.hero__title-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}
.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  position: relative;
}
.hero__scroll-mouse::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}
.hero__scroll-text {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .hero__scroll { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ===================== Pillars ===================== */
.pillars {
  background: var(--bg-900);
}
.pillars__container {
  margin-inline: auto;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.pillar {
  position: relative;
  padding: 2rem 1.8rem 1.9rem;
  background: var(--bg-800);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pillar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow-md);
  background: var(--bg-800);
}
.pillar:hover::before {
  transform: scaleX(1);
}

.pillar__index {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bg-border);
  letter-spacing: 0.05em;
}
.pillar:hover .pillar__index {
  color: rgba(14, 165, 233, 0.55);
}

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.3rem;
}

.pillar__title {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.pillar__text {
  font-size: 0.93rem;
  color: var(--text-300);
  line-height: 1.65;
}

/* ===================== Services ===================== */
.services__container {
  margin-inline: auto;
}

.services__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.services__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-pill);
  background: var(--bg-800);
  border: 1px solid var(--bg-border);
  color: var(--text-300);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--dur) var(--ease);
}
.services__tab:hover {
  color: var(--text-100);
  border-color: var(--tab-color);
}
.services__tab.is-active {
  background: var(--tab-color);
  border-color: var(--tab-color);
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--tab-color);
}

.services__blurb {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.6rem;
  color: var(--text-200);
  font-size: 1.05rem;
  font-style: italic;
  position: relative;
  padding-top: 1rem;
  animation: fadeUp 0.5s var(--ease) both;
}
.services__blurb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--tab-color);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  background: var(--bg-800);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.55s var(--ease) both;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.service-card[hidden] {
  display: none;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 200px;
  height: 200px;
  background: var(--card-color);
  filter: blur(70px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-color);
  box-shadow: var(--shadow-md);
}
.service-card:hover::after {
  opacity: 0.22;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--card-color) 16%, transparent);
  color: var(--card-color);
}
.service-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--bg-border);
}

.service-card__title {
  font-size: 1.18rem;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}
.service-card__text {
  font-size: 0.93rem;
  color: var(--text-300);
  line-height: 1.65;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--card-color);
  position: relative;
  z-index: 1;
  transition: gap var(--dur) var(--ease);
}
.service-card__link:hover {
  gap: 0.8rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===================== Portfolio ===================== */
.portfolio__container {
  margin-inline: auto;
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}
.portfolio__filter {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--bg-border);
  background: transparent;
  color: var(--text-300);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--dur) var(--ease);
}
.portfolio__filter:hover {
  color: var(--text-100);
  border-color: var(--text-400);
}
.portfolio__filter.is-active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1.1rem;
}

.work-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-800);
  animation: cardIn 0.5s var(--ease) both;
}
.work-card[hidden] {
  display: none;
}
.work-card--tall {
  grid-row: span 2;
}

.work-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(0.2) brightness(0.85);
}
.work-card:hover .work-card__img {
  transform: scale(1.08);
  filter: grayscale(0) brightness(0.7);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 10, 0.92) 100%);
}
.work-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-brand);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.7rem;
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--dur) var(--ease);
}
.work-card__title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.work-card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.work-card:hover .work-card__tag,
.work-card:focus-within .work-card__tag {
  transform: none;
  opacity: 1;
}
.work-card:hover .work-card__view,
.work-card:focus-within .work-card__view {
  max-height: 30px;
  opacity: 1;
}

.portfolio__empty {
  text-align: center;
  color: var(--text-300);
  padding-block: 2rem;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .work-card--tall {
    grid-row: span 1;
  }
}

/* ===================== About ===================== */
.about__inner {
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__media {
  position: relative;
}
.about__media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--bg-border);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}
.about__media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
}
.about__media-glow {
  position: absolute;
  inset: auto -30% -30% auto;
  width: 260px;
  height: 260px;
  background: var(--accent);
  filter: blur(80px);
  opacity: 0.3;
}

.about__badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--bg-700);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.about__badge-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.about__badge-label {
  font-size: 0.78rem;
  color: var(--text-300);
  margin-top: 0.3rem;
}

.about__title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  margin: 1rem 0 1.8rem;
  max-width: 18ch;
}

.about__block {
  margin-bottom: 1.8rem;
}
.about__block-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.about__block p {
  color: var(--text-300);
  line-height: 1.75;
}

.about__list {
  display: grid;
  gap: 0.85rem;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-200);
  line-height: 1.6;
}
.about__check {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

.about__cta {
  margin-top: 2.2rem;
}

@media (max-width: 880px) {
  .about__inner {
    grid-template-columns: 1fr;
  }
  .about__media {
    max-width: 460px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .about__inner {
    gap: 2.4rem;
  }
  .about__media {
    width: min(100%, 360px);
  }
  .about__media-frame {
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 4.8;
  }
  .about__badge {
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.85rem 1rem;
  }
  .about__badge-value {
    font-size: 1.45rem;
  }
  .about__title {
    max-width: none;
    margin-bottom: 1.4rem;
  }
  .about__block {
    margin-bottom: 1.45rem;
  }
  .about__block-title {
    align-items: flex-start;
    font-size: 1.05rem;
  }
  .about__list li {
    gap: 0.6rem;
  }
  .about__cta .btn {
    width: 100%;
  }
}

/* ===================== Testimonials ===================== */
.testimonials__container {
  margin-inline: auto;
}

.testimonials__card {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  background: var(--bg-800);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.testimonials__card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gradient-brand);
}

.testimonials__quote-mark {
  color: var(--accent);
  opacity: 0.22;
  margin-bottom: 0.5rem;
}

.testimonials__slide {
  display: none;
}
.testimonials__slide.is-active {
  display: block;
}

.testimonials__quote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--text-100);
  font-weight: 500;
  margin-bottom: 2rem;
  animation: quoteIn 0.5s var(--ease) both;
}
@keyframes quoteIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.testimonials__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.testimonials__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonials__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
.testimonials__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-100);
}
.testimonials__role {
  font-size: 0.88rem;
  color: var(--text-300);
}
.testimonials__stars {
  display: flex;
  gap: 0.2rem;
  color: var(--card-amber);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.testimonials__controls > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--bg-border);
  color: var(--text-200);
  transition: all var(--dur) var(--ease);
}
.testimonials__controls > button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.testimonials__dots {
  display: flex;
  gap: 0.5rem;
}
.testimonials__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-border);
  transition: all var(--dur) var(--ease);
}
.testimonials__dot.is-active {
  width: 26px;
  border-radius: 6px;
  background: var(--accent);
}

/* ===================== Clients marquee ===================== */
.clients {
  margin-top: clamp(3rem, 7vw, 5rem);
}
.clients__label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-400);
  margin-bottom: 1.6rem;
}

.clients__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.clients__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 32s linear infinite;
}
.clients__marquee:hover .clients__track {
  animation-play-state: paused;
}

.clients__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--text-400);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
  cursor: default;
}
.clients__logo:hover {
  color: var(--text-100);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== Contact ===================== */
.contact__inner {
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.contact__title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  margin: 1rem 0 1.2rem;
  max-width: 16ch;
}
.contact__lead {
  color: var(--text-300);
  max-width: 48ch;
  margin-bottom: 2.4rem;
}

.contact__details {
  display: grid;
  gap: 1.3rem;
  margin-bottom: 2.4rem;
}
.contact__details li {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact__detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact__detail-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact__details a,
.contact__details div > span:last-child {
  color: var(--text-100);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.contact__details a:hover {
  color: var(--accent);
}

.contact__socials-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-300);
  margin-bottom: 0.9rem;
}
.contact__socials-icons {
  display: flex;
  gap: 0.7rem;
}
.contact__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--bg-border);
  color: var(--text-200);
  transition: all var(--dur) var(--ease);
}
.contact__social:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.contact__form-wrap {
  background: var(--bg-800);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.contact__form-title {
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
}

.form-field {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-200);
  margin-bottom: 0.5rem;
}
.form-field label span {
  color: var(--accent);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-900);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text-100);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-400);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field input.has-error,
.form-field textarea.has-error {
  border-color: #ff4d4d;
}

.form-error {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #ff7a7a;
  animation: shake 0.3s var(--ease);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.contact__submit {
  width: 100%;
  margin-top: 0.4rem;
}
.contact__form-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-400);
  text-align: center;
}
.contact__form-status {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: #b42318;
  text-align: center;
}

.contact__success {
  text-align: center;
  padding: 2rem 1rem;
  animation: fadeUp 0.5s var(--ease) both;
}
.contact__success[hidden] {
  display: none;
}
.contact__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  margin-bottom: 1.4rem;
}
.contact__success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.contact__success p {
  color: var(--text-300);
  max-width: 38ch;
  margin: 0 auto 1.8rem;
}

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

@media (max-width: 600px) {
  .testimonials__card {
    border-radius: var(--radius-md);
    padding: 1.35rem;
  }
  .testimonials__quote-mark {
    width: 40px;
    height: 40px;
  }
  .testimonials__quote {
    margin-bottom: 1.35rem;
  }
  .testimonials__footer,
  .testimonials__author {
    align-items: flex-start;
  }
  .testimonials__avatar {
    width: 48px;
    height: 48px;
  }
  .testimonials__stars {
    width: 100%;
  }
  .testimonials__controls {
    gap: 0.8rem;
    margin-top: 1.6rem;
  }
  .testimonials__controls > button {
    width: 40px;
    height: 40px;
  }
  .clients__label {
    letter-spacing: 0.1em;
    line-height: 1.5;
  }
  .clients__track {
    gap: 2rem;
  }
  .contact__title {
    max-width: none;
  }
  .contact__lead {
    margin-bottom: 1.8rem;
  }
  .contact__details {
    gap: 1rem;
  }
  .contact__details li {
    align-items: flex-start;
  }
  .contact__detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }
  .contact__details a,
  .contact__details div > span:last-child {
    overflow-wrap: anywhere;
  }
  .contact__form-wrap {
    border-radius: var(--radius-md);
    padding: 1.25rem;
  }
  .contact__form-title {
    font-size: 1.25rem;
  }
  .form-field input,
  .form-field textarea {
    padding-inline: 0.85rem;
  }
}

/* ===================== Footer ===================== */
.footer {
  background: var(--bg-850);
  border-top: 1px solid var(--bg-border);
}

.footer__inner {
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-100);
}
.footer__logo span {
  color: var(--accent);
}
.footer__tagline {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--text-200);
}
.footer__desc {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-300);
  max-width: 34ch;
}
.footer__socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--bg-border);
  color: var(--text-200);
  transition: all var(--dur) var(--ease);
}
.footer__socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer__col h4 {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: var(--text-100);
}
.footer__col ul {
  display: grid;
  gap: 0.7rem;
}
.footer__col a,
.footer__contact span {
  font-size: 0.9rem;
  color: var(--text-300);
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover {
  color: var(--accent);
}
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-400);
}

.footer__bottom {
  border-top: 1px solid var(--bg-border);
}
.footer__bottom-inner {
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-block: 1.4rem;
  font-size: 0.83rem;
  color: var(--text-400);
}

@media (max-width: 860px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }
  .footer__desc {
    max-width: none;
  }
  .footer__col h4 {
    margin-bottom: 0.8rem;
  }
  .footer__contact li {
    align-items: flex-start;
  }
  .footer__contact span {
    overflow-wrap: anywhere;
  }
  .footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ===================== Floating actions ===================== */
.floating {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.floating__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.floating__whatsapp {
  background: #25d366;
  color: #fff;
  position: relative;
}
.floating__whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: waPulse 2.4s infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.floating__whatsapp:hover {
  transform: scale(1.08);
}

.floating__top {
  background: var(--bg-700);
  border: 1px solid var(--bg-border);
  color: var(--text-100);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.floating__top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.floating__top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  animation: lightboxFade 0.3s var(--ease);
}
.lightbox[hidden] {
  display: none;
}
@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  animation: lightboxZoom 0.35s var(--ease);
}
@keyframes lightboxZoom {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

.lightbox__img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #0c0c10;
}

.lightbox__caption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 1rem 0.4rem 0;
  color: #fff;
}
.lightbox__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-brand);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}
.lightbox__title {
  font-size: 1.15rem;
  color: #fff;
  margin-right: auto;
}
.lightbox__counter {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 1;
}
.lightbox__close {
  top: clamp(1rem, 3vw, 1.8rem);
  right: clamp(1rem, 3vw, 1.8rem);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lightbox__close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lightbox__nav--prev {
  left: clamp(0.6rem, 3vw, 2rem);
}
.lightbox__nav--next {
  right: clamp(0.6rem, 3vw, 2rem);
}
.lightbox__nav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 600px) {
  .floating {
    right: 0.85rem;
    bottom: 0.85rem;
    gap: 0.6rem;
  }
  .floating__btn {
    width: 48px;
    height: 48px;
  }
  .lightbox__nav {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.14);
  }
  .lightbox__title {
    font-size: 1rem;
    width: 100%;
    order: 3;
  }
}
