/* ==========================================================================
   Creative Studio — Design System
   ========================================================================== */

:root {
  --orange: #FF6A00;
  --orange-2: #FA4C18;
  --pink: #E8305C;
  --purple: #5E2A8C;
  --purple-2: #5102A3;
  --blue: #00AEEF;
  --navy: #0A0A1F;
  --navy-2: #100E24;
  --black: #000000;
  --white: #FFFFFF;

  --ink: #14142B;
  --muted: #6B6B85;
  --line: rgba(20, 20, 43, 0.08);
  --line-dark: rgba(255, 255, 255, 0.10);
  --paper: #FFFFFF;
  --paper-soft: #F7F7FB;

  --grad-brand: linear-gradient(90deg, var(--orange) 0%, var(--purple-2) 55%, var(--blue) 100%);
  --grad-brand-v: linear-gradient(90deg, var(--purple) 0%, var(--blue) 100%);
  --grad-stat: linear-gradient(160deg, var(--pink) 0%, var(--purple) 100%);
  --grad-navy: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);

  --font-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 0.9rem;
  --space-md: 1.25rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.5rem;
  --space-3xl: 4.5rem;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --nav-h: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container-pad: clamp(1.75rem, 7vw, 6rem);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: 100%;
  padding-inline: var(--container-pad);
}

.text-orange { color: var(--orange); }
.text-purple { color: var(--purple-2); }
.text-blue { color: var(--blue); }
.text-gradient {
  background: var(--grad-brand);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-v {
  background: var(--grad-brand-v);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-2);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 0.5rem;
}
.section-title--light { color: var(--white); }

.section-head { margin-bottom: var(--space-xl); }
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.section-head__desc {
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}
.section-head__link {
  display: inline-block;
  margin-left: 0.3rem;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
}
.section-head__link:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(3px); }

.btn--primary {
  background: var(--grad-brand);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: var(--white);
  box-shadow: 0 10px 26px -10px rgba(255, 106, 0, 0.45);
}
.btn--primary:hover { background-position: 100% 50%; }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--light { background: var(--white); color: var(--purple-2); }
.btn--light:hover { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35); }

.btn--sm { padding: 0.65rem 1.4rem; font-size: 0.85rem; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 31, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  height: 68px;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}
.nav__wordmark {
  height: 26px;
  width: auto;
  display: block;
}
.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--white);
}
.nav__logo-text em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0.1rem;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: right 0.35s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { right: 0; }
.nav__link.is-active { color: var(--orange); }
.nav__link:hover { color: var(--white); }

.nav__cta { flex-shrink: 0; }
.nav__cta-mobile { display: none; align-self: flex-start; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--navy) url("../images/hero-bg.jpg");
  background-size: 100% 100%;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6,6,20,0.92) 0%, rgba(6,6,20,0.82) 32%, rgba(6,6,20,0.55) 58%, rgba(6,6,20,0.35) 100%),
    radial-gradient(60% 55% at 85% 15%, rgba(94, 42, 140, 0.28) 0%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-2xl);
}

.hero__copy { max-width: 640px; }

.hero__title,
.hero__desc,
.hero__actions {
  animation: heroFadeUp 0.8s var(--ease) both;
}
.hero__title { animation-delay: 3.2s; }
.hero__desc { animation-delay: 3.4s; }
.hero__actions { animation-delay: 3.6s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  border-right: 2px solid var(--orange);
  animation:
    heroFadeUp 0.6s var(--ease) both,
    heroTyping 2.4s steps(30, end) 0.8s both,
    heroCaret 0.7s step-end infinite;
}

@keyframes heroTyping {
  to { width: 23em; }
}
@keyframes heroCaret {
  50% { border-color: transparent; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-top: var(--space-sm);
}

.hero__title .text-gradient {
  background-size: 200% 200%;
  animation: heroGradientShift 6s ease-in-out infinite;
}
@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__desc {
  margin-top: var(--space-md);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}

.hero__actions {
  margin-top: var(--space-lg);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services { position: relative; overflow: hidden; padding-block: var(--space-3xl); background: var(--paper); }

.services__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.services__glow {
  position: absolute;
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  border-radius: 50%;
  filter: blur(100px);
}
.services__glow--orange { top: -14%; left: -8%; background: var(--orange); opacity: 0.08; }
.services__glow--purple { bottom: -18%; right: -10%; background: var(--purple); opacity: 0.09; }

.services__inner { position: relative; z-index: 1; }
.services--page { padding-top: var(--space-2xl); }

/* Generic padded content section, used on inner pages right after .page-hero */
.page-section { padding-block: var(--space-3xl); padding-top: var(--space-2xl); background: var(--paper); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.services__cta { display: block; width: fit-content; margin: var(--space-lg) auto 0; }

.service {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px -22px rgba(20, 20, 43, 0.25);
}

.service__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}
.service__icon--orange { background: rgba(255, 106, 0, 0.12); color: var(--orange); }
.service__icon--purple { background: rgba(94, 42, 140, 0.12); color: var(--purple-2); }
.service__icon--blue { background: rgba(0, 174, 239, 0.12); color: var(--blue); }

.service__num {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.service__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.3rem;
}
.service__desc {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
}
.service__arrow {
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.05rem;
  transform: translate(0, 0);
  transition: transform 0.35s var(--ease);
}
.service:hover .service__arrow { transform: translate(5px, -5px); }

/* ==========================================================================
   Featured Projects
   ========================================================================== */

.projects {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-3xl);
  background: linear-gradient(175deg, var(--navy-2) 0%, #0C0C2A 45%, #050512 100%);
}

.projects__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.projects__glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}
.projects__glow--purple { bottom: -14%; left: 30%; background: var(--purple); opacity: 0.26; }
.projects__glow--blue { top: 10%; right: -10%; background: var(--blue); opacity: 0.24; }
.projects__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 60% at 30% 40%, black 0%, transparent 100%);
  mask-image: radial-gradient(60% 60% at 30% 40%, black 0%, transparent 100%);
}
.projects__curve {
  position: absolute;
  top: 0;
  left: 4%;
  height: 100%;
  width: 40%;
  opacity: 0.6;
}

.projects__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "text marquee"
    "cta  marquee";
  column-gap: var(--space-2xl);
  align-items: center;
}

.projects__intro { grid-area: text; }
.projects__intro .eyebrow { color: var(--blue); }
.projects__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-top: var(--space-sm);
}
.projects__desc {
  margin-top: var(--space-md);
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 40ch;
}
.projects__cta {
  grid-area: cta;
  align-self: start;
  margin-top: var(--space-lg);
  width: fit-content;
}

/* ---- Infinite marquee ---- */

.projects__marquee {
  grid-area: marquee;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  height: 480px;
}

.projects__col {
  position: relative;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.projects__track {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  will-change: transform;
  animation: project-infinite-scroll 30s linear infinite;
}

@keyframes project-infinite-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

.projects__col--down .projects__track { animation-direction: reverse; }

.projects__marquee > .projects__col:nth-child(1) .projects__track { animation-duration: 28s; }
.projects__marquee > .projects__col:nth-child(2) .projects__track { animation-duration: 34s; }
.projects__marquee > .projects__col:nth-child(3) .projects__track { animation-duration: 30s; }

.projects__col:hover .projects__track { animation-play-state: paused; }

.project-card {
  position: relative;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #0A0A24;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,0.7);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project-card--glow-orange { box-shadow: 0 0 44px -10px rgba(255,106,0,0.4), 0 20px 40px -24px rgba(0,0,0,0.7); }
.project-card--glow-purple { box-shadow: 0 0 44px -10px rgba(94,42,140,0.5), 0 20px 40px -24px rgba(0,0,0,0.7); }
.project-card--glow-blue { box-shadow: 0 0 44px -10px rgba(0,174,239,0.4), 0 20px 40px -24px rgba(0,0,0,0.7); }

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover img { transform: scale(1.06); }
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 54px -20px rgba(0,0,0,0.8);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: var(--space-md);
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__cat {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--grad-brand);
}

.project-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}
.project-card__arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.project-card:hover .project-card__arrow {
  background: var(--orange);
  border-color: var(--orange);
  transform: rotate(45deg);
}

/* ==========================================================================
   About
   ========================================================================== */

.about { position: relative; overflow: hidden; padding-block: var(--space-3xl); background: var(--paper); }
.about--page { padding-top: var(--space-2xl); }

.about__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.about__glow {
  position: absolute;
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  border-radius: 50%;
  filter: blur(100px);
}
.about__glow--orange { top: -14%; left: -8%; background: var(--orange); opacity: 0.08; }
.about__glow--purple { bottom: -18%; right: -10%; background: var(--purple); opacity: 0.09; }

.about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about__desc {
  margin-top: var(--space-md);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
}

/* ---- Skill bars ---- */
.about__skills {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  max-width: 42ch;
}
.about__skill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.about__skill-pct { color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.about__skill-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--paper-soft);
  overflow: hidden;
}
.about__skill-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 999px;
  background: var(--grad-brand);
  transition: width 1.2s var(--ease);
}
.about__skill-fill--purple { background: var(--grad-brand-v); }
.about__skill-fill--blue { background: linear-gradient(90deg, var(--blue) 0%, var(--purple-2) 100%); }
.about__skill:nth-child(2) .about__skill-fill { transition-delay: 0.1s; }
.about__skill:nth-child(3) .about__skill-fill { transition-delay: 0.2s; }
.about__copy.is-visible .about__skill-fill { width: var(--pct); }

.about__points {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.about__point {
  position: relative;
  flex: 1 1 160px;
  max-width: 220px;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.about__point:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 22px 42px -22px rgba(20, 20, 43, 0.22);
}
.about__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--purple-2);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.about__point:hover .about__point-icon { background: var(--grad-brand); color: var(--white); }
.about__point h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.about__point p {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 15ch;
}
.about__point-arrow {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  font-size: 0.95rem;
  color: var(--orange);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.about__point:hover .about__point-arrow { opacity: 1; transform: translate(0, 0); }

.about__visual { position: relative; perspective: 1400px; }
.about__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
}
.about__visual:hover .about__collage { transform: rotateY(-3deg) rotateX(1.5deg) scale(1.015); }
.about__photo-big {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2B2450 0%, var(--purple) 55%, var(--blue) 100%);
  transition: transform 0.5s var(--ease);
}
.about__visual:hover .about__photo-big { transform: scale(1.015); }
.about__photo-small {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.5s var(--ease);
}
.about__visual:hover .about__photo-small { transform: scale(1.03); }

.about__stat {
  position: absolute;
  right: -14px;
  bottom: -28px;
  width: 168px;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--grad-stat);
  color: var(--white);
  box-shadow: 0 24px 50px -18px rgba(94, 42, 140, 0.55);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.about__stat:hover { transform: translateY(-4px); box-shadow: 0 30px 56px -18px rgba(94, 42, 140, 0.65); }
.about__stat strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  display: block;
}
.about__stat span {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}
.about__stat--projects {
  right: auto;
  bottom: auto;
  left: -14px;
  top: -28px;
  background: var(--grad-brand-v);
  box-shadow: 0 24px 50px -18px rgba(0, 174, 239, 0.4);
}
.about__stat--projects:hover { box-shadow: 0 30px 56px -18px rgba(0, 174, 239, 0.5); }

/* ==========================================================================
   About — home page preview (short teaser, full version lives on about.html)
   ========================================================================== */

.about-preview { padding-block: var(--space-3xl); background: var(--paper); }
.about-preview__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.about-preview__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -28px rgba(20, 20, 43, 0.28);
}
.about-preview__desc {
  margin-top: var(--space-sm);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 52ch;
}
.about-preview__stats { display: flex; gap: var(--space-lg); margin: var(--space-lg) 0; }
.about-preview__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}
.about-preview__stats span { font-size: 0.8rem; color: var(--muted); }

/* ==========================================================================
   Stats bar
   ========================================================================== */

.stats { background: var(--navy); padding-block: var(--space-lg); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-inline: var(--space-md);
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat__icon { font-size: 1.4rem; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.stat span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { position: relative; overflow: hidden; padding-block: var(--space-3xl); background: var(--paper-soft); }

.testimonials__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.testimonials__glow {
  position: absolute;
  width: 38vw;
  height: 38vw;
  max-width: 480px;
  max-height: 480px;
  border-radius: 50%;
  filter: blur(100px);
}
.testimonials__glow--orange { top: -14%; left: -8%; background: var(--orange); opacity: 0.08; }
.testimonials__glow--purple { bottom: -18%; right: -10%; background: var(--purple); opacity: 0.09; }

.testimonials__inner { position: relative; z-index: 1; }

.testimonials__nav { display: flex; gap: 0.6rem; }
.testimonials__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.testimonials__btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  transition: opacity 0.25s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px -24px rgba(20, 20, 43, 0.22);
}
.testimonial-card__quote {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.1);
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-card__text {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: var(--space-md);
}
.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 0.88rem; color: var(--ink); }
.testimonial-card__author span { font-size: 0.78rem; color: var(--muted); }

/* ==========================================================================
   Services — team banner
   ========================================================================== */

.services-team__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.services-team__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -28px rgba(20, 20, 43, 0.28);
}
.services-team__content .eyebrow { color: var(--purple-2); }
.services-team__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: var(--space-sm);
}
.services-team__desc {
  margin-top: var(--space-sm);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 46ch;
}
.services-team__points { display: flex; gap: var(--space-lg); margin-top: var(--space-lg); }
.services-team__points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}
.services-team__points span { font-size: 0.8rem; color: var(--muted); }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  position: relative;
  background: var(--grad-brand);
  background-size: 220% 220%;
  animation: ctaShift 12s ease-in-out infinite;
  padding-block: var(--space-3xl);
  overflow: hidden;
}
@keyframes ctaShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.12;
}
.cta__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.cta__title {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--white);
  letter-spacing: -0.01em;
}
.cta__inner .btn { margin-top: var(--space-lg); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--navy-2); color: rgba(255,255,255,0.7); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl);
}
.footer__logo { margin-bottom: var(--space-sm); }
.footer__desc { font-size: 0.88rem; line-height: 1.6; max-width: 30ch; color: rgba(255,255,255,0.5); }
.footer__social { display: flex; gap: 0.6rem; margin-top: var(--space-md); }
.footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer__social a:hover { background: var(--orange); border-color: var(--orange); }

.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}
.footer__col a, .footer__col span.footer__addr {
  display: block;
  font-size: 0.88rem;
  padding-block: 0.32rem;
  color: rgba(255,255,255,0.62);
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--orange); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-md);
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.42); margin: 0; }
.footer__legal a { color: rgba(255,255,255,0.42); }
.footer__legal a:hover { color: var(--orange); }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
  background: var(--grad-navy);
}
.page-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, black 0%, transparent 100%);
  mask-image: radial-gradient(60% 70% at 50% 0%, black 0%, transparent 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero .eyebrow { justify-content: center; color: var(--blue); }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-top: var(--space-sm);
}
.page-hero__desc {
  margin: var(--space-md) auto 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.75); transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span[aria-current] { color: var(--white); font-weight: 600; }

/* ==========================================================================
   Work / portfolio grid (Work page)
   ========================================================================== */

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}
.work-filter {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.work-filter:hover { border-color: var(--orange); color: var(--ink); }
.work-filter.is-active {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.work-grid .project-card { aspect-ratio: 4 / 5; }
.work-grid .project-card.is-hidden { display: none; }

/* ==========================================================================
   Blog grid & article (Blog pages)
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px -24px rgba(20, 20, 43, 0.22);
}
.blog-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__cat {
  position: absolute;
  left: var(--space-sm);
  top: var(--space-sm);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--grad-brand);
}
.blog-card__body { padding: var(--space-md); display: flex; flex-direction: column; flex: 1; }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.blog-card__meta span:not(:last-child)::after { content: "·"; margin-left: 0.5rem; }
.blog-card__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.blog-card__title a { transition: color 0.3s var(--ease); }
.blog-card__title a:hover { color: var(--orange); }
.blog-card__excerpt {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.blog-card__more {
  margin-top: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  align-self: flex-start;
}
.blog-card__more span { transition: transform 0.3s var(--ease); }
.blog-card__more:hover span { transform: translateX(3px); }

/* Article (blog-details page) */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--muted);
}
.article__meta span:not(:last-child)::after { content: "·"; margin-left: 0.5rem; }
.article__meta span:first-child { font-weight: 700; color: var(--ink); }

.article__cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--navy);
}
.article__body {
  margin-top: var(--space-xl);
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink);
}
.article__body p { margin-top: var(--space-md); color: var(--ink); }
.article__body p:first-child { margin-top: 0; }
.article__body h2, .article__body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--space-xl);
  letter-spacing: -0.01em;
}
.article__body h2 { font-size: 1.5rem; }
.article__body h3 { font-size: 1.2rem; }
.article__body ul { margin-top: var(--space-md); padding-left: 1.25rem; color: var(--muted); }
.article__body li { margin-top: 0.4rem; line-height: 1.6; }
.article__body blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--orange);
  background: var(--paper-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-xl);
}
.article__tags a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-2);
  background: var(--paper-soft);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.article__tags a:hover { background: var(--grad-brand); color: var(--white); }

.article__share {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}
.article__share span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.article__share a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.article__share a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.article__aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.article__aside-card {
  background: var(--paper-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.article__aside-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.article__aside-list { margin-top: var(--space-sm); display: flex; flex-direction: column; gap: var(--space-sm); }
.article__aside-card--cta p { margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.article__aside-card--cta .btn { margin-top: var(--space-md); width: 100%; }
.article__aside-post {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.article__aside-post img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.article__aside-post a {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.article__aside-post a:hover { color: var(--orange); }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.4fr);
  gap: var(--space-2xl);
  align-items: start;
}

.contact-cards { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-card {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 20px 40px -24px rgba(20, 20, 43, 0.2);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
  transition: transform 0.35s var(--ease);
}
.contact-card:hover .contact-card__icon { transform: scale(1.08) rotate(-6deg); }
.contact-card__icon--orange { background: rgba(255, 106, 0, 0.12); color: var(--orange); }
.contact-card__icon--purple { background: rgba(94, 42, 140, 0.12); color: var(--purple-2); }
.contact-card__icon--blue { background: rgba(0, 174, 239, 0.12); color: var(--blue); }
.contact-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.contact-card p, .contact-card a { display: block; margin-top: 0.2rem; font-size: 0.88rem; color: var(--muted); }
.contact-card a:hover { color: var(--orange); }

.contact-form {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 32px 64px -32px rgba(20, 20, 43, 0.28);
  overflow: hidden;
}
.contact-form::before,
.contact-form::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
}
.contact-form::before {
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  background: var(--grad-brand);
  opacity: 0.16;
}
.contact-form::after {
  bottom: -90px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: var(--grad-stat);
  opacity: 0.1;
}
.contact-form__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}
.contact-form__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 10px 22px -8px rgba(255, 106, 0, 0.5);
}
.contact-form__head h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.contact-form__head p { margin-top: 0.25rem; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-group { margin-top: var(--space-md); }
.form-row .form-group { margin-top: 0; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: inset 0 1px 2px rgba(20, 20, 43, 0.04);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.form-group input:hover,
.form-group textarea:hover { border-color: rgba(20, 20, 43, 0.18); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}
.contact-form .btn { margin-top: var(--space-lg); width: 100%; }
.form-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding: 0 var(--space-md);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: rgba(0, 174, 239, 0.1);
  color: var(--purple-2);
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin-top 0.4s var(--ease), padding 0.4s var(--ease);
}
.form-success::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
}
.form-success.is-shown {
  max-height: 80px;
  opacity: 1;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-color: rgba(0, 174, 239, 0.25);
}

.contact-map {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 21 / 6;
  background: var(--grad-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: box-shadow 0.4s var(--ease);
}
.contact-map::before {
  content: '';
  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: 42px 42px;
  -webkit-mask-image: radial-gradient(60% 90% at 50% 50%, black 0%, transparent 100%);
  mask-image: radial-gradient(60% 90% at 50% 50%, black 0%, transparent 100%);
}
.contact-map:hover { box-shadow: 0 30px 60px -30px rgba(94, 42, 140, 0.55); }
.contact-map__pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--white);
  font-size: 0.75rem;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .services-team__inner { grid-template-columns: 1fr; }
  .services-team__desc { max-width: none; }
  .about-preview__inner { grid-template-columns: 1fr; }
  .about-preview__desc { max-width: none; }
  .about__stat { position: static; margin-top: var(--space-md); width: auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-md); }
  .stat:nth-child(3) { border-left: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .section-head__desc { text-align: left; }

  .projects__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "text" "marquee" "cta";
    row-gap: var(--space-xl);
  }
  .projects__cta { margin-top: 0; }
  .projects__marquee { grid-template-columns: repeat(2, 1fr); height: 420px; }
  .projects__col--hide-narrow { display: none; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy-2);
    padding: var(--space-md) var(--container-pad) var(--space-lg);
    gap: 0.25rem;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.is-open .nav__link { padding-block: 0.7rem; font-size: 1rem; }
  .nav__cta-mobile { display: inline-flex; margin-top: var(--space-sm); }
}

@media (max-width: 768px) {
  :root { --space-3xl: 4rem; --space-2xl: 3rem; }

  .projects__marquee { height: 380px; }
  .projects__marquee > .projects__col:nth-child(1) .projects__track { animation-duration: 42s; }
  .projects__marquee > .projects__col:nth-child(2) .projects__track { animation-duration: 48s; }
  .projects__marquee > .projects__col:nth-child(3) .projects__track { animation-duration: 44s; }
}

@media (max-width: 576px) {
  .services__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.4rem); }
  .cta__title { font-size: 1.6rem; }
  .about__points { gap: var(--space-lg); }

  .projects__marquee { grid-template-columns: 1fr; height: 340px; }
  .projects__col--down { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

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

  .projects__track { animation: none !important; transform: none !important; }
  .projects__marquee { height: auto; }
  .projects__col {
    height: auto;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .project-card[aria-hidden="true"] { display: none; }
}
